Repository navigation
Refuse recognized native shell merges before evaluation (T46) - #208
Merged
Merged
Conversation
erickb336
marked this pull request as ready for review
October 13, 2026 20:37
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 #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.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.d223d6567c98e29af4fa45e1a9f33fb86baf237c; tests 1177, pass 1177, fail 0.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.