Skip to content

Restrict Codex Sage child messages to the chief (T29) - #174

Merged
erickb336 merged 1 commit into
mainfrom
codex/t29-child-messages
Oct 13, 2026
Merged

erickb336 merged 1 commit into
mainfrom
codex/t29-child-messages

Conversation

@erickb336

@erickb336 erickb336 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

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.
  • The same tests on detached main 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.
  • Probe-only copy on detached main: verified false, peer_message_not_denied; native recipient lookup runs instead. Temporary cleanup passed. No production code was copied.
  • Native --sage-completion and --sage-child-sandbox controls: verified true with temporary cleanup.
  • npm test: 1,110 tests, 1,110 pass, 0 fail/cancel/skip on the reviewed commit.
  • Exact-commit CI run 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.

@erickb336
erickb336 marked this pull request as ready for review October 13, 2026 14:22
@erickb336
erickb336 merged commit 8df7b82 into main Oct 13, 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.

Restrict Codex Sage child messages to the chief (T29)

1 participant