fix(agents): unattended turn brief matches how waiting actually works (v0.447.1) - #831
Merged
Merged
Conversation
… (v0.447.1) Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Audit of
UNATTENDED_TURN_BRIEFagainst the code.False claims fixed
task_wait"survives your turn ending" — it blocks in-turn (TASK_WAIT_S900s on unattended) and returns "still running"; a completion never resumes an exited caller (v0.375.0).ask_human"keeps your session alive while the card is pending" — unattended waitsUNATTENDED_ASK_WAIT_S(120s) then parks; ending the run cancels the question. Durable path:task_updateblocked +blockedOn: human(carries the ask since v0.444.2).BashOutput→TaskOutput(legacy alias in claude 2.1.259/2.1.274, verified on the boxes).Contradiction removed: it forbade polling loops outright while
WAITING_BRIEF(both lanes) prescribes short bounded polls — now it only forbids a loop left running across the turn boundary.Added: background-work grace ends at
report(markTurnIdleonly defersstatus='running'); a non-dispatched task is a proposal, not a continuation.Tests: turn-idle-background-guard 40/40, waiting-brief 18/18, context-injection 37/37,
test:governancegreen.🤖 Generated with Claude Code