Repository navigation
fix(bin): stop fm-brief.sh prescribing the nonexistent mr-description skill - #35
Merged
Merged
Conversation
… skill The direct-PR and no-mistakes definitions of done ordered every ship worker to write the PR/MR description with ~/.claude/skills/mr-description, a skill that exists nowhere, so every worker hit a dead reference. fc4f0bf (#19) reintroduced the line that da0e670 (#17) had already removed. The worker now writes the description itself, keeps the no-trailer and no-orchestration-vocabulary rule, and is still told to create the PR/MR without waiting for confirmation on a step the brief already authorizes. The test now pins the new wording in both forge vocabularies and asserts no generated brief names mr-description, guarding against a third return.
alandomio
force-pushed
the
fm/fm-brief-mr-description-skill
branch
from
September 26, 2026 06:46
cf495ad to
0049e1d
Compare
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.
Intent
Stop the generated crewmate brief (bin/fm-brief.sh) from prescribing the nonexistent mr-description skill; workers write the PR/MR description themselves. Rerun after gh upgrade so the PR body gets the no-mistakes signature and attestation.
What Changed
bin/fm-brief.sh: the direct-PR and no-mistakes delivery contracts now tell the worker to write the PR/MR description itself. They no longer point to the nonexistentmr-descriptionskill or its "you are that human" handoff line. The rest of each contract is unchanged: the worker still creates the PR/MR without waiting for confirmation, and the description still must not include a "Generated with Claude Code" trailer.tests/fm-brief.test.sh: the testtest_mr_description_rule_presentis renamed totest_pr_description_rule_present. It now checks for the new wording in both GitHub and GitLab vocabulary, in direct-PR and no-mistakes briefs. It also checks that no brief, including local-only and scout briefs, mentionsmr-description, and that local-only and scout briefs contain no description rule.Risk Assessment
✅ Low: The change only rewrites two generated-brief sentences so they no longer point workers at the nonexistent mr-description skill. It keeps the pre-authorization to create the PR/MR and the ban on the trailer and orchestration vocabulary, and the updated tests check the generated brief output for both forges and all ship modes.
Testing
I ran the whole tests/fm-brief.test.sh suite and it passed. I also ran the updated test against the base commit, where it fails, so it does catch the old behavior. Then I generated real briefs for six cases: direct-PR and no-mistakes, each on a GitHub and a GitLab project, plus local-only and scout on the GitHub project. None of the six mentions mr-description. The four PR/MR briefs tell the worker to write the description themselves and to create the PR/MR without waiting for confirmation, using the right forge wording; local-only and scout carry no description rule. The "Generated with Claude Code" ban is still in all four PR/MR briefs. This change has no UI, so there are no screenshots; the evidence is the text of the generated briefs. The other part of the intent, the gh upgrade and PR signature, belongs to later pipeline phases and was not part of this test.
Evidence: Description rules from generated briefs (GitHub/GitLab × direct-PR/no-mistakes, plus local-only and scout)
Source: Description rules from generated briefs (GitHub/GitLab × direct-PR/no-mistakes, plus local-only and scout)
Evidence: Generated direct-PR GitHub brief excerpt
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(whole fm-brief suite, including the renamedtest_pr_description_rule_present): passed, exit 0Regression check: copied the updated tests/fm-brief.test.sh into an extracted copy of the base commit 9f636fa (git archive 9f636fa) and ran it there. It fails withnot ok - direct-PR/GitHub brief must have the worker write the description in PR vocabulary, so the test catches the old behaviorManual check: generated real briefs withFM_HOME=<tmp> bin/fm-brief.sh <id> <proj> --mode direct-PR|no-mistakes|local-onlyand--scoutfor a GitHub and a GitLab clone, then pulled out the description-rule lines and counted mr-description mentions✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.