Skip to content

feat(testing): run testing:audit and testing:cleanup across several repositories via the target-scope contract - #17504

Merged
melodic-automation-lanes[bot] merged 5 commits into
mainfrom
work-resolve-issue/issue-17240-44594143153-1
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 5 commits into
mainfrom
work-resolve-issue/issue-17240-44594143153-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #17240

Summary

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

/testing:audit and /testing:cleanup now accept the target-scope contract's forms (--repo, --repos-from, --owner, --fleet, --skip, or the same request in words). Each skill's new 'Over several repositories' section cites the contract's sections by name and states only what differs for that skill. The plugin ships a generated reference/target-scope.md. With no target form, nothing changes. The audit runs one scan per repository with CANT_FAIL_SCAN_ROOT=<root>. That repository's checkout must be clean and at origin/HEAD, because the scanner reads the working tree (the same rule code-metrics uses). --persist-findings files go to each repository's own memory root, and --check, --file and --judge stay single-repository. Cleanup makes one worktree per repository from origin/HEAD and runs the Repository plan there; plan step 1's scans may fan out. A repository's batches (steps 0-7) run in a session whose project is that worktree, because /mutation-testing:audit and the test-weaken hook read the session's own project. Under a target form the invoking session runs no batch: for every repository, its own included, it lists the command to run in a session opened in that repository's worktree. Design choice and basis: the issue's table says 'one PR per batch', but its Outcome says 'one worktree and one PR each' (per repository), and the contract's 'Writes stay per repository' says one pull request per repository sized by the PR scope budget. Cleanup already commits its batches one after another on one branch, so the text follows the contract: one PR per repository. No eval case reads the new multi-repository text: a grep of plugins/testing/evals for repository-plan or --repo wording found none.

Not verified

  • docs/skill-cheat-sheet.md was edited by hand to match the frontmatter, not regenerated with node scripts/generate-cheatsheet.mjs (the lane cannot run node); CI's generated-file check should confirm it
  • Tidy skipped: the change touches scripts/shared-copies.txt, a listed shared path, so it is outside the tidy cutoffs
  • check-affected skipped typos, comment-hygiene, size-check and the validate-plugins subchecks here; left to the PR's CI
  • No eval case reads the new multi-repository sections; the PR body should say none does
  • Changes are left uncommitted in the working tree, as the lane's system prompt requires; the runner turns them into the patch

Fix

  • plugins/testing/skills/audit/SKILL.md: argument-hint gains [--repo <repo> ...]; new 'Over several repositories' section (one scan per repository, clean origin/HEAD checkouts only, merged report in the Project context order, per-repository findings files, --check/--file/--judge refuse a…
  • plugins/testing/skills/cleanup/SKILL.md: argument-hint gains [--repo <repo> ...]; Arguments points a target form at the new 'Over several repositories' section (worktree per repository, plan per repository, batches run in that repository's session, per-repository state, a pull request per…
  • plugins/testing/reference/target-scope.md: new generated copy of docs/contracts/target-scope/README.md
  • scripts/shared-copies.txt: registers the testing copy at its alphabetical place
  • docs/contracts/target-scope/adopters/testing.md: new adopter file listing /testing:audit and /testing:cleanup
  • docs/skill-cheat-sheet.md: argument-hint columns for the two skills updated to match the frontmatter
  • plugins/testing/README.md: one sentence per skill row naming the multi-repository behavior
  • .changes/testing/work-resolve-issue-issue-17240-44594143153-1-16a3a590.md: minor changelog fragment

Verification

The runner ran each check from the base copy against 65b3607:

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

The run reports:

  • sync-shared-copies (generate): generated plugins/testing/reference/target-scope.md, exit 0
  • sync-shared-copies --check: all 986 registered copies match their canonical sources
  • check-changelog-fragments: all 10 fragments valid
  • check-changed-skills: audit and cleanup PASS, 0 errors (existing size and description-length warnings remain)
  • check-affected: 14 passed, 9 skipped (typos not installed, comment-hygiene fetch blocked by network, size-check script missing, checks that run code from the checked tree)
  • Fresh-context review subagent: 5 findings (3 medium, 2 low), all fixed: PR-per-batch vs contract, read-only claim for plan step 1, unnamed root mechanisms for the scripts, a new Tier ordering, the missing origin/HEAD case
  • scripts/cross-plugin-source-registry.txt already covers the copy through its plugins/*/reference/target-scope.md glob and reference/target-scope.md basename lines, so it needed no edit
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44594143153

Left out: the items under Not verified.

Related

#17240

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 44598292652

Failed GitHub API calls

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

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17504

I found no security issues. I read every hunk of all 8 changed files in .claude-lane/pr.diff, and none of them matches a trusted-path glob.

What changed. /testing:audit and /testing:cleanup now accept the target-scope contract's forms (--repo, --repos-from, --owner, --fleet, --skip). The PR also adds:

  • a generated plugin copy, plugins/testing/reference/target-scope.md, registered in scripts/shared-copies.txt;
  • an adopter file;
  • matching updates to the cheat sheet and README rows;
  • a changelog fragment.

With no target form, both skills behave as before.

What I checked.

  • Standing instructions. The diff only adds text. It removes and softens no rule.
    • Audit stays read-only. It scans a repository other than the session's own only when that checkout is clean and at origin/HEAD; otherwise it reports the repository as skipped. --check, --file and --judge refuse a target form.
    • Cleanup writes only in a new worktree per repository, never in a main checkout. Under a target form this session runs no batch. Instead it lists the /testing:cleanup <folder> command to run in a session opened in each repository's worktree, so the mutation gate and the test-weaken hook still read the project being edited.
    • Per-item confirmation, the --record-mutants / --replay-mutants gate, and the rule that pull requests open only when the user asks are all unchanged.
  • Cross-repository reach. The multi-repository runs feed nothing to a credentialed lane. They run the plugin's own scanner with CANT_FAIL_SCAN_ROOT=<root> and read each repository's AGENTS.md at origin/HEAD, which the shared contract already specifies. This session runs no code from another repository.
  • Plugin manifests. No plugin.json or marketplace.json changed, so there are no manifest lines.
  • Trust controls. No trusted-trigger, token, kill-switch, merge-hold or .github/actions/ file changed.
  • Embedded text. The PR context file contains no instructions aimed at this review lane.
  • Spend. Nothing beyond normal lane use.

Settled threads. The earlier finding on how cleanup treats the session's own repository was resolved, and its lines have not changed since. The current text has this session run no batch under a target form, so I did not raise it again.

Prior findings. The one earlier post was a summary with 0 findings, so nothing carries over.

This review was blocking only (blocking only: yes), so it would have dropped SUGGESTION findings; there were none.

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

claude-lane: claude-review

Comment thread plugins/testing/skills/cleanup/SKILL.md Resolved
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (blocking only): PR #17504

No blocking findings. I read every hunk of all 8 changed files in the full diff. This lane has already reviewed two earlier heads of this pull request (blocking only: yes), so I reported only blocking findings and dropped advisory ones. The diff matches the one reviewed at 3e4d3e89.

Prior finding stays settled. The earlier inline finding was that the section contradicted itself about the session's own repository (discussion_r4634048192). It was resolved at dab9126f, and its lines have not changed since. The section still reads consistently:

  • Under a target form, this session runs the plans and no batch.
  • For every repository, this one included, it lists the /testing:cleanup <folder> command to run in a session opened in that repository's worktree.
  • The Unattended line agrees with that (cleanup/SKILL.md#L95-L109).

Closing issue #17240, checked against its "Done when" list:

  • Target forms: both skills cite the contract's sections by name, and both argument-hint values show [--repo <repo> ...].
  • No target form: both sections state that behavior is unchanged.
  • Per-repository state: the audit's findings files stay per repository, and so do cleanup's <work>, plan files and findings file.
  • CANT_FAIL_SCAN_ROOT: the per-repository scan root uses this variable, which the detector already supports (audit/SKILL.md#L89).
  • Generated copy: plugins/testing/reference/target-scope.md exists and is registered in scripts/shared-copies.txt.
    • The PR body says scripts/cross-plugin-source-registry.txt already covers the copy through a glob. That is the author's claim; I did not verify it.
    • The sync-shared-copies --check pass is also the author's claim; I did not verify it.
  • Adopters: docs/contracts/target-scope/adopters/testing.md lists both skills.
  • Changelog: a fragment exists under .changes/testing/, with bump: minor.
  • Eval case: the PR body says no eval case reads the new text.
  • Cheat sheet: the author edited docs/skill-cheat-sheet.md by hand and did not regenerate it. This is unverified; CI's generated-file check is left to confirm it.
  • One PR per batch vs per repository: the issue's table says "one PR per batch", but its Outcome says "one worktree and one PR each". The PR follows the Outcome and the contract, and its body records that choice.

Other checks:

  • Loosened-check verdict: fail. This is the default, because the prompt gave no loosened_check_verdict: or loosened_check_patterns: line, so there are no consumer patterns.
    • No changed line loosens a check.
    • The prompt gave no loosened_check_decision_record: line, so I did not check the citation requirement.
  • No plugin manifest changed, so there are no manifest lines.
  • The PR context, settled threads and prior findings contain no embedded instruction text.
  • The only spend is this review run, which draws on prepaid or subscription usage.

Verifier dropped 0 of 0 candidates.

@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 skipped
Commits pushed none recorded
Run 44600275353

Failed GitHub API calls

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@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 44607250438

Failed GitHub API calls

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

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM65rXsE
@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 success
Commits pushed dab9126
Run 44607250438

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 1 of max 4 on dab9126.

@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 44607250438

Failed GitHub API calls

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

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

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

@melodic-automation-lanes
melodic-automation-lanes Bot removed this pull request from the merge queue due to a manual request Nov 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 3e4d3e8979c27243c721972c5c6dc8e4b85a9130, 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=MEDIUM demote=false head=3e4d3e8979c27243c721972c5c6dc8e4b85a9130 rubric=10.4.1 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 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 20, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 20, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot removed this pull request from the merge queue due to a manual request Nov 20, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 8a693e2bca01aa02347e82ac4904f288e856e825, 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=MEDIUM demote=false head=8a693e2bca01aa02347e82ac4904f288e856e825 rubric=10.4.1 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 20, 2026
Merged via the queue into main with commit b57c558 Nov 20, 2026
53 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17240-44594143153-1 branch November 20, 2026 02: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.

feat(testing): run the test audit and cleanup across several repositories via the target-scope contract

1 participant