Skip to content

Expose the standard Lynx pipeline performance entries so featured Native Octane can exist #199

Open

Description

@Huxpro

The debt

Huxpro/lynx-js-framework-benchmark's methodology reports Native startup from the platform's own pipeline boundary: openTime → totalFcp.duration via Performance.getAllPerformanceEntries, validated against a producer receipt. Its METHODOLOGY.md then records: "Octane's custom renderer does not expose the same pipeline boundary in this Explorer build, so no featured Native Octane metric is reported." The benchmark is right to refuse private protocols — the fix is ours: Octane's Lynx renderer must emit the standard pipeline timing entries every other framework gets for free, so the black-box matrix can include us without patching anything.

This is the single unlock for #194 (device measurement round 1): without it, every device number stays archived private-protocol evidence instead of featured cohort data.

What to build

  1. Find the contract, not a lookalike. Establish exactly which pipeline events the platform stamps for a framework-driven first screen (openTime, totalFcp, and whatever pipelineEnd the benchmark's settled reads), and who stamps them — if the platform stamps them from __FlushElementTree-adjacent internals, our direct first-screen path may already produce them and this issue reduces to verifying that; if the framework is expected to call a marking API (PerformanceObserver-visible pipeline entries, __OnPipelineStart-class hooks, or the timing option on flush), we call it at the equivalent boundaries.
  2. Map our boundaries onto theirs honestly. Our first screen has two paths (direct applier; command-path fallback after a decline) and an adoption step. The mapping must hold on both paths, and adoption must not double-report a second "first screen". Where our architecture has no equivalent moment (no hydrate), we do NOT invent one — the entries we emit must mean what they mean for everyone else: open → first contentful paint of the pipeline.
  3. Verify against the consumer. Acceptance is not "entries exist": it is the benchmark's own Native adapter reading openTime → totalFcp for an Octane bundle in LynxExplorer with enable_perf_metrics, plus its two-frame producer-receipt validation passing. A local test pins that the entries appear exactly once per first screen on both paths, with the fallback path covered.
  4. No timing games. The entries are stamped where the platform semantics say, not where they flatter us; the benchmark's cross-validation (producer receipt vs pipeline entries) exists to catch exactly that, and we should land on the honest side of it before anyone else checks.

Sequencing

Wanted before #194's device round runs at scale — Q1/Q2 can proceed on the private instrument, but featured cohort entry requires this. Independent of the C8/clause-1 work; touches packages/lynx main-thread paths only at the timing-mark level.

Activity

  1. Huxpro commented on Aug 26, 2026

    @Huxpro
    OwnerAuthor

    Native adapter acceptance run completed against the current new-lynx head, and it does not pass #199 yet.

    Exact input:

    • Octane commit: 07115d67d8a767a7586edb9ac8b1827300721a7b
    • clean production universal/scoped rows-0 Native bundle: 509,746 bytes
    • bundle SHA-256: 0cecf9236829a512fc954ce5b769ac817987fd5622429284312a6d7607d0c7ec
    • Lynx Sandbox aries_10, LynxExplorer, enable_perf_metrics=true
    • benchmark Native adapter opened the immutable in-memory bundle; a temporary acceptance mode made Octane use the same Performance.getAllPerformanceEntries path as the other entries

    The engine did emit exactly one standard loadBundle pipeline entry:

    • openTime = 1787748254225
    • totalFcp.duration = 123.659 ms
    • pipelineEnd = 1787748254348.659
    • both lynxFcp and totalFcp were present

    However, that entry was a false positive for a successful first screen. The required lynx-native-startup-v1 producer receipt never appeared, so the adapter waited 45 seconds and retained the cell as DNF with no FCP/settled value. Reading the exact DevTool client/session afterward showed the actual cause on both runtimes:

    [error/background] loadCard failed ReferenceError: MessageChannel is not defined
    [error/main-thread] main-thread.js exception: ReferenceError: MessageChannel is not defined
    

    This validates why acceptance must remain “pipeline entry + two Native frames + semantic producer state,” not merely “entries exist.” The standard platform entry is already stamped, but the tested app did not complete a verifiable first screen.

    There is also no current test/fixture evidence for the two paths required by this issue: the clean new-lynx benchmark bundle did not expose the versioned producer receipt, so direct vs command-fallback and adoption/no-double-report could not be accepted.

    Required before retest:

    1. make the current production Native build run in this Explorer without relying on an unavailable MessageChannel global (or establish the correct supported transport primitive/build target);
    2. restore/version the benchmark producer receipt for the current new-lynx fixture;
    3. pin direct and decline→fallback first-screen tests, including exactly-once adoption behavior;
    4. rerun the same adapter path and require openTime → totalFcp, pipelineEnd, two frames, and semantic row state to agree.

    No Native number was published or substituted with the private ACK metric.

  2. Huxpro commented on Aug 28, 2026

    @Huxpro
    OwnerAuthor

    Upstream execution result: octanejs/octane#886 is open as an independent Draft (one commit from upstream main; no codec/program/adoption implementation). Its production build, fixture tests, focused Lynx tests, full four-shard upstream suite, typecheck, format, sync, changeset check, and remote CI are green.

    Exact-device acceptance did not pass, and no number is published:

    • D2 bundle sha256:5f7646aca90fab3a6be72ec756018676f59b13bcf1d7649bb6d782f167b1a015 was fetched and opened in LynxExplorer, but this installed image returned zero performance entries.
    • The same image returned zero entries for a known-good current vue-vdom bundle and an archived Octane control, so this is not evidence that upstream Octane needs to stamp its own entry. The Vue control still emitted a valid versioned two-frame/semantic receipt.
    • The archived Octane 0fc84da0 control still emitted its historical commit ACK and two frames on this device. Current upstream D2 installs the semantic snapshot but root.render() never acknowledges, both alone and with the independent transport-codec commit applied in a disposable acceptance build.

    Thus the two blockers are separate: the current Explorer image does not expose the engine-owned pipeline entry seen in the earlier #199 run, and current upstream's first-screen/background handoff does not complete the receipt boundary. The latter may enter the program/adoption work excluded from this upstream contribution. octanejs#886 remains Draft; it adds no synthetic/duplicate timing marker and substitutes no private ACK metric. The chronological conflict record, including the falsified codec hypothesis, is on #232.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions