Repository navigation
Restrict Codex Sage child messages to the chief (T29) - #174
Merged
Merged
Conversation
erickb336
marked this pull request as ready for review
October 13, 2026 14:22
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 #173
Sage task T29
A Sage child can send a message only to the root chief. This blocks messages that could wake another child outside prepared-task limits. The restriction remains after Sage off for bound children. Chief messages and ordinary off-mode children retain evaluator checks. This matches Claude's existing rule without changing Claude files.
Source:
packages/sage-codex/runtime/policy.mjs. The build regenerates plugin output. This component belongs to the Codex program tracked in #88 and #138; installed automatic Sage remains disabled.The native test fixture now explicitly selects multi-agent V2 in its model catalog. Its chief handles early wake-up from a progress message with distinct wait/list call IDs, then verifies actual child completion.
Checks at
86a960c, with fake ps, pgrep and kill first on PATH:npm run build: built 278 files.npm run check: all checks pass.node --test --test-name-pattern='native Sage child message' scripts/codex-server.test.mjs: 3 tests, 3 pass, 0 fail/cancel/skip.148553a: 3 tests, 0 pass, 3 fail. Main allows peer messages and malformed message inputs.node scripts/probe-codex-lifecycle.mjs --sage-child-message: CLI 0.160.0, simulated responses, verified true; peer refusal before evaluator, exact chief delivery, completed child, and temporary cleanup.peer_message_not_denied; native recipient lookup runs instead. Temporary cleanup passed. No production code was copied.--sage-completionand--sage-child-sandboxcontrols: verified true with temporary cleanup.npm test: 1,110 tests, 1,110 pass, 0 fail/cancel/skip on the reviewed commit.38411632823: success; 1,110 tests, 1,110 pass, 0 fail/cancel/skip.Code, security, and QA each passed two clean review cycles on this unchanged commit.
Not verified: real-model operation, installed automatic coordination, full command/workflow enforcement, or a real-project pilot. This controlled probe does not enable Sage or establish complete multi-agent support.