Repository navigation
feat(core): enforce tool permissions with four approval modes - #378
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cea301e455
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 72ce4c92f4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3d330d52ea
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 220f4b5d2e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1e0e44d362
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
QQ has four approval modes: Read-only, Ask, Auto (default), and Full. Ask requires fresh human approval for each non-read action; stored grants and model reviewers cannot bypass it. Auto keeps reusable grants. Full runs without approval prompts within configured execution boundaries. Write-child supervision remains internal. Resume preserves the stored mode unless
--approvalexplicitly overrides it.Dispatch enforces parent permission ceilings and rechecks them before accepting pending human approvals. Authority changes invalidate stale reviewer approvals; changing only reviewer preference does not. Built-in writes protect policy, Git and configured pack resources, retain validated directory handles, and reject completed namespace changes. Embedded callers retain their configured tool ceiling.
Verification: CI passed and Codex gave 👍 with no findings on
6a5d9c71. Focused checks include 142 approval/delegation tests, 98 headless/CLI tests, 32 file-tool tests, and all 10 real-binary smoke scenarios. Clippy with warnings denied, formatting and lint pass. Windows directory identity code was not executed locally.Protocol 37 and descriptor 16 record the contract; historical descriptor hashes and version-15 projected replay remain valid. No new dependencies or database schema changes. Strict/Supervised aliases and legacy-store migrations are intentionally absent at the owner's request. These checks provide no OS namespace isolation: an outside process can still rename a directory after final validation. Shell and external MCP containment are outside this change.