Repository navigation
docs(unstable-v2): require the unknown state for any session - #2945
Merged
Merged
Conversation
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.
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
The Subagents page says an Agent MUST report
unknownwhen 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 theUnknownStateUpdatedescription 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
runningfor work it can no longer see misleads the Client the same way for a root session as for a child.Changes
unknown. Silence alone is not lost observability."UnknownStateUpdatedescription in the v2 schema: the same rule with MUST, with the schema and the schema reference pages regenerated.unknownfor a child also folded in the mirror on the parent'ssubagent_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
unknownfor a root session too. It already had to for a child.unknown.unknownfor any session.Checks
cargo fmt, Prettier and the spell check pass.