Skip to content

docs(attribution): drop the setup skill's home-root retirement exception - #13553

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-13504-42064526827-1
Nov 5, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-13504-42064526827-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #13504

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The recorded decision on #13504 says #13510 already shipped the script fix: lib/check-retirements.sh skips kind: file records and refuses --clean at $HOME or outside a git work tree, with every copy synced. Only the third done-when item was left. This change removes the setup SKILL.md paragraph that told the agent to treat an attribution-r003 row at such a root as the user-global layer; the script no longer emits that row, so the paragraph had nothing left to explain. It adds a patch changelog fragment for the attribution plugin.

Not verified

  • Tidy pass 5 (ai-slop:audit fix): its detect.sh could not run, because this lane's Bash runs only the named wrappers. The rubric was applied by reading the two changed hunks instead, and it found no tells. Passes 1-3 had nothing to do (markdown only). Pass 4 split one sentence in the fragment.
  • Test suites and the CI-only checks check-affected lists are left to the PR's CI.
  • Done-when item 1's test and item 2's sync were delivered by #13510, per the recorded decision; this run checked them (grep and sync-shared-copies --check) but did not re-run the script's tests.

Fix

  • plugins/attribution/skills/setup/SKILL.md: removed the 'root that is the home directory or not a repository' exception sentences from the Retired conventions section.
  • .changes/attribution/work-resolve-issue-issue-13504-42064526827-1-b8226509.md: new patch fragment describing the removal and why the script now covers it.

Verification

The runner ran each check from the base copy against c51f5ba:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • Grep for 'home directory or not a repository' and 'user-global layer, not a FAIL' across the repository: no matches after the edit.
  • sync-shared-copies --check: all 678 registered copies match their canonical sources (done-when item 2).
  • Grep of lib/check-retirements.sh: the $HOME / non-work-tree skip and 'skipped: root is not a repository' reason exist (lines 55, 127-128, 192-206), confirming done-when item 1 was delivered by #13510.
  • check-changelog-fragments: all 14 fragments valid (run after the final edit).
  • check-changed-skills: setup PASS, 0 errors, 1 pre-existing warning (description has no 'Use when:' phrasing; this change did not touch the description).
  • check-affected: 12 passed, 7 skipped, over 2 changed files.
  • Fresh-context review subagent: no findings; it confirmed the script skips all four kind: file records (attribution-r001 to r004) and refuses --clean at such a root, and that nothing else depends on the deleted text. Its one wording note ('now skips' described behaviour shipped in 0.17.1) was fixed…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/42064526827

Left out: the items under Not verified.

Related

#13504

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

critical-findings: 0

I read every hunk of both changed files:

  • plugins/attribution/skills/setup/SKILL.md
  • .changes/attribution/work-resolve-issue-issue-13504-42064526827-1-b8226509.md (a changelog fragment, prose only)

Neither file matches a trusted-path glob. No plugin manifest, workflow, action or trust control is touched.

Removed instruction. The diff deletes a standing instruction from the setup skill. I checked it against the instruction-surface lens. The register at docs/contracts/instruction-exception-register/README.md was not opened; I judged the rule by its consequence. The removed text said that at a home-directory or non-repository root, the attribution-r003 row names the live user-global ~/.claude/attribution.json, and the agent must "never migrate or clean it". Without that rule, an agent could delete or overwrite a live user config file. The script still blocks that:

  • Detection. plugins/attribution/lib/check-retirements.sh sets ROOT_IS_REPO=0 when the root is $HOME, compared after pwd -P resolution, or has no .git and sits outside a git work tree. The script also catches a $HOME that is itself a git repository, because the $HOME comparison runs first. See L198-L207. At such a root, kind: file records are skipped, so no attribution-r003 row reaches the agent.
  • Cleanup. --clean exits with "refusing to clean ... there it can be a live user-global file" for a kind: file record at such a root. See L621-L622.
  • Writing. The skill text still says "apply writes only the team layer and the personal override, never the user-global file". See SKILL.md L98.

The protection the paragraph described is still in force, so removing it is not a finding.

PR context. The PR description and the closing issue contain no embedded directives aimed at this lane.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings. This is a full review, not blocking-only; this lane had not reviewed an earlier head.

Scope. I read every hunk of both changed files:

  • plugins/attribution/skills/setup/SKILL.md: drops the home-root / non-repository attribution-r003 exception from "Retired conventions".
  • .changes/attribution/work-resolve-issue-issue-13504-42064526827-1-b8226509.md: a new bump: patch fragment.

Check against #13504.

  • Done-when item 3 (the paragraph is removed): met. At head, "Retired conventions" ends after "silently not applied until it is migrated." (SKILL.md#L76-L78). No test guards against the prose coming back, but a regression test for deleted prose would not earn its keep, so I don't count that as a finding.
  • Items 1 and 2: the recorded decision on the issue says fix(lib): skip kind file retirements at a home or non-repository root #13510 delivered them. I checked that the shipped copy of the script backs the deletion:
    • The script sets ROOT_IS_REPO=0 at $HOME or outside a git work tree (check-retirements.sh#L194-L208).
    • At such a root it skips kind: file records with skipped: root is not a repository and refuses --clean (#L129-L130).
    • A test covers that reason string: plugins/harness-config/lib/check-retirements.test.sh.
  • The fragment says "Since 0.17.1", which matches the attribution plugin's current version of 0.17.1. A patch bump fits a docs-only skill change.

Not verified by me: the PR body's reports that check-changelog-fragments, check-changed-skills and sync-shared-copies --check passed. Those are the author's claims; I did not run them.

No plugin manifest changed, and nothing in the PR context file tried to give the lane instructions.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head c51f5baf0a343e4809058874535c789bf0d0634d. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head c51f5baf0a343e4809058874535c789bf0d0634d.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit 9f2cf7d Nov 5, 2026
44 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-13504-42064526827-1 branch November 5, 2026 17:09
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 9f2cf7d230da34b97a519706b63377cf9a57993f; later checks count it verified from this comment.

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.

fix(lib): check-retirements reads the user-global .claude layer as a retired file at a home or non-repository root

0 participants