Repository navigation
Bind initial Codex children from native task delivery (T20) - #156
Merged
Merged
Conversation
This was referenced Oct 13, 2026
erickb336
marked this pull request as ready for review
October 13, 2026 11:01
This was referenced Oct 13, 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 #155
Sage task T20
A prepared Codex child can bind its initial assignment through its first tool, even when no MCP SubagentStart callback arrives. The composed policy checks native identity, the exact prepared task hash, the parent dispatch result and the current unfinished turn before it calls the supplied evaluator. A turn that ends during an awaited evaluator is refused before permission returns.
Missing evidence retains capacity. Validated initial delivery is saved without granting permission while a parent result is missing. A later retry creates one binding. Transcript paths remain inside the configured native session directory and cannot use symbolic links.
Sources change only in
packages/sage-codex/runtime/, plus packaged tests. Generated plugin files come from the build. Claude hooks and the shared state tool do not change.Validation uses fake ps, pgrep and kill first on PATH:
npm run buildnpm run checknode --test scripts/codex-server.test.mjsbefore the final positive-control additionnpm testat50d89d0(same executable code as final head)The six new tests fail on detached main
eac3614with only the updated test file copied. Main refuses the new transcript-path input before delivery checks; the packaged MCP test receives a refusal instead of binding. This proves missing functionality, not each later refusal rule on its own. On this branch the positive controls reach the intended policy and identity checks.The existing nested-child fixture now supplies an actual synthetic child transcript and its own turn. Its observation count changes from six to seven because the policy records the child's verified transcript. Its other assertions remain unchanged.
Not verified here: actual native CLI delivery on this extraction, real-model behavior, installed automatic Sage, later assignments, report acceptance, capacity release, current logbook targets or compaction recovery. The MCP checks use real local server connections with synthetic native payloads. Automatic Sage remains incomplete; see #88.
Two code, security and QA review cycles are clean at final head
c5df3b04ed99b20f4de7999096fc436b9783c96b. The final six focused checks pass. The only change since50d89d0removes a trailing blank line from source and generated output. The local full suite passes. Final-head CI run 38386385018 passes all 1,024 tests: 0 fail, 0 cancelled, 0 skipped. All owned local test and native-probe processes have exited; the reviewers started no background tasks.