Skip to content

Refuse child sandbox permission expansion in Codex (T28) - #172

Merged
erickb336 merged 1 commit into
mainfrom
codex/t28-child-sandbox
Oct 13, 2026
Merged

erickb336 merged 1 commit into
mainfrom
codex/t28-child-sandbox

Conversation

@erickb336

@erickb336 erickb336 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

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.
  • The same three tests on detached main 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.
  • Probe-only copy on detached main: verified false, 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 test on the final commit: 1,107 tests, 1,107 pass, 0 fail/cancel/skip.
  • CI run 38409040588 on 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.

@erickb336
erickb336 marked this pull request as ready for review October 13, 2026 14:04
@erickb336
erickb336 merged commit 148553a 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.

Refuse broader sandbox permissions for Codex children (T28)

1 participant