Repository navigation
Closed
Labels
Description
Part of #68. Reframed: the sweep is the auditor of the scenario suite, not a score to maximise.
The earlier framing ("grow to ~80 mutants") got the order wrong. #69's scenarios are the net; the
sweep exists to answer one question about them — does anything die when the invariant dies? —
which is the question the suite could not answer for #60 and the reason this epic exists.
Scope
- Commit
scripts/test-sweep.ts(prototype in the working tree) as a developer-facing auditor:
worktree-isolated, fails if the baseline suite is not green first,--validaterequires each
mutation to apply to exactly one site. Addsweep:testtopackage.json. - One mutant per scenario, mirroring its invariant — not a generic operator sweep. Each scenario
in Testing-1: acceptance scenario suite for the destructive seams — red on the pre-fix commit, green on main #69 names the guarantee it exists for; the mutant breaks exactly that guarantee. If the
scenario does not kill it, the scenario is fiction and goes back to Testing-1: acceptance scenario suite for the destructive seams — red on the pre-fix commit, green on main #69. - Mutant status classification. The sweep currently counts any non-zero
bun testexit as
killed, so a mutant that merely breaks module loading "passes" with no test responsible. Report
Killed / Survived / Timeout / RuntimeError / CompileError, and treatCompileErroras
informational. This is the instrument's weakest point today. equivalent: truesupport and a canonical score that excludes equivalents from the
denominator: today's honest number is 21/23 = 91.3%, not 87.5%, because
restore-escapes-rootis an unreachable branch, not a gap.
Carried over from the original #69 — the four findings the audit produced
These stay real work; they were always audit outputs, so they belong with the auditor:
publish-truncatesurvived. The reader-side atomicity test pins nothing: the truncate mutant
produced 10 partial reads at 0.09 MB, 0 at 0.59 MB, 1 at 2.39 MB — racing cannot detect this.
Deterministic discriminator, verified: publish to a targetchmod 0444; a same-directory rename
succeeds (the directory's write bit decides), a truncate-open failsEACCESand writes nothing.viewer-snapshot-grammar-offsurvived — a gate-bypass path with no test. Plantevil.logfmt
insidesnapshots/: with the name grammar gone, restore publishes it into the store root where it
matches*.logfmtand becomes injectable memory having passed no write gate. Also fix the
existing containment test, which passes for the wrong reason:basename()yields a name that
does not exist, anderror()defaults tostatus = 400, so it cannot tell "guard rejected" from
"file not found". Assert the rejection reason.restore-escapes-rootis a dead branch. Probed"..","1-..","../..": all die earlier
at "snapshot not found". Keep the check, mark the mutant equivalent, and make containment
testable honestly by extracting a pureresolveStoreTarget(root, name)with a hostile-name table
(..,../x,/etc/passwd,a/../../b,1-../.., plus a legal17-2026-10-23.logfmt).snapshot-overwritekilled 2/3 runs — it only dies on a same-millisecond collision. Make it
deterministic (driveclaimSnapshottwice against a pre-claimed name) or classify it equivalent.
A score that changes between runs is worse than an honest gap.
Explicitly dropped
The ~80-mutant ambition, and mutating areas that have no scenario or claimed invariant behind them.
A mutant nobody would have thought to write is a story about my imagination, not about the suite.
Acceptance
- Every Testing-1: acceptance scenario suite for the destructive seams — red on the pre-fix commit, green on main #69 scenario has a mirroring mutant that it kills, with the sweep output in the PR body.
- Score computed canonically (equivalents excluded), survivors each explained.
Killed/Survived/Timeout/RuntimeError/CompileErrorreported; aCompileErrornever counted as a
kill.- The four findings above closed, each shown red on its mutant and green on
main.
Activity
[-]Testing-2: widen the mutant set from 24 to ~80 across the claimed contract[/-][+]Testing-2: the mutation sweep audits the scenarios (instrument, status classes, four audit findings)[/+]WhollyMindless commentedon Oct 25, 2026
Claiming the sweep-instrument half of this (the scenarios it audits already landed via your #86).
Heads-up so nobody doubles the work:
scripts/test-sweep.tsarrived quietly in6d1858b— noticed it while finishing my own version, and rather than fork the idea, my PR now upgrades that file in place, keeping its mutant ids and runner shape:lock-default-failsplit into two uniquely-anchored mutants because the queue path duplicated the timeout policy and made its single anchor ambiguous)--selftest), and an equivalent-audit that warns when an equivalent-marked mutant dies — it already caught a wrong entry in my own catalog (the Testing-2: the mutation sweep audits the scenarios (instrument, status classes, four audit findings) #70 finding-3 "dead branch" is killed byundo.test.ts; the mark is gone)Status table from a full 42-mutant run on current
maingoes in with the PR, shortly. The remaining unpinned list is the deliverable; the score is a byproduct.fix(abogartz#70): re-anchored mutant pins for the merged publish path…
docs(abogartz#70): regenerate the sweep table on current main - 36/42…
fix(abogartz#70): the scratch's node_modules link survives resetScrat…
fix(abogartz#70): tally parsed from anchored summary lines, not first…
docs(abogartz#70): platform note - the score is the Windows number; P…
test(#70): the mutation sweep grows a baseline and inherits the shipp…
docs(#70): sweep results on 0.13.0 - 38/42, four unpinned invariants,…
Merge pull request #110 from WhollyMindless/test/mutation-sweep-baseline
chore(release): 0.14.4 [skip ci]
abogartz-opencode-self-improvement commentedon Oct 26, 2026
🎉 This issue has been resolved in version 0.14.4 🎉
The release is available on:
Your semantic-release bot 📦🚀
fix(abogartz#70): the kept node_modules link is not dirt - silence th…
test(abogartz#70): abogartz#120 review nits - name the residual race,…
test(#70): deterministic since-gate pin + publish-rename-since-blind …
Merge pull request #120 from WhollyMindless/test/publish-since-gate-c…
chore(release): 0.14.7 [skip ci]
abogartz-opencode-self-improvement commentedon Oct 26, 2026
🎉 This issue has been resolved in version 0.14.7 🎉
The release is available on:
Your semantic-release bot 📦🚀
abogartz commentedon Oct 27, 2026
Closed as completed — the instrument shipped (and the
releasedlabel already said so).scripts/test-sweep.tsis committed withsweep:testin package.json, covering the issue's scope: worktree isolation, baseline-green gating (--baseline,--allow-baseline-failures), status classification beyond "non-zero exit" (CompileError/RuntimeError/Timeouthandled distinctly from kills),equivalentsupport with the canonical denominator, and--confirmreruns for flaky-only kills. The per-scenario mutant list is living work tracked under #68, not this instrument issue.