Skip to content

Add managed command checkpoints requiring fresh human approval - #58045

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0b95ff6aab7f8a04b7298c8a4329d1fddf6a603e
Oct 29, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0b95ff6aab7f8a04b7298c8a4329d1fddf6a603e

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Add managed command checkpoints requiring fresh human approval

Why

Managed command policies need to require a human decision independently of automatic review, hook allowances, and saved approvals.

What changed

  • Support decision = "prompt-user" in managed requirements.toml prefix rules, requiring a fresh, one-time human decision for matching commands.
  • Add experimental humanCommand approval requests for clients advertising both experimentalApi and requiredHumanApproval. Accept only accept, decline, or cancel; reject commands when no capable client is available.
  • Restrict responses to capable clients that received the request, and replay pending prompts to compatible clients on reconnect.
  • Enable the capability in the TUI and update protocol schemas and client bindings.

Testing

Add coverage for fresh decisions overriding saved allowances, hook allowances, and automatic review, plus child-thread approval routing and rejection of responses from incompatible or unrelated clients.

## Why

Managed command policies need to require a human decision independently of automatic review, hook allowances, and saved approvals.

## What changed

- Support `decision = "prompt-user"` in managed `requirements.toml` prefix rules, requiring a fresh, one-time human decision for matching commands.
- Add experimental `humanCommand` approval requests for clients advertising both `experimentalApi` and `requiredHumanApproval`. Accept only `accept`, `decline`, or `cancel`; reject commands when no capable client is available.
- Restrict responses to capable clients that received the request, and replay pending prompts to compatible clients on reconnect.
- Enable the capability in the TUI and update protocol schemas and client bindings.

## Testing

Add coverage for fresh decisions overriding saved allowances, hook allowances, and automatic review, plus child-thread approval routing and rejection of responses from incompatible or unrelated clients.

GitOrigin-RevId: 0b95ff6aab7f8a04b7298c8a4329d1fddf6a603e
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/0b95ff6aab7f8a04b7298c8a4329d1fddf6a603e branch from cf3d2bc to 9cc14e7 Compare October 29, 2026 11:24
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-29T11:24:05.665162Z cf3d2bc PR opened
ℹ️ 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.

@copyberry
copyberry Bot merged commit 9cc14e7 into main Oct 29, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/0b95ff6aab7f8a04b7298c8a4329d1fddf6a603e branch October 29, 2026 11:24
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 29, 2026

This branch was previously deployed

1 inactive deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.