Repository navigation
feat(brief): workers self-drive into no-mistakes validation - #8
Conversation
The no-mistakes definition of done told workers to append a "done" status line and stop, then wait for firstmate to instruct them to run /no-mistakes. That hand-off stalled every ship task until firstmate sent the instruction by hand.
Now the no-mistakes DOD tells the worker to run /no-mistakes directly and not wait for firstmate. The intermediate stop is gone; the final "done: PR {url} checks green" report after CI green stays.
Only the no-mistakes DOD changes. The direct-PR and local-only variants are unchanged. Add a test that pins the new self-drive wording and the absence of the old wait-for-firstmate line, and update the explicit-mode test to use the new line as its DOD marker.
|
Warning Review limit reached
Next review available in: 49 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Intent
Land a two-line change in bin/fm-brief.sh, firstmate's brief scaffolder: in the generated no-mistakes 'Definition of done' section, workers must proceed directly to validation instead of stopping to wait for firstmate. Replace the two lines that tell the worker to append a 'done: {summary}' status line and stop, then wait for firstmate to instruct them to run /no-mistakes, with two lines telling the worker to run /no-mistakes to validate and ship a PR and not to stop and wait for firstmate. Reason: workers stall at 'done: built' waiting for an instruction the supervisor sends by hand; self-driving into validation removes a round trip on every ship task. Constraints: only the no-mistakes DOD section changes; the direct-PR and local-only DOD variants must remain untouched; keep surrounding lines and heredoc backtick escaping intact. The brief's em dash was rendered as a plain dash to match the file's existing convention and the repo style rule (plain dash, never em dash). Test suite updated: added a contract test pinning the new self-drive wording and the absence of the old wait-for-firstmate line, and updated the existing explicit-mode test's DOD presence marker from the removed line to the new line.
What Changed
bin/fm-brief.shgenerates now tells the worker to run /no-mistakes to validate and ship a PR right away, instead of appending adone: {summary}status line and waiting for firstmate to send the instruction. The direct-PR and local-only variants are unchanged.AGENTS.mdnow says the ship brief has the worker start validation itself, with a separate steer step reserved for workers that stall after their implementation commit.tests/fm-brief.test.shadds a contract test that pins the new self-drive wording and checks the old wait-for-firstmate line is gone, and the explicit-mode test now checks for the new line.Risk Assessment
✅ Low: A two-line wording change in one heredoc branch that matches the stated intent exactly, leaves the other delivery modes and the terminal done: gate untouched, and is pinned by a contract test that exercises the real scaffolder.
Testing
Ran the full fm-brief test suite (20 tests, all pass) covering the new self-drive contract test, then generated real briefs in all three delivery modes with the actual script: the no-mistakes brief now instructs the worker to run /no-mistakes directly without waiting for firstmate, while the direct-PR and local-only definition-of-done sections retain their original stop-and-wait wording; captured all three rendered sections as an evidence artifact.
Evidence: Definition-of-done sections from generated briefs (all three modes)
Source: Definition-of-done sections from generated briefs (all three modes)
===== mode=no-mistakes ===== # Definition of done Delivery contract: mode=no-mistakes The task is complete only when committed on your branch. When you believe it is complete, run /no-mistakes to validate and ship a PR. Do not stop and wait for firstmate to instruct you - proceed directly to validation. ===== mode=direct-PR (unchanged) ===== When it is implemented and committed, push your branch and open a PR withgh-axi, then appenddone: PR {url}to the status file and stop. Do NOT run /no-mistakes. ===== mode=local-only (unchanged) ===== When it is implemented and committed, appenddone: ready in branch ...to the status file and stop.Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-brief.test.sh— all 20 tests pass, including the newtest_no_mistakes_dod_self_drives_into_validationand the updatedtest_ship_mode_is_explicit_not_registryManual end-to-end run: generated real briefs withFM_HOME=<tmp> ./bin/fm-brief.sh <id> demo-proj --mode <mode>for all three modes (no-mistakes, direct-PR, local-only) and inspected each Definition of done sectionVerified viagit diff base..targetthat only the two intended lines in bin/fm-brief.sh changed and the direct-PR/local-only heredoc sections are untouchedCheckedbin/fm-brief.shcontains no em dashes (grep '—'returns nothing) and the worktree is clean after testing✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.