Skip to content

docs(unstable-v2): say a failed permission request is not approval - #2883

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-permission-failure-not-approval
Nov 19, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-permission-failure-not-approval

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

The v2 tool calls page says what is not approval of a permission request: a cancelled outcome, an outcome the Agent does not understand, and an optionId that matches no offered option. Two cases were missing:

  • the Client answers session/request_permission with an error response
  • the connection ends before the Client answers

Both were implied, since only a matching selected option approves, but neither was stated.

Changes

  • Tool calls page: the Agent MUST NOT treat an error response as approval, and the same holds when the connection ends before the Client answers. Changed in the stable page and its draft/ copy.
  • Schema description: the session/request_permission method description states the same rule. This regenerates schema/v2/schema.json, schema/v2/schema.unstable.json and both schema.mdx pages. 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 optionId that 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 clippy in the three configurations from npm run check, cargo test --all-features, and rustdoc with -D warnings pass.
  • Regenerating the schema a second time produces no diff.
  • Prettier, cargo fmt, the spellcheck script, and the link check pass.

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.
@benbrandt
benbrandt requested a review from a team as a code owner November 19, 2026 09:40
@benbrandt
benbrandt enabled auto-merge (squash) November 19, 2026 09:40
@benbrandt
benbrandt merged commit eda6850 into main Nov 19, 2026
13 checks passed
@benbrandt
benbrandt deleted the docs/v2-permission-failure-not-approval branch November 19, 2026 09:44
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 19, 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