Skip to content

docs(bench): judge #58's L5 cutover gate on the #66 stack — NO-GO - #115

Merged
Huxpro merged 5 commits into
new-lynxfrom
docs/lynx-l5-cutover-gate
Aug 21, 2026
Merged

Huxpro merged 5 commits into
new-lynxfrom
docs/lynx-l5-cutover-gate

Conversation

@Huxpro

@Huxpro Huxpro commented Aug 20, 2026 •

Copy link
Copy Markdown
Owner

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 lynxRendererRules and deprecating the universal Lynx path, gated on three clauses. This judges all three on the tree the #66 execution actually produced — origin/new-lynx 5d61724 against the stack tip 566700e, two stage runs eight minutes apart in one window on one host.

One clause of three passes. Verdict: NO-GO.

clause verdict
create@10k materially below 1,201 ms, PAPI dominance reduced FAIL
main-thread gzip ≤1.5× the ~51 KB median FAIL on the gated fixture
no wire-floor regressions PASS

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_interpretation down 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:

  • Harness changes are inside the diff. The stack splits bg_replay into bg_prepare + bg_replay_other and adds the update10th/select/updateStorm stages, 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 the papi.ts instrumentation patch publishes a replay-window flag — so those are comparable.
  • Drift is bounded by an invariant, not asserted. The vendored vue-vdom bundle is byte-identical in both windows and moved 3.4% on create@10k; react moved ~6% in the web sweep. Cross-window deltas below those bounds are reported as unresolved.
  • A small excess is recorded rather than dismissed. 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 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:

file reaches a mutation cell?
core/block-core.ts, core/block-root.ts no — new, behind a per-root flag
core/delta-protocol.ts, core/delta-shadow.ts no — profiling-only, constructed under LYNX_PROFILE
main-renderer.ts, core/first-screen.ts no — first-screen render
main-thread.ts no — the direct-applier call site
core/host-driver.ts no — every hunk lands in applyLynxFirstScreenDirect, captureLynxFirstTree, compareFirstTree, transferFirstTree, the native-list constructors, or the once-per-root firstTreeAction === 'adopt' branch of prepareLynxHostBatch
compiler/compile-universal.js no — one slot kind flips 'c' → 'r'; slots is read only by main-renderer.ts, which validates and copies it and branches on neither value

Two 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 — via pnpm format:files:check over both changed paths
  • pnpm sync — clean, no generated changes
  • pnpm typecheck — not run; no TypeScript in this diff
  • pnpm test — not run; no code under test in this diff
  • measurement evidence: both stage arms driven end to end (stages/run.mjs --rows 10000, n=5, quiet-host preflight passed on both), full web sweep on both arms, six AB/BA passes on the octane cell, and bench.mjs --only lynx-table --ratios on both arms
  • the second commit's elimination: every changed source file traced to the functions its hunks land in

The tracked live-10000.json / live-10000.md baselines in stages/results/ were restored after both runs and are unchanged by this diff.

Risk / follow-ups

  • The mutation-cell excess still has no confirmed mechanism. A logic regression on the mutation path is now ruled out by the diff, which narrows it to bundle size or session drift — but neither is demonstrated, and separating them needs a dedicated session.
  • The native handoff is a specification of work not done, and §7 says so. Every number here is Lynx-for-Web: no first-paint, adoption, memory, or device-lifecycle claim is made, and componentAtIndex under a real platform list is unmeasured.
  • The frozen bundle budgets are still red on 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.
  • Separately, a defect in this stack's own Phase 1 work is reported on feat(lynx): cut the delta protocol over to instance-addressed v2 #101: the profiling delta shadow misses 100% of lynx-table's commits from 2dc0768e4 onward. Profiling-only, nothing published cites those counters, and the repair is a design call left to the owner.

Provenance

  • An agent produced this diff (agent-authored)

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.
Huxpro and others added 4 commits August 20, 2026 18:19
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.
@Huxpro
Huxpro changed the base branch from docs/lynx-l5-bundle-reaudit to new-lynx August 21, 2026 20:25
@Huxpro
Huxpro marked this pull request as ready for review August 21, 2026 20:25
@Huxpro
Huxpro merged commit f3bfe4f into new-lynx Aug 21, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants