Skip to content

fix(oracle-gaps): no wall-clock cut decides an outcome - #99

Draft
KyleAMathews wants to merge 102 commits into
mainfrom
fix/gap-cli-deterministic-cuts
Draft

KyleAMathews wants to merge 102 commits into
mainfrom
fix/gap-cli-deterministic-cuts

Conversation

@KyleAMathews

@KyleAMathews KyleAMathews commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Deterministic cuts for the gap CLI. No wall-clock cut decides an outcome.

  • A copy runs until one of these happens:
    • it finishes;
    • it spins past its call budget;
    • it makes no progress;
    • its counted work passes the mutant's work budget;
    • it reaches the backstop.
  • A spin, no progress and the work budget are kills by the built-in laws bounded work and no progress, on the route of the test that ran.
  • A spin or a budget overrun kills only when the counts that decide it cannot depend on time.
  • Only the backstop, a wall-clock cut, is a gap (timeout).
  • Idle is decided by state and by ownership. A timer or an I/O handle or request keeps a copy busy only when the test's own code started it. Runner timers and runner I/O never count.
  • Idle is decided for each copy. No file is exempt.
  • The call budget counts every unmutated test (G6). A test that reads the clock anywhere in its run, after its work too, has a count that could follow the clock: its spin is a gap.
  • An unsupervised stop (every win32 run) ends the run once, even when the stream log cannot take the line.

This round: the merge gate's findings (review of a07e6e9 and 864818b)

Finding Law and authority What changed RED → GREEN → mutant
H1 count-only kills M "Count-only kills", R19a, G6, I15 the call budget counts every unmutated test; a spin kills only when its test is in baseline.work and its row is unclocked two heavy witnesses; mutants "head's base" and "spin row alone" fail
H2 no progress for whole files R50, R51, I15; M-21, M-22 the sampled ioFiles gate and the io flag are deleted short-read witness; mutant "gate restored" fails
M1 Windows 9/10 P10, R10, I7 stopNow ends through the single ending (end) unsupervised lost-log witness; the original stopNow fails
M2 hook-less commits standing rule "Never bypass hooks" recorded under Process; the head is prettier-clean (54c1645) —
M3 runner-RPC wait M-22, I15 recorded in Limits, owner #148 —
M4 work budget's clocked rows M "Count-only kills", G6 witness only (the rule was built) mutant "charge every row" fails
M5 Vite as machinery R51 recorded in Limits (PR body and e2e) —
L1 to L5 L1 spin half fixed by H1, the rest #149; L2 under C5; L3 #149; L4 comments fixed; L5 runner L8 —
Follow-up: the static backstop C ruling, 2026-11-17 the static oracle's per-test backstop is 240 s, a commented wall-clock backstop (not a run budget); cost cut owned by #163 —
Follow-up: #167, an authored copy that spins R50, G6, I15; M "Count-only kills" an authored copy is instrumented with no site active, only to count calls, and gets the file's call budget; its spin kills by count when unclocked constructed an authored mutant whose owner spins; mutant "authored copies uncounted" fails
Follow-up: clocked by state C ruling, 2026-11-17, under M "Count-only kills" and I15 a row is clocked when its test read the clock, made a timer, or its own I/O ran a callback during the test (async_hooks), never by what the 50 ms sampler saw spin-after-async-read witness; mutant "the sampler decides" fails

Rules (v21.2 IDs; register entries in quotes)

  • R49, R50, R3, R23, I4, I15, G6, O13, K1, K15 — M-17 "Deterministic cuts, option A" and M-24 "Spin, no progress and the work budget are kills".
  • R19a, K20, K21 — M "Count-only kills" (2026-11-16).
  • R51 — M-21 "Idle is decided by state only", M-22 "Idle counts only the test's I/O", and C-41 "Idle timers by ownership too".
  • R4, P4 — M "Randomness wins" (2026-11-16) and M "Main's determinism failures".
  • G43 — C "Test-only hooks".
  • The determinism comparison — C "Progress lines in determinism" and the C entry under P10 and P11.
  • C-38 (5) — the backstop band, the one declared wall-clock exception (K21).
  • P3, P5, P7, P9, P10, P12.

Changes

Idle (capture-setup.mjs)

  • An async_hooks init hook records which code started each timer, handle and request. A resource is the test's in either case:
    • the test's or production's code is on the stack when Node creates it;
    • the resource that triggered it is the test's.
  • Node triggers a write by the stream it writes to. So the runner's write on its own channel (Vitest forwarding output) stays the runner's, even when the test's console.log caused it.
  • The sampler keeps a copy busy only in these cases:
    • one of the test's timers is due inside the horizon;
    • one of the test's handles or requests is active.
  • Deleted:
    • the name list (quiet);
    • the listed-timer count and its beforeEach base;
    • the per-worker map of wrapped timers;
    • the setImmediate wrapper.
  • Vite's module runner is now machinery (found by the runner-timer witness). It evaluates the setup file, so the sampler's own interval had read as the test's.
  • The per-file I/O set (ioFiles) and the row's io flag are deleted (merge gate H2). The set came from a 50 ms sampler, so whether a file's copies were checked for idleness followed timing. Now every copy, operator or authored, gets idle detection, and the test's own I/O keeps it busy while it is open (R50, R51).

Kills (classify.mjs, check.mjs)

  • A spin row and an idle row name the test that was running, its route, and whether its count could have followed the clock by then.
  • A copy cut by its call count or by no progress fails the built-in law on that route.
  • The copy whose counted work passes the work budget fails bounded work on the routes of its counted tests.
  • On a reproducible route the mutant is killed, and its later copies do not run. On another route the result is random-only or unregistered.
  • An authored mutant's owner files now get the same idle detection (R50 names no exception). Before, an authored hang ran to the backstop. An authored copy counts no calls, so it never spins.
  • The call budget is a hundred times the most calls that any unmutated test of the file made in either run, and at least CALL_FLOOR, as on main and in the model (G6). The work budget uses the same count. Before this round, both left out clocked and nondeterministic tests, so a clocked heavy test's copies were cut at CALL_FLOOR (merge gate H1).
  • A spin kills only when its test is in baseline.work (its unmutated runs agreed, read no clock, and made equal counts) and the copy had read no clock when it spun (countOnly, in the check). Otherwise the spin names no test and stays a gap: timeout, cause spin. This covers a test that reads the clock only after its work, and a nondeterministic test's spin.
  • cutVerdicts names the key and the clock state of the cut row, and decides nothing.
  • The budget charges only rows that are deterministic in the unmutated runs and not clocked in the mutant's run.
  • Only the backstop gives (cause: backstop).

The unsupervised stop (index.mjs, merge gate M1)

  • Windows 9/10 at 864818b failed a stream log lost after its note, then stopped with 2 done lines on each stream. A Windows-only scratch workflow printed the streams (run 44114696928, 3 of 3): done stopped (SIGINT), then the refusal the stream log … cannot be written (EISDIR) and done refused.
  • Cause: stopNow wrote its stopped line through writeStream. The append to the log, which is now a directory, threw a refusal out of the stop handler, and uncaughtException ended the run a second time through endWith. The previous guess (closeWithin in the stop path) was wrong.
  • Fix: the stop goes through the same single ending as a refusal or an error (end). Once an ending has begun, nothing ends the run again (R10, I7), and a log that cannot take the line is skipped, as for any ending.
  • The code is main's (feat(oracle-gaps): write the stream to <out>/stream.log and name it in the first line #57). On POSIX the supervisor writes the stop, so only the unsupervised path has the defect. A constructed history reaches that path on POSIX.

Determinism

readGapLine (#115)

  • It reads (cause: <cause>) and judges it equal to detail.
  • New calibration: a stdout gap line names another cause. It is bound to the history a clocked copy that spins, because a timeout line is now rare in generated histories.

Draws (M "Randomness wins")

  • Now drawn: hangMs, slowMs, loops, timerWait and pulse. Each set includes the values that the constructed histories use, so a constructed history takes back as a drawn one.
  • pendingIo switches test-only hooks, so it stays a constant (the hook exception).
  • The draws shift every later field, so the fingerprint lists are recorded anew.
  • A test that loops declares no work bound, because the model judges no work in a generated test.
  • The classify oracle draws two new effect kinds: a run cut by its call count, and a run cut by no progress.

Draws added in this round

  • heavy (merge gate H1): each of the history's own tests calls its function 10,000 more times before each campaign's call, in every run. It is drawn for 1 history in 16 (M "Randomness wins").
  • It is appended last at the top level (C-6), so every earlier field keeps its draws. Only its own line is added to the fingerprint lists.
  • resolve gives it only to the history's own tests, never to the witness module's, a test.prop or the shared-state witness. A constructed history whose work budget decides its state sets it to 0.
  • New constructed-only values: timed: 'after' (the clock read after the test's work) and pendingIo: 'short' (a pipe read held for two sampler samples, before production, in every run; it switches the SAMPLES hook, so it stays constructed). The pipe-read hold takes its sample count as an argument.

An authored copy counts calls (check.mjs, #167)

Clocked by state (capture-setup.mjs, follow-up ruling)

  • The async_hooks hook marks each I/O handle and request (not a timer). When one of the test's own runs its callback during the test (a read completed, data arrived), the row is clocked (ioDone). sawIo is deleted; the sampler still decides idle.
  • A sync read makes no resource, so it leaves the row unclocked.
  • The model follows: timed: 'read' (a constructed clock path: a short async read before production) is clocked, and a verdict test of file b whose data read is async (promise or callback) is clocked where its output differs. A clocked row judges no work.

Merges

Windows shard 7: the diagnosis

The failing history is a declaration fault: brokenOwner. It has a native addon, so it runs in the forks pool. The diagnostic was run 43781834633, job 133020579174, on scratch/dc-win-idle-log at 37b6359.

  • The copies the backstop cut (.oracle-gaps-*-a.test.ts) listed a SimpleWriteWrap, 4 × PipeWrap and 2 × Timeout. They showed io: true, base 1 and no timer due.
  • Other copies listed io: false, 4 × PipeWrap and 2 × Timeout or Immediate. They showed base 1, with timers due at 0 or −1 ms.
  • The unmutated tests/a.test.ts also had a sample with a SimpleWriteWrap and io: true. That put file a in the set of I/O files, so no copy of file a was checked for idleness. (This round deletes that set.) Every hang of file a then ran to the backstop. In shard 2 this also hit M163 and M165 (w_hangkill).
  • A SimpleWriteWrap is a pending stream write. On POSIX a small pipe write completes at once.
  • The IPC write that Vitest's worker makes is triggered by the channel's own pipe handle. That was measured on POSIX with a 4 MB write. So under the ownership rule, the write is the runner's.
  • The diagnostic printed only the first 12 samples, one per copy, so it does not show a hanging copy's samples through the window. The fix was then checked on Windows directly.

Evidence

Law

  • No wall-clock cut decides an outcome (R49, I15).
  • A spin past the call budget, no progress, and counted work past the work budget are built-in law kills on the owner's route (R50, R3, R23, I4, G6).
  • A count kills only when it does not depend on time (R19a, K20).
  • A copy is idle when no timer and no I/O handle or request that the test started can let it progress inside its horizon (R51). This is decided for each copy (R50).
  • Once a run's ending has begun, nothing ends it again: one done line on each stream (P10, R10, I7).

Reach

Constructed histories, each with a fixed-seed, a random-seed and a determinism unit. All reach their states on macOS and on the pool.

History Reaches How the state is held
a copy waiting on a pipe it opened a copy waiting on I/O it opened killed the test's own pipe read is the only active I/O, released after 20 sampler samples (a count)
a copy beside the runner's pending write … cut as no progress the runner holds a 4 MiB pipe write pending; marker required
a copy beside the runner's pending timer … cut as no progress a ref'd test timer past the horizon beside a 100 ms runner interval; marker required
a clocked copy that spins a spin whose count could follow the clock timed out —
an authored mutant whose owner hangs an authored mutant killed by no progress —
a heavy test that reads the clock after its work a spin of a test that reads the clock after its work timed out heavy, the until loop, timed: 'after', no judging
a heavy test that reads the clock first a heavy clocked test's copy past the call floor killed by its law heavy, the until loop, timed: 'clock'
a hang in a file whose test does a short read a hang in a file whose test did a short read killed by no progress the test's own pipe read, held for 2 sampler samples (a count)
a clocked owner beside a counted one under the work budget a clocked owner's work left out of the work budget two owners with 30,000 extra calls each, the first one clocked
a stream log lost after its note, then stopped, unsupervised an unsupervised run stopped after its stream log was lost the note pause and the test stop file, with ORACLE_GAPS_TEST_UNSUPERVISED
  • The classify oracle adds killed by bounded work, killed by no progress, a random-only kill by a built-in law and a spin whose count could follow the clock timed out.

Reach lost and gained at the fixed seed

Fixed-seed units, fec5d43 against d046d1b:

  • e2e oracle (66 units, then 69):
  • Classify oracle:
    • Lost: the measured authored agreement-only-kill and authored unregistered-kill, not required.
    • Gained: the four states above.

Reach lost and gained at the fixed seed, this round

Fixed-seed units on the pool, b48a33c (before this round's oracle changes) against 497c58e:

  • 90 units, then 94. No state that any unit reached at b48a33c is lost.
  • Gained: the 4 new states of the new histories. The unsupervised lost-log state was already at b48a33c.
  • The generated unit lost 3 states and gained 68, because the appended constructed histories reweight the campaign (K18): a start refuses a stale claim, an authored mutant killed by no progress and refused nonLiteral. Each is still reached by its own constructed history.

Reach lost and gained across #122 and #164

Fixed-seed units on the pool, 7176ab6 against cb1de4f (109 units, from 107: #164's two new histories):

RED

  • Idle ownership (91c15ca): a copy waiting on a pipe it opened cut as no progress, owed killed. a copy beside the runner's pending write: cut by backstop, owed no progress.
  • Timers (66e4ddd): a copy beside the runner's pending timer: cut by backstop, owed no progress.
  • Kills (6d35fed): on the pool, every outcome class, brokenOwner, the work budget, the runner write and the runner timer give timeout, owed killed. The classify oracle's three new histories give timeout.
  • Count-only (27b3e43): a clocked copy that spins: delete-call#0: killed, owed timeout. The classify clocked spin: a bounded-work kill, owed timeout (spin).
  • Authored hang (bafc072): the authored mutant a1 is timeout, owed killed. It was found as random seed −313313556, a declaration fault: apiLessTypescript, path 0:1:1:1.
  • readGapLine (merge with test(oracle-gaps): judge stdout gap lines against results.json, by id #115): does not read as a kind, a line, an id, and a change.
  • random seed: an edit sequence through the daemon: authored mutant a2 runs to its backstop (timeout, owed killed), seed 964713679 on #99 #167, 3285507: an authored mutant whose owner spins: the authored mutant a1 is timeout, owed killed (macOS, 67 s).
  • Clocked by state, 00d65ea: a spin after a short async read: delete-call#0: killed, owed timeout, 3 of 3 runs (the sampler missed the read; a run whose sample lands on it gives the gap, so the outcome followed timing).
  • This round, each on its oracle-only commit (macOS):
    • H1, 1f6c977 on 864818b's production: a heavy test that reads the clock after its work: binary-swap#0: killed, owed not-judged. a heavy test that reads the clock first: binary-swap#0: timeout, owed killed.
    • H2, the same commit: a hang in a file whose test does a short read: if-false#0: timeout, owed killed (the backstop, after 54 s).
    • M1, c651a6a: a stream log lost after its note, then stopped, unsupervised: the lost log's run printed 2 done lines on stdout and 2 on stderr. This matches Windows 9/10 at 864818b and the scratch run's streams.
    • M4: the witness passes on the head's production, because the rule was already built. Its RED is its mutant (below).

GREEN (pool), this round

  • At 497c58e: e2e fixed-seed shards 1, 2 and 3 exit 0 (11, 8 and 75 passed; 317 s, 219 s and 331 s). The random-seed and determinism units of the 5 new histories pass (10 of 10).
  • At 2ca23c6: static shards 1 and 2 (16 and 153 passed), classify, probe-form, mutant-validity and path-spelling (33,736 passed), units (116 passed), eslint and prettier: all exit 0.
  • macOS: units 116 passed; the fingerprint canary passes; pr-shards check (5 partitions) and e2e-shards check (5 shards).
  • Windows: the scratch workflow with the fix passes the lost-log units 3 of 3 (run 44116272205).

GREEN (pool), earlier rounds

Mutants

Each one fails the oracle.

Mutant Where it was run Result
I/O: count every request (the old name rule) macOS fails the pipe witness and the runner-write witness
I/O: count every active resource macOS fails the runner-write witness
I/O: count no I/O macOS fails the pipe witness
Timers: count every listed Timeout macOS fails the runner-timer witness
Timers: ignore owner macOS fails the runner-write and runner-timer witnesses
Timers: ignore the due time macOS fails the runner-write and runner-timer witnesses
Timers: drop the timer check (mutants 2 and 2b collapse into it) macOS fails both timer witnesses
Spin, no progress and the work budget reported as timeouts pool, 111c7c0 fails 8 classify units and 5 e2e units
A spin kills by count whatever the clock pool, 8dbe646 fails a clocked copy that spins
An authored copy without idle detection (bafc072, the RED) macOS fails an authored mutant whose owner hangs
H1: the call budget from baseline.work only (the head's base), scratch/fix99c-mut-base 294f3e39 macOS fails both heavy witnesses: binary-swap#0: timeout, owed not-judged and timeout, owed killed
H1: the spin row's clock state alone decides (the head's rule), scratch/fix99c-mut-spinrow fc9fab96 macOS fails a heavy test that reads the clock after its work: delete-call#0: killed, owed timeout
H2: the sampled per-file I/O gate restored, scratch/fix99c-mut-iogate 226df0f5 macOS fails a hang in a file whose test does a short read: if-false#0: timeout, owed killed
M4: the work budget charges every row, scratch/fix99c-mut-chargeall b5193d05 macOS fails a clocked owner beside a counted one under the work budget: if-false#0: killed, owed not-judged
#167: authored copies uncounted again (no instrumentation, no call budget), scratch/fix99c-mut-authored-uncounted de20ba4b pool fails an authored mutant whose owner spins: the authored mutant a1 is timeout, owed killed
Clocked by state: the sampler decides (no completion record), scratch/fix99c-mut-sampled 5eb351dd macOS fails a spin after a short async read: delete-call#0: killed, owed timeout (2 of 2)
M1: the original stopNow (c651a6a, the RED) macOS fails the unsupervised lost-log history
M1: a stopNow that only swallows the log's error, with no single ending macOS survives (2 of 2): no history makes the check end the run after the stop's line and before its streams flush (Limits)

Weight

Minified, with gzip −9 bytes in parentheses. "d1ff18b" is this PR's head before this work.

File main fac63df d1ff18b head
capture-setup.mjs 15,281 (6,233) 15,135 (6,170) 16,349 (6,631)
check.mjs 37,208 (14,824) 35,569 (14,225) 38,124 (15,157)
classify.mjs 6,781 (2,773) 6,780 (2,785) 7,049 (2,882)

This round, esbuild 0.28.2 minify, with gzip −9 bytes in parentheses:

File main 5523123 864818b head Δ this round of which #126's merge
capture-setup.mjs 15,318 (6,240) 16,386 (6,639) 16,370 (6,628) −16 (−11) 0
check.mjs 37,384 (14,878) 38,261 (15,206) 38,362 (15,246) +101 (+40) +57 (+30)
classify.mjs 6,824 (2,724) 7,092 (2,829) 7,092 (2,829) 0 0
index.mjs 7,220 (2,920) 7,220 (2,920) 7,249 (2,940) +29 (+20) 0
  • H1 and H2 together: check.mjs +44 (+10) and capture-setup.mjs −16 (−11). Deleting ioFiles and the io row flag pays for countOnly and main's two-run budget loop.
  • M1: index.mjs +29 (+20). stopNow now shares end with endWith, in place of its own three writes. A guard copied into stopNow would remove the shared path and add about the same bytes.
  • Most of the capture-setup.mjs growth is the three test-only hooks (about 1,000 bytes).
  • The ownership rule is about +100 bytes net, after the deletions.
  • This is all test-time code; nothing reaches a user's bundle.

Async hooks cost

  • A Vitest benchmark in forks: chained setImmediate +4–40%, nextTick +30 ms per 100,000, fs.stat +13–76 ms per 5,000. Synchronous code is unchanged.
  • The hook evaluates no instrumented site. The work-law witnesses pass unchanged.

Limits

Process

  • Commit a9df3f4 was made with -c core.hooksPath=.husky by mistake, which is a hook bypass, so its pre-commit hook did not run. Its one file, packages/oracles/oracle-gaps/gap-report-oracle.property.test.mjs, passes eslint and prettier unchanged. It was pushed, so it is not amended.
  • The merge commit 9aa6ab4 has no Co-authored-by trailer.
  • Commits 9412eac ("RED for the work budget …") and b71be91 ("size the work witness's loops …") reached the branch without the pre-commit hook (merge gate M2).
    • In both, gap-report-model-oracle.mjs keeps a wrapped runs.filter(…) that prettier --write joins onto one line. The hook's lint-staged step runs prettier, so a commit made through it is always prettier-clean.
    • Their author date equals their committer date, so they are not cherry-picks.
    • They were pushed, so they are not amended. The normal follow-up commit 54c1645 already brought the file to its formatted state. This round checked the head: prettier --check passes on packages/oracles/oracle-gaps, scripts and tests.
  • The Windows diagnostic of this round ran on the scratch branch scratch/fix99c-win-lostlog, with a workflow of its own (046d013, then 4567e73 with the fix). It is not part of this PR.

Test plan

This pull request and its description were written by Isaac.

Round: issue #182 (random seed counterexample, seed 2027172067)

Fixes #182

  • Law: a mutant's owner copies run in sorted owner order, and the first kill decides (register 2026-11-14, "Deterministic cuts, outcome rule"; model G44, O13).
  • Cause: the model's judge() took owner files in first-appearance order of the history's test list, so a later owner's test listed first ran first. Production sorts by path. The model is the wrong side (44c0dbd7).
  • Reach: the new constructed history a later owner's test listed first beside an earlier owner's hang enters a copy cut as no progress before a later owner's spin (1 per unit, all three units). Generated reach, corrected: the earlier 0 came from a detector that required the first listed test to be file b. Fixed in fb09ef0 (the state now reads spinData, fsRead and the CLI result). Local seed 2027172067 reports 1. CI run 44594450749 (4c29fa8), the generated units, reports 0 in 3 of 3 reach lines (fixed seed 20261105 in two jobs, random seed in one). So the generator reaches the state for that seed, but the CI draws did not.
  • RED: 11d5aa3d. Fixed seed 20261105 fails with w_hangkill:202:if-false#0: killed by no progress, owed bounded work.
  • GREEN: 44c0dbd7. Constructed unit passes (57 s, GAP_E2E_SHRINKS=0); seed 2027172067 passes (49 s); fast gap oracles 33,911 tests pass (413 s, 2 workers); fingerprint canary passes.
  • Mutant: reverse owner order in production targetsOf is rejected: killed by bounded work, owed no progress. The first-appearance order mutant survives, because production's reachedBy already lists a first. Not a kill; recorded as a limit.
  • Limits: full e2e (377 tests) not run locally. constructed-order.json is a stale prefix (90 of 109 recorded): constructed-order.json is a stale prefix: 19 constructed histories are unrecorded #183. Windows fixed-seed 2/10 and 5/10 fail on main as well (see CI notes).

CI follow-up (run 44588135077 at 44c0dbd; fix in 97ddc05)

CI follow-up 2 (merge head 86afd01; merges origin/main 7b6bae1)

CI follow-up 3 (head 6bacce3)

  • Windows fixed seed 2/10 passed on 86afd01 (CI run 45196802964). Main fails this job (runs 44454518665, 44435834785, 44273474096). Evidence for P12: Windows e2e shard 2/10 (every outcome class alone) takes 10 min #118 (Windows 2/10): fix(oracle-gaps): no wall-clock cut decides an outcome #99 changes the outcome on this job. Windows fixed seed 5/10 still fails on that run, as on main.
  • Determinism 7/7 (655 s in run 45196802964, the one job over 10 minutes) rebalanced in 6bacce3: the constructed unit a later owner's test listed first beside an earlier owner's hang (166.6 s) moves from the rest shard to determinism 1/7 (318 s of units). Estimated: 7/7 about 8 min, 1/7 about 9 min. Both shard checks pass. Re-measured on CI at the head.

K21 (backstop): ruling, status, and the seed -606020990 correction

  • Ruling: register 2026-11-23, M "Backstops are fine, set high" (settles K21). The one wall-clock backstop stays and its cut is a gap. It must sit above the slowest legal copy on CI's slowest runner. The oracle accepts no band: a backstop cut in a generated or constructed history is a defect.
  • Correction (B8): cf0bd376's message says production "cuts it at the e2e backstop (20 s)". That was wrong. The replay shows a count spin (cause: spin) after about 3.5 s of unit time, because the flaky owner's 30,000 loop calls count toward the copy's call budget. The commit cannot be amended (published). This body supersedes its diagnosis.
  • Side and fix: the model. A flaky test's runs count calls and judge nothing (commit 5335adf7); a flaky run never sets rose (commit e7ebdc0b, B6); a spin on a flaky run is a gap, since its count could not be told from the clock (production countOnly).
  • Authority (B7): M "Count-only kills" (2026-11-16), M 2026-11-13 (flaky tests read the clock by design), and M "An excluded test still runs" (register 2026-11-23, ratified). F1 (feat(oracle-gaps): block per law: a failing law judges nothing, and its file's passing laws still judge #176) is a reviewer finding and is not cited as authority.
  • Evidence: constructed RED cf0bd376 (timeout, owed unregistered-kill). Hostile mutant (pre-F1 model, restored from HEAD): same Difference. GREEN 5335adf7: the constructed unit, seed -606020990 and seed 2027172067 pass.
  • Status (B2, head a2400c5): derived, applied and tied, with the model rule removed and the daemon storage fixed. See "Round: B2 and B3" below. The daemon witness and B3 (CI time) remain open there.

Coverage and limits (N1, N2)

Round: review gate 4 (head 5335adf), status

Round: B2 and B3 (K21 backstop, CI time), head a2400c5

Law. No wall-clock cut decides an outcome; a backstop cut is a gap, and no legal history ends at it (M 2026-11-23, "Backstops are fine, set high"; I15, R49). The daemon never stores a unit cut by the wall clock (I8, I12).

Measured per-call cost (CI, temporary diagnostic job, run 45219880267, removed in a2400c53). Inside real gap-CLI copies, 100,000 counted calls per repetition:

Runner One counted switch call One site in real instrumented code Sites per clamp call
Windows (windows-latest) 9.9 to 60.9 ns 13.7 to 62.9 ns 2.5
Linux (ubuntu-latest) 10.1 to 56.4 ns 14.3 to 48.8 ns 2.5

Derivation (documented at check.mjs limitFor). Per-site allowance 63 ns (worst, Windows) × margin 3 = SITE_BACKSTOP_MS 0.0002 ms, applied to the call budget above CALL_FLOOR. CALL_FLOOR × 63 ns × 3 is 19 ms, so the base is the whole backstop for a small file. Base 60 s is the fixed allowance for a copy's start and non-site waits (three times the longest legal wait the suite draws, 16 s, rounded up). Each file's unmutated seconds add three, as before. The e2e driver's base (FULL_LIMIT_MS) and the production default (args.mjs BACKSTOP_BASE_MS) are both 60 s. Vitest's per-test limit is BACKSTOP_BASE_MS + 5 s (65 s, as before).

Why not the brief's bare formula. The call budget is 100 times the file's most calls, so a floor-only term does not cover a legal copy above CALL_FLOOR. The per-site term above covers it at the measured cost.

Model and daemon.

  • The model rule that predicted a no-progress cut for a finite slow copy (a wait past the backstop plus 6 s) is removed (commit 1f6b6348).
  • A unit cut by the wall clock is no longer stored in the daemon's store (check.mjs remember). The retention hook still sees every stored unit. Spin and no-progress cuts are still stored, so R55 (a)'s "a timed-out run reused after an edit" (a spin reuse) holds.

RED and GREEN (constructed history, appended last, C-6). "a slow kill after a 22 s wait, past the old backstop": a copy waits 22 s and terminates under its call budget.

  • RED on head f893c81c with the old 20 s base and the new model: fixed seed FAILS, "src/sut.ts:f0:31:if-false#0: killed by no progress, owed a behavioral law". The old backstop is the hostile mutant: it fails this history.
  • GREEN on 292ea221 (60 s base): fixed seed, random seed and determinism pass.

Limits (open).

  • No oracle witness yet for the daemon storage change: no law compares a daemon's reuse counts with the model. The witness module's 12 tests pass with it.
  • A legal copy whose call budget exceeds CALL_FLOOR by more than the per-site allowance can exceed the backstop when real test code costs more per site than the cheapest measured code. Recorded for the maintainer (heavy files, budget 100 times the most calls).
  • Vitest's per-test limit is the base plus 5 s and does not include the budget term. An async copy awaiting past 65 s is cut as "Test timed out" first.

B3: CI time per job (run 45219880267, head 292ea221; the final head a2400c53 differs only in removing the diagnostic job). Limit 10 min; target about 9 min.

Job Time Status
Gap report end-to-end oracle (determinism, 1/7) 707 s over 10 min (was 478 s at 20 s base)
Gap report end-to-end oracle (determinism, 7/7) 695 s over 9 min (was 571 s)
Gap report end-to-end oracle (fixed seed, 4/4) 783 s over 10 min
Gap report end-to-end oracle (random seed, 4/4) 661 s over 10 min (was 441 s)
Gap report end-to-end oracle (determinism, 2/7) 564 s over 9 min
Gap report end-to-end oracle (random seed, 1/4) 540 s over 9 min
Other Linux and Windows jobs 33 s to 495 s within limit

The 60 s base adds time to never-finishing copies. The #182 backstop history (determinism 1/7, 339 s) and the witness-module histories are the heaviest. Giving the hang witnesses a 2 s base cuts time but changes outcomes: the w_iowait copy's legal I/O wait is longer than 2 s and is then cut where it should be killed (checked locally, reverted). Rebalancing the shards does not reach 9 min without cutting that cost. B3 is not met. This is reported to the maintainer as a cost of the higher backstop, as the brief requires.

Shard partition. Both e2e-shards.mjs check and pr-shards.mjs check pass at head.

Windows shard 5/10. It fails on every outcome class, the abort stop (SIGABRT). It failed on earlier runs before this change (45206108417, 45209800215, 45212505691, 45213410720), so it is the Windows 5/10 failure that the register attributes to main (#201), not the backstop.

This pull request and its description were written by Isaac.

KyleAMathews and others added 8 commits November 14, 2026 16:37
…s not wait

Determinism under load (2026-11-13): a run's outcome must not depend on
how long a run took. A constructed history, "a slow owner's kill and
another owner's kill", has one mutant that file a's random-route test
and file b's fixed-seed test both kill. Its driver also runs the slow
twin: the same package, where a's test waits 3 s past its first budget
wherever the output differs and then judges as before. The law compares
the two reports, `randomAlso` included.

On main, a's slow copy is cut at its first budget and queued for a
confirmation, b's kill decides the mutant first, and a's random failure
is never recorded: the twin reports `randomAlso: false` where the package
reports `true`. `slowTwin` is constructed-only (no generated history
draws it; `histories` takes it back without it).

Co-authored-by: Isaac <no-reply@databricks.com>
…t, and a timer under load

Deterministic cuts, option A (register M, 2026-11-14): no wall-clock cut
decides an outcome, so a mutant's copies are judged by count, not by time.
Three laws are added to the end-to-end oracle, each RED on the parent
commit before any production change.

- The budget witness w_slowpair becomes a work-budget witness: its two
  owners' tests call the function PAIR_LOOPS times where their output
  differs. Each copy stays inside its call budget, the two together pass
  the mutant's work budget (WORK_FLOOR), so the mutant is a timeout by
  count, whatever the clock says. The model judges the budget in owner
  order, a kill before the budget runs out still deciding.
- A slow kill whose test waits 16 s, past Vitest's 15 s per-test limit, is
  killed: no limit that the CLI leaves to Vitest decides the outcome.
- A copy whose test starts a timer, spins under load, then waits for the
  timer, is killed and never cut as idle (the idle law is state, not time).

Constructed-only test fields (slowMs, loops, busy) are held by the drawn
test record at neutral constants and taken back to them by the histories'
map, so no generated history draws them (generator rule, 2026-11-14). The
constructed histories are appended at the end of the list, and the slow
owner's history moved there from the middle of it.

Co-authored-by: Isaac <no-reply@databricks.com>
…he work budget

The first RED (9412eac) lets each copy of w_slowpair make 37,500 calls
beyond its first. At three site evaluations a call that is 112,500 per copy,
past the 100,000 call budget, so main cuts each copy by count and the mutant
is a timeout on either side; the work law is not reached. At 30,000 calls a
copy makes 60,000 to 90,000 site evaluations, inside its budget, and the two
copies together pass the work budget, so main must report survived.

Co-authored-by: Isaac <no-reply@databricks.com>
…-clock budget

Register M entry "Deterministic cuts, option A" (2026-11-14): no wall-clock
cut decides an outcome; a mutant's budget is a work count, and the wall-clock
budget is only a backstop that reports a gap. The model's wall-clock clause
(two budgets: a slow owner file's confirmations past --mutant-limit predict a
timeout) is removed as the repair the M entry requires. This is not a model
change to match production: the clause's authority is the retired confirmation
path, and the M entry retires it.

Consequence, a RED on main: the constructed history "a slow kill past Vitest's
15 s limit" (a 16 s wait where its output differs) now predicts `killed`, and
main reports `timeout` for it, because main's confirmation is cut by the
mutant budget at 15 s (diagnostic on a scratch branch: the copy's outcome is
"run time limit", not Vitest's "Test timed out").

Also: a test that awaits its busy witness is async (the emitter marks it so),
so the baseline loads.

Co-authored-by: Isaac <no-reply@databricks.com>
…states are listed apart

Register M entry "Deterministic cuts, option A" (2026-11-14), with the
coordinator's ruling 3 (fallback): a test that Vitest's own limit ends
("Test timed out") is reported as a backstop gap, like a timed-out run. It
is `timeout` after any kill, and it never keeps a kill from deciding. The
previous rule read a Vitest timeout only when every failing test had one,
so a timed-out test beside a verdict-less failure was `crashed`, and a
timed-out test beside an unregistered kill was not a timeout at all. The
`every` branch and the `!timeout` filter are now redundant and removed.

Law: a run's outcome does not depend on how long a test took (determinism
under load); a clock limit may only report a gap.
RED: the classify oracle on the parent classify.mjs (HEAD before this commit,
built from the same fixtures) fails with "mutant m0: unregistered-kill, owed
timeout", and the parent's crashed/timeout split fails the same law.
Mutant: timeout checked before the kills (scratch copy): the classify oracle
fails, "mutant m0: timeout, owed killed"; the mutant is rejected.
GREEN: the classify oracle passes (276 tests). The model counts a timeout
message only in a file that loaded, as production does (a file that fails to
load gives no tests).

The e2e oracle's states "a slow owner's kill reported as when it did not
wait", "a slow kill past fifteen seconds killed" and "a copy waiting on a
timer under load killed" are listed as separate: they have their own
histories, so "every outcome class" must not enter them.

Co-authored-by: Isaac <no-reply@databricks.com>
Register M entry "Deterministic cuts, option A" (2026-11-14). A copy runs
until it finishes, goes idle, or spins; the only wall-clock limit is a
backstop that reports a gap and never decides a kill.

- No first budget and no confirmation: a copy runs once, to its end, under
  the backstop limit (hang-limit plus three seconds per second of the file's
  unmutated time). The cut marking and the confirming run are removed.
- G1 becomes a work budget: a mutant's copies, summed in their owner files'
  report order, may do at most max(WORK_FLOOR, 10 x the owners' unmutated
  calls) site evaluations (WORK_FLOOR = CALL_FLOOR, 100,000). Past it, the
  copy that crosses and every later copy is a timeout, so a kill among them
  does not count. This is deterministic because the work is a count; the
  owner order is the report's, not the completion order.
- The wall-clock mutant budget (--mutant-limit) is a backstop checked after
  all copies: no kill and elapsed over budget is a timeout; it never decides a
  kill.
- Defaults (coordinator rulings, 2026-11-14): --hang-limit 60 s, --mutant-limit
  180 s, --test-timeout 65 s (hang-limit plus 5 s). Cost to state: an unmutated
  hang that no CLI limit cuts now fails after 65 s, not 15 s; under option A an
  idle hang is cut by `no progress` in about 500 ms, so only a busy hang with no
  instrumented site waits for the backstop.
- --first-limit is validated and retired: it prints a note and changes nothing.
- A test that Vitest's own limit ends is a backstop gap (classify.mjs; its
  RED and mutant are in the prior commit, 4b063c8).

Correction to 4b063c8's message: that message said the parent's crashed/timeout
split fails the classify oracle. I did not run that case. The verified RED is
the one in 4b063c8's body: the parent gives "unregistered-kill" where the model
owes "timeout".

Co-authored-by: Isaac <no-reply@databricks.com>
… in the test

The counter-witness (register, 2026-11-13 "Determinism under load"; the
2026-11-14 entry "Deterministic cuts, option A") was a copy whose test spun
for 600 ms and then waited 2 s on a timer. Its spin kept event-loop
utilization above 5%, which alone keeps a copy from looking idle, so the
timer check never mattered: mutant 2 (elapsed-only idle, the timer checks
disabled) passed the witness. The witness now waits on one timer due 3 s
out, inside the horizon, with nothing else in the test. A copy with its
timer pending is never idle; only that check stands between it and an idle
cut. A loaded variant, if wanted, is a CPU hog outside the worker.

The state is "a copy waiting on a timer killed"; the constructed field is
timerWait (a constructed-only test field, taken back to null; no generated
test draws it).

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>

# Conflicts:
#	packages/oracles/oracle-gaps/gap-report-model-oracle.mjs
#	packages/oracles/oracle-gaps/gap-report-oracle.property.test.mjs
#	packages/oracles/scripts/pr-shards.mjs
@changeset-bot

changeset-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 767a3ab

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 1 package
Name Type
@tanstack/oracles Minor

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

KyleAMathews and others added 18 commits November 14, 2026 23:08
… copies

Register C entry "Deterministic cuts, outcome rule (under M option A)",
2026-11-14: a copy cut by a clock or by its call count ends the mutant's
copies; no later copy runs. The model now predicts that: a copy that spins
(a count) stops the owner files after it, so a later owner's kill does not
count and the outcome is a timeout.

Witness: a constructed history whose one function spins in the mutant (the
until loop of w_spin) with two owners, a and b. Owner a's copy spins first;
owner b's judging test would kill. Production (main at this commit) runs
b's copy after a's spin and reports killed. The model owes timeout.

RED: on this commit, the new witness fails (the CLI reports killed where the
model owes timeout; pool run dc-rule-red-*).
Limits: the model's rule covers copies cut by a count; a wall-clock cut
(the backstop and Vitest's limit) is a backstop gap under the same rule, and
its own witness is pending (finding 4, the H1 witness).

Co-authored-by: Isaac <no-reply@databricks.com>
…ant, uncharged

Register C entry "Deterministic cuts, outcome rule (under M option A)",
2026-11-14: only counts and states decide a mutant's outcome.

- A copy cut by a clock or by its call count (its own timeout, or Vitest's
  "Test timed out") is never charged, and it ends the mutant's copies: no
  later copy runs, and a kill among later copies does not count (review B2).
- A copy's work is the calls of its deterministic, unclocked tests
  (`baseline.work`, classify.mjs), and the owner files' most-working tests
  set the budget and the call budget (review B3).
- The mutant-level elapsed-seconds backstop is removed: it summed cached
  units' stored seconds, so a daemon reuse could differ from a cold run
  (review finding 3). Each copy's own wall cut remains the backstop. Whether
  --mutant-limit still has a role is open (it now only affects identity).
- Model: a copy cut by a count or a clock ends the owner files (no later file
  runs), so the model owes the same outcome.

Witness: a constructed history with two owners, each making 30,000 extra
calls; owner a's copy is under the budget, owner b's would kill but passes
the budget, so the mutant is a timeout by count. The reversed-sum mutant
(review H2, 968bfd7) is the mutant it must fail.

Not witnessed here: a spin in an earlier owner ahead of a kill in a later
one. A spin witness was tried first and removed: the later owner runs the same
spinning function, so it spins too and never kills, and the witness passed on
the parent. Finding 4's backstop witness (H1) is pending.

Co-authored-by: Isaac <no-reply@databricks.com>
…r copy, wall cuts end the mutant

Register C entry "Deterministic cuts, outcome rule (under M option A)", as
refined by the coordinator: a copy ending in "no progress" (a state) or a spin
past its call budget (a count) is a deterministic timeout for that copy. It is
charged nothing (the rows of a cut copy are not kept, and the per-copy call
budget already bounds it), and the next owner's copy still runs, so a later
kill decides. Only a wall-clock cut (the CLI backstop, or Vitest's "Test timed
out") ends the remaining copies, as a backstop gap that is never charged.

- Model: runsOf tags each cut with its kind (wall, count, state); judge ends
  the owner files only on a wall cut.
- Check: spin and idle copies settle with spin or idle set; cutByTime covers
  wall cuts only.
- --mutant-limit is retired (validated, noted, changes nothing); the driver no
  longer passes it.
- Constructed history "a backstop cut ends the copies ahead of a later kill":
  owner a's copy waits past a 2 s backstop; owner b would kill, and does not
  run. The state "a backstop cut ends the copies ahead of a later kill" is
  entered.

Open: "a declaration fault: noTypescript" (shard 3) streams 161 gap lines where
the model expects 159; a per-mutant check is pending. It is a model and CLI
disagreement, not a duplicate line (the scratch diagnostic found no repeated
line).

Co-authored-by: Isaac <no-reply@databricks.com>
…ot in scope there)

Co-authored-by: Isaac <no-reply@databricks.com>
…p, never a silent one

Review finding 5 (register L8). The 10 s close waits in closeContexts and in
replace continued silently after a close was still pending. Now each close
waits up to the 60 s backstop; a close still pending is an error that names
the backstop gap, and no replacement is warmed while the old context is still
closing. Closes that finish are unchanged.

Witness: none. A pending close needs a context whose close never settles, which
costs 60 s per run; it is a limit of this change (the coverage is by inspection
of closeWithin and its two callers).

Co-authored-by: Isaac <no-reply@databricks.com>
…oes idle

Owner a's copy now awaits a promise that never resolves, while a repeating
timer stays due inside its horizon, so the copy is never idle and no site
spins. Only the backstop cuts it, on every machine. The witness no longer
depends on whether a 12 s wait lands inside the backstop band (register
2026-11-14, outcome rule item 5).

Co-authored-by: Isaac <no-reply@databricks.com>
…ress, or work budget

A copy's cut is now recorded as its cause and carried into the mutant's timeout
detail, results.json, and the gap line (cause: ...). The model predicts the
cause of each timeout: a backstop cut (a wall-clock limit), a spin past the
copy's call budget (a count, outcome rule item 4), no progress (a state), or
the mutant's work budget. The model had no per-copy call budget, so the
work-budget history's 4-sites-per-call mutant was a spin and not a work-budget
timeout; the model now predicts that. ORACLE_GAPS_PROFILE rows carry each
copy's cause, its file's measured time, its limit and its duration.

RED: the e2e oracle, with the cause predicted and production unchanged, fails
on the backstop history (its timeout is cut by run time limit).

Co-authored-by: Isaac <no-reply@databricks.com>
…s as constants

The deterministic-cuts constructed fields are constants in every drawn record,
so no draw changes: the tests line hashes the records without them and is
main's (e9029433a23d1f10). slowMs, loops, timerWait and pulse each get a line
after the others, with its neutral value checked on every generated test, and
hangMs is a drawn constant (null where generated) with its own line. The
constructed histories #99 adds are appended after main's 26, by name and index.

Co-authored-by: Isaac <no-reply@databricks.com>
…e current cuts

--help and the index header give the defaults (--test-timeout 65000, --hang-limit
60000) and mark --first-limit and --mutant-limit retired. The README, the
changeset and the e2e law 4 text describe the backstop, the call and work
counts, and the cause each timeout names. Stale states and names are renamed
(confirmations, the first budget, the 15 s limit): a slow kill after a 16 s
wait, and a mutant's copies past its work budget. MUTANT_LIMIT_MS, unused, is
removed. The determinism twin is described as a determinism check: it passes
on its parent, so the outcome rule's RED is the classify oracle's.

Co-authored-by: Isaac <no-reply@databricks.com>
… and counts

The README's gap section and the changeset's bullet describe the counts and the
backstop, the cause each timeout names (on the gap line too), and the retired
options, in place of the confirmation budget. The classify oracle's gap-line
law (in bfca29a) accepts a timeout's cause suffix.

Co-authored-by: Isaac <no-reply@databricks.com>
Resolves the constructed list (main's 29 histories first, then the five #99 histories at 29 to 33), the drawn record (main's pauseEngages and warmReplaced, then hangMs), the take-back, the limits text (main's Windows notes, with #99's work-budget wording), and the shard lists (#99's histories in shard 4, main's test.projects line in shard 5). The fingerprint canary passes.

Co-authored-by: Isaac <no-reply@databricks.com>
…; the Windows shards list the new histories

The constructed backstop (hangMs) is a drawn constant now, so its take-back returns
the drawn value (null), which the arbitrary can take back. The fixed-seed shards
of main are kept as they are: the new histories fall into the Linux rest shard,
and the Windows partition, which is exact, lists them in shard 10.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
…n the CLI arguments

Co-authored-by: Isaac <no-reply@databricks.com>
…'d timer

An unref'd timer is not among the process's active resources, so only the copy's
own pending-timer record keeps it busy (the idle rule, held state, M 2026-11-15).
The witness is a constructed history of its own; the reach state is recorded.

Co-authored-by: Isaac <no-reply@databricks.com>
…dition

A copy is idle when no counted timer is due within its horizon, no timer is listed
beyond its test's base, and no I/O handle is open (M entry 2026-11-15). Sample
lateness and the event loop's utilization no longer reset the window: a busy
synchronous or microtask loop blocks the sampler, so it cannot look idle. The
held-state witnesses (a copy waiting on a timer, ref'd or unref'd) keep the
copy busy, and the mutants that ignore a due timer are killed.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
…ef'd timer history

The e2e shard check named the removed history 'a slow kill past Vitest's 15 s limit'
and had no shard for the unref'd timer history, so CI's test:oracle-gaps:shards
failed. The check now partitions the e2e tests exactly.

Co-authored-by: Isaac <no-reply@databricks.com>
@pkg-pr-new

pkg-pr-new Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/TanStack/oracles/@tanstack/eslint-plugin-oracles@99
npm i https://pkg.pr.new/TanStack/oracles/@tanstack/oracles@99

commit: a2400c5

… wall-clock cut

With the idle rule decided by state (M entry, 2026-11-15), a timer due beyond the
copy's horizon does not keep it busy, so it is idle and cut as no progress. The
model's wall-clock cut for such a wait was stale; the load experiment's 12 s copies
gave the same outcome on three repeats under a concurrent run (the model owed a
backstop cut).

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
KyleAMathews and others added 8 commits November 23, 2026 08:23
… 655 s)

Run 45196802964 (86afd01) measured determinism 7/7 at 655 s, the one job over
the 10-minute limit. Its 15 units summed to 638 s, of which the constructed
unit "a later owner's test listed first beside an earlier owner's hang" was
166.6 s, the rest shard's largest after the two witness halves. Naming it in
shard 1 (318 s of units) moves it out of the rest shard. Estimated: 7/7 about
8 min, 1/7 about 9 min. `pr-shards.mjs check` and `e2e-shards.mjs check` pass.

Co-authored-by: Isaac <no-reply@databricks.com>
…nd as a backstop (RED, K21)

Constructed history from the #184 seed -606020990 ("a stale authored mutant
and a reformat"). Its flaky owner test calls the function 30,000 more times
where the output differs. The copy is under the call budget, so it must
finish and its owner's kill decides. Production cuts it at the e2e backstop
(20 s) and reports `timeout`, owed `unregistered-kill`.

Law: K21, maintainer ruling 2026-11-23 ("Backstops are fine, set high"): the
backstop is set above the slowest legal copy, and a backstop cut in a
constructed or generated history is a defect.

RED: fixed seed 20261105 "a flaky owner's loop calls under the call budget"
fails with `src/sut.ts:C1.run:35:delete-call#0: timeout, owed unregistered-kill`.

Co-authored-by: Isaac <no-reply@databricks.com>
…py's budget (F1, K21)

Law: a test excluded from judging still runs, so its calls count toward the
call budget (#176 F1). Production's `mostCalls` takes every non-background
row, flaky rows included, and a copy's spin counts every call it makes. The
model's runsOf dropped flaky tests before counting, so it never saw their
30,000 loop calls.

Change: flaky tests keep their runs, with no verdicts, no hang, and no charge
to the work budget (production charges only deterministic rows). A spin on
such a run is a gap, since its count could not be separated from the clock
(production's countOnly). The model now matches production's spin.

Evidence (Law / Reach / RED / GREEN / Mutant / Limits):
- Law: F1 (#176), register 2026-11-23 K21 ("Backstops are fine, set high").
- Reach: constructed "a flaky owner's loop calls under the call budget"
  (seed -606020990 history, appended last, reach state declared). Generated
  histories with a flaky test that has loops reach it by the history's fields.
- RED (cf0bd37, before this commit): fixed seed 20261105 fails with
  `src/sut.ts:C1.run:35:delete-call#0: timeout, owed unregistered-kill`.
- GREEN (this commit): the constructed unit passes; seed -606020990
  "random seed: a stale authored mutant and a reformat" passes; seed
  2027172067 "random seed: generated" passes (GAP_E2E_SHRINKS=0).
- Mutant: the pre-F1 model (flaky tests excluded), restored from HEAD: the
  constructed unit fails with the same Difference.
- Limits: the cut is a count spin (`cause: spin`), not the backstop; the 20 s
  backstop is not the cause and is not changed. The full e2e suite runs in CI.

Co-authored-by: Isaac <no-reply@databricks.com>
…test's run never judges work (B1, B6)

B1: the flaky-loops constructed units (cf0bd37) were in no shard, so both
`e2e-shards.mjs check` and `pr-shards.mjs check` failed. They go in e2e-4 and
in the Windows fixed-seed shard 3. Both checks pass.

B6: inertFlaky kept `rose`, so a flaky run could classify a survivor as
`extra-work` (judgesWork does not exclude flaky tests). Production judges work
only from baseline.work (classify.mjs:447-450), which excludes flaky rows. The
flaky run now sets `rose: false`. Witness: not reached by a history (reach not
measured); the fixed flaky unit and seed -606020990 still pass.

Authority: M "Count-only kills" (2026-11-16), M 2026-11-13 (flaky reads the
clock), and the 2026-11-23 C entry "An excluded test still runs" (awaiting
ratification).

Co-authored-by: Isaac <no-reply@databricks.com>
…e oracle's limits (N1, N2)

The model leaves flaky tests out of hangs and of judgment (a generator
narrowing). An excluded test still runs (M, register 2026-11-23): its calls
count toward the call budget and its runs judge nothing. A flaky no-progress
hang is judged as finishing while production kills it (L1, owner #149), and
no oracle sees it. This repository has no coverage map, so the limit lives in
the oracle's own `limits`.

Co-authored-by: Isaac <no-reply@databricks.com>
…n (B2, removed before merge)

Co-authored-by: Isaac <no-reply@databricks.com>
…r's hang under four contexts (B4)

Law: a mutant's owner copies run in sorted owner order, and the first kill
decides (register 2026-11-14, "Deterministic cuts, outcome rule"; G44, O13).
Production takes the owners by path (classify.mjs targetsOf).

Finding: the requested mutant, which drops only the targetsOf byPath sort, is
equivalent. passOf (classify.mjs) sorts units by file before their rows join
the baseline map, so reachedBy is already in path order on every run, and
targetsOf's sort is redundant. No history can separate the two orders for
that mutant. Dropping both sorts makes the copies run in context-join order;
that mutant is non-equivalent.

Witness: w_hangpair, owner files p (hangs where it would judge) and q (kills),
in a constructed `pair` witness mode that the generator never draws. Four
contexts join q ahead of p, so the sorted order and the join order disagree
and the verdict changes. Shards: e2e-4 and the Windows fixed-seed shard 3.

Law: copies run in sorted owner order (G44, O13; register 2026-11-14).
Reach: state "an earlier owner's hang killed by no progress before a later
owner's kill": 1 constructed history (reach ledger, fixed seed 20261105); 0
generated, because the generator never draws the pair mode.
RED: scratch mutant (both sorts removed, uncommitted) on the unit "fixed seed
20261105: a later owner's kill joined before an earlier owner's hang under four
contexts": "Difference: src/sut.ts:w_hangpair:34:if-false#0: killed by a
behavioral law, owed no progress". The classify oracle also fails 18 units
under the same mutant.
GREEN: the same unit on this commit, unchanged production: 1 passed, about
3 s; the random and determinism units pass (4 s and 5 s).
Mutant: requested mutant (targetsOf sort dropped only) survives the unit and
the classify oracle (291 passed): equivalent, as above. Join mutant (both sorts
dropped): rejected by the unit and the classify oracle.
Limits: generated histories never reach the pair mode, so the state has no
generated reach. The full fixed-seed campaign (377+ units) was not run here;
CI covers it. Only one owner order (sorted over join) is exercised, with four
contexts. The requested first-appearance mutant is an equivalent mutant and
is not killed.

Co-authored-by: Isaac <no-reply@databricks.com>
… order

The classify oracle listed a mutant's verdict tests before its cut tests, so a
gap could name a later file's test ahead of an earlier file's cut test. Report
order (law 7) is by file path, then the file's own order, for every list a
result names. Production (classify.mjs) already does that; the model now does too.

Law: report order (law 7 of oracle-gaps.report-classify; register "Report
order" in classify.mjs, and the model's own "in report order" comment).
Reach: constructed history "an unregistered kill whose cut test is in an earlier
file" enters the new state "unregistered-kill named in report order" (declared
in required). Generated campaigns do not reach it; the state is constructed-only.
RED: that constructed unit fails on the unchanged model with
  message "Register the route of `t0`..." does not name "`it's t0`".
GREEN: the constructed unit passes; the full gap-report-classify file passes
  (294 of 294); CI's random seed 1301071465 path replays green.
Mutant: the previous verdict-first concatenation is the RED run above.
Limits: the constructed history covers two owner files with unknown routes; a
cut and a verdict on the same file, and the authored-mutant owner order
(judgedAuthored, which does not sort its owners), are not covered here.

Co-authored-by: Isaac <no-reply@databricks.com>
KyleAMathews and others added 9 commits November 23, 2026 09:30
… last (B4)

Law: copies run in sorted owner order (register 2026-11-14, "Deterministic
cuts, outcome rule"; G44, O13). Production takes the owners by path
(classify.mjs targetsOf, passOf). The witness is drawn now, so the generator
reaches it, as "Randomness wins" (2026-11-16) requires for a field that changes
what runs.

Change: the history record gets a drawn field `pair` after `heavy` (true in
one of five draws). The model adds w_hangpair to a history with `pair` set and
keeps it out of the `true` witness mode. The constructed history sets
`pair: true` and `witness: false`. Literal records and the constructed wrapper
default `pair` to false, since fast-check requires every record key.
history-fingerprint.json gains a `pair` line before `tests.pendingIo` in both
lists; the canary passes and every earlier line is unchanged.

Context count: already drawn before this change (`contexts`, 4 in 28 of 30).
Not moved, since moving it would change later fields' draws.

Reach: state "an earlier owner's hang killed by no progress before a later
owner's kill".
- Constructed: 1 (fixed seed 20261105, reach ledger). Unit GREEN in about 3 s.
- Generated, fixed seed 20261105, 2 draws: 0 (no pair draw in the first two).
- Generated, fixed seed 20261105, 20 draws (ORACLE_RUNS_MULTIPLIER=10): 0.
  Two pair draws; one has ownerless=true, which strips owners so the witness
  is unowned; the other has budget 'one' (unverified as the cause).
- Generated, three random-seed units (2 draws each): 0 in each; seeds not
  printed on pass.
- Drawn pair rate: 20%. ownerless (50%) leaves the witness unowned.

RED: scratch mutant (passOf and targetsOf sorts dropped, uncommitted) on
"fixed seed 20261105: a later owner's kill joined before an earlier owner's
hang under four contexts": "Difference: src/sut.ts:w_hangpair:34:if-false#0:
killed by a behavioral law, owed no progress".
GREEN: the same unit on this commit, unchanged production: 1 passed.
Mutant: the requested mutant (targetsOf sort dropped only) survives the unit
(1 passed); it is equivalent, since passOf sorts before reachedBy.
Shards: e2e-shards and pr-shards `check` pass. Unit times: 2-3 s each.
Limits: generated reach is 0 in every sample run here; the drawn dimension
reaches only through the 20%*50% pair-owned draw, and a non-ownerless draw
did not show the state. The full suite was not re-measured.

Co-authored-by: Isaac <no-reply@databricks.com>
Law: no wall-clock cut decides an outcome, and no legal history ends at
the backstop (M, 2026-11-23, "Backstops are fine, set high"; I15, R49).
The model's rule that predicted a no-progress cut for a finite slow copy
(a wait past the backstop plus 6 s) is removed: under the ruling no legal
history is cut there.

Constructed history (appended last, C-6): a slow kill whose test waits
22 s where its output differs. Its copy terminates under the call budget.
The 20 s base gives its horizon less than the wait, so production cuts it
as no progress (a kill by state) where the model expects the owner's kill.

Reach: "a slow kill after a 22 s wait killed", declared in required and
ownHistoryStates, entered by the constructed history only.

RED (head f893c81, base 20 s, this commit):
  npx vitest --run --config oracle-gaps/vitest.config.mjs gap-report-oracle -t "a slow kill after a 22 s wait"
  fixed seed 20261105: FAIL "src/sut.ts:f0:31:if-false#0: killed by no
  progress, owed a behavioral law". The hostile mutant is the old 20 s
  base, the head production; it fails this history.

Limits: the base stays 20 s in this commit. Production and the base change
in the next commit (GREEN there). Shard placement: e2e-shards and pr-shards
check both pass.

Co-authored-by: Isaac <no-reply@databricks.com>
…ver stores a backstop cut (B2, K21)

Law: no wall-clock cut decides an outcome; a backstop cut is a gap, and
no legal history ends at it (M, 2026-11-23, "Backstops are fine, set high";
I15, R49). The daemon reruns a unit cut by the wall clock (I8, I12).

Derivation (documented at check.mjs `limitFor`):
- Measured on CI, per-call diagnostic (temporary job, removed before merge),
  inside real gap-CLI copies, 100,000 counted calls per repetition, five
  repetitions:
    Windows (windows-latest): one counted switch call 9.9 to 60.9 ns;
      one site evaluation in real clamp code 13.7 to 62.9 ns (2.5 sites
      per clamp call).
    Linux (ubuntu-latest): see the PR body (measured on its own run).
- Per-site allowance: 63 ns worst, margin 3, 0.0002 ms (SITE_BACKSTOP_MS).
  It prices the call budget above CALL_FLOOR: 3 x 100,000 x 63 ns is 19 ms
  at the floor, so the fixed base is the whole backstop for a small file.
- Base: 60 s, the fixed allowance for a copy's start and its non-site
  waits: three times the longest legal wait the suite draws (16 s),
  rounded up. Each file adds three of its unmutated seconds (unchanged).
- The e2e driver's base (FULL_LIMIT_MS) is the production base, 60 s, not
  20 s: the 22 s history is legal, and a 20 s base cut it.
- Vitest's per-test limit (--test-timeout) defaults to the base plus 5 s
  (65 s, as before), so the two move together.

Daemon: `remember` stores a unit cut by the wall clock no more (the
retention hook still sees every stored unit, L2). A count or state cut is
stored as before (the timed-out spin reuse of R55 (a) is unchanged).

Model: the rule that predicted a no-progress cut for a finite slow copy
(a wait past the backstop plus 6 s) is removed, and the driver's base is
60 s. Authority: M, 2026-11-23.

GREEN (this commit, base 60 s, production and model):
  gap-report-oracle -t "a slow kill after a 22 s wait": fixed seed,
  random seed and determinism pass (3 passed). The unit's copy finishes
  and its owner's kill decides.
Witnesses (the existing edit sequence over the witness module, 12 tests):
  pass, so the daemon change keeps the R55 states.

Limits:
- A legal copy whose call budget exceeds CALL_FLOOR by more than the
  per-site allowance can exceed the derived backstop: real test code costs
  more per site than the cheapest instrumented code measured. Recorded
  as a limit for the maintainer (heavy files, 100 times the most calls).
- Vitest's per-test limit is the base plus 5 s; the budget term is not in
  it, so an async copy awaiting past 65 s is cut as "Test timed out" before
  the backstop. Recorded.
- No witness yet for the daemon's storage change: the oracle has no law
  that compares a daemon's reuse counts with the model.

Co-authored-by: Isaac <no-reply@databricks.com>
The diagnostic has measured the per-call cost on both CI runners
(run 45219880267): Windows 9.9 to 60.9 ns per switch call and 13.7 to
62.9 ns per site; Linux 10.1 to 56.4 ns and 14.3 to 48.8 ns. The worst
of both is 63 ns, which SITE_BACKSTOP_MS uses (63 ns times 3).

Co-authored-by: Isaac <no-reply@databricks.com>
…ndeterminate

A spin's count cut by an excluded (flaky) or clocked test, with no deterministic,
unclocked owner test reaching the mutant, was labelled `timeout`. `timeout` is
the backstop gap only (M-24, G11), and an excluded test judges nothing ("An
excluded test still runs", M 2026-11-23), so the mutant has no judging test and
is indeterminate (G11: only nondeterministic tests reached it).

Law: M-24 (timeout is the backstop only); "An excluded test still runs"; G11
(indeterminate). Not changed: a spin cut where a deterministic, unclocked test
reaches the mutant stays `timeout` (open question, reported).
Reach: constructed history "a count cut by a flaky test with no deterministic
reach" (appended last, C-6); its state is declared in required.
RED: on the unchanged classify.mjs the witness fails with
  mutant m0: ["timeout",null,null,"spin"], owed ["survived","indeterminate"].
GREEN: classify file 297 of 297; #200 and #178 full main histories, neutralized,
  replayed twice each on this branch: 1 passed each.
Mutant: restoring the `timeout` label for a spin with no deterministic reach is
  the RED run above.
Limits: a clocked-only spin (non-flaky) now also becomes indeterminate, and the
  e2e model still owes `timeout` for it (not run here). A spin with a
  deterministic reach is unchanged.

Co-authored-by: Isaac <no-reply@databricks.com>
… deterministic test reached

The e2e model owed `timeout` for a spin whose count only a clocked test made,
while classify (be74532) owes indeterminate. The register says timeout is the
backstop only (M-24), and an excluded or clocked test judges nothing. The e2e
model now owes indeterminate for a timeout by spin with no reaching test that is
deterministic and unclocked. Its three states that named the old label are
renamed to the indeterminate states, and their producers read the survivor class.

Law: M-24; "An excluded test still runs" (M 2026-11-23); G11 (indeterminate).
Reach: the existing constructed histories "a clocked copy that spins", "a heavy
test that reads the clock after its work" and "a spin after a short async read"
enter the renamed states.
RED: "a clocked copy that spins" fails on the previous head with
  "Difference: src/sut.ts:f0:31:delete-call#0: indeterminate, owed timeout".
Mutant: the old `timeout` label in classify.mjs (ee8a11d) fails the same unit
  with "timeout, owed indeterminate".
GREEN: those three units pass (12 of 12 in the three-unit filter); the spin
  units (fixed seed and random seed, 8 each) pass.
Limits: the full e2e file was not run. The two-part witness for seed 61620462 is
  not in this commit.

Co-authored-by: Isaac <no-reply@databricks.com>
…ngest legal wait (B2, B3)

Law: no legal copy reaches its backstop, and a backstop cut is a gap
(M, 2026-11-23, "Backstops are fine, set high"; I15, R49). A legal wait is
due inside the copy's idle horizon only when the limit exceeds it, so the
limit of a history is three times its longest legal wait, at least a floor.
Production keeps its 60 s default (args.mjs BACKSTOP_BASE_MS).

Derivation (model `backstopOf`, driver passes it as --hang-limit):
  hangMs (drawn or constructed) when set, else
  max(BACKSTOP_FLOOR_MS = 10 s, 3 x max(SLOW_MS, legalWaitOf(test)...)).
  legalWaitOf: slowMs (SLOW_MS for a heartbeat hold), ioWait and
  pendingIo test/short (SLOW_MS), timerWait.waitMs. Runner waits and
  PAST_HORIZON waits are not legal.

Mutant hang (pulse) now costs its history's limit, not 60 s, and ends only at
the backstop, as a gap (recorded in the oracle's limits).

Reach: "a slow kill after a 22 s wait killed" (its longest legal wait is its
own 22 s, limit 66 s), fixed seed and random seed.
RED (hostile mutant, scratch, not committed): backstopOf = the 10 s floor
for that history. Result: "killed by no progress, owed a behavioral law" (fails).
GREEN: gap-report-oracle -t "a slow kill after a 22 s wait": 3 passed.
Local slow units, GAP_E2E_SHRINKS=0, maxWorkers 2: "every outcome class",
"a later owner's test listed first beside an earlier owner's hang",
"an edit sequence over the witness module" (both halves), "a declaration
fault: noTypescript": 21 passed (1287 s).
Fingerprint canary: 3 passed (no drawn field changed). e2e-shards check and
pr-shards check pass. eslint clean on both files.

Limits:
- The drawn hangMs of 40 s (one history in four) stays an explicit override,
  so its pulse hangs cost 40 s. Changing its draw would move the fingerprint.
- The floor (10 s) is a judgment, not measured per copy; per-copy latency is
  not recorded.
- A legal copy above its limit by a non-wait cost is not covered; no history
  reaches it by construction (3 x wait).

Co-authored-by: Isaac <no-reply@databricks.com>
…ample (RED)

Law: a copy whose property test spins past the call budget in a later run is
cut by count, and the verdict is a built-in law on the route the test was on
at the cut; the model must count every run that the fixture's property makes
(numRuns 20, seed 1, fast-check's run rules). Authority: the fixture's own
declaration (gap-report-model-oracle.mjs, campaign emitter, fcTest.prop with
numRuns 20 and seed 1), fast-check's run semantics, and the capture's spin
rule (capture-setup.mjs, "the route it registered").

Reach: the constructed history "a property test's later run spins into
bounded work" (the exact captured history, seed 61620462 path 0). Its declared
state enters when the CLI reports an unregistered kill by bounded work on a
property test.

RED: GAP_E2E_SHRINKS=0 pnpm exec vitest ... -t "fixed seed 20261105: a property
test's later run spins into bounded work" fails twice:
  src/sut.ts:f0:34:loop-false#0: unregistered-kill, owed killed
Mutant: the model is unchanged, so the RED is the mutant (one-run model).

Limits: this commit is test-only and red by design. The model change follows
in the next commit. No production change.

Co-authored-by: Isaac <no-reply@databricks.com>
… times (B3)

Law: every determinism unit runs in exactly one job (pr-shards check). Only
the packing changes; no test is added, removed, or narrowed.

Evidence (B3): CI run 45241549820 at a1e1c14 (per-backstop limit in place)
put the determinism jobs at 714 s (7/7), 574 s (1/7), 395 s (5/7), 323 s
(3/7 and 6/7), 515 s (2/7), 264 s (4/7): 3103 s in all. The units' times
come from the reporter's per-unit ms in those jobs' logs. Six shards now
hold 470 s of measured weight each (first-fit decreasing); the rest (283 s
and the untimed units) stays in shard 7, `rest`.

Check: node scripts/pr-shards.mjs check: 7 partitions split their tests
exactly. eslint clean.

Limits: the weights are one run's times (a random unit's cost follows its
seed); the job time is confirmed only by the next CI run.

Co-authored-by: Isaac <no-reply@databricks.com>
KyleAMathews and others added 3 commits November 23, 2026 12:58
…ure numRuns 20, seed 1)

Law: an asProp test runs once per run of its fast-check property. Its loops and
judging apply in the runs whose n is positive, and a count cut is judged on the
route active when the copy's calls pass the budget (capture-setup.mjs `spin`:
the route it registered at the cut).

Authority: the fixture's own declaration (gap-report-model-oracle.mjs,
campaign emitter: fcTest.prop with numRuns 20 and seed 1), fast-check's run
rules (a soft verdict continues the property, a hard one stops it), and the
capture's cut rule. The model computes the run sequence with fast-check itself
(fc.sample with the emitter's arbitrary and parameters). Checked against the
wrapper: @fast-check/vitest's test.prop under seed 1 yields the same first 20 n
values (8 10 0 1 3 10 2 8 8 10 7 0 9 3 2 0 4 1 7 3) as fc.sample.

Reach: the constructed history "a property test's later run spins into bounded
work" (exact capture of seed 61620462 path 0).

RED (parent 7f5e218): GAP_E2E_SHRINKS=0 ... -t "fixed seed 20261105: a property
test's later run spins into bounded work", exit 1, twice:
  src/sut.ts:f0:34:loop-false#0: unregistered-kill, owed killed
GREEN (this commit): the same unit exit 0; the random and determinism units of
the same history exit 0; seed 61620462 path 0 replay ("random seed: every outcome
class") exit 0 (it failed before); fast units (static, classify, probe-form,
mutant-validity, path-spelling): 33917 of 33917 pass.

Mutants on the constructed history (each run once):
  A, one run per property (the previous model): exit 1 (loop-false#0 differs).
  C, the cut names the test's last route: exit 1 (binary-swap#0 differs).
  B, the n gate ignored (every run loops when output differs): exit 0, SURVIVES.

Limits: mutant B is not killed by any history the grammar draws. loops is
0 or 30,000 (generator), and the first run has n = 8 > 0, so the second run
already passes the call budget in both models with the same route and verdict.
A history that distinguishes the gate needs a generator change (loops values
between 0 and 30,000) or a second property; this is a grammar decision for the
maintainer, not a model rule. Also not covered: the work-budget overflow path
still names one route per row (production capture, check.mjs's rule names
every route with counted calls); the overflow is not reached by this history.

Co-authored-by: Isaac <no-reply@databricks.com>
… (B3)

Law: unchanged (pr-shards check: every determinism unit in exactly one job).

Evidence (B3): the first repack (4626959's predecessor, a1e1c14's weights)
ran at 3,103 s of weight over seven jobs and CI put the determinism jobs at
391 to 610 s at 4626959: 2/7 at 610 s, 6/7 at 544 s, 3/7 at 541 s. The same
units summed to 3,408 s in that run (about 10% more than the first run). The
new packing uses each unit's mean over the two runs (3,255 s in all): six
shards hold 490 s each and the rest 317 s, so a job should be about 510 s
plus setup.

Check: node scripts/pr-shards.mjs check: 7 partitions split their tests
exactly. eslint clean.

Co-authored-by: Isaac <no-reply@databricks.com>
…d model

Law: a property test's count cut lands on the route the copy is on when its
calls pass the budget, and the run with n = 0 adds only its own calls (the n
gate, from the fixture's `when`). Authority: the fixture's emitter (`when`
gates loops and judging), fast-check's run rules, and the spin rule of
capture-setup.mjs.

Generator: `loops` gains the value 19,999, appended last. With a = loops + 1,
runs 1 and 2 (n = 8, 10) reach 80,000 calls, under the 100,000 budget; run 3
(n = 0) adds 2 calls and reaches 80,002. The gated model passes the budget at
100,002 in run 4's first part (case route). An ungated model passes it at
120,000 in run 3's enumerated part, another route and verdict.

Canary: history-fingerprint.json re-recorded. Only the `tests` line changed, in
both lists (02cea0c59a5c4124 -> dcba3d60f14af32d), and the canary passes 3 of 3.
constructed-order.json now records the full registered order (112 names). It
had 90 names: 18 names that this branch registered earlier were never recorded,
so a new name could not follow the recorded tail. Those 18 are recorded now.

Reach: C-7 "a property test's count cut lands in its first part after a run
with no positive n" (the captured C-6 history at loops 19,999), appended last.

RED (mutants of the final model, each run once, GAP_E2E_SHRINKS=0, fixed seed
20261105 unit of C-7):
  A, one run per property (the previous model): exit 1, loop-false#0 "killed
     by bounded work, owed a behavioral law".
  B, the n gate ignored: exit 1, loop-false#0 "killed, owed unregistered-kill".
     This was the survivor of 07ac382 (exit 0); now killed.
  C, cut names the test's last route: exit 1, loop-false#0 "killed, owed
     unregistered-kill".
GREEN (final model): C-7 fixed exit 0; C-7 random exit 0; C-7 determinism exit 0;
canary 3 of 3; fast units (static, classify, probe-form, mutant-validity,
path-spelling) 33917 of 33917; shards: 5 e2e shards and 7 pr partitions check.

Limits: the work-budget overflow route (one route per row in the capture, where
check.mjs names every route with counted calls) is not reached by any history.
Recorded in the gap e2e oracle's limits, with the witness it needs. The loops
change shifts the draws of every fixed and random seed; seed-based replays of
histories other than the captured C-6 literal differ from before.

Co-authored-by: Isaac <no-reply@databricks.com>
KyleAMathews and others added 2 commits November 23, 2026 13:55
…perty runs, classify report order

Conflicts: the per-history backstop removed the model's slow-past-backstop return, and fix99-attr added per-part marks there; kept the marks. Both branches appended constructed histories and limits text; kept both, in branch order.

Co-authored-by: Isaac <no-reply@databricks.com>
Conflicts: both branches appended constructed histories and pr-shards names; kept both, in branch order. The 22 s backstop history, new on this branch, moves after fix99-attr's recorded histories so constructed-order.json stays an append-only record; both new names are appended. Fingerprint canary, e2e-shards check and pr-shards check pass.

Co-authored-by: Isaac <no-reply@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment