Repository navigation
docs(unstable-v2): say protocol-level notifications are optional to act on - #2893
Merged
Merged
Conversation
…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
deleted the
docs/v2-protocol-level-notification-description
branch
November 19, 2026 21:28
Merged
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
Two v2 texts said protocol-level notifications must be implemented, and then said a receiver is free to ignore them:
ProtocolLevelNotificationschema description: "notifications that all sides are expected to implement".The cancellation page says acting on
$/cancel_requestis optional.Changes
$/. 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_requestnotification. An Agent or Client may ignore a$/notification it cannot act on."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.jsonand both v2schema.mdxpages.Not changed
$/cancel_requeston the cancellation page and in the notification's own description.Checks
cargo fmtand the spell check pass.unstable_protocol_v2.