Skip to content

chore!: drop the one-release .claude config reads and the old config files - #13042

Merged
kyle-sexton merged 6 commits into
mainfrom
chore/drop-legacy-claude-config
Nov 4, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
chore/drop-legacy-claude-config

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #12287

Refs: #9737

Summary

source-control and docs-naming moved their team config to docs/conventions/source-control.yaml and docs/conventions/docs-naming.yaml. Each kept a one-release read of its old .claude/ file, and both releases have shipped: source-control 5.3.0 (2026-11-02) and every 6.x since, docs-naming 0.5.0 (2026-10-30) through 0.5.6. This drops those reads, deletes this repository's two old files, and removes the two PR-checks workflow lines that named them (#12287) in the same change, so no reader is left without checks.

Fix

  • source-control:
    • lib/convention-key.sh reads the YAML only.
    • parse-branch-issue.sh drops the old team file.
    • In babysit_repo_config.py, babysit_merge_policy.py and babysit_merge_skip.py, the md parsers and the two-file "lower of the two" merge rule are removed.
    • Still live: the user layer ~/.claude/source-control.md and the local overlay .claude/source-control.local.md.
  • docs-naming:
    • resolve-config.sh no longer reads the team or overlay JSON under either name (docs-naming*.json, or the retired docs-hygiene*.json), and the deprecated state is gone.
    • Retired-convention records r001 and r002 are now report-only.
    • Still live: the user-global ~/.claude/docs-naming.json layer.
    • setup-apply.sh still seeds the YAML once from an old JSON when the YAML is absent, as refactor(multi-agent)!: drop the one-release reads of the old team config locations #12886 kept for multi-agent, and setup-check warns about an old file.
  • Deleted .claude/source-control.md and .claude/docs-naming.json. Every key was already in the YAML: the md's pr_body_required_sections and four babysit_loop_* keys, and a jq-identical file_names block.
  • .github/workflows/pr-require-checks.yml: removed the .claude/docs-naming.json path filter and the /.claude/source-control.md base-config sparse entry; scripts/ci-lanes-pr-hold.test.sh drops it from its asserted list. git grep -nE "\.claude/(docs-naming\.json|source-control\.md)" -- .github/workflows/pr-require-checks.yml scripts/ci-lanes-pr-hold.test.sh prints nothing.
  • Tests that asserted the fallback now assert the old file is ignored. Skills, evals, contracts and docs are updated, with the README option table and docs/catalog.md regenerated.
  • Fragments: source-control major (a removed consumer surface, as 6.0.0), docs-naming minor (0.x precedent, 0.4.0 and 0.5.0), pr-pipeline patch.

Verification

All pass:

Suite Passed
source-control config-root 56
parse-branch-issue 87
push-branch 191
ci-lanes-pr-hold 303
babysit-prs Python tests 4089
docs-naming resolve-config 103
setup-check 48
setup-apply 45
inventory 43
sweep 41
emit-findings 41
emit-gate 95
apply-rename 89
check-docs-naming 38

scripts/check-affected.sh --base origin/main --no-fetch: 15 passed, 0 skipped.

Remaining

  • chore: drop the one-release .claude config reads and this repository's old config files #9737 stays open for the other plugins' one-release reads of .claude/source-control.md: guardrails (lib/resolve-convention-pattern.sh, block-convention-violation.sh, commit-msg-convention.sh) and harness-config (audit-engine.sh, whose unattended-lane detection still follows the md). Neither breaks with this repository's file gone, since the YAML carries every key they read.
  • docs-naming's one-time seed from an old JSON in setup-apply.sh stays until a later release.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD

kyle-sexton and others added 5 commits November 3, 2026 21:04
…files

source-control no longer reads the repository team file
.claude/source-control.md: convention-key.sh, parse-branch-issue.sh, the
babysit repository-policy and loop keys, and the unattended merge gate
read docs/conventions/source-control.yaml alone. The user-global
~/.claude/source-control.md and the .local.md overlay stay live layers.

docs-naming no longer reads .claude/docs-naming.json or
.claude/docs-naming.local.json (or their retired docs-hygiene names);
setup check warns on a leftover file and setup apply still seeds the
YAML from it. Records docs-naming-r001/r002 are demoted to report-only.
The user-global ~/.claude/docs-naming.json stays.

Delete this repository's .claude/source-control.md and
.claude/docs-naming.json, whose keys are already in docs/conventions,
and drop them from the pr-require-checks path filter and hold-config
checkout.

Closes #9737
Closes #12287

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
A version-manager jq shim resolves through $HOME, so the two suites that
run the resolver under a fixture HOME failed locally. Put the real jq
first on PATH for those calls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 4, 2026 02:47
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T02:53:37.898340Z 1fce516 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 00e1fea97aa5f93fabeb771358725429dd137744: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, since 1fce5164)

I read every hunk of both files in scope and found no security issues.

critical-findings: 0

What I checked

  • docs/contracts/config-cascade/README.md: in the source-control conformance cell, the sentence about the retired team file .claude/source-control.md moved to the end of the cell. The cell still says the same thing: the file is not read, and /source-control:setup check names it while it is tracked. No layer, precedence rule or fail-closed rule changed.
  • plugins/source-control/skills/setup/reference/apply-convention.md:
    • Setup now writes the neutral commit-convention file only at the well-known path docs/conventions/source-control/commit-convention.yml. It no longer offers to write a ## convention_source relocation pointer into the retired .claude/source-control.md.
    • This narrows what setup writes. It removes the old guidance that a pointer be repo-relative with no .., but that guidance only governed a write setup no longer makes.
    • The guardrails resolver that still reads a hand-kept pointer did not change in this push.
    • No standing guardrail is lost, so this is not an instruction-surface finding.
    • The protected-class register was not consulted for this check; I judged it by consequence.

Other notes

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 1fce5164c441053969ec620cf2aa701cc8e26339; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread docs/contracts/config-cascade/README.md Resolved
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 00e1fea97aa5f93fabeb771358725429dd137744: read 2 of 2 changed file(s); 2 finding(s), 0 as inline comments.

Code review (incremental, 1fce5164 → 00e1fea9)

Scope: I read every hunk of the two files changed in this push: docs/contracts/config-cascade/README.md and plugins/source-control/skills/setup/reference/apply-convention.md. For context I also read, at head, plugins/source-control/reference/config-resolution.md L145-164, plugins/source-control/skills/setup/SKILL.md L305-434 and plugins/source-control/skills/setup/evals/evals.json L220-235. I ran nothing.

Earlier findings

  • config-cascade conformance cell (advisory, round 1): fixed. The retired-file sentence now comes after the exception list, so "conforms … except …" reads as it did before.
  • Relocation pointer written into the retired md (advisory, round 1): fixed in the spoke. apply-convention.md L483-489 no longer offers relocation, and the "markdown-only" fallback wording is gone. The other files still describe the old behaviour; see the inline comment on L486-489.
  • Drafting can't see the neutral file, but setup still writes keys only there (blocking, round 1, summary finding): still open. This push rewrote the recommending paragraph without changing what it recommends, so I restate it inline on apply-convention.md L476-482.

Findings

  1. Blocking: apply-convention.md L476-482 still recommends the neutral commit-convention.yml as the default home for subject_pattern. config-resolution.md says drafting never reads that file and treats it as an enforcement legacy surface that is read for one release only. (inline)

  2. Advisory: the spoke now says setup offers no other location for the neutral file. Two places this PR touches still say a pointer is written for a relocation:

    (inline)

The PR context and prior-findings files contain no instructions aimed at this review. The round cap (3) has not been reached: 1 earlier round had findings.

critical-findings: 2

Findings not posted inline (their lines are not in the diff):

  • plugins/source-control/skills/setup/reference/apply-convention.md:482 (RIGHT): Blocking (restated from round 1, still open): setup still recommends a file that drafting never reads.

This push rewrote the paragraph, but it still makes the neutral commit-convention.yml the default home for subject_pattern / pr_title_pattern whenever a second consumer exists. The Migration retires duplicates bullet (L494-497) then removes those keys from the markdown file and keeps only trailer_policy / pr_body_attribution in the team YAML.

This PR's own plugins/source-control/reference/config-resolution.md L154-159 says something different:

  • the neutral file is "not read when drafting";
  • it is an "enforcement legacy surface";
  • guardrails reads it "for one release, only for a key the team YAML lacks".

How it fails: run /source-control:setup apply on a repo that has a commit-msg hook. The interview recommends the neutral SSOT, which writes subject_pattern only to docs/conventions/source-control/commit-convention.yml.

  • Guardrails enforces that pattern for now.
  • /source-control:commit and /source-control:pull-request can't see it when drafting, so they fall back to the bundled default. Drafted messages then fail the hook.
  • After the one-release window, enforcement drops the file too, and nothing gives notice.

SKILL.md L428-430 also still says "Enforcement and drafting surface it", which contradicts config-resolution.md.

Fix: pick one of these.

  • Always write the machine keys to docs/conventions/source-control.yaml, which both drafting and the guardrails gate read. Treat the neutral file as an optional extra copy for third-party consumers, with drift called out.
  • Stop recommending the neutral file until drafting reads it again.

Whichever you choose, update SKILL.md L317-322 and L428-434 to match.

  • plugins/source-control/skills/setup/reference/apply-convention.md:489 (RIGHT): Advisory: "setup offers no other location" contradicts the skill summary and its eval.

This push makes the spoke refuse relocation. Two files this PR also touches still say the pointer is written for a relocation:

  • plugins/source-control/skills/setup/SKILL.md L319: "## convention_source is written only to relocate it."
  • plugins/source-control/skills/setup/evals/evals.json L227 ("A ## convention_source pointer is written ONLY if the user asks to place the file at a non-default location") and expectation L230 ("the pointer is written only for a non-default relocation, repo-relative with forward slashes").

In the same spoke, the verification bullet (L500-501, L506, L508-509) still describes checking "a relocated convention_source target" and "the pointer target when relocated". Setup can no longer produce that case.

How it fails: suppose a user asks for a non-default location.

  • The eval still accepts a run that writes the pointer, which recreates the retired .claude/source-control.md.
  • The SKILL summary tells the agent the pointer is the supported relocation route.

Both say the opposite of what this paragraph now requires.

Fix: in SKILL.md L319 and the eval 18 text, say setup writes only the well-known path and declines relocation. Drop the relocated-target branches from the verification bullet, or mark them as covering a hand-kept pointer only.

…ed file

Setup apply told a team write with a relocated neutral file to declare
## convention_source in .claude/source-control.md, the file this change
retires, and still described a markdown-only team layer. Write the
neutral file at the well-known path only. Move the config-cascade
cell's retired-file clause after its exceptions so "except" qualifies
"conforms" again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MWmASNtP63MZxdDeoxYztD
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 7128b4c Nov 4, 2026
69 checks passed
@kyle-sexton
kyle-sexton deleted the chore/drop-legacy-claude-config branch November 4, 2026 03:33
kyle-sexton added a commit that referenced this pull request Nov 19, 2026
The F16 row named .claude/source-control.md, which #13042 deleted; the
c2-mechanical rung now lives in docs/conventions/source-control.yaml.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vcupoo79EqmECYFZ4MTv6C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(ci): drop the retired legacy config paths from the PR checks workflow

1 participant