Repository navigation
Description
Summary
source-control still reads its user-global and personal config from ~/.claude and .claude/. Move both to the config-cascade layers.
Current behavior
plugins/source-control/skills/pull-request/scripts/parse-branch-issue.sh:
:264USER_LAYER="${HOME:-}/.claude/source-control.md"(user-global):270personal_override="${REPO_ROOT}/.claude/source-control.local.md"(personal)
lib/resolve-convention-pattern.sh (copied to plugins/source-control and plugins/guardrails/hooks/resolve-convention-pattern.sh) names the same two files in a comment at :30-32: "The user-global (~/.claude/source-control.md) and gitignored local (.claude/source-control.local.md) personal overrides are DRAFTING inputs the model merges per reference/config-resolution.md". That comment is not a script read; enforcement reads the team layer. Check whether reference/config-resolution.md and the skill text still direct the model to those two files, and update them with the scripts.
Desired behavior
Per the config-cascade layers:
| Old path | Layer |
|---|---|
~/.claude/source-control.md |
team: <home>/source-control.yaml (one person in one repo: the personal override); no new userConfig options (owner decision 2026-11-21, Q1 (b): the convention keys are per-repo conventions, as branch_issue_pattern's userConfig twin is already deprecated in favor of the team file) |
<repo>/.claude/source-control.local.md |
personal: <home>/source-control.local.<ext> |
The script, the comment and the reference text name the contract layers; a file at an old path keeps being read during a dual-read window (see the acceptance criteria) and is reported with a warning. The canonical location list (docs/contracts/config-cascade/locations.md) lands in the docs/config-locations pull request.
Key interfaces
parse-branch-issue.shlayer list- The drafting-inputs wording in
lib/resolve-convention-pattern.shand its guardrails copy reference/config-resolution.md
Acceptance criteria
- The resolver reads the config-cascade layers (the layers).
- Dual-read window: while an old-path file exists, it is still read and its values still apply where no new-layer file supplies that layer; each run prints one warning naming the old file and the new location to move it to. No setting in an old file is silently dropped.
- Migration ends in one home, never two (owner 2026-11-21: "we don't have dual approaches, and that stuff gets cleaned up"): the plugin's setup (check/apply) names each old file it finds and, after a preview and a yes, copies its keys into the new location, checks the new location resolves the same values, then deletes the old file. The dual-read warning names that setup command, so normal skill use leads to the migration.
- Removing the old-path read is a separate later change, made only once no old file is reported.
- Tests cover: new layer only; old file only (values apply, warning printed); both present (new wins, warning names both).
- The
lib/copy and the guardrails copy stay identical (the repository's copy-sync check passes).
Out of scope
The team-layer enforcement path, and the retired-file notices in plugins/source-control/lib/convention-key.sh and the babysit_*.py scripts, which already say .claude/source-control.md "is not read".
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Priority
Activity
github-actions commentedon Nov 21, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: source-control's parse-branch-issue.sh, the resolve-convention-pattern.sh lib and guardrails copies, reference/config-resolution.md, the setup check/apply, and their tests; read by anyone running source-control skills or guardrails hooks.
Reversible: yes; revert the change. The migration step deletes old config files only after a preview, a yes and a check that the new location resolves the same values.
Open questions: none
You asked for source-control's user-global and personal config to move from
~/.claude/source-control.mdand.claude/source-control.local.mdto the config-cascade layers, with a dual-read window, a warning and a setup-driven migration.The recorded decision, quoted from the comment by kyle-sexton (#18000 (comment)):
This settles the open questions. The design and the done-when are exact. No merged pull request fixes this. Similar per-plugin config-cascade issues exist (for example #48 area titles such as testing, bugs and attribution), but each covers a different plugin, so none is a duplicate.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 21, 2026
{"v":1,"actor_id":337595936,"title_sha256":"36b093101706443502a89d8065c09e73b29c96973503355bf655798a2a08f08b","body_sha256":"b3822c37d0b0124fcbe5fb79bdd7d73aefcb74113f794a4dd0c2a890573fb3bc"}
melodic-automation-lanes commentedon Nov 21, 2026
Not admitted to the issue lane: its body was edited after it was deferred, so the admission it was deferred from judged an older body. Admission takes the issue once each of those is met, when intake triages it again (
.github/actions/resolve-config/admission-rules.json).melodic-automation-lanes commentedon Nov 21, 2026
{"v":1,"actor_id":337595936,"title_sha256":"36b093101706443502a89d8065c09e73b29c96973503355bf655798a2a08f08b","body_sha256":"859c4d84787800dda5d050cbce53756cedcc28b1a7c2c0f0370981a78e8ff367"}
7 remaining items
melodic-automation-lanes commentedon Nov 21, 2026
The latest triage verdict holds nothing: the issue is at
status: ready.kyle-sexton commentedon Nov 22, 2026
Decision recorded.
The owner decided this issue's placement in the config-cascade interview (hub numbering Q1 (b) and Q2 (a), 2026-11-21 ~22:2xZ-22:3xZ), recorded verbatim at https://github.com/melodic-software/architecture/blob/main/docs/owner-decisions.md?plain=1#L312. For #18000: source-control's convention keys go to the team file
<home>/source-control.yamlplus the personal override, with no new userConfig option (Q1 (b)). The needs-human hold the 23:0xZ verdict parked this issue on is gone, and no open question is left.Criteria, confirmed as written in the issue body:
lib/copy and the guardrails copy stay identical (the repository's copy-sync check passes).github-actions commentedon Nov 22, 2026
A listed human released the issue's Work status hold, so it goes back to intake triage.
melodic-automation-lanes commentedon Nov 22, 2026
{"v":1,"actor_id":337595936,"title_sha256":"36b093101706443502a89d8065c09e73b29c96973503355bf655798a2a08f08b","body_sha256":"6f45d57a4d7c2150a5bcece59a653191e1787944520c740e82a41f4498bd0036"}
github-actions commentedon Nov 22, 2026
fix(source-control): keep resolved config fixed through the old-file …