Repository navigation
Description
Found by the completeness critic of the adversarial audit of #58, at stack head 5d000b30e.
First, a correction to the audit's own earlier framing
The audit repeatedly claimed "one ref anywhere reverts a whole module to the interpreted encoding," and worried that this invalidated the §8 FCP numbers. That framing is wrong. Eligibility is per-plan, not per-module — universalPlanDeclarationsAst maps over state.plans independently (packages/octane/src/compiler/compile-universal.js:4053) — and @for/@if/@try in template position become slots and sub-plans rather than disqualifying nodes.
The benchmark app is in fact fully template-encoded: __octaneUniversalPlan0: TEMPLATE env.h=4, __octaneUniversalPlan2: TEMPLATE env.h=28, with only the degenerate slot-only Plan1 interpreted. The L0 measurement is not invalidated the way the audit feared.
The real problem is different, and larger
There are two all-or-nothing cliffs, and they compose:
- Compile-time —
lynxTemplateEligible(compile-universal.js:3928) rejects a whole plan for oneref,key,children,propsSlot, or static event-named prop anywhere in it. - Runtime —
firstScreenTreeHasList(packages/lynx/src/core/host-driver.ts:2882) declines the entire first screen to the staged path if a single<list>or<list-item>appears anywhere in the tree.
The decline predicate itself is sound
Checked, since the audit flagged it as unexamined: list and list-item are the only list intrinsics (packages/lynx/src/intrinsics.ts:290-291), and the staged path's list handling keys off exactly those two type strings. A stray <list-item> outside a <list> also matches, so it declines and the staged path raises its placement error — consistent. No under-approximation.
But it is whole-tree, and that is the finding.
What was actually measured
benchmarks/lynx-table/app/src/App.lynx.tsrx renders its 10,000 rows into <view class="rows"> with a keyed @for — no <list> anywhere.
So the cell behind §8's "FCP@10k 1542.8 ms vs pre-L3 1782.9 ms (0.865×, −240 ms)", and behind the L0 GO verdict, is the shape that clears both cliffs.
A long scrolling list — the canonical Lynx application shape — uses <list>, causes applyLynxFirstScreenDirect to return false, and receives exactly zero of the L3 win.
§8 does disclose "Native-list trees keep the staged path", but the FCP claim immediately above it is not qualified by that disclosure, and no measurement of the list shape exists anywhere.
Suggested direction
Add a benchmarks/lynx-table variant whose rows live under <list>/<list-item> and run the identical prototype/run-fcp.mjs ladder. If the L3 delta collapses to ~0 on that cell, then:
- §8's FCP number needs an explicit scope qualifier, and
- L4 becomes the load-bearing milestone rather than L3 — §3.7 defers native-list adoption to L4, which means the headline first-screen win does not reach the most common Lynx app shape until that lands.
This bears directly on the L5 cutover gate, which is sized against the §8 numbers.
Verification performed
Source-level verification of both cliffs and of the benchmark fixture's shape; the compile-time encoding of the benchmark app was measured directly. The list-shape FCP measurement is the proposed probe, not something this issue claims to have run. No adversarial refuter has adjudicated it.
Related
- The #63 gzip trade is not bounded at 10–22%: it grows without bound in static host count, and the cause is the emitter's unique per-node locals #86 — the gzip trade, the other input to the L5 gate
- No vitest project ever executes target: 'lynx' output at runtime — the L1 × L3 pair production ships has zero committed coverage #87 — no runtime coverage of
target: 'lynx'output
Activity