Repository navigation
chore(attribution): drop the one-release .claude/attribution.json team read - #13505
Conversation
The audit detectors read the team layer and personal override only from <home>/attribution.yaml and <home>/attribution.local.yaml. The user-global ~/.claude/attribution.json layer stays. Test fixtures move to the YAML layers, the jq cases move to the user-global layer, and a case asserts the old repository JSON files are not read. Refs #13476 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Append retirements attribution-r003 and attribution-r004 so /attribution:setup check reports an old .claude/attribution.json or .claude/attribution.local.json as a retired config to migrate, and rewrite the setup skill's carry-every-key step and its eval case 9 around that finding. Update the schema, README, audit skill, config-cascade contract and the team YAML header, delete this repository's .claude/attribution.json and .claude/ai-slop.json, and add a minor changelog fragment. Refs #13476 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…l case validate-plugin-contracts requires an eval for every retirement record. Case 11 has an old .claude/attribution.local.json beside an existing YAML personal override: the YAML's values stay, and a key only the JSON sets is carried only on the operator's confirmation, since it was never in effect. Refs #13476 Co-Authored-By: Claude Opus 5.5 <[email protected]>
check-retirements.sh resolves .claude/attribution.json against its root, so at the home directory or a non-repository root the attribution-r003 row names the user-global ~/.claude/attribution.json, which the detectors still read. The setup skill now reports that row as the user-global layer and never migrates or cleans it. Refs #13476 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: no security issues foundI read every hunk of all 19 listed files, plus the two whole-file deletions ( What changed. The attribution detectors no longer read the repository's
Two new Trusted paths. Both deleted files match
Neither file is a trust control, kill switch, token scope or merge hold. Data flow. The change only removes config sources. The remaining JSON layer (user-global) is still read with Instruction-surface lens. The setup SKILL.md hunk at lines 22-27 shortens "never overwrite it or carry its JSON fallback over it without the operator's choice" to "never overwrite it without the operator's choice". The dropped half described a fallback that no longer exists. The new migrate text (lines 757-763) still requires the operator to confirm keys carried beside an existing YAML, and to confirm before any clean. Nothing is lost from a protected class. I did not read Not a security finding: home-root r003 match. At a home or non-repository root, Plugin manifests. No Spend. The PR adds one legacy eval case ( critical-findings: 0 |
|
claude-review reviewed Code review: no findingsI read every hunk of all 19 listed files, plus the two whole-file deletions ( What the change does
Closing issue #13476, Done-when criteria
Notes
|
Closes #13476
Summary
The attribution detectors read the team and personal layers only from
docs/conventions/attribution.yamlandattribution.local.yaml. The repository-relative.claude/attribution.jsonand.claude/attribution.local.jsonfallbacks are gone, and/attribution:setupnow reports an old JSON file as a retired config throughretirements.yamlandcheck-retirements.sh. This repository's.claude/attribution.jsonand.claude/ai-slop.jsonare deleted (the ai-slop read went in #13471). The user-global~/.claude/attribution.jsonlayer stays.Fix
skills/audit/scripts/lib.sh: drops the.claude/$name.jsonfallback; the user-global layer (lib.sh:46) and its jq path stay.retirements.yaml: two appendedaction: migraterecords,attribution-r003(.claude/attribution.json) andattribution-r004(.claude/attribution.local.json), successors under the convention home. If the YAML is absent every key is carried over; if it exists, only keys the operator confirms, since the JSON beside an existing YAML was never in effect.skills/setup/SKILL.md: the JSON-fallback detection becomes the retired-config finding; the carry-every-key step stays. Legacy eval case 9 (json-fallback-layer-moves-whole) rewritten to expect an r003 FAIL, the carried keys, operator confirmation, then--clean --i-migrated. A legacy case for r004 was added becausevalidate-plugin-contracts.mjsrequires an eval per retirement record.check-retirements.shreports the live user-global~/.claude/attribution.jsonas r003. SKILL.md now says to report that row as the user-global layer and never migrate or clean it. The code fix belongs in the sharedlib/check-retirements.sh(8 copies) and is filed as fix(lib): check-retirements reads the user-global .claude layer as a retired file at a home or non-repository root #13504.check-stamps,list-corpus,score-golden,sweep-ledgerandlibtests moved todocs/conventions/attribution*.yaml; one case asserts the old file is not read (revertinglib.shturns it red, 2 failures).docs/contracts/config-cascade/README.md(the attribution row under later adoption removed, as in chore(ai-slop): drop the one-release .claude ai-slop.json team read #13481), and thedocs/conventions/attribution.yamlheader. Changelog fragmentbump: minor(0.16.0 to 0.17.0).Verification
ls-treeof both.claudefiles, the path grep and the wording grep print nothing;check-purged-em-dashes.shexits 0;retirements.yaml:31andlib.sh:46lines present;lib.test.sh28/28,check-stamps95/95,list-corpus70/70,score-golden43/43,sweep-ledger105/105;check-changelog-fragments.sh --check-required origin/mainpasses. The## [0.13.0]item was already met on main (CHANGELOG.md:282).validate-plugin-contracts.mjsandcheck-changed-skills.sh --merge-basepass.claude plugin evaloverplugins/attribution/evals/setup-*(3 cases),--runs 3, both arms, Sonnet 5.5 tested, Opus judge,--scaffold,--allow-tools Bash Write Edit, Claude Code 2.1.318. BEFORE at main295bd3f627, AFTER at4ac10a856c. Both runs VALID (run-validity.py, 18/18 traces); one warning on both, skill-fired 0, expected because each prompt is a/attribution:setupslash command and the skill setsdisable-model-invocation: true.skills/setup/evals/evals.jsoncases 9 and 11, whichclaude plugin evaldoes not run, and no negative control was run, so this shows no regression on these 3 cases, not detection power..github/actions/resolve-config(nonode_modulesin the worktree; this change does not touch that action); CI runs them.Related
🤖 Generated with Claude Code