Skip to content

refactor(attribution): make setup write attribution.yaml and drop old-path prose - #10586

Merged
melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-10543-40623276521-1
Oct 28, 2026
Merged

melodic-automation-lanes[bot] merged 4 commits into
mainfrom
work-resolve-issue/issue-10543-40623276521-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #10543

Summary

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

/attribution:setup now writes the team layer to <home>/attribution.yaml and the overlay to <home>/attribution.local.yaml. It resolves <home> with the plugin's resolve-convention-home.sh, covering every exit code, and reads the layers in effect from list-corpus.sh --show-config. A layer still on its .claude/ JSON fallback has all its keys carried into the new YAML file on the first write, because the detectors stop reading the JSON once the YAML exists (per file, not per key, skills/audit/scripts/lib.sh:51-55). The README, the audit skill, the two retirement records' successor prose and the setup evals no longer point at .claude/attribution.json as the place to write.

Not verified

  • scripts/check-changelog-fragments.sh --check-required origin/main (the issue's done-when) was not run with that argument here; the lane's no-argument wrapper validated the fragments. Left to the PR's CI.
  • Tidy's ai-slop pass ran only as a manual rubric read and an em-dash/vocabulary Grep, with no findings. The deterministic detect.sh is not among the Bash commands this lane allows. CI's purged-em-dashes and markdown lanes cover part of it.
  • The setup evals were not executed (no eval harness in this lane); no eval covers the new gitignore gate or the JSON-fallback carry-over rule.
  • setup/SKILL.md still names ~/.claude/attribution.json as the user-global layer, which a literal git grep .claude/attribution.json will print. It is a live read (lib.sh:46), not the retired team location; moving it to userConfig is #5906's work.
  • check-affected skipped changed-skills, typos and three validate-plugins sub-checks that run checked-tree code; left to the PR's CI.

Fix

  • plugins/attribution/skills/setup/SKILL.md: description, gather-context (convention-home resolver with exits 0-5, layers in effect from list-corpus.sh --show-config), action router, layers table and key examples now name <home>/attribution.yaml and <home>/attribution.local.yaml. Add
  • plugins/attribution/README.md: the key example is block-style YAML instead of the JSON form of .claude/attribution.json; it says /attribution:setup writes the YAML files and names the schema.
  • plugins/attribution/skills/audit/SKILL.md: /attribution:setup manages the YAML files (it used to say the .claude/ JSON files).
  • plugins/attribution/retirements.yaml: successor prose of attribution-r001 and attribution-r002 names <home>/attribution.yaml and <home>/attribution.local.yaml as the migration targets; a key the current layer (YAML, else its JSON fallback) already sets keeps its value. Detection fi
  • plugins/attribution/skills/setup/evals/evals.json: evals 7 and 8 expect the migration to write docs/conventions/attribution.yaml and a gitignored docs/conventions/attribution.local.yaml.
  • .changes/attribution/refactor-10543-setup-writes-attribution-yaml-4b9e17c2.md: new minor changelog fragment for the attribution plugin, written by hand because new-changelog-fragment refuses a detached HEAD.

Verification

The runner ran each check from the base copy against 6765ebd:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • .lane/checks/bin/check-changelog-fragments: 'All 5 changelog fragment(s) under .changes/ are valid.'
  • .lane/checks/bin/check-affected: final run 11 passed, 7 skipped over 6 changed files. Earlier runs caught a skill description containing </> (validate-plugins) and two MD038 code-span errors (markdownlint); both fixed and re-run green.
  • .lane/verify/bin/check-evals-quality plugins/attribution/skills/setup/evals/evals.json: PASS with 4 Q4 warnings (path tokens with no fixture in narration-less evals 7 and 8). Eval 7 already warned on .claude/provenance.json and eval 8 on .claude/provenance.local.json before this change.
  • Grep for \.claude/attribution under plugins/attribution outside *.test.sh: remaining hits are lib.sh compatibility-read code and comments, CHANGELOG.md lines, the schema description naming the legacy files, and setup/SKILL.md's user-global row ~/.claude/attribution.json, which lib.sh:46 still re
  • Local fresh-context review subagent over the whole diff: 1 bug (resolver exits 4 and 5 unhandled) and 5 inconsistencies/nits (JSON-fallback detection, incomplete quoting rule, missing home creation, overlay gitignore in eval 8, successor ambiguity on the JSON fallback). All six were checked against
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40623276521

Left out: the items under Not verified.

Related

#10543

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

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed fceb126396d77c62b6c41b136531c0a036d183f0: 0 finding(s), 0 as inline comments.

Incremental security review of plugins/attribution/skills/setup/evals/evals.json (changes since 60dceba). I found no security issues.

The change adds two eval cases (ids 9 and 10) as prompt, expected-output and expectation text. No code, workflow, trust control, manifest or standing instruction changes, so there is nothing for the trust-control or instruction-surface lenses to read. Skip gate 2 applies.

The new text asks the setup skill to:

  • check git check-ignore before writing the overlay file, and
  • never write the user-global ~/.claude/attribution.json.

Both are protective, not widening. The PR context holds no embedded directives aimed at the reviewer.

No manifest items were hit.

critical-findings: 0

@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: 1 inline finding(s) on 6765ebd15e355e52654f6f0bea913d242cdc28c7; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed fceb126396d77c62b6c41b136531c0a036d183f0: 0 finding(s), 0 as inline comments.

Incremental review of plugins/attribution/skills/setup/evals/evals.json since 60dceba. No findings.

The change adds two evals that cover the gaps the PR body listed under "Not verified".

  • Eval 9 (json-fallback-layer-moves-whole) matches the "A layer still on its .claude/ JSON fallback moves whole" rule in setup/SKILL.md (lines 60-66). It checks that every JSON key is carried into the YAML, shown in the check report, and that the JSON file is left in place.
  • Eval 10 (overlay-write-checks-gitignore) matches the git check-ignore -q gate in setup/SKILL.md (lines 98-100). It also covers the never-write-user-global rule.
  • Keys and structure: judge_samples, stamp_expiry_days and budgets.corpus_fetch_ceiling all appear in attribution.schema.json. The JSON structure is valid, ids 9 and 10 are sequential, and both evals set narration: true.

Nothing here spends more than prepaid credits or subscription usage. Closing issue #10543 was read; the incremental change doesn't affect its done-when items. I did not run the evals or the checks myself.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 60dcebafa1d29ac491024aa91c39c71fa740fe0b. 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

pr-unblock / address-feedback finished round 1 of max 4 on e4a2c2a.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on fceb126.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 28, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a disputed review finding is one only a person decides (a security-review finding, a thread a person directed, or one an adjudicator found stands and the next round left open again).

  • Reason: feedback-disputed
  • Resume key: fceb126396d77c62b6c41b136531c0a036d183f0 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=10586 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=10586 -f activity=address-feedback

@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 28, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 870c87e Oct 28, 2026
83 of 86 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-10543-40623276521-1 branch October 28, 2026 05:14
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.

refactor(attribution): make setup write attribution.yaml and drop old-path prose

1 participant