Skip to content

docs(mutation-testing): cut single-tool examples from principles reference pages and README sources - #17745

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17739-44849485610-1
Nov 21, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17739

Summary

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

Part 3 of 3 of #16752. Cuts the R11 rows in the mutation-testing principles reference pages and README Sources, deleting each one with no generic replacement. The two scaling-and-suppression.md rows are kept because a script reads that file. Rows (8, all R11): F0291 R11 cut (operators-and-states.md: PIT default operator table and optional-set paragraph deleted, plus the PIT source link, the PIT recheck clause and the PIT 'negate-conditionals' label on the ROR step, which existed only for that table); F0292 R11 cut (operators-and-states.md: the clause pointing at lib/hook-utils.test.sh deleted; the neutral SBR 68% sentence from the Google papers stays); F0293 R11 cut (metrics.md: the 'The same metric, four names' table deleted, plus the Infection Mutation Code Coverage and Infection quote paragraphs, the Infection and PIT source links, and the PIT/Infection recheck clause; opening line reworded because nothing is reconciled any more); F0294 R11 cut (metrics.md: the sample report block with src/pricing.ts and src/audit.ts deleted, and one sentence now names the report's columns); F0295 R11 kept, listed under Script readers; F0296 R11 kept, listed under Script readers; F0297 R11 cut (theory.md: the Python range loop example and the sentence explaining it deleted); F0301 R11 cut (README Sources: Stryker, Stryker.NET, StrykerJS, PIT and Infection links deleted, and the intro now says each reference page names its tool docs. At README:59-61 nothing tool-specific remains apart from the dotnet test note the issue says may stay as R6, so it stays). Script readers: search Grep 'operators-and-states|principles/reference/metrics|scaling-and-suppression|principles/reference/theory' across the repo, excluding the pages themselves. The only script hit is plugins/mutation-testing/scripts/suppression-lint.sh:76 DEFAULT_KINDS="$SCRIPT_DIR/../skills/principles/reference/scaling-and-suppression.md", so F0295 and F0296 (scaling-and-suppression.md) are not cut. No script reads operators-and-states.md, metrics.md or theory.md; the other hits are skill prose, eval cases, CHANGELOG, scripts/docs-anchor-baseline.txt and .performance/ratchets.json. README.md has no script reader apart from the generated plugin-options block, which is untouched. Eval cases that read the cut text: pr-score-vs-test-strength reads metrics.md and grades the test strength / Covered Code MSI naming the cut F0293 table carried (SKILL.md:42 and tooling.md's table still carry those names). pr-survivor-three-classes may read theory.md, but it grades the equivalent-vs-arid disposition, not the cut Python example. No existing case reads the PIT operator table, the hook-utils clause, the sample report paths or the README Sources. Whole page or part, per changed file: operators-and-states.md part; metrics.md part; theory.md part; README.md part; tooling.md part (one pointer sentence reworded); .performance/ratchets.json part (one line); no whole page is deleted. Ratchets and anchors: the cut removed…

Not verified

  • F0295 and F0296 (scaling-and-suppression.md: per-tool diff-scoping pointers and the Stryker thresholds.break quote) not cut: scripts/suppression-lint.sh reads that file, and the issue says a row whose file a script reads is not cut
  • Tidy not run: the change spans two areas (plugins/mutation-testing and .performance), over the 1-area tidy cutoff
  • SKILL.md routing row and the pr-score-vs-test-strength eval still associate test strength / MSI with metrics.md. Left for the host session's eval to decide, because those rows are outside this part's table
  • tooling.md:109-110 still points at lib/hook-utils.test.sh and audit/evals/fixtures/exercised-scope/EXPECTED.md:21 still says 'negate-conditionals'. Both are outside this part's rows
  • Targeted before-and-after eval on sonnet, the hold line and the eval-pair record are the host session's, after the PR opens, per the issue
  • Plugin test suites, markdownlint, typos, comment-hygiene and size-check did not run in this lane; left to the PR's CI

Fix

  • plugins/mutation-testing/skills/principles/reference/operators-and-states.md: deleted the PIT default operator table and optional-set paragraph (F0291), the PIT source link and recheck clause, the 'negate-conditionals' label, and the lib/hook-utils.test.sh clause (F0292); reworded the Google's five…
  • plugins/mutation-testing/skills/principles/reference/metrics.md: deleted the four-names table and the Infection notes (F0293), and the src/pricing.ts sample report block, now one sentence naming its columns (F0294); dropped the PIT and Infection source links and recheck clause; reworded the opening…
  • plugins/mutation-testing/skills/principles/reference/theory.md: deleted the Python range-loop equivalent-mutant example and its explaining sentence (F0297)
  • plugins/mutation-testing/README.md: deleted the Stryker, Stryker.NET, StrykerJS, PIT and Infection links from Sources and reworded its intro (F0301)
  • plugins/mutation-testing/skills/principles/reference/tooling.md: reworded the metrics.md pointer, because metrics.md no longer maps tool names and is now cited for the covered-code score definition
  • .performance/ratchets.json: removed the skill-stack-fences ceiling for principles/reference/theory.md, which now has no counted fence
  • .changes/mutation-testing/work-resolve-issue-issue-17739-44849485610-1-9f215b19.md: new patch changelog fragment

Verification

The runner ran each check from the base copy against 5c9f1de:

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

The run reports:

  • check-changelog-fragments: all 3 fragments valid
  • check-changed-skills: principles PASS, 0 errors, 4 warnings, all of them on lines this change did not touch
  • check-affected: 14 passed, 9 skipped (typos not installed, comment-hygiene fetch blocked, size-check script missing, checks that execute tree code), 0 failed
  • Grep of the repo for script readers of the four principles pages: only suppression-lint.sh reads scaling-and-suppression.md, so F0295 and F0296 are kept
  • Grep for links or line citations into the removed headings or into the changed files: none found
  • Read ratchet.py: a per-file counter treats a file with no ceiling entry as 0, and propose-tighten drops entries that reach 0
  • Read validate-plugin-contracts.mjs: docs-anchor-baseline counts lines carrying an anchorless docs.* or /docs/ link. metrics.md and operators-and-states.md each still have 1 such line, matching rows 86-87; row 88 file is unchanged
  • Fresh-context subagent review of the full diff: applied its findings on the tooling.md pointer, the README Sources intro, the metrics.md opening line, the operators-and-states intro and the changelog wording
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44849485610

Left out: the items under Not verified.

Related

#17739

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes melodic-automation-lanes Bot added the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Held for the before-and-after eval that cut item #17739 needs. The pr-merge release step lifts this hold when an eval-pair record exists for the current head.

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: no security issues found

This pull request changes only documentation and one performance-ratchet entry. I read every hunk of all 7 changed files in .claude-lane/pr.diff.

  • Mutation-testing reference pages (operators-and-states.md, metrics.md, theory.md, tooling.md): the change removes tool-specific examples, tables and source links (the PIT operator table, the four-names metric table, the sample report, and the Python equivalent-mutant example) and rewords nearby lines.
    • Instruction-surface check: the removed text is reference material, not a standing rule. It forbade nothing, gated nothing and confirmed nothing, so its removal takes away no protection. I did not need the protected-class register for this judgment.
    • No commands, paths, URLs or tool inputs were added. The only links left are existing Stryker docs and paper links.
  • plugins/mutation-testing/README.md: Sources links were removed and the intro reworded. The README is prose only.
  • .performance/ratchets.json: the change removes the skill-stack-fences ceiling entry for theory.md, which now has no code fence to count. This is a size ratchet, not a trust control.
  • .changes/... changelog fragment: a new patch fragment; data only.

Trusted paths: none of the 7 files matches a TRUSTED PATHS glob. No plugin manifest, workflow, action, merge-hold or trust-control file is touched.

The pull request context contains no embedded directives aimed at this lane. There are no prior findings, and this is the first review of this pull request (not blocking-only).

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

Code review: PR #17745, cut single-tool examples from the mutation-testing principles pages and README Sources

Result: no blocking or advisory findings. I read every hunk of all 7 changed files.

Closing issue #17739 checks

  • Rows cut. F0291, F0292, F0293, F0294, F0297 and F0301 are cut in the diff. The text left behind reads cleanly. Nothing points at the deleted text any more: there are no PIT, Infection, negate-conditionals or "four names" mentions left in metrics.md or operators-and-states.md, and nothing in theory.md refers back to the removed loop example.
  • Script readers. F0295 and F0296 are kept and listed under "Script readers", because scripts/suppression-lint.sh reads scaling-and-suppression.md. That follows the issue's rule.
  • Fence ratchet. theory.md now has no code fence, so deleting its skill-stack-fences ceiling in .performance/ratchets.json is correct. I checked the fence count with Grep and found 0.
  • Anchor baseline. scripts/docs-anchor-baseline.txt:86-87 still has 1 line each for metrics.md and operators-and-states.md. Each file still carries one anchorless Stryker /docs/ link, so the counts hold. The removed PIT and Infection links had no /docs/ path.
  • PR body. The body states the row count, each row's outcome, the script-reader search, the eval cases that read the cut text, and whether each file is cut whole or in part, as the issue asks.

One gap, not counted as a finding. The PR body already discloses it, and the issue leaves it to the host session's eval. The routing row at plugins/mutation-testing/skills/principles/SKILL.md:22 still sends "test strength, MSI" questions to metrics.md. That page no longer contains either name. The mapping still exists at SKILL.md:42 and in the table in tooling.md, so the model can still answer. The planned before-and-after run of pr-score-vs-test-strength should confirm there is no loss.

Spend: none. This change only edits documentation.

Not verified by me. The PR's verification results (changelog-fragment check, check-changed-skills, check-affected) are the author's claims; I could not run anything in this lane.

Review conditions. The prompt gave no loosened-check verdict or patterns, so I used fail with no consumer entries. It gave no decision record, so I did not check the citation requirement. No changed line loosens a check. This PR changes no plugin manifest and adds no paved path. The PR context contains no embedded instructions aimed at this review.

Verifier dropped 0 of 0 candidates.

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.330 (Claude Code).

What this gate checks: that the new text does no worse than the old on these cases. By the owner's decision of 2026-11-17 the gate is this no-loss compare alone. There is no wrong-text side, so this case set has not been shown to detect wrong text: a PASS says the cases did not get worse, not that they would have noticed a bad edit.

Scope: pure cut (all eight rows R11; F0295 and F0296 kept because scripts/suppression-lint.sh reads scaling-and-suppression.md). Measured by p17745-pr-guide-three-services: F0291 and F0292 (operators-and-states.md: the hand operators SBR and ROR and the SBR share survive the cut of PIT's catalog and the hook-utils clause), F0293 and F0294 (metrics.md: covered-code score, PIT and Infection names, rank by gap and the per-file row columns survive the cut of the four-names table and the sample report), F0297 (theory.md: the ledger survivor is the cut Python range-loop example, so equivalent-yes and write-test-no are loss-capable). Unmeasured: F0301 (README Sources; no skill or agent links the README, not model-read); tooling.md's one reworded pointer sentence is read only if a run opens tooling.md.

  • New case p17745-pr-guide-three-services: no principles case asks about the reporting shape, hand operators or an equivalent-mutant survivor with deterministic graders (pr-score-vs-test-strength grades only a Read of metrics.md and the skill firing), so a rules-only case was written: three services (PIT, Infection, no tool), nine regex graders on fixed KEY lines, no llm grader, no Skill grader (slash prompt, R105).

  • Loss-capable graders (their answer came from cut text on BEFORE): row-columns (F0294 sample report), equivalent-yes and write-test-no (F0297 Python range-loop example, which the prompt reproduces), infection-covered-msi and pit-test-strength (F0293 table; SKILL.md and tooling.md still state both names). The rest read text unchanged on both sides.

  • Unmeasured rows: F0301 (README Sources, not model-read). F0295 and F0296 were kept by the PR, so nothing changed there.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates cut pull requests on the no-loss compare alone.

  • Before: 4ff0523bd8ba86f06216769baa31bf0fe958ce2e (merge base with main)

  • After: 5c9f1dee6e4974931664e0f9c7f17889b62b2324 (pull request head; live head when this was written: 5c9f1dee6e4974931664e0f9c7f17889b62b2324)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p17745-pr-guide-three-services report-covered-code 3/3 3/3
p17745-pr-guide-three-services pit-test-strength 3/3 3/3
p17745-pr-guide-three-services infection-covered-msi 3/3 3/3
p17745-pr-guide-three-services rank-by-gap 3/3 3/3
p17745-pr-guide-three-services row-columns 3/3 3/3
p17745-pr-guide-three-services hand-operators 3/3 3/3
p17745-pr-guide-three-services sbr-share 3/3 3/3
p17745-pr-guide-three-services equivalent-yes 3/3 3/3
p17745-pr-guide-three-services write-test-no 3/3 3/3
p17745-pr-guide-three-services mean case score 1.000 1.000

Graders that cannot show a loss, because they failed on the old text in every run:

  • none: every grader passed in at least one run on the old text

Changed files the compare runs opened, per case and side:

  • p17745-pr-guide-three-services before: opened skills/principles/reference/metrics.md in 3 of 3 runs; opened skills/principles/reference/operators-and-states.md in 2 of 3 runs; opened skills/principles/reference/theory.md in 3 of 3 runs; opened skills/principles/reference/tooling.md in 3 of 3 runs
  • p17745-pr-guide-three-services after: opened skills/principles/reference/metrics.md in 3 of 3 runs; opened skills/principles/reference/operators-and-states.md in 3 of 3 runs; opened skills/principles/reference/theory.md in 3 of 3 runs; opened skills/principles/reference/tooling.md in 3 of 3 runs

Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):

  • F0291 (skills/principles/reference/operators-and-states.md, case p17745-pr-guide-three-services): opened in 2 of 3 before, 3 of 3 after runs
  • F0292 (skills/principles/reference/operators-and-states.md, case p17745-pr-guide-three-services): opened in 2 of 3 before, 3 of 3 after runs
  • F0293 (skills/principles/reference/metrics.md, case p17745-pr-guide-three-services): opened in 3 of 3 before, 3 of 3 after runs
  • F0294 (skills/principles/reference/metrics.md, case p17745-pr-guide-three-services): opened in 3 of 3 before, 3 of 3 after runs
  • F0297 (skills/principles/reference/theory.md, case p17745-pr-guide-three-services): opened in 3 of 3 before, 3 of 3 after runs

Rows these runs did not measure:

  • none

Verdicts:

  • verdict p17745-pr-guide-three-services (principles): PASS (no loss: after 1.000, before 1.000)

Cost: 0.78 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 1 cases: prompt.md and case.yaml

p17745-pr-guide-three-services

prompt.md:

---
description: "Written for PR 17745 (rows F0291, F0292, F0293, F0294, F0297, all R11 cuts in the principles reference pages). Asked for a team guide over a PIT service, an Infection service and a toolless Python service, the reply names the score to report and its PIT and Infection names, the ranking and per-file row columns, the two hand operators and SBR's share, and judges a range-loop survivor as equivalent"
tags: [principles, routine]
max_turns: 20
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "Nothing is run. The reply reports the covered-code score (PIT: test strength, Infection: Covered Code MSI), ranks files by gap, gives per-file rows with coverage, covered-code score, gap and survivors, names SBR and ROR as the hand operators with SBR at about 68% of mutants, and calls the range-loop survivor an equivalent mutant needing no new test. It ends with the nine fixed lines."
---

/mutation-testing:principles

I'm writing our team's mutation-testing guide for three services: a Java billing service that runs PIT, a PHP storefront that runs Infection, and a Python ledger service with no mutation tool at all.

1. Which score should our dashboard show per file, what do PIT and Infection each call that score, and what should we rank the files by?
2. Which columns should each per-file row carry?
3. For the Python ledger, which two operators should we apply by hand, and roughly what share of generated mutants did Google find the statement-deletion one accounts for?
4. A survivor on the ledger: inside `for i in range(0, n):` the guard `if i <= n:` was mutated to `if i < n:` and no test fails. Is that a test gap we should write a test for?

Don't research online, install or run anything; answer from your mutation-testing guidance.

End with exactly these nine lines:

REPORT_SCORE: <covered-code score or plain mutation score>
PIT_NAME: <PIT's name for that score>
INFECTION_NAME: <Infection's name for that score>
RANK_BY: <what to rank files by>
ROW_COLUMNS: <the per-file columns, comma-separated>
HAND_OPERATORS: <the two operators>
SBR_SHARE: <percent>
EQUIVALENT: <yes or no: is the ledger survivor an equivalent mutant>
WRITE_TEST: <yes or no>

case.yaml:

schema_version: "1.1"
name: p17745-pr-guide-three-services
plugins: ["../.."]
graders:
  - name: 'report-covered-code'
    type: 'regex'
    pattern: '^[\W_]*REPORT_SCORE[*_]*:[^\n]*covered[- ]code'
    flags: 'im'
    target: 'last_message'
  - name: 'pit-test-strength'
    type: 'regex'
    pattern: '^[\W_]*PIT_NAME[*_]*:[^\n]*test[- ]strength'
    flags: 'im'
    target: 'last_message'
  - name: 'infection-covered-msi'
    type: 'regex'
    pattern: '^[\W_]*INFECTION_NAME[*_]*:[^\n]*covered[- ]code[- ]msi'
    flags: 'im'
    target: 'last_message'
  - name: 'rank-by-gap'
    type: 'regex'
    pattern: '^[\W_]*RANK_BY[*_]*:[^\n]*\bgap\b'
    flags: 'im'
    target: 'last_message'
  - name: 'row-columns'
    type: 'regex'
    pattern: '^[\W_]*ROW_COLUMNS[*_]*:(?=[^\n]*\bcoverage\b)(?=[^\n]*covered[- ]code)(?=[^\n]*\bgap\b)(?=[^\n]*surviv)'
    flags: 'im'
    target: 'last_message'
  - name: 'hand-operators'
    type: 'regex'
    pattern: '^[\W_]*HAND_OPERATORS[*_]*:(?=[^\n]*(?:\bSBR\b|statement))(?=[^\n]*(?:\bROR\b|comparison|relational))'
    flags: 'im'
    target: 'last_message'
  - name: 'sbr-share'
    type: 'regex'
    pattern: '^[\W_]*SBR_SHARE[*_]*:[^\n]*\b68\b'
    flags: 'im'
    target: 'last_message'
  - name: 'equivalent-yes'
    type: 'regex'
    pattern: '^[\W_]*EQUIVALENT[*_]*:[\W_]*yes\b'
    flags: 'im'
    target: 'last_message'
  - name: 'write-test-no'
    type: 'regex'
    pattern: '^[\W_]*WRITE_TEST[*_]*:[\W_]*no\b'
    flags: 'im'
    target: 'last_message'

Posted by an agent session.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The do-not-merge hold waited only on eval evidence (reason=eval), and a listed human posted a VALID no-loss eval-pair record for 5c9f1dee6e4974931664e0f9c7f17889b62b2324: #17745 (comment). pr-merge removed do-not-merge. To hold again, add the label back with a new pr-hold reason line.

@melodic-automation-lanes melodic-automation-lanes Bot removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 5c9f1dee6e4974931664e0f9c7f17889b62b2324, 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=5c9f1dee6e4974931664e0f9c7f17889b62b2324 rubric=10.4.3 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 21, 2026
Merged via the queue into main with commit 3ee233b Nov 21, 2026
106 of 110 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17739-44849485610-1 branch November 21, 2026 03:56
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 3ee233b5f86d0601e95d5fc2e00001e4bcac4391; 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.

Cut the model-read ecosystem specifics from mutation-testing: principles reference pages and README sources

1 participant