Repository navigation
chore: sync new-lynx with upstream octane v0.1.47 (d5175ca8) - #229
Merged
Merged
Conversation
…tanejs#738) PR octanejs#727 made streaming SSR ship Float stylesheet resources discovered after the shell with their boundary's reveal wave, closing the gap octanejs#725 had deferred three ReactDOMFloat-test.js ledger cases against. Flip those cases (:1923 …7b6da8a5, :2041 …8d52f5f3, :2350 …745930fa) to covered with evidence into the 'streamed late boundaries' describe, add one adapted test for the :2350 inline-flush shape (inner boundary resolves first; its complete content and sheet ride the parent's reveal wave exactly once), and regenerate the coverage report. ReactDOMFloat planned drops 8 -> 5. Co-authored-by: Claude Fable 5 <[email protected]>
…ounts (octanejs#739) * fix: form Float precedence groups in tree discovery order on client mounts Precedence group order is CSS cascade order. Client mounts created groups in body-completion order, so a nested child's or @Try arm's group could precede its parent's and the same tree cascaded differently on a client-only mount than on an SSR'd page. Resource registrations now run after a component's setup but before its constructs mount children, forming groups parent-first with suspended arms at reveal — matching SSR and React. The server twin fixes a latent TDZ crash the placement rule exposed: a hoisted head element or Float resource whose attribute reads a setup local emitted its registration ahead of the local's declaration and threw at render. Capture-free head statements keep the historical front placement (arm-root sheets still ship with the streaming shell); capturing ones now run right after setup, still ahead of the children the return renders. Adjudicates the client group-order item from octanejs#711 as "fix". Co-Authored-By: Claude Fable 5 <[email protected]> * fix: keep server head-statement order across the capture partition Registration order is precedence-group order, so the capture split must not reorder the list: a capture-free head statement after a capturing one used to jump to the body front, cascading differently on SSR than on a client mount. Only the capture-free prefix leads now; from the first capturing statement on, everything defers together in source order. (Bugbot review finding.) Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
…meout errors (octanejs#740) The markdown conformance public-api probe imports src/index inside the test body, so the package's first Octane compile counted against vitest's 5s default testTimeout and intermittently lost the race under the 136-lane parity batch. The markdown project now carries the repo's 30s compile-heavy timeout convention. The batch also reported such timeouts as 'Error: STACK_TRACE_ERROR' because vitest's JSON reporter serializes error.stack alone while makeTimeoutError keeps the real message only on error.message. A thin JsonReporter subclass re-embeds the message into the stack before serialization, wired into the parity batch, the harness single-lane vitest runners, and the unhandled reporter. Co-authored-by: Claude Fable 5 <[email protected]>
) CSSTransitionAnimate imported `AnimationController` from './AnimationController', which does not exist. Upstream ships that module as types-only, so its compiled JavaScript is `export {}` and the vendoring pass, which copies compiled es6 output, dropped it. AnimationHandle is reconstructed from the real JavascriptAnimation and CSSTransitionAnimation classes. The same file imported `CSSProperties` from `octane`, which does not export it. The style type now derives from octane's own JSX surface, so this needs no `react` dependency the package does not have. Package diagnostics under tsrx-tsc go from 1268 to 1266. The remaining `./easing` errors in this file are downstream of easing.js being untyped and are tracked separately.
* fix(bindings): validate strict packed TSRX consumers (octanejs#721) * fix(recharts): expose strict consumer types (octanejs#726) * fix(recharts): align public type exports (octanejs#730) * test(packages): enforce strict TSRX source consumers (octanejs#721) * Address PR review feedback (octanejs#733) - install the complete packed workspace dependency closure - allow pnpm to install required external peers * Clarify deferred strict binding coverage (octanejs#733) - defer Recharts source compilation until tsrx-tsc resolves extensionless TSRX imports * Address PR review feedback (octanejs#733) - keep precise API probe packages installed when source validation is deferred * Fix packed TSRX consumer dependency graph --------- Co-authored-by: Dominic Gannaway <[email protected]>
The upstream-root suite's focus/reconnect case intermittently lost the focus revalidation (fetcher called 2 of 3 times). The mount effect arms the focus throttle at Date.now() + focusThrottleInterval and a focus event revalidates only at a strictly later timestamp, so even at interval 0 a focus whose setTimeout-deferred adapter callback lands in the mount millisecond is throttled. This is pinned upstream SWR 2.4.2 behavior (its suite sleeps a real 1ms before focusing), so the test now controls the clock instead: fake only Date and step it past the armed throttle before dispatching focus, leaving real timers to drive the environment adapters' deferred callbacks. Co-authored-by: Claude Fable 5 <[email protected]>
…ctanejs#734) * fix: validate published TSRX source with a consumer-shaped typecheck Packages that ship .tsrx were typechecked by tsgo, which drops those files from the program entirely. Their published source was therefore never checked at all. Bindings publish raw source and point exports at it, so every one of those errors is visible to a consumer. - Generate canonical consumer projects from the same tsconfig the CLI scaffolds, with a drift check, so what is validated cannot diverge from what users actually compile against. - Move the .tsrx-publishing projects that already pass onto tsrx-tsc. - Add a no-@types/node lane to the packed-tarball canary. The existing lane sets types: ["node"], so it cannot see `process` references in published source, which a browser app does not resolve. - Add a guardrail over source-published packages with an enumerated allowlist of the remaining violations. A stale entry fails the check, so the list can only shrink. * refactor: cede packed-canary changes to octanejs#733 octanejs#733 rebuilds the packed TSRX consumer canary around automatic discovery of every binding that ships .tsrx, which is a better answer than the package list this branch was extending. Drop the overlapping edits to package-pack-canaries.mjs, check-package-packs.mjs and their test so the two branches stop touching the same files. What remains here is the part octanejs#733 does not cover: the root typecheck chain still runs tsgo over packages that ship .tsrx, so those files are absent from the program CI actually runs. * fix(bindings): fix published source a browser app cannot type-check These packages ship raw source and point exports at it, so a consumer's program compiles every reachable module. The repo checked them with tsgo, which drops .tsrx from the program, so none of this was visible in CI while all of it was visible to consumers. - Declare `process` module-locally at every published `process.env.NODE_ENV` reference. A browser app has no @types/node. The expression stays written out literally so bundler define substitution and the dead-code elimination after it are unaffected, and nothing ambient ships in the tarball. - Let Form and Link accept a null forwarded ref: the compiler composes it as ref={[ref, spread.ref]}, and Ref<T> array members cannot be undefined. - Carry the same process deviation into the remix-router vendoring script, so a re-vendor does not reintroduce the error. The Provider prop typings for jotai and redux are left to octanejs#733, which edits the same two files. * fix: widen the source-publication gate past the typecheck chain Two defects Cursor Bugbot found on this PR, both confirmed. The nodeTypes and excluded rules only saw projects discovered by parsing inline compiler invocations out of the root typecheck chain. A package validated through a package script, a node wrapper, or absent from the chain never entered the loop, so the gate stayed green while missing the defect it claims to block. They now walk each source-published package's own tsconfigs; the tsgo rule still follows the chain, since that rule genuinely is a claim about what the chain runs. The excluded rule matched an exclude entry only when it named a shipped file exactly, so `src`, `src/**` or `src/**/*.tsrx` could drop packed source without tripping it. Exclude entries are now translated into path predicates following tsc's own wildcard shape. The allowlist grows from 100 to 112. All twelve additions are node-types-in-validation-tsconfig entries that chain-only discovery could not see, including the four Bugbot named. The previous number was not the real debt, only the part the gate could reach. * fix: stop the spec matcher spanning directories on a wildcard segment Third Bugbot finding, confirmed. The trailing `($|/)` was appended to every pattern, so a wildcard final segment behaved like a directory prefix: `src/*` matched `src/a/b/deep.ts` and `*` matched `src/a/b.ts`, where tsc's `*` and `?` do not cross `/`. Only a literal final segment, or `**` whose `.*` already spans, keeps the directory suffix now. Totals are unchanged at 112; no current entry depended on the over-match.
…n and head priority order (octanejs#742) * fix: close the last Float engine gaps — fallback-hoistable suppression and head priority order Fallback hoistables are now suppressed transitively on the server: a title/meta/link authored inside a pending boundary's fallback never reaches the streamed head, including from a completed boundary nested inside that fallback — the fallback is discarded at reveal, but a streamed head line is permanent. Float resources and hints from fallbacks stay registered (page-global; React allows fallback preloads). Priority hoistables now lead the server head fold: meta charSet first (parsers only honor a charset within the first 1024 bytes), then meta name="viewport", then everything else in discovery order — Fizz parity. The new HeadBuffer buckets join both suspense-replay snapshot/rewind sites. Also flips the final actionable evidence cases: identifierPrefix root option, the three external-store compatibility cases, and the two engine-gap cases above. ReactDOMFloat-test.js planned drops to 3 (warning families only); whole-ledger planned 1,928 -> 1,922. Co-Authored-By: Claude Fable 5 <[email protected]> * fix: carry the fallback hoist depth through the ambient snapshot FALLBACK_HOIST_DEPTH is balanced by withPendingArm's finally within every synchronous pass, so no interleave point can observe a non-zero value today — but Ambient's contract is that EVERYTHING a pass touches is saved and restored, and an unsaved global is a landmine for any future pass that yields mid-arm. (Bugbot review finding.) Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
…ejs#743) pnpm typecheck:files failed on any edited swr test file (untyped devtools Window globals, untyped .tsrx fixture props, Middleware/Cache contract violations) while repo-wide typecheck never checks packages/swr/tests. Add a tests-scoped tsconfig + tests-local Window d.ts (nothing ships: the tarball is src-only), give the differential lane its own tsconfig so the ambient augmentation cannot un-use the vendored upstream's @ts-expect-error, add types:["node"] to the tsgo-checked conditions lanes, and fix the test-side type errors within public contracts. Co-authored-by: Claude Fable 5 <[email protected]>
…nejs#745) One component may split its scoped CSS across several <style> blocks — compile.js rebases every sheet onto the first block's canonical hash, and tests/_fixtures/return-style.tsrx proves it through mount, SSR, and hydration. @tsrx/core's shared type-only JSX transform instead threw "TSRX fragments can only have one style tag", and tsrx-tsc's fallback then presented the raw source as the virtual TSX, so every CSS brace surfaced as TS1381/TS1005 parse errors and the syntactic abort hid the rest of the program's diagnostics. Patch @tsrx/core 0.1.56 (pnpm patch) so the TYPE-ONLY path accepts multiple sheets and rebases them onto the first sheet's hash; runtime transforms keep the throw, so @tsrx/react's differential compile is unchanged. Add a volar regression test that fails with the original throw on unpatched core, type the fixture's props param, and stop the typecheck-files walker from descending into hidden directories (the differential rig's .react-cache compiled output was entering sweeps as JS roots and flipping allowJs). Co-authored-by: Claude Fable 5 <[email protected]>
…ation (octanejs#748) * perf: bound the Element PAPI floor for per-row main-thread materialization Add a speed-of-light probe that materializes the exact 10,000-row table shape with a bare public Element PAPI loop in the same main-thread realm as the Lynx receiver, interleaved AB/BA with octane control/profile create cells, and record the measured floor: - papi_element_creation is 99.0% platform floor (collapsible 0.5% of the create wall) - mt_apply_other is 84.7% floor-equivalent (collapsible 4.6%) - chunked vs single flush makes no difference All three sub-owner candidates from the roadmap fail the >=10% owner gate for per-element MTS machinery on the web harness. * fix(bench): isolate Lynx create profile samples --------- Co-authored-by: Dominic Gannaway <[email protected]>
…ejs#749) * perf: bound the Element PAPI floor for per-row main-thread materialization Add a speed-of-light probe that materializes the exact 10,000-row table shape with a bare public Element PAPI loop in the same main-thread realm as the Lynx receiver, interleaved AB/BA with octane control/profile create cells, and record the measured floor: - papi_element_creation is 99.0% platform floor (collapsible 0.5% of the create wall) - mt_apply_other is 84.7% floor-equivalent (collapsible 4.6%) - chunked vs single flush makes no difference All three sub-owner candidates from the roadmap fail the >=10% owner gate for per-element MTS machinery on the web harness. * perf: re-arm compact acknowledgements after certified teardown A compact first mount could only engage once per root: the main thread kept implicitInitialGenerations set forever and the background client refused further compact acknowledgements while retired segment metadata existed, so every create after a clear republished a full per-host handle delta - 17.4 MB of reverse traffic, ~600 ms of main-thread wall, and eager background materialization of all 70k handle entries on the shared 10k-row table. The public benchmark's warmed-page protocol measures exactly this path. - reset implicit generation bookkeeping when a certified dense teardown leaves every surviving record's generation stored - gate compact eligibility on a fresh-id ratchet (maxExplicitId) so implicit generation-one segments can never cover a reused id and remounts keep bumping generations on the explicit path - retire background compact metadata when its last live host code is removed, restoring it on rollback Create-after-clear acknowledgement: 17,330,831 B -> 719 B; warmed-page create@10k wall median 2,028 -> 1,511 ms on the same host with fresh cells unchanged. Adds bts-profile.mjs (background/page attribution with wire deltas, fresh vs warmed-protocol cells) and its measured results. --------- Co-authored-by: Dominic Gannaway <[email protected]>
…ctanejs#732) * fix: validate published TSRX source with a consumer-shaped typecheck Packages that ship .tsrx were typechecked by tsgo, which drops those files from the program entirely. Their published source was therefore never checked at all. Bindings publish raw source and point exports at it, so every one of those errors is visible to a consumer. - Generate canonical consumer projects from the same tsconfig the CLI scaffolds, with a drift check, so what is validated cannot diverge from what users actually compile against. - Move the .tsrx-publishing projects that already pass onto tsrx-tsc. - Add a no-@types/node lane to the packed-tarball canary. The existing lane sets types: ["node"], so it cannot see `process` references in published source, which a browser app does not resolve. - Add a guardrail over source-published packages with an enumerated allowlist of the remaining violations. A stale entry fails the check, so the list can only shrink. * refactor: cede packed-canary changes to octanejs#733 octanejs#733 rebuilds the packed TSRX consumer canary around automatic discovery of every binding that ships .tsrx, which is a better answer than the package list this branch was extending. Drop the overlapping edits to package-pack-canaries.mjs, check-package-packs.mjs and their test so the two branches stop touching the same files. What remains here is the part octanejs#733 does not cover: the root typecheck chain still runs tsgo over packages that ship .tsrx, so those files are absent from the program CI actually runs. * fix: widen the source-publication gate past the typecheck chain Two defects Cursor Bugbot found on this PR, both confirmed. The nodeTypes and excluded rules only saw projects discovered by parsing inline compiler invocations out of the root typecheck chain. A package validated through a package script, a node wrapper, or absent from the chain never entered the loop, so the gate stayed green while missing the defect it claims to block. They now walk each source-published package's own tsconfigs; the tsgo rule still follows the chain, since that rule genuinely is a claim about what the chain runs. The excluded rule matched an exclude entry only when it named a shipped file exactly, so `src`, `src/**` or `src/**/*.tsrx` could drop packed source without tripping it. Exclude entries are now translated into path predicates following tsc's own wildcard shape. The allowlist grows from 100 to 112. All twelve additions are node-types-in-validation-tsconfig entries that chain-only discovery could not see, including the four Bugbot named. The previous number was not the real debt, only the part the gate could reach. * fix: stop the spec matcher spanning directories on a wildcard segment Third Bugbot finding, confirmed. The trailing `($|/)` was appended to every pattern, so a wildcard final segment behaved like a directory prefix: `src/*` matched `src/a/b/deep.ts` and `*` matched `src/a/b.ts`, where tsc's `*` and `?` do not cross `/`. Only a literal final segment, or `**` whose `.*` already spans, keeps the directory suffix now. Totals are unchanged at 112; no current entry depended on the over-match. * fix: deny the consumer projects the Node globals a browser app lacks Fourth Bugbot finding, confirmed. The generated projects omitted `types` to mirror `octane init`, but the two omissions mean opposite things. A freshly scaffolded app has no `@types/*` installed at all; these projects run inside the monorepo, where an omitted `types` makes TypeScript auto-include every installed one. Published source was being handed the Node globals it must not see, which is the exact gap these projects exist to catch. Proved before and after with a probe compiled under the base config inside the repo: `process.env.NODE_ENV` resolved cleanly, and now reports TS2591. The packed-tarball consumer already pins `types` empty for the same reason, so this makes the in-repo projects agree with it.
…ctanejs#750) * perf: bound the Element PAPI floor for per-row main-thread materialization Add a speed-of-light probe that materializes the exact 10,000-row table shape with a bare public Element PAPI loop in the same main-thread realm as the Lynx receiver, interleaved AB/BA with octane control/profile create cells, and record the measured floor: - papi_element_creation is 99.0% platform floor (collapsible 0.5% of the create wall) - mt_apply_other is 84.7% floor-equivalent (collapsible 4.6%) - chunked vs single flush makes no difference All three sub-owner candidates from the roadmap fail the >=10% owner gate for per-element MTS machinery on the web harness. * perf: re-arm compact acknowledgements after certified teardown A compact first mount could only engage once per root: the main thread kept implicitInitialGenerations set forever and the background client refused further compact acknowledgements while retired segment metadata existed, so every create after a clear republished a full per-host handle delta - 17.4 MB of reverse traffic, ~600 ms of main-thread wall, and eager background materialization of all 70k handle entries on the shared 10k-row table. The public benchmark's warmed-page protocol measures exactly this path. - reset implicit generation bookkeeping when a certified dense teardown leaves every surviving record's generation stored - gate compact eligibility on a fresh-id ratchet (maxExplicitId) so implicit generation-one segments can never cover a reused id and remounts keep bumping generations on the explicit path - retire background compact metadata when its last live host code is removed, restoring it on rollback Create-after-clear acknowledgement: 17,330,831 B -> 719 B; warmed-page create@10k wall median 2,028 -> 1,511 ms on the same host with fresh cells unchanged. Adds bts-profile.mjs (background/page attribution with wire deltas, fresh vs warmed-protocol cells) and its measured results. * perf: tear down removed collapsed runs with one destroy-run command Clearing a 10k-row keyed table shipped a 100,000-command teardown stream (3.5 MB), acknowledged it with 70,000 tombstone deltas (2.9 MB), expanded every removed collapsed row into seven logical records just to enumerate those commands, and grew both threads' generation tables by 70,000 entries per cycle. The universal renderer now advertises a teardownRuns driver capability: a removed subtree that is still a collapsed program-run instance with implicit contiguous ids skips expansion and contributes to one destroy-run command per contiguous range. The Lynx binding negotiates the capability, re-enters the certified teardown fast path by expanding the command against its dense record store (with an accepted-records fallback and a general-loop path for partial ranges), acknowledges a full-run teardown with a single remove-run delta, and records one sorted retired-range tombstone per side instead of 70,000 map entries. Clear command stream 3,514,556 B -> ~370 B; clear acknowledgement 2,929,786 B -> ~813 B; compact create acknowledgements survive the cycle. Reused ranges keep bumping generations; emitter-, host-, and client-side regression tests were observed red before the change. * fix(lynx): honor retired run generations --------- Co-authored-by: Leonidas <[email protected]> Co-authored-by: Dominic Gannaway <[email protected]>
…s#751) * perf(lynx): skip prop-patch planning for hosts with no main-thread ownership First-tree capture re-plans every painted host's props, but only to recover what the main thread should own: a `main-thread:` event handler or `main-thread:ref`. Those are the only two ways to declare it and both carry the `main-thread:` prefix, so a host without one can be answered by a prop-name test rather than a full patch plan. The props themselves were already planned and applied when the tree was built; this call rediscovers nothing else. The surrounding checks are unchanged, including the one that matters when the plan is skipped: a host that never asked for main-thread ownership must still have none mounted. This sits on the first-paint path. Capture runs after the page is published to the host, so every millisecond it spends is paint delay — the host-boundary instrument in benchmarks/lynx-table measures that window at 16.7-20.1% of FCP across 1k/10k/30k rows. In the benchmark's 10,000-row first screen no host declares a `main-thread:` prop, so all 70,041 skip planning and the capture-time planning cost falls from a 58.3 ms median to 28.8 ms on the same instrument. End to end that is about 1.7% of first paint, below what the harness resolves on a 4-CPU host, so no wall-clock claim is made for it. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UMisRkW6cGfodXwpy4kxYS * perf(lynx): describe the first tree after the first paint, not before it Capturing the first tree runs after the page is already published to the host, so everything it does sits between the tree reaching the DOM and the browser painting it. The host-boundary instrument measures that window at 16.7-20.1% of FCP across 1k/10k/30k rows. Most of it is not validation, it is allocation: turning the captured tree into the clone-safe description the background clones when it adopts. Nothing before adoption reads that description, so it now builds on first read. What stays eager is what the contracts need: - validation and the native-ID read, because a host that cannot be captured has to fault the synchronous first screen while its caller still holds the source to retry cleanup against; and - the event token map, because a tap on the painted tree resolves through it long before the background adopts. The description therefore reads only retained record fields, which is why `firstScreenSnapshot()` still answers while unmount cleanup retries rather than describing a container mid-teardown. Measured on the lynx-table 10,000-row first screen, paired A/B with both bundles built side by side and alternating order, n=8: the post-publication window falls from a 217 ms median to 163 ms with every pair improving, and FCP@10k from 1,576 ms to 1,483 ms (paired median -85 ms). Deliberately breaking the description turns 14 tests red across first-screen, host-driver, and milestone-8-integration, so both read orders — first read at adoption, and first read from the public accessor before it — are already covered. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UMisRkW6cGfodXwpy4kxYS --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Dominic Gannaway <[email protected]>
…ual TSX (octanejs#746) * fix(compiler): keep plain overload signatures non-ambient in the virtual TSX esrap <2.3.2 printed `declare` on every bodyless function declaration, so a plain overload pair next to its implementation typechecked as TS2384 in the editor and under tsrx-tsc, on source that compiles and runs fine. Raise the esrap floor to ^2.3.2, which guards the modifier on the authored flag, and pin the contract with a volar regression test that runs the real TypeScript checker over the virtual TSX. Fixes octanejs#736 Co-authored-by: Cursor <[email protected]> * chore: refresh generated lockfile hashes * test(syntax-highlighter): stabilize async loading parity --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: Dominic Gannaway <[email protected]>
* fix: improve React diagnostic warning parity * fix: preserve stylesheet preloads after inline styles
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix: complete remaining React diagnostic parity * fix: address host diagnostic review feedback * fix: validate registered list scopes and SVG attributes
* fix(visx): type SVG props with octane's attribute bag @octanejs/visx ships raw source and points its exports at it, so a consumer's TypeScript program compiles every reachable module. React's SVGProps is not assignable to octane's intrinsic element bag — handlers receive native DOM events, className composes clsx-style, class/for are accepted natively, and children is a renderable — so every component that spread it produced errors in a consumer's program. Forty-two modules move from React's SVGProps to Octane.SVGProps, following the pattern already established in grid/, group/, responsive/, and shape/. Alongside that: capitalized JSX aliases replace createElement where a React FunctionComponent | ComponentClass union reached octane's createElement, which takes a ComponentBody and cannot call a constructor; a real declaration for d3-interpolate-path; and a render-prop implementation of TooltipPositionContext.Consumer, which octane deliberately lacks. In-src diagnostics under `tsrx-tsc -p packages/visx/tsconfig.json` drop from 158 to 90, measured by redirecting to a file: piping that command truncates its output and undercounts. The conversion left 24 parity assertions failing. Probing every module export found 55 diverging components, in categories the existing flat attribute-bag carve-out covers only 20 of. The reason the rest fell through is that an attribute bag reaches a component's surface in three shapes, and the normalization only handled the first: spread flat into the props, held by an object-typed member (tickLabelProps, backgroundProps, lineProps, glyphStyle), or carried by a RENDER PROP'S ARGUMENT — Axis passes AxisRendererProps to children, and the normalization kept a function's argument exact while collapsing only its return. It now recurses through all three, treating a member as a bag when it has a className key. Recursion only ever collapses more of the same divergence on both sides, so it cannot turn a passing comparison into a failing one. That keeps real member-by-member checking where a key-only pin would otherwise have been the fallback. A regression test confirms the reach: retyping AxisRendererProps.horizontal fails nine assertions that a key-for-key pin would not have noticed at all. Only four surfaces stay pinned key-for-key — SplitLinePath, whose styles members keep className a plain string so it can forward to LinePath; the two area stacks, whose children are ReactElement<AreaSeriesProps>, putting the bag inside a React element type rather than a renderable hole; and Drag, whose divergence is the native event union rather than a bag. Twenty-three surfaces (the clip-paths, gradients, markers, and Threshold) additionally take an optional id where upstream requires one, because they generate a fallback with useStableId. That predates this work and is exactly the one-directional relationship the module-level Extends asserts already describe, so a new AttributeBagNormalizedPropsExtends keeps that direction with the bag divergences collapsed. BrushProps.selectedBoxStyle holds a bag rather than spreading one, and is spelled out on the upstream side like renderBrushHandle already was. OctaneOnlyAttributeKeys was also incomplete: octane's bags add exactly class, for, hidden, and tabindex, and drop nothing. Those extras are optional, so the member-by-member comparisons tolerate them, but a key-for-key pin cannot, so PropsShapeEqual excludes the full set. _Network drops from Equal to Extends like its peers. It held as Equal only because tsgo reads the generated .tsrx.d.ts, which annotates returns as React's JSX.Element; compiling the published .tsrx sources, which is what a consumer's program does, shows Graph, Links, and Nodes returning octane's nominal element type. RenderableNormalizedPropsEqual is now unused and is removed. This is partial progress on strict consumer type-checking for visx, not its completion. 90 in-src diagnostics remain, 7 of them the dropped `let __spread_props` compiler defect tracked as octane issue 737, so the package keeps its SOURCE_PUBLICATION_DEBT entry and continues to validate through tsgo. Co-authored-by: Claude Opus 5 <[email protected]> * test(swr): stabilize local mutation parity race * test(swr): hold shared request through validation --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ry (octanejs#761) The componentSlotLite eligibility pre-pass only inspected Identifier callees, so a component whose only hook was member-form (obj.useThing()) looked hookless. It was mounted through the lite path with no block of its own, its hook cells and forceUpdate belonged to the parent, and updating that hook re-rendered the parent and every sibling. The slot-injection pass already treats these calls as hooks. Apply the same use[A-Z] convention to the member callee's property name in the eligibility walk. It fails closed: matching only forfeits the lite path, never correctness.
…osition (octanejs#758) A host element carrying `ref` plus a JSX spread lowers to a generated `let X = __normalize_spread_props_for_ref_attr(bag)` that rides on the element's metadata for a later pass to hoist. Only the render-block statement builder and the native-directive path hoist it, so the same element in plain-JS expression position — a ternary arm, a concise arrow body, a declarator init, a callback body, an attribute value, an array element, or plain JS nested in a native template — kept the references and lost the declaration. Editors and tsrx-tsc then reported TS2304 on source the runtime compiles and runs correctly. Such an element also reached both lowering sites, and the lowering is not idempotent: the second pass read the composed `ref={[authored, X.ref]}` array as an authored ref and composed it again, emitting a second binding and a ref nested one level deeper than the runtime ever produces. Patch @tsrx/core to wrap residual declarations in the IIFE the native-directive path already uses, and to mark an element whose host ref/spread has been lowered so the dispatch does not lower it twice. Both are scoped to the type-only path, so runtime emit for the other platforms sharing the transform is unchanged. Cover the position matrix in the volar suite, and add a repo-wide scan so no .tsrx file can reference a generated name it never declares. Packages typechecked through tsgo cannot catch this class: tsgo does not read .tsrx. The regenerated lockfile hash in the parity audits and the evals manifest follows from the new patch hash.
* feat: add @octanejs/tanstack-db binding Port the Octane live-query bindings for @tanstack/db (TanStack/db PR octanejs#1699, `packages/octane-db`, still open) into the monorepo as `@octanejs/tanstack-db`. - Re-exports @tanstack/[email protected] unchanged; adapts the live-query surface (useLiveQuery, useLiveInfiniteQuery, useLiveSuspenseQuery, useLiveQueryEffect, usePacedMutations) onto Octane hooks. Source imports only public @tanstack/db. - Package shape matches sibling bindings: exports point at src/ (no dist build), self-contained tsconfig (jsxImportSource octane), status.json. - Tests decoupled from the db monorepo: internal src imports rewritten to @tanstack/db; test helpers, the conformance suite, and db's expression evaluator vendored under tests/db-fixtures/ (pinned to 0.6.17, test-only) so the infinite-query tests can interpret the where/cursor IR db generates. - Wired into vitest.config.js and the root typecheck script; registered in website/src/content/bindings.json; changeset added. Generated inventories (docs/packages.md, docs/bindings-status.md, CLI data, react-parity lockfile hashes) are intentionally omitted from this diff and should be regenerated with `pnpm sync` at merge time. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(tanstack-db): move @octanejs/tanstack-db to TanStack DB 0.7.0 and fix live-query blockers Rebinds the binding to the TanStack DB 0.7.0 adapter architecture and fixes the PR review's P1 blockers at the source: - Suspense suspends via Octane `use(thenable)` instead of `throw promise` (Octane Suspense only recognizes the use() sentinel). Proven by an async fallback regression test. - useLiveQuery/useLiveSuspenseQuery rebuilt on db's shared createLiveQueryObserver (db octanejs#1642) so status-only transitions (error/cleaned-up) update isError/ isCleanedUp. - useLiveInfiniteQuery rebuilt on the coordinated createLiveQueryWindowController (db octanejs#1675): window leases stop two hooks on one collection truncating each other (regression test), and a failed page load rolls back and surfaces snapshot.error with a clean retry. - useLiveQueryEffect parses deps + the compiler slot together from ...rest, so no-deps usage keeps its call-site slot. - Conformance suite: drop order-only-move from universal expected-fail (db octanejs#1669 fixed the contract); un-skip the missing-orderBy test (surfaced synchronously during render via getWindow()); record StrictMode double-invoke as not-applicable. Committed-test-marker gate passes. - Bump @tanstack/db ^0.6.17 -> ^0.7.0; re-pin vendored db-internal fixtures; vendor the @tanstack/[email protected] adapter source under upstream/ with SHA256SUMS; add UPSTREAM.md pin + crosswalk; refresh status.json/README. Octane-adaptation: the subscribe wrappers defer an initial onStoreChange to a microtask because Octane's useSyncExternalStore re-checks the snapshot before (not after) subscribe; pinned by the eager-onstorechange test. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(tanstack-db): call use() unconditionally in useLiveSuspenseQuery; document startSync divergence Addresses two Cursor Bugbot findings on the 0.7.0 remediation commit. - [High] useLiveSuspenseQuery called use() only on the loading/idle path and skipped it once ready. Octane keys use(thenable) by dynamic call-order index (runtime __thenableIdx), not by compiler slot, so a ready hook that skips its use() shifts the thenable index of a sibling use()/second useLiveSuspenseQuery in the same component. On the replay after the first query resolves, the second hook read the first's fulfilled thenable (resume-replay leniency path) and stopped suspending, surfacing its still-loading collection as ready. Fix: call use() unconditionally — exactly once per render — handing it an already-resolved sentinel on the ready/stale paths so the call-order index stays stable and no suspend occurs. New regression test drives two independently gated collections and asserts the later sibling stays suspended while the earlier one is ready (fails pre-fix with `a:3|b:0`). - [Medium] Documented the useLiveInfiniteQuery `startSync: true` divergence in status.json. The query-function collection is created with the first-page window already applied (.limit(pageSize + 1).offset(0)), so eager sync fetches exactly the first page — never a wider subset — before the window controller grows it; only the fetch-start timing differs from upstream's post-commit start. (Bugbot's third finding, "stale pages after deps change", was against the pre-remediation commit and no longer applies: the controller rewrite computes page count synchronously during render.) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(tanstack-db): pre-tag the useLiveSuspenseQuery ready-path sentinel as fulfilled Follow-up to the unconditional-use() change. The shared `SETTLED` thenable handed to `use()` on the non-loading paths was a bare `Promise.resolve()`. Octane's `use()` tags an untagged thenable `'pending'` synchronously (its fulfillment callback runs a microtask later), so the first `use(SETTLED)` on the ready path suspended and flashed the Suspense fallback even though data was already ready. Give `SETTLED` the React 19 `cache()` settled shape (`status: 'fulfilled'`) so `trackThenable` leaves it untouched and `use()` returns synchronously without suspending. New regression test preloads a collection to `ready` before mount so the first render takes the ready path, and asserts the fallback never renders (fails pre-fix: first commit shows `Loading...` instead of `ready:3`). Reported by Cursor Bugbot on the previous commit. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(tanstack-db): defer infinite query sync until commit * fix: repair tanstack db CI integration * fix: complete tanstack db CI integration --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> Co-authored-by: Dominic Gannaway <[email protected]>
* perf(lynx): streamline dense clear teardown * chore(bench): archive issue 57 raw evidence
Co-authored-by: Dominic Gannaway <[email protected]>
* feat: port Ink to Octane * Address PR review feedback (octanejs#702) - strip compiler slot symbols from omitted Ink hook options - cover all four affected hooks through a compiled fixture * fix(ink): clean up Yoga measure functions * fix(ink): satisfy CI package checks * test(octane): register Ink manual hook slots --------- Co-authored-by: Dominic Gannaway <[email protected]>
* feat(opentui): add universal renderer binding * fix(opentui): complete binding verification * test(octane): register OpenTUI manual hook slots * docs: list OpenTUI in LLM binding guide * Address PR review feedback (octanejs#852) - restore deferred image sources after host recreation - cover slot fallback identity across plugin add, reorder, and removal * fix(opentui): preserve replace slot fallback --------- Co-authored-by: Dominic Gannaway <[email protected]>
* feat(formisch): add Octane bindings Port the Formisch React adapter onto Octane while vendoring its unpublished core and methods. Add differential, hydration, SSR, package, type, and playground coverage. * fix(formisch): preserve native form prop types * Refresh lockfile and parity metadata after main merge Co-authored-by: Cursor <[email protected]> * Merge origin/main into feat/formisch-binding Co-authored-by: Cursor <[email protected]> * fix(formisch): stop exporting internal useSignals hook Keep useSignals package-internal like upstream React bindings and import it directly from the adapted parity test harness. Co-authored-by: Cursor <[email protected]> * test(formisch): mark React parity projects in vitest config Own the pristine/adapted Formisch lanes under react-parity, and scope the mixed formisch project's parity include to upstream adapted cases so ordinary shards keep the local contracts. Co-authored-by: Cursor <[email protected]> * test(formisch): drive differential parity from the shared .tsrx fixture Compile the same differential scenario through @tsrx/react with the package import rewritten to @formisch/react, so Octane and React cannot drift apart in a hand-authored twin component. Co-authored-by: Cursor <[email protected]> * Refresh lockfile and parity metadata after main merge Co-authored-by: Cursor <[email protected]> * fix(formisch): preload differential oracle * fix(formisch): restore llms binding entry --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix: memoize snapshot method calls in Strong mode * fix: align Strong mode validation and docs --------- Co-authored-by: Dominic Gannaway <[email protected]>
Merges 122 upstream commits, 30 of them perf, per issue #227. The merge base 6079a68 is a direct ancestor of d5175ca, so this only conflicts where the fork has edited the same regions. d5175ca rather than the [email protected] tag: the tag is six commits behind it, and one of the six is 7b45274 (drain reentrant commits linearly, octanejs#860) — the largest named item in #227's gap analysis. 21 files conflicted; every one is resolved by keeping both intents rather than taking a side. The readiness ladder renumbers our deferred-template rung above upstream's new teardown rung and announces at the top, which is cumulative. Capture's host-prop planning keeps both the sticky page-level flag and upstream's per-record predicate. Upstream's first-screen row compaction (octanejs#765) is carried onto the lazily built command batch, sharing one template predicate with the always-paid listener walk so the two paths cannot disagree. Additive upstream packages (formisch, opentui, aria, wouter, the Valdi writer target) come in whole: #227 asks for the full sync rather than a partial one. packages/lynx/src/compiler/ is untouched on both sides, so no backend signature bump is owed. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019RsC3U39kUuLKajZANeTVy
The merge itself is `5f770ce95`; this is what it takes to make both sides work in one tree. Four defects, each fixed where the behavior lives. Upstream's first-screen row compaction reads the plan tree to build a program. The `target: 'lynx'` backend has no plan tree — an eligible template lowers to straight-line `env.h/p/e/t/s/a` calls — so reading the plan compacted a row at `target: 'universal'` and declined the identical row at `target: 'lynx'`, which made the encoding observable in the staged batch. It is recovered instead by running the create function once against a recording env, with a probe standing in for each slot value. The probe refuses to be a primitive, so a create function that does anything but pass its values through aborts the derivation rather than compiling a program that is wrong for every row after the first. A deferred run's instances are declared, never created, so the driver holds nothing to derive their teardown from and refuses the `destroy-run` naming them. `deferred` now reaches the committed record, because teardown happens commits later and that is the other place that has to know. A run ships no per-host `destroy`, so `acceptWorkletBatch` never released the executions a removed row installed. It now handles `destroy-run` over the range the command names, walking whichever of the range and the owner map is shorter. Rspack structured-clones loader options into its worker pool, and `mainThreadProgramBackend` is a pair of live functions, so such a build takes the serial loader rather than failing at the clone. That left the bundle gate comparing a worker build against a serial one, and the pool reaches the minifier with a different module order: 81 differing regions in the background program, every one a pure rename. Rather than loosen the byte-identity oracle, `@octanejs/rspeedy-plugin` forwards `parallel` — a gap of its own — and the gate's three arms pin it so they differ only in what they measure. Also re-applies upstream's side of `main-renderer.ts` and `renderers.js`, which the merge resolution dropped whole, and de-duplicates an auto-merged import. A tree-wide audit against the merge base confirms nothing else was lost: of the four files carrying our content where upstream also changed the file, three are these and the fourth needs nothing — our `0d3297300` already contains every line of upstream's octanejs#751. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019RsC3U39kUuLKajZANeTVy
It builds a real TypeScript program over eight fixture modules and takes about 5.6 s, where every other program-building test in the file finishes under two. That puts it on top of Vitest's 5 s default, so it fails by arriving rather than by being wrong, and only on a machine slow enough to notice. The budget is now the test's own cost stated at the site. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019RsC3U39kUuLKajZANeTVy
This was referenced Aug 28, 2026
Carries the gate-validated resolution: sync-side react-parity audit records restamped against the merged lockfile, unioned .prettierignore, and the semantic merge of collectFirstScreenEvents keeping the train's merged-order program announcement while threading the sync's component-scope/native-list flags and template-range branch. Includes the gate review's host-driver fixes (offset-keyed removed check, loop-appended run-teardown expansion) with their regression test. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
Huxpro
changed the base branch from
perf/lynx-program-dense-range-run
to
new-lynx
August 29, 2026 03:06
Huxpro
marked this pull request as ready for review
August 29, 2026 03:06
Huxpro
added a commit
that referenced
this pull request
Aug 29, 2026
Clean catch-up after #229 landed; the gate tree already carried both sides. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YHfFsy9CLaRovTFH8pTGyY
This was referenced Aug 29, 2026
Open
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Merges upstream
octanejs/octane@d5175ca8(v0.1.47) intonew-lynxas oneslice, per #227. Our merge base
6079a6804is a direct ancestor of that commit,so this is a fast-forwardable history that only conflicts where the fork has
edited the same regions — 122 upstream commits, 30 of them
perf.d5175ca8rather than the bare[email protected]tag: the tag is six commitsbehind it, and one of the six is
7b45274a6 perf(lynx): drain reentrant commits linearly (#860)— the single largest named item in #227's own gap analysis.Feature packages upstream added since the fork (
formisch,opentui,aria,wouter, the Valdi writer target, and the rest) come in whole. #227 asks forthat explicitly: they are additive, and skipping them to shrink the diff only
makes the next sync worse.
Where the two sides actually collide
21 files conflicted. Every one is resolved by keeping both intents — our
semantics, upstream's mechanics — never by taking a side wholesale.
packages/lynx/src/core/protocol.ts— the readiness ladder. Upstream addedLYNX_TEARDOWN_RUN_READY_REQUEST_BASE = 2**43, which is the rung ourLYNX_DEFERRED_TEMPLATE_RUN_READY_REQUEST_BASEhad taken. Ours is renumbered upto
2**44; both capability bits (deferredTemplateRuns,teardownRuns) andboth validation blocks are kept. The ladder is cumulative — announcing at a rung
declares readiness for every rung below it — so
transport.tsannouncing at thenew top rung subsumes the teardown rung rather than skipping it, and says so in
a comment at the site.
packages/lynx/src/main-renderer.ts— the largest integration, and the onethe merge commit got wrong. The conflict resolution took our side whole, which
left the merge commit byte-identical to
2264d78fefor this file and droppedupstream's entire octanejs#765 hunk set. The follow-up commit re-applies it by hand;
what follows describes the result of both. Upstream's
octanejs#765 (
perf(lynx): compact first-screen component rows) compiles an unkeyedlynx-component@forrow into aUniversalHostTemplateProgramand emits onemount-template-rangecommand in place of the row's per-node create / event /insert commands. That is an optimization of the staged command batch — which
on this branch is the fallback path, built lazily on first read of
result.batch, and never built at all for a screen the direct applier accepts.So it is not a competitor to the D-train's compiled-program path and it is
carried in full, with one change: both paths now agree about which ranges are
templates through a single shared predicate,
firstScreenTemplateRange. Thewalk that always runs (
collectFirstScreenEvents, which is where listeneridentity is assigned) records each template's envelope offset in a new
eventsAtfield and asserts the row and its compiled program bind the samenumber of listeners; the lazy batch builder then skips those runs by cursor.
Upstream numbered listeners a second time inside its own
stageEventstreewalk — that is the one part of its staging this cannot take, because the
envelope is authoritative for listener identity here precisely so a page cannot
be handed two answers about it.
stageEventsis rewritten to re-project fromthe envelope instead.
packages/lynx/src/core/host-driver.ts— capture's host-prop planning.Upstream reached our conclusion one record at a time: a host declaring no
main-thread:prop can own neither a main-thread event nor a main-thread ref,so planning it rediscovers an empty answer. The two facts compose rather than
replace each other, and both are kept: the sticky
state.hasMainThreadPropsflag skips the whole page when nothing on it is main-thread-owned, and
upstream's per-record
hasLynxMainThreadProppredicate still pays on a pagewhere one host declares such a prop and the rest do not — which the sticky flag
alone cannot distinguish.
packages/lynx/src/core/client-driver.ts,universal-core.ts,profiling.ts,first-screen.ts,main-thread.ts,transport.ts— bothsides' fields, initializers, getters, and counters kept side by side. The one
composed line is capability negotiation, where upstream reads three flags inline
and we read the same three through
lynxLazyPublicInstancesNegotiatedinprotocol.ts, so a core that never builds a driver can ask the same question.The answer is unchanged.
packages/octane/src/compiler/{compile,bundler,renderers}.js,packages/rspack-plugin-octane/src/shared.js,packages/octane/package.json—mechanical: upstream's new
valditarget joins ourisUniversalFamilyTargetpredicate in the target unions;
cssModuleConstantsjoinsPLUGIN_OPTION_KEYSbeside ourmainThreadProgramBackendspecialization; thepackage's
exportskeeps our./universal/template-programentry and takesupstream's object-form
./compilerentry, in bothexportsandpublishConfig.docs/packages.mdaccordingly regenerates tooctane 0.1.47with 26 exports rather than upstream's 25.
benchmarks/lynx-table/**— the stage harness. Upstream's extraction ofrealmSnapshots/resetProfilesintostages/profile-realms.mjsis taken andthe D-train's extra counters (
rowRenders,bgPrepareMs,bgPrepares,reconcileVisits) moved into it; the FCP predicate inweb/driver-client.mjsis composed three ways so
targetRows, the content-count floor, and a custompredicate all still resolve, and both resolutions carry
papiAtFcpas well asfinalRows/tableOracle.Nothing else was dropped, and that is checked rather than asserted
A conflict resolved to one side is invisible afterwards: the merge commit simply
contains that side's bytes. So the whole tree is audited for it — for every path
upstream changed between the merge base and
d5175ca8, compare the mergecommit's blob against ours and theirs. Four files carry our content where
upstream also changed the file:
packages/lynx/src/main-renderer.tspackages/octane/src/compiler/renderers.jsvaldijoins the target union and owns its ownserver: 'render'message.packages/lynx/tests/first-screen.test.tspackages/lynx/src/core/first-screen.ts0d3297300already contains all 34 of its added lines verbatim — the two sides converged.Post-merge integration
Four defects only appear once both sides are in the same tree. Each is fixed in
the package that owns the behavior, with the regression there.
A compacted row must not be able to see which encoding produced it. octanejs#765
compacts a first-screen row by reading the plan — walking
{kind:'host'}nodes into program nodes. The
target: 'lynx'backend has no such tree: aneligible host-only template lowers to straight-line
env.h/p/e/t/s/acalls(#163 L1), which is the point of that encoding. Reading the plan therefore
compacts a row at
target: 'universal'and declines the identical row attarget: 'lynx'— making the encoding observable in the staged batch, which#63 promised it never is. Both
lynx-target-*suites caught it asexpected 33 to be 15.The fix recovers the shape the only way it exists there: run the create function
once against a recording env, with a probe standing in for each slot value.
Nothing in the ABI promises the create function passes
values[i]straightthrough, so the probe refuses to be a primitive —
Symbol.toPrimitive,toStringandvalueOfall throw — and a value that had been concatenated orcoerced on the way makes the derivation abort instead of compiling a program
that is confidently wrong for every row after the first. Both encodings now
stage the same 15 commands.
A deferred run retires through its own path, not
destroy-run. Upstream'scollapsed-run teardown names hosts by contiguous id and asks the driver to
derive their teardown from the program it holds. For a declared instance
(#163) the driver holds nothing, so the command named 90 hosts against 53
records and the driver refused it.
deferredalready flowed from the blueprintinto staging; it now also reaches the committed record, because teardown happens
commits later and that is the other place that has to know.
A run's worklet executions have to be released when the run leaves.
acceptWorkletBatchtracks execution ownership per host and released it ondestroy. A run ships no per-hostdestroy, so every callback a removed rowinstalled outlived the row. It now handles
destroy-runover the contiguousrange the command names, walking whichever of the range and the owner map is
shorter so the fix does not reintroduce the per-host loop the command exists to
remove.
The bundle gate was comparing two variables at once. Upstream's octanejs#766 added a
parallel loader, and Rspack structured-clones a loader's options into its worker
pool.
mainThreadProgramBackendis a pair of live functions, so the plugin nowfalls back to the serial loader rather than failing at the clone — asked via
structuredClonerather than by a list of option names to keep in sync. Thatmade
core-switch.mjs's third arm compile serially while its first two usedworkers, and the pool reaches the minifier with a different module order: 81
differing regions in the background program, all of them pure renames (a
3-cycle on the
e/n/r/tsuffixes2 → 9 → 3 → 2) plus the derived chunkhash. Zero semantic difference — but a sha256 over minified text cannot say so,
and the gate reported #163's byte-identity promise as broken.
The gate is not weakened to accommodate this; the arms are made comparable.
@octanejs/rspeedy-pluginnow forwardsparallelto@octanejs/rspack-plugin— a real gap of its own, since a Lynx build could not otherwise pin worker
compilation — and all three arms pin it, so they differ only in the variable
under test. The byte-identity oracle stays exact.
Upstream fixes this branch has made moot
#227 asks for these per hunk rather than a silent drop. Each is an upstream
optimization of code the D-train has since rewritten or removed, so there is
nothing left for it to optimize. None is a behavior difference.
EMPTY_MAIN_THREAD_EVENTSshared empty arrayObject.freeze(events)insidedescribed.pushdescribedentries are built once and never handed out unfrozen; the freeze is at the envelope.eventsByTokenmapdescribe/snapshotpair, which is upstream's own octanejs#751 — the two arrived at the same design and upstream's is kept.FirstScreenAttempt.hostCountfield + itsassignIdsincrementhostCountis now single-sourced fromcollectFirstScreenEvents, the walk the first screen always pays. A second counter cannot see a compiled program's hosts.visitHostsstageCreates, which must also skip template ranges.stageEventstree-walk listener numberingprepareLynxHostBatchnorprepared.apply()runs on a screen the direct applier paints, so the split moved into the framework asmarkFirstScreenPhase.__OCTANE_LYNX_PROF ??= { … }literals in probesNaNfor fields it omits; every probe goes throughlynxWireProfile()and a test pins that.destroyRunProfileFieldsper-field assertionsprofiling.tsrather than restating it.{ kind: 'slot', slot: 0 }wrapper plan around a one-component@forbodylynx-target-*suites''"kind": "slot"'premise guard no longer states what it meant. It assertsuniversalForinstead — the directive call is what says the fixture still mixes interpreted and compiled rows.No backend signature bump
#227 asks for one if anything under
packages/lynx/src/compiler/moves.Nothing does — on either side:
main-thread-backend-signature.test.tsstays pinned atlynx-main-thread-program/6.Validation
pnpm format:check— repo-wide, cleanpnpm typecheck— cleanpnpm test— 26,712 passed, 5 skipped, 4 failed across 7 files. Eachof the seven is named and accounted for below. None is caused by this
merge.
node benchmarks/lynx-bundle-size/core-switch.mjs— passes,with the three arms pinned to the same loader strategy (above).
pnpm syncran before the commit and leaves the tree clean.Every failing file, and why
Four fail identically at the base
2264d78fe— checked out and re-run thererather than assumed:
packages/octane/tests/browser/suspense-hydration/…test.ts[0, 0], expected[2, 9]packages/drei/tests/browser/upstream-e2e.browser.test.tswaitForFunction30 s timeoutpackages/monaco-editor/tests/browser/editor.browser.test.tspackages/rspeedy-plugin-octane/tests/native-demo.test.tsThree are 10 s
beforeAllhook timeouts that only appear under a loadedparallel run —
packages/octane/tests/react-hosted/web3-island.test.ts,packages/aria/tests/hydration.test.ts,packages/alien-signals/tests/hydration.test.ts. Run alone,alien-signals/hydrationfinishes: 16.51 s / 15.65 s at base against18.29 s / 18.64 s at head, with the hook body itself ~7.2 s at base and ~7.6 s
at head. The merge moves that hook by a few hundred milliseconds against a
budget already sitting three seconds from its ceiling; what crosses it is
contention. Deliberately not widened here — a budget that fails only under load
is a scheduling question for the whole run, and raising it across binding
packages inside a sync PR would hide the next real hydration slowdown.
One failure was introduced by the merge, and is fixed rather than excused:
packages/octane/tests/compiler/volar.test.ts— a file upstream adds in thismerge — timed out at 6.6 s against vitest's 5 s default. It fails
deterministically in isolation, so it is broken rather than contended: the test
builds a full TS program, which every other program-building test in the file
does in 0.4–1.7 s.
63652cfd6gives that one test a 30 s budget and touches noassertion. Green in the run above.
The #163/#215 regression surface
An earlier revision of this body claimed the whole surface runs unmodified.
That was wrong about one file; the precise position:
Four run byte-unmodified, verified with
git diff 5f770ce95..HEADandgit diff 2264d78fe..HEADover each — both empty:packages/lynx/tests/block-core-differential.test.tspackages/lynx/tests/block-core-update-differential.test.tspackages/lynx/tests/first-screen-program-updates.test.tspackages/lynx/tests/first-screen-program-text-updates.test.tspackages/lynx/tests/first-screen.test.tsis modified:+101 −8. Thatdiff is exactly the re-application of upstream's own side of the file, which
the merge commit had dropped — all 101 of upstream's added lines are present in
HEAD, checked line by line. Every one of them strengthens the surface rather
than relaxing it: a component-scoped
@forrow, reentrant dispatch through acomponent row, teardown when the row list empties, and a listener lookup
narrowed from "the first registration carrying a listener" to one matched by
name and node.
hostCount: 3 → 9andlogicalCount: 5 → 15are the fixturegrowing, not an assertion loosening. No assertion in any of the five was
relaxed to accommodate the merge.
The oracle: measured, and it does not vindicate the merge
#227's success test was the lynx-js-framework-benchmark web cohort re-measured
from a
BENCH_CORE=blockentry built on this head, against the 1.15×weighted-score gap PR 37 measured. That is now run, and reported in full on #227
with the raw data in lynx-js-framework-benchmark#39.
One physical run, formal repetition counts, three entries so that all three
ratios share a machine — the pre-sync
new-lynxhead07115d67PR 37 measured,upstream
d5175ca8, and this head:PR 37's 1.1524× sits inside the control's interval, so the gap reproduces. The
residual stays clear of parity; the change this merge made does not — its
interval spans 1.0. The gap is
createand nothing else:create@100001.652× → 1.663× and
create@10001.347× → 1.366×, both unmoved and bothcarrying the formula's largest weights. Every other cell is at or below
upstream, and
replace@1000(0.959× → 0.900×) is the one that moved outside itsinterval.
So the merge was worth doing on its own terms — a partial sync leaves the next
sync worse — but #227's hypothesis, that the weighted gap was the 122 commits we
lacked, is falsified by carrying all of them.
Risk / follow-ups
take first-tree capture off the first-paint path) turns outto be a convergence rather than an arrival: our
0d3297300already containsevery line of it. Verified line by line during the drop audit above, and the
carried task that was going to implement it is closed.
against our own post-fork code, looking for a
shift()in a loop, arepeated sort, or a growing-array drain of ours — is a separate slice, and the
oracle above says to aim it at the create path specifically.
run in the same browser,
octane-hux's firstcreate 1000on a fresh pagenever completes inside the benchmark harness's 120 s budget. Reproducible, and
octane-syncin the same slot completes the identical sequence. Notroot-caused — whatever this merge changed, it changed that too.
packages/lynxis red undertsc(
main-thread.tsTS2322on theadoptionunion) while green undertsgo,which is what
pnpm typecheckruns. That gate split predates the merge.Provenance
agent-authored)