Skip to content

Refuse recognized native shell merges before evaluation (T46) - #208

Merged
erickb336 merged 1 commit into
mainfrom
codex/t46-native-merge-refusal
Oct 13, 2026
Merged

erickb336 merged 1 commit into
mainfrom
codex/t46-native-merge-refusal

Conversation

@erickb336

@erickb336 erickb336 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #207
Sage task T46

The prepared Codex runtime keeps autopilot off, but a passing evaluator could permit a recognized merge command. The native policy now refuses those commands before the evaluator runs. The refusal covers all Sage-on actors and current-epoch bound children after Sage off. Ordinary off-mode actors keep the evaluator's checks.

This component advances #88. It does not enable installed Sage, cover GitHub MCP calls, or prove unrecognized commands safe. Complete command, path, and workflow authorization still needs trusted effective execution context. Claude PR #140's files are unchanged.

Validation at d223d6567c98e29af4fa45e1a9f33fb86baf237c:

  • npm run build: passed; generated plugin copies committed.
  • npm run check: all checks pass (3 timing bounds carry "// timing-ok:").
  • node --test --test-name-pattern='native mandatory merge refusal' scripts/codex-server.test.mjs: tests 3, pass 3, fail 0.
  • Copied those same tests into a detached worktree at main 4c88c3a: tests 3, pass 0, fail 3. Each fails because actual pass differs from expected deny. The tests use authenticated transcript fixtures and a deliberately passing evaluator.
  • npm test -- --test-concurrency=1: tests 1177, pass 1177, fail 0.
  • Exact-head CI 38462895681: passed on d223d6567c98e29af4fa45e1a9f33fb86baf237c; tests 1177, pass 1177, fail 0.
  • Two clean code, security, and QA review cycles on the unchanged final head. No findings.

Fake process tools are first on PATH for every test. Command strings go only to the parser and policy tests, never to a shell or GitHub. No installed automatic runtime, real-model run, or live merge denial was verified in this component.

@erickb336
erickb336 marked this pull request as ready for review October 13, 2026 20:37
@erickb336
erickb336 merged commit 0f9df78 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 native shell merges before evaluator authorization (T46)

1 participant