Skip to content

feat(docs-naming): run the file-name audit and realign across several repositories - #17290

Merged
kyle-sexton merged 4 commits into
mainfrom
work-resolve-issue/issue-17233-44405851230-1
Nov 19, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
work-resolve-issue/issue-17233-44405851230-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17233

Summary

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

/docs-naming:audit-file-names and /docs-naming:realign-file-names now accept the target-scope contract's target forms. Each skill cites the contract's sections through a new plugin-shipped copy (plugins/docs-naming/reference/target-scope.md, generated by scripts/sync-shared-copies.sh) and states only what differs for it. With no target form, both skills run exactly as before. Design choice and its basis: the rename plan is checkout-local and keyed by branch (context/file-name-findings.md "Where it lives"), and apply-rename.sh rebuilds that key from the current HEAD. So over several repositories the audit runs in one new-branch worktree per repository, created from origin/HEAD, and writes that repository's plan there. The realign then applies each plan in that same worktree, one repository at a time, which keeps per-repository state per repository and gives one worktree and one PR each. A detached worktree would key the plan by a short SHA that the first commit changes. Finding ids are unique only within a repository, so both skills qualify them as owner/name FN-xxxxxxxx. Eval cases: the existing docs-naming cases that tag these skills (for example audit-plans-renames-tiers-frozen and realign-applies-one-id) load the changed SKILL.md files but run with no target form, so none of them exercises the new multi-repository text.

Not verified

  • docs/skill-cheat-sheet.md was edited by hand, not regenerated with node scripts/generate-cheatsheet.mjs, because this lane cannot run node. The two rows were matched to the generator's rendering by reading it; the PR's CI cheat-sheet check confirms them
  • tidy skipped: the change touches 11 files and 4 areas (cutoffs are 10 files and 1 area), and it touches the shared path scripts/
  • check-affected skipped typos (not installed), comment-hygiene (fetch failed), three validate-plugins sub-checks and changed-skills (runs checked-tree code); these are left to the PR's CI
  • no eval case exercises the multi-repository path; the existing cases run with no target form

Fix

  • plugins/docs-naming/skills/audit-file-names/SKILL.md: argument-hint gains \[--repo <repo> ...\]; new "Over several repositories" section citing the contract (worktree per repository on a new branch from origin/HEAD, one plan per repository, repository-qualified ids, merged report naming…
  • plugins/docs-naming/skills/realign-file-names/SKILL.md: argument-hint gains \[--repo &lt;repo&gt; ...\]; new "Over several repositories" section (repository-qualified acceptances, bare id asks which repository, applies in the audit's worktree found from the report or `git -C <root> worktree…
  • plugins/docs-naming/reference/target-scope.md: new generated copy of docs/contracts/target-scope/README.md
  • scripts/shared-copies.txt: registers the docs-naming copy (scripts/cross-plugin-source-registry.txt already covers it through its reference/target-scope.md and plugins/*/reference/target-scope.md entries, so it is unchanged)
  • docs/contracts/target-scope/README.md: Adopters table lists both docs-naming skills
  • plugins/architecture/reference/target-scope.md, plugins/coupling/reference/target-scope.md: regenerated with the new Adopters rows
  • docs/skill-cheat-sheet.md: the two docs-naming rows show the new argument hints
  • .changes/docs-naming/work-resolve-issue-issue-17233-44405851230-1-2e540c13.md: minor fragment
  • .changes/architecture/work-resolve-issue-issue-17233-44405851230-1-8f56a2d5.md, .changes/coupling/work-resolve-issue-issue-17233-44405851230-1-257461c9.md: patch fragments for the regenerated copies

Verification

The runner ran each check from the base copy against 27f35cb:

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

The run reports:

  • sync-shared-copies (generate): generated the architecture, coupling and docs-naming copies, exit 0
  • sync-shared-copies --check: all 963 registered copies match their canonical sources, exit 0
  • check-changelog-fragments: all 9 fragments valid
  • check-changed-skills: audit-file-names and realign-file-names PASS, 0 errors, 3 warnings each (description above 419 chars, which predates this change; body above 160 lines; body grew)
  • check-affected: 14 passed, 8 skipped, 0 failed over 11 changed files
  • fresh-context review subagent over the whole diff: found 4 problems and 2 minor ones (detached-worktree branch key, no worktree lookup for the realign, worktree write not reconciled with the contract's read-only rule, missing "Target forms" citation, restated contract text, unclear merged-row…
  • cheat-sheet rows checked against scripts/generate-cheatsheet.mjs actionWords and codeCell by reading: neither new hint's first group has a |, so the Actions cell stays empty and the Arguments cell is the hint in backticks
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44405851230

Left out: the items under Not verified.

Related

#17233

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

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44408244872

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17290 (head 59ea660)

No security issues found. This lane already reviewed an earlier head, so this review was blocking only: it reports CRITICAL and IMPORTANT findings and drops SUGGESTIONs.

I read every hunk of the 9 files in scope. I skipped the identical copies: the coupling and improvement changelog fragments, and plugins/coupling/reference/target-scope.md and plugins/improvement/reference/target-scope.md. Moving the same markdown to those paths doesn't change what it does.

Skill bodies. audit-file-names/SKILL.md and realign-file-names/SKILL.md each gain an "Over several repositories" section and a --repo argument hint.

  • Neither skill's allowed-tools frontmatter changes, so no tool grant gets wider.
  • The new text implies commands such as git worktree add, git worktree list and git fetch. None of them is on either skill's allowlist, so they still go through the normal permission prompt.
  • The audit now reuses an existing worktree on docs-naming/file-names when one exists, or creates one from the local branch. This only changes where the plan is written, inside the operator's own clones.

Instruction surface. No standing rule is deleted, narrowed or softened.

  • The realign still needs one person's acceptance per file. With several repositories in scope, a bare id becomes a question instead of an acceptance, which makes the rule stricter.
  • The realign still never commits.
  • The audit's read-only rule for tracked files is restated. The only new write is one worktree and branch per repository, which the target-scope contract allows ("Writes stay per repository").

Generated copies and registry.

  • scripts/shared-copies.txt registers one more generated copy of docs/contracts/target-scope/README.md.
  • The Adopters rows are added to the canonical contract and to its copies.
  • docs/skill-cheat-sheet.md changes only two argument-hint cells.

None of these changes what runs.

Repository targets. Targets come from the operator's own arguments and resolve to local ghq clones. The contract forbids cloning during a run. No untrusted actor reaches this path, and no credential or token is involved.

Trust controls and manifests. The change touches no trusted path, trust control, merge hold or plugin manifest.

PR context. The PR description contains no instructions aimed at this lane.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: docs-naming target-scope adoption (#17290), head 59ea660e

No blocking findings. This lane already reviewed an earlier head, so this pass reports only blocking findings and drops advisory ones.

Scope. I read all 9 files in scope. These are copies of other files, so I did not count them separately:

  • The coupling and improvement changelog fragments are byte-identical to the architecture fragment.
  • The coupling and improvement reference/target-scope.md copies are byte-identical to the architecture copy.

The new plugins/docs-naming/reference/target-scope.md has the same blob as the other generated copies (90e78768), and scripts/shared-copies.txt registers it.

Earlier findings. Both inline findings from head a1904839 are settled. The owner replied with a decision: fixed in 15358f4. The settled-threads file marks both lines changed since resolution: no. At this head:

  • The audit reuses one worktree per repository on the fixed branch docs-naming/file-names, found with git -C <root> worktree list --porcelain.
  • The realign picks the worktree on that branch only, and reports "no plan found" when there is none.

I did not raise either point again.

Closing issue #17233, "Done when":

  • argument-hint shows [--repo <repo> ...] in both skills, and both cite the contract's "Target forms" and "Resolving repositories": met.
  • With no target form, behavior is unchanged: both new sections open by saying so, and the single-repository text is untouched. I found no test that could fail if this broke. The PR body says no eval case exercises the new path.
  • State is kept per repository: met as written. The plan lives in each repository's docs-naming/file-names worktree. The scripts take --root (inventory.sh, sweep.sh, emit-findings.sh), so the per-repository run is anchored there.
  • Generated copy: met. It is registered in scripts/shared-copies.txt, and scripts/cross-plugin-source-registry.txt already covers it through its glob entries, as the author says. sync-shared-copies.sh --check passing is the author's claim; I did not verify it.
  • Adopters table lists both skills: met, in the canonical file and in all three copies.
  • Cheat sheet: the two rows were edited by hand rather than regenerated. The PR body says CI checks this. I did not verify it, but the new hints contain no | that the generator would escape.
  • Changelog fragment .changes/docs-naming/… with bump: minor: met.
  • PR body says whether an eval case reads the changed text: met (it says none does).

Other checks:

  • No plugin manifest changed, so there are no manifest lines.
  • No billing surface is touched, so there is no hold.
  • I found no embedded instructions in the PR context, settled-threads or prior-findings files.

Loosened-check verdict: fail (default: the prompt gave no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. I did not check the decision-record citation because the prompt has no loosened_check_decision_record: line. No change in this diff loosens a check.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44429763408

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44432818021

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

A session is reworking this PR to address its two open claude-review threads. do-not-merge stays on until that push lands; the label comes off afterwards.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 44432818021

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44432818021

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

…ranch

A multi-repository audit created a new worktree and branch from
origin/HEAD on every run, so a re-audit found an empty plan home and
asked the operator's declined findings again, and the realign had no
rule for picking a worktree from git worktree list. The audit now
reuses the worktree on docs-naming/file-names, creating it only when
none exists, and the realign selects that branch's worktree.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: a fix the lane recorded did not reach the branch, so none of its review replies was posted. The lane sets no label: 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=17290 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44432818021

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

Keep both adopter rows in the target-scope contract (docs-naming from
this branch, improvement from main) and regenerate every plugin copy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 59ea660e930695a43e6a04071ac2bbd682be09c0, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=59ea660e930695a43e6a04071ac2bbd682be09c0 rubric=10.4.0 rater=claude-opus-5-5 checker=claude-opus-5-5

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 42cca87 Nov 19, 2026
83 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-17233-44405851230-1 branch November 19, 2026 04:47
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.

feat(docs-naming): run the file-name audit and realign across several repositories via the target-scope contract

1 participant