Repository navigation
Stall clock skips time at a hard stop; stall notices give the real wait - #321
Merged
Merged
Conversation
A session that asked through the server and waited hours for the answer was flagged as stalled seconds after the operator answered: its wait start predated the question. Clear the wait start while the item is at a hard stop or has an open question, so the clock starts at the answer. Planners at a plan question are no longer flagged either. Stall notices now give the wait's real length and say the session did not ask through the server. Co-Authored-By: Claude Opus 5.5 <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.
Objective
The stall notice no longer fires right after the operator answers a question. A wait spent at a hard stop (needs-human, or an open question on the item, including a planner's plan question) no longer counts toward the 10-minute stall: the clock starts when the question is answered. Stall notices give the real length of the wait instead of the
10m0sthreshold, and say the session did not ask through the server. The trigger was BOGA3-467, flagged 7 seconds after its answer to a question it had asked 6 hours earlier.Gates
./dev test(every required lane)internal/controlrun/answered_test.go: replays the incident (ask, wait 40m, resolve, one pass), expects no notice, then a later stall timed from the answer. Fails with the fix disabled.internal/reconcile/decide_test.go: a planner waiting on its plan question is not flagged.internal/reconcile/text_test.go: the real wait (6h16m), the planner's wait, and the new wording.internal/controlrun/dialog_test.go: matches the dialog text without the fixed10m0s.Rulings
None
Review
Verdict: APPROVED, three optional findings.internal/reconcile/text_test.go("the planner demo-1 has waited for input for 10m: its harness says…"), which is the layer that owns the text.waitedForgives "" for a wait under 30s and "1h0m" for an exact hour: a stall needs at least 10m, so "" cannot happen, and "1h0m" reads fine.internal/controlrun/view.go(keepObservationsclearsWaitingSincewhile the item is at a hard stop) andinternal/reconcile/decide.go(the planner branch now checksAtHardStop).Deviations
None
🤖 Generated with Claude Code