Repository navigation
docs(unstable-v2): say a failed permission request is not approval - #2883
Merged
Merged
Conversation
The tool calls page fails closed for a `cancelled` outcome, an unknown outcome and an `optionId` that matches no option. It said nothing about an error response to `session/request_permission`, or a connection that ends while the request is pending. Say that the Agent MUST NOT treat either as approval, on the page and in the method's schema description. After a connection loss the Agent can still reestablish the request, as the session setup page describes.
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.
Summary
The v2 tool calls page says what is not approval of a permission request: a
cancelledoutcome, an outcome the Agent does not understand, and anoptionIdthat matches no offered option. Two cases were missing:session/request_permissionwith an error responseBoth were implied, since only a matching
selectedoption approves, but neither was stated.Changes
draft/copy.session/request_permissionmethod description states the same rule. This regeneratesschema/v2/schema.json,schema/v2/schema.unstable.jsonand bothschema.mdxpages. Only description text changes.Wording
The rule uses "MUST NOT treat as approval", the phrase the page already uses for an outcome the Agent does not understand. It does not use "treat the request as not approved", which the pages use where a request is over, such as cancelled work or an
optionIdthat matches no option. After a connection loss the request need not be over: the session setup page says the Agent SHOULD reestablish it or safely resolve the wait. The new text links there.Checks
cargo clippyin the three configurations fromnpm run check,cargo test --all-features, and rustdoc with-D warningspass.cargo fmt, the spellcheck script, and the link check pass.