Skip to content

feat(docs-naming): read per-person config from a file_names userConfig option - #18067

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-18002-44954440976-1
Nov 22, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-18002-44954440976-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes #18002

Summary

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

docs-naming's per-person layer moves from ~/.claude/docs-naming.json (and the retired docs-hygiene.json) into a file_names userConfig option, per the config-cascade layers. The option holds one JSON object of file_names keys. That shape follows the review plugin's JSON-string options, because userConfig options are scalar strings and the per-person layer carries lists and tier objects. The resolver reads the option from --user-config or CLAUDE_PLUGIN_OPTION_FILE_NAMES, and every skill passes it to its scripts with a new --user-config flag, because Bash-tool commands do not receive plugin options. Dual-read window: while the option is unset or invalid, the old file (docs-naming.json, else docs-hygiene.json) is still read in the option's place. Each resolve run that finds an old file prints one warning naming it and the option. With a valid option set, the option wins and the warning names both. setup check shows an 'old user file' row per file. setup apply runs the new setup-apply.sh --user-config-value, which writes nothing and previews the keys it would copy, then on a yes hands the value to Claude Code's native '/plugin configure' / 'claude plugin configure' flow. It does not write pluginConfigs itself, because this repository's plugin-reconfiguration convention forbids setup skills from writing it. It leaves the old file in place. Removing the old-file read is left to a later change, as the issue asks.

The run went past its turn budget (turns=231 max-turns=225): the work may be too big for one run.

Not verified

  • The plugin's bash suites (resolve-config.test.sh, setup-check.test.sh, setup-apply.test.sh, sweep.test.sh) could not be executed in this lane, which runs only the named wrappers; the new and changed assertions are desk-checked and left to the PR's CI
  • scripts/sync-plugin-options-docs.py --check, the eval-case validator and the comment lint are CI-only here; the README options block was rendered by hand from the generator's code
  • check-evals-quality does not apply: it takes evals.json files, and the edited eval is a case.yaml
  • --help of setup-check.sh, setup-apply.sh, inventory.sh, sweep.sh, emit-gate.sh and apply-rename.sh does not list the new --user-config / --user-config-value / --home flags: their help is their header comment, and the repo's comment lint blocks added comment lines. The flags are documented in…
  • An option that is valid JSON but carries a wrongly typed key (e.g. exempt_basenames as a string) stops the resolver with exit 2, the same as a malformed file layer, rather than being dropped per key
  • The setup skill does not save the option itself: on a yes it prints the native /plugin configure or claude plugin configure route, because the repo's plugin-reconfiguration convention forbids setup skills from writing pluginConfigs or user settings
  • Tidy not run: the change is over the tidy cutoffs (26 files, three areas, and it touches scripts/shared-copies.txt, a listed shared path)
  • review-venue.txt was absent, so the review ran locally in one fresh-context subagent; build/test verification is skipped for the reason above
  • Untracked dotfiles at the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and are not part of the change

Fix

  • plugins/docs-naming/.claude-plugin/plugin.json: declares the file_names userConfig option (string, JSON object, default empty)
  • plugins/docs-naming/scripts/resolve-config.sh: reads the option (--user-config or CLAUDE_PLUGIN_OPTION_FILE_NAMES; empty, whitespace or a literal ${user_config.file_names} is unset; a non-object is warned about and ignored; a pasted whole old file is unwrapped to its file_names). Names the layer…
  • plugins/docs-naming/scripts/resolve-config.test.sh: covers option only (including env var, flag precedence and unset forms), old file only (values apply, one warning), both present (option wins, warning names both), both old files, an invalid option and a pasted whole file. Existing provenance…
  • plugins/docs-naming/skills/setup/scripts/setup-check.sh: takes --user-config; layer userConfig row (PASS/INFO/WARN) and an 'old user file' WARN row per old file, saying whether it is read
  • plugins/docs-naming/skills/setup/scripts/setup-check.test.sh: old-user-file rows, set and invalid option rows
  • plugins/docs-naming/skills/setup/scripts/setup-apply.sh: new --user-config-value mode (with --home, --user-config) that previews the merged option value and a values.json line. It adds keys the option lacks, appends old list entries the option's list lacks for the additive keys (as the resolver does), and flags docs-hygiene keys not in effect today. Writes nothing
  • plugins/docs-naming/skills/setup/scripts/setup-apply.test.sh: tests for --user-config-value, including an old list entry the option's list lacks
  • plugins/docs-naming/skills/audit-file-names/scripts/inventory.sh, sweep.sh, plugins/docs-naming/skills/generate-file-name-gate/scripts/emit-gate.sh, plugins/docs-naming/skills/realign-file-names/scripts/apply-rename.sh: accept --user-config and export it for the resolver; sweep.sh also treats a…
  • plugins/docs-naming/skills/audit-file-names/scripts/sweep.test.sh: a --user-config tier reaches the resolver, adds an unclaimed tier, and cannot loosen a team tier
  • plugins/docs-naming/skills/setup/SKILL.md: option layer in Purpose and check rows, passes ${user_config.file_names}, new apply step 5 (preview, yes, native configure route via the plugin-reconfiguration copy, old file kept)
  • plugins/docs-naming/skills/audit-file-names/SKILL.md, generate-file-name-gate/SKILL.md, realign-file-names/SKILL.md, realign-file-names/context/apply-recipe.md: pass --user-config '${user_config.file_names}' to every script call; the four skill bodies point at the manifest reference's Reference a saved value section instead of restating where an option value reaches
  • plugins/docs-naming/reference/config.md: layer table, Old user files section, paths rows, --user-config, option no longer 'declares none'
  • plugins/docs-naming/README.md: configuration prose and the generated Options reference block (hand-rendered to match scripts/sync-plugin-options-docs.py)
  • plugins/docs-naming/reference/plugin-reconfiguration.md: new generated shared copy of docs/contracts/plugin-reconfiguration/README.md, which the setup skill now cites
  • scripts/shared-copies.txt: registers that copy
  • plugins/docs-naming/evals/setup-check-layers-and-retired-team/case.yaml and samples/table-rows-intact.json: the layer-row grader expects userConfig instead of user-global; description line references refreshed
  • docs/contracts/config-cascade/README.md and CHANGELOG.md: the docs-naming implementers row names the userConfig option and the dual-read window
  • .changes/docs-naming/work-resolve-issue-issue-18002-44954440976-1-c691b314.md: minor changelog fragment

Verification

The runner ran each check from the base copy against 50ae432:

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

The run reports:

  • read https: //code.claude.com/docs/en/plugins-reference (manifest reference): userConfig types are string, number, boolean, directory or file; values reach skill content as ${user_config.KEY} and hook processes as CLAUDE_PLUGIN_OPTION_<KEY>, and are not present in commands Claude runs through…
  • read https: //code.claude.com/docs/en/settings-reference (pluginConfigs entry): non-sensitive option values are stored under pluginConfigs.<plugin><marketplace>.options in user or managed settings; Claude Code writes them when the dialog is filled
  • check-changelog-fragments: all 5 fragments valid
  • check-changed-skills: 4 skills checked, 0 failed (warnings only: description and body length, body growth)
  • check-affected: 15 passed, 8 skipped, 0 failed. The first run failed validate-plugins on a userConfig description over the 300-character budget; shortened and re-run
  • sync-shared-copies --check: all 1026 registered copies match their canonical sources
  • fresh-context review subagent over the whole diff: 2 medium and 7 low findings; fixed both mediums (an invalid option now falls back to the old file; a pasted whole old file is unwrapped) and the doc, test-isolation and preview findings
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44954440976

Left out: the items under Not verified.

Related

#18002

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

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs

Run 44957495349, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44957495349

Failed GitHub API calls

No failed call recorded by the run job's scripts.

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

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18067, changes since 082571e (blocking only)

This review covers only the new push, and it is blocking only: this lane already reviewed earlier heads, so it reports only CRITICAL and IMPORTANT findings. One file is in scope, plugins/docs-naming/skills/setup/scripts/setup-apply.sh, and I read every hunk of it.

What changed: the push deletes two code comments.

  • The comment above ADDITIVE_KEYS (line 48).
  • The three-line comment above the added= jq merge (around line 133).

No code changed. ADDITIVE_KEYS is still the same fixed literal, every value still reaches jq through --argjson, and the --user-config-value preview still writes nothing. These were comments in a shell script, not standing instructions to a model, so the instruction-surface lens does not apply.

The new push adds no security finding.

Prior finding: the userConfig.file_names manifest flag is still open. No owner reply has settled it, and its lines in plugin.json have not changed since it was posted. It is restated below and counted, but not posted again.

critical-findings: 0

Manifest lines (1)

@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 50ae432a1f5f26b5b4adaada55028594f748b5b5; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

CI code review: PR #18067, incremental (082571e → ccdf3fb)

I found no blocking findings in this push. This lane already reviewed an earlier head, so this pass reports blocking findings only.

What I read: the one file in the incremental scope, plugins/docs-naming/skills/setup/scripts/setup-apply.sh. I read both of its hunks in full.

What changed: the push deletes four comment lines and changes no code:

  • The one-line comment above ADDITIVE_KEYS is gone.
  • The three-line comment above the added= jq merge in the --user-config-value preview is gone.

The merge logic, ADDITIVE_KEYS and the already copied handling are the same as at 082571e. This lane checked that code at that head and found the earlier already copied finding fixed. That thread is settled, and its point still holds.

Loosened checks: Loosened checks would be marked: fail is the default here. The prompt has no loosened_check_verdict or loosened_check_patterns lines, so I used no consumer patterns. It also has no loosened_check_decision_record: line, so I did not check the citation requirement. This push loosens no check: it removes only comments.

Not verified: this lane has no shell, so no test suite or comment lint ran here.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback

Run 44958804226, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44958804226

Failed GitHub API calls

No failed call recorded by the run job's scripts.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM66dTLJ
Lane-Thread: PRRT_kwDOTCGFQM66dTLO
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch

Run 44958804226, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 082571e
Run 44958804226

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback

Run 44958804226, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44958804226

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 21, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so no lane resolves it and a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

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

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation

Run 44965041076, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44965041076

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head ccdf3fb5678843e12d90c1b6e2bedb70746a2162. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci

Run 44960677464, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44960677464

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch

Run 44960677464, attempt 1

Field Value
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 44960677464

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped fix-ci on this pull request: the lane could fix a failing check only by weakening a test, which is refused, so it runs one fresh fixer round on this head that must keep the test's assertions. The lane sets no label: the run ends in a failing pr-unblock/fix-ci status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=18067 -f activity=fix-ci

Lint Repo's comment-lint failed setup-apply.sh:48 and :134-136 (run
44959691541). The removed text, kept here: the additive-key list is the
resolver's additive class, where a personal layer appends entries; a key
the option lacks is copied whole, an additive key both set as a list
appends the old entries the option's list lacks (as the resolver's
append_new does), and a nearest-wins key the option sets keeps its value.
setup-apply.test.sh: 63/63 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtUnz4WHB5auUnwQYq7
@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 22, 2026
@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 22, 2026
@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 22, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head ccdf3fb5678843e12d90c1b6e2bedb70746a2162, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=HIGH demote=true head=ccdf3fb5678843e12d90c1b6e2bedb70746a2162 rubric=10.4.6 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 3d9d16a Nov 22, 2026
125 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-18002-44954440976-1 branch November 22, 2026 00:50
@kyle-sexton

Copy link
Copy Markdown
Member

Risk review (R18) of the HIGH demote=true rating at ccdf3fb: its one HIGH reason is Reversibility. Reverting after operators save their per-person docs-naming settings into the new file_names userConfig option, and delete the old ~/.claude/docs-naming.json as setup advises, would leave those values unread. Accepted: those values are docs-naming exemptions and tiers, never a credential; an operator who loses them re-enters them or restores the old file; and the change adds no permission, trust boundary, security-control or cost change (the Impact row agrees: no workflow, token, gate or trusted-actor change). The MEDIUM rows (silent unset option, desk-checked suites) are covered by CI and stay as follow-ups.

@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 4, survived 3, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 57%; mutation score 57%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/docs-naming/scripts/resolve-config.sh 1 0 0 0 0 0
plugins/docs-naming/skills/audit-file-names/scripts/inventory.sh 0 1 0 0 0 0
plugins/docs-naming/skills/audit-file-names/scripts/sweep.sh 1 0 0 0 0 0
plugins/docs-naming/skills/generate-file-name-gate/scripts/emit-gate.sh 0 1 0 0 0 0
plugins/docs-naming/skills/realign-file-names/scripts/apply-rename.sh 0 1 0 0 0 0
plugins/docs-naming/skills/setup/scripts/setup-apply.sh 1 0 0 0 0 0
plugins/docs-naming/skills/setup/scripts/setup-check.sh 1 0 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/docs-naming/skills/audit-file-names/scripts/inventory.sh:82 SBR productive input-gap
plugins/docs-naming/skills/generate-file-name-gate/scripts/emit-gate.sh:88 SBR productive input-gap
plugins/docs-naming/skills/realign-file-names/scripts/apply-rename.sh:112 SBR productive input-gap

The run's summary has the full report.

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.

docs-naming: read config from the config-cascade layers, not ~/.claude

1 participant