Repository navigation
Closed
Labels
Description
Part of the [lynx-perf-s2] code-staged roadmap (sequel to #9; umbrella issue to follow). This lands first and gates everything after it — the S1 receipts proved that wall-clock attribution guesses miss layers (wire≠create, validation≠FCP, ack≠tail), so S2 does not cut until the segments are measured.
Scope (one PR)
Instrument (dev-only or build-flag, never in default prod output) the two target paths and land the numbers:
- FCP@10k four-segment attribution on the rig app, Lynx-for-Web, quiet host, interleaved A/B protocol (n≥5, medians, same window):
- (a) MT slice evaluation (script parse+eval before first render call)
- (b) plan interpretation (the
renderPlanNode/plan-expansion walk) - (c) PAPI element creation
- (d) layout/flush
- create@10k five-segment attribution: BG replay / wire (clone+transfer) / MT expand (interpretive stamping of
instantiate) / PAPI / layout.
Deliverables: the instrument (reusable, committed under benchmarks/), a documented quiet-host protocol, and a segment table recorded in the umbrella issue.
Why this exists
- vapor
+b:calready showed interpret→code alone is ~wash on create (PAPI-bound), and our PR perf(lynx): plan-aware wire — fold provable plan instances into instantiate-by-plan-id commands ([lynx-perf 4]) #12 confirmed it on this codebase: −94% mount commands, create e2e unchanged (4,669 ±277 = 2.08× vdom same-run). The S2 bet is that the wins live in segments (a)+(b) for FCP and (expand) for create only when bundled with protocol collapse — this PR checks that bet before we pay for it. - Explicit no-go clause: if (b) + the receiver's share of (a) is a small fraction of FCP on the quiet host, the roadmap stops at codegen-for-create only, or stops entirely. "Re-measure first, don't pre-commit" ([lynx-perf] Roadmap: Octane on Lynx to its theoretical ceiling (≈ ReactLynx tier) #9 closing rule).
Constraints
- Same instrument for any cross-cell claim; octane never gets a bespoke workload.
- Absolute ms are host-bound; the table records segment shares and same-run ratios alongside raw ms.
- No behavior change; instrument compiles out of default builds (dev-fold pattern from PR perf(lynx): validation diet — dev-deep, prod-fast commit validation ([lynx-perf 5]) #13).
Acceptance
- Reproducible segment tables (FCP + create) committed to the umbrella, with host disclosure and n/spread.
- A written go/no-go verdict per downstream step (s2-2/s2-3/s2-4) derived from the shares.
Activity
Huxpro commentedon Aug 11, 2026
Live-main audit (2026-08-11): COMPLETED as an observation task by Hux PR #22. Its original instantiate-expansion boundary is superseded by octanejs#693/octanejs#700 template ingress; the local Hux evidence branch has been rebased to upstream main and the stage probe now measures current incremental template-run validation/freezing. Closing the old fork issue.