Repository navigation
C4: retire active Carrier governance from direct Dev MCP operations #471
Description
Activity
James3014 commented
on Oct 9, 2026 OwnerAuthorMore actionsC4 read-only verification update — 2026-10-09 (Asia/Taipei)
Exact immutable Candidate is still
67c674fa11f47c98e6b172620830439ee85bee9c(tree8d8e439658f17cf3dd3963228a5768258815ee79), base/main5c008b0b7aca3dbe8b83e192036dabf7ae001d46, PR #478 OPEN / mergeable but GitHubmergeStateStatus=BLOCKED,statusCheckRollup=[]. C4 worktreews_56dddadc8aclean; no code, branch, PR, runtime or deployment mutation occurred in this verification pass.Fresh tests on exact Candidate:
npm run typecheckPASS;npm run buildPASS (devspace-1.0.7-67c674fa);git diff --check origin/main...HEADPASS;node --import tsx --test src/durable-operations-ci.test.ts17/17 PASS;src/server-ci.test.ts75/75 PASS; combinedsrc/carrier-binding.test.ts src/control-plane-consumer.test.ts79/79 PASS; combinedsrc/cutover-state.test.ts src/mcp-cutover.test.ts48/48 PASS. CLI remains unresolved: combined cutover+CLI run 52/53, and isolatedsrc/cli.test.ts4/5, where a test resource emitted a post-test uncaught assertion'error' !== 'idle'for a mock Agy worker (sourcesrc/cli.test.ts:536). Do not re-label this PASS or attribute it to C4 without a clean-base countercheck; concurrent test/provider load may be a confounder.Independent reviewer availability/status:
- Earlier Claude reviewer
agt_7674682f: terminal provider disabled; no verdict. - Earlier Agy Gemini
agt_5d2b340c: terminal 180s limit; no verdict. - Fresh Agy
agt_d6ce2838: terminal idle with no semantic review verdict. Requestedgemini-3.7-flash, CLI UI displayed Gemini 3.8 Flash, model attestation unavailable; despite read-only tool ceiling, reviewer launchednpm test(provider enforcementREQUEST_ONLY_NOT_ENFORCED). Reconciled: no changed repo paths / exact HEAD unchanged. Not valid independent acceptance evidence. - Fresh OpenCode Nemotron
agt_af8d038b: terminalPROVIDER_EXECUTION_ERROR,Invalid opencode/openai-compatible-chat stream event, no review verdict and no changed paths.
Additional read-only source review question, not yet adjudicated as a defect:
requiresLegacyCarrierRecoveryinsrc/server.ts:6812treats any cutover journal withcoordinationBindingas a recovery reason, even ifphase='closed'. This may be intentional to preserve lost-ACK/pin-release recovery; decide from actual persisted lease/terminal receipt evidence before optimizing. Do not remove legacy readers blindly.Disposition: INCOMPLETE, NOT ACCEPTED / NOT MERGED / NOT DEPLOYED. Next gate is an independent exact-head source/security review with trustworthy model/transport and qualified verdict, determination of CLI flaky fixture via clean-base comparison or repair, required CI/issue certification, then explicit integration permission and exact accepted cutover/install/runtime/tool-projection canary. Do not bypass branch gates or the existing protected legacy cutover lifecycle.
- Earlier Claude reviewer
- added a commit that references this issue
on Oct 9, 2026 James3014 commented
on Oct 9, 2026 OwnerAuthorMore actionsC4 final implementation / independently verified source / external GitHub gate — 2026-10-09 Asia/Taipei
Disposition: CODE_READY / ISSUE_VERIFIED_NOT_RELEASED / GITHUB_ACTIONS_BLOCKED. Not merged, deployed, activated or closed.
Exact source: PR #478 branch
c4-retire-carrier-governance-471, headf954a20cad6e041ef3f689573f031c4d5a6b4b8e, tree9d0f103c4c9075248acc6c0f8cca70cac7384477, unchanged base/main5c008b0b7aca3dbe8b83e192036dabf7ae001d46. Git remote head and managed worktreews_56dddadc8aphysically agree; clean status.Independent review and repair:
- Read-only independent Claude Sonnet review of original
67c674fafound F1 HIGH: a closed historical Carrier-bound cutover could be archived before durable lease/operation terminal writeback, permanently stranding recovery. Reproduced deterministic RED insrc/durable-operations.test.tsbefore the fix. - New
f954a20adds a twice-checkedassertLegacyBoundCutoverIsTerminalgate insrc/durable-operations.ts(pre-intent and under atomic effect boundary). It validates exact bound operation, scope, request/binding correlation, terminal receipt and physical journal hash before allowing archive. Fixed RED test went GREEN. Independent read-only Claude re-review off954a20reports advisory conditional PASS, no remaining HIGH/CRITICAL. F2 pre-intent active-fence attemptKey poisoning is LOW/MEDIUM fail-closed operational friction, not an unauthorized effect. F3 checkout TOCTOU concern not source-proven and requires separate hardening if confirmed. Reviewer has no Candidate acceptance or Owner approval authority. - Fresh local tests on the amended source: durable 18/18, Carrier+ControlPlane 79/79, cutover-state+MCP-cutover 48/48, server-ci 75/75, TypeScript typecheck/build/diff-check all PASS.
- Exact macOS Node26
src/cli.test.tsremains 4/5 because of an async mock Agyerror != idleassertion. This was independently reproduced 4/5 on a fresh isolated clone of the completely unchanged base5c008b0; this is a pre-existing baseline failure, not a C4 regression.
Authoritative local Nexus Core evidence:
- The Issue body has the universe marker
sha256:067385413f215bfa515e07d7e20b27b074040c19540e48aef9ae002cd314eec9; PR body has<!-- NEXUS_CORE_ISSUE: 471 -->.nexus-certify issue-init --force --issue 471bound the Issue. nexus-certify issue-check --issue 471 --require-trusted-configcompleted in pinned isolated Node22 container verifier(s): issue verification VERIFIED (not RELEASED), both required evidence subjectsdevspace/full-testsanddevspace/typecheck-build-doctorPASS with exit 0; sourcef954a20, tree9d0f103, base config5c008b0. Local evidence receipt.nexus-core/receipts/20261009T075321.740133+0000-ef576579a84d.json.- Separate canonical
nexus-certify receipt-checkwith exact subject/head/tree/base/Issue/repository/clean/trusted requirements returnsvalid:true, eight expectations PASS,reason_codes:[]. This is LOCAL verification evidence, not GitHub's required signed CI check or production release.
External hard blocker: GitHub Actions platform. GitHub PR #478 remains
OPEN,mergeStateStatus=BLOCKED,statusCheckRollup=[](no requiredNexus Core issue completionstatus). Actions runs for exactf954a20= zero; no Actions runs for the branch despite PR edit, close/reopen, and a new pushed commit. Manualgh workflow run ci.yml --ref c4-retire-carrier-governance-471fails HTTP 422Actions has been disabled for this repository. Yet repositoryGET /actions/permissionssays enabled=true/allowed_actions=all, both workflow definitions show active, and an idempotent PUT of the same enabled settings did not restore dispatch. Root cause is unknown external Actions/account/platform eligibility, not proven billing. No fabricated status, disabled protection, bypass merge, forced release, or Dev M5 runtime restart performed.Next gate: Have the GitHub account/platform owner or GitHub Support restore GitHub Actions execution; re-trigger real
pull_requestandpull_request_targetworkflows and obtain the requiredNexus Core issue completiontrusted status on the same exact PR head. Recheck branch rules/head and independent acceptance, then perform protected CAS merge, canonical accepted install/cutover/restart and live primary runtime/tool-projection readback. Only after these gates pass can #471 be CLOSED as C4 complete.No automatic retry/resume or background execution claimed.
- Read-only independent Claude Sonnet review of original
Goal
C4 after C1 (#431), C2 (#449), C3 (#447): retire CarrierBindingStore / ControlPlaneConsumer as admission for new Dev MCP-native cutover and direct dependency_sync operations, while preserving fail-closed historical coordination-bound recovery. DevSpace remains the local execution layer, not Nexus governance.
Fresh baseline
GitHub main at issue creation:
5c008b0b7aca3dbe8b83e192036dabf7ae001d46(verify again before implementation). Running primary Dev M5 currently668f5df6a84bed09f0c8d8e4f715676cf182a64d: runtime is healthy/converged to its accepted release but behind main. PR #464 / Issue #462 added a real Carrier-bound terminal cutover CLI; do not remove that historical recovery path as dead code. Open PR #412 (#407) is the older carrier-expansion direction; reconcile before any integration.Bounded work / sequence
cutover_startmust create a durable direct/unbound cutover without a paired Carrier or injected coordination reader, using existingMcpCutoverController, cutover file, durable operation identity and restart/finish safety. Never downgrade an existing coordination-bound generation/operation to unbound. Preserve exact durable correlation and lost-ACK same-effect readback.dependency_syncunder existing workspace conversation/collision/path checks without Carrier authority. Preserve frozen lock/spec hash, Git base revision, attemptKey/replay conflict, terminal witness and outcome_unknown non-replay rules; do not widen shared-checkout admission.carrierand--coordination-reader-*governance entrypoints. Preserve genuinely needed authenticated historical bound cutover recovery including the newfinish-boundpath from PR feat(cutover): add carrier-bound finish-bound CLI for drained generations (#462) #464, and do not break owner sidecar before its active callers migrate. Separate follow-up gate if external owner-sidecar consumer cannot be safely switched in the same patch.Non-goals
No Nexus/Core governance, admission, model routing, acceptance, policy, extra controller or migration history rewrite. Do not delete historical DB tables, bound receipts/leases,
chat-swarm-carrier.ts,authority_mode,withInstalledNexusCertifyOnPath(), or general provider/process/workspace safety. Do not force merge or active service restart when no exact approved artifact/build-readiness evidence exists.Expected scope and next gate
Prefer small, independently reviewable Candidates: (A) direct cutover/dependency behavior; (B) active wiring/CLI migration once consumers are proven; (C) exact-head validation and live deployment canary. Collision checks before effects and after worker terminal. Unknown external sidecar dependencies remain explicitly blocked, not silently deleted.
In-progress C4 Candidate status — 2026-10-09 (Asia/Taipei)
NOT COMPLETE / NO AUTOMATIC CHAIN. Source-only change in managed isolated worktree
ws_56dddadc8a, physical root/Users/james/.devspace/worktrees/devspace-fe76971e, exact base5c008b0b7aca3dbe8b83e192036dabf7ae001d46. Source edits are currently uncommitted; no PR, merge, activation, or deployment was attempted for this Candidate.cutover_start, exactdirectOperationrequest correlation and lost-ACK no-retry reconciliation, direct frozen dependency sync for managed isolated worktrees and single-conversation checkout, and shared-checkout admission rejection.npm testcommand hit its 300-second execution limit after passing the earlier chain; omitted tail groups were run in two chunks and passed. One unrelated PTY timing race failed once under concurrent test load and passed focused + serial rerun;node-ptyspawn-helper execute mode was repaired using the repository's existing postinstall script.668f5df6a84bed09f0c8d8e4f715676cf182a64dis in another Carrier-bound cutover8eaa5969-80b6-44de-877b-400abf011173, phasedrained, aiming at5c008b0b7aca3dbe8b83e192036dabf7ae001d46. This is not C4's cutover. Host correctly returnsCUTOVER_RECONCILIATION_REQUIREDon consequential commands. Do not bypass, restart, rebind, or finish that owner-held lease from C4.nexus-certifyexecutable was not found on this Mac's known PATH locations; do not claim Issue-bound completion without it.2026-10-09 C4 published Candidate gate
Committed and pushed exact C4 Candidate
67c674fa11f47c98e6b172620830439ee85bee9c(tree8d8e439658f17cf3dd3963228a5768258815ee79, base5c008b0b7aca3dbe8b83e192036dabf7ae001d46) on branchc4-retire-carrier-governance-471; opened PR #478. Verified build, typecheck, durable 17/17, server-ci 75/75, Carrier 51/51, ControlPlane 28/28, cutover state 32/32, MCP cutover 16/16, CLI 5/5; source tree clean after commit. Original separate bound cutover8eaa5969-80b6-44de-877b-400abf011173is CLOSED; live authoritative primary runtime converged at main5c008b0b…, not Candidate. Independent review is NOT complete: Claude/HerdR revieweragt_7674682ffailed to launch (provider disabled), Gemini revieweragt_5d2b340ctimed out at its 180-second cap with no terminal semantic verdict. Do NOT infer acceptance from either attempt. Exact-head independent review/Core issue-check/required CI, PR merge, release and live C4 canary remain pending. Issue remains open.