docs,ci: name the change, never the plan — naming rules + merge gate#14
Merged
Conversation
docs/agent/naming.md holds the durability test, the naming rules for branches/PRs/commits/spec files, and the no-attribution rule (no session URLs, no assistant co-author trailers). CI gains a naming job that rejects plan jargon and attribution trailers in a PR's branch name, title, commit messages, and changed paths — the file's own razor: a rule needs a gate. CLAUDE.md routes to it from Where-everything-lives, Working practice, and Enforcement; .claude/rules/go.md's commit bullet points at it.
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.
Follow-through from the 2026-07-17 hygiene pass (history rewrite, branch cleanup, PR edits): the rules that keep it from happening again, with a gate behind them.
What changed
docs/agent/naming.md— the durability test ("would this name make sense to someone who never saw the plan?"), naming rules for branches / PR titles+bodies / commit messages / spec files, the no-attribution rule (no Claude session URLs, noCo-Authored-By: Claudetrailers), and before→after examples from the cleanup.namingjob — PR-only; rejects plan jargon (phase/pillar/sprint/milestone/week + number, batch + letter) and attribution trailers in the head branch name, PR title, commit messages, and changed file paths. Untrusted PR fields enter the script viaenv, never template interpolation..claude/rules/go.md— the commit-style bullet now points at the naming rules.Verification
go test ./...green — includes theinternal/doccheckcitation test over the new doc and edited CLAUDE.md.