Skip to content

feat(lynx): auto-select eligible Block core - #360

Merged
Huxpro merged 10 commits into
new-lynxfrom
huxcx/m3-auto-block-core-290
Sep 12, 2026
Merged

Huxpro merged 10 commits into
new-lynxfrom
huxcx/m3-auto-block-core-290

Conversation

@Huxpro

@Huxpro Huxpro commented Sep 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • auto-select the static Block background core only for one-shot production graphs whose paired resident-program, semantic, and feature proofs are complete; every unsupported/development/watch/lazy/mixed graph retains the universal fallback
  • select the capability-minimal compiled application for that same proof, so the first commit emits one addressed program run instead of synchronously constructing the legacy per-host command graph
  • preserve page/global lifecycle, public handles, event identity, abort/retry, first-screen adoption, explicit-root fallback, and contiguous teardown semantics
  • keep Block commit tracking on the official ES2015 Lynx Promise surface and preserve complete allocation ranges as one destroy-run
  • accept engine-owned opaque Native Element handles and flush compact frame/dispose mutations at the transactional publication boundary

Why the compact application is part of this default flip

The original exact head cf1018a051cd14b2c384ed0541b0ee5ee1789970 passed Web and size gates but failed the required Native startup gate: Block built the full legacy command graph before readiness. A follow-up manifest-only candidate was also rejected; it compressed the wire but retained that synchronous construction and measured about 1.90x the #357 startup@1000 control.

The capability-minimal application deletes that work before the first render. Native then exposed two production-only correctness bugs which are fixed here: LepusNG Element references have an engine-owned non-object typeof, and ContextProxy delivery does not implicitly flush Element PAPI mutations. Independent regressions cover opaque handles, successful frame/dispose flushes, flush-failure rollback and exact-identity retry, and abort re-entry during flush.

Exact Native acceptance

  • base: new-lynx@22dc9014bc3572c8cc04889a396f6d5428fc96d7
  • candidate: 25abe4d35e43d694bed1faf1adbf181bc6edd935
  • Android Aries 10, LynxExplorer 4.1.0, production bundles, fresh page per sample
  • 5 interleaved AB/BA repetitions per cell, real Native tap, visible-tree postconditions, 60/60 completed, zero DNF
  • capture SHA-256: e24b7226acf33921615db1385425f3fc3af3638b916ca4bbad7eb5d27d36af0a; checked-in Prettier-normalized JSON SHA-256: aa2e766c3eac5695d2392a81b915dd9075ccdece997fb631b7c51717fe98cf61
cell base median candidate median candidate/base
startup@0 189 ms 139 ms 0.735x
startup@1000 1208 ms 1033 ms 0.855x
create@1000 1118 ms 814 ms 0.728x
update10th@1000 158 ms 61 ms 0.386x
select@1000 79 ms 29 ms 0.367x
clear@1000 105 ms 78 ms 0.743x

The candidate Native bundles were 184,457 B (rows 0, SHA-256 e7fca720ee7225547a070006c2fa40eb0370c2baa4d040d362d16e2fa4e2f8ab) and 184,752 B (rows 1000, SHA-256 ab1732e414d6719f2daef9d3cc4591cbfb0447bc6891f403f2b19eb3c2dd8cea). No work is omitted or moved outside the timed boundary: compact frames now flush the real native tree before acknowledgement.

Web and size evidence

The earlier shipping Web window remains directionally valid: automatic beat explicit universal on create, update10th, updateStorm, and clear; select was within noise. Its storm rows remain diagnostic because Web coalescing is not equal work. The Native matrix above is the equal-work authority.

The automatic application remains proof-gated and substantially smaller than the universal product. The prior clean core-switch receipt proved decoded BTS gzip below the frozen 81,484.5 B compact-core ceiling; this head further removes the general compiled-application graph from eligible products.

Verification

  • full @octanejs/lynx: 57 files / 999 tests passed on the corrected compact-product head
  • focused compiled store/controller/transport: 55 tests passed
  • selected Lynx typecheck, formatting, pnpm sync, and clean diff passed
  • Native visible-row click smoke passed before the formal matrix
  • exact current-head CI is required before merge

The former #361 compact-application PR is now absorbed into this atomic default-cutover head; #362 and later remain stacked follow-ups for independently measured M4 runtime improvements.

Roadmap: #290, #291, #282

Risk / fallback

The selector remains fail-closed. Unsupported hooks/features, context, Suspense/Activity/portals, native lists, incomplete/mismatched proofs, development/watch, and lazy or mixed graphs keep the universal application. Explicit core: 'universal' and diagnostic core: 'block' controls remain available.

Provenance

  • An agent produced this diff (agent-authored)

@Huxpro
Huxpro merged commit ad000ef into new-lynx Sep 12, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant