Skip to content

fix(bin): pause status across a no-mistakes pipeline step - #1

Merged
sctru merged 1 commit into
mainfrom
fm/fm-brief-pause-on-pipeline
Sep 3, 2026
Merged

sctru merged 1 commit into
mainfrom
fm/fm-brief-pause-on-pipeline

Conversation

@sctru

@sctru sctru commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • The no-mistakes Definition of done now instructs the crew to append paused: waiting on no-mistakes pipeline step right before starting or resuming a pipeline run, and a normal working:/needs-decision:/done: line as soon as control returns.
  • Fixes the recurring false-stale-wake pattern observed in-session: a crew's pane genuinely idles while the pipeline's own agent works in a separate ~/.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 hardcoding paused. bin/fm-promote.sh computes and passes it the same way bin/fm-brief.sh already 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 "append done: ... and stop" - the crew's own turn ends there. AGENTS.md section 7 already says the task itself "then waits for the configured merge authority" after done:; 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 in bin/fm-brief.sh.

Test plan

  • bin/fm-lint.sh (shellcheck + actionlint)
  • tests/fm-brief.test.sh (added test_no_mistakes_dod_instructs_pause_before_pipeline_step and extended test_pause_verb_override_renders_all_brief_scaffolds to assert the new line renders with the configured pause verb)
  • tests/fm-task-delivery.test.sh and tests/fm-control-relaunch.test.sh (exercise fm-promote.sh's DOD rendering path)
  • Note: this box's Node v20.20.2 can't run ~20 test files tracked as gnosis-node22-upgrade; none of them touch fm-brief.sh/fm-dod-lib.sh/fm-promote.sh so they were not needed here, but I did not run them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WEtbAzHZW5FewDFUz86XV7

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
@sctru
sctru merged commit 3225182 into main Sep 3, 2026
9 of 12 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