Skip to content

Dispatch saved assignments to existing Codex children (T54) - #219

Merged
erickb336 merged 2 commits into
mainfrom
codex/t54-prepared-followups
Oct 14, 2026
Merged

erickb336 merged 2 commits into
mainfrom
codex/t54-prepared-followups

Conversation

@erickb336

@erickb336 erickb336 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Closes #218
Sage task T54

A chief can give a completed Codex child another saved assignment. The preparation returns the saved child ID and exact message. Dispatch checks that child, the completed predecessor, owner, task, role, current run and review target. It reserves capacity once; repeating the call does not grant another dispatch.

The initial-spawn path refuses a follow-up preparation. Evaluator denial, changed targets and unauthenticated calls cannot reserve capacity. This uses the existing continuation and later-turn binding code. It does not enable installed automatic Sage or add checks for active child work.

Sources changed: packages/sage-codex/runtime/. Generated plugin files came from npm run build. No shared state or Claude behavior changed.

Validation at final commit 0cf287d7ffdead3c3ee57b84c4aa2a02374fcdea: two clean independent code/security/QA cycles. Exact-commit CI passed: 1,228 tests, 1,228 passed, zero failed or cancelled (run 38510871361).

  • npm run build: built 294 files.
  • npm run check: all checks pass (3 timing bounds carry "// timing-ok:").
  • npm test -- --test-concurrency=1: tests 1228, pass 1228, fail 0, cancelled 0, skipped 0.
  • Focused node --test run for the seven follow-up tests and eleven T53 controls: tests 18, pass 18, fail 0.
  • node scripts/probe-codex-lifecycle.mjs --sage-followup: code: 0, verified: true; same child, exact saved message, two reservations, two bindings and two completions. temporaryRootRemoved: true. Responses are simulated; the CLI is real.
  • All local tests and probes use fake process commands first on PATH and unset inherited NODE_TEST_CONTEXT. Native fixtures use a test machine-identity marker.
  • All seven new tests fail on detached main 816dbf4. Six fail because main rejects the new previous input before the later assertions. One demonstrates that main permits an unprepared active follow-up. These results do not claim every later matrix row fails independently.
  • The first native probe found a missing follow-up tool in the test fixture's evaluator allowlist. The fixture now allows that tool only for the follow-up route. Production policy still validates its exact saved target and message.

Not verified: installed automatic Sage, real-model recovery, every runtime route, or the upstream hook-failure fix. Native probes use a real CLI with simulated responses and temporary profiles. No installed configuration changes are part of this PR.

@erickb336
erickb336 marked this pull request as ready for review October 14, 2026 04:25
@erickb336
erickb336 merged commit 0cfb847 into main Oct 14, 2026
1 check passed
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.

Dispatch saved assignments to an existing Codex child (T54)

1 participant