Skip to content

source-control: read config from the config-cascade layers, not ~/.claude #18000

Description

@kyle-sexton

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:

  • :264 USER_LAYER="${HOME:-}/.claude/source-control.md" (user-global)
  • :270 personal_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.sh layer list
  • The drafting-inputs wording in lib/resolve-convention-pattern.sh and 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".

Activity

  1. added
    agent-ready
    on Nov 21, 2026
  2. added
    needs-triage
    on Nov 21, 2026
  3. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor

    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.md and .claude/source-control.local.md to 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)):

    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.yaml plus 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.

    [quote truncated; the full decision is at the link]

    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.

  4. removed
    needs-triage
    on Nov 21, 2026
  5. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"36b093101706443502a89d8065c09e73b29c96973503355bf655798a2a08f08b","body_sha256":"b3822c37d0b0124fcbe5fb79bdd7d73aefcb74113f794a4dd0c2a890573fb3bc"}

  6. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    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).

  7. removed
    agent-ready
    on Nov 21, 2026
  8. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"36b093101706443502a89d8065c09e73b29c96973503355bf655798a2a08f08b","body_sha256":"859c4d84787800dda5d050cbce53756cedcc28b1a7c2c0f0370981a78e8ff367"}

  9. 7 remaining items

  10. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: the issue is at status: ready.

  11. kyle-sexton commented on Nov 22, 2026

    @kyle-sexton
    MemberAuthor

    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.yaml plus 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:

    • 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).
  12. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor

    A listed human released the issue's Work status hold, so it goes back to intake triage.

  13. melodic-automation-lanes commented on Nov 22, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"36b093101706443502a89d8065c09e73b29c96973503355bf655798a2a08f08b","body_sha256":"6f45d57a4d7c2150a5bcece59a653191e1787944520c740e82a41f4498bd0036"}

  14. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions