Skip to content

[Lynx M3] 收紧双线程 bundle,并把验证过的专用路径交付为默认 #290

Closed

Description

@Huxpro

总路线:#282(承接 #281)。所属 milestone:Lynx ceiling M3 — 平台下限与产品默认路径。

目的

优化必须出现在用户正常安装/构建得到的产物中。当前 plugin 的 core 仍默认 universal;#58 的 target cutover 与 size 目标尚未作为完整产品门槛交付。

依赖 #284、M1/M2 对相应生产范围的验收。#289 属于 optional capability,不阻塞 direct-PAPI 默认路径;#193 决定原生 list 覆盖,未支持范围不能默默丢功能。

切分

  1. 使用 lynx-bundle-size/inventory.mjs 与 core-switch.mjs 更新同一 app 的 raw/gzip/Brotli、实际 Lepus bytecode、MTS/BTS reachable-module 列表。移除未使用的 universal interpreter、重复 validation/legacy handshake、可选 worklet/runtime graph;按真实引用移除,不靠 marker 字符串命中推断全部语义。
  2. 单独 PR 打开已证明覆盖的 compiler/core defaults;保留版本化、可诊断且有明确范围的 fallback/opt-out。打包外部 consumer 验证 published source、双图消重、HMR/代码分割及降级行为。

验收

通用合并与证据契约

  • 保持 Octane 的 hooks、refs/effects、原生事件、Suspense/Activity/portal、reject/abort 与 cleanup 语义;适用模式必须覆盖。共享两条路径时使用同一语义实现,并加独立的用户可观察断言,不能只做 differential 对比。
  • 每个优化 PR 带 baseline/candidate 的精确 SHA、生产 bundle hash、机制命中/回退原因、同窗口 AB/BA 原始样本及成本归属;profile 负责解释,未插桩生产产物负责 headline。未测到的收益标为 hypothesis。
  • 先拿到相关 owner 数据,再实现一个机制一条 PR;正确性与 current-head CI 通过才算交付。记录对冷启动、另一线程、GC、内存和 bundle 的成本转移。

由 agent 根据 #281 的后续规划请求创建。

Activity

  1. Huxpro commented on Sep 8, 2026

    @Huxpro
    OwnerAuthor

    M3 default-path audit is now in ready PR #308 at exact head a13e6ed851091891fd10b4805826cdf5d2b73acf.

    This slice deliberately does not flip the product default. It adds a reproducible production ledger and records the blockers instead:

    • fixes the rows-0 inventory to fold out the hand-authored Block ceiling arm; the old unresolved-selector build overstated the normal product artifact
    • records encoded raw/gzip/Brotli/SHA, decoded MTS/BTS LepusNG bytes, and full Rspack module/used-export lists
    • classifies modules from the complete transitive incoming Lynx-layer graph; one 707-byte CSS module is correctly shared instead of nondeterministically moving between MTS/BTS based on discovery order; two repeated production builds produced identical per-group ledger hashes
    • four controlled arms isolate the Block core, MTS codegen, and positional-addressing costs. Block saves 119,086 raw / 30,952 gzip / 25,439 Brotli bytes on decoded BTS while leaving decoded MTS byte-identical. Descriptor-mode codegen adds 998 gzip bytes on MTS only; product addressing adds 45 gzip on BTS and 118 gzip on MTS.
    • contemporary six-artifact comparator gzip median is 54,323 bytes, so the 1.5x gate is 81,484.5. Current Octane is 203,994 gzip (3.755x median); even the controlled Block+program arm is 174,756 (3.217x). The size gate fails.
    • public semantic matrix records Block-path blockers: effects and context are explicitly refused; Suspense/Activity/portal, arbitrary native-list/component scope, full fault/abort cleanup, and external consumer HMR/lazy/fallback cutover coverage are not yet proven.

    Local evidence: four-arm controls green; current inventory emitted; repeated ledger determinism green; 67/67 targeted Lynx/Rspeedy tests green; exact-base pnpm sync clean. PR is now running full exact-head CI. #290 remains open for graph reduction, semantic closure, cutover, external-consumer verification, and default-build Native performance acceptance.

  2. Huxpro commented on Sep 8, 2026

    @Huxpro
    OwnerAuthor

    Audit slice merged via #308 as merge SHA 57b77fd.

    This closes only the reproducible inventory/default-path audit slice. #290 remains open: the relative size gate still fails and the Block semantic/product cutover gaps recorded above remain blockers.

  3. Huxpro commented on Sep 8, 2026

    @Huxpro
    OwnerAuthor

    Passive-effect semantic slice merged via #309 as merge SHA e8c2e0ad47fb93aa0edfaf0100abbcd0bb3db3a1.

    This closes only page-component useEffect coverage. Insertion effects remain explicitly refused; keyed-row/native-list effect ownership and the other audit blockers remain open. The product default is unchanged and #290 stays open for full semantic closure, graph reduction, external-consumer fallback proof, the relative size gate, and default-build Native performance acceptance.

  4. Huxpro commented on Sep 8, 2026

    @Huxpro
    OwnerAuthor

    ACK/abort correctness is now isolated in PR #310 at exact head 0fc05692eb2e6b62a0981e4f94244522775b9ca0.

    The Block path now treats the native ACK as its publication boundary:

    • core value writes, keyed topology, ID allocation, and listener writes are journaled per attempt;
    • derived hook/cache/effect/handler state publishes only after ACK;
    • pre-ACK mount, update, and unmount rejection restores the last accepted logical tree and can retry full host work;
    • an old-version event delivered while the next frame is in flight still reaches the old accepted closure;
    • a post-ACK host fault retains the accepted state;
    • hand-written programs that mutate then call context.commit() receive the same rollback journal.

    Self-review found and fixed a second-order unmount hole before opening the PR: the background mounted pointer and derived hook-scope disposal had been clearing before ACK. The regression now rejects an unmount frame, proves the same program performs an empty update rather than a duplicate mount, then accepts a later unmount.

    Evidence:

    • Lynx project: 50 files, 871/871 tests; focused Block background/component suite: 63/63;
    • scoped typecheck, formatting, pnpm sync, and production build controls pass;
    • exact-final Block production bundle: 462,746 raw / 174,835 gzip; BTS 57,528 gzip; MTS 117,156 gzip and byte-identical across the core switch;
    • the correctness journal costs about 981 gzip BTS over the preceding merged Block baseline, while Block remains 29,596 gzip below universal BTS;
    • exact-final same-window 10k Lynx-for-Web AB/BA, n=15 each, 0 DNF: candidate/base medians were create 885.6/885.6, update10th 111.4/114.1, select 30.1/31.6, updateStorm 380.7/362.3, selectStorm 89.8/87.3, clear 561.9/548.3 ms. Ranges are overlapping/noisy; this PR makes no speed claim.

    Machine-readable receipts are SHA-256 9d52233ec7bd910c09f69ce4fcc8d20e9c648d27e2281bc7ae17b0a7a9b78775 (core switch) and 775ffd32be3e186e9eb6ade8a1445e9f4b0dc6464be7084c4dd65286e5f2db85 (full AB/BA output). Clean current-head CI is running; #290 remains open after this PR because the broader Block capability/default-flip gaps documented in the prior audit remain.

  5. Huxpro commented on Sep 8, 2026

    @Huxpro
    OwnerAuthor

    M3 focused delivery update — ACK/reject rollback semantics landed, but the default gate remains open:

    • Merged Rollback rejected Lynx Block render attempts #310 into new-lynx as 72eceb9e90303b0b6ee73492e548e5e042061523 (exact PR head 0fc05692eb2e6b62a0981e4f94244522775b9ca0).
    • Exact-head full CI run 34227701371 completed green after an isolated rerun of React parity shard 3/4. The first attempt's only source failure was the untouched input-otp pristine React oracle's asynchronous selection test; the same base file had passed the immediately preceding merged-main run, and the isolated same-head rerun plus parity coverage aggregate passed. Merged-main push run 34229830401 then passed every required job without failures.
    • The Block path now journals render-state mutations lazily and publishes component/program state, hook caches/effects, IDs, listeners, mount/unmount ownership, and derived-scope disposal only after the real transport ACK. A pre-ACK reject rolls the draft back; a post-ACK fault keeps the accepted state. Rollback failures aggregate without hiding the primary rejection.
    • Independent regressions cover rejected mount/update/unmount followed by successful reuse, old-version events observing the old listener before ACK, and later unmount without duplicate mount or lost cleanup. Final Lynx suite: 50 files, 871/871 tests; focused component/background coverage: 63/63.
    • Production receipt SHA-256: 9d52233ec7bd910c09f69ce4fcc8d20e9c648d27e2281bc7ae17b0a7a9b78775. Universal: 578,211 raw / 204,049 gzip. Block: 462,746 raw / 174,835 gzip. Decoded Block ownership is 57,528 gzip BTS + 117,156 gzip MTS; MTS is byte-identical to universal. The stronger abort contract costs +981 gzip BTS versus the prior Block baseline while retaining a 29,596 gzip reduction versus universal.
    • Exact-final same-window Lynx-for-Web AB/BA (n=15, 0 DNF) is retained under raw receipt SHA-256 775ffd32be3e186e9eb6ade8a1445e9f4b0dc6464be7084c4dd65286e5f2db85; ranges overlap and update-storm/clear move in opposite directions, so no speed claim is made from that noisy diagnostic.
    • Block + emitted program is still 175,981 gzip, above the pre-registered 81,484.5-byte default gate. Context/effect breadth, Suspense/Activity/portal, arbitrary list/component scope, external HMR/lazy/fallback, and full capability-aware consumer coverage remain unresolved. Therefore no product default was flipped and [Lynx M3] 收紧双线程 bundle,并把验证过的专用路径交付为默认 #290 remains open.
  6. Huxpro commented on Sep 8, 2026

    @Huxpro
    OwnerAuthor

    M3 resident-driver CPU slice merged via #311 as merge SHA f7d8c56c8514bed375927730533d18c8c7c3e909 (exact PR head f01235078e061b31ca56eae8b87e354936e93434).

    • Exact-head ready-state CI passed the complete matrix: https://github.com/Huxpro/octane/actions/runs/34252832486
    • The merge-SHA push run is green after rerunning one artifact-infrastructure failure: https://github.com/Huxpro/octane/actions/runs/34254064204. On attempt 1, React parity shard 1/4's test step passed and only Upload React parity Vitest shard report failed while FinalizeArtifact returned intermediary HTTP 403; the same merge SHA's failed chain passed on attempt 2.
    • Eligible addressed dense append runs now resolve the resident UniversalProgramPlan and execute the emitted straight-line .run driver. The descriptor interpreter remains the diagnosed fallback for an unavailable/incompatible driver.
    • The emitted driver publishes each created node into the caller journal before later PAPI writes, and event installation is journaled before setEvent; fault regressions prove mutate-then-throw cleanup.
    • Production Native same-window AB/BA at create@1k, n=5 each: baseline [1240,1201,1276,1186,1185] ms (median 1201), candidate [1074,1189,1163,1193,1095] ms (median 1163), candidate/base 0.96836 (-3.2%). Supporting Web ratios at 1k/3k/5k/10k were 0.940/0.962/0.938/0.974.
    • The improvement is not free: the candidate Native artifact is 581,279 raw / 206,018 gzip versus 579,658 / 205,182, a +1,621 raw / +836 gzip tax. The current Block+program decoded ownership remains 57,568 gzip BTS + 119,104 gzip MTS = 176,672, well above the frozen 81,484.5-byte product gate.
    • Focused tests passed 77/77; the full Lynx project passed 50 files / 874 tests; scoped and full-repo typecheck, sync, and formatting gates passed. Two local full-suite attempts were invalidated by shared-host timeout/OOM/hang noise, so no local full-suite success is claimed; the exact-head and merge-SHA CI matrices are the authoritative full gates.

    This is a measured default-path CPU improvement only. It does not close the semantic coverage matrix, the bundle gate, external-consumer cutover proof, or default-build Native acceptance. No product default was flipped and #290 remains open.

  7. Huxpro commented on Sep 8, 2026

    @Huxpro
    OwnerAuthor

    M3 #193 recycle-side experiment completed as a measured NO-GO (full evidence in the new #193 comment).

    • Tested a run-aware direct recycle rebind on the real Native list path, not a synthetic helper benchmark.
    • Formal same-device B/C/B/C: 20 guarded windows per arm, ~276 materializations/recycles each, 35°C and thermal status 0.
    • Candidate vs base: aggregate framework/cell -1.1%, but median framework/cell +2.35%; aggregate callback/cell +1.65%, median +4.69%; aggregate span/cell +0.76%, with span slower in both arm pairs.
    • The only stable host-boundary reduction was 7 rare setClasses calls across the base population; attributes stayed at 4/cell.
    • Cost: +2,496 raw / +1,006 gzip in the device probe; independent production core-switch showed +2,027 raw / +836 gzip MTS.

    Per the M3 acceptance rule, this is not counted as progress and no PR/branch was published. It avoids shipping a size regression for noise-level CPU movement. The next #193 work stays on the distinct compiled materialization/program-per-cell half; #290 remains open.

  8. Huxpro commented on Sep 8, 2026

    @Huxpro
    OwnerAuthor

    M3 follow-up: the local #193 Layer-1 compiled-cell consumer is NO-GO and will not be pushed. Native Explorer 4.1 proved the row address and straight-line program are present and addressedProgramRuns=1 is negotiated, but native-list rows have no ordinary placement, so universal-core drops their otherwise-successful program manifests (prepared batch programs=0). The wire remains expanded (1,402 commands/100 rows; 140,002/10k), and listProgramCellRuns=0. A 10k real callback window still used 63 generic element creates for 9 cells. This is an unreachable consumer plus ~0.75–0.95 KiB gzip, not a performance win. Detailed evidence and the required producer-side next slice are recorded on #193.

  9. Huxpro commented on Sep 8, 2026

    @Huxpro
    OwnerAuthor

    M3 #193 producer follow-up 结论:NO-GO。

    本地未推送 090ce90 证明了 async-readiness 首批 native-list proof 可以安全转成 dense deferred addressed runs;287 个相关测试和 source typecheck 通过,体积仅 +187 gzip。但正式 create@1000 发生在 rows=0 空壳之后的第二批,候选在空壳 prepare 时已关闭 proof,未命中被计时路径。

    因此 Native 5×AB/BA 的 1135→1121 ms(0.988x)及 Web 1k/3k/5k/10k 的 0.984x/1.010x/0.982x/1.037x 均按噪声处理,不计路线收益。Native 原始 receipt sha256 47b94c9d5bd829b20175f455d290a28f2832d9319aebcaeec1d77ba0d37262d2;完整归因见 #193 最新评论。候选不推送、不建 PR,#290 保持 open。下一步回到 readiness-known 的 direct deferred producer 与第二批 CPU 分解,避免重复已落地机制。

  10. Huxpro commented on Sep 8, 2026

    @Huxpro
    OwnerAuthor

    Correction to the previous #193 producer conclusion: the lynx-table workload used there renders rows as ordinary <view> hosts, not native <list-item> cells. Its rows=0 → create behavior therefore could not decide the native-list producer/consumer path. Treat the earlier “producer misses the timed second batch” statement as scoped to that table fixture, not as a #193 Layer 1 verdict.

    The corrected real Native <list> probe first found and fixed an ACK semantic bug (OL079 after eager→deferred compaction). The producer/transport fix is merged in #312 as 57e4f2dfbf2e245ef9b8cef1ec05662619840e4a, with both exact-head and merge-SHA CI green. The compiled-cell consumer is ready PR #314 at 963dbe12f20ad5855f34ad530ef91e976a83b8a6.

    Measured Layer 1 result on Android Aries 10 / Explorer 4.1 / thermal 0:

    • cold, fixed B/C/C/B ×5, 10 pages/arm, exactly 9 fresh cells/page: total 0.8652x aggregate / 0.9020x median; callback 0.8633x; framework 0.6957x aggregate / 0.5625x median;
    • steady, 20 guarded windows/arm with at least 50 materializations and recycles each: broad callback 0.7781x and framework 0.6950x; most common exact shared signature total 0.9481x, callback 0.7856x, framework 0.7256x;
    • cold PAPI ledger is symmetric on ID allocation, attrs/classes, and flush. Baseline uses 63 generic creates + 63 inserts; candidate uses the resident program's 9 list roots + 18 views + 36 texts + 54 appends. No cost is omitted or pushed outside the measurement;
    • stacked device-probe cost is +1,113 gzip versus f7d8c56c8; consumer-only controlled core-switch cost is +962 gzip over perf(lynx): retain initial list program proofs #312.

    Receipts: cold SHA-256 3a53c82240e027e3967fd2fe85d3f33e976efcabc59514fec720acfdbc7c1c6e; steady file SHA-256 10fa4b3f3a547ac8fc146ed0c30e11e5ca21a706ff911bcc4812c97d562f1843; exact core-switch SHA-256 d1528980b5b8e1c859fe2add693da1853634f8a8278d7763f8458cf672d59176.

    This is a GO for #193 Layer 1, pending #314 CI. It is not M3 completion: #290 stays open because the 177,748-gzip block+program artifact still fails the 81,484.5-byte gate, the broader semantic/default matrix remains incomplete, and Layer 2's platform API is unresolved.

  11. 77 remaining items

  12. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    Landed via #355.

    • PR head: d8e327fa0b720faf4f0e34c376079e3bdfb7da67
    • exact-head CI: 34565163228, 26/26 success
    • merged new-lynx: 994080cfbc995d6fd104e2ca23a568c6c7a3829b
    • merged-main push CI: 34565959410, 26/26 success

    The dual-thread application graph now exposes a separate, immutable feature/role ledger alongside semantic requirements and resident-program coverage. No runtime selection or performance claim was made in this slice; the next PR will consume all three proofs with a conservative support matrix.

  13. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    Ready: fail-closed Block eligibility selector (#356)

    PR #356 now consumes the three independent application-graph proofs without changing the selected runtime:

    • exact base: new-lynx@994080cfbc995d6fd104e2ca23a568c6c7a3829b
    • exact head: c2d4242af7fe88e3c9dc0279e45c7ff326849b83
    • selector report: immutable/versioned octane:lynx-block-selection metadata on the generated main-thread asset
    • conjunction: complete paired resident programs + paired semantic facts + paired feature facts + identical module sets
    • exact refusal sites: unsupported runtime use/re-export, opaque access, keyed-range topology/row hooks, and unsupported template roles

    Self-review found that the v1 feature ledger was not sufficient for a positive verdict: structural program addressing represents every slot hole as a range, so it cannot distinguish scalar text from ordinary component/directive/renderable values. The PR therefore upgrades the neutral compiler/Rspack/Rspeedy feature contract to v2 and records ordinary components, fragments, @if/@switch/@try/Activity, bare renderable holes, and native list/list-item. All currently fail closed; the top-level keyed-row component remains owned by the existing keyed-range proof to avoid duplicate rejection.

    Local evidence:

    • focused compiler/Rspack/Rspeedy chain: 7 files, 123/123 tests
    • real production compatible graph: paired 2/2 programs and eligible:true
    • real production incompatible graph: preserves its 0/1 partial-program reason and eligible:false
    • affected projects: 490 files / 8,674 tests passed / 1 skipped; known local packed-consumer strict-peer install failure occurs before build, and one load-sensitive HMR timeout passed 70/70 in isolation
    • changed-file typecheck, formatting, pnpm sync, and clean diff pass

    This is advisory build evidence only: emitted application JavaScript, compact graph selection, default core, bundle-size headline, and runtime behavior are unchanged. Current-head CI is running; the next focused slice must consume this report in product selection and prove capability/static fallback plus external-consumer behavior before cutover.

  14. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    PR #356 current-head update: 8c991995ab4e7835ed88be36c4547e1c19fc87fc.

    The pre-merge Block refusal audit found one distinction that resident-program coverage alone cannot prove: the first-screen resident program accepts a native event binding on its root, while the Block program deliberately refuses that root binding because the root is the node its parent inserts. Feature requirements v2 now records program-root-event from the compiler's finished plan root and the selector fails closed at the exact authored site. Ordinary host ref is also retained explicitly (host-ref); host spreads remain an existing main-thread compile error.

    Additional exact-head evidence:

    • focused compiler/Rspack/Rspeedy chain: 123/123
    • correction rerun: 79/79
    • changed-file typecheck and formatting: pass
    • pnpm sync and git diff --check: pass

    The earlier head's CI completed green, but it is now superseded. Current-head CI must pass before merge.

  15. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    Landed the fail-closed Block eligibility selector in #356.

    Exact evidence:

    The correction before merge made host-ref and program-root-event explicit template feature requirements. This is required even when resident program coverage is complete: a root event can be supported by the resident first-screen program but rejected by the Block template program because its root is parent-inserted. The selector therefore remains conservative across both program coverage and the distinct template-feature ledger.

    Scope: this slice is advisory metadata and selection logic only. It does not change the default core, generated JavaScript, or runtime behavior, so it makes no performance claim. The next dependency is automatic availability of the main-thread program backend in a normal application build; without that, an omitted-config build cannot produce the paired coverage required for a truthful default selection.

  16. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    Ready: default resident-program backend (#357)

    PR #357 removes the omitted-config gap that kept #356 eligibility evidence empty in an ordinary application build:

    • exact base: new-lynx@22a2bde6ef30097524d463e8390ae9c2042be959
    • exact head: 47cbe2d360ede26df01b0c93406da66e80a6555a
    • normal dual-thread Rspeedy builds now use the renderer-owned main-thread backend and positional addressing by default
    • the backend is a serializable { request, signature } reference, so Rspack worker compilation remains available; each worker loads and verifies the renderer module
    • program-address digests return from workers and are cross-checked in the main compilation before output is accepted
    • mainThreadProgramBackend: false preserves the full command-path control, while programAddressing: false preserves compiled programs with descriptor transport
    • plans accepted by runtime lowering but explicitly refused by the exact create emitter now conservatively retain the command path instead of making a default build fail

    Local evidence:

    • owning projects: 76 files / 1,236 tests passed
    • generated-archive external consumer: 1/1 passed and finds the same src/BlockEligible.tsrx program address in both decoded thread programs with no manual backend option
    • changed-file and full Lynx-package typechecks pass
    • pnpm sync, formatting, changeset, and clean diff pass
    • production core-switch receipt: /data00/home/xuan.huang/.codex/tmp/m3-default-backend-core-switch.json; BTS gzip 85,467 / 54,193 / 54,193 / 54,263 B and MTS gzip 104,369 / 104,369 / 105,389 / 105,730 B across universal / Block / Block+descriptor / Block+address, with program counts 0/0/1/1 and all identity assertions passing

    The one-shot build durations in that receipt are not treated as a latency experiment. This PR does not flip the background core or make a runtime performance claim; it supplies the normal-build compiled/addressed evidence needed for the next static selection slice. Draft current-head CI is starting.

  17. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    PR #357 current-head correction: fb55967c0e366fa7353ebcd01bd8cfd084a01a70.

    The first ready CI run correctly exposed an old Octane integration assertion that still required a described-but-unemittable Lynx plan to throw. That is incompatible with making this backend a normal build default: the exact emitter probe now declines the plan before a positional program exists, and the command-path encoding must remain byte-identical. The integration test now asserts that exact fallback and template encoding.

    Correction evidence:

    • exact compiler seam test: 26/26 passed
    • Octane + Lynx + generic Rspack + Rspeedy: 547 files, 9,662 tests passed, 1 skipped; one unrelated load-sensitive HMR 5 s timeout passed 35/35 in isolated rerun
    • pnpm sync, targeted formatting, and clean diff pass

    The superseded CI failure was 1 assertion among 7,110 tests in its shard, with 7,109 passing. A fresh complete current-head matrix is now required before merge.

  18. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    PR #357 current-head correction: 35c0eed91972b0a356707a1bf4e3a4baa9e78a5e.

    The previous exact-head run was green in every implementation/typecheck/test shard; the browser lane’s 26 files / 127 tests also passed, then its real Lynx-for-Web profile smoke failed because the normal build now executes a resident emitted program and the gate required only the interpreted applier walk bucket.

    The correction keeps the 40% unmatched ceiling and requires either applier walk or compiled program create. It also re-derived probes from the current production-minified script so the caller fallback attributes only the two actual emitted frames, not the resident-address lookup, dense-span selector, visitor, or profile-injected PAPI wrappers.

    Local exact CI commands passed: FCP smoke painted 1,000 rows with no DNF; the 3-repetition profile had 16.9 ms named median, 7.615 ms unmatched median / 31.1% unmatched-share median, and 1.714 ms in compiled program create. These are CI smoke/attribution values, not a latency claim. The 37 focused profile tests pass, as do pnpm sync, formatting, and git diff --check.

    New exact-head CI: https://github.com/Huxpro/octane/actions/runs/34578845001

  19. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    Landed the default resident-program backend via #357.

    Exact evidence:

    The exact-head rerun was limited to an infrastructure-only React parity failure: ANSI progress output contaminated its JSON report on attempt 1; shard 3/4, aggregate coverage, and provenance all passed on the same head in attempt 2. Both the PR and merged-main browser lanes independently passed 26 files / 127 tests, the 1,000-row no-DNF FCP smoke, and the resident-program-aware MTS attribution gate.

    Normal dual-thread application builds now compile and address eligible first-screen programs through the serializable renderer-owned backend, including Rspack workers and packed external consumers. Explicit command-path and descriptor-transport controls remain. This slice still leaves the background core universal and makes no latency claim; the next focused PR consumes the landed three-proof selector to choose one static compact core or fail closed to universal.

  20. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    Draft: automatic fail-closed Block product selection (#360)

    Exact base: new-lynx@22dc9014bc3572c8cc04889a396f6d5428fc96d7
    Exact head: c1bba5e88a3334539b0acf69305f554bdfff3a1c

    This slice consumes the landed three-proof selector in the same compilation. Omitted core chooses Block only for an eligible one-shot production application; development/watch, missing/incomplete/unsupported graphs, and a mixed multi-entry application remain universal. Explicit universal/block controls remain. The plugin rebuilds the tiny background-root selection dependency and authenticates its final edge before it publishes versioned decision metadata.

    The lynx-table graph initially failed closed because useCallback and useRef were not in support-matrix v1. Both already execute through the shared universal hook scope on Block; independent tests now prove ref identity/value persistence and callback dependency reuse/invalidation, so matrix v2 admits them without new runtime semantics.

    Local evidence:

    • Lynx + Rspeedy owning projects: 65 files / 1,072 tests green
    • focused core/build/packed-consumer chain: 8 files / 185 tests green
    • clean-head five-arm receipt SHA-256 0e143ebdcd104ab001a5dab772c2c7be3f3fface09f9dde6b46e0f0ef05c5bf6
    • automatic is byte-identical to explicit Block+default-program: bundle 160,303 gzip; BTS 54,264 gzip; MTS 105,730 gzip; identical SHA-256 in all three boundaries
    • automatic decision is eligible Block with no reasons; Block probes 3/3 and universal-root probes 0/2
    • BTS passes the frozen 81,484.5 B compact-core gate
    • 1/8/32/128/256 static-host emission stays within a fixed +256 B/host linear ceiling; repeated table row shapes share addressed programs; lazy chunks explicitly fall back
    • pnpm sync, format, diff checks, and Lynx production/testing/typetest types pass

    No latency claim is made from build duration. pnpm typecheck's only terminal error was the untouched PDF lane resolving two incompatible Vitest peer graphs; exact-head CI is the full authority. PR remains draft until review is complete, then it will require the full ready-state exact-head matrix before merge.

  21. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    #360 final-head correction and product-path Web matrix

    Exact base: 22dc9014bc3572c8cc04889a396f6d5428fc96d7

    Exact candidate: d329b16e66b76687e1f541c4361b6deddad0f228

    The first Native candidate at 96a245d2d5bae727ff5713c2a52c4fcb75e73fb5 was a real DNF, not a timing sample. Its exact base completed, while the automatic candidate failed at startup. Debug-info reconstruction placed the top frame at Block commit tracking's Promise.allSettled; the official Lynx background runtime is ES2015 and does not list that ES2020 method. 735aba70e06b2b09cf789db2ce4320f609e88e05 replaced it with rejection-settled then chains and added an independent no-allSettled render/flush regression. That head's CI is 26/26 green: https://github.com/Huxpro/octane/actions/runs/34587528758

    Profiling then exposed a separate default-path clear regression: automatic sent 5,000 host commands for 1,000 rows while universal sent one. The final head preserves each complete Block allocation range as the already-supported destroy-run; fragmented histories split only at real allocation holes. Dense, appended, fragmented, background transport, host/client acknowledgement, and stream-differential tests all pass. The profile replication now observes one background command and one main command for automatic clear.

    Exact final-head artifacts

    • automatic Native rows 0: 417,995 B; SHA-256 2c8427edff2a218c35cc4c8e0050139b44d41de70455eaf5e6c49cf90dcd7825
    • automatic Native rows 1,000: 418,290 B; SHA-256 601f985b54733ea06b23b8590b801b7b1ab5dbdd15e8e662a87a9a5da492399d
    • automatic Web rows 0: 433,208 B; SHA-256 772d0f2a4f86caffd5e2ec7e2b209ed3fd5ca7164dbfc2062c721551beb154a1
    • automatic Web rows 1,000: 433,485 B; SHA-256 181fa1ac3e3ae9d7a59bba5f782196d00c8d644105d9049b56bde7e456b1f32f

    Shipping Web, same window

    1,000 rows, n=7, interleaved AB/BA, 0 DNF; 32× Intel Xeon Platinum 8336C; load start 1.86/1.67/1.29, end 2.31/1.80/1.35; @lynx-js/web-core 0.22.2; comparator source vue-lynx@02376ecd1cd62d3797ff1de1209d82dc2f9d91d9.

    op universal automatic Vue vdom Vue vapor ReactLynx
    create 120.8 100.7 159.1 166.6 133.1
    update10th 28.7 18.1 22.2 18.5 31.9
    select 18.5 19.5 19.1 19.8 19.8
    updateStorm 88.3 45.6 116.3 47.3 429.5
    selectStorm 20.1 25.2 56.4 22.6 176.6
    clear 23.9 16.6 25.1 25.8 30.2

    Raw samples in operation order [create, update10th, select, updateStorm, selectStorm, clear]:

    {
      "universal": [[120.8,128.3,125.7,117.7,141.1,119.9,114.4],[26.4,29.2,28.7,32.2,28.9,23.8,23.3],[18.3,18.2,18.5,19.5,20.2,15.2,21.0],[79.9,94.2,88.3,96.1,79.7,79.4,110.7],[20.1,28.6,16.7,20.3,20.5,18.4,20.0],[21.6,23.9,32.0,21.1,23.6,26.0,28.3]],
      "automatic": [[101.0,99.2,105.0,100.7,97.5,102.0,97.0],[18.1,17.8,27.2,15.0,14.1,25.7,28.1],[18.5,14.1,19.5,18.8,20.1,21.1,20.3],[43.0,41.6,43.6,45.7,46.2,45.6,46.0],[22.7,22.7,23.1,25.2,25.4,26.3,26.5],[16.6,22.0,27.4,16.5,16.7,15.6,15.5]],
      "vue-vdom": [[154.8,159.1,161.8,160.7,158.2,149.4,161.8],[23.0,22.3,26.6,20.9,22.0,13.4,22.2],[19.1,17.4,16.2,15.6,20.0,20.3,20.4],[114.0,128.6,121.7,108.8,112.8,116.4,116.3],[55.6,67.2,66.7,55.0,56.4,55.3,57.3],[25.6,23.2,34.2,25.1,21.6,20.5,27.1]],
      "vue-vapor": [[161.1,184.5,190.0,170.0,164.1,163.7,166.6],[18.5,17.9,16.9,20.2,18.1,20.1,20.5],[19.8,18.3,17.9,19.1,20.1,21.2,20.3],[46.3,45.0,48.0,48.6,47.3,48.9,46.7],[22.4,20.1,20.6,22.8,24.3,22.8,22.6],[26.8,24.4,23.9,26.1,25.8,25.0,26.3]],
      "react": [[133.2,125.6,137.6,133.1,136.7,130.3,127.8],[32.0,31.9,36.4,31.9,31.4,18.8,22.8],[19.8,16.3,17.3,20.8,18.3,20.6,20.6],[427.9,438.3,426.3,445.6,429.5,430.5,428.9],[169.5,184.9,178.6,188.3,171.9,172.3,176.6],[27.4,32.0,32.2,30.2,30.7,27.1,29.4]]
    }

    The Web storm rows are disclosed but are not equal-work device claims: the profile window shows automatic performed two effective commits/four updates, while universal scheduled nine passes, eight empty, and published two final updates. Native's storm recipe uses a flush plus frame barrier per tick. The final exact-head Native 5× AB/BA matrix is still pending Sandbox capacity and remains a merge gate.

    Local gates on the final head: full Lynx 56 files / 984 tests; focused host/protocol 6 files / 269 tests; benchmark stages 237 tests; Lynx production/testing/typetest types; sync/format/diff all green.

    Current exact-head CI: https://github.com/Huxpro/octane/actions/runs/34589099633

  22. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    Final evidence-only commit correction: PR #360 now points at cf1018a051cd14b2c384ed0541b0ee5ee1789970. It adds the checked-in raw fresh-page record generated from the already-built d329b16e66b76687e1f541c4361b6deddad0f228 runtime candidate; no runtime/build input changed, so the recorded bundle hashes remain exact for the final tree.

    Record: benchmarks/lynx-table/stages/results/issue290-default-final-production-ab-1000.json

    It proves all-row FCP/settled parity rather than a speedup: candidate 151.3 ms versus base 150.7 ms (1.004×; overlapping ranges), identical final row/count/checksum semantics, and candidate Web bundle 433,485 B versus base 552,965 B.

    Exact-head CI: https://github.com/Huxpro/octane/actions/runs/34589442011

  23. Huxpro commented on Sep 11, 2026

    @Huxpro
    OwnerAuthor

    Final clean five-arm default-selection receipt on exact PR head cf1018a051cd14b2c384ed0541b0ee5ee1789970:

    • receipt SHA-256: 0da4f8c006ba1c4f0aed8bd504278c2e21c4a413fee0ae85e837f4dbf799da6b
    • source was clean (dirty: false); all controls passed
    • automatic is byte-identical to explicit Block + resident program:
      • encoded raw/gzip/brotli: 418,039 / 160,376 / 134,385 B; SHA-256 9dcd3c7c2b3e9f59d1f691a78ee23bc9ac2b5f5f68a65201ffd1e833185b83e0
      • BTS raw/gzip/brotli: 189,097 / 54,337 / 46,719 B; SHA-256 4f3bbbb2d9707c2c2a77a5fe27e20208e1898d204e3fbfca16072d6eebfa2e57
      • MTS raw/gzip/brotli: 226,095 / 105,730 / 87,117 B; SHA-256 59144f94ca942701c331b02aa3be65abd3bcfae2bddd4235de8b155a3b9f07db
    • v1 decision: mode=automatic, selectedCore=block, eligible=true, reasons=[]
    • probes: Block 3/3, universal root 0/2, resident plan 1/1
    • decoded BTS gzip 54,337 B passes the frozen 81,484.5 B compact-core gate

    Command: OCTANE_AUDIT_BASE=HEAD OCTANE_CORE_SWITCH_OUTPUT=/data00/home/xuan.huang/.codex/tmp/m3-auto-block-core-switch-cf1018a05.json node benchmarks/lynx-bundle-size/core-switch.mjs.

    This closes the exact-head artifact-selection proof. Build duration is excluded from performance claims; current-head CI and the final leased-device AB/BA matrix remain the merge gates.

  24. Huxpro commented on Sep 12, 2026

    @Huxpro
    OwnerAuthor

    Corrected Native product gate: automatic Block + compact product

    The first automatic-only Native comparison was a real regression because the selected Block path still synchronously constructed the complete legacy command graph. A proposed first-tree manifest transport did not fix that owner: on the exact #357 control it left startup@1000 at 2,606 ms versus 1,374 ms (about 1.90x), so that candidate is rejected and was not pushed.

    The product gate now absorbs the capability-minimal compiled application from #361 into #360, because automatic Block selection is not independently shippable while it retains legacy graph construction. Native validation also found and fixed two production correctness defects before timing:

    • official LepusNG exposes native Element handles as an engine-owned unknown value, so compact adoption now rejects only nullish roots instead of requiring a V8 object;
    • successful compact apply/rollback/dispose now calls the Element PAPI frame flush, with injected failure, exact retry, re-entry abort, and close coverage.

    Exact Native AB/BA gate:

    cell base median ms candidate median ms ratio
    startup@0 189 139 0.7355
    startup@1000 1,208 1,033 0.8551
    create@1000 1,118 814 0.7281
    update10th@1000 158 61 0.3861
    select@1000 79 29 0.3671
    clear@1000 105 78 0.7429

    Candidate bundle receipts: rows 0 184457 B, SHA-256 e7fca720ee7225547a070006c2fa40eb0370c2baa4d040d362d16e2fa4e2f8ab; rows 1,000 184752 B, SHA-256 ab1732e414d6719f2daef9d3cc4591cbfb0447bc6891f403f2b19eb3c2dd8cea.

    Checked-in evidence: benchmarks/lynx-table/stages/results/issue290-automatic-compact-product-native-ab-1000.json (formatted SHA-256 aa2e766c3eac5695d2392a81b915dd9075ccdece997fb631b7c51717fe98cf61). Full Lynx validation is 57 files / 999 tests plus focused transport tests, production/testing typechecks, sync, and formatting. #360 current-head CI is still running; no merge claim is made until it is green.

  25. Huxpro commented on Sep 12, 2026

    @Huxpro
    OwnerAuthor

    #360 has now landed on new-lynx.

    • exact final PR head: 2faa48cfdd243e6e052b1c31d3e65f9c6ab6523b
    • exact-head CI: 34693778375, complete and green
    • merge commit: ad000ef70c2ebe55ca308864f3b1dca24e1873f5
    • exact merged-head push CI: 34694351116, complete and green
    • corrected Android product gate: 60/60 observations, zero DNF, all six reported median ratios below 1.0; raw record and bundle hashes are checked into feat(lynx): auto-select eligible Block core #360

    This completes #290's normal-build automatic Block + resident compact-product delivery while retaining fail-closed fallback and explicit controls. The cross-framework, tail, lifecycle, and complete device qualification remain owned by #291.

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-authoredenhancementlynx

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions