Skip to content

feat(core): enforce tool permissions with four approval modes - #378

Merged
lg2m merged 8 commits into
mainfrom
feat/permission-dispatch
Oct 20, 2026
Merged

lg2m merged 8 commits into
mainfrom
feat/permission-dispatch

Conversation

@lg2m

@lg2m lg2m commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

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 --approval explicitly 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T19:57:55.663955Z 6a5d9c7 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread crates/qq-core/src/workspace/access.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread crates/qq-core/src/tools/edit.rs Resolved
Comment thread src/cli.rs Resolved
@lg2m lg2m changed the title feat(core): enforce permission ceilings and add strict approval feat(core): enforce tool permissions with four approval modes Oct 20, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread crates/qq-core/src/sessions/codec.rs Resolved
Comment thread crates/qq-core/src/approval.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread crates/qq-core/src/sessions/commands.rs Resolved
Comment thread src/cli.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread crates/qq-core/src/tools/edit.rs Resolved
@lg2m
lg2m merged commit 9f97be2 into main Oct 20, 2026
8 checks passed
@lg2m
lg2m deleted the feat/permission-dispatch branch October 20, 2026 20:03
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.

1 participant