Skip to content

fix(bin): require mr-description skill for direct-PR and no-mistakes DODs - #4

Merged
alandomio merged 2 commits into
mainfrom
fm/fm-brief-mr-skill
Aug 31, 2026
Merged

alandomio merged 2 commits into
mainfrom
fm/fm-brief-mr-skill

Conversation

@alandomio

@alandomio alandomio commented Aug 28, 2026 •

Copy link
Copy Markdown
Owner

No tracked ticket — captain instruction (2026-08-28, verbatim): "When the agents create mr description, they always NEED to use mr-description skill."

Adds a structural requirement to bin/fm-brief.sh's generated ship brief: the direct-PR and no-mistakes definition-of-done variants now instruct the crewmate to write the merge/pull-request description — and any later revision to it, including a review-fix revision — with the mr-description skill, rather than leaving that to whichever worker remembers.

Why it matters: today this only lived in one home's captain preferences, so it depended on firstmate remembering to add it to each brief by hand. Baking it into the scaffold makes it structural: every future direct-PR/no-mistakes ship task carries the requirement whether or not anyone remembers to say so.

Scoped narrowly on purpose: the scout contract (produces a report, never opens a PR) and the local-only variant (stops at a ready branch, no PR) are untouched, since neither ever writes a merge/pull-request description.

Change
File Change
bin/fm-brief.sh +3/-1: one line added to the direct-PR DOD; one bullet added to the no-mistakes DOD's firstmate-specific-rules list (renumbered "Two" → "Three")
tests/fm-brief.test.sh +42: new test_mr_description_skill_required_for_pr_modes

Both additions name the mr-description skill only — no restatement of the title convention, the collapsible Change/Validation/Ticket-deviations/Follow-ups layout, the size tiers, or the per-repo Validation flavor the skill itself owns, so this stays correct if that skill's structure changes later. Both explicitly cover revising an existing description, not only writing the first one, since a review-fix cycle is exactly where the rule would otherwise slip.

Validation
  • bash tests/fm-brief.test.sh — full 20-test suite passes, including the new test.
  • Regression-checked the new test against the pre-change commit (b6d99cd's bin/fm-brief.sh): fails with "direct-PR brief did not require the mr-description skill," confirming it's a real behavior guard and not a vacuous pass.
  • Generated all four ship-brief shapes (--mode direct-PR, --mode no-mistakes, --mode local-only, --scout) end to end against a scratch FM_HOME and read each brief.md directly: the requirement appears verbatim in direct-PR and no-mistakes, and is completely absent from local-only and scout.
  • bin/fm-lint.sh ShellCheck pass is clean on both changed files.
  • This MR's own description was written with the mr-description skill, per the same captain instruction this change encodes.

🤖 Generated with Claude Code

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 (full suite, 20 tests including the new test_mr_description_skill_required_for_pr_modes) — all pass
  • Regression check: checked out base commit's bin/fm-brief.sh and reran the new test — it fails with 'direct-PR brief did not require the mr-description skill', then restored target commit's file and reran — passes, proving real behavior change
  • Manual end-to-end generation: ran bin/fm-brief.sh for --mode direct-PR, --mode no-mistakes, --mode local-only, and --scout against a scratch FM_HOME, then inspected each generated data/<id>/brief.md directly
✅ **Document** - passed

✅ No issues found.

⚠️ **Lint** - 1 warning
  • ⚠️ linter found issues (exit code 1)
✅ **Push** - passed

✅ No issues found.

Alan Domio added 2 commits August 28, 2026 16:05
…kes ship briefs

Captain's standing instruction: every merge/pull request description, including
a later review-fix revision, must go through the mr-description skill rather
than being hand-written. Scaffold it into fm-brief.sh's definition-of-done for
the two ship modes that actually open one; local-only and scout are untouched
since neither opens a PR.
@alandomio
alandomio merged commit 242f1e1 into main Aug 31, 2026
13 checks passed
alandomio pushed a commit that referenced this pull request Aug 31, 2026
The rebase reconciliation on top of PR #4's newly landed mr-description
requirement carried that requirement through the forge resolver instead of
hardcoding "PR description", so a GitLab project's brief says "MR
description" per the captain's standing GitLab vocabulary rule. Extend the
existing mr-description coverage to pin that per-forge wording for both
direct-PR and no-mistakes modes.
alandomio added a commit that referenced this pull request Sep 1, 2026
…t's forge (#7)

* fix(fm-brief): derive forge vocabulary from the project's git remote

Scaffolded briefs hardcoded GitHub instructions (gh-axi, "PR") even for
the fleet's GitLab projects. Detect the forge from each project's local
clone origin remote (falling back to .gitlab-ci.yml/.github when the
host is unrecognized) and use it to pick the right tool and terminology
(gh-axi/pull request/PR vs glab/merge request/MR) across Setup, Rules,
and the Definition of done for scout and every ship mode. An
unresolvable forge gets an explicit check-it-yourself marker instead of
a silent GitHub default.

* no-mistakes(review): recognize MR ci-ready token, guard forge detection to clone root

* no-mistakes(review): honor FM_PROJECTS_OVERRIDE in brief forge detection

* no-mistakes(document): note PR/MR ready signal for undetermined-forge briefs

* no-mistakes(document): document glab as a required universal toolchain tool

* no-mistakes(document): revert bootstrap glab check, document glab as unchecked requirement

* no-mistakes(review): normalize brief repo arg, drop .github forge fallback

* no-mistakes(review): make scout brief text forge-aware, correct resolver comment

* no-mistakes(review): correct resolver parity claim in brief test comment

* no-mistakes(document): document brief forge derivation in fm-brief help

* test(fm-brief): cover forge-aware mr-description wording

The rebase reconciliation on top of PR #4's newly landed mr-description
requirement carried that requirement through the forge resolver instead of
hardcoding "PR description", so a GitLab project's brief says "MR
description" per the captain's standing GitLab vocabulary rule. Extend the
existing mr-description coverage to pin that per-forge wording for both
direct-PR and no-mistakes modes.

* no-mistakes(document): warn against hardcoding PR/MR nouns in fm-brief.sh

The rebase reconciliation for PR #3 found the same hardcoded-"PR
description" bug in two places in this file at once (the direct-PR DOD
and the no-mistakes DOD), because a sibling PR added new forge-vocabulary
prose without going through the existing resolver. Record the maintenance
rule in the header comment so it does not recur a third time.

---------

Co-authored-by: Alan Domio <a.domio@peter-park.de>
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