Repository navigation
feat(brief): embed commit-style contract in ship briefs - #10
Merged
Merged
Conversation
Ship briefs now instruct short imperative-subject commits with a few plain body lines; the long story goes in the PR description. Documents the honest boundary: it governs crewmate commits, not the no-mistakes pipeline's own commits or the squash body GitHub copies from the PR.
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
Tighten the commit-message style firstmate crewmates produce: commits should be SHORT, with the lengthy detail living in the PR description instead. The captain found crewmate-generated commits 'a bit intense and not useful' and wants the model to be his own concise commit style (short conventional-commit subject, minimal or no body), while PR descriptions stay lengthy and written for teammates.
Approach and deliberate decisions:
Note: bin/fm-lint.sh could not run locally because ShellCheck 0.11.0 is not installed on this host; the change added only heredoc/comment text (no new shell logic), and the pipeline runs the pinned linter.
What Changed
bin/fm-brief.sh, so all three ship modes (no-mistakes, direct-PR, local-only) instruct crewmates to write short imperative conventional-commit subjects with minimal or no body and keep lengthy detail in the PR description; scout briefs, which produce reports rather than commits, omit it.bin/fm-brief.shas the single owner of the contract from thefirstmate-coding-guidelinesskill (body and frontmatter) and noted the contract inAGENTS.md, rather than duplicating it.tests/fm-brief.test.shwith a case asserting the contract renders in all three ship modes and is absent from scout briefs.Risk Assessment
✅ Low: Pure documentation/heredoc-text change with a correctly-scoped regression test; no shell logic, control flow, or behavior is altered, and the new heredoc text is properly escaped and correctly excluded from scout briefs.
Testing
Baseline e2e suite already passed; I additionally ran the targeted
tests/fm-brief.test.sh(all green) and produced the real end-user artifact by generating actual briefs across every delivery mode. The rendered no-mistakes ship brief carries the complete commit-style contract (short subject budget, ticket-ref exemption, no-body-for-small-changes guidance, the "keep process narration out, put it in the PR" routing, calibrated before/after subject and body examples, and the honest pipeline-scope boundary), the contract also renders in direct-PR and local-only briefs, and it is correctly absent from scout briefs. Rendered-Markdown evidence files are saved in the evidence directory. This is a text/contract change to generated brief output with no runtime UI surface, so the Markdown brief itself is the reviewer-visible artifact.Evidence: Rendered no-mistakes ship brief (shows full Commit style section)
Evidence: Rendered scout brief (Commit style section correctly absent)
Evidence: Per-mode presence check
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.
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"bash tests/fm-brief.test.sh— full suite passes, including newtest_commit_style_contract_on_ship_not_scoutRendered real briefs viaFM_HOME=... bin/fm-brief.sh <id> <proj>for no-mistakes/direct-PR/local-only projects and--scout, then grepped^# Commit style: PRESENT in all 3 ship modes, absent in scoutCaptured the full rendered# Commit stylesection a crewmate would read from a no-mistakes ship briefConfirmed the firstmate-coding-guidelines SKILL.md cross-reference points to fm-brief.sh as the one owner of the contract✅ **Document** - passed
✅ No issues found.
🔧 Fix: no lint issues; shellcheck passes clean
1 warning still open:
🔧 Fix: no lint issues; shellcheck 0.11.0 passes clean
1 warning still open:
🔧 Fix: no lint issues; ShellCheck 0.11.0 passes clean
1 warning still open:
✅ **Push** - passed
✅ No issues found.