Repository navigation
perf(bench): run #246 §7's falsification ablation on the MTS descriptor walk - #263
Merged
Merged
Conversation
…or walk #246 §7 names the test that gets to kill E1 before it is built: stub the MTS descriptor walk out of a steady-state create, and if the create cell does not move, E1 does not deserve the byte-identity promise it spends. This is that ablation, in two arms that bracket the answer. Both patch host-driver.ts on disk for one rspeedy build and restore it afterwards, the same shape stages/instrument-source.mjs uses. The conservative arm resolves the per-node descriptor tables once ahead of the row loop; the aggressive arm also hoists the constant creation patches so applyProps is never reached, and carries a fallbackProps counter so it reports its own coverage instead of asserting it. The stub is work-preserving at the host boundary, because §7 is explicit that E1 does not reduce host calls: 19,001 at 1,000 rows and 190,001 at 10,000, identical between control and ablation in both windows, with the harness's own counts-agree column green for every cell. The create cell does not move. In the un-probed control build the aggressive arm reads -0.20% at 10,000 rows (p=0.932) and +2.73% at 1,000 (p=0.290); the conservative arm reads -1.59% and -0.90%. The instrumented builds show a delta that grows with probe weight and lands mostly inside host buckets this arm cannot causally change, which the doc records as the trap that would otherwise hand you a false positive. docs/measurement/e1-descriptor-walk-ablation.md carries the procedure, the two fairness constraints on the stub, the cell-naming trap in --control-dist, and the recorded result. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019RsC3U39kUuLKajZANeTVy
A typo'd scale was dropped by filter(Boolean) and a negative one passed it, so the build produced a partial arm whose missing bundle surfaced only as a mid-campaign 404 — the exact failure this file's own header warns about. Parses before filtering so a NaN entry is seen and refused rather than silently dropped (--scales 1000,10k now throws instead of building only the 1000-row bundle). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
Huxpro
force-pushed
the
perf/e1-descriptor-walk-ablation
branch
from
August 31, 2026 19:05
fdb7fb4 to
860a07d
Compare
Huxpro
marked this pull request as ready for review
August 31, 2026 19:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#246 §7 names the test that gets to kill E1 before it is built:
This is that ablation. The create cell does not move. The verdict and its consequence for #246 are posted on the issue; this PR carries the instrument, the evidence, and the procedure.
Two arms bracket the answer. Both patch
packages/lynx/src/core/host-driver.tson disk for exactly onerspeedy buildand restore it afterwards, the same build-time source-patching shapestages/instrument-source.mjsuses:e1ablapplyPropsfor nodes the fast slots cannot describee1abl2applyPropsis never reachedThe aggressive arm carries a
fallbackPropscounter and so reports its own coverage rather than asserting it. In the browser at 1,000 rows it readsdenseRuns 1, denseRows 1000, denseHosts 6000, slowRuns 0, ablatedRuns 1, fallbackProps 0— the walk is fully gone — with the paint oracle still passing (1,000 rows, both boundary labels,classCount 1000).Two fairness constraints on the stub
Work-preserving at the host boundary. §7 is explicit that E1 does not reduce host calls; what it removes is interpretation. A stub that also removed host calls would inflate the delta and wrongly greenlight E1. Verified: 19,001 calls at 1,000 rows and 190,001 at 10,000, identical between control and ablation in both windows, with the harness's own
counts agree across buildscolumn green for every cell.At least as generous as E1. The falsifier is decisive in only one direction, so the arm resolves the descriptor tables once per node into flat slots and issues host calls straight from them — strictly more than E1 buys, since E1 still has to address a node before acting on it.
Result
Control cell
octane-mts-program, ablation celloctane-mts-program-control, un-probedcontrolbuild, create window:e1able1able1abl2e1abl2Medians in ms; delta, p and CI on the means.
The trap this would otherwise have fallen into
The instrumented builds show a win the un-probed control build does not, and it grows with probe weight — at 10,000 rows, −0.20% (p=0.932) in
control, −2.37% (p=0.084) incounts, −4.83% (p=0.002) intimed. Work the arm removes is a fixed quantity and cannot know how heavily the probe is instrumenting, so a delta that scales with the probe is coupled to the probe.The per-stage split settles it. Of the aggressive arm's −51.9 ms median in the
timedbuild at 10,000 rows, −18.7 ms lands inside thepapi_*host buckets and −6.4 ms instart_delay— buckets that time identical calls with identical arguments, which this arm provably cannot change. Only −17.3 ms lands inoff_boundary, the one bucket the walk lives in, against anoff_boundaryspread of 91.2 ms. At 1,000 rows the same decomposition runs the other way (+5.6 ms inside the host buckets, −2.8 ms inoff_boundary).Movement that is not localized to the bucket the removed code occupies, and that flips sign between scales, is drift.
docs/measurement/e1-descriptor-walk-ablation.mdrecords this so the next reader does not report thetimednumber.Validation
pnpm sync— clean, no generated changespnpm format:files:checkon the three authored files — all passpnpm format:checkpnpm typecheckpnpm testnew-lynxcheckout and restored to a clean tree (git statusempty after each), confirming the anchors bind to the base branch and not just to the head they were written onif (false && wantsProps)vsif (true && wantsProps)), andfallbackPropsappears in the aggressive bundle onlypnpm typecheckandpnpm testare not meaningful gates for this diff: it adds twobenchmarks/scripts, one doc, and recorded JSON, andbenchmarks/is in novitest.config.jsproject, so no test project reaches these files. The measurement evidence above is the validation that matters, and every number in it comes from a same-window A/B.Second commit, and it touches no evidence.
860a07dc5hardense1-ablation-build.mjs's argument parsing:--scalesmapped toNumberbeforefilter(Boolean), so a typo'd entry becameNaNand was dropped silently and a negative one passed, either way yielding a partial arm whose missing bundle only surfaced as a mid-campaign 404. It now parses before filtering and refuses anything that is not a positive safe integer. Build-time input validation only — every number in this PR was produced by the parser as it stood, and none of them move.Risk / follow-ups
host-driver.ts. It throws on a missed anchor rather than silently producing an unablated arm, and it is verified againstnew-lynxabove, but a reflow of the dense apply loop will need the anchors re-fitted.--control-dist <tag>routesdist-mtsprograminto the cell namedoctane-mts-program-control, so that cell holds the ablation andoctane-mts-programis the control. Confusing, pre-existing, and now documented rather than renamed — renaming is a change to the shared harness and does not belong in a measurement PR.new-lynx; this branch is not stacked on it.typecheck,lint,apply labels); every heavy job reportsskipped, which is whatci.ymldoes for a draft, not a failure. Nothing has yet run the heavy suite against this diff.Provenance
agent-authored)Generated by Claude Code