Skip to content

docs(unstable-v2): say protocol-level notifications are optional to act on - #2893

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-protocol-level-notification-description
Nov 19, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-protocol-level-notification-description

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

Two v2 texts said protocol-level notifications must be implemented, and then said a receiver is free to ignore them:

  • The ProtocolLevelNotification schema description: "notifications that all sides are expected to implement".
  • The "Protocol Level" intro on the generated schema page: "the interface that ACP-compliant agents and clients must both implement".

The cancellation page says acting on $/cancel_request is optional.

Changes

  • Schema description: now reads "Protocol-level notifications, which either side can send. Their methods start with $/. Acting on one is optional, because it might not be implementable in every Client or Agent. For example, a single-threaded synchronous implementation can do little to react to a $/cancel_request notification. An Agent or Client may ignore a $/ notification it cannot act on."
  • Schema page intro: uses the same text. The generator shared this string between v1 and v2, so it is now split by version.
  • GeneralMethodNames: two Rust doc comments called these "methods that agents handle". They now say both Agents and Clients handle them.

The schema change is description text only. It regenerates schema/v2/schema.json, schema/v2/schema.unstable.json and both v2 schema.mdx pages.

Not changed

  • The v1 description and the v1 schema page, which carry the same text. The generated v1 files are byte-identical.
  • The rules for $/cancel_request on the cancellation page and in the notification's own description.

Checks

  • Clippy, the tests, rustdoc, Prettier, cargo fmt and the spell check pass.
  • The generator builds and its tests pass with and without unstable_protocol_v2.
  • Regenerating the schema a second time gives no diff.

…ct on

The `ProtocolLevelNotification` description said all sides are expected
to implement these notifications, and the Protocol Level intro of the
schema page said Agents and Clients must both implement them. Both then
said a receiver is free to ignore any `$/` notification. The
cancellation page says acting on `$/cancel_request` is optional.

Drop the "expected to implement" and "must both implement" claims from
the v2 description and the v2 schema page intro. The v1 text is
unchanged.

Also correct the `GeneralMethodNames` doc comments, which called these
agent methods.
@benbrandt
benbrandt requested a review from a team as a code owner November 19, 2026 20:14
@benbrandt
benbrandt merged commit bf740f7 into main Nov 19, 2026
13 checks passed
@benbrandt
benbrandt deleted the docs/v2-protocol-level-notification-description branch November 19, 2026 21:28
@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