Skip to content

refactor(attribution): move this repository's attribution settings to docs conventions attribution.yaml - #10555

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-10540-40604725427-1
Oct 28, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #10540

Summary

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

This repository's attribution settings now live in docs/conventions/attribution.yaml, which the YAML-first reader from #10538 already reads before .claude/attribution.json. The plugin now ships plugins/attribution/schemas/attribution.schema.json, where scripts/check-convention-yaml.sh looks for it (rule 1, the plugin-concern path). The schema covers every key the plugin documents, and the YAML validates against it. Migrated settings, with each one's new home and schema: excluded_paths ["/evals/fixtures/"] -> docs/conventions/attribution.yaml excluded_paths, schema plugins/attribution/schemas/attribution.schema.json#/properties/excluded_paths (array of non-empty strings); trigger_less_stamp_check true -> docs/conventions/attribution.yaml trigger_less_stamp_check, schema plugins/attribution/schemas/attribution.schema.json#/properties/trigger_less_stamp_check (boolean). .claude/attribution.json stays in place; deleting it is the #5906 cleanup slice.

Not verified

  • scripts/check-convention-yaml.sh --check (the issue's first done-when criterion) was not run here. check-affected lists it as CI-only (convention-yaml-schema), the lane only runs its named wrappers, and the script lists files with git ls-files, so the new untracked YAML is checked only once committe
  • scripts/check-changelog-fragments.sh --check-required origin/main (the issue's third criterion) was not run in that form; the lane's check-changelog-fragments wrapper (no arguments) passed. Left to the PR's CI.
  • The plugin's shell test suites (plugins/attribution/skills/audit/scripts/*.test.sh) were not run here; no script changed, and the PR's CI runs them.
  • The setup skill (plugins/attribution/skills/setup/SKILL.md) and docs/conventions/config-cascade/README.md 'Surfaces listed for later adoption' still name .claude/attribution.json as the team layer. That is outside this slice, which adds only the schema and the YAML, and is left for the #9729 / #5906

Fix

  • plugins/attribution/schemas/attribution.schema.json: new draft 2020-12 schema for the attribution team layer. It covers excluded_paths, budgets.{searches_per_candidate,fetches_per_candidate,corpus_fetch_ceiling}, separation.{min_containment,min_span_words}, stamp_expiry_days, trigger_less_stamp_chec
  • docs/conventions/attribution.yaml: new team layer carrying both values of .claude/attribution.json (excluded_paths: "/evals/fixtures/", quoted for the YAML-subset parser; trigger_less_stamp_check: true), with a yaml-language-server schema pointer and a header saying both files must be kept in sy
  • .changes/attribution/refactor-10540-attribution-yaml-schema-a3f61d08.md: minor changelog fragment for the new shipped schema. It was written by hand because new-changelog-fragment refuses a detached HEAD, and the name follows the existing <branch-slug>-<8 hex> pattern.

Verification

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

  • 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 (run before and after the review fixes).
  • .lane/checks/bin/check-affected: 11 passed, 7 skipped over 3 changed files; the skips were shellcheck, ruff and changed-skills (nothing of their kind changed), typos (not installed) and three validate-plugins sub-steps that run code from the checked tree (run before and after the review fixes).
  • Fresh-context subagent review of the whole diff (read-only, no commands run): no correctness bugs. It confirmed that the YAML carries every value of .claude/attribution.json with the same meaning through lib.sh cfg_scalar/cfg_list, that it parses under lib/yaml-subset.awk and the plugin's --strict p
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40604725427

Left out: the items under Not verified.

Related

#10540

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

Copy link
Copy Markdown
Contributor

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

No findings. The PR adds plugins/attribution/schemas/attribution.schema.json, docs/conventions/attribution.yaml and a minor changelog fragment. No trusted-path glob matches any of the three files.

What I checked, by reading the code:

  • Reader: plugins/attribution/skills/audit/scripts/lib.sh reads <home>/attribution.yaml, which comes before the legacy .claude/attribution.json. cfg_list finds the key with a plain line match, so excluded_paths: in the YAML is picked up. cfg_scalar reads trigger_less_stamp_check.
  • Migration: the YAML carries both values of .claude/attribution.json: excluded_paths: ["**/evals/fixtures/**"] and trigger_less_stamp_check: true. Nothing is lost.
  • Schema against docs: the keys, types and shipped defaults match the setup skill (plugins/attribution/skills/setup/SKILL.md, lines 96–113) and the audit skill (plugins/attribution/skills/audit/SKILL.md).
  • Strictness: additionalProperties: false at the top level and in every nested object rejects accuracy.judge_samples, as the setup skill requires.
  • $schema key: the schema allows it, so the yaml-language-server comment line cannot cause a rejection.
  • Changelog fragment: a minor bump suits a new shipped schema.

Closing issue #10540:

  • Criterion 1 (the YAML carries every value, and check-convention-yaml.sh --check exits 0): the YAML carries both values. I did not run the script, because I have no shell. The PR says it was not run either, so I cannot confirm this part. CI runs it.
  • Criterion 2 (the PR body lists each migrated setting with its new home and schema): met.
  • Criterion 3 (check-changelog-fragments.sh --check-required origin/main exits 0): I have not run it. The PR says only the no-argument wrapper was run.

The PR body notes that the setup skill and the config-cascade README still name .claude/attribution.json as the team layer. This is outside the slice and left to #9729 and #5906.

I verified nothing by running it. Every check in the PR's Verification section is author-claimed.

The change spends no paid resources, so I set no hold.

@github-actions

Copy link
Copy Markdown
Contributor

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

No security issues found in this pull request (head aa4df9c).

I read the whole diff (3 files) and the PR context. The context file was treated as data. It contains no embedded instructions aimed at the lane.

  • docs/conventions/attribution.yaml: This is a new team-layer config. It carries the same two values as the legacy .claude/attribution.json: excluded_paths: ["**/evals/fixtures/**"] and trigger_less_stamp_check: true. It excludes eval fixtures from an audit scan and turns on a stricter stamp check. That widens no trust control and gates no merge, token or kill switch. The exclusion matches the base behavior. The stricter check is more protective, not less.
  • plugins/attribution/schemas/attribution.schema.json: This is a new JSON Schema file with additionalProperties: false throughout. It is data only, and nothing executes it. Its $id and the $schema pointer in the YAML are plain strings. The YAML header's # yaml-language-server: $schema= comment points to a relative path inside the repository, so no external fetch is involved.
  • .changes/attribution/...md: This is a changelog fragment. It is prose only and contains no surface that removes or softens a standing instruction.

Plugin manifests: neither plugin.json nor marketplace.json is touched, so there are no manifest <field> lines. Trusted paths: none of the changed files matches a TRUSTED PATHS glob. Instruction-surface deletions: the diff only adds files and deletes nothing, so the exception register was not needed.

Spend: this adds no billable resource and no change to model, turn or run limits.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@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 1205c63 Oct 28, 2026
43 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-10540-40604725427-1 branch October 28, 2026 00:55
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): move this repository's attribution settings to docs/conventions/attribution.yaml

0 participants