Skip to content

fix(bin): stop fm-brief.sh prescribing the nonexistent mr-description skill - #35

Merged
alandomio merged 1 commit into
mainfrom
fm/fm-brief-mr-description-skill
Sep 26, 2026
Merged

alandomio merged 1 commit into
mainfrom
fm/fm-brief-mr-description-skill

Conversation

@alandomio

@alandomio alandomio commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

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 nonexistent mr-description skill 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 test test_mr_description_rule_present is renamed to test_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, mentions mr-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)

=== bin/fm-brief.sh ev-dp-gh gh-proj --mode direct-PR ===
mr-description mentions: 0
86:Write the pull request description yourself.
87-Create the pull request yourself and never wait for confirmation on a step this brief already authorizes.
88-Do not include a "Generated with Claude Code" trailer or other orchestration vocabulary in the description.

=== bin/fm-brief.sh ev-dp-gl gl-proj --mode direct-PR ===
mr-description mentions: 0
86:Write the merge request description yourself.
87-Create the merge request yourself and never wait for confirmation on a step this brief already authorizes.
88-Do not include a "Generated with Claude Code" trailer or other orchestration vocabulary in the description.

=== bin/fm-brief.sh ev-nm-gh gh-proj --mode no-mistakes ===
mr-description mentions: 0
100:Write the pull request description yourself.
101-Create or update the pull request yourself and never wait for confirmation on a step this brief already authorizes.
102-Do not include a "Generated with Claude Code" trailer or other orchestration vocabulary in the description.

=== bin/fm-brief.sh ev-nm-gl gl-proj --mode no-mistakes ===
mr-description mentions: 0
100:Write the merge request description yourself.
101-Create or update the merge request yourself and never wait for confirmation on a step this brief already authorizes.
102-Do not include a "Generated with Claude Code" trailer or other orchestration vocabulary in the description.

=== bin/fm-brief.sh ev-lo gh-proj --mode local-only ===
mr-description mentions: 0
(no PR/MR description rule — expected for local-only/scout)

=== bin/fm-brief.sh ev-sc gh-proj --scout ===
mr-description mentions: 0
(no PR/MR description rule — expected for local-only/scout)
Evidence: Generated direct-PR GitHub brief excerpt
mr-description mentions: 0
Write the pull request description yourself.
Create the pull request yourself and never wait for confirmation on a step this brief already authorizes.
Do not include a "Generated with Claude Code" trailer or other orchestration vocabulary in the description.

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 renamed test_pr_description_rule_present): passed, exit 0
  • Regression 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 with not ok - direct-PR/GitHub brief must have the worker write the description in PR vocabulary, so the test catches the old behavior
  • Manual check: generated real briefs with FM_HOME=<tmp> bin/fm-brief.sh <id> <proj> --mode direct-PR|no-mistakes|local-only and --scout for 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.

… 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
alandomio force-pushed the fm/fm-brief-mr-description-skill branch from cf495ad to 0049e1d Compare September 26, 2026 06:46
@alandomio alandomio closed this Sep 26, 2026
@alandomio alandomio reopened this Sep 26, 2026
@alandomio
alandomio merged commit c22365a into main Sep 26, 2026
47 of 51 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