Skip to content

docs(unstable-v2): require the unknown state for any session - #2945

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

benbrandt merged 1 commit into
mainfrom
docs/v2-unknown-state-keyword

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

The Subagents page says an Agent MUST report unknown when it can no longer observe a child's foreground work, and that child state has the same meaning as for any session. The prompt lifecycle page and the UnknownStateUpdate description stated the same rule with no keyword, so it was not a requirement for a session in general.

This uses MUST in all three places. An Agent that keeps reporting running for work it can no longer see misleads the Client the same way for a root session as for a child.

Changes

  • Prompt lifecycle page, stable and draft: "When the Agent can no longer observe a session's foreground work, it MUST report unknown. Silence alone is not lost observability."
  • UnknownStateUpdate description in the v2 schema: the same rule with MUST, with the schema and the schema reference pages regenerated.
  • Subagents page, stable and draft: the sentence that requires unknown for a child also folded in the mirror on the parent's subagent_update. The mirror is a SHOULD on the same page, so it gets its own sentence with that keyword.

The Subagent Sessions RFD already has the MUST for a child and the SHOULD for the mirror, so it needs no change.

v1

Unchanged. v1 reports a child's state only on the parent's subagent_update, and its Subagents page already has the MUST.

For implementers

  • An Agent that can lose sight of a session's foreground work, for example an adapter whose connection to its runtime drops while ACP stays connected, now has to report unknown for a root session too. It already had to for a child.
  • Silence is not a reason to report unknown.
  • Clients need no change. They already handle unknown for any session.

Checks

  • The tests, cargo fmt, Prettier and the spell check pass.
  • Regenerating the schema a second time gives no diff.

The Subagents page says an Agent MUST report `unknown` when it can no
longer observe a child's foreground work, and that child state has the
same meaning as for any session. The prompt lifecycle page and the
`UnknownStateUpdate` description stated the same rule with no keyword.

Use MUST in all three places. An Agent that keeps reporting `running`
for work it can no longer see misleads the Client the same way for a
root session as for a child.

The Subagents sentence also folded the parent mirror into its MUST. The
mirror is a SHOULD on the same page, so it gets its own sentence.
@benbrandt
benbrandt requested a review from a team as a code owner November 20, 2026 19:40
@benbrandt
benbrandt enabled auto-merge (squash) November 20, 2026 19:41
@benbrandt
benbrandt merged commit bc372a4 into main Nov 20, 2026
15 checks passed
@benbrandt
benbrandt deleted the docs/v2-unknown-state-keyword branch November 20, 2026 19:45
@acp-release-bot acp-release-bot Bot mentioned this pull request Nov 20, 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