Repository navigation
Dispatch saved assignments to existing Codex children (T54) - #219
Merged
Merged
Conversation
erickb336
marked this pull request as ready for review
October 14, 2026 04:25
This was referenced Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 fromnpm 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.node --testrun 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.NODE_TEST_CONTEXT. Native fixtures use a test machine-identity marker.816dbf4. Six fail because main rejects the newpreviousinput 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.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.