fix: rank blocking closing gates above external waits - #396
Merged
Merged
Conversation
matthias-scale
added a commit
that referenced
this pull request
Sep 24, 2026
Cold-cache runs finish right at the 15-minute limit and get cancelled in the last step (#396, #399). Claude-Session: https://claude.ai/code/session_01TmcjGzo6LrkTRHph3f241E
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.
A pane whose closing block had blocking gates plus a
Waiting:line reportedworking, so the sidebar hid a real blocker (ub1wG:p6, arbitrationclosing_external_wait, 3 gates, idle screen).Changes
closing_block.pyherdr_state,herdr_status.pystate_for): blocking gates and Waiting-on-you rank above external waits and running agents.closing_task_projection): pending human input on a non-working screen projects Blocked before the external-wait branch._EXTERNAL_WAIT_RE/_WAITING_ON_YOU_RE: a wait also ends at. Waiting on you/; waiting on you, so the tail is no longer swallowed into the wait text.Evidence
Corpus: 13,227 closing blocks from 14 days of Claude/Codex transcripts on ub1, ub2, mbpro.
working; the next human turn answered them at a rate close to plain gates (41% vs 61%), versus 13% for wait-only blocks.blocked(was allworking); swallowed wait tails 53 → 1; wait-only blocks stayworking.Tests
pending_human_input_outranks_external_wait_on_an_idle_screen.test_report_emits_v2_arrays_and_blocked_channel_with_agents,test_non_gate_action_points_block_even_when_an_agent_is_running,test_report_emits_lifecycle_fields_while_blocked_by_human_input.https://claude.ai/code/session_01TmcjGzo6LrkTRHph3f241E