Repository navigation
Conversation
This was referenced Aug 10, 2026
Owner
Author
|
Conclusion: close as landed upstream. The retained-subtree adoption path is represented by octanejs/octane PR 696 and should not be merged again from this stack. |
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
Why
Upstream octanejs#587 already provides the retained-subtree machinery used by local universal drivers. The transported path was still categorically excluded by one
this.transport === nullpredicate even though its full-root versioning, command folding, and accepted listener table are compatible with retained ranges. This layer removes only that exclusion; it does not add another memoization system or loosen the existingObject.is-based component-prop contract.This is the rebased, independently mergeable replacement for the behavior in #11, frozen at
adfad409867733a524c5ab200c15b0510535586d. It does not duplicate upstream octanejs#660/octanejs#661/octanejs#662, and the old PR remains historical provenance.Changes
packages/octane/src/universal-core.ts: allow retained adoption for plain urgent transported full-root attempts; replay, transition, bridge, and full-root-scheduled attempts remain excluded, and scoped owned updates remain local-only.packages/octane/tests/universal-transport.test.ts: cover stable host identity, child-local state, mount/cleanup effects, live transported listeners, consumed-context invalidation, prop changes, and keyed reorders over the real MessageChannel loopback.benchmarks/lynx-table: countRowbody executions only in profile builds, add a far keyed swap, record render breadth beside commands/bytes, and fail on breadth drift at 1k and 10k.benchmarks/baselines/ratios.json: add eight adoption guards. Pure reorder requires exactly zero Row renders; the known 997-command LIS reorder is represented as a 1.0× upper-waterline instead of a permissive 500× ratio.octane.Stack
1d61be7be2286a8de430a780f83975182de89d32)71e1b8a88a8c3e37cc005d37a8e6f75cf31088b4)4a444b1b9665d8b4020d774a220bd0e21933cdb2)The fork review stack is GitHub Stack octanejs#36, managed with the official
gh stackextension. Upstream delivery remains bottom-to-top because fork-only branches cannot be simultaneous PR bases inoctanejs/octane.Simplification
maxRatio: 500with the measured 997-command waterline plusmaxRatio: 1, and made the zero-render swap gate strictly zero.Performance audit
Exact comparison:
1d61be7be2286a8de430a780f83975182de89d3271e1b8a88a8c3e37cc005d37a8e6f75cf31088b4p2-parent-gate-disabled-wire.json,p2-final-candidate-wire.json,p2-final-profile-cold.json,p1-candidate-web.json, andp2-final-candidate-web.jsonunderbenchmarks/lynx-table/attribution/results/Deterministic render breadth and wire
The parent breadth capture uses the final benchmark harness with the sole P1 transport exclusion restored; exact P1/P2 product builds are used for the cold and Web measurements below. Two drift-checked iterations per scale:
Select stays exactly 237 serialized bytes at both scales. Unpaced storms stay at 50 commits and 5,000/50,000 commands; the paced 1k update storm stays at 50 total commits, 3 frame-consuming commits, 300 commands, and 3 pumped frames. All 23 applicable ratio guards pass.
Red-check: restoring the parent exclusion at 1k makes update10th/select/swap render 1,000 rows and breaches the new guards by 10×, 500×, and the strict-zero threshold respectively. Restoring the final code returns 100/2/0 and a clean ratio run.
Fresh-realm operation latency
Exact-SHA profile bundles, five fresh realms per target; values are first-operation median ms [min–max]. Every semantic oracle and keyed-survivor check passed.
No adverse cell reaches the 5% expanded-repeat threshold.
Lynx-for-Web latency
Same production build, driver, host window, and fresh-page protocol; medians of n=5 [min–max], zero DNF:
The 10k create median is +3.0%, below the repeat threshold and contradicted by the exact-SHA fresh-realm create control (-2.6%); it is classified as host noise, not a product regression.
Production Web bundle is 385,596 → 385,573 bytes and gzip 103,536 → 103,532 bytes. SHA-256: parent
3e25e1da19a8369524bb793db9bafbfea11d463c915b6a708c8e49086fd7ff69, candidate65e026f73dd62bb6484c2806979eec1a2d4f0a1c9938ef6108893bd6f765865a. Profile hashes are parentfedeb5a65ec1ba9213f722fc997ddc975579609baed94f53bac717261bee662d, candidate07c72dbaeae4bfcade074fbebeb33d2570a858eb91bed0f009fe0e2f0f5d579a.Validation
node benchmarks/bench.mjs --ratios lynx-table: 23/23 applicable guards passedtypecheck:filesfor runtime/test; benchmark apptsrx-tsc --noEmit; production Vite/Rspeedy builds compileworkload.ts(it is not owned by a standalone TypeScript project)pnpm format:files:checkfor all 8 changed filespnpm sync;git diff --check; final worktree cleanRisk / follow-ups
Provenance
agent-authored)adfad409867733a524c5ab200c15b0510535586d