Skip to content

feat(mutation-testing): run the --full mutation audit across several repositories via the target-scope contract - #17613

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-17241-44684818330-1
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-17241-44684818330-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17241

Summary

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

/mutation-testing:audit --full now accepts the target-scope contract's forms (--repo, --repos-from, --owner, --fleet, --skip, or the same request in words) and runs once per repository. The new spoke context/several-repositories.md cites the contract's sections by name and states only what differs here. Design choices, decided from the code: (1) each repository's mutants run in a throwaway detached worktree of origin/HEAD, never a main checkout, because in-tree regimes write mutants into tested files; this follows seed-faults' throwaway-worktree pattern. (2) Phases 0-1 run first per repository and the user confirms once for the set; a fresh subagent then resumes from Phase 2 in the same worktree with an explicit handoff. (3) Phase 4 triage runs from the parent session, one fresh-context subagent per repository, so the context that ran a repository's mutants never grades them. (4) Per-file rows rank on one oracle-gap scale with owner/name; headline scores stay per repository; findings files go to each repository's own memory root, with branch: taken from the branch origin/HEAD names. Diff scope, --exercised, --paths, --phase and record/replay stay single-repository and refuse a target form. With no target form nothing changes. Eval cases: the au-* cases (for example au-dirty-target-stops, au-no-test-command-asks, au-light-survivors-unclassified) load the changed SKILL.md and so read the new argument-hint and Target forms bullet, but no eval case runs a target form.

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

Not verified

  • docs/skill-cheat-sheet.md was edited by hand to the generator's row shape; node scripts/generate-cheatsheet.mjs could not run in this lane (no interpreter allowed). CI's generated-docs check will confirm it.
  • Tidy skipped: the change touches scripts/shared-copies.txt, a listed shared path, and spans more than one area (plugins/mutation-testing, docs/contracts, docs/skill-cheat-sheet, scripts).
  • check-affected skipped typos (not installed), comment-hygiene (network fetch denied), size-check (script missing in the checks tree), changed-skills inside it, and three validate-plugins sub-passes that run checked-tree code; these are left to the PR's CI.
  • markdownlint and the eval suites were not run here (CHECK_SKILL_SKIP_MARKDOWNLINT; no eval runner in this lane); left to the PR's CI.
  • Untracked dotfiles at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and are not part of the change.

Fix

  • plugins/mutation-testing/skills/audit/SKILL.md: argument-hint gains [--repo <repo> ...] and drops --record-mutants --replay-mutants to stay within the validator's 100-character budget (body still documents both flags; /testing:cleanup spells them out itself; --phase was already omitted);…
  • plugins/mutation-testing/skills/audit/context/several-repositories.md: new spoke for the multi-repository --full run (worktree per repository, config/questions/baseline/caps/suppression/verification level per repository, estimate and single confirmation, fresh triage, merged report, per-repository…
  • plugins/mutation-testing/reference/target-scope.md: generated byte-identical copy of docs/contracts/target-scope/README.md
  • scripts/shared-copies.txt: registers the new copy at its alphabetical place among the target-scope lines (scripts/cross-plugin-source-registry.txt already covers it through its reference/target-scope.md and plugins/*/reference/target-scope.md glob lines, so it needed no edit)
  • docs/contracts/target-scope/adopters/mutation-testing.md: new adopter table listing /mutation-testing:audit
  • docs/skill-cheat-sheet.md: the audit row's argument-hint cell updated to the new hint
  • plugins/mutation-testing/README.md: audit row mentions the multi-repository --full run
  • .changes/mutation-testing/work-resolve-issue-issue-17241-44684818330-1-c2a237e0.md: minor changelog fragment

Verification

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

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: all 4 fragments valid
  • .lane/checks/bin/check-changed-skills: PASS (0 errors; SKILL.md 499/500 lines; 3 pre-existing size/description warnings)
  • .lane/checks/bin/check-affected: 14 passed, 9 skipped, 0 failed (earlier runs failed spoke-plugin-root on a ${CLAUDE_PLUGIN_ROOT} token in the spoke and validate-plugins on a 119-character argument-hint; both fixed)
  • sync-shared-copies --check: all 993 registered copies match their canonical sources
  • fresh-context review subagent over the whole diff: no blocking defects; 10 MEDIUM/LOW findings on the spoke (worktree removed before triage, worktree remove without --force, incomplete Phase 2 handoff, branch: in a detached worktree, Phase 0 questions a subagent cannot ask, local config layer,…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44684818330

Left out: the items under Not verified.

Related

#17241

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 handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44688946231

Failed GitHub API calls

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

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

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #17613 (incremental, head f5de274)

No security issues in this push. I checked the change since a2dacee0, which touches one file, plugins/mutation-testing/skills/audit/context/several-repositories.md, and read the whole diff for it. This lane already reviewed an earlier head, so this pass reports blocking findings only.

What changed:

  1. Verification level. Each repository's verification level is now read by running read-verification.sh with CLAUDE_PROJECT_DIR=<root> and a relative --file docs/conventions/mutation-testing.yaml. Before, the path was absolute.

    • I checked the claim against the script. plugins/mutation-testing/lib/read-verification.sh:75-77 rejects any --file that starts with / or -, contains .., or is not a .yaml path, and falls back to the default.
    • Lines 84-85 then read the file by commit SHA from the origin default branch, through default-branch-file.sh.
    • So the doc fix matches the code and opens no path traversal. Which repository's config it reads is the same as before.
  2. Estimate and confirmation. Under each repository's estimate line, the confirmation now shows:

    • its origin owner/name;
    • the commit its worktree holds, fetched from upstream and not yet reviewed;
    • the install and test commands it resolved.

    Repositories whose origin owner is not the user's are marked third-party, and the user can decline any repository by name. This is the fix this lane suggested in its earlier finding (discussion_r4639352576) about fetched upstream code running across every clone with only a cost confirmation. The finding is addressed.

Other checks:

  • Trusted paths: the changed file matches no trusted-path glob.
  • Trust controls: none touched.
  • Plugin manifests: none changed.
  • Instruction-surface lens: the push only adds constraints (more context shown at confirmation, and an opt-out per repository). It removes no rule.
  • Embedded instructions: none found in the PR context.
  • Spend: nothing that can bill. Multi-repository runs use only subscription usage, and only when a user asks for one.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): several-repositories.md

This lane already reviewed an earlier head (a2dacee0), so this review covers only blocking findings. The one file in scope is plugins/mutation-testing/skills/audit/context/several-repositories.md, and I read its whole incremental hunk.

Prior blocking finding is resolved (discussion_r4639353888). The "Verification level" bullet now sets CLAUDE_PROJECT_DIR=<root>, <root> being that repository's main checkout. It also keeps --file docs/conventions/mutation-testing.yaml relative, matching the Phase 4 command at SKILL.md:306. I traced the scripts to confirm the call now works:

The new text also explains why the path must stay relative and what goes wrong without the variable. Both match the code.

Estimate and confirmation change. Each repository's estimate line now carries:

  • its origin owner/name;
  • the commit its worktree holds;
  • the install and test commands it resolved;
  • a third-party mark when someone else owns the repository.

The user can also decline repositories by name. This is a clear safety improvement and has no blocking defect.

Other notes

  • No plugin manifest changed in this push, so the manifest checks did not apply.
  • Loosened-check verdict: fail (default: the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. This push loosens no check. The prompt had no loosened_check_decision_record: line, so I did not check the citation requirement.
  • I found no embedded instructions in the PR context or the prior-findings file.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head a2dacee084e01f4b39eb0bf6c5b7b1ea4e176ea4, 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=a2dacee084e01f4b39eb0bf6c5b7b1ea4e176ea4 rubric=10.4.2 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 handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44690352322

Failed GitHub API calls

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

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM653m35
Lane-Thread: PRRT_kwDOTCGFQM653nEZ
@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 f5de274
Run 44690352322

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 f5de274.

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

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 20, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head f5de274bcc6bb82435717c50b16aa9fbdb8c2387, 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=f5de274bcc6bb82435717c50b16aa9fbdb8c2387 rubric=10.4.2 rater=claude-opus-5-5 checker=claude-opus-5-5

Merged via the queue into main with commit 0b29a62 Nov 20, 2026
62 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17241-44684818330-1 branch November 20, 2026 07:16
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 0b29a62c91c557d82fa6e09b2465b04b1406b926; later checks count it verified from this comment.

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(mutation-testing): run the mutation audit across several repositories via the target-scope contract

0 participants