Skip to content

feat(octane): commit prepared DOM per scope and hydrate with one cursor - #2036

Closed
domgan-oai wants to merge 47 commits into
octanejs:nextfrom
openai-oss-forks:perf/hydration-settlement-2028
Closed

domgan-oai wants to merge 47 commits into
octanejs:nextfrom
openai-oss-forks:perf/hydration-settlement-2028

Conversation

@domgan-oai

@domgan-oai domgan-oai commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR now tracks integration of the original hydration and prepare/commit work with next, after #2044 was merged there. The implementations overlap heavily. Carry forward independently reviewable remaining work as smaller PRs, using the hydration protocol and prepare/commit infrastructure already on next.

Each PR starts directly from next, has its own changeset and focused regressions, and can be reviewed independently. This remains a tracker for work that has not yet been extracted; don't merge the old umbrella implementation alongside the extracted changes.

Validation

The exact remote head shown by this tracker is still f404ac01a, prepared against main. It is not validated as an integration with next. The local integration resolves the conflict in favor of next's hydration v3, pending signals and prepared commit writers, with the extracted changes above ported on top. The signed local checkpoint is 7edfbc760, with parents f404ac01a and c8c0898ae; the clean worktree preserves the full original work. There is no DOM-journal restoration.

Combined local integration versus pinned next c8c0898ae, complete production JS, gzip bytes:

Complete application Oxc delta esbuild delta
Signal-enabled native +105 B +117 B
js-framework TSRX +56 B +48 B
js-framework JSX +125 B +149 B

These are combined port results, not per-PR size attribution. Matched native runs preserve all 88 update counts and identities. Paired sampled-style changed-value timings are about 4% faster on Oxc and 1.6% faster on esbuild; equal-value timings remain within the A/A variation. All 12 provider scenarios retain correct affected leaves and zero untouched work; own providers improve about 14–21%, sibling providers about 13–22% relative to that pinned next. There is modest bundle growth relative to the merged implementation.

Local validation on the independent branches: 77 signal tests, 66 provider tests, 114 custom-host/structure tests, and 124 focused runtime plus 41 Chromium tests; pnpm sync passes on each. Current-head GitHub CI is being checked on each small PR. Those results do not establish CI on this umbrella head.

Risk / follow-up

Retain the working signed main-based history and the local integration for any further useful extractions. Re-run combined validation when the accepted individual PRs are on next. If the remaining work is redundant with next, close this tracker once the useful parts have landed.

Provenance

  • An agent produced this diff (agent-authored)

Implementation: Codex task · host com-79386.


Note

High Risk
Touches core client rendering, hydration adoption, SSR/streaming error boundaries, and ViewTransition commit paths—behavior regressions would affect visible DOM, forms, and production bundle gates across the whole framework.

Overview
Replaces staged DOM / journal undo with per-scope prepare/commit: bindings, hosts, lists, portals, and signals publish only when a render is accepted, so suspended or discarded updates keep committed DOM, handlers, and user edits. Hydration drops HydrationCapability and DOMStage in favor of a single native cursor (createHydrationAttempt), with runtime pieces split into modules such as runtime/dom-operations.ts.

SSR/hydration contract shifts: server @catch / ErrorBoundary are client-only; server errors stay on the pending fallback and request client retry (CLIENT_RENDER_ARM_COMMENT) without serializing rejections. Hydratable output gains octane-hydration:1 versioning; fulfilled use() seeds remain, retired error codes 23, 45, 343.

Tooling & benchmarks: removes staged-dom:check; bundle gates track createHydrationAttempt, binding-marker reachability via source maps, and unreferencedMarkerDeclarations; root-transaction and event-metadata benches exercise the unmodified runtime (DOM retention, listener churn). Docs, parity ledgers, and consumer SSR fixtures updated for the new markers and error behavior.

Reviewed by Cursor Bugbot for commit 4927ee5. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent perf PR: performance work labels Oct 13, 2026
@github-actions
github-actions Bot marked this pull request as draft October 13, 2026 11:11
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🟡 js-framework: 16 timed operation(s) slower beyond ±3%
  • 🔴 bundle-size: 44 value(s) increased
  • 🔴 bundle-reachability: 67 value(s) increased

Compares 8318702bd, the merge commit's first parent (main has moved 5 commit(s) past the pull request's recorded base ea438fb4f) with 6e3e3a5e4 on the same runner. Any increase in a js-framework work counter fails this check; byte changes are a report. Wall time is a report: base and head samples alternate in one browser, and an operation is called slower or faster only when the 95% confidence interval of its ratio excludes ±3%. Workflow run

js-framework: 1k/10k row operations

target operation base ms head ms head/base 95% CI
octane-tsrx run 3.067 4.050 +31.1% +26.2% … +36.7% 🟡 slower
octane-tsrx add 2.850 4.050 +43.1% +35.7% … +46.4% 🟡 slower
octane-tsrx update 0.142 0.113 −17.7% −21.7% … −14.9% 🟢 faster
octane-tsrx swap 0.022 0.128 +546.3% +529.6% … +577.2% 🟡 slower
octane-tsrx remove 0.019 0.130 +605.7% +582.5% … +635.3% 🟡 slower
octane-tsrx runlots 29.683 36.917 +24.6% +20.5% … +29.6% 🟡 slower
octane-tsrx select_lots 0.007 0.008 +5.0% +3.4% … +7.3% 🟡 slower
octane-tsrx clear 42.367 45.142 +7.1% +4.8% … +9.6% 🟡 slower
octane-jsx run 4.208 5.350 +29.1% +25.5% … +33.3% 🟡 slower
octane-jsx replace 7.483 8.550 +15.3% +12.0% … +17.5% 🟡 slower
octane-jsx add 3.508 5.558 +50.0% +47.5% … +58.0% 🟡 slower
octane-jsx select 0.156 0.221 +37.7% +31.0% … +42.1% 🟡 slower
octane-jsx swap 0.206 0.452 +95.5% +79.3% … +105.6% 🟡 slower
octane-jsx remove 0.196 0.465 +134.8% +121.1% … +139.6% 🟡 slower
octane-jsx runlots 35.025 52.558 +47.0% +42.9% … +50.2% 🟡 slower
octane-jsx select_lots 2.282 2.985 +30.1% +20.2% … +34.7% 🟡 slower
octane-jsx clear 46.042 49.492 +7.8% +5.5% … +9.5% 🟡 slower
All 20 timed operations (3 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 3.067 4.050 +31.1% +26.2% … +36.7% 🟡 slower
octane-tsrx replace 6.708 7.483 +8.4% +3.0% … +12.0% ⚪ within noise
octane-tsrx add 2.850 4.050 +43.1% +35.7% … +46.4% 🟡 slower
octane-tsrx update 0.142 0.113 −17.7% −21.7% … −14.9% 🟢 faster
octane-tsrx select 0.007 0.007 +4.8% +2.6% … +6.9% ⚪ within noise
octane-tsrx swap 0.022 0.128 +546.3% +529.6% … +577.2% 🟡 slower
octane-tsrx remove 0.019 0.130 +605.7% +582.5% … +635.3% 🟡 slower
octane-tsrx runlots 29.683 36.917 +24.6% +20.5% … +29.6% 🟡 slower
octane-tsrx select_lots 0.007 0.008 +5.0% +3.4% … +7.3% 🟡 slower
octane-tsrx clear 42.367 45.142 +7.1% +4.8% … +9.6% 🟡 slower
octane-jsx run 4.208 5.350 +29.1% +25.5% … +33.3% 🟡 slower
octane-jsx replace 7.483 8.550 +15.3% +12.0% … +17.5% 🟡 slower
octane-jsx add 3.508 5.558 +50.0% +47.5% … +58.0% 🟡 slower
octane-jsx update 0.277 0.297 +3.9% +1.0% … +7.7% ⚪ within noise
octane-jsx select 0.156 0.221 +37.7% +31.0% … +42.1% 🟡 slower
octane-jsx swap 0.206 0.452 +95.5% +79.3% … +105.6% 🟡 slower
octane-jsx remove 0.196 0.465 +134.8% +121.1% … +139.6% 🟡 slower
octane-jsx runlots 35.025 52.558 +47.0% +42.9% … +50.2% 🟡 slower
octane-jsx select_lots 2.282 2.985 +30.1% +20.2% … +34.7% 🟡 slower
octane-jsx clear 46.042 49.492 +7.8% +5.5% … +9.5% 🟡 slower

Work counters (an increase fails this check):

target metric base head Δ
octane-tsrx dom_run 2,000 1,000 −1,000 (−50.0%) 🟢
octane-tsrx calls_replace 32,094 25,086 −7,008 (−21.8%) 🟢
octane-tsrx dom_replace 3,000 2,000 −1,000 (−33.3%) 🟢
octane-tsrx calls_add 33,080 27,080 −6,000 (−18.1%) 🟢
octane-tsrx dom_add 2,000 1,000 −1,000 (−50.0%) 🟢
octane-tsrx calls_update 3,477 2,972 −505 (−14.5%) 🟢
octane-tsrx calls_select 79 75 −4 (−5.1%) 🟢
octane-tsrx calls_swap 2,091 2,083 −8 (−0.4%) 🟢
octane-tsrx calls_remove 2,101 2,095 −6 (−0.3%) 🟢
octane-tsrx dom_runlots 20,000 10,000 −10,000 (−50.0%) 🟢
octane-tsrx calls_select_lots 79 75 −4 (−5.1%) 🟢
octane-tsrx calls_clear 91 84 −7 (−7.7%) 🟢
octane-tsrx dom_clear 10,004 10,000 −4 (−0.0%) 🟢
octane-jsx calls_run 35,157 34,123 −1,034 (−2.9%) 🟢
octane-jsx dom_run 4,000 1,000 −3,000 (−75.0%) 🟢
octane-jsx calls_replace 42,172 34,127 −8,045 (−19.1%) 🟢
octane-jsx dom_replace 5,000 2,000 −3,000 (−60.0%) 🟢
octane-jsx calls_add 50,158 43,121 −7,037 (−14.0%) 🟢
octane-jsx dom_add 4,000 1,000 −3,000 (−75.0%) 🟢
octane-jsx calls_update 9,655 9,313 −342 (−3.5%) 🟢
octane-jsx calls_select 9,159 9,114 −45 (−0.5%) 🟢
octane-jsx calls_swap 9,167 9,124 −43 (−0.5%) 🟢
octane-jsx calls_remove 9,172 9,129 −43 (−0.5%) 🟢
octane-jsx calls_runlots 350,154 340,120 −10,034 (−2.9%) 🟢
octane-jsx dom_runlots 40,000 10,000 −30,000 (−75.0%) 🟢
octane-jsx calls_select_lots 90,159 90,114 −45 (−0.0%) 🟢
octane-jsx calls_clear 169 125 −44 (−26.0%) 🟢
octane-jsx dom_clear 10,004 10,000 −4 (−0.0%) 🟢

36 other measured values are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx js_raw 87,542 82,688 −4,854 (−5.5%) 🟢
octane-tsrx js_gzip 29,181 27,855 −1,326 (−4.5%) 🟢
octane-tsrx js_brotli 26,068 24,878 −1,190 (−4.6%) 🟢
octane-tsrx app_raw 6,952 7,667 +715 (+10.3%) 🔴
octane-tsrx app_gzip 2,337 2,627 +290 (+12.4%) 🔴
octane-tsrx app_brotli 2,028 2,296 +268 (+13.2%) 🔴
octane-tsrx fw_raw 80,590 75,021 −5,569 (−6.9%) 🟢
octane-tsrx fw_gzip 26,844 25,228 −1,616 (−6.0%) 🟢
octane-tsrx fw_brotli 24,040 22,582 −1,458 (−6.1%) 🟢
octane-tsrx todo_js_raw 100,282 96,906 −3,376 (−3.4%) 🟢
octane-tsrx todo_js_gzip 33,788 32,918 −870 (−2.6%) 🟢
octane-tsrx todo_js_brotli 30,093 29,204 −889 (−3.0%) 🟢
octane-tsrx todo_app_raw 4,639 6,822 +2,183 (+47.1%) 🔴
octane-tsrx todo_app_gzip 2,234 3,033 +799 (+35.8%) 🔴
octane-tsrx todo_app_brotli 1,893 2,533 +640 (+33.8%) 🔴
octane-tsrx todo_fw_raw 95,643 90,084 −5,559 (−5.8%) 🟢
octane-tsrx todo_fw_gzip 31,554 29,885 −1,669 (−5.3%) 🟢
octane-tsrx todo_fw_brotli 28,200 26,671 −1,529 (−5.4%) 🟢
octane-tsrx chat_js_raw 99,618 96,206 −3,412 (−3.4%) 🟢
octane-tsrx chat_js_gzip 33,703 32,733 −970 (−2.9%) 🟢
octane-tsrx chat_js_brotli 30,060 29,123 −937 (−3.1%) 🟢
octane-tsrx chat_app_raw 5,777 7,536 +1,759 (+30.4%) 🔴
octane-tsrx chat_app_gzip 2,723 3,335 +612 (+22.5%) 🔴
octane-tsrx chat_app_brotli 2,400 2,920 +520 (+21.7%) 🔴
octane-tsrx chat_fw_raw 93,841 88,670 −5,171 (−5.5%) 🟢
octane-tsrx chat_fw_gzip 30,980 29,398 −1,582 (−5.1%) 🟢
octane-tsrx chat_fw_brotli 27,660 26,203 −1,457 (−5.3%) 🟢
octane-tsrx weather_js_raw 134,372 137,150 +2,778 (+2.1%) 🔴
octane-tsrx weather_js_gzip 44,572 45,431 +859 (+1.9%) 🔴
octane-tsrx weather_js_brotli 39,358 39,915 +557 (+1.4%) 🔴
octane-tsrx weather_app_raw 22,156 26,791 +4,635 (+20.9%) 🔴
octane-tsrx weather_app_gzip 7,880 9,086 +1,206 (+15.3%) 🔴
octane-tsrx weather_app_brotli 6,684 7,640 +956 (+14.3%) 🔴
octane-tsrx weather_fw_raw 112,216 110,359 −1,857 (−1.7%) 🟢
octane-tsrx weather_fw_gzip 36,692 36,345 −347 (−0.9%) 🟢
octane-tsrx weather_fw_brotli 32,674 32,275 −399 (−1.2%) 🟢
octane-tsrx bindings_js_raw 681,353 694,562 +13,209 (+1.9%) 🔴
octane-tsrx bindings_js_gzip 224,433 227,670 +3,237 (+1.4%) 🔴
octane-tsrx bindings_js_brotli 191,110 193,351 +2,241 (+1.2%) 🔴
octane-tsrx bindings_app_raw 347,727 357,016 +9,289 (+2.7%) 🔴
octane-tsrx bindings_app_gzip 115,659 117,322 +1,663 (+1.4%) 🔴
octane-tsrx bindings_app_brotli 96,215 97,196 +981 (+1.0%) 🔴
octane-tsrx bindings_fw_raw 333,626 337,546 +3,920 (+1.2%) 🔴
octane-tsrx bindings_fw_gzip 108,774 110,348 +1,574 (+1.4%) 🔴
octane-tsrx bindings_fw_brotli 94,895 96,155 +1,260 (+1.3%) 🔴
octane-tsrx wayfinder_js_raw 458,255 450,322 −7,933 (−1.7%) 🟢
octane-tsrx wayfinder_js_gzip 149,145 145,739 −3,406 (−2.3%) 🟢
octane-tsrx wayfinder_js_brotli 129,198 126,026 −3,172 (−2.5%) 🟢
octane-tsrx threadline_oxc_js_raw 146,324 150,492 +4,168 (+2.8%) 🔴
octane-tsrx threadline_oxc_js_gzip 49,064 49,426 +362 (+0.7%) 🔴
octane-tsrx threadline_oxc_js_brotli 42,995 42,820 −175 (−0.4%) 🟢
octane-tsrx threadline_esbuild_js_raw 173,594 187,523 +13,929 (+8.0%) 🔴
octane-tsrx threadline_esbuild_js_gzip 58,302 62,610 +4,308 (+7.4%) 🔴
octane-tsrx threadline_esbuild_js_brotli 50,889 54,416 +3,527 (+6.9%) 🔴
octane-tsrx pagecraft_oxc_js_raw 541,717 555,746 +14,029 (+2.6%) 🔴
octane-tsrx pagecraft_oxc_js_gzip 169,665 173,902 +4,237 (+2.5%) 🔴
octane-tsrx pagecraft_oxc_js_brotli 143,326 146,734 +3,408 (+2.4%) 🔴
octane-tsrx pagecraft_esbuild_js_raw 591,957 616,411 +24,454 (+4.1%) 🔴
octane-tsrx pagecraft_esbuild_js_gzip 189,105 198,497 +9,392 (+5.0%) 🔴
octane-tsrx pagecraft_esbuild_js_brotli 159,832 167,576 +7,744 (+4.8%) 🔴
octane-tsrx full_fw_raw 570,390 543,665 −26,725 (−4.7%) 🟢
octane-tsrx full_fw_gzip 172,606 167,435 −5,171 (−3.0%) 🟢
octane-tsrx full_fw_brotli 145,350 141,725 −3,625 (−2.5%) 🟢
octane-jsx js_raw 167,274 174,056 +6,782 (+4.1%) 🔴
octane-jsx js_gzip 54,270 56,415 +2,145 (+4.0%) 🔴
octane-jsx js_brotli 47,632 49,258 +1,626 (+3.4%) 🔴
octane-jsx app_raw 8,271 10,938 +2,667 (+32.2%) 🔴
octane-jsx app_gzip 2,860 3,691 +831 (+29.1%) 🔴
octane-jsx app_brotli 2,421 2,987 +566 (+23.4%) 🔴
octane-jsx fw_raw 159,003 163,118 +4,115 (+2.6%) 🔴
octane-jsx fw_gzip 51,410 52,724 +1,314 (+2.6%) 🔴
octane-jsx fw_brotli 45,211 46,271 +1,060 (+2.3%) 🔴
octane-jsx shell_js_raw 390,521 361,454 −29,067 (−7.4%) 🟢
octane-jsx shell_js_gzip 122,666 116,246 −6,420 (−5.2%) 🟢
octane-jsx shell_js_brotli 104,685 99,940 −4,745 (−4.5%) 🟢
octane-jsx shell_fw_raw 389,428 360,361 −29,067 (−7.5%) 🟢
octane-jsx shell_fw_gzip 121,897 115,477 −6,420 (−5.3%) 🟢
octane-jsx shell_fw_brotli 104,014 99,269 −4,745 (−4.6%) 🟢
octane-jsx shell_client_js_raw 324,872 308,861 −16,011 (−4.9%) 🟢
octane-jsx shell_client_js_gzip 101,514 98,702 −2,812 (−2.8%) 🟢
octane-jsx shell_client_js_brotli 87,565 85,308 −2,257 (−2.6%) 🟢
octane-jsx shell_client_app_gzip 768 766 −2 (−0.3%) 🟢
octane-jsx shell_client_app_brotli 666 662 −4 (−0.6%) 🟢
octane-jsx shell_client_fw_raw 323,771 307,760 −16,011 (−4.9%) 🟢
octane-jsx shell_client_fw_gzip 100,746 97,936 −2,810 (−2.8%) 🟢
octane-jsx shell_client_fw_brotli 86,899 84,646 −2,253 (−2.6%) 🟢
octane-jsx full_fw_raw 570,390 543,665 −26,725 (−4.7%) 🟢
octane-jsx full_fw_gzip 172,606 167,435 −5,171 (−3.0%) 🟢
octane-jsx full_fw_brotli 145,350 141,725 −3,625 (−2.5%) 🟢

4 other measured values are unchanged.

Public-import reachability bundles (bytes)

target metric base head Δ
cli-spa-starter raw 80,910 75,764 −5,146 (−6.4%) 🟢
cli-spa-starter gzip 27,848 26,213 −1,635 (−5.9%) 🟢
cli-spa-starter brotli 24,733 23,389 −1,344 (−5.4%) 🟢
root-static-specialized raw 52,955 52,811 −144 (−0.3%) 🟢
root-static-specialized gzip 18,041 18,149 +108 (+0.6%) 🔴
root-static-specialized brotli 16,362 16,367 +5 (+0.0%) 🔴
root-chained-jsx raw 54,290 54,180 −110 (−0.2%) 🟢
root-chained-jsx gzip 18,430 18,591 +161 (+0.9%) 🔴
root-chained-jsx brotli 16,731 16,807 +76 (+0.5%) 🔴
root-static raw 148,801 153,847 +5,046 (+3.4%) 🔴
root-static gzip 48,271 50,003 +1,732 (+3.6%) 🔴
root-static brotli 42,512 43,839 +1,327 (+3.1%) 🔴
root-static-local raw 52,855 52,709 −146 (−0.3%) 🟢
root-static-local gzip 17,987 18,082 +95 (+0.5%) 🔴
root-static-local brotli 16,334 16,351 +17 (+0.1%) 🔴
root-callback-local raw 54,671 54,590 −81 (−0.1%) 🟢
root-callback-local gzip 18,513 18,693 +180 (+1.0%) 🔴
root-callback-local brotli 16,877 16,894 +17 (+0.1%) 🔴
hooks-state raw 62,298 62,453 +155 (+0.2%) 🔴
hooks-state gzip 20,959 21,268 +309 (+1.5%) 🔴
hooks-state brotli 19,043 19,220 +177 (+0.9%) 🔴
prop-attributes raw 59,402 59,758 +356 (+0.6%) 🔴
prop-attributes gzip 20,086 20,444 +358 (+1.8%) 🔴
prop-attributes brotli 18,197 18,422 +225 (+1.2%) 🔴
context raw 69,744 70,171 +427 (+0.6%) 🔴
context gzip 23,278 23,708 +430 (+1.8%) 🔴
context brotli 20,997 21,248 +251 (+1.2%) 🔴
hydrate-root raw 108,832 89,392 −19,440 (−17.9%) 🟢
hydrate-root gzip 35,830 30,316 −5,514 (−15.4%) 🟢
hydrate-root brotli 31,767 26,982 −4,785 (−15.1%) 🟢
deferred-hydration raw 191,648 180,189 −11,459 (−6.0%) 🟢
deferred-hydration gzip 61,248 58,652 −2,596 (−4.2%) 🟢
deferred-hydration brotli 53,376 51,140 −2,236 (−4.2%) 🟢
hydrate-frame raw 340,799 343,075 +2,276 (+0.7%) 🔴
hydrate-frame gzip 108,298 109,474 +1,176 (+1.1%) 🔴
hydrate-frame brotli 92,984 94,309 +1,325 (+1.4%) 🔴
suspense-transition raw 123,740 127,076 +3,336 (+2.7%) 🔴
suspense-transition gzip 39,687 41,266 +1,579 (+4.0%) 🔴
suspense-transition brotli 35,220 36,518 +1,298 (+3.7%) 🔴
server-render raw 64,153 62,579 −1,574 (−2.5%) 🟢
server-render gzip 22,069 21,693 −376 (−1.7%) 🟢
server-render brotli 20,001 19,640 −361 (−1.8%) 🟢
component-owned-effects raw 55,772 55,527 −245 (−0.4%) 🟢
component-owned-effects gzip 18,921 19,070 +149 (+0.8%) 🔴
component-owned-effects brotli 17,155 17,227 +72 (+0.4%) 🔴
binding-hooks raw 64,952 64,854 −98 (−0.2%) 🟢
binding-hooks gzip 22,121 22,363 +242 (+1.1%) 🔴
binding-hooks brotli 20,014 20,174 +160 (+0.8%) 🔴
split-shell raw 415,302 420,893 +5,591 (+1.3%) 🔴
split-shell gzip 133,039 135,562 +2,523 (+1.9%) 🔴
split-shell brotli 114,634 117,051 +2,417 (+2.1%) 🔴
split-shell-runtime raw 332,457 334,937 +2,480 (+0.7%) 🔴
split-shell-runtime gzip 105,547 106,839 +1,292 (+1.2%) 🔴
split-shell-runtime brotli 90,054 91,361 +1,307 (+1.5%) 🔴
split-shell-signals raw 74,099 75,419 +1,320 (+1.8%) 🔴
split-shell-signals gzip 23,044 23,463 +419 (+1.8%) 🔴
split-shell-signals brotli 20,721 21,088 +367 (+1.8%) 🔴
binding-base-ui-vite raw 189,928 194,134 +4,206 (+2.2%) 🔴
binding-base-ui-vite gzip 61,186 62,653 +1,467 (+2.4%) 🔴
binding-base-ui-vite brotli 53,491 54,717 +1,226 (+2.3%) 🔴
binding-base-ui-esbuild raw 217,266 224,246 +6,980 (+3.2%) 🔴
binding-base-ui-esbuild gzip 70,758 74,682 +3,924 (+5.5%) 🔴
binding-base-ui-esbuild brotli 61,462 65,079 +3,617 (+5.9%) 🔴
binding-aria-esbuild raw 8,157 8,013 −144 (−1.8%) 🟢
binding-aria-esbuild gzip 3,138 3,054 −84 (−2.7%) 🟢
binding-aria-esbuild brotli 2,807 2,733 −74 (−2.6%) 🟢
binding-radix-vite raw 190,292 194,517 +4,225 (+2.2%) 🔴
binding-radix-vite gzip 61,045 62,536 +1,491 (+2.4%) 🔴
binding-radix-vite brotli 53,469 54,605 +1,136 (+2.1%) 🔴
binding-radix-esbuild raw 217,412 224,391 +6,979 (+3.2%) 🔴
binding-radix-esbuild gzip 70,679 74,567 +3,888 (+5.5%) 🔴
binding-radix-esbuild brotli 61,405 64,936 +3,531 (+5.8%) 🔴
binding-mantine-hooks-vite raw 62,955 62,849 −106 (−0.2%) 🟢
binding-mantine-hooks-vite gzip 21,386 21,561 +175 (+0.8%) 🔴
binding-mantine-hooks-vite brotli 19,371 19,460 +89 (+0.5%) 🔴
binding-mantine-hooks-esbuild raw 74,674 83,917 +9,243 (+12.4%) 🔴
binding-mantine-hooks-esbuild gzip 25,961 29,635 +3,674 (+14.2%) 🔴
binding-mantine-hooks-esbuild brotli 23,280 26,481 +3,201 (+13.8%) 🔴
binding-apollo-client-vite raw 332,244 337,262 +5,018 (+1.5%) 🔴
binding-apollo-client-vite gzip 103,463 105,307 +1,844 (+1.8%) 🔴
binding-apollo-client-vite brotli 90,711 92,120 +1,409 (+1.6%) 🔴
binding-apollo-client-esbuild raw 367,561 380,805 +13,244 (+3.6%) 🔴
binding-apollo-client-esbuild gzip 117,194 123,203 +6,009 (+5.1%) 🔴
binding-apollo-client-esbuild brotli 102,341 107,611 +5,270 (+5.1%) 🔴
binding-usehooks-ts-vite raw 63,737 63,631 −106 (−0.2%) 🟢
binding-usehooks-ts-vite gzip 21,594 21,808 +214 (+1.0%) 🔴
binding-usehooks-ts-vite brotli 19,569 19,712 +143 (+0.7%) 🔴
binding-usehooks-ts-esbuild raw 75,442 84,686 +9,244 (+12.3%) 🔴
binding-usehooks-ts-esbuild gzip 26,191 29,871 +3,680 (+14.1%) 🔴
binding-usehooks-ts-esbuild brotli 23,553 26,728 +3,175 (+13.5%) 🔴

30 other measured values are unchanged.

@domgan-oai domgan-oai changed the title perf(hydration): omit deferred value checks from ordinary shells perf(octane): standardize returned hydration ranges and retry server errors on the client Oct 13, 2026
@domgan-oai
domgan-oai marked this pull request as ready for review October 13, 2026 11:57
@domgan-oai domgan-oai changed the title perf(octane): standardize returned hydration ranges and retry server errors on the client feat(octane): prepare compiled scopes before committing DOM and unify hydration ranges Oct 13, 2026
@github-actions github-actions Bot added feat PR: new feature or capability and removed perf PR: performance work agent-authored Diff or issue body substantially produced by an AI agent labels Oct 13, 2026
Guard empty preparation pointers at compiled sites, copy only at changes, and publish eligible scopes directly while preserving delayed layout validation. Verify Suspense after its visible reveal, align generated Boolean source mappings and SVG attribute-order snapshots.
@trueadm
trueadm marked this pull request as draft October 13, 2026 18:54
… admission

Replace native DOM undo journals and staged proxies throughout compiled and generic rendering. Commit structures, bindings, refs and signals at accepted scope boundaries; retain async DOM and park one cursor across hydration retries. Cover keyed ownership, portals, early leases, controls and ViewTransitions.
@domgan-oai domgan-oai changed the title feat(octane): prepare compiled scopes before committing DOM and unify hydration ranges feat(octane): commit prepared DOM per scope and hydrate with one cursor Oct 13, 2026
@domgan-oai
domgan-oai marked this pull request as ready for review October 13, 2026 21:22

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread packages/octane/src/compiler/compile.js Resolved
Comment thread packages/octane/src/compiler/compile.js Resolved
Comment thread packages/octane/src/compiler/compile.js Resolved
Comment thread benchmarks/bundle-size/run-minimal.mjs Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

`${outputText}\n//# sourceURL=${id}?${mode}-fixture`,
);
return evaluate(runtime, internalRuntime, HydrationRuntime, runtimeModules, {}) as T;
evaluate(requireFixture, exports);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixture loader drops dynamic imports

Medium Severity

The shared fixture evaluator now transpiles compiled modules to CommonJS and only resolves static require calls. A dynamic import() of a compiler-selected chunk, including a split <Hydrate> child, is left as a real import. That import does not go through requireFixture, so the registered runtimeModules entry is never returned.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 15dd2f3. Configure here.

…ions

Count ordinary host and text bindings for sparse preparation and share each event group fallback without publishing DOM during prepare. Retain owner-only presence guards across reentrant setters. Skip clean signal refresh work and clean equal literal write batches after all lifecycle and candidate checks.
Integrate 0bb503f after GitHub refused to schedule checks. Preserve scope preparation and committed DOM writes for row and text paths while adopting cached Text nodes and Strong source restrictions. Keep suppressed hydration content clearing at commit. Local compiler 1253/1253 and text/host/hydration 1080/1080, source typecheck, sync and format pass.
…tries

Prepare only-child node and value caches together for both scalar and structural updates. Publish them in the scope writer. Keep slow-path access to the accepted node so reversing an unfinished empty slot replaces its preparation without guessing DOM ownership. Cover narrow and wide compiled retries, typed input identity and held host props.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 3 total unresolved issues (including 2 from previous reviews).

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 4c46eb0. Configure here.

Comment thread packages/octane/src/compiler/compile.js Resolved
…ldren

Release a prior form-owned textarea default only when incoming value and defaultValue no longer own the text, during child publication. Retire absent default tracking after accepted form controls. Cover dirty live input, empty/null/undefined handoffs and unrelated default-retaining updates in both CSR and hydration.
Preserve initial markerless hydration and admit subsequent render bodies through the existing owner-host prepare/commit slot. Retain mounted empty hosts while new bodies suspend, and cover the regression in dev and prod.
Keep octanejs#2036 on the patch release plan adopted in octanejs#2070. The computed release plan selects octane 0.13.6 and contains no minor or major updates; runtime and full bundle inputs are unchanged.
Retain both octanejs#2036 patch changesets above Octane 0.13.6 so the next computed version is 0.13.7. Verify public and hydration versions, suspended root recovery, release plan, and unchanged complete Oxc/esbuild bundles.
Preserve upstream table rows and cells using inert template context and the existing fragment cache. Keep custom-element upgrade order, the single hydration cursor and accepted-only DOM commits; include upstream MDX integration without restoring staged DOM.
trueadm added a commit that referenced this pull request Oct 15, 2026
…sh-writer guard (#2043)

Work in progress, not for review:
- suspense-preserves-dom gains #2036's probe: a resumed hidden primary that
  builds its ErrorBoundary must not mutate the page during render. It fails
  today: ownSlotAnchor inserts its comment into the connected range.
- check-render-writes records whether each write's receiver was created in
  its function and whether that function tests for a frontier. Nothing
  enforces it yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm added a commit that referenced this pull request Oct 15, 2026
…t fresh writers that reach committed DOM (#2043)

ownSlotAnchor minted its comment into the Block's parent at render. For a
resumed hidden primary that builds a new slot (an ErrorBoundary behind a
use()), that parent is the committed, connected range, so the render
mutated the page. A committed Block's anchor now goes into a frontier that
its commit inserts; fresh DOM still takes it in place.

check-render-writes now also checks each 'fresh' writer's receivers. A
write into a node the function made, a fragment, or a node its caller
passed is fine. A write into a node read from runtime structure (a Block's
parentNode, a slot's markers) needs the function to test for a frontier.
The old ownSlotAnchor fails that rule. UNGUARDED_FRESH lists the nine
writers still to fix, and the lint fails on a new one or a stale entry.

suspense-preserves-dom pins the #2036 probe: the resumed child's render
makes no mutation of the page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant