Skip to content

Device verification: what actually happens to an object payload at the Lynx ContextProxy boundary #149

Open

Description

@Huxpro

Execution plan for a device session with both an iOS device and an Android device. It settles one question that #147 could not, and on which several of that issue's conclusions depend — those are marked pending there until this reports back.

Reply to this issue with the results. Do not edit #147; it will be updated from what lands here.

1. The question

Upstream Octane hands the Lynx ContextProxy a structured object:

// packages/lynx/src/core/transport.ts:338, :345, :672   (background → main)
// packages/lynx/src/main-thread.ts:659                  (main → background)
context.dispatchEvent({ type: LYNX_BACKGROUND_TO_MAIN_EVENT, data: validated });

Two facts that both appear to be true, and are not yet reconciled:

  • It works. packages/rspeedy-plugin-octane/examples/{bank-cards,gallery,swiper}/README.md each carry a "Verified on device (Lynx Explorer, iOS)" section. bank-cards records a first-screen adoption=adopted acknowledgement and a background event → state → committed update — the complete dual-thread path, unpatched.
  • It apparently does not. Huxpro/lynx-js-framework-benchmark cannot run Octane on its Android device lane without patching those exact call sites (entries/_patches/octane-bench.patch) to JSON.stringify in both directions, with the comment "Production Native ContextProxy delivery is only reliable for strings; development test hosts preserve the structured-clone contract."

It is not a regression: git log --all -S "JSON.stringify(validated)" over both files returns no commits, so the object path is the only path upstream has ever had.

Four variables move at once between the two configurations, and nobody has isolated them:

examples (works) benchmark (patched)
build rspeedy dev, NODE_ENV unset NODE_ENV=production
platform iOS, macOS arm64 Android 10 (ByteDance aries_10)
host official Lynx Explorer 3.9.x ByteDance Sandbox Explorer, versionName 1.0, lynxSdkVersion 0.0.1
payload one tap, a few host writes create@1000 → a batch over ~7,000 hosts

A fifth possibility is open: the patch may be unnecessary, and its author may have hit a different failure and attributed it to the value domain.

2. Reproduction coordinates

  • Octane entry pinned at upstream 0fc84da02fd05403ac5e36d2aff631b31168d5ac (frameworkVersion 0.1.38). Use this commit, not current main, so the run is comparable to the recorded one.
  • Benchmark bundles built by scripts/build-octane-upstream.mjs, which sets NODE_ENV=production and BENCH_AUTOROWS per row count.
  • Recorded failing run: results/runs/2026-08-17T23-25-11-lynx-native-android-aries_10-10-devtool-direct-recycle5-…-native-matrix-backfill-v2-r1-20260817.json. create@1000 = 12,193 ms, create@3000 = 103,428 ms, create@5000+ timeout at 240 s. Octane gets LONG_WORKLOAD_TIMEOUT_MS 240 s; every other entry gets 30 s.
  • Android automation exists (packages/runner/adapters/lynx-sandbox-android.mjs). There is no iOS adapter — iOS cells are a manual Explorer + lynx-devtool pass/fail with console capture, exactly how the examples were verified. Do not fabricate iOS timings; iOS is here to answer does it work, not how fast.

3. Step 0 — the probe (do this first)

The actual unknown is what arrives on the receiving side. Everything else is a control. Add a receive-side probe to the Octane checkout, in both directions:

  • packages/lynx/src/main-thread.ts, at the inbound handler that currently calls validateLynxBackgroundOutboundMessage(event.data) (line ~2489 upstream, ~2492 on new-lynx);
  • packages/lynx/src/core/transport.ts, at the background inbound handler (line ~1324 upstream).

Per message, log exactly one line:

console.log('__OCTANE_WIRE_PROBE__', JSON.stringify({
  dir,                                   // 'bts->mts' | 'mts->bts'
  type: typeof event.data,               // the load-bearing field
  ctor: event.data?.constructor?.name ?? null,
  keys: event.data && typeof event.data === 'object' ? Object.keys(event.data).length : null,
  strLen: typeof event.data === 'string' ? event.data.length : null,
  op: /* message op/kind if cheaply available */ null,
  validateMs,                            // time spent in the validator
  validateError: err ? String(err).slice(0, 200) : null,
}));

Keep the probe out of the timed comparison — it is a diagnostic build. console.log on device is not free.

This one probe distinguishes the three possibilities that "only reliable for strings" could mean, and they need very different fixes:

  1. the object arrives intact → the patch is unnecessary and the failure is elsewhere;
  2. the object arrives mangled (wrong typeof, lost keys, stringified by the engine, [object Object]) → a real marshalling constraint, and the probe says exactly how it degrades;
  3. the object never arrives → a delivery failure, and the probe on the sending side says whether dispatch itself threw.

4. Step 1 — the 2×2: encoding × platform

Fixed: production build, Octane 0fc84da0, create@1000, probe build.

object (patch reverted) string (patch applied)
Android (Sandbox Explorer) A1 A2 — reproduces the recorded 12,193 ms
iOS (official Explorer 3.9.x) B1 B2

A1 is the single highest-value cell. It needs no new code beyond the probe, changes exactly one variable against a recorded run, and either collapses the whole string-only story or produces a concrete failure with a trace.

5. Step 2 — build-mode control

Only if A1 or B1 fails. Same device, same payload, but a dev build (rspeedy dev-equivalent, NODE_ENV unset), object encoding. If dev-object works where prod-object fails, the discriminator is the build, and the next question is what rspeedy changes about the runtime wrapper or the thread graph between the two modes.

6. Step 3 — payload threshold

Only if object encoding works at some size. Scale BENCH_AUTOROWS / the create workload: 100 → 300 → 1000 → 3000 → 10000. Report the last working and first failing size, with the probe's keys / message count at each. That converts "only reliable" into a number.

7. Step 4 — the superlinearity (independent, and possibly the bigger finding)

In whichever configuration completes, time create at 1000 / 3000 / 5000 on device and report the split between background prepare, dispatch, receive+validate, and PAPI apply. 12.2 s → 103.4 s for 3× the rows is superlinear, and nothing in the value-domain story explains it: encode, decode, clone traversal and the validator walk are all linear. If Step 1 shows the object arrives intact, this becomes the whole issue.

8. What each outcome means

Outcome Reading
A1 works, A2 works, similar timings Patch unnecessary. #147 §1 is fully retracted; the 12 s is an Octane algorithmic problem on device. Go to Step 4.
A1 fails, B1 works Not the value domain per se — platform, host build, or Android Sandbox Explorer specifically. Probe output says which.
A1 and B1 both fail, dev build works Production build is the discriminator. Investigate the rspeedy production runtime wrapper / thread graph.
A1 fails only above N rows A size threshold, not a type constraint. The fix is a representation change (delta-protocol v2), and the threshold sizes it.
Object arrives mangled anywhere A real platform constraint. Then upstream owes a fix, and #147 §4 stands: it must live somewhere new-lynx inherits.

9. Reporting rules

Follow benchmarks/lynx-table/README.md's measurement honesty section and #66 §1:

  • A cell that cannot be driven end to end is "not measured", never a number from a degraded run.
  • Attach the probe output verbatim for every cell, pass or fail. The probe lines are the finding; the timings are secondary.
  • Record device model, OS version, Explorer package version and lynxSdkVersion, Octane commit, bundle SHA-256, build mode, and whether the patch was applied — for every cell.
  • One variable per cell. If two moved, it is not a cell.
  • Absolute milliseconds are host-bound; only same-device same-session comparisons are claimed.
  • A negative result is a result. If A1 simply works, say so plainly — that is the most valuable outcome available here.

10. Definition of done

Steps 0 and 1 complete for all four cells, with probe output, plus whichever of Steps 2–4 the Step 1 outcome selects. Reply to this issue with the table, the probe lines, and a one-paragraph verdict naming which of the five hypotheses survives. If the session runs out before that, reply with the cells that did complete and state exactly which are missing — a partial matrix with honest gaps is useful; a filled-in matrix with guessed cells is not.

Provenance

  • An agent produced this plan (agent-authored)

Activity

  1. added
    bug
    on Aug 23, 2026
  2. Huxpro commented on Aug 23, 2026

    @Huxpro
    OwnerAuthor

    Plan revision — a fifth variable, and it is the most suspicious one

    The original plan named four variables and pinned a single commit. Both were wrong in the same way: the commit itself is a variable, and the two configurations are not running the same wire code.

    The commit axis

    The examples' device evidence is dated f3c4781d (2026-08-10) — that commit last touched all four example READMEs and their sources, so the verification happened at or before it. The benchmark pins 0fc84da0 (2026-08-15). Between those five days the Lynx wire changed substantially:

    file delta f3c4781d → 0fc84da0
    packages/lynx/src/core/host-driver.ts +2,641
    packages/lynx/src/core/protocol.ts +1,053
    packages/lynx/src/core/client-driver.ts +741
    packages/lynx/src/main-thread.ts +404
    packages/lynx/src/core/transport.ts +111

    Seven commits: octanejs#693 (ReactLynx parity), octanejs#700 (accelerate creation after first-screen adoption), octanejs#706 (specialize compact run teardown), octanejs#707 (keep optional worklet runtime cold), octanejs#749 (re-arm compact acknowledgements), octanejs#750 (destroy-run teardown commands, new 2**43 request base), octanejs#751 (first-tree capture off the first-paint path).

    So "the examples work" and "the benchmark needs a patch" are not statements about the same code. #147's "this is not a regression" line was too narrow — it rested only on git log -S "JSON.stringify(validated)" returning nothing, which answers "was the string encoding ever present" and not "did the wire regress between 08-10 and 08-15".

    Conversely, the commit does not matter for the value-domain question

    git diff --stat 0fc84da0 upstream/main -- packages/lynx/src/core/transport.ts packages/lynx/src/main-thread.ts
    → (empty)
    

    Both files are byte-identical between the pinned commit and today's upstream/main; the last change to either was octanejs#750 on 08-14, before the pin. Running today's main to ask "can an object cross the ContextProxy" cannot produce a different answer and would waste device time.

    Three commit points, for three different purposes

    commit purpose
    f3c4781d (08-10) The only state with recorded device evidence. Control.
    0fc84da0 (08-15) The benchmark's pin. The failing state. Steps 0–3.
    upstream/main Step 4 only — it adds octanejs#762 and octanejs#765, which the pin lacks. Irrelevant to Steps 0–3 (transport identical).

    New Step 1a — run this before the 2×2

    The cheapest cell in the whole plan, and the most likely to end it.

    Build the same example app (packages/rspeedy-plugin-octane/examples/bank-cards, whose README records the fullest device path: first paint → adoption=adopted → background event → committed update) at both f3c4781d and 0fc84da0, unpatched, same build mode, same device, and run both.

    Platform, build mode and payload are all held fixed. Only the commit moves.

    result reading
    both work The commit delta is innocent. Proceed to the 2×2; the discriminator is platform, build mode, or payload.
    f3c4781d works, 0fc84da0 fails A real regression in a 7-commit window. Bisect it (#693, #700, #706, #707, #749, #750, #751 — 3 steps). This ends the investigation far more cheaply than the 2×2, and it means upstream owes a fix, not the benchmark.
    both fail The examples' recorded evidence no longer reproduces at all. Then the device, the Explorer build, or the toolchain has moved since 08-10 — report that plainly before anything else, because it invalidates the premise both sides are arguing from.

    Run Step 1a on both devices if time allows; on iOS first if not, since that is where the recorded evidence lives.

    Revised order

    1. Step 0 — the wire probe (unchanged; still first, and it instruments every later cell).
    2. Step 1a — the commit control on bank-cards, unpatched, iOS then Android. (new)
    3. Step 1 — the encoding × platform 2×2 on the benchmark bundle, only if Step 1a does not already explain it.
    4. Step 2 — build-mode control.
    5. Step 3 — payload threshold.
    6. Step 4 — superlinearity, on upstream/main as well as the pin, so the effect of perf(lynx): streamline dense clear teardown octanejs/octane#762/perf(lynx): compact first-screen component rows octanejs/octane#765 on device is visible.

    The reporting rules in §9 apply unchanged, and now also require recording the Octane commit for every cell — which was already listed there but is now load-bearing rather than bookkeeping.

    Provenance

    • An agent produced this revision (agent-authored)

    Generated by Claude Code

  3. Huxpro commented on Aug 23, 2026

    @Huxpro
    OwnerAuthor

    Result: Step 1a finds a regression; first bad candidate is octanejs#693

    I followed the revised order: receive-side probe first, then the unpatched bank-cards commit control on iOS. f3c4781d works end to end, while 0fc84da0 paints the adopted first screen but drops the first background event → state → committed-update path. Per the revision, I stopped the 2×2 and bisected only the seven named Lynx-wire commits. The first bad candidate is octanejs#693 (01240e694).

    Fixed environment

    • Device: iOS Simulator, iPhone17,1 (Sparkling Navigation iOS 18.5), iOS 18.5, UDID A843BCCF-47DB-4B3B-A76B-A1BB3C780A9A.
    • Explorer: official LynxExplorer-arm64.app from the 3.9.0 release; archive SHA-256 7790f83f69885c5565d451c8c163b870a0b7570a9eef1e4d59ed0b22266abcfa; bundle com.lynx.LynxExplorer, CFBundleShortVersionString=1.0, build 1. Runtime log reports engine 3.9; DevTool client metadata reports sdkVersion=1.4.0 (reported verbatim rather than relabelled as the engine version).
    • App/build: packages/rspeedy-plugin-octane/examples/bank-cards, rspeedy dev, NODE_ENV unset, same port/URL (http://127.0.0.1:3002/main.lynx.bundle?fullscreen=true).
    • Encoding patch: not applied in every row. The only source change was the identical Step 0 receive probe in both directions.
    • Interaction: verify first paint, then tap Boc; pass requires the card number to change from 4558 … 6767 to 6222 … 8058, the selection tick to move, and a new committed update to appear in the probe.
    • No timing is claimed. This was a diagnostic build and a manual DevTool pass/fail cell.

    The first probe bring-up used performance.now(), which is absent in these Lynx VMs and produced ReferenceError: performance is not defined. That run was discarded and is not a cell. I changed only the probe clock to Date.now() identically in every checkout before collecting the valid cells below.

    Commit control and bisect

    Octane commit Purpose Bundle SHA-256 Result
    f3c4781dd2d8878ed11a6ac5442090653afa2011 recorded-device-evidence control eb370522884ded1771d1894cead1f9720b73bfd15f1b1944f9cb289944880c91 pass — first paint, adoption, Boc selection and committed update all work
    01240e6940c8d76884d32e1f3c9ab1f5523a6983 (octanejs#693) bisect step 3/3 b7f85ab1e15ba05f13190df7bb9268208ac3d88b188cf8c1a96755ebe2976f19 bad — first paint only; Boc tap does not update
    59a35ae55 (octanejs#700) bisect step 2/3 557267cc2a8b9010a654d5ad860707682186e88d8e99aed07b959a2c6f64a5d3 bad — same failure
    4a792e39b (octanejs#707) bisect step 1/3 f69a7bc74c441e6ebe920ae7bcddfd051bb666a0ace0be18a118d6e042cab077 bad — same failure
    0fc84da02fd05403ac5e36d2aff631b31168d5ac benchmark pin 9b23adf086df5f00b1ecdc9a811a71c483c0d1646165832536c779110f576a26 bad — same failure

    The binary decisions were #707 bad → #700 bad → #693 bad; with f3c4781d good, octanejs#693 is the first bad commit among #693/#700/#706/#707/#749/#750/#751. The other four candidate points were not directly run because the three bisect decisions eliminated them.

    Probe output (verbatim)

    f3c4781d (pass, including the post-tap commit):

    - [log/background]: __OCTANE_WIRE_PROBE__ {"dir":"mts->bts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":"main-ready","validateMs":0,"validateError":null}
    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":"main-ready-request","validateMs":0,"validateError":null}
    - [log/background]: __OCTANE_WIRE_PROBE__ {"dir":"mts->bts","type":"object","ctor":"Object","keys":5,"strLen":null,"op":"main-ready","validateMs":2,"validateError":null}
    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":"main-ready-request","validateMs":0,"validateError":null}
    - [log/background]: __OCTANE_WIRE_PROBE__ {"dir":"mts->bts","type":"object","ctor":"Object","keys":7,"strLen":null,"op":"ack","validateMs":4,"validateError":null}
    - [log/background]: __OCTANE_WIRE_PROBE__ {"dir":"mts->bts","type":"object","ctor":"Object","keys":5,"strLen":null,"op":"complete","validateMs":0,"validateError":null}
    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":6,"strLen":null,"op":"commit","validateMs":4,"validateError":null}
    - [log/background]: __OCTANE_WIRE_PROBE__ {"dir":"mts->bts","type":"object","ctor":"Object","keys":6,"strLen":null,"op":"ack","validateMs":0,"validateError":null}
    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":5,"strLen":null,"op":"adoption-ready","validateMs":1,"validateError":null}
    - [log/background]: __OCTANE_WIRE_PROBE__ {"dir":"mts->bts","type":"object","ctor":"Object","keys":5,"strLen":null,"op":"complete","validateMs":0,"validateError":null}
    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":6,"strLen":null,"op":"commit","validateMs":0,"validateError":null}
    

    01240e694 / octanejs#693 (bad):

    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":null,"validateMs":0,"validateError":"TypeError: not an object"}
    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":null,"validateMs":0,"validateError":"TypeError: not an object"}
    - [log/background]: __OCTANE_WIRE_PROBE__ {"dir":"mts->bts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":"main-ready","validateMs":0,"validateError":null}
    

    59a35ae55 / octanejs#700 (bad):

    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":null,"validateMs":0,"validateError":"TypeError: not an object"}
    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":null,"validateMs":0,"validateError":"TypeError: not an object"}
    - [log/background]: __OCTANE_WIRE_PROBE__ {"dir":"mts->bts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":"main-ready","validateMs":0,"validateError":null}
    

    4a792e39b / octanejs#707 (bad):

    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":null,"validateMs":0,"validateError":"TypeError: not an object"}
    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":null,"validateMs":0,"validateError":"TypeError: not an object"}
    - [log/background]: __OCTANE_WIRE_PROBE__ {"dir":"mts->bts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":"main-ready","validateMs":0,"validateError":null}
    

    0fc84da0 (bad):

    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":null,"validateMs":0,"validateError":"TypeError: not an object"}
    - [log/main-thread]: __OCTANE_WIRE_PROBE__ {"dir":"bts->mts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":null,"validateMs":0,"validateError":"TypeError: not an object"}
    - [log/background]: __OCTANE_WIRE_PROBE__ {"dir":"mts->bts","type":"object","ctor":"Object","keys":4,"strLen":null,"op":"main-ready","validateMs":0,"validateError":null}
    

    Missing cells

    • Android Step 1a: not measured. The revised plan says iOS first and that f3 good / 0fc bad ends the investigation with the seven-commit bisect; I stopped after that conclusive branch.
    • Original Step 1 A1/A2/B1/B2, Steps 2–4, and upstream/main: not measured, by the same revised stop condition.
    • No iOS timing: not measured, as required for the manual Explorer lane.

    Verdict

    The surviving hypothesis is the Octane commit axis: a real regression introduced by octanejs#693, not build mode, platform, host, payload size, or evidence that ContextProxy accepts strings only. In every bad row the top-level value demonstrably arrives on the main thread as an object-shaped ContextProxy value (typeof === "object", constructor name Object) with four enumerable keys, but the newly failing path rejects it during protocol validation with native TypeError: not an object before an operation can be extracted; the background main-ready direction still validates. Source inspection makes the cross-realm/proxy prototype inspection in the validator a plausible immediate failure point, but that sub-cause is an inference, not a separately measured cell. The benchmark's string patch may therefore work around the regression by reconstructing a local-realm object, but it is not evidence of a general string-only ContextProxy contract; upstream owes the fix beginning at octanejs#693.

    Provenance

    • An agent produced these results (agent-authored)
  4. Huxpro commented on Aug 24, 2026

    @Huxpro
    OwnerAuthor

    Follow-up: operation-level ContextProxy type probe on iOS Simulator

    Per the latest direction, this is an iOS Simulator cell, not a physical-device result. The requested stop condition is met at the top-level value: on the same event.data, Object.getOwnPropertyNames succeeds and Reflect.ownKeys throws.

    Cell metadata

    • Device: iOS Simulator, iPhone17,1 (Sparkling Navigation iOS 18.5), iOS 18.5, UDID A843BCCF-47DB-4B3B-A76B-A1BB3C780A9A.
    • Explorer: official Lynx Explorer 3.9.0 release; bundle com.lynx.LynxExplorer, CFBundleShortVersionString=1.0, build 1; runtime log reports engine 3.9; Lynx DevTool client reports sdkVersion=1.4.0.
    • Octane: 0fc84da02fd05403ac5e36d2aff631b31168d5ac.
    • App/build: packages/rspeedy-plugin-octane/examples/bank-cards, rspeedy dev, NODE_ENV unset.
    • JSON transport patch: not applied. Only the requested diagnostic probe was added immediately before validateLynxBackgroundOutboundMessage(event.data).
    • Bundle SHA-256: 1f5397cb04dabe6e32cdc763173c6d624e627aa514e2d452d44db17f554d43fb.
    • DevTool target: client localhost:8902, session 2, URL http://127.0.0.1:3002/main.lynx.bundle?fullscreen=true.
    • Timing: not measured; this is a diagnostic build.

    Answers

    a. Does Reflect.ownKeys throw? Yes, at the top-level $. The complete thrown string is exactly:

    TypeError: not an object
    

    It threw identically on the required rerun.

    b. Does Object.getOwnPropertyNames succeed on that same value? Yes. It returned:

    ["protocol","renderer","type","request"]

    Object.keys returned the same four keys, Object.getOwnPropertySymbols returned [], the first property descriptor was an ordinary configurable/enumerable/writable data descriptor, and v.protocol read back as 1.

    c. Top-level or nested? Top-level: $. Because the failure is already at $, the recursive walk stops there and reruns every operation on $; there is no nested failure path to report.

    d. What is the failing value? On $:

    • typeof v → "object"
    • Object.prototype.toString.call(v) → "[object Object]"
    • String(v) → "[object Object]"
    • Array.isArray(v) → false
    • Object.getPrototypeOf(v) → null

    This is an engine-backed exotic/bridge value, not merely an ordinary foreign-realm object. As a same-engine control, a locally-created Object.create(null) accepted both operations:

    {"localNullPrototype":true,"getOwnPropertyNames":{"ok":true,"result":["x"]},"reflectOwnKeys":{"ok":true,"result":["x"]}}

    One subtlety: the literal probe Object.getPrototypeOf(Object.getPrototypeOf(v)) also throws TypeError: not an object, because the first call returned null and the literal second call is therefore Object.getPrototypeOf(null). This is not the validator's failing operation: hasCrossRealmPlainPrototype short-circuits on prototype === null, so record() proceeds to Reflect.ownKeys, where the actual regression occurs.

    e. Main-thread engine. Runtime globals identify LepusNG 2.3.0:

    {"lepusVersion":"2.3.0","lepusGcType":"function","lepusLynxType":"object"}

    The active global exposes lepusng_gc, __lepus_version__, __SetLepusInitData, __LoadLepusChunk, and lepusLynx. The Explorer binary contains PrimJS/QuickJS symbols, so this is the Lynx LepusNG / PrimJS-QuickJS-family main-thread runtime, not a browser/JSC global.

    Probe output (verbatim, first complete inbound sequence)

    The clean load emitted the same top-level main-ready request sequence twice. This is the first complete sequence, including the required rerun, copied verbatim from Lynx DevTool:

    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"typeof v","ok":true,"result":"object"}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"Object.prototype.toString.call(v)","ok":true,"result":"[object Object]"}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"String(v)","ok":true,"result":"[object Object]"}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"Array.isArray(v)","ok":true,"result":false}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"Object.getPrototypeOf(v)","ok":true,"result":null}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"Object.getPrototypeOf(Object.getPrototypeOf(v))","ok":false,"thrown":"TypeError: not an object","stack":"    at <anonymous> (file:///main-thread.js:1060:27)\n    at run (file:///main-thread.js:1054:32)\n    at runLynxTypeProbeOperations (file:///main-thread.js:1067:69)\n    at visit (file:///main-thread.js:1069:33)\n    at findFirstLynxTypeProbeFailure (file:///main-thread.js:1070:27)\n    at probeLynxBackgroundOutboundValue (file:///main-thread.js:1071:101)\n    at receive (file:///main-thread.js:1181:41)\n"}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"Object.keys(v)","ok":true,"result":["protocol","renderer","type","request"]}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"Object.getOwnPropertyNames(v)","ok":true,"result":["protocol","renderer","type","request"]}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"Reflect.ownKeys(v)","ok":false,"thrown":"TypeError: not an object","stack":"    at <anonymous> (file:///main-thread.js:1063:14)\n    at run (file:///main-thread.js:1054:32)\n    at runLynxTypeProbeOperations (file:///main-thread.js:1067:99)\n    at visit (file:///main-thread.js:1069:33)\n    at findFirstLynxTypeProbeFailure (file:///main-thread.js:1070:27)\n    at probeLynxBackgroundOutboundValue (file:///main-thread.js:1071:101)\n    at receive (file:///main-thread.js:1181:41)\n"}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"Object.getOwnPropertySymbols(v)","ok":true,"result":[]}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"Object.getOwnPropertyDescriptor(v, <first key>)","ok":true,"result":{"key":"protocol","descriptor":{"configurable":true,"enumerable":true,"hasValue":true,"value":{"type":"number","value":1},"writable":true,"getType":"undefined","setType":"undefined"}}}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"scan","path":"$","operation":"v[<first key>]","ok":true,"result":{"key":"protocol","value":{"type":"number","value":1}}}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"first-failure","path":"$","failedOperations":["Object.getPrototypeOf(Object.getPrototypeOf(v))","Reflect.ownKeys(v)"]}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"typeof v","ok":true,"result":"object"}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"Object.prototype.toString.call(v)","ok":true,"result":"[object Object]"}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"String(v)","ok":true,"result":"[object Object]"}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"Array.isArray(v)","ok":true,"result":false}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"Object.getPrototypeOf(v)","ok":true,"result":null}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"Object.getPrototypeOf(Object.getPrototypeOf(v))","ok":false,"thrown":"TypeError: not an object","stack":"    at <anonymous> (file:///main-thread.js:1060:27)\n    at run (file:///main-thread.js:1054:32)\n    at runLynxTypeProbeOperations (file:///main-thread.js:1067:69)\n    at probeLynxBackgroundOutboundValue (file:///main-thread.js:1071:124)\n    at receive (file:///main-thread.js:1181:41)\n"}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"Object.keys(v)","ok":true,"result":["protocol","renderer","type","request"]}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"Object.getOwnPropertyNames(v)","ok":true,"result":["protocol","renderer","type","request"]}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"Reflect.ownKeys(v)","ok":false,"thrown":"TypeError: not an object","stack":"    at <anonymous> (file:///main-thread.js:1063:14)\n    at run (file:///main-thread.js:1054:32)\n    at runLynxTypeProbeOperations (file:///main-thread.js:1067:99)\n    at probeLynxBackgroundOutboundValue (file:///main-thread.js:1071:124)\n    at receive (file:///main-thread.js:1181:41)\n"}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"Object.getOwnPropertySymbols(v)","ok":true,"result":[]}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"Object.getOwnPropertyDescriptor(v, <first key>)","ok":true,"result":{"key":"protocol","descriptor":{"configurable":true,"enumerable":true,"hasValue":true,"value":{"type":"number","value":1},"writable":true,"getType":"undefined","setType":"undefined"}}}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"failure-rerun","path":"$","operation":"v[<first key>]","ok":true,"result":{"key":"protocol","value":{"type":"number","value":1}}}
    - [log/main-thread]: OCTANE_TYPE_PROBE {"phase":"complete","firstFailurePath":"$","rootWasObject":true}
    

    Conclusion

    The causal chain is closed: native ContextProxy delivers a top-level LepusNG bridge/exotic value that looks object-like, enumerates through the legacy Object.getOwnPropertyNames/Object.keys APIs, and exposes ordinary property descriptors and reads, but is rejected by Reflect.ownKeys with the bare native TypeError: not an object. octanejs#693 changed record() from the supported operation to the unsupported one, so the fix belongs in Octane's protocol validator rather than in the benchmark or a JSON transport shim.

    Provenance

    • An agent produced this follow-up (agent-authored)
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

    agent-authoredbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions