diff --git a/.changeset/gap-partial-report-on-crash.md b/.changeset/gap-partial-report-on-crash.md new file mode 100644 index 00000000..c5b9a2b1 --- /dev/null +++ b/.changeset/gap-partial-report-on-crash.md @@ -0,0 +1,5 @@ +--- +'@tanstack/oracles': patch +--- + +`oracle-gaps`: a run whose own process dies in its mutant phase (a native crash in a worker thread under `--pool threads`, or any other signal or exit that skips the run's own ending) no longer loses the mutants it had judged. The CLI writes them as a partial report: `results.json` with `status: "partial"`, the `cause` (`the run's process exited with `), the run's usual fields, the judged `results` in report order, and `unjudged`, the ids of every mutant it did not judge; and `summary.md`, which renders the judged mutants under a `**Partial report**` line that names the cause, the count judged of all, and the unjudged ids. The done line ends `; partial report /summary.md`. A run whose process dies before its mutant phase writes no report, as before; a stopped run is unchanged. diff --git a/packages/oracles/oracle-gaps/check.mjs b/packages/oracles/oracle-gaps/check.mjs index fc2222b8..1b7b106e 100644 --- a/packages/oracles/oracle-gaps/check.mjs +++ b/packages/oracles/oracle-gaps/check.mjs @@ -2385,9 +2385,58 @@ export default async (env) => { ) const results = [] const started = Date.now() - // Results are appended as they finish, so a stopped survey keeps them. + // What results.json says of the run besides its results, and what the + // summary renders them under. + const reportFields = { + run: runIdentity, + options: { ...options, only: options.only && [...options.only] }, + // A report with a failing oracle file is provisional: its failing + // laws judge nothing (Block per law). Each test file's baseline, as + // the report leads with it. + provisional, + baseline: baselineFiles.map(({ tests, ...file }) => ({ + ...file, + passed: tests.filter((t) => t.state === `passed`).length, + failed: tests.filter((t) => t.state === `failed`).length, + skipped: tests.filter((t) => t.state === `skipped`).length, + })), + excluded, + nondeterministic: [...nondeterministic], + } + const renderFields = { + run: runIdentity, + excluded: excluded.map(relative), + baseline: baselineFiles, + config: options.config, + } + // Results are appended as they finish, so a stopped survey keeps them, + // after a first line that holds what a partial report of them needs + // (ending.mjs, partialEnding): this process, the ids of every mutant the + // run judges in the order its report lists them, and the report's other + // fields. The CLI writes that report when this process dies before its + // own ending. const partial = join(options.out, `results.jsonl`) - rmSync(partial, { force: true }) + const order = (a, b) => + a.number - b.number || a.source.localeCompare(b.source) + writeFileSync( + partial, + `${JSON.stringify({ + partialOf: { + pid: process.pid, + ids: [ + ...[...queue].sort(order).map((mutant) => mutant.id), + ...authored + .filter( + (mutant) => + !options.only || options.only.has(`authored:${mutant.id}`), + ) + .map((mutant) => `authored:${mutant.id}`), + ], + report: reportFields, + render: renderFields, + }, + })}\n`, + ) // A selection no plan foresaw (the ordinary tier's) is checked when a // mutant first asks for it, once even when several contexts ask at once. const selectionFor = async (slot, file, keys) => { @@ -2597,9 +2646,7 @@ export default async (env) => { ) await evaluateGroup(group, slot) }) - results.sort( - (a, b) => a.number - b.number || a.source.localeCompare(b.source), - ) + results.sort(order) endPhase(`operator mutants`, { mutants: results.length }) // 6. Authored mutants, spread across the contexts. Each serves a patched @@ -2712,20 +2759,7 @@ export default async (env) => { join(options.out, `results.json`), JSON.stringify( { - run: runIdentity, - options: { ...options, only: options.only && [...options.only] }, - // A report with a failing oracle file is provisional: its failing - // laws judge nothing (Block per law). Each test file's baseline, as - // the report leads with it. - provisional, - baseline: baselineFiles.map(({ tests, ...file }) => ({ - ...file, - passed: tests.filter((t) => t.state === `passed`).length, - failed: tests.filter((t) => t.state === `failed`).length, - skipped: tests.filter((t) => t.state === `skipped`).length, - })), - excluded, - nondeterministic: [...nondeterministic], + ...reportFields, mutantSeconds, // How the result was produced: units reused from the evidence // store and units run in this check, runs cut off at their time @@ -2740,13 +2774,7 @@ export default async (env) => { span(`check`, checkStarted, { evidence }) writeFileSync( join(options.out, `summary.md`), - renderReport({ - results, - run: runIdentity, - excluded: excluded.map(relative), - baseline: baselineFiles, - config: options.config, - }), + renderReport({ ...renderFields, results }), ) if (existsSync(testOutput) && statSync(testOutput).size > 0) log( diff --git a/packages/oracles/oracle-gaps/ending.mjs b/packages/oracles/oracle-gaps/ending.mjs index e5b3c680..f7acf9b8 100644 --- a/packages/oracles/oracle-gaps/ending.mjs +++ b/packages/oracles/oracle-gaps/ending.mjs @@ -12,10 +12,17 @@ // a line of the stream (stream.mjs) or of the refusal block. Each ending // replaces the files of another ending that an earlier run left in the // directory (check.mjs removes error.log when a check completes). -import { mkdirSync, rmSync, writeFileSync } from 'node:fs' +import { + existsSync, + mkdirSync, + readFileSync, + rmSync, + writeFileSync, +} from 'node:fs' import { tmpdir } from 'node:os' import { join } from 'node:path' import { posix, realPathOf } from './paths.mjs' +import { renderReport } from './report.mjs' import { escapeControls, streamLine } from './stream.mjs' // A path as a line of the stream shows it: in forward slashes, with a line @@ -92,3 +99,56 @@ function write(out, results, summary, log) { return false } } + +/** + * The partial report of a run whose process `pid` ended, by `cause`, before + * it wrote its own ending: when it ended in its mutant phase, its + * results.jsonl in `out` starts with what the report needs (check.mjs) and + * holds the mutants it judged. results.json then has status `partial`, the + * cause, the judged results in report order, and the ids of the mutants it + * did not judge, and summary.md renders the judged under a line that says the + * report is partial. Returns the summary's path, or undefined when the run + * ended before its mutant phase (no results.jsonl of this process) or the + * report cannot be written. + */ +export function partialEnding(out, pid, cause) { + try { + const at = join(out, `results.jsonl`) + if (!existsSync(at)) return undefined + const [head, ...rows] = readFileSync(at, `utf8`).split(`\n`) + const of = JSON.parse(head).partialOf + if (of?.pid !== pid) return undefined + // Each row ends with its line break, so only a complete row is judged. + const byId = new Map( + rows.slice(0, -1).map((row) => { + const result = JSON.parse(row) + return [result.id, result] + }), + ) + const results = of.ids + .filter((id) => byId.has(id)) + .map((id) => byId.get(id)) + const unjudged = of.ids.filter((id) => !byId.has(id)) + writeFileSync( + join(out, `results.json`), + JSON.stringify( + { status: `partial`, cause, ...of.report, results, unjudged }, + null, + 1, + ), + ) + const summary = join(out, `summary.md`) + writeFileSync( + summary, + renderReport({ + ...of.render, + results, + partial: { cause, all: of.ids.length, unjudged }, + }), + ) + rmSync(join(out, `error.log`), { force: true }) + return summary + } catch { + return undefined + } +} diff --git a/packages/oracles/oracle-gaps/gap-report-model-oracle.mjs b/packages/oracles/oracle-gaps/gap-report-model-oracle.mjs index 1df184f8..dd57d7dd 100644 --- a/packages/oracles/oracle-gaps/gap-report-model-oracle.mjs +++ b/packages/oracles/oracle-gaps/gap-report-model-oracle.mjs @@ -5189,16 +5189,34 @@ const NATIVE_CRASHES = [ * thread in it, so the step is the forks pool, where a crash ends only its own * worker (whose mutants the run reports), or another Node version; under * forks, the crash was the run's own process, so the step is another Node - * version. + * version. A run whose process ended once its baseline was done wrote a + * partial report of the mutants it had judged (`partialOwed`), and the line + * ends by naming its summary, `report`. */ -const crashLine = (signal, pool) => +const crashLine = (signal, pool, report) => `oracle-gaps: done error, the run's process exited with ${signal}${ !NATIVE_CRASHES.includes(signal) ? `` : pool === `threads` ? `: a native crash, a fault in Node, V8 or a native addon, which ends every worker thread with it; rerun with --pool forks, where it ends only its worker, or with another Node version` : `: a native crash, a fault in Node, V8 or a native addon; rerun with another Node version` - }` + }${report === undefined ? `` : `; partial report ${report}`}` +/** + * Whether a run whose process ended by itself (`when`) owes a partial report: + * when its process ended after the baseline, with mutants still to judge. A + * crash comes from the stop witness's test where its mutant changes its + * output, which no baseline run does, so it always ends a run in its mutant + * phase; the CLI's abort strikes as its session opens, before any baseline, + * so nothing was judged and no report is owed. + */ +const partialOwed = (when) => when === `crash` +/** + * The line a partial report's summary.md holds under its inputs: what ended + * the run, how many of its `all` mutants it judged, and the ids of those it + * did not, in the order a completed report lists them. + */ +const partialNote = (cause, judged, all, unjudged) => + `**Partial report**: ${cause} after ${judged} of ${all} mutants were judged. Not judged: ${unjudged.join(`, `)}.` function model(plan) { const refused = refusal(plan) @@ -7031,6 +7049,8 @@ export { verdictLine, doneLine, crashLine, + partialOwed, + partialNote, kill, push, judging, diff --git a/packages/oracles/oracle-gaps/gap-report-oracle.property.test.mjs b/packages/oracles/oracle-gaps/gap-report-oracle.property.test.mjs index 39765f63..dac393a8 100644 --- a/packages/oracles/oracle-gaps/gap-report-oracle.property.test.mjs +++ b/packages/oracles/oracle-gaps/gap-report-oracle.property.test.mjs @@ -344,7 +344,16 @@ * CLI that asked. Any other error is an internal error, a bug in the * CLI: it exits 3, says so in one `oracle-gaps: error` line on stderr * with no stack frames, and keeps its stack in the error.log of the - * run's output directory (ending.mjs). + * run's output directory (ending.mjs). A run whose own process dies once + * its baseline is done (a native crash in a worker thread) still ends + * with a report of what it judged: results.json with status `partial`, + * the cause its done line names, each judged mutant with the outcome a + * completed run gives it, and the ids of the rest as `unjudged`, in the + * order a completed report lists them, every mutant whose copy crashed + * among them; summary.md says so in one `**Partial report**` line under + * its inputs (partialNote); and the done line ends `; partial report + * `. A run whose process dies before its baseline leaves + * none. * 13. **Stopping.** A run stopped by SIGTERM or SIGINT ends within 30 s, and * once it has ended no process it started is left: its Vitest workers, * as child processes or as threads, and the processes their tests start @@ -599,6 +608,8 @@ import { verdictLine, doneLine, crashLine, + partialOwed, + partialNote, kill, push, judging, @@ -1120,7 +1131,9 @@ async function stoppedRun( ...how, outName: `out-stop`, contexts: 1, - only: ids, + // A crash runs every mutant, so the mutants before the stop witness's + // are judged before its copy crashes (the partial report). + only: crash ? undefined : ids, pool, }) // The started marker: the CLI writes it as its first statement (index.mjs). @@ -1321,6 +1334,11 @@ async function stoppedRun( // A killed CLI's claim names a dead pid, which the next run refuses ("Stale // claims refuse; no takeover"); its fix line tells the user to delete it. if (kill) rmSync(join(out, `run.pid`), { force: true }) + // What a run whose process ended by itself left as its report (law 12): its + // results.json's status, cause, judged mutants (id and outcome) and + // unjudged ids, and its summary.md's partial lines. Nothing when it wrote + // none. + const partial = ownEnd ? partialReportOf(out) : undefined const scratchNames = [ [how.cli ?? here, ``], [dir, ``], @@ -1335,6 +1353,7 @@ async function stoppedRun( pool, spun, ended, + partial, survivors: alive.length, strayWhileRunning, when: when ?? `run`, @@ -1370,6 +1389,35 @@ async function stoppedRun( return result } +/** + * The report in `out` of a run whose process ended by itself: what its + * results.json says (status, cause, each judged mutant's id and outcome, and + * the ids it did not judge) and the lines of its summary.md that say it is + * partial, or undefined when it holds no results.json. Only those lines: the + * rest of the summary holds the run's id and the baseline's times, which + * differ between runs of one history. + */ +function partialReportOf(out) { + const at = join(out, `results.json`) + if (!existsSync(at)) return undefined + const report = JSON.parse(readFileSync(at, `utf8`)) + const summary = join(out, `summary.md`) + return { + status: report.status, + cause: report.cause, + judged: (report.results ?? []).map((r) => ({ + id: r.id, + kind: r.class ?? r.outcome, + })), + unjudged: report.unjudged, + notes: existsSync(summary) + ? readFileSync(summary, `utf8`) + .split(`\n`) + .filter((line) => line.startsWith(`**Partial report**`)) + : undefined, + } +} + /** * Runs a baseline's replay command as an author pastes it into a POSIX * shell in the package, with this repository's Vitest on the path, and @@ -3838,6 +3886,8 @@ async function driver(plan, observe) { ? `a signal that is no native crash ended the run's process` : `a worker thread's crash ended the run's process`, ) + if (stopped.partial?.judged?.length > 0) + states.add(`a partial report held a judged mutant`) continue } states.add(`a run stopped by ${stopped.signal} while a worker spun`) @@ -5300,8 +5350,22 @@ function check(plan, observations, expected) { : crashLine( value.when === `abort` ? `SIGABRT` : value.signal, value.pool, + partialOwed(value.when) + ? `${value.outDir}/summary.md` + : undefined, ) : `oracle-gaps: done stopped (${value.signal})` + // Law 12: a run whose process ended after its baseline leaves a partial + // report of what it judged (partialBreach); one that ended before leaves + // none. + const partial = + value.spun && whole ? partialBreach(value, cli, pairs) : undefined + if (partial) + return violation( + `stopped`, + `the run whose process exited with ${value.signal} (${value.when}): ${partial}`, + `report-shaped ending`, + ) if (value.spun && value.when === `warm` && value.refused) return violation( `stopped`, @@ -5550,6 +5614,53 @@ const lineSpelling = (path) => (c) => `\\u${c.charCodeAt(0).toString(16).padStart(4, `0`)}`, ) +/** + * Law 12's partial report, of a stopped run whose process ended by itself on + * POSIX (`value`), against the history's completed run `cli` and the model's + * mutants paired with it (`pairs`, owed and got): undefined when it holds. + * When the process ended after the baseline (partialOwed), its results.json + * has status `partial` and the cause the done line names; each mutant it + * judged is one of the run's, once, with the outcome the model owes it; it + * names every other mutant of the run as unjudged, in the completed report's + * order, among them each stop witness mutant whose copy crashed (one the + * model owes `killed`: its output differs, where the witness's test crashes); + * and its summary.md holds the partial line (partialNote), once, and no + * other line that says it is partial. When it ended + * before, it leaves no report. + */ +function partialBreach(value, cli, pairs) { + const report = value.partial + if (!partialOwed(value.when)) + return report === undefined + ? undefined + : `it ended before its baseline, and still wrote a ${report.status ?? `completed`} report` + if (report === undefined) return `it wrote no partial report` + const cause = `the run's process exited with ${value.signal}` + if (report.status !== `partial` || report.cause !== cause) + return `its results.json says ${JSON.stringify([report.status, report.cause])}, not ${JSON.stringify([`partial`, cause])}` + const owed = new Map(pairs.map(([m, got]) => [got.id, m])) + const ids = cli.mutants.map((m) => m.id) + const judged = new Set() + for (const { id, kind } of report.judged) { + if (!ids.includes(id) || judged.has(id)) + return `it judged ${id}, which is ${judged.has(id) ? `judged twice` : `no mutant of the run`}` + judged.add(id) + const m = owed.get(id) + if (m === undefined) return `it judged ${id}, which the model does not pair` + if (m.function === `w_stop` && m.kind === `killed`) + return `it judged ${id}, whose copy crashed` + if (!m.probe && kind !== m.kind) + return `it judged ${id} ${kind}, owed ${m.kind}` + } + const unjudged = ids.filter((id) => !judged.has(id)) + if (JSON.stringify(report.unjudged) !== JSON.stringify(unjudged)) + return `its unjudged mutants are ${JSON.stringify(report.unjudged)}, not ${JSON.stringify(unjudged)}` + const note = partialNote(cause, judged.size, ids.length, unjudged) + if (JSON.stringify(report.notes) !== JSON.stringify([note])) + return `its summary.md's partial lines are ${JSON.stringify(report.notes)}, not ${JSON.stringify([note])}` + return undefined +} + /** * What law 15 judges of every run, on both streams, whatever its outcome: * no stray line, and exactly one done line, which ends each stream, the @@ -6414,6 +6525,108 @@ calibrations.push( }, ) +// Law 12's partial report, each on the worker thread's SIGTRAP of the native +// crash history (or its abort, before the baseline): a report that is +// missing, drops a judged mutant, gives one another outcome, counts a crashed +// copy's mutant as killed, or whose summary has no partial line; a done line +// that does not name it; and a report after an abort that came before any +// mutant was judged. +const onTrap = (value) => value.when === `crash` && value.signal === `SIGTRAP` +const corruptPartial = (change) => + corruptStopped( + (value) => ({ ...value, partial: change(value.partial) }), + onTrap, + ) +calibrations.push( + { + name: `a crashed run writes no partial report`, + law: `report-shaped ending`, + history: { constructed: `a native crash under each pool` }, + corrupt: corruptPartial(() => undefined), + }, + { + name: `a partial report drops a judged mutant`, + law: `report-shaped ending`, + history: { constructed: `a native crash under each pool` }, + corrupt: corruptPartial((partial) => ({ + ...partial, + judged: partial.judged.slice(1), + })), + }, + { + name: `a partial report gives a judged mutant another outcome`, + law: `report-shaped ending`, + history: { constructed: `a native crash under each pool` }, + corrupt: corruptPartial((partial) => ({ + ...partial, + judged: partial.judged.map((m, i) => + i === 0 + ? { ...m, kind: m.kind === `killed` ? `not-observed` : `killed` } + : m, + ), + })), + }, + { + // The stop witness's mutant that the completed run killed: its copy is + // the one that crashes, so the partial report cannot have judged it. + name: `a partial report counts a crashed copy's mutant as killed`, + law: `report-shaped ending`, + history: { constructed: `a native crash under each pool` }, + corrupt: (trace) => { + const crashed = trace + .find((o) => o.checkpoint === `cli`) + ?.value.mutants.find( + (m) => m.function === `w_stop` && m.outcome === `killed`, + )?.id + if (crashed === undefined) return undefined + return corruptPartial((partial) => ({ + ...partial, + judged: [...partial.judged, { id: crashed, kind: `killed` }], + unjudged: partial.unjudged.filter((id) => id !== crashed), + }))(trace) + }, + }, + { + name: `a partial report's summary has no partial line`, + law: `report-shaped ending`, + history: { constructed: `a native crash under each pool` }, + corrupt: corruptPartial((partial) => ({ + ...partial, + notes: [], + })), + }, + { + name: `a crashed run's done line does not name its partial report`, + law: `greppable stream`, + history: { constructed: `a native crash under each pool` }, + corrupt: corruptStopped( + (value) => ({ + ...value, + stream: { ...value.stream, last: crashLine(`SIGTRAP`, `threads`) }, + }), + onTrap, + ), + }, + { + name: `an abort before the baseline writes a partial report`, + law: `report-shaped ending`, + history: { constructed: `a native crash under each pool` }, + corrupt: corruptStopped( + (value) => ({ + ...value, + partial: { + status: `partial`, + cause: `the run's process exited with SIGABRT`, + judged: [], + unjudged: [], + notes: [], + }, + }), + (value) => value.when === `abort`, + ), + }, +) + // Law 15's exempt lines are told by their own shapes (exemptBlocks): another // writer's block on the CLI's stderr is no stray, and the CLI's own line with // no prefix is one, indented or not. Each calibration runs the rejected-batch @@ -7051,6 +7264,7 @@ const posixCrashes = `a worker thread's crash ended the run's process`, `a run whose process aborted beside child-process workers`, `a signal that is no native crash ended the run's process`, + `a partial report held a judged mutant`, ] // The states that only their own constructed histories set up, so that // `every outcome class` names none of them: the disarmed pause and the @@ -7235,9 +7449,9 @@ const witnessEditSequence = (witness) => (generated) => ({ oracleProperty({ id: `oracle-gaps.report`, law: { - statement: `The gap report enumerates the promised operator mutants, leaves out exactly the probe-only code, discovers every oracle that owns a function's call tree and refuses broken ownership, judges each mutant only by its owners' tests on their registered routes and counts only law verdicts on reproducible routes as kills, which outrank a run that never ends, anchors each mutant by its function and normalized statement, lists every gap and unowned mutant once with consistent counts, keeps keys stable under unrelated edits, reports through one daemon per package what a cold run reports at every state of a sequence of edits, and bounds the runs that confirm a mutant's cut-off copies by one budget per mutant and names in each heartbeat a mutant that is running, in a file that runs it, leaves nothing in the package and writes nothing where Vitest's include could find it while it runs, leaves no process running once it is stopped, runs the package as Vitest does from any install path and any --source spelling: one instance of each workspace dependency, no refusal over an unbuildable devDependency, child processes for a native addon anywhere in the tree, a capture that a test's builtin spies cannot see, and a refusal of test.projects; leads its report with every test file's baseline, blocks only the mutants a failing oracle file owns and judges the rest, prints every line of its stream with the prefix oracle-gaps: and its kind, one decisive baseline line before any mutant, and a done line last, which after a native crash of the run's process names the step that avoids it under the run's pool, and every run that does not complete ends, cold or through the daemon, with a refusal that exits 2, prints a refused: block and one fix: directive with no stack trace, and writes the refusal to the run's output directory.`, + statement: `The gap report enumerates the promised operator mutants, leaves out exactly the probe-only code, discovers every oracle that owns a function's call tree and refuses broken ownership, judges each mutant only by its owners' tests on their registered routes and counts only law verdicts on reproducible routes as kills, which outrank a run that never ends, anchors each mutant by its function and normalized statement, lists every gap and unowned mutant once with consistent counts, keeps keys stable under unrelated edits, reports through one daemon per package what a cold run reports at every state of a sequence of edits, and bounds the runs that confirm a mutant's cut-off copies by one budget per mutant and names in each heartbeat a mutant that is running, in a file that runs it, leaves nothing in the package and writes nothing where Vitest's include could find it while it runs, leaves no process running once it is stopped, runs the package as Vitest does from any install path and any --source spelling: one instance of each workspace dependency, no refusal over an unbuildable devDependency, child processes for a native addon anywhere in the tree, a capture that a test's builtin spies cannot see, and a refusal of test.projects; leads its report with every test file's baseline, blocks only the mutants a failing oracle file owns and judges the rest, prints every line of its stream with the prefix oracle-gaps: and its kind, one decisive baseline line before any mutant, and a done line last, which after a native crash of the run's process names the step that avoids it under the run's pool, a run whose process dies after its baseline leaves a partial report of the mutants it judged, and every run that does not complete ends, cold or through the daemon, with a refusal that exits 2, prints a refused: block and one fix: directive with no stack trace, and writes the refusal to the run's output directory.`, authority: `The maintainer's decisions in design runs v11, v14, and v19 (2026-11-04 and 2026-11-05), not in this package's records, including that a kill by reach agreement alone is a gap and that an incremental run through the daemon equals a cold one (v19.3); the project's oracle guide on quiet exclusions; the oracle rubric's outcome kinds (ORC-006); the CLI's documented operator list in schemata.mjs; the maintainer's dispositions G1, G2, G4, G5, G6, and G13 of the framework papercut ledger (2026-11-11) and the v20 freeze's namespacing, one-loop, and provisional-report decisions (2026-11-10); the maintainer's request for a greppable stream (2026-11-12, relayed by the coordinator with its decisions of that day: the same prefixes on stdout and stderr, a done line for a stopped run, and no --max-gaps).`, - limits: `Law 12 judges refusals. The one internal error a history reaches is the constructed rejected-batch history (rejectBatch, a test-only fault that rejects a batch's run after its copies are in Vitest's and Vite's state). Its run is judged in this order: the output namespace, process warnings, and config lines, as for any run; then bounded retention, which owes the rejected batch's own line with its state after retirement; then the stream law (law 15) on both streams, as for any run, so its error line and its done line carry the prefix, and no other line does not, which the state \`a run ended in an internal error\` declares; then exit 3 with an internal error's done line last on both streams, no stack frame on stderr, and an error.log in its output directory. What the error.log's stack says is not judged. An internal error that no fault constructs is a completion failure, reported before the stream law; an internal error through the daemon is reached by no history, and its ending is the same function's (endRun), by inspection. The internal error's lines follow the register's C entry "The internal-error line" (2026-11-16): the general law (endsBreach) owes every run that ends through endRun one error line on stderr naming the done line's log, the output directory's error.log, and none on stdout, and owes the supervisor's own exit 3 none. The message's escape is witnessed by the fault's message, which holds a line break and a forged done line after it; the log path's escape only on POSIX, where the rejected batch's output directory holds a line break (a name on win32 cannot). Paths in a completed run's lines (the results note, the done line's report, the test-output note) are escaped the same way, by inspection: no completed history names such a directory. P10's exempt lines (v21.2 P10 and I3) are read by their own shapes (exemptBlocks), never by indentation alone: a baseline failure's indented details, a refusal's block, Node's warning with its \`--trace-warnings\` frames and its hint, V8's fatal block, esbuild's message block, and Vite's own \`[vite]\` line. The V8, traced-warning, and esbuild blocks are calibrated beside our own line with no prefix (the stream calibrations put them before the rejected-batch run's done line, and the law must name our line alone); no generated history prints any of them or a Vite line, and a shape of those tools that exemptBlocks does not name is read as a stray. The stdout summary's exemption is unused and not exercised: the CLI prefixes every summary line (its summary, legend, and function kinds). \`--help\` prints its usage text with no prefix and no done line, exempt by the register's M entry "\`--help\` is exempt" (2026-11-16), and the static oracle's Help law owes exactly that text; \`--stop-daemon\` prints nothing and exits 0, read the same way as a command outside the run protocol (C, pending ratification), and this oracle runs it without observing its streams. A syntax error in a module that the config imports lets the esbuild that Vite bundles configs with print its block before the refusal (trace, Vite 7.3.7, esbuild 0.28.2: \`✘ [ERROR] Unexpected end of file\`, an empty line, \` helper.ts:2:0:\`, the code frame, then the refused block): its lines are exempt by the register's M entry "Other tools' output is exempt" (2026-11-16), the refusal and the done line around them keep the prefix, and no history generates it. Bounded retention reads the hook's lines (retention-hook.mjs). Its count of one line per batch (runner law L2) rests on the index the hook takes when a batch starts, so a CLI that skipped a batch's index and its line together, or that omitted only the line of a check's last batch, keeps the indices 0..n-1 and is not seen; a check that ended before its report (the rejected batch, a stopped run) and a daemon the driver killed are judged for at most one line per index, since the batches they were running at their end owe none. A line's process is told by check.pid, which the check writes, and the driver itself knows only the daemon it killed. The cold store's law (held) counts the entries given to the store's put that a full collection leaves reachable, so a store that kept only a part of an entry (its unit without the entry) is not seen; staleOpen reads Vitest's own close state (closingPromise, set when close starts), so a close that starts and never resolves is the runner oracle's (L8); and a context replaced after a check's last batch is observed only by a later check's first batch through the daemon. The run whose process aborts is declared on every platform. Its win32 witness (process.abort through ORACLE_GAPS_TEST_ABORT_AT, under the win32 supervisor) lands in #79; until then the Windows end-to-end job is non-blocking (C entry (c)). On win32 Node cannot deliver SIGTERM (its kill is TerminateProcess, which ends the process with no stopped line), so the stop states that name SIGTERM are required on POSIX only, and a stop there goes through the CLI's test stop hook and is observed as SIGINT, which owes its done line as any stop does (no history sends a win32 child.kill, the SIGKILL-equivalent that owes none); every SIGINT state stays required on win32. A stop as the CLI starts lands only in one of two holds: the driver's own preload before the CLI's first statement (outcome a, nothing written; POSIX only, since its witness is a signal's default action), or the CLI's hold after its started marker, which the stop the CLI keeps releases (outcome b, judged only when the supervisor started no child); a stop during Node's own start between the two is not generated, since its outcome follows timing. The drawn spawn delay is a wait inside a hold, so it cannot move a stop out of it. Stop runs that land while the config warms (ORACLE_GAPS_TEST_WARM_PROBE) are still drawn, and on win32 every drawn stop goes through ORACLE_GAPS_TEST_STOP: each is a test-only hook that a drawn field switches, main's pattern, which the review of #57 (A3) brought to the maintainer; only the stop after the completed line (ORACLE_GAPS_TEST_HOLD_UNTIL) was made constructed-only. A missing \`ps\` is generated only as a PATH that names no command, on POSIX, where the run is supervised. The unsupervised path (stopNow, every win32 stop) is reached on POSIX by one constructed history whose stop is held at the run's note, before the check starts a process: an unsupervised POSIX run has no group to end, so a stop while the witness's test spins leaves that test's own child (measured; C 2026-11-13, Windows (e)), which win32 ends with the job object libuv puts its children in. Argument refusals are the static oracle's; the check's rejection of a stack trace, a missing fix, and a wrong exit code is calibrated in the static oracle, through the same refusalBreach, and here only a refused run reported as complete is calibrated, because each calibration here runs real CLI histories. Law 15's stdout gap lines are judged against each completed run's own results.json, by id: the cold run, and each check through the daemon (every step's check and the check that a mid-run edit overlaps); a stopped run and a refusal list no gaps and are not judged so. A line's change is read loosely: its code on one line, whole or cut after a kept part and ended with \`...\`; where the printer cuts (60 code points, kept 57) is the classify oracle's law 8 (\`shortened\`), in-process. A line with any text after its change does not read and fails loudly: the \` (cause: )\` suffix that #99 adds to timeout lines is not read yet, so whichever of #99 and #115 lands second extends readGapLine. Hangs only as an owner test that awaits a promise that never settles, under a 1 s first budget and a 20 s full limit, and a slow run only as two witnesses whose tests wait where the output changed, 3 s in one that then judges and 10 s in two one-test owners of one that does not; busy loops only on instrumented code (cut by the call budget), no slow runs past the full limit that would end, hangs in ordinary or nondeterministic tests, setup errors other than a throw at module load, loops, multi-line conditions, two functions on one line, or await, new, and void statements; nested functions, object-literal methods, accessors, and class-field arrows only where no test calls them (their ownership is the static oracle's); two source files of one package, with no re-exports, namespace imports, or calls into another package; --only only in a stopped run and a partial run of one function's mutants, and no --sample or --diff-base; the baseline's failures only as one failing owner test that throws an error and a setup file that throws, so a baseline law violation's law and counterexample lines are the classify oracle's; a derived class's file is instrumented and its sites are judged as unowned, but no test imports or constructs the class, so its no-mutant and super-region behavior is the static oracle's (in-process), not this oracle's; package configs only as vite.config or vitest.config with one of the extensions .ts, .mts, .cts, .js, .mjs, and .cjs (not every pair), as config/gap-vitest with the same extension through --config, or none, as an object or a sync or async function, with no plugins of their own except one enforce: 'pre' transform that appends a comment to each module of the package (prePlugin) and a plugin whose load reads each test file with a sync read (loadPlugin), drawn for a config in ES module syntax and reached by its own constructed history too; a plugin whose output depends on anything but the module's text (a sidecar file it reads) and an environment variable that changes between checks are not generated, since the runner tracks neither yet and the daemon's environment is fixed when it starts (F-A1: the maintainer decided on 2026-11-13 that the daemon tracks both and restarts when they change, in the next pull request); and test.projects only as a refusal, and only under the package's own package.json; the supervisor-death state is required and entered only off win32: win32 has no supervisor until #79, so there the state is not reached and its history is not judged (platform-scoped reach; the win32 run is unsupervised, which register C entry (e) of #58 records as not guaranteeing that no process outlives the CLI); a config's test.root only in four shapes, drawn for an ES module config that Vitest discovers in the package (the randomness-wins decision, 2026-11-16) and each reached by its own constructed history of one owner and one context, where the test files' globs and the setup file are relative to the root (issue #101): the directory that holds the tests, the directory above the package, a directory of the package that holds no test file, and the package's tests as a symbolic link to the directory that holds them (required on every platform, since Windows creates the link as the driver's other links); not under --config (nor in a history whose config edit names a second config), a CommonJS config, a parent's config, test.projects, several contexts with different roots, or a root that is the filesystem's root; the runner serves each copy of a test file by its absolute path, through its pre plugin's load (which answers before the config's own plugins) and through its read of the copy's path for Vitest's pragma read (serveCopies), and histories run copies only in Vite's server environments (node and the pragma's ssr environment): jsdom and happy-dom, Vite's client environment, are not generated (the #103 merge-gate review ran jsdom by hand under all five root shapes, and the copies loaded in each); a top-level await only in an ES module config and require only in a CommonJS one, as Vitest itself loads no other; a --config outside the package is refused by design, through the rule for paths outside the package (args.mjs), and no history generates one; contexts only one, four, or eleven, and process warnings judged only as MaxListenersExceededWarning on the CLI's own stderr (a daemon's process warnings go to its log); a context that fails to open gives back its listener allowance, which no observation shows (a kept allowance only raises the limit, so no warning follows), so that accounting is fixed by inspection; no probe-bound states, so reach agreement's killing of probe mutants is not checked; no gap answers or gate; law 9 judges the witness module's outcome classes along one constructed edit sequence only (a test edit, a helper edit, and a revert), which runs as two constructed histories, one for each half of the module (captureA and captureB, whose union is the module and which share no function; a function stays with the functions its tests or statements read), since the whole module along it took one CI job (#106, #145; maintainer decision "A one-history job over budget is cut by cost", 2026-11-16), so an interaction between functions of different halves, beyond the ones the split keeps together, is not judged along the sequence (the whole module runs together in \`every outcome class\` and in generated histories, which take no steps); and the budget witness's outcome classes along one constructed second check with nothing changed, because a generated history with the witness module or the budget witness takes no steps (maintainer decision, 2026-11-11, and the runtime review's P1-a, 2026-11-12; this oracle owns the gap); the state "a timed-out run reused after an edit" counts only runs cut by their call budget (the spin, in the first half), a count the CLI records, by the maintainer's decision "#104 state narrowed, #99 restores" (2026-11-17), which narrows "#90 job stays blocking" for that state only: the reuse of a run cut by the clock (a hang) is judged by law 9 but not required, because on main a hang's timeout is stored only when the sampler saw the copy idle, which load decides, and otherwise its confirmation is cut short by its mutant's budget and not kept (#104); #99 makes a hang a state-based no-progress kill and restores the reach as "a run killed for no progress, reused after an edit" (#156); law 9's edits come between checks, except one, midrun, which lands during a check through the daemon: a test of file a, whose context has loaded file b's helper, rewrites the helper in the baseline's first run of file a, before file b's runs read it, in one context or several; or a test of file b rewrites its own helper, or the data file that its verdict read through a sync fs read, after file b's judged tests read them, in the run that judges with the old text (review of #55, F1); that check must report, for each mutant, what a cold run of the state before the edit or of the state after it reports, and exit as one of them does (third review of #55, F-C), compared per mutant result rather than per file; when file b's own test lands the edit, b's baseline reads the old text and b's mutant runs read the new one, so b's own mutants in that check are not judged, since their results legitimately mix the two texts (maintainer decision, 2026-11-13), while every other mutant there is judged against both cold runs, with the check's exit code, its mutants' keys, and its stream; the stronger follow-up compares each run's raw outcome with the cold outcome of the state that run read; and the next check, with nothing changed, must equal a cold run of the state after the edit, compared for equality of results only, not for what the daemon reused or computed (the runner's rule: a run whose input changed after the run read it is invalidated and not stored, settleIn); a check through the daemon of a state that nothing changed must compute no run that was not cut off, judged where no test reads the clock (F-A, F-A2), and a test's fs read of a file and the module that the context serves from it are two inputs, each under its own hash (F-A2); an edit during a mutant run is not generated, and a file is edited mid-run only by the run's own tests, not by another process at an arbitrary time; a file that a test reads through fs is edited only as one JSON file that file b's verdict reads by a sync, a promise, or a callback read, or by a sync read after it stats its own directory and tests that it exists (statDir: the directory is an input as a directory, not by its content, and is not itself edited), each read first checking that its fs function keeps its own name and length (the runner stores a run under the files in the package that its copy reads with readFileSync, readFile, existsSync, or statSync, or the fs/promises readFile or stat, each with its hash at the copy's first read; a read outside the package or under node_modules, from a worker thread or a child process that a test starts, or through any other fs API, which includes readdir, opendir, glob, globSync, createReadStream, realpath, lstat, access, open, a read through a file descriptor (read, readSync, readv, fstat, fstatSync, and readFileSync or readFile given a file descriptor), copyFile and copyFileSync, cp and cpSync, openAsBlob, statfs, readlink, the callback stat, exists, watch, watchFile, and the fs/promises access, open, and glob, is no input, and none is generated: the maintainer decided on 2026-11-13 that every fs read except watch and watchFile is an input, which a follow-up of #55 implements, and until then this oracle owns the gap); a run cut off by its clock writes no closing row, so it is stored under its file's known inputs only, while a run that spun ends and keeps the inputs it named (F-D), in a batch as alone; a spun copy that reads a file that its file's unmutated run never reads is generated (spinData: file b's verdict tests that read the data spin on the function they test while it is open), and the data's edit is judged by law 9 for copies that spin in a batch; a copy that spins alone (runAlone, after a batch with an error outside any test) is generated too (spinThrows: each spun copy schedules an error that fires after its test), and its data's edit is judged the same way; an error outside any test only from a copy that spins, so the alone path's other units (a slow copy's confirmation) stay unwitnessed; a test that rewrites a file it read with the same text makes the next check compute that run again (1 run in the self-edit histories), since the edit changes the file's modification time: the daemon is conservative there, nothing goes stale, and content keys (D10) remove it, with a selfWrite dimension in that pull request; the mid-run marker sits in the daemon's session directory, .oracle-gaps-, whose location predates #55; the runner's hash memo knows a file by its size and modification time, so an edit that keeps both is not seen, and no history makes one (D10, planned in phase 2, A5); law 9's edits leave out other environment variables, new files that change how an unchanged import resolves, Vite config and installed-package changes, and concurrent checks other than two that start the daemon; cut-off charging judged only under one budget; native addons only as a binding.gyp or a prebuilt .node file, not as optional platform packages; a scratch package lies in the CLI's directory (.scratch-*), in a directory beside it whose name extends the CLI directory's name (siblingDir, drawn), or in the OS temp directory, so the driver's inside-the-CLI label is judged against a prefix that is not a parent; a CLI path spelled with another drive-letter case or separator than the package's is win32-only and not generated; daemon races (two CLIs reading one error file, a CLI hearing closing from the failing daemon it started, a reset connection on macOS) fixed by inspection; a daemon that stops answering only at four holds, each released by a count, never by time: a fresh daemon's first check held before it runs until the daemon accepts the driver's next request (ORACLE_GAPS_TEST_HOLD_OVERLAP), which stands in for a session slower to open than the bound while the CLI carries the warm-up pause; and, after a warm check with the pause disarmed (ORACLE_GAPS_TEST_PAUSE_ARM), the daemon's own pauses (pauseAt): before a check runs (daemon-check), before a check that reuses every run warms its contexts (daemon-warm), and before a context warms in place of one that a cut stopped, after the test edit (daemon-replace), each released by the driver's file once the CLI has ended; the CLI's bound is the socket's idle timeout on a daemon that sends nothing (60 s; these histories shorten it to 3 s), a wall-clock bound that changes the run's path and never its outcome; its cold check must equal a cold run (law 9's cold fallback, R39), and it never holds, since only the daemon gives its session the pauses (G43: a hook changes no outcome); the daemon must still run after the fallback, must leave the run's --out as the CLI left it once released (every file's text, with a poison the driver writes into its results.json and error.log), and must serve the next check (its served mark); the daemon drops a check whose CLI has gone before it runs, at each phase's end, and after each context that warms in place of a cut one, which is the one stretch inside a phase with no running copy to beat, and a check ends only once every context's share of a phase has; not witnessed: a gone CLI found while two contexts are both warming in place of cut ones (the wait for every context's share is by inspection), and a copy that starts in the moment between the CLI's bound and the daemon's reading of the closed connection, which runs to its end and writes into the run's --out (the race is the bound's own, a wall clock's, and no history generates it); the held warm-up and the held re-warm rely on the warm daemon's check reaching its hold within the 3 s bound, as the shortWait history relies on its first copy starting within it, and the driver's wait for the hold fails loudly otherwise; the one beat left, a running copy's poll, is witnessed by a warm daemon's check under the 3 s bound while a copy waits 10 s (shortWait); a CLI whose daemon is closing and hung waits 60 s and fails with an internal error rather than checking cold, and --stop-daemon against a hung daemon has no bound (merge gate F3; owed: a constructed history that closes a held daemon, issue #135); a fallback whose cold check refuses is not generated (law 9's refusal-notes comparison would see the fallback note); the runner's copies of the test files exist only in memory, and its harness and Vitest configs sit in the package's .oracle-gaps-, which the next run removes once a killed run has left it (judged after two stopped runs, not after a SIGKILL); a default --out is judged here too: the default-directory histories (a stop, a daemon check, and the unsupervised daemon check) run without --out, and their directory is named in the trace; the namespace is checked after each run and, in a stopped run, while the run runs; a slow kill in a later owner, after earlier owners' confirmations spent the budget, becomes a timeout (owner order; not generated); the Vitest 5 path of the copies' pragma read and of the runner is verified from Vitest 5's source only, since the Vitest 5 CI job runs no gap oracle; a batch whose run reports an error outside any test reruns each copy alone (unitsBatch, runAlone) with its first budget, and a copy cut there is kept as a timeout with no confirmation, a defect older than this oracle's budget work that no history reaches (no history has an error outside any test beside a slow copy), recorded here with that trace for the maintainer; stale-session removal is scoped to this host's session directories (a host file), and is not judged across pid namespaces; a generated history stops only while the witness spins, or aborts, and on win32 not at all, since every other stop switches a test-only hook (the hold after the completed line, the warm probe, and on win32 the test stop file; randomness wins, 2026-11-16), so only the halves of every outcome class stop with one; the stop law covers SIGTERM and SIGINT sent to the CLI; a SIGKILL of a supervisor is witnessed on POSIX by the constructed history "a supervised child exits when its supervisor is killed" (its child exits within the watchdog tick), and a signal sent to the daemon is not witnessed here, and its witness is one test that spins synchronously and starts one child process; the mutant budget is witnessed as two slow owners whose confirmations pass the --mutant-limit floor, not through its multiple of the owners' unmutated time, and authored mutants have no confirmations to budget; the witness w_slowpair is a wall-clock window, since the CLI's budget has no controlled clock and a fixture cannot see the time the CLI measures for its file: with one-test owner files p and q of measured unmutated time t each (a file first in its context pays the instrumented transform too), a wait W of 10 s, a 20 s --hang-limit and a 15 s --mutant-limit, it tells a budget from none only while (a) its first attempt is cut, W > 1 s + 3t, (b) its two confirmations do not fit the budget, 2W > max(15 s, 10 x 2t), and (c) each would fit its own full limit, W < 20 s + 3t; (b) is the binding one, so it holds while the two files' time stays under about 2 s together (about 1 s each, some 20 times the authoring machine's idle and 5 to 10 times its loaded measurements), and under one budget a run's overhead must stay under 10 s + 3t; CI runners measure 1.5 to 2.3 times the idle machine; beyond that w_slowpair would read not-judged; heartbeats are checked for shape only (maintainer decision "Heartbeats are progress, not outcome", 2026-11-14): each names a mutant of the run, or the baseline, in a file that runs it, and a beat after its mutant's own gap line is a breach, while their set and count, which depend on timing, are not compared and no busy mutant's beat is owed; the shape law reads "was running" only against a mutant's own streamed gap line, so a beat that names a killed mutant (which streams no line) after it finished, or a mutant that has not started, is not a breach; the state "a heartbeat named a busy mutant" is required (maintainer decision "#90 job stays blocking", 2026-11-16) and is entered only through a deterministic hold (#84): the slow kill's test, where its output differs, holds until the run's stream log has one more heartbeat that names a mutant in its file, released by the CLI's own line and never by the clock, so a cold run that holds it has such a beat on any machine; the state is entered only by a cold run that has the slow kill and named its stream log to the hold (\`every outcome class\`, which pins its own --out, and drawn histories with the slow kill and an --out), and a beat anywhere else enters nothing: a check through the daemon (a daemon keeps the environment of the call that started it), a stop run, a run with the default output directory, and the first half of the witness sequence (no slow kill; its I/O wait spans the interval by timing) run unheld, and their beats are progress only; a held copy that no beat releases is cut by the CLI's budget and is judged \`timeout, owed killed\` (the bound of 2,400 polls on the hold is a backstop that the CLI's 15 s budget and 20 s limit always reach first); a config only in the package's parent directory is generated one level up, in a temporary directory with no package.json (so its .js or .ts name is CommonJS), as a plain config, one that throws, one with no default export, or one that defines test.projects; a config two or more levels up, or a parent config beside a package config, is not generated, and the order in one directory follows Vitest's configFiles list by inspection; a package with no config lives in a temporary directory, where no parent has a config; a counterexample shrinks through at most six histories, and within half the unit's timeout, so it can be larger than the smallest that fails; in CI's random units it does not shrink (GAP_E2E_SHRINKS=0, the maintainer's decision "Shrink briefly in CI", 2026-11-17), and its history is filed whole; module-level data only as four \`const\` declarations of the main source (an object literal, an array that holds a function, a boolean, and an object of two methods), read in place, with no data imported from another file, destructured, reassigned, or declared as an enum or a default export; the work law only through shortcut witnesses (an early return before a counting loop with a bound twin of ratio 2, and a push beside one that calls String with a bound twin of ratio 1), the early return in tests that reach the clock by each watched path and in tests that wait a turn, a generated test's bound of 1 derived from its plan; probe code is never work (maintainer decision, 2026-11-16), so the model and the capture count no probe-only site, and only a constructed history (a probe branch under a generated test's work bound) reaches a probe branch beside a bound: the fixed seeds' generated histories reach neither that state nor \`killed by a work bound in a generated function\`, which stays measured; work counts are observed only through a bound's ratio and a rise, never as numbers (v21.2 O1), so a counter that skips every site on a probe's line, which drops only the condition sites of an elseIf that run once on both sides, survives (mutant M6, equivalent under these observations), while one that skips every site of a function that holds probe code is killed (M7), and one warm-cache witness whose selection reproduces observations but not work; work is the capture's count of site evaluations per test, so code with no site (a plain assignment, a for...of pass, a builtin's own work) counts nothing and a test's histories are summed, and a test whose work varies between the unmutated runs while its observations agree is not generated. The skip law (law 4: a mutant is judged without a run only where no owner's unmutated run reached its site with a value that the mutant changes) is judged through the kills, crashes, and setup errors of mutants whose value changed, and through the survivors of those whose value did not: for \`?.\` on an \`undefined\` and a \`null\` object (the drawn \`absentObjects\`), on an absent object two or three links deep, and past a link whose object is absent, where JavaScript short-circuits the rest of the chain so a plain read there changes nothing (the drawn \`optionalChains\`), and for a returned value made \`undefined\`, in the constructed history \`a value change at a ?. read and at a return\`; for a \`?.\` whose object is absent only while the module loads (a booted first function), in \`a ?. read of an object absent only at load\`, whose mutant throws as the module loads and is a setup error; and for a comparison swap, a dropped \`!\`, a skipped call, a boolean flip, a forced \`if\`, a loop that never runs, a dropped field, a value-position call, and an arithmetic swap, by the witness module's kills under \`every outcome class\`. A logical operator's swap (\`&&\`, \`||\`, \`??\`) has no killable site in the grammar (its only sites are probe guards and the old probe form), so that its switch infects the site on every reach is fixed by inspection. The switch's extra infection (it infects on every reach, including a \`return-undefined\` of a value that is already \`undefined\`) costs a run and changes no outcome only because its active form computes exactly the mutated expression; the \`?.\` helper's active form throws wherever it infects, so it infects exactly where the link's own object is absent and no earlier link of the chain short-circuited, and the outer links' helpers are told of an earlier link's short-circuit. An optional element read (\`a?.[k]\`) is not generated: it goes through the same capture helper as \`a?.b\`, so under its mutant an absent object throws before the key expression runs, where the plain read \`a[k]\` evaluates the key first; a key with an observed effect or a throw of its own is judged by that order, which differs from the real mutant's, and no history reaches it. An optional call (\`f?.()\`) is no site; where it feeds a later \`?.\` link, it passes its short-circuit on to that link, so the link's mutant is skipped where the call's method is absent, and runs where the call ran; this is judged for a method that returns an object or nothing, absent itself or behind an absent object (the drawn \`call\` and \`returns\` of \`optionalChains\`), and for a plain read of \`v\` after the call. The generated calls take no arguments; the spread that marks a call as run comes before any argument, so a call's arguments run only where it does, as before. The pass-through keeps, per call site, a stack of the open evaluations' records, so a record pairs with its evaluation only where evaluations of the same expression nest and each one ends. Four cases break the pairing, and no history generates any of them: an evaluation of the same expression nested in the receiver, or in the method lookup, that throws and is caught there after its call ran leaves a run record open, so an outer evaluation whose method is absent reads it as run (a false infection, and a false throw under the next link's mutant, P3); one nested in the call's arguments or in the method's body that throws before its call runs leaves a not-run record open, so an outer evaluation whose call ran reads it as skipped (a false skip: the next link's mutant is judged without a run, the class of issue #109, P5); and two async evaluations of the same expression interleaved at an \`await\` close each other's records (a false skip or a false throw). Each is filed for an owner as issue #162. Open Limits, owned by the in-process runner oracle (L1, state \"torn tail at a cut-off read\"; RED: captureLines without the guard): (a) the batch's cut-off read (runBatch's rowsOf after the cut-off) drops a partial last row, and no witness reaches that drop yet, because a copy held half written across the cut-off did not observe its release in the harness; (b) a short fragment on the strict path, which the no-newline mutant does not reach. The strict read after a finished run (a fragment is an internal error) is witnessed by the no-newline mutant. Windows idle gap (recorded, not witnessed): the state \`a hang cut off for idleness\` is required on every platform, and win32 reaches it (run 43683794816, job 132719872988), so it is not platform-scoped. The sampler (capture-setup.mjs) counts a copy idle only after 500 ms with no late tick, no non-quiet handle, utilization at most 5%, and no timer due, so \`every outcome class\` reaches the state only when the sampler sees that window. On win32 the check missed it once (run 43683794816, job 132719872940); the cause is not confirmed (a late tick on a shared runner, or a stdio handle outside \`quiet\` for this file's console output, are the candidates). Its witness, a test-only hold at the hang until the window is seen, is owed, and that is a timing dependency the determinism-under-load rule forbids; the maintainer decides whether it lands before the Windows job becomes blocking. A run killed before it cleans up may leave its own directory: the CLI killed with SIGKILL (\`kill\`, constructed only), the unsupervised abort, and every abort on win32. The constructed history \`a run after a killed CLI\` kills the CLI and its check's group while the witness spins, and the run after it must remove the directory the killed CLI wrote, through the \`host\` file that CLI wrote. Every other stop run that opens a session also finds a killed run's directory that the driver wrote, under a pid that no process can have (above Linux's pid_max and macOS's 99999, and not a multiple of 4 as every win32 pid is). The abort's killed directory is never followed by a run. Whether a run is killed is read from the stop and the platform, not observed, so a win32 supervisor (#79) must narrow it to the unsupervised abort. A run stopped before its first statement can remove nothing, so a killed run followed by such a stop would keep the killed run's directory whatever the CLI does; no history has that order (a stop before the CLI starts is the last run of its history, and the killed runs are not followed by one). On POSIX a supervised run's directory is removed by its supervisor once the child ends, whatever ended it; an unsupervised run removes its own when its process exits, and that path is judged on win32 alone (its hookStops histories), since POSIX's one unsupervised history is stopped at its note, before a session opens. No history makes a removal fail or reuses a pid, so the catch and the live-pid guard of removeSession are not judged; their witnesses are owed (#168). Block per law (2026-11-18) and "A broken owner file judges nothing" (2026-11-19): a failing law is drawn as one test of file a or b, at the start or the end of its file, calling the first generated function not at all, once (and maybe repeating it until the unmutated output), or past the call floor, or as a describe's law whose beforeAll or afterAll throws. A failing law still runs in its file's copies ("An excluded test still runs", 2026-11-23), and a failing law that spins under a mutant is drawn only through its own call repeated until the unmutated output (failingLawSpins) or a call that spins; a failing law that changes state a later test reads is not generated, so a kill by a passing law that reads such state is not judged (review of #176, round 1 F3: a failing fast-check property's shrink state, or an abandoned async body after a per-test timeout, feeding a later passing law's kill, whose replay of that law alone does not reproduce). Its witness needs a drawn field where a failing law writes a module-level value that a later passing law reads; owner: issue #210. A file-level beforeEach or afterEach that throws fails every test, and its report names one failing law per test, not the hook; it is not generated. A describe's failing hook fails only that describe's laws; a hook that fails only under a mutant is not read. Load reach follows the maintainer's decision "Load reach goes to every owner file" (2026-11-23, #186): the model's census counts every test of an owner file that loads the module (#204), the failing owner's passing pair included under per-law blocking, so code run at load in a file with a failing law is judged by that file's passing tests. A file whose tests fail and that also errs outside its tests is left out whole, and is not generated. Platform scopes (R56): 'a run stopped by SIGTERM while a worker spun' is judged on POSIX only, because Node cannot be sent SIGTERM on win32 (C-26, ratified by M-29; the win32 stop is the SIGINT of the test stop file). 'a supervised check with no ps on its PATH' is judged on POSIX only, because ps is a POSIX tool and the win32 watchdog reads liveness with signal 0; the other supervision states, including the supervisor-death witness, are judged on every platform.`, + limits: `Law 12 judges refusals. The one internal error a history reaches is the constructed rejected-batch history (rejectBatch, a test-only fault that rejects a batch's run after its copies are in Vitest's and Vite's state). Its run is judged in this order: the output namespace, process warnings, and config lines, as for any run; then bounded retention, which owes the rejected batch's own line with its state after retirement; then the stream law (law 15) on both streams, as for any run, so its error line and its done line carry the prefix, and no other line does not, which the state \`a run ended in an internal error\` declares; then exit 3 with an internal error's done line last on both streams, no stack frame on stderr, and an error.log in its output directory. What the error.log's stack says is not judged. An internal error that no fault constructs is a completion failure, reported before the stream law; an internal error through the daemon is reached by no history, and its ending is the same function's (endRun), by inspection. The internal error's lines follow the register's C entry "The internal-error line" (2026-11-16): the general law (endsBreach) owes every run that ends through endRun one error line on stderr naming the done line's log, the output directory's error.log, and none on stdout, and owes the supervisor's own exit 3 none. The message's escape is witnessed by the fault's message, which holds a line break and a forged done line after it; the log path's escape only on POSIX, where the rejected batch's output directory holds a line break (a name on win32 cannot). Paths in a completed run's lines (the results note, the done line's report, the test-output note) are escaped the same way, by inspection: no completed history names such a directory. P10's exempt lines (v21.2 P10 and I3) are read by their own shapes (exemptBlocks), never by indentation alone: a baseline failure's indented details, a refusal's block, Node's warning with its \`--trace-warnings\` frames and its hint, V8's fatal block, esbuild's message block, and Vite's own \`[vite]\` line. The V8, traced-warning, and esbuild blocks are calibrated beside our own line with no prefix (the stream calibrations put them before the rejected-batch run's done line, and the law must name our line alone); no generated history prints any of them or a Vite line, and a shape of those tools that exemptBlocks does not name is read as a stray. The stdout summary's exemption is unused and not exercised: the CLI prefixes every summary line (its summary, legend, and function kinds). \`--help\` prints its usage text with no prefix and no done line, exempt by the register's M entry "\`--help\` is exempt" (2026-11-16), and the static oracle's Help law owes exactly that text; \`--stop-daemon\` prints nothing and exits 0, read the same way as a command outside the run protocol (C, pending ratification), and this oracle runs it without observing its streams. A syntax error in a module that the config imports lets the esbuild that Vite bundles configs with print its block before the refusal (trace, Vite 7.3.7, esbuild 0.28.2: \`✘ [ERROR] Unexpected end of file\`, an empty line, \` helper.ts:2:0:\`, the code frame, then the refused block): its lines are exempt by the register's M entry "Other tools' output is exempt" (2026-11-16), the refusal and the done line around them keep the prefix, and no history generates it. Bounded retention reads the hook's lines (retention-hook.mjs). Its count of one line per batch (runner law L2) rests on the index the hook takes when a batch starts, so a CLI that skipped a batch's index and its line together, or that omitted only the line of a check's last batch, keeps the indices 0..n-1 and is not seen; a check that ended before its report (the rejected batch, a stopped run) and a daemon the driver killed are judged for at most one line per index, since the batches they were running at their end owe none. A line's process is told by check.pid, which the check writes, and the driver itself knows only the daemon it killed. The cold store's law (held) counts the entries given to the store's put that a full collection leaves reachable, so a store that kept only a part of an entry (its unit without the entry) is not seen; staleOpen reads Vitest's own close state (closingPromise, set when close starts), so a close that starts and never resolves is the runner oracle's (L8); and a context replaced after a check's last batch is observed only by a later check's first batch through the daemon. The run whose process aborts is declared on every platform. Its win32 witness (process.abort through ORACLE_GAPS_TEST_ABORT_AT, under the win32 supervisor) lands in #79; until then the Windows end-to-end job is non-blocking (C entry (c)). On win32 Node cannot deliver SIGTERM (its kill is TerminateProcess, which ends the process with no stopped line), so the stop states that name SIGTERM are required on POSIX only, and a stop there goes through the CLI's test stop hook and is observed as SIGINT, which owes its done line as any stop does (no history sends a win32 child.kill, the SIGKILL-equivalent that owes none); every SIGINT state stays required on win32. A stop as the CLI starts lands only in one of two holds: the driver's own preload before the CLI's first statement (outcome a, nothing written; POSIX only, since its witness is a signal's default action), or the CLI's hold after its started marker, which the stop the CLI keeps releases (outcome b, judged only when the supervisor started no child); a stop during Node's own start between the two is not generated, since its outcome follows timing. The drawn spawn delay is a wait inside a hold, so it cannot move a stop out of it. Stop runs that land while the config warms (ORACLE_GAPS_TEST_WARM_PROBE) are still drawn, and on win32 every drawn stop goes through ORACLE_GAPS_TEST_STOP: each is a test-only hook that a drawn field switches, main's pattern, which the review of #57 (A3) brought to the maintainer; only the stop after the completed line (ORACLE_GAPS_TEST_HOLD_UNTIL) was made constructed-only. A missing \`ps\` is generated only as a PATH that names no command, on POSIX, where the run is supervised. The unsupervised path (stopNow, every win32 stop) is reached on POSIX by one constructed history whose stop is held at the run's note, before the check starts a process: an unsupervised POSIX run has no group to end, so a stop while the witness's test spins leaves that test's own child (measured; C 2026-11-13, Windows (e)), which win32 ends with the job object libuv puts its children in. Argument refusals are the static oracle's; the check's rejection of a stack trace, a missing fix, and a wrong exit code is calibrated in the static oracle, through the same refusalBreach, and here only a refused run reported as complete is calibrated, because each calibration here runs real CLI histories. Law 15's stdout gap lines are judged against each completed run's own results.json, by id: the cold run, and each check through the daemon (every step's check and the check that a mid-run edit overlaps); a stopped run and a refusal list no gaps and are not judged so. A line's change is read loosely: its code on one line, whole or cut after a kept part and ended with \`...\`; where the printer cuts (60 code points, kept 57) is the classify oracle's law 8 (\`shortened\`), in-process. A line with any text after its change does not read and fails loudly: the \` (cause: )\` suffix that #99 adds to timeout lines is not read yet, so whichever of #99 and #115 lands second extends readGapLine. Hangs only as an owner test that awaits a promise that never settles, under a 1 s first budget and a 20 s full limit, and a slow run only as two witnesses whose tests wait where the output changed, 3 s in one that then judges and 10 s in two one-test owners of one that does not; busy loops only on instrumented code (cut by the call budget), no slow runs past the full limit that would end, hangs in ordinary or nondeterministic tests, setup errors other than a throw at module load, loops, multi-line conditions, two functions on one line, or await, new, and void statements; nested functions, object-literal methods, accessors, and class-field arrows only where no test calls them (their ownership is the static oracle's); two source files of one package, with no re-exports, namespace imports, or calls into another package; --only only in a stopped run and a partial run of one function's mutants, and no --sample or --diff-base; the baseline's failures only as one failing owner test that throws an error and a setup file that throws, so a baseline law violation's law and counterexample lines are the classify oracle's; a derived class's file is instrumented and its sites are judged as unowned, but no test imports or constructs the class, so its no-mutant and super-region behavior is the static oracle's (in-process), not this oracle's; package configs only as vite.config or vitest.config with one of the extensions .ts, .mts, .cts, .js, .mjs, and .cjs (not every pair), as config/gap-vitest with the same extension through --config, or none, as an object or a sync or async function, with no plugins of their own except one enforce: 'pre' transform that appends a comment to each module of the package (prePlugin) and a plugin whose load reads each test file with a sync read (loadPlugin), drawn for a config in ES module syntax and reached by its own constructed history too; a plugin whose output depends on anything but the module's text (a sidecar file it reads) and an environment variable that changes between checks are not generated, since the runner tracks neither yet and the daemon's environment is fixed when it starts (F-A1: the maintainer decided on 2026-11-13 that the daemon tracks both and restarts when they change, in the next pull request); and test.projects only as a refusal, and only under the package's own package.json; the supervisor-death state is required and entered only off win32: win32 has no supervisor until #79, so there the state is not reached and its history is not judged (platform-scoped reach; the win32 run is unsupervised, which register C entry (e) of #58 records as not guaranteeing that no process outlives the CLI); a config's test.root only in four shapes, drawn for an ES module config that Vitest discovers in the package (the randomness-wins decision, 2026-11-16) and each reached by its own constructed history of one owner and one context, where the test files' globs and the setup file are relative to the root (issue #101): the directory that holds the tests, the directory above the package, a directory of the package that holds no test file, and the package's tests as a symbolic link to the directory that holds them (required on every platform, since Windows creates the link as the driver's other links); not under --config (nor in a history whose config edit names a second config), a CommonJS config, a parent's config, test.projects, several contexts with different roots, or a root that is the filesystem's root; the runner serves each copy of a test file by its absolute path, through its pre plugin's load (which answers before the config's own plugins) and through its read of the copy's path for Vitest's pragma read (serveCopies), and histories run copies only in Vite's server environments (node and the pragma's ssr environment): jsdom and happy-dom, Vite's client environment, are not generated (the #103 merge-gate review ran jsdom by hand under all five root shapes, and the copies loaded in each); a top-level await only in an ES module config and require only in a CommonJS one, as Vitest itself loads no other; a --config outside the package is refused by design, through the rule for paths outside the package (args.mjs), and no history generates one; contexts only one, four, or eleven, and process warnings judged only as MaxListenersExceededWarning on the CLI's own stderr (a daemon's process warnings go to its log); a context that fails to open gives back its listener allowance, which no observation shows (a kept allowance only raises the limit, so no warning follows), so that accounting is fixed by inspection; no probe-bound states, so reach agreement's killing of probe mutants is not checked; no gap answers or gate; law 9 judges the witness module's outcome classes along one constructed edit sequence only (a test edit, a helper edit, and a revert), which runs as two constructed histories, one for each half of the module (captureA and captureB, whose union is the module and which share no function; a function stays with the functions its tests or statements read), since the whole module along it took one CI job (#106, #145; maintainer decision "A one-history job over budget is cut by cost", 2026-11-16), so an interaction between functions of different halves, beyond the ones the split keeps together, is not judged along the sequence (the whole module runs together in \`every outcome class\` and in generated histories, which take no steps); and the budget witness's outcome classes along one constructed second check with nothing changed, because a generated history with the witness module or the budget witness takes no steps (maintainer decision, 2026-11-11, and the runtime review's P1-a, 2026-11-12; this oracle owns the gap); the state "a timed-out run reused after an edit" counts only runs cut by their call budget (the spin, in the first half), a count the CLI records, by the maintainer's decision "#104 state narrowed, #99 restores" (2026-11-17), which narrows "#90 job stays blocking" for that state only: the reuse of a run cut by the clock (a hang) is judged by law 9 but not required, because on main a hang's timeout is stored only when the sampler saw the copy idle, which load decides, and otherwise its confirmation is cut short by its mutant's budget and not kept (#104); #99 makes a hang a state-based no-progress kill and restores the reach as "a run killed for no progress, reused after an edit" (#156); law 9's edits come between checks, except one, midrun, which lands during a check through the daemon: a test of file a, whose context has loaded file b's helper, rewrites the helper in the baseline's first run of file a, before file b's runs read it, in one context or several; or a test of file b rewrites its own helper, or the data file that its verdict read through a sync fs read, after file b's judged tests read them, in the run that judges with the old text (review of #55, F1); that check must report, for each mutant, what a cold run of the state before the edit or of the state after it reports, and exit as one of them does (third review of #55, F-C), compared per mutant result rather than per file; when file b's own test lands the edit, b's baseline reads the old text and b's mutant runs read the new one, so b's own mutants in that check are not judged, since their results legitimately mix the two texts (maintainer decision, 2026-11-13), while every other mutant there is judged against both cold runs, with the check's exit code, its mutants' keys, and its stream; the stronger follow-up compares each run's raw outcome with the cold outcome of the state that run read; and the next check, with nothing changed, must equal a cold run of the state after the edit, compared for equality of results only, not for what the daemon reused or computed (the runner's rule: a run whose input changed after the run read it is invalidated and not stored, settleIn); a check through the daemon of a state that nothing changed must compute no run that was not cut off, judged where no test reads the clock (F-A, F-A2), and a test's fs read of a file and the module that the context serves from it are two inputs, each under its own hash (F-A2); an edit during a mutant run is not generated, and a file is edited mid-run only by the run's own tests, not by another process at an arbitrary time; a file that a test reads through fs is edited only as one JSON file that file b's verdict reads by a sync, a promise, or a callback read, or by a sync read after it stats its own directory and tests that it exists (statDir: the directory is an input as a directory, not by its content, and is not itself edited), each read first checking that its fs function keeps its own name and length (the runner stores a run under the files in the package that its copy reads with readFileSync, readFile, existsSync, or statSync, or the fs/promises readFile or stat, each with its hash at the copy's first read; a read outside the package or under node_modules, from a worker thread or a child process that a test starts, or through any other fs API, which includes readdir, opendir, glob, globSync, createReadStream, realpath, lstat, access, open, a read through a file descriptor (read, readSync, readv, fstat, fstatSync, and readFileSync or readFile given a file descriptor), copyFile and copyFileSync, cp and cpSync, openAsBlob, statfs, readlink, the callback stat, exists, watch, watchFile, and the fs/promises access, open, and glob, is no input, and none is generated: the maintainer decided on 2026-11-13 that every fs read except watch and watchFile is an input, which a follow-up of #55 implements, and until then this oracle owns the gap); a run cut off by its clock writes no closing row, so it is stored under its file's known inputs only, while a run that spun ends and keeps the inputs it named (F-D), in a batch as alone; a spun copy that reads a file that its file's unmutated run never reads is generated (spinData: file b's verdict tests that read the data spin on the function they test while it is open), and the data's edit is judged by law 9 for copies that spin in a batch; a copy that spins alone (runAlone, after a batch with an error outside any test) is generated too (spinThrows: each spun copy schedules an error that fires after its test), and its data's edit is judged the same way; an error outside any test only from a copy that spins, so the alone path's other units (a slow copy's confirmation) stay unwitnessed; a test that rewrites a file it read with the same text makes the next check compute that run again (1 run in the self-edit histories), since the edit changes the file's modification time: the daemon is conservative there, nothing goes stale, and content keys (D10) remove it, with a selfWrite dimension in that pull request; the mid-run marker sits in the daemon's session directory, .oracle-gaps-, whose location predates #55; the runner's hash memo knows a file by its size and modification time, so an edit that keeps both is not seen, and no history makes one (D10, planned in phase 2, A5); law 9's edits leave out other environment variables, new files that change how an unchanged import resolves, Vite config and installed-package changes, and concurrent checks other than two that start the daemon; cut-off charging judged only under one budget; native addons only as a binding.gyp or a prebuilt .node file, not as optional platform packages; a scratch package lies in the CLI's directory (.scratch-*), in a directory beside it whose name extends the CLI directory's name (siblingDir, drawn), or in the OS temp directory, so the driver's inside-the-CLI label is judged against a prefix that is not a parent; a CLI path spelled with another drive-letter case or separator than the package's is win32-only and not generated; daemon races (two CLIs reading one error file, a CLI hearing closing from the failing daemon it started, a reset connection on macOS) fixed by inspection; a daemon that stops answering only at four holds, each released by a count, never by time: a fresh daemon's first check held before it runs until the daemon accepts the driver's next request (ORACLE_GAPS_TEST_HOLD_OVERLAP), which stands in for a session slower to open than the bound while the CLI carries the warm-up pause; and, after a warm check with the pause disarmed (ORACLE_GAPS_TEST_PAUSE_ARM), the daemon's own pauses (pauseAt): before a check runs (daemon-check), before a check that reuses every run warms its contexts (daemon-warm), and before a context warms in place of one that a cut stopped, after the test edit (daemon-replace), each released by the driver's file once the CLI has ended; the CLI's bound is the socket's idle timeout on a daemon that sends nothing (60 s; these histories shorten it to 3 s), a wall-clock bound that changes the run's path and never its outcome; its cold check must equal a cold run (law 9's cold fallback, R39), and it never holds, since only the daemon gives its session the pauses (G43: a hook changes no outcome); the daemon must still run after the fallback, must leave the run's --out as the CLI left it once released (every file's text, with a poison the driver writes into its results.json and error.log), and must serve the next check (its served mark); the daemon drops a check whose CLI has gone before it runs, at each phase's end, and after each context that warms in place of a cut one, which is the one stretch inside a phase with no running copy to beat, and a check ends only once every context's share of a phase has; not witnessed: a gone CLI found while two contexts are both warming in place of cut ones (the wait for every context's share is by inspection), and a copy that starts in the moment between the CLI's bound and the daemon's reading of the closed connection, which runs to its end and writes into the run's --out (the race is the bound's own, a wall clock's, and no history generates it); the held warm-up and the held re-warm rely on the warm daemon's check reaching its hold within the 3 s bound, as the shortWait history relies on its first copy starting within it, and the driver's wait for the hold fails loudly otherwise; the one beat left, a running copy's poll, is witnessed by a warm daemon's check under the 3 s bound while a copy waits 10 s (shortWait); a CLI whose daemon is closing and hung waits 60 s and fails with an internal error rather than checking cold, and --stop-daemon against a hung daemon has no bound (merge gate F3; owed: a constructed history that closes a held daemon, issue #135); a fallback whose cold check refuses is not generated (law 9's refusal-notes comparison would see the fallback note); the runner's copies of the test files exist only in memory, and its harness and Vitest configs sit in the package's .oracle-gaps-, which the next run removes once a killed run has left it (judged after two stopped runs, not after a SIGKILL); a default --out is judged here too: the default-directory histories (a stop, a daemon check, and the unsupervised daemon check) run without --out, and their directory is named in the trace; the namespace is checked after each run and, in a stopped run, while the run runs; a slow kill in a later owner, after earlier owners' confirmations spent the budget, becomes a timeout (owner order; not generated); the Vitest 5 path of the copies' pragma read and of the runner is verified from Vitest 5's source only, since the Vitest 5 CI job runs no gap oracle; a batch whose run reports an error outside any test reruns each copy alone (unitsBatch, runAlone) with its first budget, and a copy cut there is kept as a timeout with no confirmation, a defect older than this oracle's budget work that no history reaches (no history has an error outside any test beside a slow copy), recorded here with that trace for the maintainer; stale-session removal is scoped to this host's session directories (a host file), and is not judged across pid namespaces; a generated history stops only while the witness spins, or aborts, and on win32 not at all, since every other stop switches a test-only hook (the hold after the completed line, the warm probe, and on win32 the test stop file; randomness wins, 2026-11-16), so only the halves of every outcome class stop with one; the stop law covers SIGTERM and SIGINT sent to the CLI; a SIGKILL of a supervisor is witnessed on POSIX by the constructed history "a supervised child exits when its supervisor is killed" (its child exits within the watchdog tick), and a signal sent to the daemon is not witnessed here, and its witness is one test that spins synchronously and starts one child process; the mutant budget is witnessed as two slow owners whose confirmations pass the --mutant-limit floor, not through its multiple of the owners' unmutated time, and authored mutants have no confirmations to budget; the witness w_slowpair is a wall-clock window, since the CLI's budget has no controlled clock and a fixture cannot see the time the CLI measures for its file: with one-test owner files p and q of measured unmutated time t each (a file first in its context pays the instrumented transform too), a wait W of 10 s, a 20 s --hang-limit and a 15 s --mutant-limit, it tells a budget from none only while (a) its first attempt is cut, W > 1 s + 3t, (b) its two confirmations do not fit the budget, 2W > max(15 s, 10 x 2t), and (c) each would fit its own full limit, W < 20 s + 3t; (b) is the binding one, so it holds while the two files' time stays under about 2 s together (about 1 s each, some 20 times the authoring machine's idle and 5 to 10 times its loaded measurements), and under one budget a run's overhead must stay under 10 s + 3t; CI runners measure 1.5 to 2.3 times the idle machine; beyond that w_slowpair would read not-judged; heartbeats are checked for shape only (maintainer decision "Heartbeats are progress, not outcome", 2026-11-14): each names a mutant of the run, or the baseline, in a file that runs it, and a beat after its mutant's own gap line is a breach, while their set and count, which depend on timing, are not compared and no busy mutant's beat is owed; the shape law reads "was running" only against a mutant's own streamed gap line, so a beat that names a killed mutant (which streams no line) after it finished, or a mutant that has not started, is not a breach; the state "a heartbeat named a busy mutant" is required (maintainer decision "#90 job stays blocking", 2026-11-16) and is entered only through a deterministic hold (#84): the slow kill's test, where its output differs, holds until the run's stream log has one more heartbeat that names a mutant in its file, released by the CLI's own line and never by the clock, so a cold run that holds it has such a beat on any machine; the state is entered only by a cold run that has the slow kill and named its stream log to the hold (\`every outcome class\`, which pins its own --out, and drawn histories with the slow kill and an --out), and a beat anywhere else enters nothing: a check through the daemon (a daemon keeps the environment of the call that started it), a stop run, a run with the default output directory, and the first half of the witness sequence (no slow kill; its I/O wait spans the interval by timing) run unheld, and their beats are progress only; a held copy that no beat releases is cut by the CLI's budget and is judged \`timeout, owed killed\` (the bound of 2,400 polls on the hold is a backstop that the CLI's 15 s budget and 20 s limit always reach first); a config only in the package's parent directory is generated one level up, in a temporary directory with no package.json (so its .js or .ts name is CommonJS), as a plain config, one that throws, one with no default export, or one that defines test.projects; a config two or more levels up, or a parent config beside a package config, is not generated, and the order in one directory follows Vitest's configFiles list by inspection; a package with no config lives in a temporary directory, where no parent has a config; a counterexample shrinks through at most six histories, and within half the unit's timeout, so it can be larger than the smallest that fails; in CI's random units it does not shrink (GAP_E2E_SHRINKS=0, the maintainer's decision "Shrink briefly in CI", 2026-11-17), and its history is filed whole; module-level data only as four \`const\` declarations of the main source (an object literal, an array that holds a function, a boolean, and an object of two methods), read in place, with no data imported from another file, destructured, reassigned, or declared as an enum or a default export; the work law only through shortcut witnesses (an early return before a counting loop with a bound twin of ratio 2, and a push beside one that calls String with a bound twin of ratio 1), the early return in tests that reach the clock by each watched path and in tests that wait a turn, a generated test's bound of 1 derived from its plan; probe code is never work (maintainer decision, 2026-11-16), so the model and the capture count no probe-only site, and only a constructed history (a probe branch under a generated test's work bound) reaches a probe branch beside a bound: the fixed seeds' generated histories reach neither that state nor \`killed by a work bound in a generated function\`, which stays measured; work counts are observed only through a bound's ratio and a rise, never as numbers (v21.2 O1), so a counter that skips every site on a probe's line, which drops only the condition sites of an elseIf that run once on both sides, survives (mutant M6, equivalent under these observations), while one that skips every site of a function that holds probe code is killed (M7), and one warm-cache witness whose selection reproduces observations but not work; work is the capture's count of site evaluations per test, so code with no site (a plain assignment, a for...of pass, a builtin's own work) counts nothing and a test's histories are summed, and a test whose work varies between the unmutated runs while its observations agree is not generated. The skip law (law 4: a mutant is judged without a run only where no owner's unmutated run reached its site with a value that the mutant changes) is judged through the kills, crashes, and setup errors of mutants whose value changed, and through the survivors of those whose value did not: for \`?.\` on an \`undefined\` and a \`null\` object (the drawn \`absentObjects\`), on an absent object two or three links deep, and past a link whose object is absent, where JavaScript short-circuits the rest of the chain so a plain read there changes nothing (the drawn \`optionalChains\`), and for a returned value made \`undefined\`, in the constructed history \`a value change at a ?. read and at a return\`; for a \`?.\` whose object is absent only while the module loads (a booted first function), in \`a ?. read of an object absent only at load\`, whose mutant throws as the module loads and is a setup error; and for a comparison swap, a dropped \`!\`, a skipped call, a boolean flip, a forced \`if\`, a loop that never runs, a dropped field, a value-position call, and an arithmetic swap, by the witness module's kills under \`every outcome class\`. A logical operator's swap (\`&&\`, \`||\`, \`??\`) has no killable site in the grammar (its only sites are probe guards and the old probe form), so that its switch infects the site on every reach is fixed by inspection. The switch's extra infection (it infects on every reach, including a \`return-undefined\` of a value that is already \`undefined\`) costs a run and changes no outcome only because its active form computes exactly the mutated expression; the \`?.\` helper's active form throws wherever it infects, so it infects exactly where the link's own object is absent and no earlier link of the chain short-circuited, and the outer links' helpers are told of an earlier link's short-circuit. An optional element read (\`a?.[k]\`) is not generated: it goes through the same capture helper as \`a?.b\`, so under its mutant an absent object throws before the key expression runs, where the plain read \`a[k]\` evaluates the key first; a key with an observed effect or a throw of its own is judged by that order, which differs from the real mutant's, and no history reaches it. An optional call (\`f?.()\`) is no site; where it feeds a later \`?.\` link, it passes its short-circuit on to that link, so the link's mutant is skipped where the call's method is absent, and runs where the call ran; this is judged for a method that returns an object or nothing, absent itself or behind an absent object (the drawn \`call\` and \`returns\` of \`optionalChains\`), and for a plain read of \`v\` after the call. The generated calls take no arguments; the spread that marks a call as run comes before any argument, so a call's arguments run only where it does, as before. The pass-through keeps, per call site, a stack of the open evaluations' records, so a record pairs with its evaluation only where evaluations of the same expression nest and each one ends. Four cases break the pairing, and no history generates any of them: an evaluation of the same expression nested in the receiver, or in the method lookup, that throws and is caught there after its call ran leaves a run record open, so an outer evaluation whose method is absent reads it as run (a false infection, and a false throw under the next link's mutant, P3); one nested in the call's arguments or in the method's body that throws before its call runs leaves a not-run record open, so an outer evaluation whose call ran reads it as skipped (a false skip: the next link's mutant is judged without a run, the class of issue #109, P5); and two async evaluations of the same expression interleaved at an \`await\` close each other's records (a false skip or a false throw). Each is filed for an owner as issue #162. Open Limits, owned by the in-process runner oracle (L1, state \"torn tail at a cut-off read\"; RED: captureLines without the guard): (a) the batch's cut-off read (runBatch's rowsOf after the cut-off) drops a partial last row, and no witness reaches that drop yet, because a copy held half written across the cut-off did not observe its release in the harness; (b) a short fragment on the strict path, which the no-newline mutant does not reach. The strict read after a finished run (a fragment is an internal error) is witnessed by the no-newline mutant. Windows idle gap (recorded, not witnessed): the state \`a hang cut off for idleness\` is required on every platform, and win32 reaches it (run 43683794816, job 132719872988), so it is not platform-scoped. The sampler (capture-setup.mjs) counts a copy idle only after 500 ms with no late tick, no non-quiet handle, utilization at most 5%, and no timer due, so \`every outcome class\` reaches the state only when the sampler sees that window. On win32 the check missed it once (run 43683794816, job 132719872940); the cause is not confirmed (a late tick on a shared runner, or a stdio handle outside \`quiet\` for this file's console output, are the candidates). Its witness, a test-only hold at the hang until the window is seen, is owed, and that is a timing dependency the determinism-under-load rule forbids; the maintainer decides whether it lands before the Windows job becomes blocking. A run killed before it cleans up may leave its own directory: the CLI killed with SIGKILL (\`kill\`, constructed only), the unsupervised abort, and every abort on win32. The constructed history \`a run after a killed CLI\` kills the CLI and its check's group while the witness spins, and the run after it must remove the directory the killed CLI wrote, through the \`host\` file that CLI wrote. Every other stop run that opens a session also finds a killed run's directory that the driver wrote, under a pid that no process can have (above Linux's pid_max and macOS's 99999, and not a multiple of 4 as every win32 pid is). The abort's killed directory is never followed by a run. Whether a run is killed is read from the stop and the platform, not observed, so a win32 supervisor (#79) must narrow it to the unsupervised abort. A run stopped before its first statement can remove nothing, so a killed run followed by such a stop would keep the killed run's directory whatever the CLI does; no history has that order (a stop before the CLI starts is the last run of its history, and the killed runs are not followed by one). On POSIX a supervised run's directory is removed by its supervisor once the child ends, whatever ended it; an unsupervised run removes its own when its process exits, and that path is judged on win32 alone (its hookStops histories), since POSIX's one unsupervised history is stopped at its note, before a session opens. No history makes a removal fail or reuses a pid, so the catch and the live-pid guard of removeSession are not judged; their witnesses are owed (#168). Block per law (2026-11-18) and "A broken owner file judges nothing" (2026-11-19): a failing law is drawn as one test of file a or b, at the start or the end of its file, calling the first generated function not at all, once (and maybe repeating it until the unmutated output), or past the call floor, or as a describe's law whose beforeAll or afterAll throws. A failing law still runs in its file's copies ("An excluded test still runs", 2026-11-23), and a failing law that spins under a mutant is drawn only through its own call repeated until the unmutated output (failingLawSpins) or a call that spins; a failing law that changes state a later test reads is not generated, so a kill by a passing law that reads such state is not judged (review of #176, round 1 F3: a failing fast-check property's shrink state, or an abandoned async body after a per-test timeout, feeding a later passing law's kill, whose replay of that law alone does not reproduce). Its witness needs a drawn field where a failing law writes a module-level value that a later passing law reads; owner: issue #210. A file-level beforeEach or afterEach that throws fails every test, and its report names one failing law per test, not the hook; it is not generated. A describe's failing hook fails only that describe's laws; a hook that fails only under a mutant is not read. Load reach follows the maintainer's decision "Load reach goes to every owner file" (2026-11-23, #186): the model's census counts every test of an owner file that loads the module (#204), the failing owner's passing pair included under per-law blocking, so code run at load in a file with a failing law is judged by that file's passing tests. A file whose tests fail and that also errs outside its tests is left out whole, and is not generated. Platform scopes (R56): 'a run stopped by SIGTERM while a worker spun' is judged on POSIX only, because Node cannot be sent SIGTERM on win32 (C-26, ratified by M-29; the win32 stop is the SIGINT of the test stop file). 'a supervised check with no ps on its PATH' is judged on POSIX only, because ps is a POSIX tool and the win32 watchdog reads liveness with signal 0; the other supervision states, including the supervisor-death witness, are judged on every platform. Law 12's partial report is judged on POSIX only, in the constructed native-crash history: one context and three owned functions of operator mutants before the stop witness's, whose copy crashes in the mutant phase. Not generated: a partial report under several contexts, through the daemon (whose new daemon reruns the check and resets results.jsonl), or of a run with authored mutants (the run appends only operator results as they are judged, so a crash in the authored phase lists every authored mutant as unjudged), and a run whose process dies during the selection checks, before any mutant is judged, whose partial report judges none.`, }, histories: { // A failing history shrinks through at most six smaller ones. Each runs @@ -10671,8 +10885,11 @@ oracleProperty({ // child-process workers; then a SIGHUP the test sends its own // process, a signal that is no native crash. Each run's done line // names its signal, and for a native crash the step its pool calls - // for (crashLine). POSIX only: win32 runs - // neither (posixCrashes). Appended at the end of the list. + // for (crashLine). A crash comes after the baseline, so it leaves a + // partial report: three owned functions before the witness give it + // mutants to judge before the witness's copy crashes. POSIX only: + // win32 runs neither crash (posixCrashes). Appended at the end of the + // list. name: `a native crash under each pool`, // On win32 its abort alone runs, and ends with an exit code. enters: @@ -10681,17 +10898,24 @@ oracleProperty({ : posixCrashes, build: (generated) => ({ ...generated, - functions: [[{ kind: `push`, quote: `'` }]], + functions: [ + [{ kind: `push`, quote: `'` }], + [{ kind: `push`, quote: `'` }], + [{ kind: `push`, quote: `'` }], + ], containers: [], overloads: [], - owners: [`a`], + owners: [`a`, `a`, `a`], library: [], libraryOwners: [], runes: [], wholeFile: `none`, witness: false, stopWitness: true, - tests: [{ ...judging(`a`, `fixed seed`, 1), fn: 0 }], + tests: [0, 1, 2].map((fn) => ({ + ...judging(`a`, `fixed seed`, 1), + fn, + })), authored: null, fault: `none`, stability: `none`, diff --git a/packages/oracles/oracle-gaps/index.mjs b/packages/oracles/oracle-gaps/index.mjs index a40f77ea..e19ed4f6 100755 --- a/packages/oracles/oracle-gaps/index.mjs +++ b/packages/oracles/oracle-gaps/index.mjs @@ -179,7 +179,7 @@ if (process.env.ORACLE_GAPS_TEST_PAUSE_AFTER_STARTED !== undefined) { } const { parseArgs, usage } = await import(`./args.mjs`) -const { endRun, Refusal } = await import(`./ending.mjs`) +const { endRun, partialEnding, Refusal } = await import(`./ending.mjs`) // ending.mjs loads stream.mjs, so this import costs no load of its own. const { escapeControls, streamLine } = await import(`./stream.mjs`) @@ -479,9 +479,16 @@ function superviseRun(out, pkg, pool) { ended?.code ?? 128 + constants.signals[ended?.signal ?? stopped], ) const how = ended?.signal ?? (ended ? `code ${ended.code}` : `no exit`) + const cause = `the run's process exited with ${how}` + // A run whose process died in its mutant phase leaves the mutants it + // judged as a partial report, which its done line names. + const report = + stopped || child === undefined + ? undefined + : partialEnding(out, child.pid, cause) const line = stopped ? `oracle-gaps: done stopped (${stopped})\n` - : `oracle-gaps: done error, the run's process exited with ${how}${remedyOf(how)}\n` + : `oracle-gaps: done error, ${cause}${remedyOf(how)}${report === undefined ? `` : `; partial report ${escapeControls(posix(report))}`}\n` process.stdout.write(line, () => { // The log was opened before the run started (startLog). A log that // cannot take the line does not change the ending: both streams still diff --git a/packages/oracles/oracle-gaps/report.mjs b/packages/oracles/oracle-gaps/report.mjs index 8962ef64..a9daddc1 100644 --- a/packages/oracles/oracle-gaps/report.mjs +++ b/packages/oracles/oracle-gaps/report.mjs @@ -273,12 +273,20 @@ const groupOf = (gap) => ? `authored mutants (${gap.source})` : `fn ${gap.function} (${gap.source})` +/** + * The summary.md of a run's `results`. A `partial` report (ending.mjs) is of + * a run whose process ended before its own ending: it says so under the + * inputs, with what ended it (`cause`), how many of its `all` mutants it + * judged, and the ids of the `unjudged` rest, and its counts are of the + * judged. + */ export function renderReport({ results, run, excluded, baseline = [], config, + partial, }) { const gaps = gapsOf(results) const guards = results.filter((r) => r.probeGuard) @@ -294,6 +302,12 @@ export function renderReport({ ``, `Run ${run.id}. Inputs: ${run.inputs}.`, ``, + ...(partial + ? [ + `**Partial report**: ${partial.cause} after ${results.length} of ${partial.all} mutants were judged. Not judged: ${partial.unjudged.join(`, `)}.`, + ``, + ] + : []), `${results.length} mutants (${results.filter((r) => r.authored).length} authored). ` + `${killed.length} killed by a law on a reproducible route, ` + `${crashed.length} crashed production, ` + diff --git a/packages/oracles/scripts/e2e-shards.mjs b/packages/oracles/scripts/e2e-shards.mjs index ffedc4c3..cdcfc160 100644 --- a/packages/oracles/scripts/e2e-shards.mjs +++ b/packages/oracles/scripts/e2e-shards.mjs @@ -390,6 +390,13 @@ export const shards = { `calibration: a worker thread's crash ends with no step to take`, `calibration: an abort beside child-process workers names the forks pool as its step`, `calibration: a signal that is no native crash names a native crash's step`, + `calibration: a crashed run writes no partial report`, + `calibration: a partial report drops a judged mutant`, + `calibration: a partial report gives a judged mutant another outcome`, + `calibration: a partial report counts a crashed copy's mutant as killed`, + `calibration: a partial report's summary has no partial line`, + `calibration: a crashed run's done line does not name its partial report`, + `calibration: an abort before the baseline writes a partial report`, `determinism: constructed history: a stop with the default output directory`, `determinism: constructed history: a daemon check with the default output directory`, `determinism: constructed history: a daemon check with the default output directory, unsupervised`, diff --git a/packages/oracles/skills/oracles-explore/references/problems.md b/packages/oracles/skills/oracles-explore/references/problems.md index 8d2bffdf..242c30d3 100644 --- a/packages/oracles/skills/oracles-explore/references/problems.md +++ b/packages/oracles/skills/oracles-explore/references/problems.md @@ -80,7 +80,9 @@ V8 `# Fatal error ... Check failed:` block. That is a fault in Node, V8 or a native addon, not in the oracle. Do what the done line says: under the default `--pool threads`, a crash in one worker thread ends the whole run, so run it again with `--pool forks`, where it ends only its worker; or run -it under another Node version. Keep every test and history. +it under another Node version. Keep every test and history. A crash after +the baseline leaves a partial report, which the done line names: its +mutants are judged, and the ones it lists as not judged need the rerun. **TypeScript reports untyped imports (`TS7016` / `TS7006`) on `.js` or `.mjs` production files.** Import through the package's typed entry where one diff --git a/packages/oracles/skills/oracles-setup/SKILL.md b/packages/oracles/skills/oracles-setup/SKILL.md index 89e0aa2d..64ac9ab5 100644 --- a/packages/oracles/skills/oracles-setup/SKILL.md +++ b/packages/oracles/skills/oracles-setup/SKILL.md @@ -498,7 +498,9 @@ failing law), and the report is marked provisional. Then each gap prints as one and a `busy` line while a slow test runs. Exactly one line ends the run: `oracle-gaps: done completed, gaps, report /summary.md` (exit 0), `done refused` (exit 2), `done error, …` (exit 3; a crash or an -out-of-memory run, with the remedy), or `done stopped`. Use it instead of +out-of-memory run, with the remedy, and after a crash in the mutant phase +`; partial report /summary.md`, the mutants judged before it), or +`done stopped`. Use it instead of running Vitest on its own, so that every run gives you the test results and the gaps together.