Skip to content

feat(brief): workers self-drive into no-mistakes validation - #8

Merged
EvanAgee merged 2 commits into
mainfrom
fm/fm-land-selfdrive-brief
Aug 20, 2026
Merged

EvanAgee merged 2 commits into
mainfrom
fm/fm-land-selfdrive-brief

Conversation

@EvanAgee

Copy link
Copy Markdown
Owner

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

  • The no-mistakes "Definition of done" section that bin/fm-brief.sh generates now tells the worker to run /no-mistakes to validate and ship a PR right away, instead of appending a done: {summary} status line and waiting for firstmate to send the instruction. The direct-PR and local-only variants are unchanged.
  • AGENTS.md now 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.sh adds 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 with gh-axi, then append done: PR {url} to the status file and stop. Do NOT run /no-mistakes. ===== mode=local-only (unchanged) ===== When it is implemented and committed, append done: ready in branch ... to the status file and stop.

===== mode=no-mistakes : Definition of done section from generated brief =====
# 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.

You drive no-mistakes by responding to its gates, not by implementing fixes.
Follow the guidance no-mistakes itself provides for the mechanics: it loads when you invoke /no-mistakes, and `no-mistakes axi run --help` plus the `help` lines in each `axi` response are authoritative and version-matched to the installed binary.

===== mode=direct-pr : Definition of done section from generated brief =====

===== mode=local-only : Definition of done section from generated brief =====
# Definition of done
Delivery contract: mode=local-only
This task ships **local-only**: no remote, no PR, no pipeline.
The task is complete only when committed on your branch `fm/brief-evi-local-only`. Do NOT push, do NOT open a PR, do NOT merge.
Keep your branch a clean fast-forward onto the current default branch - if `main` has advanced, rebase onto it so the eventual merge stays a fast-forward.
When it is implemented and committed, append `done: ready in branch fm/brief-evi-local-only` to the status file and stop.
The configured merge authority approves the ready branch, then firstmate merges it into local `main` through the guarded fast-forward path.

===== mode=direct-PR : Definition of done section from generated brief =====
# Definition of done
Delivery contract: mode=direct-PR
This task ships **direct-PR**: you raise the PR yourself, without the no-mistakes pipeline.
The task is complete only when committed on your branch.
When it is implemented and committed, push your branch and open a PR with `gh-axi`, then append `done: PR {url}` to the status file and stop.
Do NOT run /no-mistakes. The configured merge authority decides whether to merge the PR; firstmate relays the outcome.

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 new test_no_mistakes_dod_self_drives_into_validation and the updated test_ship_mode_is_explicit_not_registry
  • Manual end-to-end run: generated real briefs with FM_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 section
  • Verified via git diff base..target that only the two intended lines in bin/fm-brief.sh changed and the direct-PR/local-only heredoc sections are untouched
  • Checked bin/fm-brief.sh contains 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.

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.
@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@EvanAgee, you've reached your PR review limit, so we couldn't start this review.

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 @coderabbitai review or push new commits to the PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 70e5a841-c11b-4207-bbf1-ee2af1ba8d12

📥 Commits

Reviewing files that changed from the base of the PR and between b8e7201 and bf5d365.

📒 Files selected for processing (3)
  • AGENTS.md
  • bin/fm-brief.sh
  • tests/fm-brief.test.sh

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@EvanAgee
EvanAgee merged commit 9475475 into main Aug 20, 2026
13 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