Repository navigation
fix(bin): require mr-description skill for direct-PR and no-mistakes DODs - #4
Merged
Merged
Conversation
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
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.
This was referenced Aug 31, 2026
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>
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.
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: thedirect-PRandno-mistakesdefinition-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 themr-descriptionskill, 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-mistakesship 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-onlyvariant (stops at a ready branch, no PR) are untouched, since neither ever writes a merge/pull-request description.Change
bin/fm-brief.shdirect-PRDOD; one bullet added to theno-mistakesDOD's firstmate-specific-rules list (renumbered "Two" → "Three")tests/fm-brief.test.shtest_mr_description_skill_required_for_pr_modesBoth additions name the
mr-descriptionskill 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.b6d99cd'sbin/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.--mode direct-PR,--mode no-mistakes,--mode local-only,--scout) end to end against a scratchFM_HOMEand read eachbrief.mddirectly: the requirement appears verbatim indirect-PRandno-mistakes, and is completely absent fromlocal-onlyandscout.bin/fm-lint.shShellCheck pass is clean on both changed files.mr-descriptionskill, 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 passRegression 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 changeManual 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.
✅ **Push** - passed
✅ No issues found.