Repository navigation
Version Packages - #2
Merged
Merged
Conversation
trueadm
added a commit
that referenced
this pull request
Jul 1, 2026
…geset Flip the react-parity-migration-plan Tier-4 intro, decision #2, and the P5 roadmap row from "planned / no mismatch detection" to implemented, summarizing the detect/patch/rebuild behavior, suppressHydrationWarning, and dev source-LOC. Add the `octane` changeset. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
trueadm
added a commit
that referenced
this pull request
Jul 25, 2026
…cover the boundary Addresses both Cursor Bugbot findings on #262 and adds the behavioral coverage the first commit was missing. **Bugbot #1 (high) — local callees bypassed the member veto.** `plainCalleeIsMemoizable` admitted any non-hook `Identifier` callee, but the contract it documented only covers module-scope immutable bindings. A local `const read = () => item.read()` — or a module helper `function sortIcon(h) { return h.getIsSorted(); }` — wraps the exact receiver hazard the change kept failing closed, and the inline hook-memo tier can hand a local a stable identity. A call is now admitted only when the callee is: - an imported binding (opaque module boundary, the one place this analysis trusts rather than proves — React Compiler assumes the same), or - a same-module `function` declaration that is never reassigned AND whose own body is a value projection, checked transitively with cycles failing closed. Component-local callees, unbound globals, and namespace members now fail closed. **Bugbot #2 (medium) — call sites ignored module helpers.** `autoMemoCallsitesSafe` still treated free same-module `function` helpers as opaque while every other classifier accepted them, so a parent that formatted through a helper blocked child call-site memoization. **Coverage.** Two new behavioral suites, 30 tests: `automemo-render-calls.test.ts` renders lists whose array identity and item objects never change while state moves behind an accessor — a wrongly memoized region freezes the output. It covers the member callee, a module helper wrapping one, the same two frames away, component-local arrow / stable-local / function declaration callees, a reassigned module function, and a live accessor in an ARGUMENT to an otherwise-admitted projection; the converse (module, transitive and imported projections stay reactive); hook callees; a context consumer under a memoizable region; and the newly unblocked call-site path. `deopt-child-key-aliasing.test.ts` covers the key encoding through a template HOLE — raw `createElement` host children reconcile through a different keying function, so the first attempt at these tests exercised the wrong path and could not fail. Asserts explicit keys never alias positional indices (both in one list), adversarial keys that resemble serialized wrapper paths, equal keys under different wrappers, keyed-fragment reorder, unkeyed wrappers staying positional, and mixed keyed/unkeyed lists. Both suites were validated against deliberately broken implementations: the pre-fix callee rule fails 5 of the 7 staleness cases, and dropping the key/index prefix, sharing a prefix, ignoring explicit keys, or dropping the wrapper path each fail 1-3 of the key cases. The restored implementation passes. chat-stream codegen is byte-identical to the build the benchmark numbers were measured on, so the reported figures still stand. Full suite: 1332 files / 12958 tests. Co-Authored-By: Claude Opus 5 <[email protected]>
domgan-oai
pushed a commit
that referenced
this pull request
Jul 25, 2026
…pt key serializer (#262) * perf(octane): memoize through plain-callee projections; skip deopt key serializer Two independent findings from a benchmark audit of the suites where Octane trailed the fine-grained frameworks. **autoMemo gave up on any call in a template.** `containsRenderCall` vetoed every CallExpression in render-value position, gating the component's `autoMemoSafe` flag (which propagates transitively to every ancestor), the per-item survivor short-circuit, and the whole-list region cache. One `{formatDate(d)}` therefore removed region memoization from a component and everything that rendered it. The veto exists for `header.column.getIsSorted()` — mutable state read through an object whose identity no dep witnesses — and that hazard is carried by the RECEIVER, so only the member-callee shape needs to fail closed. Hook-shaped callees (`use`, `use*`) stay disqualified: they own suspension, hook cells, context subscriptions, and effect lifecycles, which the blanket veto was incidentally covering. Same-module `function` helpers that are never reassigned are now accepted as memo-region witnesses, on the immutable-identity grounds already given to same-module components and `const X = memo(C)` walls. **De-opt child keys serialized on every render.** `scopedDeoptKey` built every child's reconciliation key with `JSON.stringify`, including at the unwrapped top level that every `{items.map(...)}` and every binding's output produces — 1,000 serialized strings per parent update on a 1,000-row list, even when all rows bailed. Nested wrapper paths keep the serialized encoding; both aliasing properties it provides are preserved by the 'k'/'i' prefixes. Paired benchmark runs, same machine, baseline = this branch's base: chat-stream type160 2.22ms -> 0.78ms (-65%) chat-stream appendHistory 1.56ms -> 0.72ms (-54%) chat-stream streamCoarse 0.78ms -> 0.46ms (-41%) chat-stream streamFine 1.58ms -> 0.96ms (-39%) chat-stream switchConv 4.08ms -> 3.56ms (-13%) type160 moves Octane from the slowest of the fast frameworks to ahead of Solid, Ripple, and Vue Vapor. js-framework, effectful-list, and memo-wall show no regression; memo-wall's value-position wall improves from 1.48x to 1.39x React (a Chromium profile of that op drops the flatten step 13.4% -> 6.0% of samples, total samples -13.8%). Full suite: 1310 files / 12835 tests. Three prod-only failures found during development were real and are fixed in this diff: an ineligible same-module component must not be rescued as a plain helper, and hook calls must not be treated as value projections. Co-Authored-By: Claude Opus 5 <[email protected]> * fix(octane): restrict memoizable callees to module-scope identities; cover the boundary Addresses both Cursor Bugbot findings on #262 and adds the behavioral coverage the first commit was missing. **Bugbot #1 (high) — local callees bypassed the member veto.** `plainCalleeIsMemoizable` admitted any non-hook `Identifier` callee, but the contract it documented only covers module-scope immutable bindings. A local `const read = () => item.read()` — or a module helper `function sortIcon(h) { return h.getIsSorted(); }` — wraps the exact receiver hazard the change kept failing closed, and the inline hook-memo tier can hand a local a stable identity. A call is now admitted only when the callee is: - an imported binding (opaque module boundary, the one place this analysis trusts rather than proves — React Compiler assumes the same), or - a same-module `function` declaration that is never reassigned AND whose own body is a value projection, checked transitively with cycles failing closed. Component-local callees, unbound globals, and namespace members now fail closed. **Bugbot #2 (medium) — call sites ignored module helpers.** `autoMemoCallsitesSafe` still treated free same-module `function` helpers as opaque while every other classifier accepted them, so a parent that formatted through a helper blocked child call-site memoization. **Coverage.** Two new behavioral suites, 30 tests: `automemo-render-calls.test.ts` renders lists whose array identity and item objects never change while state moves behind an accessor — a wrongly memoized region freezes the output. It covers the member callee, a module helper wrapping one, the same two frames away, component-local arrow / stable-local / function declaration callees, a reassigned module function, and a live accessor in an ARGUMENT to an otherwise-admitted projection; the converse (module, transitive and imported projections stay reactive); hook callees; a context consumer under a memoizable region; and the newly unblocked call-site path. `deopt-child-key-aliasing.test.ts` covers the key encoding through a template HOLE — raw `createElement` host children reconcile through a different keying function, so the first attempt at these tests exercised the wrong path and could not fail. Asserts explicit keys never alias positional indices (both in one list), adversarial keys that resemble serialized wrapper paths, equal keys under different wrappers, keyed-fragment reorder, unkeyed wrappers staying positional, and mixed keyed/unkeyed lists. Both suites were validated against deliberately broken implementations: the pre-fix callee rule fails 5 of the 7 staleness cases, and dropping the key/index prefix, sharing a prefix, ignoring explicit keys, or dropping the wrapper path each fail 1-3 of the key cases. The restored implementation passes. chat-stream codegen is byte-identical to the build the benchmark numbers were measured on, so the reported figures still stand. Full suite: 1332 files / 12958 tests. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
Closed
68 of 84 tasks
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
[email protected]
Patch Changes
dcdf237Thanks @trueadm! - Rename the project fromvyretooctane. The runtime now publishes asoctane-tsand the Vite metaframework plugin as@octane-ts/vite-plugin. Identifiers inherited from the Ripple fork were also renamed to Octane (e.g.setIsRippleActEnvironment→setIsOctaneActEnvironment, the metaframeworkripple()plugin →octane(), and theripple.config.tsconvention →octane.config.ts). References to the upstream Ripple framework and its@ripple-ts/@tsrxpackages are unchanged.@octane-ts/[email protected]
Patch Changes
#1
dcdf237Thanks @trueadm! - Rename the project fromvyretooctane. The runtime now publishes asoctane-tsand the Vite metaframework plugin as@octane-ts/vite-plugin. Identifiers inherited from the Ripple fork were also renamed to Octane (e.g.setIsRippleActEnvironment→setIsOctaneActEnvironment, the metaframeworkripple()plugin →octane(), and theripple.config.tsconvention →octane.config.ts). References to the upstream Ripple framework and its@ripple-ts/@tsrxpackages are unchanged.Updated dependencies [
dcdf237]:[email protected]
Patch Changes
dcdf237]:[email protected]
Patch Changes
dcdf237]:[email protected]
Patch Changes
dcdf237]:[email protected]
Patch Changes
dcdf237]:[email protected]
Patch Changes
dcdf237]:Note
Low Risk
Release-metadata only (versions, changelogs, consumed changeset); no application or library source changes in this diff.
Overview
Changesets release that applies the pending rename changeset and bumps workspace versions for npm publish.
Publishable packages:
octane-ts0.1.0 → 0.1.1 and@octane-ts/vite-plugin0.1.0 → 0.1.1, each with a newCHANGELOG.mdentry documenting the vyre → octane rename (package names,octane()plugin,octane.config.ts, and related Octane identifiers).Workspace consumers get matching version/changelog updates: benchmark fixtures 0.0.0 → 0.0.1 (dependency bump to
[email protected]) and octane-playground 0.0.1 → 0.0.2. The consumed changeset file.changeset/rename-vyre-to-octane.mdis removed from the tree.Reviewed by Cursor Bugbot for commit 7818a19. Bugbot is set up for automated code reviews on this repo. Configure here.