Skip to content

docs(protocol): use one keyword for late answers after cancellation - #2944

Merged
benbrandt merged 1 commit into
mainfrom
docs/v2-late-answer-keyword
Nov 20, 2026
Merged

benbrandt merged 1 commit into
mainfrom
docs/v2-late-answer-keyword

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

An answer to a permission request or elicitation can arrive after the work that asked for it was cancelled. The rule that such an answer does not restart that work was stated with different keywords:

  • SHOULD or SHOULD NOT on the v2 prompt lifecycle, cancellation and elicitation pages, in the migration guide and in three schema descriptions.
  • MUST NOT on the v1 and v2 Subagents pages and in the Subagent Sessions RFD.
  • A lowercase "should" in the v2 state transition examples.

This uses SHOULD NOT for restarting work in every place.

Why SHOULD NOT

  • The rule covers only a request that belonged to the cancelled work. Answers for surviving background work, for an elicitation the Agent still needs, and for a child that keeps running are not late in this sense.
  • For a late elicitation answer, the Agent can still keep the information, and an external URL flow can still finish on its own. So the rule cannot be "ignore the answer".
  • The authorization half keeps its stronger keyword. For a pending permission request of cancelled work, the Agent already MUST stop waiting and treat it as not approved. For a child, a late answer still MUST NOT permit a new task.

Changes

  • v2 Subagents page, stable and draft, and v1 Subagents page, stable and draft. The sentence is now: "The Agent SHOULD NOT use it to restart cancelled or abandoned work, and MUST NOT use it to permit a new task for the same child."
  • Subagent Sessions RFD: the same change in the RFD's wording, with a revision entry.
  • v2 prompt lifecycle page, stable and draft: the examples table has "late answers SHOULD NOT resume that work".

The places that already said SHOULD or SHOULD NOT are unchanged. No schema description changes, so nothing is regenerated.

v1

The v1 Subagents page became stable in #2939, which is not in a release yet. This lowers one keyword on it before the first release that includes it.

For implementers

  • An Agent that never restarts cancelled work from a late answer needs no change.
  • Clients need no change.

Checks

  • Prettier and the spell check pass.

The rule that an answer arriving after cancellation does not restart the
cancelled work was a SHOULD or SHOULD NOT on the prompt lifecycle,
cancellation and elicitation pages, a MUST NOT on the Subagents pages
and in the Subagent Sessions RFD, and a lowercase "should" in the state
transition examples.

Use SHOULD NOT for restarting work everywhere. The Subagents pages and
the RFD keep MUST NOT for the authorization half: a late answer does not
permit a new task for the same child. The examples table gets the
capitalized keyword.

The v1 Subagents page changes too. It became stable in #2939, which has
not been released.
@benbrandt
benbrandt requested a review from a team as a code owner November 20, 2026 19:34
@benbrandt
benbrandt enabled auto-merge (squash) November 20, 2026 19:34
@benbrandt
benbrandt merged commit bde1e35 into main Nov 20, 2026
12 checks passed
@benbrandt
benbrandt deleted the docs/v2-late-answer-keyword branch November 20, 2026 19:37
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