Repository navigation
docs: answer the L6 ABI decision — the Lynx-only universal surface stays - #116
Merged
Merged
Conversation
Phase E of issue #66. #58's L6 proposes deleting the Lynx-only capabilities and compensation layers from octane/universal once the specialized target has replaced the universal Lynx path. This inventories that surface and returns the decision instead of performing the deletion. The inventory, taken on origin/new-lynx: four compiler capability strings (template-program-mount, class-name-alias, thread-functions, main-thread-render-only), six driver flags (templateMount, collapsedTemplateMount, templateProgramMount, templateProgramRuns, stableStaticHostProps, lazyPublicInstances), and the mount-template-run command with its coalescing path. Against that, Three declares localHostCallbacks, compilerLeafProps, and portal, and both share text and visibility. Nothing is removed, and the reason is not Phase D's NO-GO. The specialized target never replaced the descriptor ABI: lynxMainThreadRenderer lowers only eligible host-only templates into create functions and otherwise keeps it, and the background half of the same path is lynxBackgroundRenderer at target: 'universal' — the renderer that declares template-program-mount. Both halves of the shipping path run through octane/universal, so this surface is load-bearing whatever the cutover decides. That reorders the milestone. #58 makes the removal downstream of the L5 cutover; it is really downstream of a background core that stops speaking the descriptor ABI at all — the Block-over-wire core from #103, behind a per-root flag today. Both preconditions are open and they are independent. Answers the carried open question in the L0 spec: Three does not want slot tables. It declares none of the template capabilities and its driver has no mount-template-run arm; it has no boundary to amortize a collapse across, since the driver runs in the host's own realm. mount_1k in benchmarks/three at n=20 is 7.7 ms for Octane against 4.1 ms for plain Three, so 53% of the biggest creation cell is Three's own object construction and the whole declarative overhead above that floor is 3.6 ms per 1,000 objects — of which slot tables reach only the descriptor share. Octane already leads @react-three/fiber 9.6.1 on seven of the suite's eight operations.
This was referenced Aug 20, 2026
Open
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Issue #66 Phase E (#58 L6). Stacked on #115; review the last commit only.
#58's L6 proposes deleting the Lynx-only capabilities and compensation layers from
octane/universalonce the specialized target has replaced the universal Lynx path. This inventories that surface and returns the decision, instead of performing the deletion.The inventory, taken on
origin/new-lynx5d61724:template-program-mount,class-name-alias,thread-functions,main-thread-render-onlylocal-host-callback,portalvisibilitytemplateMount,collapsedTemplateMount,templateProgramMount,templateProgramRuns,stableStaticHostProps,lazyPublicInstanceslocalHostCallbacks,compilerLeafPropstext,visibilitymount-template-runand its coalescing pathNothing is removed, and the reason is not Phase D's NO-GO. The specialized target never replaced the descriptor ABI.
lynxMainThreadRendereristarget: 'lynx', but it lowers only eligible host-only templates into create functions and otherwise keeps the descriptor ABI — its own config comment says so — and the background half of the same path islynxBackgroundRendererattarget: 'universal', which is the renderer that declarestemplate-program-mount. Both halves of the shipping Lynx path run throughoctane/universal, so this surface is load-bearing whatever the cutover decides.That reorders the milestone. #58 makes the removal downstream of the L5 cutover. It is really downstream of a background core that stops speaking the descriptor ABI at all — the Block-over-wire core from #103, behind a per-root flag today. Both preconditions are open, and they are independent: resolving the cutover would not make the deletion safe, and making the block core the default would, whatever the cutover said.
Why
L6 is the one milestone in #58 whose work is a deletion, so getting its precondition right matters more than usual — deleting on the stated trigger would break the shipping path. The inventory is also the thing a reviewer needs to check that claim rather than take it.
Changes
docs/universal-renderer-architecture.md§9: a "Template programs" row in the capability table, and a new Renderer-specific capability inventory subsection carrying the tables above, the removability argument, and the Three answer.docs/lynx-specialized-target-l0.md: §9's carried open question struck through and answered; a §8 landed-increment entry.docs/lynx-native-renderer-plan.md: a risk-table row recording the Lynx-only ABI surface and its real gate.The carried open question, answered: Three does not want slot tables
Three declares none of the template capabilities and its driver has no
mount-template-runarm, so it cannot receive them today. It has no boundary to amortize a collapse across — the driver runs in the host's own realm, and the package's only transport reference is a guard refusing one portal case.The headroom settles it.
node benchmarks/bench.mjs --only three-renderer --ratios, medians of n=20:mount_1kupdate_1kreorder_1kunmount_tree_1kreconstruct_dispose_1kreconstruct_component_dispose_1kframe_1k_subscribersraycast_event53% of the biggest creation cell is Three's own object construction, an irreducible host floor. The entire declarative overhead above it is 3.6 ms per 1,000 objects, and slot tables reach only the descriptor share of that — never the component and hook execution. Octane already leads r3f on seven of eight operations. Against a mechanism that costs Lynx +1,721 B of main-thread gzip (#114) plus a compiler backend and a second driver path, that is not a trade Three should take.
Validation
Documentation only; no package source changes, so no changeset.
pnpm format:check— viapnpm format:files:checkover all three changed pathspnpm sync— clean, no generated changespnpm typecheck— not run; no TypeScript in this diffpnpm test— not run; no code under test in this diffnode benchmarks/bench.mjs --only three-renderer --ratiosdriven end to end, n=20compile-universal.js/universal-core.tsand to its declaring renderer config or driverRisk / follow-ups
three-renderer reconstruct_component_dispose_1kat octane/r3f 1.07× againstmaxRatio 1. It is not from this stack —packages/three,packages/octane/src/universal-core.ts, andbenchmarks/threeare byte-identical betweenorigin/new-lynxand this head — and it is below the measurement's own resolution on this host, where the two scores carry 14.7% and 11.9% RME. It needs a quiet-host same-window check before it means anything.Provenance
agent-authored)Generated by Claude Code