Repository navigation
Refuse child sandbox permission expansion in Codex (T28) - #172
Merged
Merged
Conversation
This was referenced Oct 13, 2026
erickb336
marked this pull request as ready for review
October 13, 2026 14:04
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 #171
Sage task T28
Codex children now receive a Sage refusal when they request broader sandbox permissions. The rule applies to admitted and unassigned children, with Sage on or off, before the supplied evaluator. Chief requests retain native permission checks. This matches Claude's child sandbox rule without changing Claude files.
Source:
packages/sage-codex/runtime/policy.mjs. Generated plugin output comes from the build. The scope belongs to the Codex runtime program tracked in #88 and #138; installed automatic Sage remains disabled.Validation on
90ac7f4, 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 child sandbox escalation' scripts/codex-server.test.mjs: 3 tests, 3 pass, 0 fail/cancel/skip.83b07ea: 3 tests, 0 pass, 3 fail. They lack the child refusal. The off-mode case establishes the initial assignment before the mode change, so it tests policy rather than missing recovery evidence.node scripts/probe-codex-lifecycle.mjs --sage-child-sandbox: CLI 0.160.0 with simulated model responses, verified true; Sage denial before evaluator, no PostToolUse command event, normal child completion and temporary profile removal.sandbox_denial_missing. Main reaches Codex's separate native approval refusal. The temporary profile is removed. No production code was copied to main.node scripts/probe-codex-lifecycle.mjs --sage-completion: verified true; normal blocked-stop control and temporary cleanup pass.npm teston the final commit: 1,107 tests, 1,107 pass, 0 fail/cancel/skip.38409040588on this exact commit: success; 1,107 tests, 1,107 pass, 0 fail/cancel/skip.Code, security, and QA each passed two clean review cycles on this unchanged commit. All required local and CI checks passed.
Not verified: real model behavior, effective sandbox guarantees, installed automatic coordination, full policy composition, or a real-project pilot. The native probe is a controlled simulated-response test, not activation proof.