You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mutation gate: a selected package that produced no mutant verdict must not exit 0 #2410
Partially addressed by #2450 - the launcher half (the declared bin entry run through process.execPath). The half it leaves alone: at head 5d37cd8fac on Windows, types was selected, Stryker instrumented 6 mutants, then died in its vitest config load - the gate printed types | 1 | 0 | 0 | 0 | 0 | 0 | Advisory incomplete and exited 0.
Fail-open at head
runManifest's per-package catch (scripts/stryker-diff.mjs:982-1005) rethrows only manifestBudgetStop (line 983). Every other failure - launch, config load, timed-out initial run - becomes an advisory plus a zero-filled row result: "Advisory incomplete". main returns normally, so the only nonzero exit (process.exitCode = 1, line 1055) is never set.
Expected
A selected package with no mutant verdict must not exit green: reach recordRejection (added in #2450) or set a nonzero exit. Pair it with a run that selects at least one package - a green row from one that selected none proves nothing.
Two later reproductions from the Zoo-Code split campaign, lanes u5a-2359 and u7-1918. Neither appears above, and the issue has no comments.
Lane u5a-2359. Windows, node v22.23.4, git 2.54.0.windows.1, worktree C:/work/Zoo-Code-fork/wt-r159-price at 7449df18b9399859df875c29574efaafeec4fcd8, dependency tree installed. The path line 421 names is node_modules/.bin/stryker, 2,140 bytes, first line #!/bin/sh, with .CMD and .ps1 siblings nothing on that call path selects. Measured here on that tree with the same argv:
no shell: status=null error.code=ENOENT shell: true: status=1 error.code=undefined process.execPath on bin/stryker.js: status=0 stdout=10.0.0
The no-shell call dies well under a second with ENOENT; the entrypoint the shim itself execs starts and prints 10.0.0, which prices option 3 against this tree.
What the gate reports. In that worktree the gate on a real unit delta, zdt mutation preflight 18861b2e3572 -> dddcda7c2dc8, exited 0 printing no reports (mutation testing not applicable or run incomplete) then => PASS (local gate green). It never reached Stryker, so that PASS is a pass over an empty digest: not evidence in either direction.
Carrier detail. The shape behind the sub-second death here is an uncommitted local edit to scripts/stryker-diff.mjs (backup C:/work/Zoo-Code-fork/.tmp-zdt-shim-stryker-diff.mjs.bak, 26,568 bytes) that spawns process.execPath on node_modules/@stryker-mutator/core/bin/stryker.js; a checkout or clean wipes it, and the preflight returns to line 421 and dies on the shim. Against the committed file: +770 / -831 on the campaign-tip comparison, 9 / 46 re-measured now at 7449df18b939 in C:/work/Zoo-Code-fork/Zoo-Code. Both coordinates named.
Lane u7-1918, same defect, second failure mode. It copied scripts/stryker-diff.mjs from the campaign tip into a scratch worktree as scripts/stryker-diff-winspawn.mjs (30,155 bytes) changing exactly one line, the spawn routed through process.execPath on node_modules/@stryker-mutator/core/bin/stryker.js because Node on Windows cannot spawn the extension-less pnpm shim; its instrument task154/tip-stryker-diff.mjs (30,108 bytes) is byte-equal to scripts/stryker-diff.mjs at the campaign tip, where MAX_CHANGED_LINES = 500 and MAX_MUTANTS = 400 live. On that lane Stryker did start: the extension package generated 373 mutants, then its initial test run timed out after about five minutes inside the 12-minute allowance, and on a tree installed offline with --ignore-scripts and nothing built the row prints 0 0 0 0 under an advisory-incomplete row instead of a score, again not evidence in either direction.
Net for whoever fixes the launcher: these are the two ways this runner fails on Windows. A sub-second ENOENT death the gate turns into a green PASS over an empty digest, and a started run whose initial test execution times out and becomes a 0 0 0 0 advisory row. Neither says whether any mutant was killed. Posted by lane u5a-2359 for both lanes.
changed the title [-]Mutation gate spawns the extensionless .bin/stryker shim without a shell, which cannot start on Windows[/-][+]Mutation gate: a selected package that produced no mutant verdict must not exit 0[/+]on Nov 22, 2026
#2410: launcher half is in #2450 (declared bin entry via process.execPath). What still measures green at 5d37cd8 is the fail-open half: the per-package catch (scripts/stryker-diff.mjs:982-1005) rethrows only manifestBudgetStop, so any other failure becomes an advisory row of zeros and main never sets exitCode - green, no mutant run. Re-scope: body-2410.md, .dsh/workflow/20261122-1551/.
Activity
easonLiangWorldedtech commentedon Nov 10, 2026
Two later reproductions from the Zoo-Code split campaign, lanes u5a-2359 and u7-1918. Neither appears above, and the issue has no comments.
C:/work/Zoo-Code-fork/wt-r159-priceat7449df18b9399859df875c29574efaafeec4fcd8, dependency tree installed. The path line 421 names isnode_modules/.bin/stryker, 2,140 bytes, first line#!/bin/sh, with.CMDand.ps1siblings nothing on that call path selects. Measured here on that tree with the same argv:no shell: status=null error.code=ENOENT shell: true: status=1 error.code=undefined process.execPath on bin/stryker.js: status=0 stdout=10.0.0
The no-shell call dies well under a second with
ENOENT; the entrypoint the shim itself execs starts and prints 10.0.0, which prices option 3 against this tree.What the gate reports. In that worktree the gate on a real unit delta,
zdt mutation preflight 18861b2e3572 -> dddcda7c2dc8, exited 0 printingno reports (mutation testing not applicable or run incomplete)then=> PASS (local gate green). It never reached Stryker, so that PASS is a pass over an empty digest: not evidence in either direction.Carrier detail. The shape behind the sub-second death here is an uncommitted local edit to
scripts/stryker-diff.mjs(backupC:/work/Zoo-Code-fork/.tmp-zdt-shim-stryker-diff.mjs.bak, 26,568 bytes) that spawnsprocess.execPathonnode_modules/@stryker-mutator/core/bin/stryker.js; a checkout or clean wipes it, and the preflight returns to line 421 and dies on the shim. Against the committed file: +770 / -831 on the campaign-tip comparison, 9 / 46 re-measured now at7449df18b939inC:/work/Zoo-Code-fork/Zoo-Code. Both coordinates named.scripts/stryker-diff.mjsfrom the campaign tip into a scratch worktree asscripts/stryker-diff-winspawn.mjs(30,155 bytes) changing exactly one line, the spawn routed throughprocess.execPathonnode_modules/@stryker-mutator/core/bin/stryker.jsbecause Node on Windows cannot spawn the extension-less pnpm shim; its instrumenttask154/tip-stryker-diff.mjs(30,108 bytes) is byte-equal toscripts/stryker-diff.mjsat the campaign tip, whereMAX_CHANGED_LINES = 500andMAX_MUTANTS = 400live. On that lane Stryker did start: the extension package generated 373 mutants, then its initial test run timed out after about five minutes inside the 12-minute allowance, and on a tree installed offline with--ignore-scriptsand nothing built the row prints0 0 0 0under an advisory-incomplete row instead of a score, again not evidence in either direction.Net for whoever fixes the launcher: these are the two ways this runner fails on Windows. A sub-second
ENOENTdeath the gate turns into a green PASS over an empty digest, and a started run whose initial test execution times out and becomes a0 0 0 0advisory row. Neither says whether any mutant was killed. Posted by lane u5a-2359 for both lanes.[-]Mutation gate spawns the extensionless .bin/stryker shim without a shell, which cannot start on Windows[/-][+]Mutation gate: a selected package that produced no mutant verdict must not exit 0[/+]easonLiangWorldedtech commentedon Nov 22, 2026
#2410: launcher half is in #2450 (declared bin entry via process.execPath). What still measures green at 5d37cd8 is the fail-open half: the per-package catch (scripts/stryker-diff.mjs:982-1005) rethrows only manifestBudgetStop, so any other failure becomes an advisory row of zeros and main never sets exitCode - green, no mutant run. Re-scope: body-2410.md, .dsh/workflow/20261122-1551/.