Repository navigation
docs(bench): judge #58's L5 cutover gate on the #66 stack — NO-GO - #115
Merged
Merged
Conversation
Phase D of issue #66, steps D2 and D3. Two arms in one window, eight minutes apart: origin/new-lynx 5d61724 against the stack tip 566700e. One clause of three passes. The wire clause passes outright — byte-identical ratio counters on both arms, and create@10k differs by 4 bytes out and 10 bytes in at identical message counts. The create clause fails. The 1,201 ms figure the gate names is not comparable (different host, pre-correction background boundary), so it is judged against the same-window base: control create 1,825.5 ms base against 1,901.8 ms head, PAPI-stage dominance 77.2% against 77.4%. Neither moved. Inside that unchanged total, +92.8 ms of PAPI element creation traded against -67.6 ms of other host apply; both timers are untouched across the stack, so that is work relocating. The bundle clause fails on the gated fixture at 1.585x, as the re-audit already recorded. The mismatch is the finding: #58's L5 gate is written about the create path and #66 Phases B-C were executed against the first-screen path. Where they were aimed they landed — FCP@10k control fell 2,577.6 to 2,382.5 ms (-7.6%), with plan interpretation down a third. That same row leaves #58's L3 exit gate open: it wanted plan interpretation eliminated, not reduced. Six alternating AB/BA passes settle selectStorm@10k at 0.997 head/base — the apparent +34% was window noise — but leave create at 1.032, update10th at 1.042, and updateStorm at 1.076, consistent in both orderings. Mechanism unidentified; recorded with the hypothesis to test first rather than dismissed. Also records the native-engine handoff as work not done: every number here is Lynx-for-Web, and no claim in it is a native claim.
This was referenced Aug 20, 2026
The cutover-gate report named #109's record-shape change as the hypothesis to test first for the few-percent excess on create, update10th, and updateStorm. Reading the stack's source diff retires it. The stack edits nine source files. block-core.ts and block-root.ts are new and behind a per-root flag. delta-protocol.ts and delta-shadow.ts are profiling-only, constructed under LYNX_PROFILE. main-renderer.ts and core/first-screen.ts are first-screen render. main-thread.ts is the direct-applier call site. Every host-driver.ts hunk lands in applyLynxFirstScreenDirect, captureLynxFirstTree, compareFirstTree, transferFirstTree, the native-list constructors, or the once-per-root firstTreeAction === 'adopt' branch of prepareLynxHostBatch. The compiler flips one slot kind from 'c' to 'r', and slots is read only by main-renderer.ts, which validates and copies it and branches on neither value. Nothing a mutation cell executes after adoption was edited, so a logic regression on that path is ruled out. Two candidates remain and neither is claimed: the bigger main-thread bundle every cell runs inside (+4,202 B raw, +1,721 B gzip), and slow host drift across the session, which AB/BA alternation does not control because it only controls ordering within a window. The first is directly testable by padding the base bundle with dead bytes to the head's size and re-running the sweep. Records the file-by-file table so the next session can check the reasoning rather than repeat the elimination.
This was referenced Aug 20, 2026
Huxpro
marked this pull request as ready for review
August 21, 2026 20:25
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
Issue #66 Phase D, steps D2 and D3: the parity sweep and the cutover-gate verdict. Stacked on #114; review the last two commits only.
#58's L5 milestone ends by flipping
lynxRendererRulesand deprecating the universal Lynx path, gated on three clauses. This judges all three on the tree the #66 execution actually produced —origin/new-lynx5d61724against the stack tip566700e, two stage runs eight minutes apart in one window on one host.One clause of three passes. Verdict: NO-GO.
The 1,201 ms figure the gate names is not comparable — different host, and taken at the pre-correction background boundary — so the clause is judged against the same-window base instead. Control create is 1,825.5 ms on the base against 1,901.8 ms on the head, and PAPI-stage dominance is 77.2% → 77.4%. Neither moved. Inside that unchanged total, +92.8 ms of PAPI element creation traded against −67.6 ms of other host apply; both timers are untouched across the stack, so that is work relocating rather than re-attribution.
The wire clause passes outright: byte-identical ratio counters on both arms, both PASS, and create@10k differs by 4 bytes out and 10 bytes in at identical message counts.
The mismatch is the finding. #58's L5 gate is written about the create path; #66 Phases B–C were executed against the first-screen path. On this app those are different code paths — create is a button-driven background render through the staged batch, the first screen is the direct applier — and the evidence shows work on one did not move the other. Where Phases B–C were aimed, they landed: FCP@10k control fell 2,577.6 → 2,382.5 ms (−7.6%), with
plan_interpretationdown a third, 117 → 77.9 ms. That same row leaves #58's L3 exit gate open: it wanted plan interpretation eliminated, and at 77.9 ms / 3.2% it is neither gone nor negligible.Closing the create clause needs a milestone that owns host materialization. PAPI creation plus other apply is 77% of create and has been at every measurement since
live-report.md. More first-screen work will not move it.Why
Without this, the stack ends with a bundle re-audit (#114) and no answer to the question #58 actually asks — whether to cut over. The stack's wins are real and on a different axis than the gate measures, and that is worth writing down explicitly rather than leaving the next session to infer it from a green FCP table.
Changes
benchmarks/lynx-table/stages/results/stack-66-cutover-gate.md(new): the full report — arms, an explicit "what is comparable and what is not" section, the create and FCP stage tables, the parity sweep, the AB/BA re-measurement, the wire evidence, the clause-by-clause verdict, and the native handoff.docs/lynx-specialized-target-l0.md§8: the landed-increment entry.Three things the report is careful about:
bg_replayintobg_prepare+bg_replay_otherand adds theupdate10th/select/updateStormstages, so those are compared as a sum or not at all. The outer wall-clock endpoints and the PAPI/apply timers are verified untouched — the only edit to thepapi.tsinstrumentation patch publishes a replay-window flag — so those are comparable.vue-vdombundle is byte-identical in both windows and moved 3.4% on create@10k;reactmoved ~6% in the web sweep. Cross-window deltas below those bounds are reported as unresolved.selectStorm@10kat 0.997 head/base — the apparent +34% was window noise — but leave create at 1.032, update10th at 1.042, and updateStorm at 1.076, consistent in both orderings and corroborated by the stage arm's +4.2%.Second commit: the hypothesis the first commit named is retired
The first commit named #109's record-shape change as the hypothesis to test first for that excess. Reading the stack's source diff disproves it, so the second commit retires it rather than leaving a dead end for the next session.
The stack edits nine source files, and none of them is on the mutation path after adoption:
core/block-core.ts,core/block-root.tscore/delta-protocol.ts,core/delta-shadow.tsLYNX_PROFILEmain-renderer.ts,core/first-screen.tsmain-thread.tscore/host-driver.tsapplyLynxFirstScreenDirect,captureLynxFirstTree,compareFirstTree,transferFirstTree, the native-list constructors, or the once-per-rootfirstTreeAction === 'adopt'branch ofprepareLynxHostBatchcompiler/compile-universal.js'c'→'r';slotsis read only bymain-renderer.ts, which validates and copies it and branches on neither valueTwo candidates remain, and the report claims neither: the bigger main-thread bundle every cell runs inside (+4,202 B raw, +1,721 B gzip), and slow host drift across the session, which AB/BA alternation does not control because it only controls ordering within a window. The first is directly testable by padding the base bundle with dead bytes to the head's size and re-running the sweep.
Validation
Documentation and recorded measurements only; no package source changes, so no changeset.
pnpm format:check— viapnpm format:files:checkover both changed pathspnpm sync— clean, no generated changespnpm typecheck— not run; no TypeScript in this diffpnpm test— not run; no code under test in this diffstages/run.mjs --rows 10000, n=5, quiet-host preflight passed on both), full web sweep on both arms, six AB/BA passes on theoctanecell, andbench.mjs --only lynx-table --ratioson both armsThe tracked
live-10000.json/live-10000.mdbaselines instages/results/were restored after both runs and are unchanged by this diff.Risk / follow-ups
componentAtIndexunder a real platform list is unmeasured.new-lynx, as docs(bench): re-audit the L5 bundle gate on the unmerged issue-66 stack #114 records. Recalibrating them is a deliberate act on a chosen tree and is not done from a feature branch.lynx-table's commits from2dc0768e4onward. Profiling-only, nothing published cites those counters, and the repair is a design call left to the owner.Provenance
agent-authored)