Repository navigation
fix(bin): pause status across a no-mistakes pipeline step - #1
Merged
Merged
Conversation
A crew that invokes /no-mistakes genuinely idles while the pipeline's own agent works in its separate worktree. The watcher reads the crew's idle pane as a possible wedge and raises a stale wake on a short cadence, which previously required firstmate to steer each crew to paused: by hand after the alarms already fired. Fold that instruction into the no-mistakes Definition of done so every no-mistakes crew emits it up front. fm_dod_block now takes the configured pause verb so the new line matches whatever the brief's own status protocol renders; fm-promote.sh computes and passes it the same way fm-brief.sh does. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WEtbAzHZW5FewDFUz86XV7
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
paused: waiting on no-mistakes pipeline stepright before starting or resuming a pipeline run, and a normalworking:/needs-decision:/done:line as soon as control returns.~/.no-mistakes/worktrees/<hash>/<run-id>/worktree, and the watcher was reading that idle pane as a possible wedge roughly every four minutes, costing a full supervision turn each time to diagnose the (always identical) cause.fm_dod_block(bin/fm-dod-lib.sh) now takes the configured pause verb as a third argument, so the new line matches whatever the calling brief's own status protocol renders instead of hardcodingpaused.bin/fm-promote.shcomputes and passes it the same waybin/fm-brief.shalready does.The second recurring case (a
done:crew awaiting a captain merge)Per the task, this was resolved three different ways in one session: steering to
paused:, holding the backlog item--kind captain, and stopping the agent once its branch was verified on the remote.I did not add any of these to the generated brief. Once a crew reaches its
done:gate, the existing contract (both the generic Rules section and every mode's Definition of done) already tells it to "appenddone: ...and stop" - the crew's own turn ends there.AGENTS.mdsection 7 already says the task itself "then waits for the configured merge authority" afterdone:; that waiting is firstmate's own supervision posture toward an idle worker it chose not to tear down yet, not something the crew is doing or can be told to do differently in its own contract. Whether to actively stop that idle agent process (option 3) or otherwise avoid treating its stillness as a wedge is a firstmate-side supervision decision under section 8, not a wording gap in the scaffold the crew reads. Adding a scaffold instruction here would tell the crew to do something after it has already stopped, which doesn't apply. If this pattern still produces real false-stale wakes, the fix belongs in firstmate's own post-done:supervision handling, not inbin/fm-brief.sh.Test plan
bin/fm-lint.sh(shellcheck + actionlint)tests/fm-brief.test.sh(addedtest_no_mistakes_dod_instructs_pause_before_pipeline_stepand extendedtest_pause_verb_override_renders_all_brief_scaffoldsto assert the new line renders with the configured pause verb)tests/fm-task-delivery.test.shandtests/fm-control-relaunch.test.sh(exercisefm-promote.sh's DOD rendering path)gnosis-node22-upgrade; none of them touchfm-brief.sh/fm-dod-lib.sh/fm-promote.shso they were not needed here, but I did not run them.🤖 Generated with Claude Code
https://claude.ai/code/session_01WEtbAzHZW5FewDFUz86XV7