Repository navigation
docs(unstable-v2): make explicit permission rejection binding - #2930
Merged
Merged
Conversation
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.
A Client sends
selectedwhen the user clicks Reject, just as it does when the user clicks Allow. The previous wording required an Agent to stop aftercancelled, but only recommended honoring a selected option's knownkind.This makes the rule explicit for
session/request_permission: the Agent must look upoptionIdin the options it offered for that request. Selectingreject_onceorreject_alwaysmeans 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, onlyallow_oncewrote a marker file;reject_once,cancelled, an unoffered ID, and an unknown outcome did not. That command did not offerreject_always. Separately, the adapter's approval-event suite passed, including its test thatreject_alwayssends the provider a persistent denial.