Repository navigation
fix: keep greetings out of no-mistakes commit subjects - #66
Merged
Merged
Conversation
no-mistakes stores the agent summary field as the commit subject and writes that commit without repository hooks. Document, test, and CI prompts now carry a boundary that the summary is not a chat message. The chat-address rule names that summary field as a commit subject.
Commit subjects on this branch are read through git. A subject that greets fails the contract. Review-fix subjects still come from no-mistakes, which this change does not modify.
peterOC26
force-pushed
the
fm/fm-nm-commit-subject-address-a1
branch
from
November 15, 2026 01:58
8261b2e to
29a94de
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
no-mistakes commit subjects address the captain ('Aye, aye, captain')
Resolution recorded by fm-captain-hold.
Decision digest: 5bdc02baef9afb174011b9518ace85ceccc9553f92fc3327f30be8528c439697
Resolution mode: released
Captain decision:
Captain 2026-11-15 (Jobs page note 1794703235-3uxISq): "The 11 firstmate fixes - do all of these". Start now instead of the staggered dates; Grok builds, DeepSeek checks, firstmate repo reviews one at a time (fleet 133), captain merges each.
Found 2026-10-22: pipeline-written commits on PR 180 (2fba8626, 5846727a, 186609c9) and firstmate PR 31 (09fd8d6) start with 'Aye, aye, captain', which AGENTS.md forbids in commit messages. Likely the routine-step agent reads the captain-address rule as applying to commits. Fix where the pipeline prompt or config is owned; existing pushed commits stay unless the captain approves a rewrite.
"The 11 firstmate fixes - do all of these" (2026-11-15)
Captain Q2110 A: ship the partial fix now (document, test and CI paths plus the behaviour test); leave the review-fix path to the tool. Do not change no-mistakes.
What Changed
.no-mistakes.yamlnow tells the document, test, and CI prompts that the summary field becomes the git commit subject, so it must not greet or address anyone. It adds aci.instructionsblock for this, and a header comment explains why no repository setting can reach review-fix subjects.tests/fm-nm-test-contract.test.shaddstest_branch_commit_subjects_do_not_greet. The test reads the commit subjects inorigin/main..HEADand fails on any subject that contains "aye, aye, captain", "aye aye, captain", or "captain,". The match ignores case.AGENTS.mdnow lists the pipeline summary field that becomes a commit subject among the non-chat artifacts where direct address is forbidden.docs/architecture.mdnow notes that the.no-mistakes.yamlheader owns this boundary.🤖 Generated with Claude Code
Known limit
Review-fix commit subjects stay inside no-mistakes. The subject is the agent summary field, wrapped by
commit.fix_message. No repository file is copied into the review-fix prompt, and this pull request does not change no-mistakes. Closing that path needs a no-mistakes change: copy a repository instruction into the review-fix prompt, or reject a greeting in the summary before it is stored as the commit subject. Document, test, and CI prompts in this repository already carry that boundary. Commit subjects on this branch are checked through git.Risk Assessment
✅ Low: The change adds a guard sentence to three prompts, sharpens one AGENTS.md sentence and one docs pointer, and adds a git-log subject check. The round-1 case-insensitive fix is correct: it catches 'Aye, aye, captain.', 'aye aye, captain' and 'captain, ...', and it flags none of the 623 subjects in this repository's history.
Testing
I ran the changed contract test against this branch's real commit subjects, and it passed. In a throwaway clone I added greeting commits: the reported "no-mistakes(review): Aye, aye, captain.", "Aye aye, captain - fix lint", a lowercase "captain," subject and an uppercase "CAPTAIN," subject. The test failed with the offending subject each time. Ordinary subjects that mention "captain" ("captain-held task", "captain decision flow") still passed. The base commit's test file did not catch the reported greeting, so the regression check is new. Parsing .no-mistakes.yaml showed the boundary sentence as the last line of the document, ci and test instructions. I did not check whether a live model actually stops writing greetings, because that needs a real no-mistakes pipeline run, which this phase is not allowed to start. Overall result: pass.
Evidence: Branch contract test run
Source: Branch contract test run
Evidence: Adversarial greeting and benign subjects against the test
Source: Adversarial greeting and benign subjects against the test
Evidence: Base commit test file misses greeting (before fix)
Source: Base commit test file misses greeting (before fix)
Evidence: Parsed instruction fields
Source: Parsed instruction fields
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
tests/fm-nm-test-contract.test.sh:38- The new test only catches two exact, case-sensitive spellings:*"Aye, aye, captain"*and*"Captain,"*. It catches the reported subject "no-mistakes(review): Aye, aye, captain.". It misses close variants a model is just as likely to write, such as "Aye aye, captain - fix lint", "aye, aye, captain" or "no-mistakes(ci): captain, fixed the shard". The rule it relies on (AGENTS.md:14) forbids any direct address in a commit subject, not one spelling. So a greeting commit can still pass this check silently. Remedy: match case-insensitively, for example by lowercasing the subject first or usingshopt -s nocasematchinside the function. Also accept an optional comma between the two "aye" words. Keep the comma after "captain" so ordinary subjects like "captain-held task" do not trigger it. No other places in the change need the same fix.tests/fm-nm-test-contract.test.sh:33- The test exits with a failure wheneverorigin/maincannot be resolved, for example in a local clone with nooriginremote or a fork whose upstream has a different remote name. Every CI test job checks out with fetch-depth 0, and the gate worktree hasorigin/main, so the places where the suite actually runs are covered. A stale localorigin/mainonly widens the range to squash-merged main commits, which do not greet. This is noted as a tradeoff only.🔧 Fix applied.
1 info still open:
tests/fm-nm-test-contract.test.sh:33- The test exits with a failure wheneverorigin/maincannot be resolved, for example in a local clone with nooriginremote or a fork whose upstream has a different remote name. Every CI test job checks out with fetch-depth 0, and the gate worktree hasorigin/main, so the places where the suite actually runs are covered. A stale localorigin/mainonly widens the range to squash-merged main commits, which do not greet. This is noted as a tradeoff only.✅ **Test** - passed
✅ No issues found.
bash tests/fm-nm-test-contract.test.shon the run worktree (origin/main..HEAD = 4 branch commits)Disposable clone at 29a94de with an added empty commit for each of six subjects, thenbash tests/fm-nm-test-contract.test.shin eachDisposable clone at base 4f53948 with a greeting commit added, running the pre-fix test file to show the regression was not caught beforeruby -ryamlparse of .no-mistakes.yaml to read the last line of document/ci/test.instructions and confirm no review section✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.