Skip to content

fix(octane): suspend a list of suspending rows once, not once per row - #2528

Merged
trueadm merged 5 commits into
mainfrom
fix/suspended-list-rows
Nov 12, 2026
Merged

trueadm merged 5 commits into
mainfrom
fix/suspended-list-rows

Conversation

@trueadm

@trueadm trueadm commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • When several rows of one keyed list suspend in the same boundary, the rows after a suspended row now keep rendering in that pass. The list then throws one suspension covering every row's thenable, so the boundary retries once instead of once per row.
  • Covers updates to surviving rows and the first fill of a list (the empty→fill mount). A row mounted between surviving rows still suspends the list at once, as before, because skipping it would change list structure mid-reconcile.

Why

N sibling rows that each suspend cost one retry per row, and each retry re-rendered every row before the next pending one. That is about N²/2 row renders and N host tasks per update. There were two causes:

  1. use() learns that a native promise has settled only after it first sees the promise. A promise that resolved earlier but is new to use() is tagged pending, so each retry discovered one more row (the parent-created, "hoisted" case).
  2. A render stopped at the first suspending row, so a later row's request did not start until a retry reached it (the case where rows create their promise during render, also query$().get()).

Rendering through the remaining rows fixes both: every row's use() sees its thenable in the first pass.

React 19.2.7 probe (same fixture: 200 rows in a transition, all ids changing):

React renders/row how
promises created by the parent 2 replays only the suspended fiber once its promise settles, then continues to the next sibling
promises created in each row 2 same replay, so the requests start one after another

React never restarts the boundary, so it pays O(N) renders. Octane renders and mutates in one walk, so it cannot resume mid-list. This PR gets the same 2 renders per row by rendering through the list instead, and it starts every row's request in the first pass rather than in sequence. That is in line with the documented parallel-use() divergence, and docs/differences-from-react.md now records it.

Changes

  • runtime/lists.ts: updateSurvivor and the mountItemsLinear loop defer a row's SuspenseException to the end of their list (SUSPENDED_ROWS / ROWS_FROM, a stack, so nested lists collect separately). Under ROOT_ROLLBACK, reconcileKeyed enters once through collectRows, which opens and closes that collection. A bundle that cannot suspend folds all of it away, so its list path is unchanged. Deferral is off while hydrating, because adoption is cursor-ordered. A non-suspension error from a later row loses to an earlier row's suspension, which is the outcome before this change, when that row never rendered.
  • runtime/use.ts: useBatch's combine code is now suspensionOnAll, shared with lists. The combined wakeable is new on each attempt, so it carries its members' settle history. Once it settles, its members count as seen, and a combined wakeable over a member that was already seen is paced by a macrotask, as resumeOnSettle does for a single wakeable. Without this, rows that keep suspending on a thenable that has already settled would retry on microtasks forever.
  • Docs: a bullet in the parallel-use() section of differences-from-react.md. Changeset: octane patch.

Evidence

Scratch benchmark (not committed): 200 rows, a transition changes every row's id. jsdom, octane-signals-prod, median of 24 updates:

variant before ms after ms before renders/row after renders/row before host tasks after host tasks
use(promise), promise created in the row 683 4.15 102.5 3.0 201 2
use(promise), promise created by the parent 69.6 4.73 102.5 3.0 201 2
query$ + .get() 106.9 7.51 102.5 3.0 201 2
thenable that sets its own status 1.28 4.79 2.0 3.0 2 2
query$ + .latest('') (never suspends, control) 2.09 2.48 2.0 2.0 2 2

About the "3.0": in this benchmark each update follows another committed transition (a same-id setTick warm-up). In that sequence a held boundary's retry re-renders the parent and every row once without committing, then once more to commit. That extra pass exists on main too. The thenable that sets its own status was "2.0" before only because its first pass rendered a single row. Without a preceding transition, a trace shows exactly 2 renders per row (pass 1: every row suspends; retry: every row completes). It also takes a plain transition update and the initial mount from N passes to 2. The extra held-transition pass is a separate defect and is listed under follow-ups.

Hot-path A/B (scratch, octane-prod, 1000-row keyed list, no suspension, median ms per update across 3 alternating runs):

  • survivor update: base 0.862 / 0.885 / 0.834, fix 0.850 / 0.853 / 0.864. No measurable change from the per-row try/catch or the wrapper frame.
  • clear plus first fill: base ≈ 5.8, fix ≈ 5.8 (noisy, overlapping).

Validation

  • targeted tests, all seen failing on main first:
    • tests/suspense-list-rows.test.tsrx (new; octane, octane-prod): every row's request starts before any resolves, on mount, on a transition update and on an urgent update. Rows after a suspended row, including rows that never suspend, keep the committed screen while the transition is held. A later row's error waits for an earlier pending row. On main: [0] vs [0,1,3,4], 'loading', [0], [0,1,100].
    • tests/profiling-runtime.test.tsrx (octane-profile): 12 rows whose promises have settled cause boundary.suspend = 1 and boundary.retry = 1 via octane/profiling. On main: 12.
    • tests/suspense-settled-wakeable.test.ts: two rows that keep suspending on settled wakeables let a timer end the suspension. Fails with the combined-wakeable pacing removed (the retry loop starves the timer).
    • Nearby: suspense.test.ts, keyed-suspended-insertion.test.tsrx, suspense-incomplete-primary.test.ts, transition-descendant-suspend.test.ts pass (69 tests across the 6 files, octane project).
  • pnpm format:files:check on changed files; pnpm typecheck:files shows no new errors in the changed files (remaining errors in profiling-runtime.test.tsrx and fixtures exist on main); pnpm sync clean.
  • full pnpm test, pnpm typecheck, pnpm format:check: left to CI (local machine-load rule).
  • perf-review: scripts/perf-review-scan.mjs reports no candidates. Hot path: in a bundle that can suspend, one try/catch per surviving-row render and two extra calls per list reconcile (collectRows, then re-entry); no new fields and no allocation unless a row suspends (SUSPENDED_ROWS is a shared stack). A bundle that cannot suspend folds all of it on ROOT_ROLLBACK: the js-framework work counters (+3 calls per operation at a17980b) should return to main's path, and bundle-size octane-tsrx is 24,042 B gz vs main's 24,036 (it was 24,189 at a17980b). A/B above.
  • concise-code: about 110 lines of runtime code (the rest is the wrapper's forwarded parameters and re-indentation). Rejected alternatives: swallowing a suspension at every component render (renderBlockInner) would leave single-root rows without their root node and corrupt markers; deferring mounts in the LIS middle path would need the index arrays to tolerate a missing row; changing only use() cannot help, because a native promise's settlement is unobservable synchronously. The combine code is reused from useBatch, not duplicated.

Risk / follow-ups

  • This changes the list-first retry behavior that perf: discover eligible async keyed-list children earlier #697 kept, and two parallel-use.test.ts cases pinned it. "does not run a later row or its key before an earlier keyed row resolves" is now "runs each keyed row and its key once, in order, without speculating on them". The mutated-list cases now expect both current rows' requests in the first pass. Both still guard perf: discover eligible async keyed-list children earlier #697's intent: the warm path never evaluates keys or rows ahead of the list, and a mutated list never requests its stale declared contents (insights).
  • Rows after a suspended row now render (and are rolled back or hidden) in the same pass. For non-suspending rows this is the same work a retry already did; the hold and fallback paths already handle completed siblings of a suspended row.
  • A row mounted between surviving rows (an insert in the LIS middle path, or the full-replace path) still suspends the list immediately. That fill keeps the old one-retry-per-row behavior.
  • Follow-up: after another transition has committed, a held boundary's retry renders the subtree twice (once without committing). This is pre-existing and accounts for the 3.0 renders per row above.

Provenance

  • An agent produced this diff (agent-authored)

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Note

Medium Risk
Changes Suspense retry semantics for keyed lists (intentional React divergence) on a hot reconcile path when rollback is enabled; behavior for mid-list inserts and non-rollback bundles is mostly unchanged.

Overview
When several keyed list rows suspend in the same boundary, Octane no longer stops at the first suspending row. reconcileKeyed (under rollback) continues rendering later rows in that pass, defers each row’s SuspenseException, and closes the list with suspensionOnAll so the boundary throws one combined suspension and retries once instead of once per row.

lists.ts adds row suspension collection (SUSPENDED_ROWS, collectRows/openRows/closeRows, deferRowSuspension) for survivor updates, first-fill mounts, and nested lists; hydration skips collection. use.ts exposes shared suspensionOnAll (also used by useBatch) with settled-wakeable pacing so shared retries don’t starve timers.

Documentation records the intentional React divergence (parallel use() / list rows). Tests cover request startup, transition holds, error ordering, and profiler 1 suspend / 1 retry for multi-row lists.

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

@trueadm
trueadm marked this pull request as ready for review November 12, 2026 21:21
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix labels Nov 12, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website-mcp 759a842 Commit Preview URL

Branch Preview URL
Nov 12 2026, 10:03 PM

@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.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Rejected list thenables skip retry pacing
    • The rejection handler in suspensionOnAll now records the rejecting member in SETTLED_WAKEABLES so the next combined promise is marked as seen and resumeOnSettle paces retries via setHostTimeout instead of looping on microtasks.

Create PR

Or push these changes by commenting:

@cursor push 4f5d566951

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit 39aef9b. Configure here.

Comment thread packages/octane/src/runtime/use.ts Resolved
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website 759a842 Commit Preview URL

Branch Preview URL
Nov 12 2026, 10:04 PM

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🔴 bundle-size: 77 value(s) increased
  • 🔴 bundle-reachability: 42 value(s) increased

Compares a7c7fa2c1, the merge commit's first parent with 193392846 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

All 20 timed operations (20 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 4.483 4.675 +8.8% −3.9% … +21.9% ⚪ within noise
octane-tsrx replace 10.450 9.483 +0.9% −11.8% … +10.0% ⚪ within noise
octane-tsrx add 4.467 4.958 +3.3% −6.0% … +20.8% ⚪ within noise
octane-tsrx update 0.140 0.130 −1.3% −5.5% … +10.6% ⚪ within noise
octane-tsrx select 0.010 0.010 −6.9% −9.8% … +4.8% ⚪ within noise
octane-tsrx swap 0.042 0.036 −5.9% −12.8% … +6.0% ⚪ within noise
octane-tsrx remove 0.032 0.033 +6.7% −4.2% … +18.9% ⚪ within noise
octane-tsrx runlots 41.267 45.242 +8.7% −6.7% … +24.2% ⚪ within noise
octane-tsrx select_lots 0.010 0.010 +8.3% −1.8% … +10.9% ⚪ within noise
octane-tsrx clear 85.092 86.925 +2.3% −13.9% … +12.4% ⚪ within noise
octane-jsx run 8.633 7.875 −9.1% −22.6% … −0.5% ⚪ within noise
octane-jsx replace 16.825 14.542 +10.8% −16.2% … +27.1% ⚪ within noise
octane-jsx add 6.100 6.308 −7.0% −21.6% … +8.3% ⚪ within noise
octane-jsx update 0.240 0.266 +2.8% −7.9% … +20.1% ⚪ within noise
octane-jsx select 0.146 0.133 −3.8% −18.4% … +5.0% ⚪ within noise
octane-jsx swap 0.229 0.239 −4.0% −11.2% … +6.1% ⚪ within noise
octane-jsx remove 0.241 0.288 +11.0% −10.7% … +28.7% ⚪ within noise
octane-jsx runlots 52.242 46.875 −4.2% −16.6% … +14.8% ⚪ within noise
octane-jsx select_lots 2.504 2.726 −7.3% −29.7% … +13.1% ⚪ within noise
octane-jsx clear 113.992 108.675 −0.6% −22.5% … +15.1% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx js_raw 69,875 69,906 +31 (+0.0%) 🔴
octane-tsrx js_gzip 24,036 24,042 +6 (+0.0%) 🔴
octane-tsrx app_gzip 2,547 2,548 +1 (+0.0%) 🔴
octane-tsrx fw_raw 62,570 62,601 +31 (+0.0%) 🔴
octane-tsrx fw_gzip 21,489 21,494 +5 (+0.0%) 🔴
octane-tsrx todo_js_raw 82,785 82,816 +31 (+0.0%) 🔴
octane-tsrx todo_js_gzip 28,511 28,515 +4 (+0.0%) 🔴
octane-tsrx todo_js_brotli 25,564 25,560 −4 (−0.0%) 🟢
octane-tsrx todo_app_brotli 2,263 2,261 −2 (−0.1%) 🟢
octane-tsrx todo_fw_raw 76,836 76,867 +31 (+0.0%) 🔴
octane-tsrx todo_fw_gzip 25,834 25,838 +4 (+0.0%) 🔴
octane-tsrx todo_fw_brotli 23,301 23,299 −2 (−0.0%) 🟢
octane-tsrx chat_js_raw 81,530 81,561 +31 (+0.0%) 🔴
octane-tsrx chat_js_gzip 28,281 28,283 +2 (+0.0%) 🔴
octane-tsrx chat_js_brotli 25,421 25,437 +16 (+0.1%) 🔴
octane-tsrx chat_app_brotli 2,727 2,732 +5 (+0.2%) 🔴
octane-tsrx chat_fw_raw 74,715 74,746 +31 (+0.0%) 🔴
octane-tsrx chat_fw_gzip 25,168 25,170 +2 (+0.0%) 🔴
octane-tsrx chat_fw_brotli 22,694 22,705 +11 (+0.0%) 🔴
octane-tsrx weather_js_raw 123,073 123,104 +31 (+0.0%) 🔴
octane-tsrx weather_js_gzip 41,592 41,591 −1 (−0.0%) 🟢
octane-tsrx weather_js_brotli 36,998 37,023 +25 (+0.1%) 🔴
octane-tsrx weather_app_gzip 8,481 8,480 −1 (−0.0%) 🟢
octane-tsrx weather_app_brotli 7,218 7,193 −25 (−0.3%) 🟢
octane-tsrx weather_fw_raw 98,931 98,962 +31 (+0.0%) 🔴
octane-tsrx weather_fw_brotli 29,780 29,830 +50 (+0.2%) 🔴
octane-tsrx bindings_js_raw 684,447 684,478 +31 (+0.0%) 🔴
octane-tsrx bindings_js_gzip 227,063 227,062 −1 (−0.0%) 🟢
octane-tsrx bindings_js_brotli 193,740 193,749 +9 (+0.0%) 🔴
octane-tsrx bindings_app_gzip 119,713 119,714 +1 (+0.0%) 🔴
octane-tsrx bindings_app_brotli 99,507 99,466 −41 (−0.0%) 🟢
octane-tsrx bindings_fw_raw 323,951 323,982 +31 (+0.0%) 🔴
octane-tsrx bindings_fw_gzip 107,350 107,348 −2 (−0.0%) 🟢
octane-tsrx bindings_fw_brotli 94,233 94,283 +50 (+0.1%) 🔴
octane-tsrx shell_js_raw 291,305 292,238 +933 (+0.3%) 🔴
octane-tsrx shell_js_gzip 95,075 95,381 +306 (+0.3%) 🔴
octane-tsrx shell_js_brotli 82,831 83,199 +368 (+0.4%) 🔴
octane-tsrx shell_app_brotli 1,011 1,035 +24 (+2.4%) 🔴
octane-tsrx shell_fw_raw 289,406 290,339 +933 (+0.3%) 🔴
octane-tsrx shell_fw_gzip 93,926 94,232 +306 (+0.3%) 🔴
octane-tsrx shell_fw_brotli 81,820 82,164 +344 (+0.4%) 🔴
octane-tsrx shell_client_js_raw 236,248 237,176 +928 (+0.4%) 🔴
octane-tsrx shell_client_js_gzip 77,072 77,405 +333 (+0.4%) 🔴
octane-tsrx shell_client_js_brotli 67,743 68,045 +302 (+0.4%) 🔴
octane-tsrx shell_client_app_gzip 1,155 1,156 +1 (+0.1%) 🔴
octane-tsrx shell_client_app_brotli 1,011 1,012 +1 (+0.1%) 🔴
octane-tsrx shell_client_fw_raw 234,341 235,269 +928 (+0.4%) 🔴
octane-tsrx shell_client_fw_gzip 75,917 76,249 +332 (+0.4%) 🔴
octane-tsrx shell_client_fw_brotli 66,732 67,033 +301 (+0.5%) 🔴
octane-tsrx wayfinder_js_raw 360,666 361,451 +785 (+0.2%) 🔴
octane-tsrx wayfinder_js_gzip 118,878 119,170 +292 (+0.2%) 🔴
octane-tsrx wayfinder_js_brotli 103,049 103,348 +299 (+0.3%) 🔴
octane-tsrx threadline_oxc_js_raw 138,724 138,755 +31 (+0.0%) 🔴
octane-tsrx threadline_oxc_js_gzip 46,582 46,579 −3 (−0.0%) 🟢
octane-tsrx threadline_oxc_js_brotli 41,090 41,019 −71 (−0.2%) 🟢
octane-tsrx threadline_esbuild_js_raw 177,827 178,787 +960 (+0.5%) 🔴
octane-tsrx threadline_esbuild_js_gzip 60,347 60,703 +356 (+0.6%) 🔴
octane-tsrx threadline_esbuild_js_brotli 53,176 53,523 +347 (+0.7%) 🔴
octane-tsrx pagecraft_oxc_js_raw 549,786 550,716 +930 (+0.2%) 🔴
octane-tsrx pagecraft_oxc_js_gzip 173,614 173,986 +372 (+0.2%) 🔴
octane-tsrx pagecraft_oxc_js_brotli 147,631 147,883 +252 (+0.2%) 🔴
octane-tsrx pagecraft_esbuild_js_raw 585,500 586,460 +960 (+0.2%) 🔴
octane-tsrx pagecraft_esbuild_js_gzip 190,041 190,432 +391 (+0.2%) 🔴
octane-tsrx pagecraft_esbuild_js_brotli 161,725 162,114 +389 (+0.2%) 🔴
octane-tsrx full_fw_raw 541,334 542,125 +791 (+0.1%) 🔴
octane-tsrx full_fw_gzip 170,138 170,430 +292 (+0.2%) 🔴
octane-tsrx full_fw_brotli 144,747 144,922 +175 (+0.1%) 🔴
octane-jsx js_raw 150,119 150,150 +31 (+0.0%) 🔴
octane-jsx js_gzip 49,386 49,381 −5 (−0.0%) 🟢
octane-jsx js_brotli 43,800 43,789 −11 (−0.0%) 🟢
octane-jsx app_gzip 3,512 3,511 −1 (−0.0%) 🟢
octane-jsx app_brotli 2,887 2,907 +20 (+0.7%) 🔴
octane-jsx fw_raw 139,319 139,350 +31 (+0.0%) 🔴
octane-jsx fw_gzip 45,874 45,870 −4 (−0.0%) 🟢
octane-jsx fw_brotli 40,913 40,882 −31 (−0.1%) 🟢
octane-jsx shell_js_raw 341,096 342,031 +935 (+0.3%) 🔴
octane-jsx shell_js_gzip 111,410 111,763 +353 (+0.3%) 🔴
octane-jsx shell_js_brotli 96,786 97,093 +307 (+0.3%) 🔴
octane-jsx shell_app_gzip 770 772 +2 (+0.3%) 🔴
octane-jsx shell_app_brotli 667 663 −4 (−0.6%) 🟢
octane-jsx shell_fw_raw 339,993 340,928 +935 (+0.3%) 🔴
octane-jsx shell_fw_gzip 110,640 110,991 +351 (+0.3%) 🔴
octane-jsx shell_fw_brotli 96,119 96,430 +311 (+0.3%) 🔴
octane-jsx shell_client_js_raw 285,796 286,726 +930 (+0.3%) 🔴
octane-jsx shell_client_js_gzip 92,892 93,166 +274 (+0.3%) 🔴
octane-jsx shell_client_js_brotli 81,320 81,581 +261 (+0.3%) 🔴
octane-jsx shell_client_app_gzip 775 776 +1 (+0.1%) 🔴
octane-jsx shell_client_app_brotli 669 673 +4 (+0.6%) 🔴
octane-jsx shell_client_fw_raw 284,685 285,615 +930 (+0.3%) 🔴
octane-jsx shell_client_fw_gzip 92,117 92,390 +273 (+0.3%) 🔴
octane-jsx shell_client_fw_brotli 80,651 80,908 +257 (+0.3%) 🔴
octane-jsx full_fw_raw 541,334 542,125 +791 (+0.1%) 🔴
octane-jsx full_fw_gzip 170,138 170,430 +292 (+0.2%) 🔴
octane-jsx full_fw_brotli 144,747 144,922 +175 (+0.1%) 🔴

17 other measured values are unchanged.

Public-import reachability bundles (bytes)

target metric base head Δ
cli-spa-starter raw 63,731 63,762 +31 (+0.0%) 🔴
cli-spa-starter gzip 22,862 22,864 +2 (+0.0%) 🔴
cli-spa-starter brotli 20,282 20,266 −16 (−0.1%) 🟢
root-static raw 74,078 74,109 +31 (+0.0%) 🔴
root-static gzip 24,766 24,773 +7 (+0.0%) 🔴
root-static brotli 22,345 22,384 +39 (+0.2%) 🔴
memo-context raw 124,295 124,326 +31 (+0.0%) 🔴
memo-context gzip 41,361 41,360 −1 (−0.0%) 🟢
memo-context brotli 36,972 36,987 +15 (+0.0%) 🔴
hydrate-frame raw 345,163 345,954 +791 (+0.2%) 🔴
hydrate-frame gzip 111,264 111,570 +306 (+0.3%) 🔴
hydrate-frame brotli 96,918 97,065 +147 (+0.2%) 🔴
suspense-transition raw 151,959 152,738 +779 (+0.5%) 🔴
suspense-transition gzip 49,659 49,935 +276 (+0.6%) 🔴
suspense-transition brotli 43,956 44,144 +188 (+0.4%) 🔴
render-errors raw 106,496 106,527 +31 (+0.0%) 🔴
render-errors brotli 31,308 31,291 −17 (−0.1%) 🟢
descriptor-children raw 146,505 146,536 +31 (+0.0%) 🔴
descriptor-children gzip 47,955 47,952 −3 (−0.0%) 🟢
descriptor-children brotli 42,832 42,831 −1 (−0.0%) 🟢
renderable-holes raw 83,730 83,761 +31 (+0.0%) 🔴
renderable-holes gzip 27,831 27,833 +2 (+0.0%) 🔴
renderable-holes brotli 25,077 25,088 +11 (+0.0%) 🔴
split-shell raw 399,010 399,801 +791 (+0.2%) 🔴
split-shell gzip 130,432 130,708 +276 (+0.2%) 🔴
split-shell brotli 113,785 114,001 +216 (+0.2%) 🔴
split-shell-runtime raw 325,933 326,724 +791 (+0.2%) 🔴
split-shell-runtime gzip 105,302 105,575 +273 (+0.3%) 🔴
split-shell-runtime brotli 91,127 91,335 +208 (+0.2%) 🔴
binding-base-ui-vite raw 159,269 159,300 +31 (+0.0%) 🔴
binding-base-ui-vite gzip 52,343 52,344 +1 (+0.0%) 🔴
binding-base-ui-vite brotli 46,547 46,562 +15 (+0.0%) 🔴
binding-base-ui-esbuild raw 202,933 203,869 +936 (+0.5%) 🔴
binding-base-ui-esbuild gzip 68,522 68,847 +325 (+0.5%) 🔴
binding-base-ui-esbuild brotli 60,611 60,963 +352 (+0.6%) 🔴
binding-radix-vite raw 156,614 156,645 +31 (+0.0%) 🔴
binding-radix-vite gzip 51,333 51,330 −3 (−0.0%) 🟢
binding-radix-vite brotli 45,686 45,712 +26 (+0.1%) 🔴
binding-radix-esbuild raw 200,443 201,379 +936 (+0.5%) 🔴
binding-radix-esbuild gzip 67,569 67,908 +339 (+0.5%) 🔴
binding-radix-esbuild brotli 59,842 60,110 +268 (+0.4%) 🔴
binding-mantine-hooks-esbuild gzip 28,802 28,803 +1 (+0.0%) 🔴
binding-mantine-hooks-esbuild brotli 25,986 25,949 −37 (−0.1%) 🟢
binding-apollo-client-vite raw 305,262 305,293 +31 (+0.0%) 🔴
binding-apollo-client-vite brotli 84,848 84,737 −111 (−0.1%) 🟢
binding-apollo-client-esbuild raw 356,976 357,912 +936 (+0.3%) 🔴
binding-apollo-client-esbuild gzip 116,064 116,413 +349 (+0.3%) 🔴
binding-apollo-client-esbuild brotli 102,424 102,719 +295 (+0.3%) 🔴
binding-usehooks-ts-esbuild gzip 29,051 29,053 +2 (+0.0%) 🔴
binding-usehooks-ts-esbuild brotli 26,207 26,252 +45 (+0.2%) 🔴

91 other measured values are unchanged.

@trueadm
trueadm merged commit aae13f6 into main Nov 12, 2026
33 checks passed
@trueadm
trueadm deleted the fix/suspended-list-rows branch November 12, 2026 22:34
@github-actions github-actions Bot mentioned this pull request Nov 12, 2026
trueadm added a commit that referenced this pull request Nov 13, 2026
…#2528)

* fix(octane): suspend a list of suspending rows once, not once per row

* fix(octane): pace rejected row thenables and fold row deferral without suspension

* perf(octane): keep row suspension collection out of bundles that cannot suspend

* test(octane): pin row-ordered request starts for suspending keyed lists

---------
domgan-oai added a commit that referenced this pull request Nov 13, 2026
* feat: let packages declare Strong mode and applications require it (#2400)

* feat: let packages declare Strong mode and applications require it

Packages declare Strong in package.json with "octane": { "strong": true }
or a list of paths. compiler.strongDependencies: { require, allow } fails the
build with OCTANE_STRONG_DEPENDENCY when an application module reaches a
non-Strong module in another Octane package or an octane/react boundary. The
walk moves from the CLI into the compiler, so octane analyze previews exactly
what the build rejects.

The six packages the website renders declare their Strong modules, and the
website turns require on with an empty allow list. Its playground version
picker replaces @octanejs/base-ui's Combobox with a local listbox.

Refs #2059

Co-Authored-By: Claude <[email protected]>

* fix: address review on Strong dependency requirement

- Vite plugin: always read octane.config.ts, so strongDependencies is not
  dropped when strong and renderers are both passed inline.
- octane analyze: keep going under require when there are no views, so plain
  application modules are still checked.
- Playground version picker: keep focus in the input on any press inside the
  list, not only on option rows.

Co-Authored-By: Claude <[email protected]>

* fix(website): let the version list's scrollbar scroll

A mousedown preventDefault on the scrolling list also blocked its scrollbar.
The list now takes focus itself (tabIndex -1), and the field closes the popup
only when focus leaves it. Choosing an option returns focus to the input.

Co-Authored-By: Claude <[email protected]>

* fix(website): close the version list through the bubbling onBlur

Octane's onBlur is delegated as focusout, as React's is, and it is the
typed name; onFocusOut is not.

Co-Authored-By: Claude <[email protected]>

* fix(website): return focus to the version input on Escape

The list can hold focus, so hiding it on Escape dropped focus to the page.

Co-Authored-By: Claude <[email protected]>

* fix(compiler): name the Strong dependency code in its message

The printed-code audit rejects interpolating a non-diagnostic `.code`.

Co-Authored-By: Claude <[email protected]>

* test(website): expect the package reason in Strong module status

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(codemod): migrate verified path-only SVG components (#2398)

* fix(codemod): trace SVGs through native renderable props (#2402)

* feat(codemod): migrate verified path-only SVG components

* fix(codemod): trace SVGs through native renderable props

* fix(codemod): follow proven renderable TypeScript wrappers

* fix(signals): replay optimistic$ updaters over newer source values (#2401)

* fix(signals): replay optimistic$ updaters over newer source values

An overlay kept the value its updater produced at write time, so a refetch,
stream value or direct write stayed hidden behind a pending edit, and a
rejected operation's edit survived inside a later operation's value. Keep
each operation's writes and replay them in order over the current source,
as useOptimistic rebases its updates.

* fix(signals): show an optimistic$ overlay that produces undefined

* fix(data): server-assigned IDs for creates, and one commit per server transaction (#2404)

* fix(data): server-assigned IDs for creates, and one commit per server transaction

A create can name where the server's ID is in its reply. Writes to the new
record wait for the create, are sent with the server's ID, and are refused
unsent if the create is refused. Every view a reply or an optimistic edit
changes is recomputed before any reader is notified.

* fix(data): keep a created record's writes in order across its new ID, and end them on retire

* fix(codemod): ignore erased references in SVG ownership checks (#2406)

* fix: remove the website's remaining client descriptors (#2405)

* feat(strong): reject markup outside template output

Strong mode now reports OCTANE_STRONG_VALUE_JSX for JSX returned from a
function, assigned, passed as a prop or argument, or chosen by an
expression, and for @{} blocks stored in objects or chosen by an
expression: each builds an element descriptor. The website, devtools tabs,
and compiled Router document no longer build descriptors on the client.

ErrorBoundary renders a fallback={@{ ... }} body instead of calling it as a
render prop, and the codemod lowers plain-reference && guards in Strong
output to @if/@else.

Refs #2059

* revert(strong): allow value JSX again; keep the ErrorBoundary and document fixes

Value JSX already compiles to a template behind an 'r:' record, so Strong
keeps accepting it. This drops OCTANE_STRONG_VALUE_JSX, the codemod guard
lowering, and the test conversions it required.

Kept: ErrorBoundary renders a fallback={@{ ... }} body instead of calling it,
the compiled Router document leaves server-only html/head/body out of client
builds, DevtoolsDemo's Suspense fallbacks are render bodies, and an MDX page
no longer nests a <p> inside a <p>.

* test(data): compare cached responses with a normalized worker store (#2408)

* test(data): compare cached responses with a normalized worker store on library journeys

Runs four library journeys and a cold start from storage against octane/data
as merged and a prototype normalized store that evaluates declared views in
a worker. Measures views shown, bytes fetched and persisted, worker traffic,
impossible states and feature code, as promised on #2362.

* test(data): add a normalized design that loads view windows instead of every book

* test(data): refuse journey 3's star by book ID, so the rename cannot let it through

* fix(codemod): report bare SVG issuer changes in ordinary components (#2407)

* fix(codemod): report bare SVG issuer changes in ordinary components

* fix(codemod): trace bare SVGs selected by component fallbacks

* fix(codemod): check SVG defaults on local destructuring

* fix(codemod): exclude SVG defaults overridden by an inline object

* fix(tanstack-router): keep the server document out of browser builds (#2409)

* fix(tanstack-router): keep the server document out of browser builds

The compiled Html, Head, and Body read their server-only document
components through #server-document, which resolves to a null stub under
the browser condition. Folding isServer already removed those components
from client chunks, but Rolldown had linked their createScopedElement
import first and kept it exported from the runtime chunk.

Refs #2059

* test(tanstack-router): classify the server document resolution test

* feat(codemod): migrate path SVGs with conditional clsx tokens (#2411)

* feat(data): read the store as native Octane signal reads (#2410)

* feat(data): read the store as native Octane signal reads

The Octane binding reports each store read to the renderer as a native read
source, so components subscribe as they do to signal$ and query$ and need no
hook slot. The store calls its transport after the synchronous work that
started a load, so a read during render never runs it inside the render.

* fix(data): deliver store changes to Octane readers outside the transition

Native-read notifications honored the ambient transition, so a write inside
startTransition queued its optimistic edit behind the transition. runUrgent
clears the transition context around the notification, as
useSyncExternalStore's scheduleUrgentRender does.

* feat(codemod): migrate static SVG groups and rectangles (#2412)

* feat(data): declared lists with view() (#2413)

* feat(data): declared lists with view()

A view defines a list by a rule over an entity. It loads its window plus a
margin, shares records with every other view of the entity, and evaluates its
rule locally, so an edit moves a record into, out of or across every view in
the task that made it. A write can name its saved record with `record`, which
views take in place of reloading. The Shelf example moves onto views.

* fix(data): keep paged views within max and wait for edits before reloading short windows

A later page took a left margin on top of a full window, so a page at the
view's max was refused; the margins now give way to the cap. A window that
unconfirmed edits left short reloaded on every new span until they settled;
it now reloads once the server has those edits.

* feat(codemod): prove ownership of presence-tested SVG props (#2415)

* feat(data): native forms for writes (#2414)

* feat(data): native forms for writes

A write that declares `form` fields can be submitted by a plain HTML form,
which works before hydration and with JavaScript off. `useForm(write, key?)`
gives the form its attributes, hidden fields, pending state, submitted values
and field issues; once hydrated it submits through the store with the write's
optimistic edit. On the server, `forms(request)` runs a native submission and
answers 303, or returns the refusal for the page to render again, and signs
each page's forms for its account. The Shelf example's add and remove move
onto forms, with JavaScript-off and hydration journeys.

* chore(data): format forms files and refresh the example catalog

The new forms module and its tests were untracked when formatted, and the
Shelf journey added to example.json changes the generated catalog and its
e2e shard weights.

* fix(data): let go of a form that unmounted while its submission was in flight

A form handle was released only on unsubscribe while idle, so one that
unmounted mid-submission, as every removed row does, stayed in the store for
the rest of the session. It now also lets go when its submission settles with
no subscribers.

* feat(data): encrypted persistent cache with a size budget (#2416)

* feat(data): encrypted persistent cache with a size budget

A store given `persist: { storage, partition, key, budget }` saves each
read's confirmed value, and each view's confirmed rows, and starts from them
after a restart with their age kept. Values are encrypted with AES-GCM under a
key from the session, and every name the storage sees is a keyed hash, so
people sharing a browser can neither read nor list each other's values. A
value saved under another shape of its read's output schema, where the
validator describes one, or another `version`, is discarded; one that fails
validation on restore is too. Saves are coalesced per host task and the
partition is purged to its budget, expired values first and then the least
recently used, never one a mounted component shows. The budget defaults to a
size chosen by device memory, data saving and quota. `indexedDBStorage()` and
`memoryStorage()` are included. The Shelf example persists its store.

* fix(data): save reads a write carries back, and count restores as recent use

A write reply's refreshed reads were adopted but never saved, so a reload
within their freshness showed the value from before the write. A restored
value's last use reached only the next storage write, not the order purging
reads, so it could be purged before older unused values.

* feat(codemod): follow SVGs through single-read render locals (#2417)

* feat(codemod): follow SVGs through single-read render locals

* fix(codemod): preserve evaluation and early-return boundaries

* fix(data): restore values a write marked stale as stale, and never purge in-use values at startup (#2419)

* fix(data): restore values a write marked stale as stale, and never purge in-use values at startup

A write or `invalidate()` marked only the entries in memory, so a value saved
earlier and restored within its freshness showed data from before the write.
Each tag and entity name now keeps the time it was last marked, in its own
encrypted record, and each saved value the time it was saved and the names it
holds; a value marked after it was saved is restored stale.

The startup purge ran before any component had asked for a value, so it could
delete values mounted components were about to restore. It now removes only
expired values; the budget applies from the first save.

* fix(data): save invalidation marks again after a failed save

The marks were flagged saved before the write finished and a failed write was
ignored, so its invalidations were lost and a later restart could show a value
from before the write as fresh. A failed save now leaves them flagged, and the
next save writes them.

* feat(codemod): migrate SVG classes from CSS Modules (#2420)

* feat(data): durable writes that survive a restart (#2422)

* feat(data): durable writes that survive a restart

Writes listed in `persist.journal` are saved to an encrypted journal, in the
cache's storage, before they are sent, and leave it once their outcome is
known. After a restart the store shows each journaled write's edit again and
reads the journal's `receipt` with its operation ID: an applied receipt keeps
the edit, any other rolls it back, and the write is never sent twice. A write
whose receipt cannot be read stays for the next start; one this build no
longer declares, or whose input it no longer accepts, is dropped. `retire()`
clears the journal. The Shelf example's writes are durable.

* fix(data): recover journaled writes in submission order, and retry failed removals

Storage lists the journal by hashed name, so recovered writes came back in an
arbitrary order and a later edit could lose to an earlier one. Each entry now
carries its submission order and recovery sorts by it. A failed removal from
the journal was dropped, so a settled write could come back after the next
start; it is now tried again at the next save.

* fix(codemod): defer mutable SVG clsx guards (#2423)

* fix(codemod): defer mutable SVG clsx guards

* perf(codemod): reuse fixed SVG parameter proofs

* feat(data): server-ordered reads share records with views (#2424)

* feat(data): server-ordered reads share records with views

A read that selects entities but only the server can order, such as search
results, keeps the order and membership it was sent but now shares records
with the views. Its load gives views any newer copy of a record they hold,
and it shows any copy newer than its own load, from a view, another read or a
write's `record`. A load notifies every read sharing its entities. Copies are
compared by field, and an unchanged projection keeps its identity, so a read
whose shared records did not change keeps its snapshot, even with an edit
pending.

* fix(data): share only records views hold, and tell views and the cache when a read shares one

A server-ordered read inserted every record it carried into the shared table,
so a late one could put back a record a view had since dropped; it now only
updates records the table holds. Reads a write's reply carried back now
notify every read sharing their entities, as a load does. And a read that
gives views a newer copy marks those views for saving.

* feat(codemod): pass workspace stores to deferred local helpers (#2425)

* feat(codemod): pass workspace stores to deferred local helpers

* fix(codemod): prove the native click output owner

* perf(data): read the store through useSyncExternalStore on the client again (#2429)

The client binding reported each store read to the renderer as a native signal
read. Measured against useSyncExternalStore on the same production app, with
identical renders and DOM, the native path was slower in every step large
enough to measure, and importing it turned on read collection around every
component's render, including ones that read no data. Both bindings now read
snapshots through useSyncExternalStore, as React does; the client entry is
about 3 KB gzipped smaller.

* feat(codemod): migrate native submit event annotations (#2426)

* feat(codemod): migrate native submit event annotations

* fix(codemod): verify forwarded submit event callbacks

* fix(codemod): isolate submit exports and callback slots

* fix(codemod): resolve contextual submit event types

* fix(codemod): keep deferred React submit import types

* fix(codemod): verify workspace store helper dependencies (#2430)

* fix(codemod): verify workspace store helper dependencies

* fix(codemod): trace runtime class bases in store helpers

* test(data): stabilize persistence cache assertions (#2431)

* feat(codemod): preserve explicit effect restart triggers (#2427)

* fix(codemod): trace Intl props through native forwarding wrappers (#2433)

* fix(codemod): preserve inline React Intl substitutions (#2432)

* feat(data): serve a store through a module server function (#2434)

* feat(react): support inline ReactCompat hosts (#2436)

* feat(codemod): lower JSX lists over dense array literals (#2435)

* feat(codemod): lower JSX lists over dense array literals

* fix(codemod): recognize type-wrapped dense iterables

* feat(app-core): serve module server functions from a custom server; Shelf over RPC with Vite and Rspack (#2440)

* feat(app-core): serve module server functions from a custom server; Shelf over RPC with Vite and Rspack

* fix(shelf): keep each Rspack compiler's output apart; pass Vite's own requests through untouched

* feat(data): publish, forget, awaitable retire and opaque cache keys (#2443)

* feat(data): publish, forget, awaitable retire and opaque cache keys (#2439)

* fix(data): let reads join a publish, and keep the saved copy when one is refused

* fix(codemod): defer opaque scoped store inputs (#2428)

* feat(codemod): trace scoped store factory wrappers

* fix(codemod): defer opaque scoped store inputs

* fix(codemod): keep opaque origins through imports and type wrappers

---------

Co-authored-by: Dominic Gannaway <[email protected]>

* feat(floating-ui): add standalone positioning entry (#2438)

* feat(floating-ui): add standalone positioning entry

* fix(floating-ui): classify positioning-only parity tests

* feat(codemod): migrate provider-owned React Intl locales (#2442)

* feat(codemod): migrate destructured React Intl locales

* fix(codemod): prove ownership of destructured Intl locales

* perf(data): evaluate each view from an index of the records its window holds (#2446)

* fix(codemod): migrate expression-bodied effects with explicit dependencies (#2445)

* test(codemod): retain diagnostics for opaque React Intl service calls (#2437)

* feat(codemod): preserve deferred React Intl service values

* fix(codemod): accept discarded deferred Intl service calls

---------

Co-authored-by: Dominic Gannaway <[email protected]>

* fix(codemod): preserve key evaluation in guarded list rows (#2447)

* feat(data): page views with more, pages() and usePages() (#2449)

* feat(data): page views with more, pages() and usePages()

* fix(data): keep later pages shown while an expired earlier page reloads

* fix(data): retry a failed earlier page from loadMore, and stop reporting it as refreshing

* fix(codemod): preserve property triggers in explicit effect dependencies (#2450)

* fix(codemod): preserve setup before keyed map rows (#2453)

* fix(codemod): preserve setup before keyed map rows

* fix(codemod): recognize inert primitive row keys

* fix(compiler): share keyed row destructuring with the row body (#2455)

* fix(compiler): share keyed row destructuring with the row body

* fix(compiler): preserve const row bindings in SSR keys

* test(compiler): expect one SSR row default evaluation

* fix(compiler): retain keyed text rows across equivalent bindings

* fix(codemod): enable React adapters on Octane 0.17 (#2468)

* fix(radix): project Slottable children without duplicating the host (#2473)

* fix(octane): preserve resource hints in React-hosted renders (#2490)

* fix(codemod): migrate React DOM root types (#2483)

* fix(codemod): migrate generic React event handlers (#2487)

* fix(codemod): preserve literal SVG data attributes (#2461)

* feat(octane): support a document body portal target (#2467)

* fix(octane): preserve universal imperative handle refs (#2471)

* fix(octane): preserve universal imperative handle refs

* test(drei): keep the PivotControls observer ref stable

* test(drei): refresh PivotControls parity evidence

* fix(compiler): preserve mapped JSX row keys (#2459)

* fix(compiler): preserve mapped JSX row keys

* fix(compiler): keep proven mapped tags on the native path

* fix(compiler): evaluate keys in empty mapped SSR rows (#2460)

* fix(codemod): migrate effect-only lazy mount records (#2463)

* feat(app-core): route seeds and a config data module for Vite and Rsbuild (#2492)

* feat(app-core): route seeds and a config data module for Vite and Rsbuild

* fix(app-core): cancel a live route stream on request error, and never hydrate a data root as void

* fix(codemod): preserve conditional input identity (#2503)

* fix(codemod): preserve literal SVG root overrides (#2501)

* fix(codemod): allow type queries on store consumers (#2495)

* fix(codemod): preserve the React ref allocator (#2488)

* fix(codemod): migrate standalone Floating UI positioning (#2475)

* fix(codemod): detect escaped eval in scoped store consumers (#2478)

* fix(compiler): preserve effectful JSX map callback order (#2474)

* fix(codemod): preserve authored inline React boundaries (#2479)

* feat(octane): capture initial render values in Strong mode (#2482)

* feat(octane): capture initial render values in Strong mode

* fix(compiler): preserve existing layout snapshot edits

* fix(release): separate Octane and Lynx snapshot changesets

* fix(compiler): preserve eager inputs to initial render snapshots

* test(codemod): assert eager snapshot repair during fallback

* test(cli): verify eager snapshot suggestions

* fix(codemod): prove React Intl locale ownership (#2477)

* fix(codemod): trace immutable store handle aliases (#2485)

* fix(codemod): preserve fresh imperative handles (#2499)

* fix(codemod): preserve fresh imperative handles

* fix(codemod): defer redeclared handle methods

* fix(codemod): preserve imperative handle receiver dependencies (#2470)

* fix(codemod): keep automatic React islands inside paragraphs (#2480)

* fix(codemod): preserve authored inline React boundaries

* fix(codemod): keep automatic React islands inside paragraphs

* fix(codemod): recognize published inline React host exports

* fix(codemod): keep conditional React islands inside paragraphs

* fix(codemod): follow imported fragments to paragraph hosts

* fix(codemod): adapt consolidated Radix Slot exports (#2472)

* fix(codemod): adapt consolidated Radix Slot exports

* fix(codemod): preserve local aliases that shadow Radix

* fix(codemod): preserve local Radix Slot import names

* fix(codemod): preserve SVG opacity and conditional classes (#2500)

* fix(octane): separate rewritten initial-value binding (#2505)

* fix(codemod): preserve SVG inline transforms (#2504)

* fix(codemod): preserve SVG inline transforms

* fix(codemod): recognize prior generated SVG helper

* feat(data): realtime feeds that keep loaded reads current (#2506)

* feat(data): realtime feeds that keep loaded reads current

Add feed() contracts, listen()/useFeed with one shared connection per feed
and parameters, and receive(store, changes). Events put or remove records,
replace a read's value, or invalidate tags. The store drops duplicate event
IDs, resumes from its cursor, and reloads what a feed covers after a gap.
createDataHandler serves feeds through handler.listen over a module server
function, read in the browser with serverListener. Shelf streams its changes
under Vite and Rspack.

Co-Authored-By: Claude <[email protected]>

* fix(data): reload a lower view window when a feed puts a record above it

Also have the Shelf feed check its history before waiting, so a write made
while a frame was being read is sent.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): preserve fixed SVG colors (#2494)

* fix(codemod): preserve fixed SVG colors

* fix(codemod): recognize prior generated SVG helper

* fix(codemod): defer locally mutated store handles (#2493)

* fix(codemod): preserve custom and sparse JSX map dispatch (#2484)

* fix(codemod): migrate proven render-phase boolean state (#2465)

* fix(motion): support server rendering and hydration for motion hosts (#2491)

* fix(motion): support server rendering and hydration for motion hosts

* test(motion): classify the server host conformance tests

* fix(motion): preserve the initial frame during lazy feature loading

* fix(motion): release SVG frame for authored static values

* fix(codemod): preserve layout effect property dependencies (#2498)

* fix(codemod): migrate local rectangular SVG clipping (#2466)

* fix(codemod): migrate ref-only effect helpers (#2476)

* feat(codemod): migrate single-path SVG patterns (#2469)

* feat(codemod): migrate single-path SVG patterns

* fix(codemod): migrate static SVG path transforms

* fix(codemod): preserve SVG matrix transforms

* fix(codemod): report React hooks left in local helpers (#2464)

* fix(codemod): report React hooks left in local helpers

* fix(codemod): report React hooks after literal setup

* fix(codemod): defer React DOM-linked store inputs (#2486)

* fix(codemod): defer React DOM-linked store inputs

* fix(codemod): follow executable store dependencies

* fix(codemod): narrow resource hints to executable imports

* fix(codemod): preserve shared external-store hooks in native setup (#2481)

* fix(codemod): report React hooks left in local helpers

* fix(codemod): preserve shared external-store hooks in native setup

* fix(codemod): ignore type-only external-store hook references

* fix(codemod): preserve external-store hooks after null refs

* fix(codemod): report unsupported native hooks after null refs

* Version Packages (#2343)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(codemod): report lost SSR hints in imported state initializers (#2510)

* fix(codemod): report render-time scoped store member reads (#2513)

* fix(codemod): report unproven React Intl formatter ownership (#2515)

* fix(compiler): preserve writable branch captures (#2511)

* fix(codemod): preserve native host ref state in Strong mode (#2517)

* fix(codemod): preserve native host ref state in Strong mode

* fix(codemod): verify the binding of native ref owners

* fix(codemod): preserve opaque array map dispatch (#2512)

* fix(codemod): preserve opaque array map dispatch

* fix(examples): make Hacker News list dispatch explicit

* test(codemod): verify Hacker News fresh lists in Strong mode

* fix(codemod): report opaque effect dependency getters (#2516)

* fix(codemod): report opaque effect dependency getters

* fix(codemod): check effect getters in JSX-free templates

* fix(codemod): preserve keyed JSX row evaluation order (#2518)

* fix(codemod): preserve keyed JSX row evaluation order

* fix(codemod): preserve keyed rows with multiline JSX children

* feat(testing): add installTestClock, one host seam for runtime time (#2519)

* feat(testing): add installTestClock, one host seam for runtime time

Route the runtime's timers, animation frames, host tasks and now() through
host-task.ts so one installed clock decides their order. octane/testing's
installTestClock() owns that clock: advance(ms), frame() and settle() move
it; act() runs work that is already due without moving time; uninstall()
hands held work back to the host. Converts the flaky ViewTransition
pre-render passive test from half-faked timers to the clock.

Phase 1 of #2508.

Co-Authored-By: Claude <[email protected]>

* fix(testing): keep host-task DOM-free and create the post-paint channel eagerly

host-task.ts is part of DOM-free programs (ink, opentui), so read
requestAnimationFrame and document through a typed globalThis instead of
naming DOM globals. Restore creating the post-paint MessageChannel when
passive work is scheduled, as lazy-client-initialization pins, rather
than inside the frame callback.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(compiler): type generated child traversal on opaque DOM hosts (#2520)

* fix(codemod): retain async and generator map results (#2521)

* fix(codemod): keep retained maps renderable in directive arms (#2522)

* fix(codemod): report generated Intl formatter ownership (#2523)

* fix(octane): preserve type imports in the native TypeScript parser (#2525)

* feat(compiler): hint Strong reads of state after its own setter (#2526)

* feat(compiler): hint Strong reads of state after its own setter

* fix(compiler): scope read-after-set updates per switch case; list recipe in Strong skill

* feat(data): WebSocket and broker feed listeners, and feed cursors across restarts (#2524)

* feat(data): WebSocket and broker feed listeners, and feed cursors across restarts

webSocketListener streams feeds over a socket that handler.accept serves
with no time limit, refusing other origins. pubSubListener listens through a
broker the page already uses. A persistent store saves each feed's cursor
with its stale marks, so the next session replays what it missed, and an
event marks saved copies it could not reach in memory stale.

Co-Authored-By: Claude <[email protected]>

* fix(data): back off a WebSocket feed the server closes with an error

A browser calls any completed close handshake clean, so a refused (1008) or
failed (1011) socket reconnected at once. Only a normal close now ends a
connection without an error, and with Octane's protocol a socket counts as
live once accept has read its request.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* chore(changeset): release installTestClock and data feed listeners as patches (#2527)

* chore(changeset): release installTestClock as a patch

* chore(changeset): release data feed listeners as a patch

* feat(testing): put data, hydration and signals timing on the test clock (#2529)

Phase 2 of #2508. Route octane/data freshness, retention, persistence
stamps and feed backoff, idle and streamed hydration timers, deferred
event fallbacks, signal action timeouts, resize-observer delivery and the
universal re-settle retry through host-task.ts. Add hostDateNow() and
TestClock.dateNow() so data freshness follows the clock, and let the
clock respect a hidden page. Convert transition-timeout and effect-timing
off Vitest fake timers, run the data freshness test on the clock, and add
an idle-hydration clock test.

Co-authored-by: Claude <[email protected]>

* feat(data): carry feed positions in a server render's seed (#2530)

* feat(data): carry feed positions in a server render's seed

A store with no listen asks each feed in its new feeds option for its
position before its first read, and its seed carries them, so the browser's
feed resumes from before the page's values loaded. The data handler answers
a position request with the first cursor the feed's handler yields when it
starts with none.

Co-Authored-By: Claude <[email protected]>

* fix(data): stop a server render's feed position request when its store retires

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(octane): suspend a list of suspending rows once, not once per row (#2528)

* fix(octane): suspend a list of suspending rows once, not once per row

Co-Authored-By: Claude <[email protected]>

* fix(octane): pace rejected row thenables and fold row deferral without suspension

Co-Authored-By: Claude <[email protected]>

* perf(octane): keep row suspension collection out of bundles that cannot suspend

Co-Authored-By: Claude <[email protected]>

* test(octane): pin row-ordered request starts for suspending keyed lists

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(compiler): suggest useInitialValue for nested readonly bindings (#2533)

* fix(codemod): preserve eager prop reads in state initializers (#2536)

* fix(codemod): move effect-only ref helpers into their effect (#2535)

* fix(codemod): guard escaped scoped-store handles (#2537)

* fix(codemod): respect nested React Intl export conditions (#2538)

* fix(codemod): resolve effect restart triggers by binding (#2539)

* fix(compiler): diagnose state updates through bound effect schedulers (#2544)

* fix(codemod): report React Intl scalar formatter ownership (#2543)

* feat(testing): put server and RPC deadlines on the test clock (#2531)

* feat(testing): put server and RPC deadlines on the test clock

Part 1 of phase 3 of #2508. Route the SSR suspense deadline, the stalled
reader backoff and its deadline, streamed-signal budgets, server-function
batch and stream timeouts, the server-function client deadline and timer,
octane/data's server long-poll lifetime and the React-hosted SSR timeout
through host-task.ts. SSR's macrotask yield stays on real time: it waits
for real I/O. Convert the prerender deadline, stalled-reader deadline and
RPC client deadline tests to the clock.

Co-Authored-By: Claude <[email protected]>

* fix(testing): keep TestClock.dateNow() in whole milliseconds

The clock's time starts at performance.now() and frame() snaps to 16 ms
boundaries, so dateNow() could be fractional. Date.now() never is, and
callers rely on that: the server-function client passed a fractional
leftover deadline to serverResultLimits, which requires an integer, and
threw a RangeError. Floor the clock's date, as Date.now() would be.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(radix): ignore deferred outside presses on registered branches (#2534)

* test(tanstack-virtual): render the SSR hydration fixture in beforeAll (#2550)

* test(tanstack-virtual): render the SSR hydration fixture in beforeAll

The test body started a cold Vite SSR server and compiled the whole server
runtime before hydrating. That setup is ~0.5 s idle and 2.2-2.7 s on the
loaded React parity shard 2/4, with a tail past the 5 s test budget; the
hydration under test takes ~20 ms. Render the server twin in beforeAll, as
the input-otp and alien-signals hydration suites already do.

* test(tanstack-virtual): refresh the ssr-hydration parity evidence hash

* fix(data): preserve ambiguous writes and fence dispatch after retirement (#2540)

* fix(data): preserve ambiguous writes and fence dispatch after retirement

* test(data): narrow the uncertain write before settling it

* test(data): wait for dispatch before retiring the test store

* fix(data): keep newer reads when write replies arrive out of order (#2541)

* fix(data): keep newer reads when write replies arrive out of order

* fix(data): reuse a matching feed reply and reconcile a partial update

* test(data): cover deletions outside the current read and view

* fix(data): preserve confirmed SSR snapshots and lazy seed age (#2546)

* fix(data): preserve confirmed SSR snapshots and lazy seed age

* refactor(data): keep serialized seed entries uniform

* fix(codemod): migrate scoped-store uses in Effect Events (#2552)

* fix(codemod): migrate render latches initialized from boolean props (#2551)

* fix(data): preserve native form retry identity and retire held forms (#2547)

* fix(data): preserve native form retry identity and retire held forms

* fix(data): preserve native form retry identity and retire held forms

* fix(data): keep mounted form hooks idle after retirement

* test(data): cancel native submit on a retired mounted form

* fix(data): discard frames after a feed disconnects (#2545)

* fix(data): discard frames after a feed disconnects

* docs(data): explain retirement at the feed delivery boundary

* fix(codemod): protect React island source modules before writing (#2554)

* fix(codemod): protect React island source modules before writing

* fix(codemod): follow logical React island component values

* fix(data): preserve recovery state until cache updates are durable (#2542)

* fix(data): preserve recovery state until cache updates are durable

* fix(data): reconcile obsolete journal entries and retry a failed flush

* fix(data): retain prepared cache values across storage retries

* fix(data): preserve wire input identity and rejoin evicted reads (#2548)

* fix(data): preserve wire input identity and rejoin evicted reads

* fix(data): preserve wire input identity and rejoin evicted reads

* test(effect-atom): wait for scheduled task completion (#2553)

* test(effect-atom): wait for scheduled task completion

* test(effect-atom): refresh scheduled-task parity evidence

* fix(codemod): recover shorthand types for stable scalar props (#2555)

* fix(codemod): recover shorthand types for stable scalar props

* fix(codemod): defer shorthand recovery for unresolved value imports

* fix(codemod): check imported JSX before migrating scoped-store arguments (#2556)

* fix(codemod): check imported JSX before migrating scoped-store arguments

* fix(codemod): resolve the value of merged scoped-store exports

* fix(data): reconcile persisted and server-rendered feed cursors (#2549)

* fix(data): reconcile persisted and server-rendered feed cursors

* fix(data): reconcile persisted and server-rendered feed cursors

* fix(data): persist the reconciled cursor on idle streams

* feat(data): one owner for several replica stores over message ports (#2559)

* feat(data): one owner for several replica stores over message ports

Co-Authored-By: Claude <[email protected]>

* fix(data): reloads never join an older shared read; followed creates gate edits

A replica asking again for a read it already asked for is reloading, so the
owner starts a new request rather than answering it with one that may predate
the change, and only the newest read for a key shares its value. A replica
following another tab's create now holds that record's queue behind its
outcome, as the sending tab does.

Co-Authored-By: Claude <[email protected]>

* fix(data): a replica recognises a view's reload by its wire key

Co-Authored-By: Claude <[email protected]>

* fix(data): only reads count toward a replica's reload record

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(mcp-server): agent driver that drives an Octane app on the test clock (#2558)

* feat(mcp-server): agent driver that drives an Octane app on the test clock

Adds the octane/agent entry, which installs the test clock ahead of the app's scripts, and nine octane_app_* MCP tools that drive one page of a Vite dev server in Chromium (#2508 phase 3).

* style(mcp-server): format agent driver files

* fix(mcp-server): serve the agent module under Vite's base

* fix(codemod): retain installed data descriptors in scoped-store effects (#2561)

* fix(codemod): trace scoped-store JSX through wildcard exports (#2562)

* fix(codemod): check React hook dependency getters (#2563)

* feat(data): share one owner between tabs through a SharedWorker (#2560)

* feat(data): share one owner between tabs through a SharedWorker

Co-Authored-By: Claude <[email protected]>

* fix(examples): declare the shared-owner journey in Shelf's example.json

Co-Authored-By: Claude <[email protected]>

* test(compiler): count emitFile chunk records as bundler records in the AST emit audit

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): keep deferred store field ownership diagnostics (#2566)

* fix(codemod): flag destructured bare SVG components (#2564)

* fix(codemod): flag destructured bare SVG components

* fix(codemod): check the final selected SVG record field

* fix(codemod): trace render-time scoped-store results (#2565)

* fix(codemod): report SSR hints called by inline state initializers (#2568)

* test(swr): isolate the pristine retry callback clock (#2570)

* feat(codemod): migrate static SVG circles and root data (#2571)

* fix(octane): dispatch custom JSX map before receiver checks (#2569)

* fix(codemod): check conditional hook dependency getters (#2573)

* fix(codemod): report generated Intl formatter ownership (#2574)

* fix(codemod): report generated Intl formatter ownership

* test(codemod): preserve Intl upgrade ownership findings

* feat(data): fence shared owners by the origin's signed-in account (#2572)

* feat(data): fence shared owners by the origin's signed-in account

Co-Authored-By: Claude <[email protected]>

* fix(data): bump the owner protocol for hello, and retry a failed account record

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(codemod): preserve fresh inline imperative handles (#2576)

* fix(codemod): report unchanged React context hooks (#2577)

* fix(codemod): report ownership for all scalar Intl formatters (#2579)

* fix(vite-plugin): forward dataWorker to the compiler plugin (#2578)

* docs(data): document octane/data across the website, llms.txt, MCP and READMEs (#2575)

* docs(data): add the octane/data guide, reference, and llms/MCP coverage

Add a website Data guide (Octane and React examples, six diagrams), a
docs/data.md reference served by the MCP server, llms.txt coverage, and
links from the READMEs, sitemap, and Signals guide. A docs test compiles
every example and checks the reference tables against real exports.

* fix(data): typecheck persist.key under bun-types

bun-types declares CryptoKey so it survives a typeof function check. The
website program loads bun-types and now type-checks octane/data through
the new docs test, which failed on persist.ts.

* docs(data): document account fencing for shared owners (#2572)

* docs(data): give each sequence diagram step its own grid row

Auto-placement could put a later step beside an earlier one; an explicit
row keeps the numbered messages reading top to bottom.

* fix(compiler): allow data maps with unreachable JSX (#2581)

* fix(compiler): preserve JSX map addition order (#2582)

* fix(compiler): preserve JSX map conversion order (#2585)

* fix(website): preserve playground AST pins during startup (#2584)

* feat(data): shared tabs fall back to their own store, and survive other builds and crashes (#2583)

* feat(data): shared tabs fall back to their own store, and survive other builds and crashes

Co-Authored-By: Claude <[email protected]>

* fix(data): serve a tab again when it wakes after being dropped, and count unanswered pings

A silent tab is dropped from feeds but served again if it speaks under the same
generation. A tab detects a lost owner after three unanswered pings rather than
wall-clock silence, so throttled background timers never cause a reconnect, and
pauses its heartbeat while frozen. Format data.mdx.

Co-Authored-By: Claude <[email protected]>

* fix(data): restart the owner's sweep when a dropped tab is served again

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix: preserve shadowed createPortal calls (#2588)

* fix: preserve shadowed createPortal calls

* fix: keep shadowed portal-spelled callbacks callable

* fix(compiler): preserve direct portal argument order

* fix: preserve shadowed template factory callbacks (#2591)

* fix(codemod): report nested React islands in hosted SSR (#2590)

* fix(codemod): report nested React islands in hosted SSR

* fix(codemod): check paired OctaneCompat tags

* fix(codemod): inspect default JSX exports in SSR hosts

* chore(changeset): release recent features as patches (#2601)

* fix(compiler): preserve optional body portal SSR

* fix(codemod): verify the final Strong repair (#2595)

* fix(codemod): diagnose SVG namespace default tags (#2598)

* fix(compiler): preserve asserted portal operand evaluation

* feat(data): read one way, with useRead(store.read(...)) (#2600)

* feat(data): read one way: useRead(store.read(...)), with { suspend: false } for the snapshot

Co-Authored-By: Claude <[email protected]>

* test: read data through useRead(store.read(...)) in the plugin fixtures; patch changeset

Co-Authored-By: Claude <[email protected]>

* feat(data): drop useWrite; components write with useDataStore().write(...)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): report unchanged React root components (#2604)

* feat(data): the shared owner is the only writer of an account's cache and journal (#2594)

* feat(data): the shared owner is the only writer of an account's cache and journal

Co-Authored-By: Claude <[email protected]>

* fix(data): a tab with no owner uses its own cache; protocol 4; sign-out answers recover with no entries

Co-Authored-By: Claude <[email protected]>

* chore: release the shared cache as a patch

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): report retained React callback hooks (#2607)

* fix(compiler): evaluate parent props before a render retry (#2603)

* fix(compiler): evaluate parent props before a render retry

* fix(compiler): recognize type-only wrappers on retry operands

---------

Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
domgan-oai added a commit that referenced this pull request Nov 13, 2026
* feat: let packages declare Strong mode and applications require it (#2400)

* feat: let packages declare Strong mode and applications require it

Packages declare Strong in package.json with "octane": { "strong": true }
or a list of paths. compiler.strongDependencies: { require, allow } fails the
build with OCTANE_STRONG_DEPENDENCY when an application module reaches a
non-Strong module in another Octane package or an octane/react boundary. The
walk moves from the CLI into the compiler, so octane analyze previews exactly
what the build rejects.

The six packages the website renders declare their Strong modules, and the
website turns require on with an empty allow list. Its playground version
picker replaces @octanejs/base-ui's Combobox with a local listbox.

Refs #2059

Co-Authored-By: Claude <[email protected]>

* fix: address review on Strong dependency requirement

- Vite plugin: always read octane.config.ts, so strongDependencies is not
  dropped when strong and renderers are both passed inline.
- octane analyze: keep going under require when there are no views, so plain
  application modules are still checked.
- Playground version picker: keep focus in the input on any press inside the
  list, not only on option rows.

Co-Authored-By: Claude <[email protected]>

* fix(website): let the version list's scrollbar scroll

A mousedown preventDefault on the scrolling list also blocked its scrollbar.
The list now takes focus itself (tabIndex -1), and the field closes the popup
only when focus leaves it. Choosing an option returns focus to the input.

Co-Authored-By: Claude <[email protected]>

* fix(website): close the version list through the bubbling onBlur

Octane's onBlur is delegated as focusout, as React's is, and it is the
typed name; onFocusOut is not.

Co-Authored-By: Claude <[email protected]>

* fix(website): return focus to the version input on Escape

The list can hold focus, so hiding it on Escape dropped focus to the page.

Co-Authored-By: Claude <[email protected]>

* fix(compiler): name the Strong dependency code in its message

The printed-code audit rejects interpolating a non-diagnostic `.code`.

Co-Authored-By: Claude <[email protected]>

* test(website): expect the package reason in Strong module status

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(codemod): migrate verified path-only SVG components (#2398)

* fix(codemod): trace SVGs through native renderable props (#2402)

* feat(codemod): migrate verified path-only SVG components

* fix(codemod): trace SVGs through native renderable props

* fix(codemod): follow proven renderable TypeScript wrappers

* fix(signals): replay optimistic$ updaters over newer source values (#2401)

* fix(signals): replay optimistic$ updaters over newer source values

An overlay kept the value its updater produced at write time, so a refetch,
stream value or direct write stayed hidden behind a pending edit, and a
rejected operation's edit survived inside a later operation's value. Keep
each operation's writes and replay them in order over the current source,
as useOptimistic rebases its updates.

* fix(signals): show an optimistic$ overlay that produces undefined

* fix(data): server-assigned IDs for creates, and one commit per server transaction (#2404)

* fix(data): server-assigned IDs for creates, and one commit per server transaction

A create can name where the server's ID is in its reply. Writes to the new
record wait for the create, are sent with the server's ID, and are refused
unsent if the create is refused. Every view a reply or an optimistic edit
changes is recomputed before any reader is notified.

* fix(data): keep a created record's writes in order across its new ID, and end them on retire

* fix(codemod): ignore erased references in SVG ownership checks (#2406)

* fix: remove the website's remaining client descriptors (#2405)

* feat(strong): reject markup outside template output

Strong mode now reports OCTANE_STRONG_VALUE_JSX for JSX returned from a
function, assigned, passed as a prop or argument, or chosen by an
expression, and for @{} blocks stored in objects or chosen by an
expression: each builds an element descriptor. The website, devtools tabs,
and compiled Router document no longer build descriptors on the client.

ErrorBoundary renders a fallback={@{ ... }} body instead of calling it as a
render prop, and the codemod lowers plain-reference && guards in Strong
output to @if/@else.

Refs #2059

* revert(strong): allow value JSX again; keep the ErrorBoundary and document fixes

Value JSX already compiles to a template behind an 'r:' record, so Strong
keeps accepting it. This drops OCTANE_STRONG_VALUE_JSX, the codemod guard
lowering, and the test conversions it required.

Kept: ErrorBoundary renders a fallback={@{ ... }} body instead of calling it,
the compiled Router document leaves server-only html/head/body out of client
builds, DevtoolsDemo's Suspense fallbacks are render bodies, and an MDX page
no longer nests a <p> inside a <p>.

* test(data): compare cached responses with a normalized worker store (#2408)

* test(data): compare cached responses with a normalized worker store on library journeys

Runs four library journeys and a cold start from storage against octane/data
as merged and a prototype normalized store that evaluates declared views in
a worker. Measures views shown, bytes fetched and persisted, worker traffic,
impossible states and feature code, as promised on #2362.

* test(data): add a normalized design that loads view windows instead of every book

* test(data): refuse journey 3's star by book ID, so the rename cannot let it through

* fix(codemod): report bare SVG issuer changes in ordinary components (#2407)

* fix(codemod): report bare SVG issuer changes in ordinary components

* fix(codemod): trace bare SVGs selected by component fallbacks

* fix(codemod): check SVG defaults on local destructuring

* fix(codemod): exclude SVG defaults overridden by an inline object

* fix(tanstack-router): keep the server document out of browser builds (#2409)

* fix(tanstack-router): keep the server document out of browser builds

The compiled Html, Head, and Body read their server-only document
components through #server-document, which resolves to a null stub under
the browser condition. Folding isServer already removed those components
from client chunks, but Rolldown had linked their createScopedElement
import first and kept it exported from the runtime chunk.

Refs #2059

* test(tanstack-router): classify the server document resolution test

* feat(codemod): migrate path SVGs with conditional clsx tokens (#2411)

* feat(data): read the store as native Octane signal reads (#2410)

* feat(data): read the store as native Octane signal reads

The Octane binding reports each store read to the renderer as a native read
source, so components subscribe as they do to signal$ and query$ and need no
hook slot. The store calls its transport after the synchronous work that
started a load, so a read during render never runs it inside the render.

* fix(data): deliver store changes to Octane readers outside the transition

Native-read notifications honored the ambient transition, so a write inside
startTransition queued its optimistic edit behind the transition. runUrgent
clears the transition context around the notification, as
useSyncExternalStore's scheduleUrgentRender does.

* feat(codemod): migrate static SVG groups and rectangles (#2412)

* feat(data): declared lists with view() (#2413)

* feat(data): declared lists with view()

A view defines a list by a rule over an entity. It loads its window plus a
margin, shares records with every other view of the entity, and evaluates its
rule locally, so an edit moves a record into, out of or across every view in
the task that made it. A write can name its saved record with `record`, which
views take in place of reloading. The Shelf example moves onto views.

* fix(data): keep paged views within max and wait for edits before reloading short windows

A later page took a left margin on top of a full window, so a page at the
view's max was refused; the margins now give way to the cap. A window that
unconfirmed edits left short reloaded on every new span until they settled;
it now reloads once the server has those edits.

* feat(codemod): prove ownership of presence-tested SVG props (#2415)

* feat(data): native forms for writes (#2414)

* feat(data): native forms for writes

A write that declares `form` fields can be submitted by a plain HTML form,
which works before hydration and with JavaScript off. `useForm(write, key?)`
gives the form its attributes, hidden fields, pending state, submitted values
and field issues; once hydrated it submits through the store with the write's
optimistic edit. On the server, `forms(request)` runs a native submission and
answers 303, or returns the refusal for the page to render again, and signs
each page's forms for its account. The Shelf example's add and remove move
onto forms, with JavaScript-off and hydration journeys.

* chore(data): format forms files and refresh the example catalog

The new forms module and its tests were untracked when formatted, and the
Shelf journey added to example.json changes the generated catalog and its
e2e shard weights.

* fix(data): let go of a form that unmounted while its submission was in flight

A form handle was released only on unsubscribe while idle, so one that
unmounted mid-submission, as every removed row does, stayed in the store for
the rest of the session. It now also lets go when its submission settles with
no subscribers.

* feat(data): encrypted persistent cache with a size budget (#2416)

* feat(data): encrypted persistent cache with a size budget

A store given `persist: { storage, partition, key, budget }` saves each
read's confirmed value, and each view's confirmed rows, and starts from them
after a restart with their age kept. Values are encrypted with AES-GCM under a
key from the session, and every name the storage sees is a keyed hash, so
people sharing a browser can neither read nor list each other's values. A
value saved under another shape of its read's output schema, where the
validator describes one, or another `version`, is discarded; one that fails
validation on restore is too. Saves are coalesced per host task and the
partition is purged to its budget, expired values first and then the least
recently used, never one a mounted component shows. The budget defaults to a
size chosen by device memory, data saving and quota. `indexedDBStorage()` and
`memoryStorage()` are included. The Shelf example persists its store.

* fix(data): save reads a write carries back, and count restores as recent use

A write reply's refreshed reads were adopted but never saved, so a reload
within their freshness showed the value from before the write. A restored
value's last use reached only the next storage write, not the order purging
reads, so it could be purged before older unused values.

* feat(codemod): follow SVGs through single-read render locals (#2417)

* feat(codemod): follow SVGs through single-read render locals

* fix(codemod): preserve evaluation and early-return boundaries

* fix(data): restore values a write marked stale as stale, and never purge in-use values at startup (#2419)

* fix(data): restore values a write marked stale as stale, and never purge in-use values at startup

A write or `invalidate()` marked only the entries in memory, so a value saved
earlier and restored within its freshness showed data from before the write.
Each tag and entity name now keeps the time it was last marked, in its own
encrypted record, and each saved value the time it was saved and the names it
holds; a value marked after it was saved is restored stale.

The startup purge ran before any component had asked for a value, so it could
delete values mounted components were about to restore. It now removes only
expired values; the budget applies from the first save.

* fix(data): save invalidation marks again after a failed save

The marks were flagged saved before the write finished and a failed write was
ignored, so its invalidations were lost and a later restart could show a value
from before the write as fresh. A failed save now leaves them flagged, and the
next save writes them.

* feat(codemod): migrate SVG classes from CSS Modules (#2420)

* feat(data): durable writes that survive a restart (#2422)

* feat(data): durable writes that survive a restart

Writes listed in `persist.journal` are saved to an encrypted journal, in the
cache's storage, before they are sent, and leave it once their outcome is
known. After a restart the store shows each journaled write's edit again and
reads the journal's `receipt` with its operation ID: an applied receipt keeps
the edit, any other rolls it back, and the write is never sent twice. A write
whose receipt cannot be read stays for the next start; one this build no
longer declares, or whose input it no longer accepts, is dropped. `retire()`
clears the journal. The Shelf example's writes are durable.

* fix(data): recover journaled writes in submission order, and retry failed removals

Storage lists the journal by hashed name, so recovered writes came back in an
arbitrary order and a later edit could lose to an earlier one. Each entry now
carries its submission order and recovery sorts by it. A failed removal from
the journal was dropped, so a settled write could come back after the next
start; it is now tried again at the next save.

* fix(codemod): defer mutable SVG clsx guards (#2423)

* fix(codemod): defer mutable SVG clsx guards

* perf(codemod): reuse fixed SVG parameter proofs

* feat(data): server-ordered reads share records with views (#2424)

* feat(data): server-ordered reads share records with views

A read that selects entities but only the server can order, such as search
results, keeps the order and membership it was sent but now shares records
with the views. Its load gives views any newer copy of a record they hold,
and it shows any copy newer than its own load, from a view, another read or a
write's `record`. A load notifies every read sharing its entities. Copies are
compared by field, and an unchanged projection keeps its identity, so a read
whose shared records did not change keeps its snapshot, even with an edit
pending.

* fix(data): share only records views hold, and tell views and the cache when a read shares one

A server-ordered read inserted every record it carried into the shared table,
so a late one could put back a record a view had since dropped; it now only
updates records the table holds. Reads a write's reply carried back now
notify every read sharing their entities, as a load does. And a read that
gives views a newer copy marks those views for saving.

* feat(codemod): pass workspace stores to deferred local helpers (#2425)

* feat(codemod): pass workspace stores to deferred local helpers

* fix(codemod): prove the native click output owner

* perf(data): read the store through useSyncExternalStore on the client again (#2429)

The client binding reported each store read to the renderer as a native signal
read. Measured against useSyncExternalStore on the same production app, with
identical renders and DOM, the native path was slower in every step large
enough to measure, and importing it turned on read collection around every
component's render, including ones that read no data. Both bindings now read
snapshots through useSyncExternalStore, as React does; the client entry is
about 3 KB gzipped smaller.

* feat(codemod): migrate native submit event annotations (#2426)

* feat(codemod): migrate native submit event annotations

* fix(codemod): verify forwarded submit event callbacks

* fix(codemod): isolate submit exports and callback slots

* fix(codemod): resolve contextual submit event types

* fix(codemod): keep deferred React submit import types

* fix(codemod): verify workspace store helper dependencies (#2430)

* fix(codemod): verify workspace store helper dependencies

* fix(codemod): trace runtime class bases in store helpers

* test(data): stabilize persistence cache assertions (#2431)

* feat(codemod): preserve explicit effect restart triggers (#2427)

* fix(codemod): trace Intl props through native forwarding wrappers (#2433)

* fix(codemod): preserve inline React Intl substitutions (#2432)

* feat(data): serve a store through a module server function (#2434)

* feat(react): support inline ReactCompat hosts (#2436)

* feat(codemod): lower JSX lists over dense array literals (#2435)

* feat(codemod): lower JSX lists over dense array literals

* fix(codemod): recognize type-wrapped dense iterables

* feat(app-core): serve module server functions from a custom server; Shelf over RPC with Vite and Rspack (#2440)

* feat(app-core): serve module server functions from a custom server; Shelf over RPC with Vite and Rspack

* fix(shelf): keep each Rspack compiler's output apart; pass Vite's own requests through untouched

* feat(data): publish, forget, awaitable retire and opaque cache keys (#2443)

* feat(data): publish, forget, awaitable retire and opaque cache keys (#2439)

* fix(data): let reads join a publish, and keep the saved copy when one is refused

* fix(codemod): defer opaque scoped store inputs (#2428)

* feat(codemod): trace scoped store factory wrappers

* fix(codemod): defer opaque scoped store inputs

* fix(codemod): keep opaque origins through imports and type wrappers

---------

Co-authored-by: Dominic Gannaway <[email protected]>

* feat(floating-ui): add standalone positioning entry (#2438)

* feat(floating-ui): add standalone positioning entry

* fix(floating-ui): classify positioning-only parity tests

* feat(codemod): migrate provider-owned React Intl locales (#2442)

* feat(codemod): migrate destructured React Intl locales

* fix(codemod): prove ownership of destructured Intl locales

* perf(data): evaluate each view from an index of the records its window holds (#2446)

* fix(codemod): migrate expression-bodied effects with explicit dependencies (#2445)

* test(codemod): retain diagnostics for opaque React Intl service calls (#2437)

* feat(codemod): preserve deferred React Intl service values

* fix(codemod): accept discarded deferred Intl service calls

---------

Co-authored-by: Dominic Gannaway <[email protected]>

* fix(codemod): preserve key evaluation in guarded list rows (#2447)

* feat(data): page views with more, pages() and usePages() (#2449)

* feat(data): page views with more, pages() and usePages()

* fix(data): keep later pages shown while an expired earlier page reloads

* fix(data): retry a failed earlier page from loadMore, and stop reporting it as refreshing

* fix(codemod): preserve property triggers in explicit effect dependencies (#2450)

* fix(codemod): preserve setup before keyed map rows (#2453)

* fix(codemod): preserve setup before keyed map rows

* fix(codemod): recognize inert primitive row keys

* fix(compiler): share keyed row destructuring with the row body (#2455)

* fix(compiler): share keyed row destructuring with the row body

* fix(compiler): preserve const row bindings in SSR keys

* test(compiler): expect one SSR row default evaluation

* fix(compiler): retain keyed text rows across equivalent bindings

* fix(codemod): enable React adapters on Octane 0.17 (#2468)

* fix(radix): project Slottable children without duplicating the host (#2473)

* fix(octane): preserve resource hints in React-hosted renders (#2490)

* fix(codemod): migrate React DOM root types (#2483)

* fix(codemod): migrate generic React event handlers (#2487)

* fix(codemod): preserve literal SVG data attributes (#2461)

* feat(octane): support a document body portal target (#2467)

* fix(octane): preserve universal imperative handle refs (#2471)

* fix(octane): preserve universal imperative handle refs

* test(drei): keep the PivotControls observer ref stable

* test(drei): refresh PivotControls parity evidence

* fix(compiler): preserve mapped JSX row keys (#2459)

* fix(compiler): preserve mapped JSX row keys

* fix(compiler): keep proven mapped tags on the native path

* fix(compiler): evaluate keys in empty mapped SSR rows (#2460)

* fix(codemod): migrate effect-only lazy mount records (#2463)

* feat(app-core): route seeds and a config data module for Vite and Rsbuild (#2492)

* feat(app-core): route seeds and a config data module for Vite and Rsbuild

* fix(app-core): cancel a live route stream on request error, and never hydrate a data root as void

* fix(codemod): preserve conditional input identity (#2503)

* fix(codemod): preserve literal SVG root overrides (#2501)

* fix(codemod): allow type queries on store consumers (#2495)

* fix(codemod): preserve the React ref allocator (#2488)

* fix(codemod): migrate standalone Floating UI positioning (#2475)

* fix(codemod): detect escaped eval in scoped store consumers (#2478)

* fix(compiler): preserve effectful JSX map callback order (#2474)

* fix(codemod): preserve authored inline React boundaries (#2479)

* feat(octane): capture initial render values in Strong mode (#2482)

* feat(octane): capture initial render values in Strong mode

* fix(compiler): preserve existing layout snapshot edits

* fix(release): separate Octane and Lynx snapshot changesets

* fix(compiler): preserve eager inputs to initial render snapshots

* test(codemod): assert eager snapshot repair during fallback

* test(cli): verify eager snapshot suggestions

* fix(codemod): prove React Intl locale ownership (#2477)

* fix(codemod): trace immutable store handle aliases (#2485)

* fix(codemod): preserve fresh imperative handles (#2499)

* fix(codemod): preserve fresh imperative handles

* fix(codemod): defer redeclared handle methods

* fix(codemod): preserve imperative handle receiver dependencies (#2470)

* fix(codemod): keep automatic React islands inside paragraphs (#2480)

* fix(codemod): preserve authored inline React boundaries

* fix(codemod): keep automatic React islands inside paragraphs

* fix(codemod): recognize published inline React host exports

* fix(codemod): keep conditional React islands inside paragraphs

* fix(codemod): follow imported fragments to paragraph hosts

* fix(codemod): adapt consolidated Radix Slot exports (#2472)

* fix(codemod): adapt consolidated Radix Slot exports

* fix(codemod): preserve local aliases that shadow Radix

* fix(codemod): preserve local Radix Slot import names

* fix(codemod): preserve SVG opacity and conditional classes (#2500)

* fix(octane): separate rewritten initial-value binding (#2505)

* fix(codemod): preserve SVG inline transforms (#2504)

* fix(codemod): preserve SVG inline transforms

* fix(codemod): recognize prior generated SVG helper

* feat(data): realtime feeds that keep loaded reads current (#2506)

* feat(data): realtime feeds that keep loaded reads current

Add feed() contracts, listen()/useFeed with one shared connection per feed
and parameters, and receive(store, changes). Events put or remove records,
replace a read's value, or invalidate tags. The store drops duplicate event
IDs, resumes from its cursor, and reloads what a feed covers after a gap.
createDataHandler serves feeds through handler.listen over a module server
function, read in the browser with serverListener. Shelf streams its changes
under Vite and Rspack.

Co-Authored-By: Claude <[email protected]>

* fix(data): reload a lower view window when a feed puts a record above it

Also have the Shelf feed check its history before waiting, so a write made
while a frame was being read is sent.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): preserve fixed SVG colors (#2494)

* fix(codemod): preserve fixed SVG colors

* fix(codemod): recognize prior generated SVG helper

* fix(codemod): defer locally mutated store handles (#2493)

* fix(codemod): preserve custom and sparse JSX map dispatch (#2484)

* fix(codemod): migrate proven render-phase boolean state (#2465)

* fix(motion): support server rendering and hydration for motion hosts (#2491)

* fix(motion): support server rendering and hydration for motion hosts

* test(motion): classify the server host conformance tests

* fix(motion): preserve the initial frame during lazy feature loading

* fix(motion): release SVG frame for authored static values

* fix(codemod): preserve layout effect property dependencies (#2498)

* fix(codemod): migrate local rectangular SVG clipping (#2466)

* fix(codemod): migrate ref-only effect helpers (#2476)

* feat(codemod): migrate single-path SVG patterns (#2469)

* feat(codemod): migrate single-path SVG patterns

* fix(codemod): migrate static SVG path transforms

* fix(codemod): preserve SVG matrix transforms

* fix(codemod): report React hooks left in local helpers (#2464)

* fix(codemod): report React hooks left in local helpers

* fix(codemod): report React hooks after literal setup

* fix(codemod): defer React DOM-linked store inputs (#2486)

* fix(codemod): defer React DOM-linked store inputs

* fix(codemod): follow executable store dependencies

* fix(codemod): narrow resource hints to executable imports

* fix(codemod): preserve shared external-store hooks in native setup (#2481)

* fix(codemod): report React hooks left in local helpers

* fix(codemod): preserve shared external-store hooks in native setup

* fix(codemod): ignore type-only external-store hook references

* fix(codemod): preserve external-store hooks after null refs

* fix(codemod): report unsupported native hooks after null refs

* Version Packages (#2343)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(codemod): report lost SSR hints in imported state initializers (#2510)

* fix(codemod): report render-time scoped store member reads (#2513)

* fix(codemod): report unproven React Intl formatter ownership (#2515)

* fix(compiler): preserve writable branch captures (#2511)

* fix(codemod): preserve native host ref state in Strong mode (#2517)

* fix(codemod): preserve native host ref state in Strong mode

* fix(codemod): verify the binding of native ref owners

* fix(codemod): preserve opaque array map dispatch (#2512)

* fix(codemod): preserve opaque array map dispatch

* fix(examples): make Hacker News list dispatch explicit

* test(codemod): verify Hacker News fresh lists in Strong mode

* fix(codemod): report opaque effect dependency getters (#2516)

* fix(codemod): report opaque effect dependency getters

* fix(codemod): check effect getters in JSX-free templates

* fix(codemod): preserve keyed JSX row evaluation order (#2518)

* fix(codemod): preserve keyed JSX row evaluation order

* fix(codemod): preserve keyed rows with multiline JSX children

* feat(testing): add installTestClock, one host seam for runtime time (#2519)

* feat(testing): add installTestClock, one host seam for runtime time

Route the runtime's timers, animation frames, host tasks and now() through
host-task.ts so one installed clock decides their order. octane/testing's
installTestClock() owns that clock: advance(ms), frame() and settle() move
it; act() runs work that is already due without moving time; uninstall()
hands held work back to the host. Converts the flaky ViewTransition
pre-render passive test from half-faked timers to the clock.

Phase 1 of #2508.

Co-Authored-By: Claude <[email protected]>

* fix(testing): keep host-task DOM-free and create the post-paint channel eagerly

host-task.ts is part of DOM-free programs (ink, opentui), so read
requestAnimationFrame and document through a typed globalThis instead of
naming DOM globals. Restore creating the post-paint MessageChannel when
passive work is scheduled, as lazy-client-initialization pins, rather
than inside the frame callback.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(compiler): type generated child traversal on opaque DOM hosts (#2520)

* fix(codemod): retain async and generator map results (#2521)

* fix(codemod): keep retained maps renderable in directive arms (#2522)

* fix(codemod): report generated Intl formatter ownership (#2523)

* fix(octane): preserve type imports in the native TypeScript parser (#2525)

* feat(compiler): hint Strong reads of state after its own setter (#2526)

* feat(compiler): hint Strong reads of state after its own setter

* fix(compiler): scope read-after-set updates per switch case; list recipe in Strong skill

* feat(data): WebSocket and broker feed listeners, and feed cursors across restarts (#2524)

* feat(data): WebSocket and broker feed listeners, and feed cursors across restarts

webSocketListener streams feeds over a socket that handler.accept serves
with no time limit, refusing other origins. pubSubListener listens through a
broker the page already uses. A persistent store saves each feed's cursor
with its stale marks, so the next session replays what it missed, and an
event marks saved copies it could not reach in memory stale.

Co-Authored-By: Claude <[email protected]>

* fix(data): back off a WebSocket feed the server closes with an error

A browser calls any completed close handshake clean, so a refused (1008) or
failed (1011) socket reconnected at once. Only a normal close now ends a
connection without an error, and with Octane's protocol a socket counts as
live once accept has read its request.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* chore(changeset): release installTestClock and data feed listeners as patches (#2527)

* chore(changeset): release installTestClock as a patch

* chore(changeset): release data feed listeners as a patch

* feat(testing): put data, hydration and signals timing on the test clock (#2529)

Phase 2 of #2508. Route octane/data freshness, retention, persistence
stamps and feed backoff, idle and streamed hydration timers, deferred
event fallbacks, signal action timeouts, resize-observer delivery and the
universal re-settle retry through host-task.ts. Add hostDateNow() and
TestClock.dateNow() so data freshness follows the clock, and let the
clock respect a hidden page. Convert transition-timeout and effect-timing
off Vitest fake timers, run the data freshness test on the clock, and add
an idle-hydration clock test.

Co-authored-by: Claude <[email protected]>

* feat(data): carry feed positions in a server render's seed (#2530)

* feat(data): carry feed positions in a server render's seed

A store with no listen asks each feed in its new feeds option for its
position before its first read, and its seed carries them, so the browser's
feed resumes from before the page's values loaded. The data handler answers
a position request with the first cursor the feed's handler yields when it
starts with none.

Co-Authored-By: Claude <[email protected]>

* fix(data): stop a server render's feed position request when its store retires

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(octane): suspend a list of suspending rows once, not once per row (#2528)

* fix(octane): suspend a list of suspending rows once, not once per row

Co-Authored-By: Claude <[email protected]>

* fix(octane): pace rejected row thenables and fold row deferral without suspension

Co-Authored-By: Claude <[email protected]>

* perf(octane): keep row suspension collection out of bundles that cannot suspend

Co-Authored-By: Claude <[email protected]>

* test(octane): pin row-ordered request starts for suspending keyed lists

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(compiler): suggest useInitialValue for nested readonly bindings (#2533)

* fix(codemod): preserve eager prop reads in state initializers (#2536)

* fix(codemod): move effect-only ref helpers into their effect (#2535)

* fix(codemod): guard escaped scoped-store handles (#2537)

* fix(codemod): respect nested React Intl export conditions (#2538)

* fix(codemod): resolve effect restart triggers by binding (#2539)

* fix(compiler): diagnose state updates through bound effect schedulers (#2544)

* fix(codemod): report React Intl scalar formatter ownership (#2543)

* feat(testing): put server and RPC deadlines on the test clock (#2531)

* feat(testing): put server and RPC deadlines on the test clock

Part 1 of phase 3 of #2508. Route the SSR suspense deadline, the stalled
reader backoff and its deadline, streamed-signal budgets, server-function
batch and stream timeouts, the server-function client deadline and timer,
octane/data's server long-poll lifetime and the React-hosted SSR timeout
through host-task.ts. SSR's macrotask yield stays on real time: it waits
for real I/O. Convert the prerender deadline, stalled-reader deadline and
RPC client deadline tests to the clock.

Co-Authored-By: Claude <[email protected]>

* fix(testing): keep TestClock.dateNow() in whole milliseconds

The clock's time starts at performance.now() and frame() snaps to 16 ms
boundaries, so dateNow() could be fractional. Date.now() never is, and
callers rely on that: the server-function client passed a fractional
leftover deadline to serverResultLimits, which requires an integer, and
threw a RangeError. Floor the clock's date, as Date.now() would be.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(radix): ignore deferred outside presses on registered branches (#2534)

* test(tanstack-virtual): render the SSR hydration fixture in beforeAll (#2550)

* test(tanstack-virtual): render the SSR hydration fixture in beforeAll

The test body started a cold Vite SSR server and compiled the whole server
runtime before hydrating. That setup is ~0.5 s idle and 2.2-2.7 s on the
loaded React parity shard 2/4, with a tail past the 5 s test budget; the
hydration under test takes ~20 ms. Render the server twin in beforeAll, as
the input-otp and alien-signals hydration suites already do.

* test(tanstack-virtual): refresh the ssr-hydration parity evidence hash

* fix(data): preserve ambiguous writes and fence dispatch after retirement (#2540)

* fix(data): preserve ambiguous writes and fence dispatch after retirement

* test(data): narrow the uncertain write before settling it

* test(data): wait for dispatch before retiring the test store

* fix(data): keep newer reads when write replies arrive out of order (#2541)

* fix(data): keep newer reads when write replies arrive out of order

* fix(data): reuse a matching feed reply and reconcile a partial update

* test(data): cover deletions outside the current read and view

* fix(data): preserve confirmed SSR snapshots and lazy seed age (#2546)

* fix(data): preserve confirmed SSR snapshots and lazy seed age

* refactor(data): keep serialized seed entries uniform

* fix(codemod): migrate scoped-store uses in Effect Events (#2552)

* fix(codemod): migrate render latches initialized from boolean props (#2551)

* fix(data): preserve native form retry identity and retire held forms (#2547)

* fix(data): preserve native form retry identity and retire held forms

* fix(data): preserve native form retry identity and retire held forms

* fix(data): keep mounted form hooks idle after retirement

* test(data): cancel native submit on a retired mounted form

* fix(data): discard frames after a feed disconnects (#2545)

* fix(data): discard frames after a feed disconnects

* docs(data): explain retirement at the feed delivery boundary

* fix(codemod): protect React island source modules before writing (#2554)

* fix(codemod): protect React island source modules before writing

* fix(codemod): follow logical React island component values

* fix(data): preserve recovery state until cache updates are durable (#2542)

* fix(data): preserve recovery state until cache updates are durable

* fix(data): reconcile obsolete journal entries and retry a failed flush

* fix(data): retain prepared cache values across storage retries

* fix(data): preserve wire input identity and rejoin evicted reads (#2548)

* fix(data): preserve wire input identity and rejoin evicted reads

* fix(data): preserve wire input identity and rejoin evicted reads

* test(effect-atom): wait for scheduled task completion (#2553)

* test(effect-atom): wait for scheduled task completion

* test(effect-atom): refresh scheduled-task parity evidence

* fix(codemod): recover shorthand types for stable scalar props (#2555)

* fix(codemod): recover shorthand types for stable scalar props

* fix(codemod): defer shorthand recovery for unresolved value imports

* fix(codemod): check imported JSX before migrating scoped-store arguments (#2556)

* fix(codemod): check imported JSX before migrating scoped-store arguments

* fix(codemod): resolve the value of merged scoped-store exports

* fix(data): reconcile persisted and server-rendered feed cursors (#2549)

* fix(data): reconcile persisted and server-rendered feed cursors

* fix(data): reconcile persisted and server-rendered feed cursors

* fix(data): persist the reconciled cursor on idle streams

* feat(data): one owner for several replica stores over message ports (#2559)

* feat(data): one owner for several replica stores over message ports

Co-Authored-By: Claude <[email protected]>

* fix(data): reloads never join an older shared read; followed creates gate edits

A replica asking again for a read it already asked for is reloading, so the
owner starts a new request rather than answering it with one that may predate
the change, and only the newest read for a key shares its value. A replica
following another tab's create now holds that record's queue behind its
outcome, as the sending tab does.

Co-Authored-By: Claude <[email protected]>

* fix(data): a replica recognises a view's reload by its wire key

Co-Authored-By: Claude <[email protected]>

* fix(data): only reads count toward a replica's reload record

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(mcp-server): agent driver that drives an Octane app on the test clock (#2558)

* feat(mcp-server): agent driver that drives an Octane app on the test clock

Adds the octane/agent entry, which installs the test clock ahead of the app's scripts, and nine octane_app_* MCP tools that drive one page of a Vite dev server in Chromium (#2508 phase 3).

* style(mcp-server): format agent driver files

* fix(mcp-server): serve the agent module under Vite's base

* fix(codemod): retain installed data descriptors in scoped-store effects (#2561)

* fix(codemod): trace scoped-store JSX through wildcard exports (#2562)

* fix(codemod): check React hook dependency getters (#2563)

* feat(data): share one owner between tabs through a SharedWorker (#2560)

* feat(data): share one owner between tabs through a SharedWorker

Co-Authored-By: Claude <[email protected]>

* fix(examples): declare the shared-owner journey in Shelf's example.json

Co-Authored-By: Claude <[email protected]>

* test(compiler): count emitFile chunk records as bundler records in the AST emit audit

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): keep deferred store field ownership diagnostics (#2566)

* fix(codemod): flag destructured bare SVG components (#2564)

* fix(codemod): flag destructured bare SVG components

* fix(codemod): check the final selected SVG record field

* fix(codemod): trace render-time scoped-store results (#2565)

* fix(codemod): report SSR hints called by inline state initializers (#2568)

* test(swr): isolate the pristine retry callback clock (#2570)

* feat(codemod): migrate static SVG circles and root data (#2571)

* fix(octane): dispatch custom JSX map before receiver checks (#2569)

* fix(codemod): check conditional hook dependency getters (#2573)

* fix(codemod): report generated Intl formatter ownership (#2574)

* fix(codemod): report generated Intl formatter ownership

* test(codemod): preserve Intl upgrade ownership findings

* feat(data): fence shared owners by the origin's signed-in account (#2572)

* feat(data): fence shared owners by the origin's signed-in account

Co-Authored-By: Claude <[email protected]>

* fix(data): bump the owner protocol for hello, and retry a failed account record

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(codemod): preserve fresh inline imperative handles (#2576)

* fix(codemod): report unchanged React context hooks (#2577)

* fix(codemod): report ownership for all scalar Intl formatters (#2579)

* fix(vite-plugin): forward dataWorker to the compiler plugin (#2578)

* docs(data): document octane/data across the website, llms.txt, MCP and READMEs (#2575)

* docs(data): add the octane/data guide, reference, and llms/MCP coverage

Add a website Data guide (Octane and React examples, six diagrams), a
docs/data.md reference served by the MCP server, llms.txt coverage, and
links from the READMEs, sitemap, and Signals guide. A docs test compiles
every example and checks the reference tables against real exports.

* fix(data): typecheck persist.key under bun-types

bun-types declares CryptoKey so it survives a typeof function check. The
website program loads bun-types and now type-checks octane/data through
the new docs test, which failed on persist.ts.

* docs(data): document account fencing for shared owners (#2572)

* docs(data): give each sequence diagram step its own grid row

Auto-placement could put a later step beside an earlier one; an explicit
row keeps the numbered messages reading top to bottom.

* fix(compiler): allow data maps with unreachable JSX (#2581)

* fix(compiler): preserve JSX map addition order (#2582)

* fix(compiler): preserve JSX map conversion order (#2585)

* fix(website): preserve playground AST pins during startup (#2584)

* feat(data): shared tabs fall back to their own store, and survive other builds and crashes (#2583)

* feat(data): shared tabs fall back to their own store, and survive other builds and crashes

Co-Authored-By: Claude <[email protected]>

* fix(data): serve a tab again when it wakes after being dropped, and count unanswered pings

A silent tab is dropped from feeds but served again if it speaks under the same
generation. A tab detects a lost owner after three unanswered pings rather than
wall-clock silence, so throttled background timers never cause a reconnect, and
pauses its heartbeat while frozen. Format data.mdx.

Co-Authored-By: Claude <[email protected]>

* fix(data): restart the owner's sweep when a dropped tab is served again

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix: preserve shadowed createPortal calls (#2588)

* fix: preserve shadowed createPortal calls

* fix: keep shadowed portal-spelled callbacks callable

* fix: preserve shadowed template factory callbacks (#2591)

* fix(codemod): report nested React islands in hosted SSR (#2590)

* fix(codemod): report nested React islands in hosted SSR

* fix(codemod): check paired OctaneCompat tags

* fix(codemod): inspect default JSX exports in SSR hosts

* chore(changeset): release recent features as patches (#2601)

* fix(codemod): verify the final Strong repair (#2595)

* fix(codemod): diagnose SVG namespace default tags (#2598)

* feat(data): read one way, with useRead(store.read(...)) (#2600)

* feat(data): read one way: useRead(store.read(...)), with { suspend: false } for the snapshot

Co-Authored-By: Claude <[email protected]>

* test: read data through useRead(store.read(...)) in the plugin fixtures; patch changeset

Co-Authored-By: Claude <[email protected]>

* feat(data): drop useWrite; components write with useDataStore().write(...)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): report unchanged React root components (#2604)

* feat(data): the shared owner is the only writer of an account's cache and journal (#2594)

* feat(data): the shared owner is the only writer of an account's cache and journal

Co-Authored-By: Claude <[email protected]>

* fix(data): a tab with no owner uses its own cache; protocol 4; sign-out answers recover with no entries

Co-Authored-By: Claude <[email protected]>

* chore: release the shared cache as a patch

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): report retained React callback hooks (#2607)

* test(octane): wait for persistence marks retry

* fix(compiler): evaluate parent props before a render retry (#2603)

* fix(compiler): evaluate parent props before a render retry

* fix(compiler): recognize type-only wrappers on retry operands

---------

Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
domgan-oai added a commit that referenced this pull request Nov 13, 2026
)

* feat: let packages declare Strong mode and applications require it (#2400)

* feat: let packages declare Strong mode and applications require it

Packages declare Strong in package.json with "octane": { "strong": true }
or a list of paths. compiler.strongDependencies: { require, allow } fails the
build with OCTANE_STRONG_DEPENDENCY when an application module reaches a
non-Strong module in another Octane package or an octane/react boundary. The
walk moves from the CLI into the compiler, so octane analyze previews exactly
what the build rejects.

The six packages the website renders declare their Strong modules, and the
website turns require on with an empty allow list. Its playground version
picker replaces @octanejs/base-ui's Combobox with a local listbox.

Refs #2059

Co-Authored-By: Claude <[email protected]>

* fix: address review on Strong dependency requirement

- Vite plugin: always read octane.config.ts, so strongDependencies is not
  dropped when strong and renderers are both passed inline.
- octane analyze: keep going under require when there are no views, so plain
  application modules are still checked.
- Playground version picker: keep focus in the input on any press inside the
  list, not only on option rows.

Co-Authored-By: Claude <[email protected]>

* fix(website): let the version list's scrollbar scroll

A mousedown preventDefault on the scrolling list also blocked its scrollbar.
The list now takes focus itself (tabIndex -1), and the field closes the popup
only when focus leaves it. Choosing an option returns focus to the input.

Co-Authored-By: Claude <[email protected]>

* fix(website): close the version list through the bubbling onBlur

Octane's onBlur is delegated as focusout, as React's is, and it is the
typed name; onFocusOut is not.

Co-Authored-By: Claude <[email protected]>

* fix(website): return focus to the version input on Escape

The list can hold focus, so hiding it on Escape dropped focus to the page.

Co-Authored-By: Claude <[email protected]>

* fix(compiler): name the Strong dependency code in its message

The printed-code audit rejects interpolating a non-diagnostic `.code`.

Co-Authored-By: Claude <[email protected]>

* test(website): expect the package reason in Strong module status

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(codemod): migrate verified path-only SVG components (#2398)

* fix(codemod): trace SVGs through native renderable props (#2402)

* feat(codemod): migrate verified path-only SVG components

* fix(codemod): trace SVGs through native renderable props

* fix(codemod): follow proven renderable TypeScript wrappers

* fix(signals): replay optimistic$ updaters over newer source values (#2401)

* fix(signals): replay optimistic$ updaters over newer source values

An overlay kept the value its updater produced at write time, so a refetch,
stream value or direct write stayed hidden behind a pending edit, and a
rejected operation's edit survived inside a later operation's value. Keep
each operation's writes and replay them in order over the current source,
as useOptimistic rebases its updates.

* fix(signals): show an optimistic$ overlay that produces undefined

* fix(data): server-assigned IDs for creates, and one commit per server transaction (#2404)

* fix(data): server-assigned IDs for creates, and one commit per server transaction

A create can name where the server's ID is in its reply. Writes to the new
record wait for the create, are sent with the server's ID, and are refused
unsent if the create is refused. Every view a reply or an optimistic edit
changes is recomputed before any reader is notified.

* fix(data): keep a created record's writes in order across its new ID, and end them on retire

* fix(codemod): ignore erased references in SVG ownership checks (#2406)

* fix: remove the website's remaining client descriptors (#2405)

* feat(strong): reject markup outside template output

Strong mode now reports OCTANE_STRONG_VALUE_JSX for JSX returned from a
function, assigned, passed as a prop or argument, or chosen by an
expression, and for @{} blocks stored in objects or chosen by an
expression: each builds an element descriptor. The website, devtools tabs,
and compiled Router document no longer build descriptors on the client.

ErrorBoundary renders a fallback={@{ ... }} body instead of calling it as a
render prop, and the codemod lowers plain-reference && guards in Strong
output to @if/@else.

Refs #2059

* revert(strong): allow value JSX again; keep the ErrorBoundary and document fixes

Value JSX already compiles to a template behind an 'r:' record, so Strong
keeps accepting it. This drops OCTANE_STRONG_VALUE_JSX, the codemod guard
lowering, and the test conversions it required.

Kept: ErrorBoundary renders a fallback={@{ ... }} body instead of calling it,
the compiled Router document leaves server-only html/head/body out of client
builds, DevtoolsDemo's Suspense fallbacks are render bodies, and an MDX page
no longer nests a <p> inside a <p>.

* test(data): compare cached responses with a normalized worker store (#2408)

* test(data): compare cached responses with a normalized worker store on library journeys

Runs four library journeys and a cold start from storage against octane/data
as merged and a prototype normalized store that evaluates declared views in
a worker. Measures views shown, bytes fetched and persisted, worker traffic,
impossible states and feature code, as promised on #2362.

* test(data): add a normalized design that loads view windows instead of every book

* test(data): refuse journey 3's star by book ID, so the rename cannot let it through

* fix(codemod): report bare SVG issuer changes in ordinary components (#2407)

* fix(codemod): report bare SVG issuer changes in ordinary components

* fix(codemod): trace bare SVGs selected by component fallbacks

* fix(codemod): check SVG defaults on local destructuring

* fix(codemod): exclude SVG defaults overridden by an inline object

* fix(tanstack-router): keep the server document out of browser builds (#2409)

* fix(tanstack-router): keep the server document out of browser builds

The compiled Html, Head, and Body read their server-only document
components through #server-document, which resolves to a null stub under
the browser condition. Folding isServer already removed those components
from client chunks, but Rolldown had linked their createScopedElement
import first and kept it exported from the runtime chunk.

Refs #2059

* test(tanstack-router): classify the server document resolution test

* feat(codemod): migrate path SVGs with conditional clsx tokens (#2411)

* feat(data): read the store as native Octane signal reads (#2410)

* feat(data): read the store as native Octane signal reads

The Octane binding reports each store read to the renderer as a native read
source, so components subscribe as they do to signal$ and query$ and need no
hook slot. The store calls its transport after the synchronous work that
started a load, so a read during render never runs it inside the render.

* fix(data): deliver store changes to Octane readers outside the transition

Native-read notifications honored the ambient transition, so a write inside
startTransition queued its optimistic edit behind the transition. runUrgent
clears the transition context around the notification, as
useSyncExternalStore's scheduleUrgentRender does.

* feat(codemod): migrate static SVG groups and rectangles (#2412)

* feat(data): declared lists with view() (#2413)

* feat(data): declared lists with view()

A view defines a list by a rule over an entity. It loads its window plus a
margin, shares records with every other view of the entity, and evaluates its
rule locally, so an edit moves a record into, out of or across every view in
the task that made it. A write can name its saved record with `record`, which
views take in place of reloading. The Shelf example moves onto views.

* fix(data): keep paged views within max and wait for edits before reloading short windows

A later page took a left margin on top of a full window, so a page at the
view's max was refused; the margins now give way to the cap. A window that
unconfirmed edits left short reloaded on every new span until they settled;
it now reloads once the server has those edits.

* feat(codemod): prove ownership of presence-tested SVG props (#2415)

* feat(data): native forms for writes (#2414)

* feat(data): native forms for writes

A write that declares `form` fields can be submitted by a plain HTML form,
which works before hydration and with JavaScript off. `useForm(write, key?)`
gives the form its attributes, hidden fields, pending state, submitted values
and field issues; once hydrated it submits through the store with the write's
optimistic edit. On the server, `forms(request)` runs a native submission and
answers 303, or returns the refusal for the page to render again, and signs
each page's forms for its account. The Shelf example's add and remove move
onto forms, with JavaScript-off and hydration journeys.

* chore(data): format forms files and refresh the example catalog

The new forms module and its tests were untracked when formatted, and the
Shelf journey added to example.json changes the generated catalog and its
e2e shard weights.

* fix(data): let go of a form that unmounted while its submission was in flight

A form handle was released only on unsubscribe while idle, so one that
unmounted mid-submission, as every removed row does, stayed in the store for
the rest of the session. It now also lets go when its submission settles with
no subscribers.

* feat(data): encrypted persistent cache with a size budget (#2416)

* feat(data): encrypted persistent cache with a size budget

A store given `persist: { storage, partition, key, budget }` saves each
read's confirmed value, and each view's confirmed rows, and starts from them
after a restart with their age kept. Values are encrypted with AES-GCM under a
key from the session, and every name the storage sees is a keyed hash, so
people sharing a browser can neither read nor list each other's values. A
value saved under another shape of its read's output schema, where the
validator describes one, or another `version`, is discarded; one that fails
validation on restore is too. Saves are coalesced per host task and the
partition is purged to its budget, expired values first and then the least
recently used, never one a mounted component shows. The budget defaults to a
size chosen by device memory, data saving and quota. `indexedDBStorage()` and
`memoryStorage()` are included. The Shelf example persists its store.

* fix(data): save reads a write carries back, and count restores as recent use

A write reply's refreshed reads were adopted but never saved, so a reload
within their freshness showed the value from before the write. A restored
value's last use reached only the next storage write, not the order purging
reads, so it could be purged before older unused values.

* feat(codemod): follow SVGs through single-read render locals (#2417)

* feat(codemod): follow SVGs through single-read render locals

* fix(codemod): preserve evaluation and early-return boundaries

* fix(data): restore values a write marked stale as stale, and never purge in-use values at startup (#2419)

* fix(data): restore values a write marked stale as stale, and never purge in-use values at startup

A write or `invalidate()` marked only the entries in memory, so a value saved
earlier and restored within its freshness showed data from before the write.
Each tag and entity name now keeps the time it was last marked, in its own
encrypted record, and each saved value the time it was saved and the names it
holds; a value marked after it was saved is restored stale.

The startup purge ran before any component had asked for a value, so it could
delete values mounted components were about to restore. It now removes only
expired values; the budget applies from the first save.

* fix(data): save invalidation marks again after a failed save

The marks were flagged saved before the write finished and a failed write was
ignored, so its invalidations were lost and a later restart could show a value
from before the write as fresh. A failed save now leaves them flagged, and the
next save writes them.

* feat(codemod): migrate SVG classes from CSS Modules (#2420)

* feat(data): durable writes that survive a restart (#2422)

* feat(data): durable writes that survive a restart

Writes listed in `persist.journal` are saved to an encrypted journal, in the
cache's storage, before they are sent, and leave it once their outcome is
known. After a restart the store shows each journaled write's edit again and
reads the journal's `receipt` with its operation ID: an applied receipt keeps
the edit, any other rolls it back, and the write is never sent twice. A write
whose receipt cannot be read stays for the next start; one this build no
longer declares, or whose input it no longer accepts, is dropped. `retire()`
clears the journal. The Shelf example's writes are durable.

* fix(data): recover journaled writes in submission order, and retry failed removals

Storage lists the journal by hashed name, so recovered writes came back in an
arbitrary order and a later edit could lose to an earlier one. Each entry now
carries its submission order and recovery sorts by it. A failed removal from
the journal was dropped, so a settled write could come back after the next
start; it is now tried again at the next save.

* fix(codemod): defer mutable SVG clsx guards (#2423)

* fix(codemod): defer mutable SVG clsx guards

* perf(codemod): reuse fixed SVG parameter proofs

* feat(data): server-ordered reads share records with views (#2424)

* feat(data): server-ordered reads share records with views

A read that selects entities but only the server can order, such as search
results, keeps the order and membership it was sent but now shares records
with the views. Its load gives views any newer copy of a record they hold,
and it shows any copy newer than its own load, from a view, another read or a
write's `record`. A load notifies every read sharing its entities. Copies are
compared by field, and an unchanged projection keeps its identity, so a read
whose shared records did not change keeps its snapshot, even with an edit
pending.

* fix(data): share only records views hold, and tell views and the cache when a read shares one

A server-ordered read inserted every record it carried into the shared table,
so a late one could put back a record a view had since dropped; it now only
updates records the table holds. Reads a write's reply carried back now
notify every read sharing their entities, as a load does. And a read that
gives views a newer copy marks those views for saving.

* feat(codemod): pass workspace stores to deferred local helpers (#2425)

* feat(codemod): pass workspace stores to deferred local helpers

* fix(codemod): prove the native click output owner

* perf(data): read the store through useSyncExternalStore on the client again (#2429)

The client binding reported each store read to the renderer as a native signal
read. Measured against useSyncExternalStore on the same production app, with
identical renders and DOM, the native path was slower in every step large
enough to measure, and importing it turned on read collection around every
component's render, including ones that read no data. Both bindings now read
snapshots through useSyncExternalStore, as React does; the client entry is
about 3 KB gzipped smaller.

* feat(codemod): migrate native submit event annotations (#2426)

* feat(codemod): migrate native submit event annotations

* fix(codemod): verify forwarded submit event callbacks

* fix(codemod): isolate submit exports and callback slots

* fix(codemod): resolve contextual submit event types

* fix(codemod): keep deferred React submit import types

* fix(codemod): verify workspace store helper dependencies (#2430)

* fix(codemod): verify workspace store helper dependencies

* fix(codemod): trace runtime class bases in store helpers

* test(data): stabilize persistence cache assertions (#2431)

* feat(codemod): preserve explicit effect restart triggers (#2427)

* fix(codemod): trace Intl props through native forwarding wrappers (#2433)

* fix(codemod): preserve inline React Intl substitutions (#2432)

* feat(data): serve a store through a module server function (#2434)

* feat(react): support inline ReactCompat hosts (#2436)

* feat(codemod): lower JSX lists over dense array literals (#2435)

* feat(codemod): lower JSX lists over dense array literals

* fix(codemod): recognize type-wrapped dense iterables

* feat(app-core): serve module server functions from a custom server; Shelf over RPC with Vite and Rspack (#2440)

* feat(app-core): serve module server functions from a custom server; Shelf over RPC with Vite and Rspack

* fix(shelf): keep each Rspack compiler's output apart; pass Vite's own requests through untouched

* feat(data): publish, forget, awaitable retire and opaque cache keys (#2443)

* feat(data): publish, forget, awaitable retire and opaque cache keys (#2439)

* fix(data): let reads join a publish, and keep the saved copy when one is refused

* fix(codemod): defer opaque scoped store inputs (#2428)

* feat(codemod): trace scoped store factory wrappers

* fix(codemod): defer opaque scoped store inputs

* fix(codemod): keep opaque origins through imports and type wrappers

---------

Co-authored-by: Dominic Gannaway <[email protected]>

* feat(floating-ui): add standalone positioning entry (#2438)

* feat(floating-ui): add standalone positioning entry

* fix(floating-ui): classify positioning-only parity tests

* feat(codemod): migrate provider-owned React Intl locales (#2442)

* feat(codemod): migrate destructured React Intl locales

* fix(codemod): prove ownership of destructured Intl locales

* perf(data): evaluate each view from an index of the records its window holds (#2446)

* fix(codemod): migrate expression-bodied effects with explicit dependencies (#2445)

* test(codemod): retain diagnostics for opaque React Intl service calls (#2437)

* feat(codemod): preserve deferred React Intl service values

* fix(codemod): accept discarded deferred Intl service calls

---------

Co-authored-by: Dominic Gannaway <[email protected]>

* fix(codemod): preserve key evaluation in guarded list rows (#2447)

* feat(data): page views with more, pages() and usePages() (#2449)

* feat(data): page views with more, pages() and usePages()

* fix(data): keep later pages shown while an expired earlier page reloads

* fix(data): retry a failed earlier page from loadMore, and stop reporting it as refreshing

* fix(codemod): preserve property triggers in explicit effect dependencies (#2450)

* fix(codemod): preserve setup before keyed map rows (#2453)

* fix(codemod): preserve setup before keyed map rows

* fix(codemod): recognize inert primitive row keys

* fix(compiler): share keyed row destructuring with the row body (#2455)

* fix(compiler): share keyed row destructuring with the row body

* fix(compiler): preserve const row bindings in SSR keys

* test(compiler): expect one SSR row default evaluation

* fix(compiler): retain keyed text rows across equivalent bindings

* fix(codemod): enable React adapters on Octane 0.17 (#2468)

* fix(radix): project Slottable children without duplicating the host (#2473)

* fix(octane): preserve resource hints in React-hosted renders (#2490)

* fix(codemod): migrate React DOM root types (#2483)

* fix(codemod): migrate generic React event handlers (#2487)

* fix(codemod): preserve literal SVG data attributes (#2461)

* feat(octane): support a document body portal target (#2467)

* fix(octane): preserve universal imperative handle refs (#2471)

* fix(octane): preserve universal imperative handle refs

* test(drei): keep the PivotControls observer ref stable

* test(drei): refresh PivotControls parity evidence

* fix(compiler): preserve mapped JSX row keys (#2459)

* fix(compiler): preserve mapped JSX row keys

* fix(compiler): keep proven mapped tags on the native path

* fix(compiler): evaluate keys in empty mapped SSR rows (#2460)

* fix(codemod): migrate effect-only lazy mount records (#2463)

* feat(app-core): route seeds and a config data module for Vite and Rsbuild (#2492)

* feat(app-core): route seeds and a config data module for Vite and Rsbuild

* fix(app-core): cancel a live route stream on request error, and never hydrate a data root as void

* fix(codemod): preserve conditional input identity (#2503)

* fix(codemod): preserve literal SVG root overrides (#2501)

* fix(codemod): allow type queries on store consumers (#2495)

* fix(codemod): preserve the React ref allocator (#2488)

* fix(codemod): migrate standalone Floating UI positioning (#2475)

* fix(codemod): detect escaped eval in scoped store consumers (#2478)

* fix(compiler): preserve effectful JSX map callback order (#2474)

* fix(codemod): preserve authored inline React boundaries (#2479)

* feat(octane): capture initial render values in Strong mode (#2482)

* feat(octane): capture initial render values in Strong mode

* fix(compiler): preserve existing layout snapshot edits

* fix(release): separate Octane and Lynx snapshot changesets

* fix(compiler): preserve eager inputs to initial render snapshots

* test(codemod): assert eager snapshot repair during fallback

* test(cli): verify eager snapshot suggestions

* fix(codemod): prove React Intl locale ownership (#2477)

* fix(codemod): trace immutable store handle aliases (#2485)

* fix(codemod): preserve fresh imperative handles (#2499)

* fix(codemod): preserve fresh imperative handles

* fix(codemod): defer redeclared handle methods

* fix(codemod): preserve imperative handle receiver dependencies (#2470)

* fix(codemod): keep automatic React islands inside paragraphs (#2480)

* fix(codemod): preserve authored inline React boundaries

* fix(codemod): keep automatic React islands inside paragraphs

* fix(codemod): recognize published inline React host exports

* fix(codemod): keep conditional React islands inside paragraphs

* fix(codemod): follow imported fragments to paragraph hosts

* fix(codemod): adapt consolidated Radix Slot exports (#2472)

* fix(codemod): adapt consolidated Radix Slot exports

* fix(codemod): preserve local aliases that shadow Radix

* fix(codemod): preserve local Radix Slot import names

* fix(codemod): preserve SVG opacity and conditional classes (#2500)

* fix(octane): separate rewritten initial-value binding (#2505)

* fix(codemod): preserve SVG inline transforms (#2504)

* fix(codemod): preserve SVG inline transforms

* fix(codemod): recognize prior generated SVG helper

* feat(data): realtime feeds that keep loaded reads current (#2506)

* feat(data): realtime feeds that keep loaded reads current

Add feed() contracts, listen()/useFeed with one shared connection per feed
and parameters, and receive(store, changes). Events put or remove records,
replace a read's value, or invalidate tags. The store drops duplicate event
IDs, resumes from its cursor, and reloads what a feed covers after a gap.
createDataHandler serves feeds through handler.listen over a module server
function, read in the browser with serverListener. Shelf streams its changes
under Vite and Rspack.

Co-Authored-By: Claude <[email protected]>

* fix(data): reload a lower view window when a feed puts a record above it

Also have the Shelf feed check its history before waiting, so a write made
while a frame was being read is sent.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): preserve fixed SVG colors (#2494)

* fix(codemod): preserve fixed SVG colors

* fix(codemod): recognize prior generated SVG helper

* fix(codemod): defer locally mutated store handles (#2493)

* fix(codemod): preserve custom and sparse JSX map dispatch (#2484)

* fix(codemod): migrate proven render-phase boolean state (#2465)

* fix(motion): support server rendering and hydration for motion hosts (#2491)

* fix(motion): support server rendering and hydration for motion hosts

* test(motion): classify the server host conformance tests

* fix(motion): preserve the initial frame during lazy feature loading

* fix(motion): release SVG frame for authored static values

* fix(codemod): preserve layout effect property dependencies (#2498)

* fix(codemod): migrate local rectangular SVG clipping (#2466)

* fix(codemod): migrate ref-only effect helpers (#2476)

* feat(codemod): migrate single-path SVG patterns (#2469)

* feat(codemod): migrate single-path SVG patterns

* fix(codemod): migrate static SVG path transforms

* fix(codemod): preserve SVG matrix transforms

* fix(codemod): report React hooks left in local helpers (#2464)

* fix(codemod): report React hooks left in local helpers

* fix(codemod): report React hooks after literal setup

* fix(codemod): defer React DOM-linked store inputs (#2486)

* fix(codemod): defer React DOM-linked store inputs

* fix(codemod): follow executable store dependencies

* fix(codemod): narrow resource hints to executable imports

* fix(codemod): preserve shared external-store hooks in native setup (#2481)

* fix(codemod): report React hooks left in local helpers

* fix(codemod): preserve shared external-store hooks in native setup

* fix(codemod): ignore type-only external-store hook references

* fix(codemod): preserve external-store hooks after null refs

* fix(codemod): report unsupported native hooks after null refs

* Version Packages (#2343)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(codemod): report lost SSR hints in imported state initializers (#2510)

* fix(codemod): report render-time scoped store member reads (#2513)

* fix(codemod): report unproven React Intl formatter ownership (#2515)

* fix(compiler): preserve writable branch captures (#2511)

* fix(codemod): preserve native host ref state in Strong mode (#2517)

* fix(codemod): preserve native host ref state in Strong mode

* fix(codemod): verify the binding of native ref owners

* fix(codemod): preserve opaque array map dispatch (#2512)

* fix(codemod): preserve opaque array map dispatch

* fix(examples): make Hacker News list dispatch explicit

* test(codemod): verify Hacker News fresh lists in Strong mode

* fix(codemod): report opaque effect dependency getters (#2516)

* fix(codemod): report opaque effect dependency getters

* fix(codemod): check effect getters in JSX-free templates

* fix(codemod): preserve keyed JSX row evaluation order (#2518)

* fix(codemod): preserve keyed JSX row evaluation order

* fix(codemod): preserve keyed rows with multiline JSX children

* feat(testing): add installTestClock, one host seam for runtime time (#2519)

* feat(testing): add installTestClock, one host seam for runtime time

Route the runtime's timers, animation frames, host tasks and now() through
host-task.ts so one installed clock decides their order. octane/testing's
installTestClock() owns that clock: advance(ms), frame() and settle() move
it; act() runs work that is already due without moving time; uninstall()
hands held work back to the host. Converts the flaky ViewTransition
pre-render passive test from half-faked timers to the clock.

Phase 1 of #2508.

Co-Authored-By: Claude <[email protected]>

* fix(testing): keep host-task DOM-free and create the post-paint channel eagerly

host-task.ts is part of DOM-free programs (ink, opentui), so read
requestAnimationFrame and document through a typed globalThis instead of
naming DOM globals. Restore creating the post-paint MessageChannel when
passive work is scheduled, as lazy-client-initialization pins, rather
than inside the frame callback.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(compiler): type generated child traversal on opaque DOM hosts (#2520)

* fix(codemod): retain async and generator map results (#2521)

* fix(codemod): keep retained maps renderable in directive arms (#2522)

* fix(codemod): report generated Intl formatter ownership (#2523)

* fix(octane): preserve type imports in the native TypeScript parser (#2525)

* feat(compiler): hint Strong reads of state after its own setter (#2526)

* feat(compiler): hint Strong reads of state after its own setter

* fix(compiler): scope read-after-set updates per switch case; list recipe in Strong skill

* feat(data): WebSocket and broker feed listeners, and feed cursors across restarts (#2524)

* feat(data): WebSocket and broker feed listeners, and feed cursors across restarts

webSocketListener streams feeds over a socket that handler.accept serves
with no time limit, refusing other origins. pubSubListener listens through a
broker the page already uses. A persistent store saves each feed's cursor
with its stale marks, so the next session replays what it missed, and an
event marks saved copies it could not reach in memory stale.

Co-Authored-By: Claude <[email protected]>

* fix(data): back off a WebSocket feed the server closes with an error

A browser calls any completed close handshake clean, so a refused (1008) or
failed (1011) socket reconnected at once. Only a normal close now ends a
connection without an error, and with Octane's protocol a socket counts as
live once accept has read its request.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* chore(changeset): release installTestClock and data feed listeners as patches (#2527)

* chore(changeset): release installTestClock as a patch

* chore(changeset): release data feed listeners as a patch

* feat(testing): put data, hydration and signals timing on the test clock (#2529)

Phase 2 of #2508. Route octane/data freshness, retention, persistence
stamps and feed backoff, idle and streamed hydration timers, deferred
event fallbacks, signal action timeouts, resize-observer delivery and the
universal re-settle retry through host-task.ts. Add hostDateNow() and
TestClock.dateNow() so data freshness follows the clock, and let the
clock respect a hidden page. Convert transition-timeout and effect-timing
off Vitest fake timers, run the data freshness test on the clock, and add
an idle-hydration clock test.

Co-authored-by: Claude <[email protected]>

* feat(data): carry feed positions in a server render's seed (#2530)

* feat(data): carry feed positions in a server render's seed

A store with no listen asks each feed in its new feeds option for its
position before its first read, and its seed carries them, so the browser's
feed resumes from before the page's values loaded. The data handler answers
a position request with the first cursor the feed's handler yields when it
starts with none.

Co-Authored-By: Claude <[email protected]>

* fix(data): stop a server render's feed position request when its store retires

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(octane): suspend a list of suspending rows once, not once per row (#2528)

* fix(octane): suspend a list of suspending rows once, not once per row

Co-Authored-By: Claude <[email protected]>

* fix(octane): pace rejected row thenables and fold row deferral without suspension

Co-Authored-By: Claude <[email protected]>

* perf(octane): keep row suspension collection out of bundles that cannot suspend

Co-Authored-By: Claude <[email protected]>

* test(octane): pin row-ordered request starts for suspending keyed lists

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(compiler): suggest useInitialValue for nested readonly bindings (#2533)

* fix(codemod): preserve eager prop reads in state initializers (#2536)

* fix(codemod): move effect-only ref helpers into their effect (#2535)

* fix(codemod): guard escaped scoped-store handles (#2537)

* fix(codemod): respect nested React Intl export conditions (#2538)

* fix(codemod): resolve effect restart triggers by binding (#2539)

* fix(compiler): diagnose state updates through bound effect schedulers (#2544)

* fix(codemod): report React Intl scalar formatter ownership (#2543)

* feat(testing): put server and RPC deadlines on the test clock (#2531)

* feat(testing): put server and RPC deadlines on the test clock

Part 1 of phase 3 of #2508. Route the SSR suspense deadline, the stalled
reader backoff and its deadline, streamed-signal budgets, server-function
batch and stream timeouts, the server-function client deadline and timer,
octane/data's server long-poll lifetime and the React-hosted SSR timeout
through host-task.ts. SSR's macrotask yield stays on real time: it waits
for real I/O. Convert the prerender deadline, stalled-reader deadline and
RPC client deadline tests to the clock.

Co-Authored-By: Claude <[email protected]>

* fix(testing): keep TestClock.dateNow() in whole milliseconds

The clock's time starts at performance.now() and frame() snaps to 16 ms
boundaries, so dateNow() could be fractional. Date.now() never is, and
callers rely on that: the server-function client passed a fractional
leftover deadline to serverResultLimits, which requires an integer, and
threw a RangeError. Floor the clock's date, as Date.now() would be.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(radix): ignore deferred outside presses on registered branches (#2534)

* test(tanstack-virtual): render the SSR hydration fixture in beforeAll (#2550)

* test(tanstack-virtual): render the SSR hydration fixture in beforeAll

The test body started a cold Vite SSR server and compiled the whole server
runtime before hydrating. That setup is ~0.5 s idle and 2.2-2.7 s on the
loaded React parity shard 2/4, with a tail past the 5 s test budget; the
hydration under test takes ~20 ms. Render the server twin in beforeAll, as
the input-otp and alien-signals hydration suites already do.

* test(tanstack-virtual): refresh the ssr-hydration parity evidence hash

* fix(data): preserve ambiguous writes and fence dispatch after retirement (#2540)

* fix(data): preserve ambiguous writes and fence dispatch after retirement

* test(data): narrow the uncertain write before settling it

* test(data): wait for dispatch before retiring the test store

* fix(data): keep newer reads when write replies arrive out of order (#2541)

* fix(data): keep newer reads when write replies arrive out of order

* fix(data): reuse a matching feed reply and reconcile a partial update

* test(data): cover deletions outside the current read and view

* fix(data): preserve confirmed SSR snapshots and lazy seed age (#2546)

* fix(data): preserve confirmed SSR snapshots and lazy seed age

* refactor(data): keep serialized seed entries uniform

* fix(codemod): migrate scoped-store uses in Effect Events (#2552)

* fix(codemod): migrate render latches initialized from boolean props (#2551)

* fix(data): preserve native form retry identity and retire held forms (#2547)

* fix(data): preserve native form retry identity and retire held forms

* fix(data): preserve native form retry identity and retire held forms

* fix(data): keep mounted form hooks idle after retirement

* test(data): cancel native submit on a retired mounted form

* fix(data): discard frames after a feed disconnects (#2545)

* fix(data): discard frames after a feed disconnects

* docs(data): explain retirement at the feed delivery boundary

* fix(codemod): protect React island source modules before writing (#2554)

* fix(codemod): protect React island source modules before writing

* fix(codemod): follow logical React island component values

* fix(data): preserve recovery state until cache updates are durable (#2542)

* fix(data): preserve recovery state until cache updates are durable

* fix(data): reconcile obsolete journal entries and retry a failed flush

* fix(data): retain prepared cache values across storage retries

* fix(data): preserve wire input identity and rejoin evicted reads (#2548)

* fix(data): preserve wire input identity and rejoin evicted reads

* fix(data): preserve wire input identity and rejoin evicted reads

* test(effect-atom): wait for scheduled task completion (#2553)

* test(effect-atom): wait for scheduled task completion

* test(effect-atom): refresh scheduled-task parity evidence

* fix(codemod): recover shorthand types for stable scalar props (#2555)

* fix(codemod): recover shorthand types for stable scalar props

* fix(codemod): defer shorthand recovery for unresolved value imports

* fix(codemod): check imported JSX before migrating scoped-store arguments (#2556)

* fix(codemod): check imported JSX before migrating scoped-store arguments

* fix(codemod): resolve the value of merged scoped-store exports

* fix(data): reconcile persisted and server-rendered feed cursors (#2549)

* fix(data): reconcile persisted and server-rendered feed cursors

* fix(data): reconcile persisted and server-rendered feed cursors

* fix(data): persist the reconciled cursor on idle streams

* feat(data): one owner for several replica stores over message ports (#2559)

* feat(data): one owner for several replica stores over message ports

Co-Authored-By: Claude <[email protected]>

* fix(data): reloads never join an older shared read; followed creates gate edits

A replica asking again for a read it already asked for is reloading, so the
owner starts a new request rather than answering it with one that may predate
the change, and only the newest read for a key shares its value. A replica
following another tab's create now holds that record's queue behind its
outcome, as the sending tab does.

Co-Authored-By: Claude <[email protected]>

* fix(data): a replica recognises a view's reload by its wire key

Co-Authored-By: Claude <[email protected]>

* fix(data): only reads count toward a replica's reload record

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(mcp-server): agent driver that drives an Octane app on the test clock (#2558)

* feat(mcp-server): agent driver that drives an Octane app on the test clock

Adds the octane/agent entry, which installs the test clock ahead of the app's scripts, and nine octane_app_* MCP tools that drive one page of a Vite dev server in Chromium (#2508 phase 3).

* style(mcp-server): format agent driver files

* fix(mcp-server): serve the agent module under Vite's base

* fix(codemod): retain installed data descriptors in scoped-store effects (#2561)

* fix(codemod): trace scoped-store JSX through wildcard exports (#2562)

* fix(codemod): check React hook dependency getters (#2563)

* feat(data): share one owner between tabs through a SharedWorker (#2560)

* feat(data): share one owner between tabs through a SharedWorker

Co-Authored-By: Claude <[email protected]>

* fix(examples): declare the shared-owner journey in Shelf's example.json

Co-Authored-By: Claude <[email protected]>

* test(compiler): count emitFile chunk records as bundler records in the AST emit audit

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): keep deferred store field ownership diagnostics (#2566)

* fix(codemod): flag destructured bare SVG components (#2564)

* fix(codemod): flag destructured bare SVG components

* fix(codemod): check the final selected SVG record field

* fix(codemod): trace render-time scoped-store results (#2565)

* fix(codemod): report SSR hints called by inline state initializers (#2568)

* test(swr): isolate the pristine retry callback clock (#2570)

* feat(codemod): migrate static SVG circles and root data (#2571)

* fix(octane): dispatch custom JSX map before receiver checks (#2569)

* fix(codemod): check conditional hook dependency getters (#2573)

* fix(codemod): report generated Intl formatter ownership (#2574)

* fix(codemod): report generated Intl formatter ownership

* test(codemod): preserve Intl upgrade ownership findings

* feat(data): fence shared owners by the origin's signed-in account (#2572)

* feat(data): fence shared owners by the origin's signed-in account

Co-Authored-By: Claude <[email protected]>

* fix(data): bump the owner protocol for hello, and retry a failed account record

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(codemod): preserve fresh inline imperative handles (#2576)

* fix(codemod): report unchanged React context hooks (#2577)

* fix(codemod): report ownership for all scalar Intl formatters (#2579)

* fix(vite-plugin): forward dataWorker to the compiler plugin (#2578)

* docs(data): document octane/data across the website, llms.txt, MCP and READMEs (#2575)

* docs(data): add the octane/data guide, reference, and llms/MCP coverage

Add a website Data guide (Octane and React examples, six diagrams), a
docs/data.md reference served by the MCP server, llms.txt coverage, and
links from the READMEs, sitemap, and Signals guide. A docs test compiles
every example and checks the reference tables against real exports.

* fix(data): typecheck persist.key under bun-types

bun-types declares CryptoKey so it survives a typeof function check. The
website program loads bun-types and now type-checks octane/data through
the new docs test, which failed on persist.ts.

* docs(data): document account fencing for shared owners (#2572)

* docs(data): give each sequence diagram step its own grid row

Auto-placement could put a later step beside an earlier one; an explicit
row keeps the numbered messages reading top to bottom.

* fix(compiler): allow data maps with unreachable JSX (#2581)

* fix(compiler): preserve JSX map addition order (#2582)

* fix(compiler): preserve JSX map conversion order (#2585)

* fix(website): preserve playground AST pins during startup (#2584)

* feat(data): shared tabs fall back to their own store, and survive other builds and crashes (#2583)

* feat(data): shared tabs fall back to their own store, and survive other builds and crashes

Co-Authored-By: Claude <[email protected]>

* fix(data): serve a tab again when it wakes after being dropped, and count unanswered pings

A silent tab is dropped from feeds but served again if it speaks under the same
generation. A tab detects a lost owner after three unanswered pings rather than
wall-clock silence, so throttled background timers never cause a reconnect, and
pauses its heartbeat while frozen. Format data.mdx.

Co-Authored-By: Claude <[email protected]>

* fix(data): restart the owner's sweep when a dropped tab is served again

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix: preserve shadowed createPortal calls (#2588)

* fix: preserve shadowed createPortal calls

* fix: keep shadowed portal-spelled callbacks callable

* fix: preserve shadowed template factory callbacks (#2591)

* fix(codemod): report nested React islands in hosted SSR (#2590)

* fix(codemod): report nested React islands in hosted SSR

* fix(codemod): check paired OctaneCompat tags

* fix(codemod): inspect default JSX exports in SSR hosts

* chore(changeset): release recent features as patches (#2601)

* fix(codemod): verify the final Strong repair (#2595)

* fix(codemod): diagnose SVG namespace default tags (#2598)

* feat(data): read one way, with useRead(store.read(...)) (#2600)

* feat(data): read one way: useRead(store.read(...)), with { suspend: false } for the snapshot

Co-Authored-By: Claude <[email protected]>

* test: read data through useRead(store.read(...)) in the plugin fixtures; patch changeset

Co-Authored-By: Claude <[email protected]>

* feat(data): drop useWrite; components write with useDataStore().write(...)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): report unchanged React root components (#2604)

* feat(data): the shared owner is the only writer of an account's cache and journal (#2594)

* feat(data): the shared owner is the only writer of an account's cache and journal

Co-Authored-By: Claude <[email protected]>

* fix(data): a tab with no owner uses its own cache; protocol 4; sign-out answers recover with no entries

Co-Authored-By: Claude <[email protected]>

* chore: release the shared cache as a patch

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): report retained React callback hooks (#2607)

* fix(codemod): preserve ordinary local provider members

* fix(compiler): evaluate parent props before a render retry (#2603)

* fix(compiler): evaluate parent props before a render retry

* fix(compiler): recognize type-only wrappers on retry operands

* fix(codemod): resolve local context aliases from their importing config

* fix(codemod): preserve context members on proven ordinary exports

* fix(codemod): recognize direct ordinary context-shaped objects

---------

Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
trueadm added a commit that referenced this pull request Nov 13, 2026
)

* feat: let packages declare Strong mode and applications require it (#2400)

* feat: let packages declare Strong mode and applications require it

Packages declare Strong in package.json with "octane": { "strong": true }
or a list of paths. compiler.strongDependencies: { require, allow } fails the
build with OCTANE_STRONG_DEPENDENCY when an application module reaches a
non-Strong module in another Octane package or an octane/react boundary. The
walk moves from the CLI into the compiler, so octane analyze previews exactly
what the build rejects.

The six packages the website renders declare their Strong modules, and the
website turns require on with an empty allow list. Its playground version
picker replaces @octanejs/base-ui's Combobox with a local listbox.

Refs #2059

Co-Authored-By: Claude <[email protected]>

* fix: address review on Strong dependency requirement

- Vite plugin: always read octane.config.ts, so strongDependencies is not
  dropped when strong and renderers are both passed inline.
- octane analyze: keep going under require when there are no views, so plain
  application modules are still checked.
- Playground version picker: keep focus in the input on any press inside the
  list, not only on option rows.

Co-Authored-By: Claude <[email protected]>

* fix(website): let the version list's scrollbar scroll

A mousedown preventDefault on the scrolling list also blocked its scrollbar.
The list now takes focus itself (tabIndex -1), and the field closes the popup
only when focus leaves it. Choosing an option returns focus to the input.

Co-Authored-By: Claude <[email protected]>

* fix(website): close the version list through the bubbling onBlur

Octane's onBlur is delegated as focusout, as React's is, and it is the
typed name; onFocusOut is not.

Co-Authored-By: Claude <[email protected]>

* fix(website): return focus to the version input on Escape

The list can hold focus, so hiding it on Escape dropped focus to the page.

Co-Authored-By: Claude <[email protected]>

* fix(compiler): name the Strong dependency code in its message

The printed-code audit rejects interpolating a non-diagnostic `.code`.

Co-Authored-By: Claude <[email protected]>

* test(website): expect the package reason in Strong module status

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(codemod): migrate verified path-only SVG components (#2398)

* fix(codemod): trace SVGs through native renderable props (#2402)

* feat(codemod): migrate verified path-only SVG components

* fix(codemod): trace SVGs through native renderable props

* fix(codemod): follow proven renderable TypeScript wrappers

* fix(signals): replay optimistic$ updaters over newer source values (#2401)

* fix(signals): replay optimistic$ updaters over newer source values

An overlay kept the value its updater produced at write time, so a refetch,
stream value or direct write stayed hidden behind a pending edit, and a
rejected operation's edit survived inside a later operation's value. Keep
each operation's writes and replay them in order over the current source,
as useOptimistic rebases its updates.

* fix(signals): show an optimistic$ overlay that produces undefined

* fix(data): server-assigned IDs for creates, and one commit per server transaction (#2404)

* fix(data): server-assigned IDs for creates, and one commit per server transaction

A create can name where the server's ID is in its reply. Writes to the new
record wait for the create, are sent with the server's ID, and are refused
unsent if the create is refused. Every view a reply or an optimistic edit
changes is recomputed before any reader is notified.

* fix(data): keep a created record's writes in order across its new ID, and end them on retire

* fix(codemod): ignore erased references in SVG ownership checks (#2406)

* fix: remove the website's remaining client descriptors (#2405)

* feat(strong): reject markup outside template output

Strong mode now reports OCTANE_STRONG_VALUE_JSX for JSX returned from a
function, assigned, passed as a prop or argument, or chosen by an
expression, and for @{} blocks stored in objects or chosen by an
expression: each builds an element descriptor. The website, devtools tabs,
and compiled Router document no longer build descriptors on the client.

ErrorBoundary renders a fallback={@{ ... }} body instead of calling it as a
render prop, and the codemod lowers plain-reference && guards in Strong
output to @if/@else.

Refs #2059

* revert(strong): allow value JSX again; keep the ErrorBoundary and document fixes

Value JSX already compiles to a template behind an 'r:' record, so Strong
keeps accepting it. This drops OCTANE_STRONG_VALUE_JSX, the codemod guard
lowering, and the test conversions it required.

Kept: ErrorBoundary renders a fallback={@{ ... }} body instead of calling it,
the compiled Router document leaves server-only html/head/body out of client
builds, DevtoolsDemo's Suspense fallbacks are render bodies, and an MDX page
no longer nests a <p> inside a <p>.

* test(data): compare cached responses with a normalized worker store (#2408)

* test(data): compare cached responses with a normalized worker store on library journeys

Runs four library journeys and a cold start from storage against octane/data
as merged and a prototype normalized store that evaluates declared views in
a worker. Measures views shown, bytes fetched and persisted, worker traffic,
impossible states and feature code, as promised on #2362.

* test(data): add a normalized design that loads view windows instead of every book

* test(data): refuse journey 3's star by book ID, so the rename cannot let it through

* fix(codemod): report bare SVG issuer changes in ordinary components (#2407)

* fix(codemod): report bare SVG issuer changes in ordinary components

* fix(codemod): trace bare SVGs selected by component fallbacks

* fix(codemod): check SVG defaults on local destructuring

* fix(codemod): exclude SVG defaults overridden by an inline object

* fix(tanstack-router): keep the server document out of browser builds (#2409)

* fix(tanstack-router): keep the server document out of browser builds

The compiled Html, Head, and Body read their server-only document
components through #server-document, which resolves to a null stub under
the browser condition. Folding isServer already removed those components
from client chunks, but Rolldown had linked their createScopedElement
import first and kept it exported from the runtime chunk.

Refs #2059

* test(tanstack-router): classify the server document resolution test

* feat(codemod): migrate path SVGs with conditional clsx tokens (#2411)

* feat(data): read the store as native Octane signal reads (#2410)

* feat(data): read the store as native Octane signal reads

The Octane binding reports each store read to the renderer as a native read
source, so components subscribe as they do to signal$ and query$ and need no
hook slot. The store calls its transport after the synchronous work that
started a load, so a read during render never runs it inside the render.

* fix(data): deliver store changes to Octane readers outside the transition

Native-read notifications honored the ambient transition, so a write inside
startTransition queued its optimistic edit behind the transition. runUrgent
clears the transition context around the notification, as
useSyncExternalStore's scheduleUrgentRender does.

* feat(codemod): migrate static SVG groups and rectangles (#2412)

* feat(data): declared lists with view() (#2413)

* feat(data): declared lists with view()

A view defines a list by a rule over an entity. It loads its window plus a
margin, shares records with every other view of the entity, and evaluates its
rule locally, so an edit moves a record into, out of or across every view in
the task that made it. A write can name its saved record with `record`, which
views take in place of reloading. The Shelf example moves onto views.

* fix(data): keep paged views within max and wait for edits before reloading short windows

A later page took a left margin on top of a full window, so a page at the
view's max was refused; the margins now give way to the cap. A window that
unconfirmed edits left short reloaded on every new span until they settled;
it now reloads once the server has those edits.

* feat(codemod): prove ownership of presence-tested SVG props (#2415)

* feat(data): native forms for writes (#2414)

* feat(data): native forms for writes

A write that declares `form` fields can be submitted by a plain HTML form,
which works before hydration and with JavaScript off. `useForm(write, key?)`
gives the form its attributes, hidden fields, pending state, submitted values
and field issues; once hydrated it submits through the store with the write's
optimistic edit. On the server, `forms(request)` runs a native submission and
answers 303, or returns the refusal for the page to render again, and signs
each page's forms for its account. The Shelf example's add and remove move
onto forms, with JavaScript-off and hydration journeys.

* chore(data): format forms files and refresh the example catalog

The new forms module and its tests were untracked when formatted, and the
Shelf journey added to example.json changes the generated catalog and its
e2e shard weights.

* fix(data): let go of a form that unmounted while its submission was in flight

A form handle was released only on unsubscribe while idle, so one that
unmounted mid-submission, as every removed row does, stayed in the store for
the rest of the session. It now also lets go when its submission settles with
no subscribers.

* feat(data): encrypted persistent cache with a size budget (#2416)

* feat(data): encrypted persistent cache with a size budget

A store given `persist: { storage, partition, key, budget }` saves each
read's confirmed value, and each view's confirmed rows, and starts from them
after a restart with their age kept. Values are encrypted with AES-GCM under a
key from the session, and every name the storage sees is a keyed hash, so
people sharing a browser can neither read nor list each other's values. A
value saved under another shape of its read's output schema, where the
validator describes one, or another `version`, is discarded; one that fails
validation on restore is too. Saves are coalesced per host task and the
partition is purged to its budget, expired values first and then the least
recently used, never one a mounted component shows. The budget defaults to a
size chosen by device memory, data saving and quota. `indexedDBStorage()` and
`memoryStorage()` are included. The Shelf example persists its store.

* fix(data): save reads a write carries back, and count restores as recent use

A write reply's refreshed reads were adopted but never saved, so a reload
within their freshness showed the value from before the write. A restored
value's last use reached only the next storage write, not the order purging
reads, so it could be purged before older unused values.

* feat(codemod): follow SVGs through single-read render locals (#2417)

* feat(codemod): follow SVGs through single-read render locals

* fix(codemod): preserve evaluation and early-return boundaries

* fix(data): restore values a write marked stale as stale, and never purge in-use values at startup (#2419)

* fix(data): restore values a write marked stale as stale, and never purge in-use values at startup

A write or `invalidate()` marked only the entries in memory, so a value saved
earlier and restored within its freshness showed data from before the write.
Each tag and entity name now keeps the time it was last marked, in its own
encrypted record, and each saved value the time it was saved and the names it
holds; a value marked after it was saved is restored stale.

The startup purge ran before any component had asked for a value, so it could
delete values mounted components were about to restore. It now removes only
expired values; the budget applies from the first save.

* fix(data): save invalidation marks again after a failed save

The marks were flagged saved before the write finished and a failed write was
ignored, so its invalidations were lost and a later restart could show a value
from before the write as fresh. A failed save now leaves them flagged, and the
next save writes them.

* feat(codemod): migrate SVG classes from CSS Modules (#2420)

* feat(data): durable writes that survive a restart (#2422)

* feat(data): durable writes that survive a restart

Writes listed in `persist.journal` are saved to an encrypted journal, in the
cache's storage, before they are sent, and leave it once their outcome is
known. After a restart the store shows each journaled write's edit again and
reads the journal's `receipt` with its operation ID: an applied receipt keeps
the edit, any other rolls it back, and the write is never sent twice. A write
whose receipt cannot be read stays for the next start; one this build no
longer declares, or whose input it no longer accepts, is dropped. `retire()`
clears the journal. The Shelf example's writes are durable.

* fix(data): recover journaled writes in submission order, and retry failed removals

Storage lists the journal by hashed name, so recovered writes came back in an
arbitrary order and a later edit could lose to an earlier one. Each entry now
carries its submission order and recovery sorts by it. A failed removal from
the journal was dropped, so a settled write could come back after the next
start; it is now tried again at the next save.

* fix(codemod): defer mutable SVG clsx guards (#2423)

* fix(codemod): defer mutable SVG clsx guards

* perf(codemod): reuse fixed SVG parameter proofs

* feat(data): server-ordered reads share records with views (#2424)

* feat(data): server-ordered reads share records with views

A read that selects entities but only the server can order, such as search
results, keeps the order and membership it was sent but now shares records
with the views. Its load gives views any newer copy of a record they hold,
and it shows any copy newer than its own load, from a view, another read or a
write's `record`. A load notifies every read sharing its entities. Copies are
compared by field, and an unchanged projection keeps its identity, so a read
whose shared records did not change keeps its snapshot, even with an edit
pending.

* fix(data): share only records views hold, and tell views and the cache when a read shares one

A server-ordered read inserted every record it carried into the shared table,
so a late one could put back a record a view had since dropped; it now only
updates records the table holds. Reads a write's reply carried back now
notify every read sharing their entities, as a load does. And a read that
gives views a newer copy marks those views for saving.

* feat(codemod): pass workspace stores to deferred local helpers (#2425)

* feat(codemod): pass workspace stores to deferred local helpers

* fix(codemod): prove the native click output owner

* perf(data): read the store through useSyncExternalStore on the client again (#2429)

The client binding reported each store read to the renderer as a native signal
read. Measured against useSyncExternalStore on the same production app, with
identical renders and DOM, the native path was slower in every step large
enough to measure, and importing it turned on read collection around every
component's render, including ones that read no data. Both bindings now read
snapshots through useSyncExternalStore, as React does; the client entry is
about 3 KB gzipped smaller.

* feat(codemod): migrate native submit event annotations (#2426)

* feat(codemod): migrate native submit event annotations

* fix(codemod): verify forwarded submit event callbacks

* fix(codemod): isolate submit exports and callback slots

* fix(codemod): resolve contextual submit event types

* fix(codemod): keep deferred React submit import types

* fix(codemod): verify workspace store helper dependencies (#2430)

* fix(codemod): verify workspace store helper dependencies

* fix(codemod): trace runtime class bases in store helpers

* test(data): stabilize persistence cache assertions (#2431)

* feat(codemod): preserve explicit effect restart triggers (#2427)

* fix(codemod): trace Intl props through native forwarding wrappers (#2433)

* fix(codemod): preserve inline React Intl substitutions (#2432)

* feat(data): serve a store through a module server function (#2434)

* feat(react): support inline ReactCompat hosts (#2436)

* feat(codemod): lower JSX lists over dense array literals (#2435)

* feat(codemod): lower JSX lists over dense array literals

* fix(codemod): recognize type-wrapped dense iterables

* feat(app-core): serve module server functions from a custom server; Shelf over RPC with Vite and Rspack (#2440)

* feat(app-core): serve module server functions from a custom server; Shelf over RPC with Vite and Rspack

* fix(shelf): keep each Rspack compiler's output apart; pass Vite's own requests through untouched

* feat(data): publish, forget, awaitable retire and opaque cache keys (#2443)

* feat(data): publish, forget, awaitable retire and opaque cache keys (#2439)

* fix(data): let reads join a publish, and keep the saved copy when one is refused

* fix(codemod): defer opaque scoped store inputs (#2428)

* feat(codemod): trace scoped store factory wrappers

* fix(codemod): defer opaque scoped store inputs

* fix(codemod): keep opaque origins through imports and type wrappers

---------

Co-authored-by: Dominic Gannaway <[email protected]>

* feat(floating-ui): add standalone positioning entry (#2438)

* feat(floating-ui): add standalone positioning entry

* fix(floating-ui): classify positioning-only parity tests

* feat(codemod): migrate provider-owned React Intl locales (#2442)

* feat(codemod): migrate destructured React Intl locales

* fix(codemod): prove ownership of destructured Intl locales

* perf(data): evaluate each view from an index of the records its window holds (#2446)

* fix(codemod): migrate expression-bodied effects with explicit dependencies (#2445)

* test(codemod): retain diagnostics for opaque React Intl service calls (#2437)

* feat(codemod): preserve deferred React Intl service values

* fix(codemod): accept discarded deferred Intl service calls

---------

Co-authored-by: Dominic Gannaway <[email protected]>

* fix(codemod): preserve key evaluation in guarded list rows (#2447)

* feat(data): page views with more, pages() and usePages() (#2449)

* feat(data): page views with more, pages() and usePages()

* fix(data): keep later pages shown while an expired earlier page reloads

* fix(data): retry a failed earlier page from loadMore, and stop reporting it as refreshing

* fix(codemod): preserve property triggers in explicit effect dependencies (#2450)

* fix(codemod): preserve setup before keyed map rows (#2453)

* fix(codemod): preserve setup before keyed map rows

* fix(codemod): recognize inert primitive row keys

* fix(compiler): share keyed row destructuring with the row body (#2455)

* fix(compiler): share keyed row destructuring with the row body

* fix(compiler): preserve const row bindings in SSR keys

* test(compiler): expect one SSR row default evaluation

* fix(compiler): retain keyed text rows across equivalent bindings

* fix(codemod): enable React adapters on Octane 0.17 (#2468)

* fix(radix): project Slottable children without duplicating the host (#2473)

* fix(octane): preserve resource hints in React-hosted renders (#2490)

* fix(codemod): migrate React DOM root types (#2483)

* fix(codemod): migrate generic React event handlers (#2487)

* fix(codemod): preserve literal SVG data attributes (#2461)

* feat(octane): support a document body portal target (#2467)

* fix(octane): preserve universal imperative handle refs (#2471)

* fix(octane): preserve universal imperative handle refs

* test(drei): keep the PivotControls observer ref stable

* test(drei): refresh PivotControls parity evidence

* fix(compiler): preserve mapped JSX row keys (#2459)

* fix(compiler): preserve mapped JSX row keys

* fix(compiler): keep proven mapped tags on the native path

* fix(compiler): evaluate keys in empty mapped SSR rows (#2460)

* fix(codemod): migrate effect-only lazy mount records (#2463)

* feat(app-core): route seeds and a config data module for Vite and Rsbuild (#2492)

* feat(app-core): route seeds and a config data module for Vite and Rsbuild

* fix(app-core): cancel a live route stream on request error, and never hydrate a data root as void

* fix(codemod): preserve conditional input identity (#2503)

* fix(codemod): preserve literal SVG root overrides (#2501)

* fix(codemod): allow type queries on store consumers (#2495)

* fix(codemod): preserve the React ref allocator (#2488)

* fix(codemod): migrate standalone Floating UI positioning (#2475)

* fix(codemod): detect escaped eval in scoped store consumers (#2478)

* fix(compiler): preserve effectful JSX map callback order (#2474)

* fix(codemod): preserve authored inline React boundaries (#2479)

* feat(octane): capture initial render values in Strong mode (#2482)

* feat(octane): capture initial render values in Strong mode

* fix(compiler): preserve existing layout snapshot edits

* fix(release): separate Octane and Lynx snapshot changesets

* fix(compiler): preserve eager inputs to initial render snapshots

* test(codemod): assert eager snapshot repair during fallback

* test(cli): verify eager snapshot suggestions

* fix(codemod): prove React Intl locale ownership (#2477)

* fix(codemod): trace immutable store handle aliases (#2485)

* fix(codemod): preserve fresh imperative handles (#2499)

* fix(codemod): preserve fresh imperative handles

* fix(codemod): defer redeclared handle methods

* fix(codemod): preserve imperative handle receiver dependencies (#2470)

* fix(codemod): keep automatic React islands inside paragraphs (#2480)

* fix(codemod): preserve authored inline React boundaries

* fix(codemod): keep automatic React islands inside paragraphs

* fix(codemod): recognize published inline React host exports

* fix(codemod): keep conditional React islands inside paragraphs

* fix(codemod): follow imported fragments to paragraph hosts

* fix(codemod): adapt consolidated Radix Slot exports (#2472)

* fix(codemod): adapt consolidated Radix Slot exports

* fix(codemod): preserve local aliases that shadow Radix

* fix(codemod): preserve local Radix Slot import names

* fix(codemod): preserve SVG opacity and conditional classes (#2500)

* fix(octane): separate rewritten initial-value binding (#2505)

* fix(codemod): preserve SVG inline transforms (#2504)

* fix(codemod): preserve SVG inline transforms

* fix(codemod): recognize prior generated SVG helper

* feat(data): realtime feeds that keep loaded reads current (#2506)

* feat(data): realtime feeds that keep loaded reads current

Add feed() contracts, listen()/useFeed with one shared connection per feed
and parameters, and receive(store, changes). Events put or remove records,
replace a read's value, or invalidate tags. The store drops duplicate event
IDs, resumes from its cursor, and reloads what a feed covers after a gap.
createDataHandler serves feeds through handler.listen over a module server
function, read in the browser with serverListener. Shelf streams its changes
under Vite and Rspack.

Co-Authored-By: Claude <[email protected]>

* fix(data): reload a lower view window when a feed puts a record above it

Also have the Shelf feed check its history before waiting, so a write made
while a frame was being read is sent.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): preserve fixed SVG colors (#2494)

* fix(codemod): preserve fixed SVG colors

* fix(codemod): recognize prior generated SVG helper

* fix(codemod): defer locally mutated store handles (#2493)

* fix(codemod): preserve custom and sparse JSX map dispatch (#2484)

* fix(codemod): migrate proven render-phase boolean state (#2465)

* fix(motion): support server rendering and hydration for motion hosts (#2491)

* fix(motion): support server rendering and hydration for motion hosts

* test(motion): classify the server host conformance tests

* fix(motion): preserve the initial frame during lazy feature loading

* fix(motion): release SVG frame for authored static values

* fix(codemod): preserve layout effect property dependencies (#2498)

* fix(codemod): migrate local rectangular SVG clipping (#2466)

* fix(codemod): migrate ref-only effect helpers (#2476)

* feat(codemod): migrate single-path SVG patterns (#2469)

* feat(codemod): migrate single-path SVG patterns

* fix(codemod): migrate static SVG path transforms

* fix(codemod): preserve SVG matrix transforms

* fix(codemod): report React hooks left in local helpers (#2464)

* fix(codemod): report React hooks left in local helpers

* fix(codemod): report React hooks after literal setup

* fix(codemod): defer React DOM-linked store inputs (#2486)

* fix(codemod): defer React DOM-linked store inputs

* fix(codemod): follow executable store dependencies

* fix(codemod): narrow resource hints to executable imports

* fix(codemod): preserve shared external-store hooks in native setup (#2481)

* fix(codemod): report React hooks left in local helpers

* fix(codemod): preserve shared external-store hooks in native setup

* fix(codemod): ignore type-only external-store hook references

* fix(codemod): preserve external-store hooks after null refs

* fix(codemod): report unsupported native hooks after null refs

* Version Packages (#2343)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(codemod): report lost SSR hints in imported state initializers (#2510)

* fix(codemod): report render-time scoped store member reads (#2513)

* fix(codemod): report unproven React Intl formatter ownership (#2515)

* fix(compiler): preserve writable branch captures (#2511)

* fix(codemod): preserve native host ref state in Strong mode (#2517)

* fix(codemod): preserve native host ref state in Strong mode

* fix(codemod): verify the binding of native ref owners

* fix(codemod): preserve opaque array map dispatch (#2512)

* fix(codemod): preserve opaque array map dispatch

* fix(examples): make Hacker News list dispatch explicit

* test(codemod): verify Hacker News fresh lists in Strong mode

* fix(codemod): report opaque effect dependency getters (#2516)

* fix(codemod): report opaque effect dependency getters

* fix(codemod): check effect getters in JSX-free templates

* fix(codemod): preserve keyed JSX row evaluation order (#2518)

* fix(codemod): preserve keyed JSX row evaluation order

* fix(codemod): preserve keyed rows with multiline JSX children

* feat(testing): add installTestClock, one host seam for runtime time (#2519)

* feat(testing): add installTestClock, one host seam for runtime time

Route the runtime's timers, animation frames, host tasks and now() through
host-task.ts so one installed clock decides their order. octane/testing's
installTestClock() owns that clock: advance(ms), frame() and settle() move
it; act() runs work that is already due without moving time; uninstall()
hands held work back to the host. Converts the flaky ViewTransition
pre-render passive test from half-faked timers to the clock.

Phase 1 of #2508.

Co-Authored-By: Claude <[email protected]>

* fix(testing): keep host-task DOM-free and create the post-paint channel eagerly

host-task.ts is part of DOM-free programs (ink, opentui), so read
requestAnimationFrame and document through a typed globalThis instead of
naming DOM globals. Restore creating the post-paint MessageChannel when
passive work is scheduled, as lazy-client-initialization pins, rather
than inside the frame callback.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(compiler): type generated child traversal on opaque DOM hosts (#2520)

* fix(codemod): retain async and generator map results (#2521)

* fix(codemod): keep retained maps renderable in directive arms (#2522)

* fix(codemod): report generated Intl formatter ownership (#2523)

* fix(octane): preserve type imports in the native TypeScript parser (#2525)

* feat(compiler): hint Strong reads of state after its own setter (#2526)

* feat(compiler): hint Strong reads of state after its own setter

* fix(compiler): scope read-after-set updates per switch case; list recipe in Strong skill

* feat(data): WebSocket and broker feed listeners, and feed cursors across restarts (#2524)

* feat(data): WebSocket and broker feed listeners, and feed cursors across restarts

webSocketListener streams feeds over a socket that handler.accept serves
with no time limit, refusing other origins. pubSubListener listens through a
broker the page already uses. A persistent store saves each feed's cursor
with its stale marks, so the next session replays what it missed, and an
event marks saved copies it could not reach in memory stale.

Co-Authored-By: Claude <[email protected]>

* fix(data): back off a WebSocket feed the server closes with an error

A browser calls any completed close handshake clean, so a refused (1008) or
failed (1011) socket reconnected at once. Only a normal close now ends a
connection without an error, and with Octane's protocol a socket counts as
live once accept has read its request.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* chore(changeset): release installTestClock and data feed listeners as patches (#2527)

* chore(changeset): release installTestClock as a patch

* chore(changeset): release data feed listeners as a patch

* feat(testing): put data, hydration and signals timing on the test clock (#2529)

Phase 2 of #2508. Route octane/data freshness, retention, persistence
stamps and feed backoff, idle and streamed hydration timers, deferred
event fallbacks, signal action timeouts, resize-observer delivery and the
universal re-settle retry through host-task.ts. Add hostDateNow() and
TestClock.dateNow() so data freshness follows the clock, and let the
clock respect a hidden page. Convert transition-timeout and effect-timing
off Vitest fake timers, run the data freshness test on the clock, and add
an idle-hydration clock test.

Co-authored-by: Claude <[email protected]>

* feat(data): carry feed positions in a server render's seed (#2530)

* feat(data): carry feed positions in a server render's seed

A store with no listen asks each feed in its new feeds option for its
position before its first read, and its seed carries them, so the browser's
feed resumes from before the page's values loaded. The data handler answers
a position request with the first cursor the feed's handler yields when it
starts with none.

Co-Authored-By: Claude <[email protected]>

* fix(data): stop a server render's feed position request when its store retires

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(octane): suspend a list of suspending rows once, not once per row (#2528)

* fix(octane): suspend a list of suspending rows once, not once per row

Co-Authored-By: Claude <[email protected]>

* fix(octane): pace rejected row thenables and fold row deferral without suspension

Co-Authored-By: Claude <[email protected]>

* perf(octane): keep row suspension collection out of bundles that cannot suspend

Co-Authored-By: Claude <[email protected]>

* test(octane): pin row-ordered request starts for suspending keyed lists

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(compiler): suggest useInitialValue for nested readonly bindings (#2533)

* fix(codemod): preserve eager prop reads in state initializers (#2536)

* fix(codemod): move effect-only ref helpers into their effect (#2535)

* fix(codemod): guard escaped scoped-store handles (#2537)

* fix(codemod): respect nested React Intl export conditions (#2538)

* fix(codemod): resolve effect restart triggers by binding (#2539)

* fix(compiler): diagnose state updates through bound effect schedulers (#2544)

* fix(codemod): report React Intl scalar formatter ownership (#2543)

* feat(testing): put server and RPC deadlines on the test clock (#2531)

* feat(testing): put server and RPC deadlines on the test clock

Part 1 of phase 3 of #2508. Route the SSR suspense deadline, the stalled
reader backoff and its deadline, streamed-signal budgets, server-function
batch and stream timeouts, the server-function client deadline and timer,
octane/data's server long-poll lifetime and the React-hosted SSR timeout
through host-task.ts. SSR's macrotask yield stays on real time: it waits
for real I/O. Convert the prerender deadline, stalled-reader deadline and
RPC client deadline tests to the clock.

Co-Authored-By: Claude <[email protected]>

* fix(testing): keep TestClock.dateNow() in whole milliseconds

The clock's time starts at performance.now() and frame() snaps to 16 ms
boundaries, so dateNow() could be fractional. Date.now() never is, and
callers rely on that: the server-function client passed a fractional
leftover deadline to serverResultLimits, which requires an integer, and
threw a RangeError. Floor the clock's date, as Date.now() would be.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(radix): ignore deferred outside presses on registered branches (#2534)

* test(tanstack-virtual): render the SSR hydration fixture in beforeAll (#2550)

* test(tanstack-virtual): render the SSR hydration fixture in beforeAll

The test body started a cold Vite SSR server and compiled the whole server
runtime before hydrating. That setup is ~0.5 s idle and 2.2-2.7 s on the
loaded React parity shard 2/4, with a tail past the 5 s test budget; the
hydration under test takes ~20 ms. Render the server twin in beforeAll, as
the input-otp and alien-signals hydration suites already do.

* test(tanstack-virtual): refresh the ssr-hydration parity evidence hash

* fix(data): preserve ambiguous writes and fence dispatch after retirement (#2540)

* fix(data): preserve ambiguous writes and fence dispatch after retirement

* test(data): narrow the uncertain write before settling it

* test(data): wait for dispatch before retiring the test store

* fix(data): keep newer reads when write replies arrive out of order (#2541)

* fix(data): keep newer reads when write replies arrive out of order

* fix(data): reuse a matching feed reply and reconcile a partial update

* test(data): cover deletions outside the current read and view

* fix(data): preserve confirmed SSR snapshots and lazy seed age (#2546)

* fix(data): preserve confirmed SSR snapshots and lazy seed age

* refactor(data): keep serialized seed entries uniform

* fix(codemod): migrate scoped-store uses in Effect Events (#2552)

* fix(codemod): migrate render latches initialized from boolean props (#2551)

* fix(data): preserve native form retry identity and retire held forms (#2547)

* fix(data): preserve native form retry identity and retire held forms

* fix(data): preserve native form retry identity and retire held forms

* fix(data): keep mounted form hooks idle after retirement

* test(data): cancel native submit on a retired mounted form

* fix(data): discard frames after a feed disconnects (#2545)

* fix(data): discard frames after a feed disconnects

* docs(data): explain retirement at the feed delivery boundary

* fix(codemod): protect React island source modules before writing (#2554)

* fix(codemod): protect React island source modules before writing

* fix(codemod): follow logical React island component values

* fix(data): preserve recovery state until cache updates are durable (#2542)

* fix(data): preserve recovery state until cache updates are durable

* fix(data): reconcile obsolete journal entries and retry a failed flush

* fix(data): retain prepared cache values across storage retries

* fix(data): preserve wire input identity and rejoin evicted reads (#2548)

* fix(data): preserve wire input identity and rejoin evicted reads

* fix(data): preserve wire input identity and rejoin evicted reads

* test(effect-atom): wait for scheduled task completion (#2553)

* test(effect-atom): wait for scheduled task completion

* test(effect-atom): refresh scheduled-task parity evidence

* fix(codemod): recover shorthand types for stable scalar props (#2555)

* fix(codemod): recover shorthand types for stable scalar props

* fix(codemod): defer shorthand recovery for unresolved value imports

* fix(codemod): check imported JSX before migrating scoped-store arguments (#2556)

* fix(codemod): check imported JSX before migrating scoped-store arguments

* fix(codemod): resolve the value of merged scoped-store exports

* fix(data): reconcile persisted and server-rendered feed cursors (#2549)

* fix(data): reconcile persisted and server-rendered feed cursors

* fix(data): reconcile persisted and server-rendered feed cursors

* fix(data): persist the reconciled cursor on idle streams

* feat(data): one owner for several replica stores over message ports (#2559)

* feat(data): one owner for several replica stores over message ports

Co-Authored-By: Claude <[email protected]>

* fix(data): reloads never join an older shared read; followed creates gate edits

A replica asking again for a read it already asked for is reloading, so the
owner starts a new request rather than answering it with one that may predate
the change, and only the newest read for a key shares its value. A replica
following another tab's create now holds that record's queue behind its
outcome, as the sending tab does.

Co-Authored-By: Claude <[email protected]>

* fix(data): a replica recognises a view's reload by its wire key

Co-Authored-By: Claude <[email protected]>

* fix(data): only reads count toward a replica's reload record

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(mcp-server): agent driver that drives an Octane app on the test clock (#2558)

* feat(mcp-server): agent driver that drives an Octane app on the test clock

Adds the octane/agent entry, which installs the test clock ahead of the app's scripts, and nine octane_app_* MCP tools that drive one page of a Vite dev server in Chromium (#2508 phase 3).

* style(mcp-server): format agent driver files

* fix(mcp-server): serve the agent module under Vite's base

* fix(codemod): retain installed data descriptors in scoped-store effects (#2561)

* fix(codemod): trace scoped-store JSX through wildcard exports (#2562)

* fix(codemod): check React hook dependency getters (#2563)

* feat(data): share one owner between tabs through a SharedWorker (#2560)

* feat(data): share one owner between tabs through a SharedWorker

Co-Authored-By: Claude <[email protected]>

* fix(examples): declare the shared-owner journey in Shelf's example.json

Co-Authored-By: Claude <[email protected]>

* test(compiler): count emitFile chunk records as bundler records in the AST emit audit

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix(codemod): keep deferred store field ownership diagnostics (#2566)

* fix(codemod): flag destructured bare SVG components (#2564)

* fix(codemod): flag destructured bare SVG components

* fix(codemod): check the final selected SVG record field

* fix(codemod): trace render-time scoped-store results (#2565)

* fix(codemod): report SSR hints called by inline state initializers (#2568)

* test(swr): isolate the pristine retry callback clock (#2570)

* feat(codemod): migrate static SVG circles and root data (#2571)

* fix(octane): dispatch custom JSX map before receiver checks (#2569)

* fix(codemod): check conditional hook dependency getters (#2573)

* fix(codemod): report generated Intl formatter ownership (#2574)

* fix(codemod): report generated Intl formatter ownership

* test(codemod): preserve Intl upgrade ownership findings

* feat(data): fence shared owners by the origin's signed-in account (#2572)

* feat(data): fence shared owners by the origin's signed-in account

Co-Authored-By: Claude <[email protected]>

* fix(data): bump the owner protocol for hello, and retry a failed account record

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* feat(codemod): preserve fresh inline imperative handles (#2576)

* fix(codemod): report unchanged React context hooks (#2577)

* fix(codemod): report ownership for all scalar Intl formatters (#2579)

* fix(vite-plugin): forward dataWorker to the compiler plugin (#2578)

* docs(data): document octane/data across the website, llms.txt, MCP and READMEs (#2575)

* docs(data): add the octane/data guide, reference, and llms/MCP coverage

Add a website Data guide (Octane and React examples, six diagrams), a
docs/data.md reference served by the MCP server, llms.txt coverage, and
links from the READMEs, sitemap, and Signals guide. A docs test compiles
every example and checks the reference tables against real exports.

* fix(data): typecheck persist.key under bun-types

bun-types declares CryptoKey so it survives a typeof function check. The
website program loads bun-types and now type-checks octane/data through
the new docs test, which failed on persist.ts.

* docs(data): document account fencing for shared owners (#2572)

* docs(data): give each sequence diagram step its own grid row

Auto-placement could put a later step beside an earlier one; an explicit
row keeps the numbered messages reading top to bottom.

* fix(compiler): allow data maps with unreachable JSX (#2581)

* fix(compiler): preserve JSX map addition order (#2582)

* fix(compiler): preserve JSX map conversion order (#2585)

* fix(website): preserve playground AST pins during startup (#2584)

* feat(data): shared tabs fall back to their own store, and survive other builds and crashes (#2583)

* feat(data): shared tabs fall back to their own store, and survive other builds and crashes

Co-Authored-By: Claude <[email protected]>

* fix(data): serve a tab again when it wakes after being dropped, and count unanswered pings

A silent tab is dropped from feeds but served again if it speaks under the same
generation. A tab detects a lost owner after three unanswered pings rather than
wall-clock silence, so throttled background timers never cause a reconnect, and
pauses its heartbeat while frozen. Format data.mdx.

Co-Authored-By: Claude <[email protected]>

* fix(data): restart the owner's sweep when a dropped tab is served again

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>

* fix: preserve shadowed createPortal calls (#2588)

* fix: preserve shadowed createPortal calls

* fix: keep shadowed portal-spelled callbacks callable

* fix: preserve shadowed template factory callbacks (#2591)

* fix(codemod): report nested React islands in hosted SSR (#2590)

* fix(codemod): report nested React islands in hosted SSR

* fix(codemod): check paired OctaneCompat tags

* fix(codemod): inspect default JSX exports in SSR hosts

* chore(changeset): release recent features as patches (#2601)

* fix(codemod): verify the final Strong repair (#2595)

* fix(codemod): diagnose SVG namespace default tags (#2598)

* feat(compiler): per-module octane/data contract check (rules 1–4)

Adds compiler/data-contracts.js: parses a .ts, .tsx, .js or .tsrx module and
returns its contract declarations, its contract use sites, and diagnostics for
OCTANE_DATA_CONTRACT_DECLARATION, _MODULE, _ARGUMENT and _ESCAPE, per
docs/data-contract-conventions.md. Sites match by method, import or property
name plus the contract argument, never the receiver, and the bounded .map /
for…of over an inline array of contracts is followed.

The codes get a data section in the diagnostic catalog, so they render into
the generated reference, llms.txt, MCP and octane explain.

* fix(compiler): drop useWrite as a data contract site

useWrite is removed from octane/data (spec Decision 6); writes go through
store.write(contract, input).

* fix(compiler): follow data contract sites through type assertions

Unwrap as/satisfies/!/<T> and parentheses around a site's callee, a loop's
inline array, a contract argument, and a declaration's initializer, reusing
descriptor-lowering's unwrapTsExpr.

* docs(compiler): state the data contract rules inline

The design note (#2602) was closed unmerged, so point at the octane/data RFC
(#2362) and state the four rules where they are enforced and documented.

* fix(compiler): walk functions in a data contract site position

A method or callback keyed read/put/of/… that mentioned a contract was
reported as a runtime-chosen argument and its inner sites were dropped.
The argument check now stops at functions, so they are walked as ordinary
code.

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: domgan-oai <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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 fix PR: bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant