Skip to content

fix(watch): honor declared paused status during active pipeline run-step - #6

Merged
karanmrn merged 2 commits into
mainfrom
fm/fm-paused-ignored-during-pipeline
Sep 28, 2026
Merged

karanmrn merged 2 commits into
mainfrom
fm/fm-paused-ignored-during-pipeline

Conversation

@karanmrn

@karanmrn karanmrn commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Fixes false possible wedge stale escalations when a worker reports paused: waiting on no-mistakes pipeline step while the authoritative crew state is still an active validation run-step.
  • pause_state_class() keeps declared pauses on the long recheck cadence when status-log paused: coexists with run-step working, without silencing genuine wedges after the pause line is lifted.
  • Adds regression tests in 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 repeated stale: … possible wedge wakes despite an intentional external wait.

Test plan

  • bin/fm-test-run.sh tests/fm-supervision-events.test.sh — passed
  • bin/fm-lint.sh bin/fm-watch.sh tests/fm-watch-triage.test.sh — passed (ShellCheck 0.11.0 via brew install shellcheck)
  • Full 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 vs main; looks like a pre-existing timing flake (3s wait_numeric_file budget 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.
  • Note: default fm-test-run applies a 900s per-script timeout; use --per-script-timeout-secs 0 for this suite locally (~15m).

Notes

no-mistakes gate refused available agents on this repo tonight; direct-PR per firstmate decision.

Karan Manoharan 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.
@karanmrn
karanmrn merged commit bf26b23 into main Sep 28, 2026
0 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant