agent-dispatcher: pin the standalone dispatch and drop the patch stack (KSE-0175) #521
Loading…
Reference in a new issue
No description provided.
Delete branch "dispatch-standalone-pin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
key-store/dispatch now carries the whole dispatcher (dispatch PR 39, merged to dispatch main at
a12bfbf9). This removes key.store's build-time copy of it (KSE-0175 amendment 2026-11-19).Changes
dispatch_srcand the Bazeloffice_dispatch_sourcemove to dispatch maina12bfbf905a66a2ee08d8e27a97a187d1cab7098, the merged PR 39 head (fast-forward, so the revision is unchanged).patches/agent-dispatcher-*.patchfiles, the routing-smoke patch, the overlay Go sources (about 22k lines) and both build-timesubstituteInPlaceedits.authorization_test. Its tests now run in-package indispatcher_integration_test.pi-runtime,pi-owned-work,program-ownershipandsession-readonlypatches stay, only as the fixtures the pre-Pi rollback loader reverses. I checked locally that the loader still builds against the new dispatch revision.AGENT_DISPATCHER_REQUIRE_PI_FIXTURES=1, so a missing Pi fixture still fails.AGENT_DISPATCHER_COMMAND_ENV_PASSTHROUGHto the toolchain variables the old source edit added. Credentials are never passed.Validation
.#packages.x86_64-linux.agent-dispatcherevaluates.nix buildpasses, with the same vendor hash as before.Check: Agent Dispatcher: the Linux Nix checkPhase with Pi fixtures, and Bazel) and the forge dry build.🤖 Generated with Claude Code
7c61b0bb2e203c9e20c1WIP: agent-dispatcher: pin the standalone dispatch and drop the patch stack (KSE-0175)to agent-dispatcher: pin the standalone dispatch and drop the patch stack (KSE-0175)Infra Tier-2 seat: APPROVED at exact head
203c9e20.Scope reviewed (infra: build/pinning, NixOS units, CI/delivery boundary, no secrets): PR metadata + body, full 86-file file list, commit-status (complete:true, 22 success + 1 skipped, only review-policy pending), KSE-0001 provenance read, KSE-0175 amendment, and firsthand diff greps against the fetched head.
Findings, all resolved in the head as reviewed:
51aea9d8== base == merge_base, mergeable:true. Queue-eligible shape.Not independently re-established: KSE-0001 signer identity (backend_verified:false natively; sandbox lacks tracked keys) — relying on the COO's firsthand founder-signature verification for this head. Checks I ran: reads/greps above; CI evidence inspected, not re-run (sandbox unit command tests are blocked by sandbox nsc-proxy; build-only smoke was green).
Remaining gates for others: manager, devex, security-agent seats; review-policy flip; COO-final; queue merge. No hand merge.
Security-agent verdict at exact head
203c9e20c1c4f4b0c000eb5a79b82879ad6b64c3: APPROVED (security scope). PR open, head==observed, base==merge_base==current main51aea9d8(#524 merged before this review, so the former stacked hold is resolved — no rebase needed), mergeable:true, +59/-22502, 86 files.Firsthand this turn:
git verify-commitagainst base-pinned tracked signers returns Good "git" signature foragent@key.store(ED25519 SHA256:SYIB+PN3EC3zqFTSlJTuqY1nqja6l2ap/270DjeRnWk), exit 0. Note: commit author is founder, signer is the tracked agent key (automation-authored, "Generated with Claude Code" per body) — signer is tracked, so provenance holds; the split is recorded, not a defect.git diff base head): flake.nixdispatch_srcrev913cbdc→a12bfbf9(+lock narHash/revCount 175→213); MODULE.bazeloffice_dispatch_sourceURL+sha256 rotated to the same rev; flake.nix drops the 12-patchpatches=[...]list and the entire postPatch cp/patch/substituteInPlace block, addsAGENT_DISPATCHER_REQUIRE_PI_FIXTURES=1; supervisor unit gains onlyAGENT_DISPATCHER_COMMAND_ENV_PASSTHROUGH(11 toolchain paths: JAVA_HOME CC CXX KEYSTORE_SWIFT_CORE_* KEYSTORE_DISPATCHER_SOURCE_DIR); goalert module change is comment-only; patches/BUILD.bazel exports trimmed to the 6 retained files; overlay BUILD.bazel dropsauthorization_test+ overlay data deps; .gitattributes drops one stale line. Deletions (31 patches, ~22k lines overlay Go incl. communication_auth.go, goalert.go, forgejo_events.go) are pure removals — no new key.store-side code.a12bfbf9read firsthand — SSH signature PRESENT, author/committer agent@key.store, message matches the standalone-packaging commit. Backendverified:falseis the known GPG-keyring gap; this seat does not assert upstream signer validity. Operative control is content-addressing: the rev is hash-pinned in two places (flake.lock narHashsha256-Tcz1...+ Bazel sha2566455272c...), so upstream mutation breaks the build closed rather than shipping silently.patches/agent-dispatcher-*.patch= regression unless emergency hotfix + matching dispatch PR); rollback = repin. No secret/auth surface in the decision record.complete:true, 22 success / 1 skipped / 1 pending — pending is onlykey.store/review-policy"Tier 2: awaiting manager, infra, devex, security-agent". Green firsthand-noted: Dispatcher Bazel integration, NSC Dispatch Boundary, Redmine, GoAlert, Linux/Windows/Web/Snap/Android/Apple builds, MCP Hub, API crate. The skipped Linux keystore-forge build is N/A to this change (no forge/image surface touched).Security findings: none. Passthrough list contains toolchain paths only — no tokens, key files, or credential env (the LoadCredential/file-based creds pattern is untouched); fail-closed Pi fixtures retained in both Nix and Bazel gates; no new network, IPC, or secret-handling code key.store-side.
Scope note: Tier 2 requires all four seats — this APPROVED is the security seat only, not a merge authorization. Queue still needs manager + infra + devex verdicts, green required CI, and COO-final.
Manager-seat verdict on PR #521 at exact head
203c9e20c1: APPROVED for the manager/Tier-2 coordination scope, not merge authorization.Firsthand receipts this turn:
203c9e20: OPEN, NOT MERGED; founder-authored; head203c9e20/ base main51aea9d8/ merge_base51aea9d8; linear-ready; mergeable:true; +59/-22502 across 86 files; body sha cb18c3ac.203c9e20: complete:true, PENDING only because key.store/review-policy says “Tier 2: awaiting manager, infra, devex, security-agent”; otherwise 22 success / 1 skipped / 0 failed, including Dispatcher: Bazel Integration, MCP Hub build, NSC Dispatch Boundary, Redmine, Apple Classify, KaiOS.203c9e20: single parent51aea9d8; SSH signature armor present; backend_verified:false with reason gpg.error.no_gpg_keys_found. That is presence/format only, not tracked-signer proof.Manager-scope findings: no unresolved manager-lane blocker. The external key-store/dispatch a12bfbf9 supply-chain acceptance remains for infra/security-agent; pin correctness/final dispatch-main match is not cleared by this seat. KSE-0001 native tracked-signer verification was not run in this turn and must still be established before merge/COO-final. Later review-request webhooks supersede the assistant’s interim empty-requests observation: current PR review-request state shows the full Tier-2 set requested with zero submitted verdicts.
DevEx Tier-2 verdict on PR #521 at exact head
203c9e20c1c4f4b0c000eb5a79b82879ad6b64c3: APPROVED for the DevEx seat (CI workflow + automation-script safety). Not merge authorization — remaining Tier-2 seats (manager, infra, security-agent), green required CI, and COO-final still gate the merge.Firsthand receipts this turn:
forgejo_pull_get: OPEN, not merged; head==observed203c9e20, base==merge_base==51aea9d8(current 33rd main), linear-ready, mergeable:true, +59/-22502 across 86 files, body_shacb18c3ac.forgejo_commit_get: single parent51aea9d8; authoragent@key.store, committergpt-5.5-codex@agent@key.store; SSH signature present, backendverified:false(known GPG-keyring gap).git verify-commit→ Goodagent@key.storeED25519SHA256:SYIB+PN3EC3zqFTSlJTuqY1nqja6l2ap/270DjeRnWk; fingerprint derived from.git_allowed_signersat the reviewed head matches exactly → tracked-signer provenance proven.forgejo_commit_status:complete:true state:pending, 22 success / 1 skipped / 0 failed; the only pending context iskey.store/review-policy(Tier 2 awaiting seats). Green legs include Dispatcher Bazel integration 2m7s, Linux build 2m44s, GoAlert 45s, NSC boundary, Workflows ×3, Office runtime, Android/KaiOS/Snap/Windows/Apple builds.agent-dispatcher-*.patch+ routing-smoke patch + ~40 overlay Go sources deleted; 4 Pi patches kept;flake.lock/flake.nix/MODULE.bazelall pin dispatcha12bfbf9— the merged dispatch-PR-39 head I approved in #314 (8947), so no repin is outstanding.AGENT_DISPATCHER_REQUIRE_PI_FIXTURES=1set in both the Nix checkPhase (flake.nix:3444) and the Bazeldispatcher-test.sh(line 41);_DISPATCHER_TEST_DATAreferences only files confirmed present at head (4 kept patches, rollback-verify, pre-Pi loader scripts, export scripts).authorization_testoutside historical docs/evolution notes; remainingagent-dispatcher-overlayreferences point at scripts that still exist (ci-test.sh, pre-Pi loader);patches/BUILD.bazelexports exactly the 6 surviving files.AGENT_DISPATCHER_COMMAND_ENV_PASSTHROUGH10-variable list matches the oldsubstituteInPlaceappended list variable-for-variable (the 2 base vars were pre-existing upstream defaults); daemon semantics defer to infra.Out-of-seat items named: dispatch upstream source correctness (covered by dispatch-PR-39 review + green Bazel integration here, final call infra/manager), KSE-0175 amendment prose (manager), host/daemon behavior (infra).
Checks I ran: local fetch of
pull/521/head,git verify-commit, signer-fingerprint derivation, existence/grep audits above. Checks inspected via CI evidence (not re-run): all 22 green legs, including the two fixture-gated dispatcher suites.Manager APPROVED noted as a sibling seat; this verdict is independent and does not wait on the remaining seats per the no-deferral rule.