Repository navigation
fix(watch): honor declared paused status during active pipeline run-step - #6
Merged
Merged
Conversation
added 2 commits
September 28, 2026 04:28
…riage. When a crew reports paused while no-mistakes still attributes a working run-step, pause_state_class now keeps the long recheck cadence instead of treating the pane as provably working and wedge-escalating every few minutes. Regression tests cover pipeline waits, resume to wedge detection, and unchanged live parked-worker churn behavior.
Mirror the busy declared-pause fixture so phase C primes the wedge timer instead of exiting on rearm-resurface.
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
possible wedgestale escalations when a worker reportspaused: waiting on no-mistakes pipeline stepwhile the authoritative crew state is still an active validation run-step.pause_state_class()keeps declared pauses on the long recheck cadence when status-logpaused:coexists with run-stepworking, without silencing genuine wedges after the pause line is lifted.tests/fm-watch-triage.test.sh.Bug
Workers waiting on an in-flight no-mistakes step often append a
paused:pipeline-wait line while the run-step still reads as working. The watcher treated that as working-only stale absorption and restarted the ~4 minute wedge timer, producing repeatedstale: … possible wedgewakes despite an intentional external wait.Test plan
bin/fm-test-run.sh tests/fm-supervision-events.test.sh— passedbin/fm-lint.sh bin/fm-watch.sh tests/fm-watch-triage.test.sh— passed (ShellCheck 0.11.0 viabrew install shellcheck)bin/fm-test-run.sh --per-script-timeout-secs 0 tests/fm-watch-triage.test.sh— failed=1 after ~867s:test_nonterminal_stale_repairs_missing_or_corrupt_timer(matching stale suppressor with missing timer did not initialize stale-since). That case passes in isolation and is unchanged vsmain; looks like a pre-existing timing flake (3swait_numeric_filebudget vs slow watcher startup after a long suite). New pause/run-step regressions (test_nonterminal_paused_rechecks_authoritative_state,test_paused_authoritative_working_preserves_wedge_timer) passed in the same run.fm-test-runapplies a 900s per-script timeout; use--per-script-timeout-secs 0for this suite locally (~15m).Notes
no-mistakes gate refused available agents on this repo tonight; direct-PR per firstmate decision.