Repository navigation
[codex] support reviewer overrides in execpolicy rules - #31061
Draft
ssetty-oai wants to merge 1 commit into
Draft
ssetty-oai wants to merge 1 commit into
ssetty-oai wants to merge 1 commit into
Conversation
romek-codes
added a commit
to romek-codes/nexusystem
that referenced
this pull request
Nov 12, 2026
…o-review - Patch codex 0.165.0 with a local port of openai/codex#31061 so prefix_rule(..., reviewer = "user") bypasses auto-review - Patch: MCP tools with approval_mode = "prompt" also go to the user - guard.rules: git push, gh pr create/merge/ready, gh release now prompt the user instead of being forbidden - guard.nix: only block `git <opts> push` for Codex (prefix rules miss it) - Atlassian MCP: prompt by default, known read tools auto (write tool names drift between endpoints) - Deploy .rules as real files: Codex skips symlinked rule files, so the previous rules were never loaded - Point codex-acp at the patched codex
romek-codes
added a commit
to romek-codes/nexusystem
that referenced
this pull request
Nov 12, 2026
…o-review - Patch codex 0.165.0 with a local port of openai/codex#31061 so prefix_rule(..., reviewer = "user") bypasses auto-review - Patch: MCP tools with approval_mode = "prompt" also go to the user - guard.rules: git push, gh pr create/merge/ready, gh release now prompt the user instead of being forbidden - guard.nix: only block `git <opts> push` for Codex (prefix rules miss it) - Atlassian MCP: prompt by default, known read tools auto (write tool names drift between endpoints) - Deploy .rules as real files: Codex skips symlinked rule files, so the previous rules were never loaded - Point codex-acp at the patched codex
This branch has not been deployed
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.
Summary
reviewer = "user" | "auto_review"to promptprefix_rules and requirements TOMLWhy
Prompt rules could require approval but could not choose human review when a thread defaulted to Auto-review.
Semantics
decision = "prompt"forbidden > user > auto_review > inherited reviewerapprovals_reviewerreviewer = "user"overrides strict Auto-review for that requestTests
cargo test -p codex-execpolicycargo test -p codex-config requirements_exec_policy --libcargo test -p codex-core exec_approval_requirement_carries_ --libcargo test -p codex-core handle_exec_approval_routes_ --libcargo test -p codex-core exec_policy_reviewer_override_respects_managed_reviewer_requirements --libcargo test -p codex-protocolcargo clippy --fix --tests --allow-dirty -p codex-execpolicy -p codex-config -p codex-core -p codex-protocol -p codex-mcp-servercargo clippy --tests -p codex-core -p codex-execpolicyNote:
cargo test -p codex-core --libwas attempted but the test process aborted in unrelatedagent::control::tests::resume_agent_releases_slot_after_resume_failurewith a stack overflow.