Skip to content

refactor(api): move task and control routes into hq_routes (ARCH-10d) - #250

Merged
mergify[bot] merged 1 commit into
mainfrom
claude/arch-10d-hq-task-control
Oct 3, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
claude/arch-10d-hq-task-control

Conversation

@Cuarroc

@Cuarroc Cuarroc commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Dieser PR verschiebt die letzten fünf HQ-v1-Routen für Zuweisung, Claim, Checkpoint und Steuerung in das bestehende Routenmodul.
Der Quellvergleich zeigt unveränderte Routeninhalte; das Verhalten der laufenden App wurde hier nicht gemessen.
Zwei unabhängige Reviews haben diesen Commit geprüft; die Freigabe läuft über die getestete Merge-Warteschlange.

Report

Scope

ARCH-10d, the final five existing HQ arms. Base 1334b70a0e05de018270369ee57d6a77a2dcf010; candidate c7225c57f3da9f4b7c022aafed94fe4dc79c3b27. Three files, +108/-83 = 191 diff lines including the 16-line spec.
The 83 lines removed from api.rs are copied literally into hq_routes::handle. Ownership adds exact full-slice patterns for GET/POST task assignment, POST task claim/checkpoint and POST control. Existing ownership and outer delegation order remain unchanged. Wrong method/length and siblings keep the existing None fallback.
AssignmentRequest deserialization/errors/envelopes, owner/escalation/fence/status/detail mapping, control projectId/action/backend argument order, continuous_error and continuous_response remain unchanged. No schema, store, auth, credential, policy, M4 activation or new behavior.
No-Test: mechanical move is the approved ARCH-10 rationale; existing API/FakeBackend/scoped credential tests remain unchanged.

Evidence

Author observed as Claude Sonnet 5.5 in native CLI init (2026-10-03 22:33:40 CEST); standard subscription route, no Fast Mode or installation.

  • Own worktree /home/pa/wt/srv-arch10d-hq-task-control, clean committed candidate before full gate invocation.
  • bash scripts/ci/gates.sh lane precommit -> exit 0 before commit; gitleaks secret scan passed, no leaks.
  • bash scripts/ci/gates.sh lane prepush -> direct exit 0, 22:34:31–22:37:23 CEST, 172 s, 11 green gates. Full log /tmp/prepush10d.log, header HEAD c7225c5; Rust footer 1705 passed / 7 skipped.
  • RAM: 14155 MiB available before, 14042 MiB after (the separately reported free-only figures 2572/5611 are not available memory).
  • Foreground push -> exit 0; git ls-remote origin claude/arch-10d-hq-task-control equals the full candidate SHA.
  • Root independently read the complete author log and full 278851-byte gate log, complete three-file patch and outer dispatch context; git diff --check <base> <candidate> -> exit 0.
    Existing node_modules linked only after matching package/lock bytes; inventory had extraneous entries, no installation claimed.

Review disposition — Tier A, round 1 (coordinator)

ACCEPT for exact candidate c7225c57f3da9f4b7c022aafed94fe4dc79c3b27 against 1334b70a0e05de018270369ee57d6a77a2dcf010, 2026-10-03 23:04 CEST. Both complete first-round independent vendor reports read by Root:

  • OpenAI Codex gpt-6.1-sol / medium: PASS. Actual native turn_context20:48:25Z, ChatGPT ProLite/86% weekly used, 2545288KiB free/0cargo observed by reviewer. Full 83-line ordered parity plus reconstructed api/router remainder, unchanged preceding token/scoped/planning/verdict authorization, exact ownership and same helpers verified. Report received20:52:43Z; its unsupported22:55 end was corrected to observed22:52 receipt. Task55212007-7b42-4d88-b358-e49a62ee71dc complete.
  • OpenCode Go GLM5.2: PASS. Actual assistant providerID=opencode-go/modelID=glm-5.2 independently observed in session ses_efc78735effeBycWVjuSY0yCz0 export, not saved configuration. Full patch, literal-line parity and ordered arms inspected; wrong-method/path hijack, authorization skip, unreachable panic, shadowing and drift hypotheses refuted. Reviewer start RAM1800256KiB/0cargo; Root fresh native OpenCode quota6%session/2%weekly/44%monthly used at admission, no paid fallback. Full final report saved outside repository and read by Root.
    Confirmed introduced findings: none; accepted fixes: none needed; rejected hypotheses: above with fixed-source evidence. INFO: reviewed existing control/assignment/FakeBackend tests do not certify real runtime; reviewer did not establish direct claim/checkpoint coverage within its inspected test region, no exhaustive absence claim. This baseline limitation is not an introduced regression and does not require mirrored mechanical-move tests.
    Two independent non-Claude vendors satisfy TierA for this unchanged candidate. No high finding, no second round. Root author evidence remains own committed-head prepush0/172s/11green/full log, secret scan0, foregroundpush0/remoteSHA match. Ready through Mergify is authorized while main remains green; actual PR CI/real merge-queue Windows/merge still pending. Later code changes invalidate affected evidence.

NICHT ABGEDECKT

Linux own prepush only: Windows cfg tests/Clippy require the real merge-queue Windows lane; an ordinary PR Windows success is a stub. Full lane linux, browser smoke, frontend build, workflow gates and external services were not proven by this run.
No running-app, GUI, installed-build, screenshot or runtime acceptance. Reviewer source reads do not prove runtime behavior or exhaustive existing-test coverage.
Graph tools were not advertised; project/generation/index coverage UNKNOWN. Bounded source fallback only.

Move the five remaining HQ v1 dispatch arms (task assignment GET/POST,
claim, checkpoint, control) verbatim from api.rs into hq_routes::handle,
with an exact method+segment ownership pattern for each. Completes the
ARCH-10 route extraction. Add the ARCH-10d spec.

No-Test: mechanical move of existing arms; behavior covered by the
existing API, FakeBackend and scoped-credential tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Cuarroc Cuarroc added the do-not-merge Keep this pull request out of the merge queue label Oct 3, 2026
@Cuarroc
Cuarroc marked this pull request as ready for review October 3, 2026 21:05
@Cuarroc Cuarroc removed the do-not-merge Keep this pull request out of the merge queue label Oct 3, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T21:09:12.657644Z c7225c5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mergify

mergify Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

@Cuarroc

Cuarroc commented Oct 3, 2026

Copy link
Copy Markdown
Owner Author

@Mergifyio queue

@mergify mergify Bot added the queued label Oct 3, 2026
@mergify
mergify Bot merged commit dfe459f into main Oct 3, 2026
15 checks passed
@mergify
mergify Bot deleted the claude/arch-10d-hq-task-control branch October 3, 2026 21:49
@mergify

mergify Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 37 minutes 19 seconds in the queue, including 26 minutes 44 seconds running CI.

Required conditions to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant