Repository navigation
feat(guardrails): enforce a personal commit convention where the team tracks none - #11835
Conversation
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/resolve-conflicts
Carries the head of #11697 (personal fallback commit convention, #9776) onto a new owner-login pull request. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #11835, personal commit-convention layerI found no security issues. I read all 18 changed files in What I checked
Plugin manifest
Embedded text in the PR context: none found. The PR context is description text only. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsI read every hunk of all 18 changed files in What I checkedThe resolver:
The three consumers
Tests
Closing issue #9776: done-when items
Plugin manifests
Other checks
|
Closes #9776
Summary
Replaces #11697, which the work-resolve-issue lane opened from branch
work-resolve-issue/issue-9776-41236213113-1. This branch is a fresh branch frommainwiththat PR's head merged in, so the diff is the same 18 files.
The commit-convention resolver (
lib/resolve-convention-pattern.shand its guardrails copy) gainsa fallback-only personal layer. It reads
subject_patternfromdocs/conventions/source-control.local.yamlonly when the team layer (team YAML, then theone-release legacy surfaces) supplies none, and only while
git check-ignorereports the fileignored, so a tracked copy never counts. The personal file goes through the team file's
fail-closed checks and is never merged with a team pattern: a broken or non-ERE team value still
disables enforcement instead of falling back. PR titles never read it.
The issue's done-when item asking for a
Hold: a human merges thisbody line was dropped by theowner's standing direction of 2026-10-31, recorded on #9776.
Fix
lib/resolve-convention-pattern.sh: fallback-only personal layer (read_personal); the team-YAMLload factored into
load_yaml/check_yaml_dialectso both files share one set of checks; apersonal file git does not ignore is reported on stderr and not read.
plugins/guardrails/hooks/resolve-convention-pattern.sh: regenerated copy.plugins/guardrails/hooks/block-convention-violation.sh: personal file added to the pattern-cachedependencies; block message worded neutrally.
plugins/guardrails/git-hooks/commit-msg-convention.sh: when the personal file supplied thepattern, the failure message names that file to edit instead of asking for a pull request.
lib/resolve-convention-pattern.test.sh,block-convention-violation.test.sh,commit-msg-convention.test.shandblock-noncanonical-commit.test.sh(that hook reads no convention, so its case checks itsverdicts do not change).
docs/contracts/commit-convention/README.md(amended layer rule),docs/conventions/commit-convention/README.md(one-line restatement),docs/contracts/config-cascade/README.mdandCHANGELOG.md, guardrails README, setup skill andoption description,
plugins/source-control/reference/config-resolution.md.Verification
check-affectedpassed (ruff skipped, no.pychanged; thechecks that run code from the checked tree were skipped and run in CI) and
guardrails-remote-reference-verifypassed.check-changelog-fragments,check-affected(12 passed, 6 skipped),sync-shared-copies --checkandcant-fail-scanon the four test files, all passing:https://github.com/melodic-software/claude-code-plugins/actions/runs/41236213113
Not verified: drafting (
/source-control:commit) still does not read the personal file, which isoutside this issue's scope; the docs tell an operator to mirror the pattern in
.claude/source-control.local.md.Related
🤖 Generated with Claude Code