Skip to content

docs(unstable-v2): make explicit permission rejection binding - #2930

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-permission-rejection
Nov 20, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-permission-rejection

Conversation

@benbrandt

Copy link
Copy Markdown
Member

A Client sends selected when the user clicks Reject, just as it does when the user clicks Allow. The previous wording required an Agent to stop after cancelled, but only recommended honoring a selected option's known kind.

This makes the rule explicit for session/request_permission: the Agent must look up optionId in the options it offered for that request. Selecting reject_once or reject_always means the Agent must not perform the requested operation. Both deny it now; remembering the choice affects later operations. An unoffered ID or a kind or outcome the Agent does not understand is not approval. Denying one operation does not require ending the session.

The permission example and prompt lifecycle diagram now show the rejection path. The baseline, Draft, migration guide, RFD and schema descriptions agree. There is no change to the wire format or v1.

Validation: npm run generate, npm run check, the baseline-v2 generator and permission tests, and Mintlify validation and link checks for the changed pages. In five v2 stdio cases against codex-acp with a local mock model, only allow_once wrote a marker file; reject_once, cancelled, an unoffered ID, and an unknown outcome did not. That command did not offer reject_always. Separately, the adapter's approval-event suite passed, including its test that reject_always sends the provider a persistent denial.

@benbrandt
benbrandt requested a review from a team as a code owner November 20, 2026 11:34
@benbrandt
benbrandt enabled auto-merge (squash) November 20, 2026 11:34
@benbrandt
benbrandt merged commit c5ab7cd into main Nov 20, 2026
13 checks passed
@benbrandt
benbrandt deleted the docs/v2-permission-rejection branch November 20, 2026 11:38
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 20, 2026
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