Skip to content

Track V8 performance audit findings across runtime, SSR, universal core, and compiler output #981

Closed

Description

@trueadm

Final audit closeout — PR #1092 (awaiting merge)

The complete disposition ledger accounts for all 84 checklist entries, the uncheckboxed escaping note, all three historical harness-gap claims, and the correctness follow-ups discovered during this audit. Fifteen stale Root/DOM/descriptor checkboxes are now reconciled with their already merged fixes and retained contracts. The remaining 16 checkboxes are covered by the final closeout PR and remain unchecked until it merges. A completed investigation may retain a necessary cost; no claim is made that every suggested rewrite was adopted.

The PR includes the separate childSlot and componentSlotImpl investigations, all remaining SSR dispositions, executable semantic counterexamples to unsafe shortcuts, and the missing benchmark guard wiring. Local validation: 17,926 core tests (before the final snapshot reuse), 204 final nearby SSR tests, 46 MCP tests, scoped types, 172 benchmark guards, formatting, changesets and sync pass. Current-head CI passed all 26 jobs on aebdde780; Cursor Bugbot passed without findings and there are no unresolved review threads. PR #1092 is ready for review, conflict-free, and awaiting merge. Original measurements and progress annotations below are preserved as history; the ledger records the current disposition.

Summary

Track the follow-up to a V8-focused performance audit of packages/octane/src/runtime.ts, runtime.server.ts, universal-core.ts, and the .tsrx compiler's emitted client/server code, run against main @ ac690331b on 2026-09-07 (Node 24.18.0 / V8 13.6, Chromium 149, Apple M5 Max). This is one coordination issue; fixes should land as separate package-owned PRs with behavioral regressions and performance evidence per .rulesync/rules/core-engineering.md.

Method: read-through audits with hotness established by tracing callers; every high-impact item re-verified in source; V8 mechanisms checked with %HasFastProperties / --print-bytecode probes and microbenchmarks; a live --trace-opt --trace-deopt-verbose, --log-ic --log-code, --log-maps-details, and --cpu-prof run of benchmarks/ssr-throughput (six configs) and the js-framework octane-tsrx production bundle; and one worktree-isolated A/B spike to size the largest item. No repo files were modified.

Headline: the runtime is IC-stable in steady state. After warm-up there were zero deoptimizations and zero inline-cache transitions in Octane code across all SSR configs and 31 js-framework cycles. The costs below are allocation on paths designed to be allocation-free, hidden classes that fan out after construction, objects that fall into dictionary mode, and a few DOM/API choices. Items are marked with the hot-path class (MOUNT / UPDATE / ITEM / EVENT / EFFECT / SSR-NODE) and probe where the mechanism was reproduced on this machine. Line numbers refer to ac690331b.

Status after #982 (merged 2026-09-07)

The root-transaction bookkeeping PR landed on main at 2c1ffaa. It replaced per-created-block Set/closure entries, compacted keyed-chain snapshots while preserving Map order and node identity, and avoided the resolved-transition effect prewalk when the root journal already captures touched cells. Fixed-arity binding bags now use stamped per-arity snapshots, and newly created non-retained scopes skip redundant bag snapshots. Property journals receive prior values from call sites, with numeric slot keys and fewer checks on keyed survivors.

This was a bounded refactor, not a transaction gate: the first raw thenable after an earlier sibling write must still restore the committed screen. Live text/attribute reads also preserve the immediately preceding DOM value, including external edits or attribute absence, as audit §10 now specifies. Parked keyed rows still need their captured node ranges across nested rollback windows; removing the eager capture caused a reproduced missing-row/NotFoundError regression and was reverted before merge. See the per-item notes below for partial work that remains measurable.

Final-head CI passed all 26 jobs. The pinned compiled benchmark passed the js-framework 1,000-row mount gate at 33,081 / 35,000 production calls; Activity ABAB timings overlapped runner variance, so no application speedup is claimed. The compiled Activity JS asset grew 2,374 raw bytes. The separate same-drain keyed @empty clear/refill bug was fixed by merged PR #986, and #984 is closed; it reproduced on both the pre-#982 base and the earlier merged code.

Measured: the root render transaction is armed on every ordinary render

drainQueue (runtime.ts:4560) calls beginRootRender(block.idState.renderOwner) for every queued block, makeRoot installs a renderOwner on every root, and root.render(App, props) re-renders go through the renderOwner.request closure, so TRANSITION_JOURNAL, TRANSITION_JOURNAL_BAGS, WIP_CAPTURE and PARKED_ITEMS are non-null during every plain setState flush, not only under Suspense or a transition. This landed with #833; packages/octane/audit/root-suspension-performance.md records the cost (plain parent update 2.00 → 3.36 ms, +68%; bundles +15–23% gzip) and nothing since has recovered it.

A worktree spike that gated the transaction off on the scheduled path (a ceiling measurement: it breaks Suspense/transition rollback and is not a proposal) re-ran the author's harness in ABAB order on the same bundle:

benchmark baseline gated delta base↔base noise
activity plain_updates 3.50 ms 2.12 ms −39% 1.1%
activity visible_updates / hidden_burst_commit / hide_reveal 3.44 / 3.91 / 5.58 2.19 / 2.47 / 4.44 −36% / −37% / −20% <1%
js-framework update every 10th 0.51 ms 0.36 ms −29% 3.9%
js-framework create 1k / append 1k / create 10k / replace 2.65 / 2.12 / 15.7 / 5.60 2.35 / 1.81 / 13.3 / 4.74 −11% / −15% / −15% / −15% <1%
js-framework clear 10k; swap/remove/select unchanged; no signal (0.1 ms timer resolution)

Deterministic control (benchmarks/activity/work.mjs, plain_updates = 12 × 256 rows): renderBlock 6,168 → 6,168; beginRootRender / createOffscreenCapture / acceptNativeCapture / spliceOffscreenCapture 12 → 0; journalText 3,084 → 0; journalAttr 3,072 → 0; journalObjectOnce / journalBag 6,156 → 0; total journal* calls 24,648 → 6,180. The baseline counts match the v3 table in the #833 audit exactly.

  • Gate the root render transaction on a nullable driver installed by use(), lazy(), the thenable-throw path in renderBlockInner, and Suspense/Activity mount, the way TRANSITION_SWAP_DRIVER and SCHEDULED_VISIBILITY_DRIVER already are. beginRootRender returns null while it is uninstalled; the first-ever suspension in an app takes the pre-fix: retain suspended roots without a boundary #833 path once. Learned from the spike: the gate must cover both drainQueue and the renderOwner.request closure (gating only the setState branch recovers nothing on the activity fixture); renderResolved (runtime.ts:35050) and request (:35030) carry transaction! non-null assertions the pre-fix: retain suspended roots without a boundary #833 owner === undefined path never exercised; hidden_burst_commit/hide_reveal also pay it, so a hidden retry that can suspend must be decided per drain, not per root. UPDATE/MOUNT/ITEM. Status after refactor: reduce root render transaction bookkeeping #982: Open. The safe subset for newly created, non-retained binding bags landed in #982; arming only after the first raw thenable would change the documented committed-screen hold, so the nullable-driver proposal needs a product-contract decision before implementation. Follow-up #1079 (merged): Retained after fresh dev/prod first-throw experiments: delayed arming loses preceding writes. See the committed contracts audit; no suspension contract is weakened. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger ROOT-01.
  • journalObjectOnce clones every touched bag through one megamorphic { ...obj } site (runtime.ts:2919-2926), fed by every bagN arity map, bagOf literals, EffectSlot, $$ctrl records and descriptors; journalBag also does a megamorphic bag.__kind load before every text/attribute write plus a Map.get/Map.set. Stamp the bag with the journal epoch in a fixed extra field on every bagN factory and clone through a per-arity cloneBagN switch. UPDATE. Status after refactor: reduce root render transaction bookkeeping #982: Partial. Fixed-arity bagN scopes gained branded, stamped, per-arity clones and fresh disposable scopes skip snapshots; generic bagOf and other runtime records still take the exact generic snapshot path. Measure those separately before claiming this entire item complete. #982. Follow-up #1079 (merged): Fixes enumerable symbol restoration, including unchanged read-only symbols and accessor setters. A separate spill snapshot site showed no reliable benefit, so generic dispatch remains. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger ROOT-02.
  • journalText / journalAttr read the DOM before every write (runtime.ts:3262-3269: node.nodeValue, el.getAttribute(name)), the exact read the setText comment at :14750 says the hot path must avoid. The compiled guard cache _b.x already holds the previous raw value. UPDATE. Status after refactor: reduce root render transaction bookkeeping #982: Open under the current rollback contract: _b.x is an authored binding cache and cannot restore a foreign live DOM edit or attribute absence. #982 added a regression and documented the behavior in audit §10; any shortcut needs an equally exact live-value source. Follow-up #1079 (merged): Descriptor text reuses its immediately preceding live comparison value (256 → 128 reads /128 updates). Compiled text and attributes retain live reads required for external edits and absence. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger ROOT-03.
  • createdInRootRender allocates a Set entry and an undo closure per created block (runtime.ts:6709 → :2742-2756): 1,000 closures + Set inserts + 4,000 log slots on create-1k, discarded at commit. Use a flat JOURNAL_CREATED entry and a createdStamp field on the block. MOUNT. Completed in #982: createdStamp and flat JOURNAL_CREATED entries replace the per-block Set/closure path.
  • journalForSlot snapshots the whole keyed chain on any membership/order change (runtime.ts:3090-3125; callers :33064/:33127/:33160/:33205/:33328): chain.push([b, next, prev]) per row plus [...state.items], ~2,000 allocations for a 1,000-row swap. The chain is recoverable from one Block[] in DOM order and state.items from block.key. ITEM. Completed in #982: compact Block[] chain snapshots restore previous Map insertion order and exact parked node identity across nested rollback windows.
  • Every removed keyed row is parked, not unmounted (runtime.ts:33165, :33266 via itemRemovalDefers() :3063 → parkItemForHold :3039): a nodes[] walk, retireRootBlock (Set + closure), a record, then per-node removeChild in try/finally instead of unmountBlock's range removal. With retainConnected the nodes array is redundant. ITEM. Status after refactor: reduce root render transaction bookkeeping #982: Open. The eager nodes[] capture is required for nested windows: a later restoreForSlot sweep can detach an earlier parked row before its rollback. The attempted lazy read regressed and was reverted; #984 separately tracks borrowed @empty ownership overlap. Follow-up #1079 (merged): Flat retirement entries remove 128/256 reached undo closures from partial/full deletion controls. Exact node arrays, the retirement Set, connected cleanup, and the batched clear record remain. Also fixes stale boundary captures that could lose a queued urgent row edit after a suspended removal. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger ROOT-06.
  • journalRootProperty does a megamorphic keyed load per property (runtime.ts:2529-2532; applyItemProps :32871-32878 per survivor, childSlot :25879, forBlock :32173/:32328, :31015): (target as any)[key] with ~40 constant keys across Block/ForSlot/ChildSlot/idState maps; String(slotKey) allocates per child-slot mount; state.env !== deps is true every render so it fires even when nothing changed. Pass the old value from the caller; pass numeric indices for slots. It is still called 6,180 times per 12 updates from unguarded sites (:7349, request) even when gated, so callers should hoist the TRANSITION_JOURNAL !== null check. UPDATE/ITEM. Status after refactor: reduce root render transaction bookkeeping #982: Partial. The helper now receives old values, numeric slot indices replace string allocation, and keyed survivor loops hoist journal checks; other caller checks and the allocation cost remain to measure. #982. Follow-up #1079 (merged): Paired survivor inputs halve journal slots from 2,048 to 1,024 for 256 rows changing both item and captures. Single-input and unchanged controls stay unchanged; other scalar journals remain. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger ROOT-07.
  • Transition renders under a resolved Suspense boundary pre-walk the subtree's effects (renderVisibleTry :28551-28555, snapshotSubtreeEffectDeps :28850-28870): closure-callback forEachSubtreeChild, a Map plus one record per effect and an offscreen capture per startTransition update, discarded on success. Journal effect.deps/revision/active lazily at the write sites. UPDATE (transition). Completed for the resolved-transition root path in #982: touched effect cells are journaled lazily; the prewalk remains on urgent supersession, propagation, and detached paths where it is needed for rollback.

Hidden-class stability

  • Class fields are emitted with define semantics (runtime.ts:6490-6545 BlockImpl, :6653 ScopeImpl, :7423 LiteBlockImpl; packages/octane/tsconfig.json has target: esnext and no useDefineForClassFields, and consumers compile src/index.ts with esbuild/oxc). The js-framework production bundle contains class{body;props;extra;…;constructor(, so every new BlockImpl performs 52 DefineNamedOwn stores of undefined before the constructor's 52 real stores, and the map log shows the nine numeric fields (itemIndex, renderStatus, __thenableIdx, drainStamp, drainRenders, nestedUpdateChain, nestedUpdateCount, effectEventRenderVersion, effectEventCompletedVersion) created as HeapObject and generalised in place to Tagged, invalidating optimised code during warm-up and never getting Smi representation. Mark type-only fields declare or set useDefineForClassFields: false. MOUNT/ITEM. map log Fixed in #989.
  • BlockImpl gains seven expandos after construction (runtime.ts:6933 __warmEpisode and :6969/:7034 __thenableDone on every render; :12106 __thenables; :27106/:27116/:27606/:27612/:28486 $$tryHandler/__suspenseHandler/__trySlot stamped before a boundary's first render; :31498/:31594 __activitySlot; :12354 __warmCache/__warmCacheEpisode). The map log shows 52 → 53 → 54 descriptors and exactly two Block maps at updateSurvivor :32871-32874, commitBag :14472/:14480/:14483, the compiled row body, and journalBag :2913, with warm-up "wrong map" deopts at each; with Suspense/Activity/use() it is 6–8 maps at every block.pending/disposed/parentBlock walk (blockIsAncestorOf, inInactiveSubtree, findTryHandler, readContextFrom, scheduleRender, unmountBlock, findScheduledVisibilityOwner :28797-28808 per dequeued block). Declare them all in the constructor; the comment at :31592 ("keep this back-reference off the monomorphic Block shape") has it backwards. UPDATE/MOUNT. map log Fixed in #990.
  • Compiled bodies stamp _m$N/_k$N expandos on the slots JSArray (emitted e.g. __s.slots._m$0, __s.slots._k$0 = _$hookMemoCreate(2); array at runtime.ts:6636/:6676). A JSArray has no in-object slots, so the first named store allocates a PropertyArray and transitions the map; each component uses a different suffix and the slots[0] = bag elements transition interleaves differently, so each component's slots gets its own map and all 82 x.slots[…] sites in the runtime (ifBlock :31070, forBlock/keyedForBlock :32574/:32364, componentSlot :21642, componentSlotLite :7449, childSlot :24935, textHole :25750/:25875/:25915, commitBag :14483) become megamorphic past four components (cinebase alone produces five maps). Contradicts the design comment at :6483. Add memo/hk fields to ScopeImpl/BlockImpl or reserve numeric slot indices. UPDATE. Completed in PR #1067, merged on 2026-09-12 as 58da3448b: A seeded nullable owner field and lazy fixed memo regions remove all named slot-cache reads/writes (10/10 → 0/0 in the production fixture), preserving body isolation and publication/reset behavior. Actual sampled storage costs +24 bytes per memo-bearing Block and +8 per ordinary Block/Scope; the rejected tuple used another 24 bytes. A same-module Provider A→B→A stale-output defect also reproduces on the frozen baseline and is recorded in the follow-up comment.
  • Scoped descriptors and their props objects are dictionary-mode (scopedElementDescriptor :21008-21046, scopedValueDescriptor :20952-20979, cloneElement family :21192/:21208/:21236; server twin runtime.server.ts:879-896, :811). Object.defineProperty(copiedProps, 'children', { get: freshClosure }) hits Map::TransitionToAccessorProperty's different-accessor case → Map::Normalize; on the descriptor the accessor overwrites the children: null data field → normalised from the first instance. Probe: descriptors Add changeset for the vyre→octane rename release #1–Version Packages #3 and props Version Packages #2+ DICTIONARY; four-field reads 1.5× and for-in 3.3× slower. The compiler emits _$createScopedElement for every value-position element whose child expression is not a literal (compile.js:19534), i.e. every .tsx list row with a text hole and every @octanejs/* binding tree; SCOPED_ELEMENT_PROPS.add/KEYED_ELEMENT_DESCRIPTORS.add are additional ephemeron inserts per descriptor. Fix (probe-verified fast): one shared accessor descriptor reading the resolver from a symbol-keyed data slot, and build the literal without children: null. ITEM/UPDATE/SSR-NODE. probe Status after perf: keep scoped JSX descriptors on fast shapes #1013: The shared resolver/accessor design and fast descriptor shapes landed in PR #1013 (merged as 1c28da5; final-head CI 26/26). The noted per-descriptor ephemeron inserts remain a separate measurable cost.
  • memo() wrappers are dictionary-mode functions from the second wrapper on (runtime.ts:26277-26318; server :5951-5980): per-wrapper __memo getter and defaultProps accessor closures normalise the function map (probe: Add changeset for the vyre→octane rename release #1 FAST, Version Packages #2/Version Packages #3 DICTIONARY). tryMemoBail :25995 reads comp.__memo on every same-identity update, recordContextDependency :11700 and restampCtxDeps :26051 walk ancestors reading it, and the load site also spans every plain component map (App.$$singleRoot = true is compiler-stamped). 287 memo( sites across 120 files in packages/; benchmarks/memo-wall has one wrapper so it cannot see this. Fix: symbol-keyed data property holding the wrapper (fn[MEMO] === fn) plus one shared defaultProps accessor pair, or a bodyMemo field on BlockImpl next to memoInChain. UPDATE. probe Completed in PR #1014: Shared owner-bound marker and default-props descriptors keep 128/128 and 1,024/1,024 sampled wrappers fast in both runtimes. Semantic hashes matched; timing controls drifted, so no throughput gain is claimed. Merged as 3606d04 after final-head CI passed 26/26.
  • Hook cells and slots grow optional fields on divergent paths: StateSlot literal { value, setter } (runtime.ts:8077) then updates (:8090), getter, renderTransition/pendingActionBatch/pendingActionValue (:1425-1495) in path-dependent order, so the setter's own reads are polymorphic across 3–6 maps; ReducerSlot :8735, MemoHookEntry :9076 (warmEpisode/warmRecord/nativeWitness); ForSlot selectionItems (:32409/:32610) and mappedNative (:32462) absent from both literals (:32143, :24639, the plainDeopt comment at :32153 documents the rule); HostComponentSlot :22883-22889; OffscreenCapture :4119-4129 vs capture.rootTransaction = true (:2478) and ??=-added detaches/suspenseCommits/renderCleanups, read at enqueueEffect/queueRefAttach. Initialise every optional member in the literal. UPDATE/ITEM/EFFECT. Completed in PR #1067, merged on 2026-09-12 as 58da3448b: All six named record families initialize their optional members with the existing undefined/false meanings; optional collections remain lazy. Actual sampled State/Reducer/Memo maps fall 4/4/3 → 1/1/1 and Host/For/Capture maps 2/3/4 → 1/1/1. Idle hook cells reserve more memory (+48/+48/+24 bytes), while active cells, hosts, and captures often save property-array storage. The PR documents these costs, measured transition handling, and behavioral rollback/hydration controls.
  • SSR Frame records get namespace after construction (runtime.server.ts:3968 vs literals :3944, :3954, :6835, :6968): two 88-byte maps at nextFrameOccurrence :507/:508, nextChildSegment :515/:516, captureComponentReplayState :3606-3612, framePath :496/:497 (1 → P in every config; warm-up wrong-map deopts). Add namespace to all four literals. SSR-NODE. map log Fixed in #999, merged as 7fca4d3.
  • Un-seeded DOM expandos: __oct_dangerHTML (runtime.ts:15059, polled on every dynamic child host once DANGER_HTML_EVER_ACTIVE latches) plus __oct_dangerChild/__oct_dangerSpreadChild, the DEOPT_DESC symbol (:23037-23050, every de-opt-built element), DEFAULT_CHECKED_INITIALIZED/DEFAULT_VALUE_BASELINE (:19792). Misses walk Element → Node → EventTarget → Object at a megamorphic site; seedExpando handles symbol keys identically. MOUNT/UPDATE. Fixed in PR #1015, merged as 593bf2e; current-head CI passed 26/26 and Cursor Bugbot passed. The DEFAULT_CHECKED_INITIALIZED marker is intentionally unseeded: its sole read is a presence test, so seeding it would require a slower own-property check on every first defaultChecked write. The actual absent-value reads named here are seeded.
  • Holey arrays on hot reads: hookMemoCreate new Array(size).fill(undefined) (runtime.ts:9182, HOLEY_ELEMENTS forever); newKeys = new Array(newMidLen) in reconcileKeyed (:33163); lazy.parsed[ns] written sparsely (:13545). Low. Completed in PR #1067, merged on 2026-09-12 as 58da3448b: Hook cells use fill(null), reconciliation keys grow contiguously, and namespace caches start [null, null, null]. The original “forever” claim is outdated for Node 24/26: modern V8 fill can repack. Chromium 149 still changes all-undefined memo cells from double storage to holey object storage on publication; null-filled cells remain packed and the measured constructor/publication workload improves 45–53%. Packedness claims are limited to measured engines; older V8 can retain a holey kind for any filled allocation. Namespace identity and keyed survivor controls pass.

Hooks

Hooks follow-up (agent-authored): PR #1076 merged on 2026-09-13 as 1e12db7d6 (validated head 34dea5c0b). It adds bounded client/server/universal path caching (8,000 registry calls → zero for a repeated depth-three path), single-read state/reducer getters (256 → 128 hook-Map reads), fixed optional-argument implementations with preserved public call contracts, reused external-store dependency pairs (128 → zero steady pair creations), and leaner warm activation. The complete Hooks audit records every remaining group, retained costs, and rejected alternatives. Canonical Map storage, withSlot rest/spread, Effect Event wrappers/publication records, context provider presence probes, and required warm occurrence/cache work are retained with evidence. Local validation passes 2,919 dev/prod tests, core/public typechecks, 15 MCP tests, and 44 source-work guards; production browser semantic controls pass. The fixture adds 734 gzip bytes. Store-update timings remain inconclusive and sometimes slower; no overall application speedup is claimed. Current-head CI passes 26/26 jobs. Cursor Bugbot passes with no findings and no unresolved review threads; the PR is merged. The initial CI failure was an outdated Lynx single-file compatibility scan, fixed by following imported helpers without changing runtime bytes or support requirements. The Hooks entries below are resolved by the merged implementation and the documented retained-contract decisions; checking an entry does not mean every listed cost was eliminated. Store-update timing remains a separate measurement follow-up.

  • Base hooks inside any custom hook rebuild a string and call Symbol.for every render (resolveSlot :7994-8007, appendSlotKey :7952, withSlot :7906-7925; universal twin universal-core.ts:4851-4868 adds an array spread, 111 ns/hook measured). Only n === 0 and slot === undefined && n === 1 short-circuit; every compiled base hook inside a withSlot frame builds 2–4 cons strings per segment and calls a C++ builtin that flattens, hashes and probes the registry. useSyncExternalStore pays it three times; useQuery → useBaseQuery is ~5 Symbol.for + ~20 concats per render; USES_SUBSLOTS :9497 shows the cost was recognised for one site. Cache resolved symbols per frame in withSlot ({ sym, cache: Map<HookSlot, symbol> | null }). UPDATE. Final disposition (#1076, merged): Merged perf: reduce repeated hook bookkeeping #1076 adds bounded primitive path caching across client, server, and universal; deep/overflow paths retain the exact uncached fallback.
  • Map<HookSlot, any> per hook read where the compiler already hands out a dense numeric base (runtime.ts:8046, :8741, :9311, :8897, :13038, :12758; __useStateWithGetter :8306-8311 does resolve + get twice). Compiler-owned memos already moved to the dense cells array for this reason. Dense path must stay behind hmr === false because HMR relies on Symbol.for identity. UPDATE. Final disposition (#1076, merged): Merged perf: reduce repeated hook bookkeeping #1076 removes the duplicate getter lookup. Canonical Map storage is retained: numeric base slots are module-local, and conditional slots, symbols, HMR, rollback, and deletion share this authority. A dense replacement requires a separate compiler/storage design.
  • Per-render allocations in hook entry points: useSyncExternalStore(subscribe, getSnapshot, ...rest) rest array + [inst, subscribe] deps (:9569-9660); withSlot(sym, fn, ...args) rest + spread (:7906); useDeferredValue(value, ...rest) (:30041); useEffectEvent wrapper + record even when fn === s.impl (:9680-9696); hostComponent trampoline (...args) => latest(...args) (:22893). invokeManualHook :7862 already shows the arity-switch shape. UPDATE. Final disposition (#1076, merged): Merged perf: reduce repeated hook bookkeeping #1076 removes the selected optional-argument rest sites and reuses stable external-store dependency pairs. Native withSlot forwarding and Effect Event wrapper/publication records are retained to preserve their observable contracts.
    Status in PR #1025: hostComponent now forwards the three ComponentBody arguments directly through its stable child body while preserving the latest target and return value. The production jitless observer records 1,024 → 0 rest-parameter arrays for a 1,024-host render and 12,288 → 0 across twelve updates, with the same host/child call counts and DOM controls. New dev/prod callable-child regressions and motion integration tests pass. Current-head CI passed all 26 jobs on 3c46b078e; Bugbot had no findings. PR perf: avoid host child rest-array forwarding #1025 merged as 621147d on 2026-09-09. The remaining entry-point costs are resolved or explicitly retained by the perf: reduce repeated hook bookkeeping #1076 disposition above.
  • Per-consumer $$ctxCache Map and double probes on context reads (readContextFrom :11862-11894): new Map per context-consuming scope at mount (per ITEM for keyed rows reading a theme/store), has + get per provider on the walk. Inline one-entry cache fields spilling to the Map on the second distinct context. MOUNT/UPDATE. Progress: PR #1019 merged as 266302e and removed 512 per-consumer Maps on 512 single-context keyed rows in a production browser work gate; two-context consumers still spill. Current-head CI passed 26/26 jobs on attempt 2 after an unrelated Vitest worker failure on attempt 1; Bugbot passed. Provider-walk has/get probes are retained by the perf: reduce repeated hook bookkeeping #1076 audit described below. Final disposition (#1076, merged): The perf: reduce repeated hook bookkeeping #1076 audit retains provider presence probes: a get-first alternative reduces direct-hit work but increases unrelated-provider and default-miss work.
  • Parallel-use warm plans allocate per render (_$useBatch([], () => …) emitted at the end of setup for every component with same-module warmable children, runtime.ts:12235; recordRealWarmMemo :12364-12386; adoptWarmEntry :12676-12720 after WARM_EVER latches makes every memo miss anywhere walk the parent chain). Gate on an activated plan, hoist the thunk to the warmNode form. MOUNT + cascade UPDATE. Child-only registration portion merged in PR #1020 as 9b17f4e: reuse attached plans and a flat registration stack; production empty-batch calls 2048 → 0 on mount/full update and 62 → 0 on partial update/remount. Adoption lookup follow-up in PR #1024: New render episodes skip ancestor caches they cannot match using one monotonic episode maximum. Production parent reads on 33/129 ordinary memo misses after unrelated warming fall from 1,089/16,641 to 0 on both mount and update. Real pending retries retain their cache lookup, and async-composition preserves eight creators, two waves, and zero mixed states. Local validation passed after targeted compiler-timeout and sandbox-browser reruns; Current-head CI passed all 26 jobs on c176cd00e after rerunning one compiler timeout and its canceled sibling shard, with no code changes. Bugbot completed with no findings; PR perf: skip warm cache scans in new render episodes #1024 merged as 4a5edff on 2026-09-09. Client fallback registration follow-up: PR #1028 replaces the trailing client useBatch([], warmThunk) with registerWarmPlan(warmThunk, void 0) when an in-body closure is needed; its production work gate removes one empty-array batch call site per affected component, preserves direct promise batches and server/universal output, and checks independent descendant requests after hydration. Final-head CI passed all 26/26 jobs on d1c7a8ef3; Bugbot completed with no findings. PR perf: register client warm plans without empty batches #1028 merged as e8f6067 on 2026-09-10. Remaining active-plan allocations and required warm/cache work are addressed by the perf: reduce repeated hook bookkeeping #1076 final disposition below. Final disposition (#1076, merged): Merged perf: reduce repeated hook bookkeeping #1076 removes the selected-plan array, wrapper callback, and unused initial claims Set. Per-plan claims, real occurrence records, captured locals, and pending-retry cache/ancestor work are retained for independent warming and retry semantics.
  • useBatch([ctx]) per render for plain context reads (emitted for module-level createContext bindings; runtime.ts:12248-12267): array + activeHydration() + a typeof it.then prototype-chain miss on the Context object. Skip when every argument is provably a Context. UPDATE. Completed in merged PR #1018 (70c29ab); CI green on head 19c404f30 (attempt 3): 1,024 fewer context-only batches on full render, 32 fewer on partial render; plain TS client/server also skip them.

Effects, lists, control flow

Client audit validation (agent-authored): PR #1090 passes all 26 CI jobs on c740015f0a6057d81352b1e358832dbc36f99f5b; Cursor Bugbot passed without findings and there are no unresolved review threads. PR #1090 merged on 2026-09-14 as 248af4edc. Its branch/key and grouped eight-function investigations are resolved. Scope correction: the separate childSlot and componentSlotImpl oversized-function entries were not covered by #1090 and still need a measured optimization or retained-design decision. #981 remains open for those two client investigations, remaining SSR work, and benchmark/checklist reconciliation.

Effects and scheduling follow-up (agent-authored): PR #1070 merged on 2026-09-13 as 6284156ce (validated PR head 78bc3c81f); local focused validation passes 942 tests, 17 deterministic work guards, and 48 production Chromium lifecycle gates. Core/public typechecks and 15 MCP tests pass. Current-head CI passed 26/26 jobs on the unchanged commit after a targeted retry of a Vitest browser-runner error (the exact AvatarRoot fixture also passed 15/15 locally). Cursor Bugbot passed without findings, with no unresolved review threads. The three effect/scheduling entries below are resolved by the merged implementation and recorded retained-contract decisions. Deep ancestry fallback, effect hook membership, and callback invocation costs are retained with explicit evidence.

  • Residual effect/ref postorder ancestry work: Merged PR #998 makes direct-parent and sibling comparisons constant time; its focused 400-node sort measured 80,199 → 798 parent reads and current-head CI passed. Deep disjoint branches still use ancestry fallback, and drainRefAttaches still allocates a comparator closure per drain. Profile a full effectful-list workload before considering depth stamps or a further ref-sort change. The common case is checked off in #967. EFFECT. Follow-up in #1070: sibling-only ref batches skip sorting (1,000 refs: one native sort → zero); mixed/deep and nullable-owner batches preserve the comparator. The per-drain closure becomes a shared comparator. Full TSRX/JSX effectful-list controls pass; deep effect ancestry scans remain because they preserve ordering and the ordinary workload already uses constant-time sibling comparisons. No latency gain is claimed.
  • runEffectBody allocates [] per no-deps effect and both drains do a hooks-Map lookup per entry (runtime.ts:6165, :6123, :6152): e.fn.apply(null, e.args ?? []) goes through CallWithArrayLike; PendingEffect already carries revision and both enqueue sites know the slot. Frozen EMPTY_ARGS, carry effect on PendingEffect, arity switch for 0–3 deps. EFFECT. Status in PR #1023: The no-dependency empty-array fallback is removed by passing undefined directly to apply, preserving the null receiver and positional dependency arguments. Production helper source-array events fall from 3,000 to 0 for 3,000 no-argument dispatches; explicit-array controls stay at zero. Local dev/prod effect and hydration tests pass (218 tests), as do both production effectful-list dialects. Current-head CI passed all 26 jobs on 9fe7ce2f9; Bugbot completed with no findings. PR perf: avoid empty effect argument arrays #1023 merged as 7804852 on 2026-09-09. This combined item remains open: hook-map membership still protects rolled-back/cleared slots, and arity specialization needs separate evidence. Audit in #1070: retain Map membership checks and apply(null, args). Replaced/cleared slots defeat unchecked effect-list indexing even with slot/revision validation; direct arity dispatch bypasses observable callback apply/argument access. New dev/prod callback regressions and deliberate-red membership/invocation controls protect these decisions. Both baseline and candidate perform 21,000 Map reads and zero argument-array creations per 3,000-effect argument case. Separate replacement and cleanup-revocation controls pass. No unproven dispatch optimization is introduced.
  • sortWaveByDepth rebuilds a Set, a Map, a path array and a comparator closure per multi-block flush (runtime.ts:4439-4461); queued.has(block) duplicates block.pending, and drainStamp already exists for the loop guard. UPDATE. Merged in #1070 as 6284156ce: temporary negative drain stamps reuse existing loop-guard fields during sorting; no Set, Map, path array, comparator closure, extra Block fields, or retained pointers. Set/Map constructions drop two → zero; 1,000 updates below 40 unqueued ancestors drop 42,000 → 2,082 parent reads. A second walk increases chain/mixed read counts, documented with semantic controls. New waves invalidate depths; lite proxies stay unmodified; positive drain IDs restore loop-count meaning before execution.
  • renderBranchSlot is 478 lines whose common same-branch path is the tail (runtime.ts:30560-31037): the swap path (journaling, WIP swaps, hydration recovery, markerless promotion) shares the unit with the 15-line re-render, blocking inlining into ifBlock/switchBlock and making any rare-arm deopt discard the hot one. Hoist the next === state.branch re-render into the callers. UPDATE. Client investigation in PR #1090 (merged 2026-09-14 as 248af4edc): keep the shared renderer after a production Chromium split experiment showed overlapping timings and added bundle bytes. Move caller hydration reads into slot initialization: 896 updates × 32 slots fall 57,344→28,672 lookups; fresh mounts stay unchanged. Same-arm rollback/captures/state/refs/effects and hydration adoption have deliberate-red regression coverage.
  • mountItemsLinear builds a mounted: Block[] used only on the throw path (runtime.ts:32950/:32981); the intrusive chain already reaches every mounted block backwards, as mountFastHostItems does in its catch. MOUNT. Completed in #1006: The successful first-fill path no longer allocates/pushes a second prefix array, and the catch unwinds through the sibling chain. Merged as 31aff05 with current-head CI 26/26; paired timings were inconclusive.
  • Per-item key strings on the de-opt list path (scopedDeoptKey :23130-23158: 'k' + String(key) / 'i' + index; two getKey closures per list render :24660-24662; keyed component slots '' + key per render :21983): fresh cons strings that the key Map flattens and hashes. Map already distinguishes "0" from 0. ITEM. Client implicit-index follow-up: PR #1030 uses numeric indices for top-level unkeyed descriptor children, removing 1,000 implicit string concatenations per render in an isolated 1,001-row production work gate; mixed explicit/index/nested keys preserve DOM identity, input state, focus, and hydration adoption. Explicit and nested key encoding, list getKey closures, and keyed component-slot coercion remain open. Final-head CI passed 26/26 jobs on d37cf3fe5; Cursor Bugbot passed with no findings. PR perf: use numeric indices for unkeyed de-opt children #1030 merged as 9b23f6cea on 2026-09-10; the remaining parts of this item stay open. Server implicit-index follow-up: PR #1032 avoids JSON serialization for 1,000 top-level unkeyed SSR descriptor positions in the isolated production work gate; complete HTML is byte-identical, and mixed nested/explicit keys are covered across async retries and streaming. Final-head CI passed 26/26 jobs on 043c3cd43; Cursor Bugbot passed without findings. PR perf: avoid implicit SSR descriptor key serialization #1032 merged as d4bf228c8 on 2026-09-10; the other parts of this item remain open. Client nested-prefix follow-up: PR #1034 reuses the wrapper path for nested implicit descriptor siblings: 1,000 full-key JSON serializations become zero plus one shared path serialization in the minified browser work gate. Flat and fully explicit controls add no prefix work; HTML, survivor nodes, typed input state, focus, and hydration identity are preserved. The longer timing distributions overlap, so no throughput improvement is claimed. Local core validation passed 991 files / 17,640 tests with 14 expected failures. The existing unkeyed work gate was updated for both baseline/current helpers after Bugbot feedback, and current main was merged. Current-head CI passed 26/26 jobs on 94d353e9b; an isolated Vite configuration-test timeout passed on retry at the same commit. Cursor Bugbot passed, and its benchmark finding is resolved. PR perf: reuse nested implicit descriptor key prefixes #1034 merged as afdc3618a on 2026-09-10. This is a partial fix; remaining nested-key strings, explicit-key coercion, and other listed costs stay open. Server nested-prefix follow-up in PR #1035: Reuses the wrapper path for nested implicit SSR descriptor siblings: 1,000 full implicit-key JSON serializations become zero plus one shared path serialization in the minified production work gate. Flat and fully explicit controls add no prefix work; complete HTML/CSS output is unchanged. New regressions preserve distinct settled row values across reordered escaped wrapper keys, interleaved requests, and out-of-order streamed reveals; 550 targeted dev/prod tests pass. Performance review caught and fixed a flat-list slowdown by keeping flat/singleton lists on the original small helper. Final timing distributions overlap, so no throughput gain is claimed; bundle cost is +524 raw / +177 gzip bytes. Current-head CI passed 26/26 jobs on cfc786198. Cursor Bugbot passed without findings; there are no unresolved review threads. PR perf: reuse nested implicit SSR descriptor key prefixes #1035 merged as 3459196f6 on 2026-09-10. The overall item remains open. Per-list callback follow-up: PR #1057 merged as 2789eab27 on 2026-09-11. Reconciliation now accepts prepared key arrays or the existing compiled-map key function directly. Both selected production callback-construction sites drop from 512 executions to zero per phase, with markup, survivor identity, input state, focus, and hydration controls preserved. Bundle cost is +107 minified / +38 gzip bytes; timing ranges overlap, so no throughput or actual V8 heap-allocation gain is claimed. A mapped-component slot compatibility fix preserves native/custom map transitions. Local related suites pass 49 files / 856 tests; final-head CI passed 26/26 jobs on bf66a67a4, with a transient browser-orchestration failure passing on targeted retry after its exact fixture passed 15/15 locally. Bugbot passed and all review threads are resolved. Explicit/nested key encoding and keyed component-slot coercion remain open; the grouped item stays unchecked. Client explicit-prefix follow-up in PR #1060 (merged as fa11c1055): Nested explicitly keyed siblings share a traversal-local wrapper prefix. The production browser gate replaces 1,001 full nested tuple serializations per update/reorder/restore with one shared wrapper serialization and 1,001 scalar-key serializations. Strict DOM identity, HTML, typed inputs, focus, and hydration adoption are preserved; custom serialization invalidates the cache. A–B–B–A timings show no clear latency gain; bundle cost is +104 minified / +29 gzip bytes. Local related dev/prod suites pass 49 files / 866 tests. Current-head CI passed 26/26 jobs on 94a9c7fa2; Cursor Bugbot passed with no findings and no unresolved review threads. PR perf: reuse nested explicit child key prefixes #1060 is merged. SSR explicit-key prefix work and the other remaining key costs stay open; this grouped item remains unchecked. Client retained-design disposition in PR #1090 (merged 2026-09-14 as 248af4edc): explicit namespaces, nested escaping/serializer fallbacks, and default-hint component coercion preserve observable key equality and conversion. Raw identity/cached coercion changes behavior. Eight production browser controls preserve HTML, survivor/input/focus state and hydration; no allocation/latency gain claimed. Remaining SSR key work is outside this client PR, so the grouped item remains unchecked. Final disposition in PR #1092 (pending merge): Implicit top-level keys, shared nested prefixes and redundant list callbacks were optimized in the listed PRs. Client coercion and server typed/escaped identities remain required for namespace, serializer, UTF-16 and retry isolation. The final metadata audit makes server identity work explicit and rejects a scoped ordinal shortcut. Ledger FLOW-06.

DOM writes, templates, events

PR #1068 validation (agent-authored): head ca1c7d0eb passed full CI, 26/26 jobs; Bugbot's follow-up found no issues. PR #1068 merged as 8a45222ab on 2026-09-12. Completed focused items are checked below; broader items retain explicitly documented contract costs.

  • Statically named attributes take the fully dynamic setAttribute path (runtime.ts:15924-16100, coerceAttrValue :16313, sanitize-url.js:57-62): per changed value switch (name.length), isHtmlCustomElement ×2, ATTRIBUTE_ALIASES.get, isEnumeratedBooleanAttr, name.toLowerCase() (allocates for viewBox etc.), three Set probes, el.nodeName, sanitizeURLAttribute (two more toLowerCase), attrNamespace, VALID_ATTR_NAME.test, then the write. Compiled routing (compile.js:416, admission :25831-25873) only special-cases aria-*, exact boolean props and provably-string lowercase data-*; a compiled fixture showed href, title, data-n={n} and SVG cx={n} all emitting _$setAttributeIfChanged → this path. Add a compiler-selected setPlainAttribute for names the compiler can prove safe (coercion tables byte-identical with ssrAttr). UPDATE/ITEM. Merged in #1068 (agent-authored): compiler-admitted native scalar/data/URL writers preserve coercion, sanitization, hydration, and rollback; 1,280 generic calls become zero per measured changed update.
  • Spread hosts rebuild the whole prop resolution with ~6 allocations per key per render (setHostPropSources :16870, snapshotSpread :16791, setSpread :16989, eventSlot :16714; server twin ssrAttrs runtime.server.ts:2590-2745): fresh row arrays per render; Reflect.ownKeys + propertyIsEnumerable.call per key + Object.create(null) (dictionary-mode from birth) in snapshotSpread; two Maps, a PropWriter, an [identity, name] tuple and a 4-tuple per key, an iterator spread and a second Object.create(null) in setHostPropSources; Object.keys on both dictionary objects in setSpread; eventSlot() allocating for every on* key before the v === pv identity check. ~60–100 allocations per 15-prop host per render on nearly every element of every @octanejs/* binding. UPDATE. Merged in #1068 (agent-authored): reuse writer records and remove normalization/winner tuples; stable handlers skip event parsing. Snapshot/getter/symbol semantics, source rows, arbitrary-name dictionaries, and required alias sorting remain. The 15-prop client case removes 33 intermediate arrays per update; this is not zero-allocation spread rendering. Final disposition in PR #1092 (pending merge): Client writer reuse removes 33 intermediate arrays/update for 15 props. Server canonical writers already avoid a second resolution Map; mixed aliases/spreads retain getter snapshots, own-key semantics, controlled aggregation and ordered writers. The four-attribute server spread case records 512 additional identity lowercase calls; retained normalization prevents source-order/coercion changes. Ledger DOM-02.
  • Multi-root templates drain children one insertBefore at a time (drainFrag :14448, <octane-frag> wrapper :13440): clone template.content and seed __oct_frag on DocumentFragment.prototype so it is one insertBefore(fragment, anchor); keep the virtual-fragment stand-in for hydration. MOUNT/ITEM. Merged in #1068 (agent-authored): native templates cache and insert DocumentFragments; custom-element templates retain per-node insertion because connected callbacks observe sibling visibility. Hydration still adopts existing roots. The measured three-root workload drops 1,794 to 770 insertBefore calls.
  • htext creates and appends a Text node per text-only child (:14540; htextSwap :14565 does insertBefore + removeChild instead of replaceChild): a template placeholder text node clones in C++ and needs only firstChild + nodeValue =, which the hydration branch already does. MOUNT/ITEM. Merged in #1068 (agent-authored): compiler-seeded native text placeholders are reused, htextSwap uses replaceChild, and unseeded/custom hosts preserve append behavior. Label Text creation drops 256 to zero in the mount workload; empty/update/hydration identity and constructor-owned text are covered.
  • Every delegated event pushes the Event object into dictionary mode (endDelegatedPropagation :18070-18085, clearCurrentTarget :18653-18657 in dispatchDelegated's finally, installPropagationMethod/beginDelegatedPropagation :18034-18066): 5–7 own properties added per dispatch (defineProperty for stopPropagation and the currentTarget accessor) then five deleted. On V8 13.6 %HasFastProperties goes false after the first delete in every variant tried (last-added, symbol, accessor, LIFO), so JSObject::NormalizeProperties runs per event and any later native listener on the same event reads through dictionary probes. Microbench of the exact sequence: 260–290 ns/event; with deletes replaced by = undefined 104 ns; symbol-only bookkeeping 3 ns. Install the accessor and shadow once per event and forward to native when [CURRENT_TARGET_NODE] is null; never delete. Observable difference: hasOwnProperty('currentTarget') stays true after the walk. EVENT. probe Merged in #1068 (agent-authored): private state moves to reusable nested-dispatch frames (three temporary private symbols become zero). Public descriptors are restored exactly, including required deletes. The proposed permanent shadows change own-property observability and are not adopted; this does not claim to eliminate V8 dictionary mode. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger DOM-05.
  • composedPath() is built twice per delegated event (three for the focus family) and discarded on the common path (prepareDelegatedEvent :17650, called from the root capture observer dispatchDelegatedCapture :18593 before it checks whether any capture handler exists for the type; bubble buildDelegatedPath :18238 default parameter). Return without the array when _delegationTargets.size === 1 && portalEventTargetCount === 0; bail before computing a path when !_delegatedCapture.has(type); thread the path from the focus-family entry. EVENT. Completed in #1016: no-capture input events dropped from 256 to 128 composedPath() calls for 128 events; nonbubbling play with authored capture and bubble dropped from 3 to 1, with native and framework propagation controls passing. Separate native capture and bubble callbacks still each prepare their own path where an authored capture handler requires it; onFocus maps to native focusin. Current-head CI passed 26/26, and Bugbot reported no findings.
  • A closure + setTimeout(…, 0) per trusted discrete event once any onXxxCapture for that type exists (finishCaptureDispatch :18466, from fix: close the delegated capture window after trusted propagation ends #929): base-ui/aria register capture handlers routinely and the bubble segment closes the window synchronously, so the timer is a no-op ~100% of the time. clearTimeout when the bubble segment runs, or arm only when event.target.$$ctrl !== undefined. EVENT. Completed in merged PR #1017 (8a3da65d): keeps the fallback for pending nested restores and form controls that may be armed after capture; production Chromium measured 16 → 0 zero-delay tasks over 16 trusted captured button clicks with native/framework handler order preserved. Current-head CI passed 26/26 jobs (run); Bugbot completed without findings. Checklist item closed after the merge.
  • Per-event string concat and ~8 Set.has(type) probes ('$$' + event.type :18505, a fresh non-internalised string used as a property key; :18502/:18506/:18509/:18470-18477/:18441). One TypeInfo record per registered type looked up once per native listener. EVENT. Merged in #1068 (agent-authored): capture/bubble registrations share one type record with cached handler keys/category flags; measured event-type Set probes drop 1,408 to zero for 128 clicks, with late registration and redispatch coverage.
  • The path walk is megamorphic in Chrome too (buildDelegatedPath :18251 node.$$portalParent, eventPathNode :18224 target.nodeType, snapshotDelegatedSlots :18111 node[key]): the seven element interfaces on a table-row click path each have their own map, so these were the only steady-state megamorphic sites in the client runtime; the prototype seed removes the negative lookup, not the receiver fan-out. Gate the $$portalParent read on a portal counter (the fast path at :18247 already assumes no portals). EVENT. IC log Merged in #1068 (agent-authored): portal-parent reads are gated on portal presence and topology epoch; reads drop 2,304 to zero in the portal-free workload. Last-portal teardown during an event retains its logical route; other polymorphic DOM reads remain. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger DOM-09.
  • headBlock re-applies every attribute through generic setAttribute and reads textContent per render (:17250). Low. Merged in #1068 (agent-authored): common metadata attributes compare live normalized values before writing (384 to zero writes for 128 stable renders). Mutable coercion and external-edit repair remain; the live textContent check is intentionally retained. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger DOM-10.

De-opt (descriptor) renderer

  • applyDeoptProp allocates an eventSlot record, two substrings and a delegateEvents([type]) array per changed handler prop (runtime.ts:22687-22725, :16714-16736, :17785-17790); inline handlers change identity every render so this runs per row per update; applyHostProps :22977 calls eventSlot unconditionally. Memoise by name; guard with _delegated.has(type). UPDATE/ITEM. PR fix: preserve descriptor ownership and reduce renderer work #1081 merged: known native event names reuse a bounded parsed-record cache; repeated delegation arrays are removed. Unknown names retain parsing and custom-event classification. Cold catalog/cache costs are measured. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger DESC-01.
  • reconcileDeoptChildren indexes the live childNodes NodeList inside its mutation loop (:23453, :23520): each insertBefore invalidates Blink's ChildNodeList index cache so reorder/insert-heavy updates degrade to O(n²) walks. Walk a cursor with the cached getFirstChild/getNextSibling. UPDATE. PR fix: preserve descriptor ownership and reduce renderer work #1081 merged: live sibling cursor removes indexed live-list reads and repeated prefix scans; 512 unchanged foreign rows reduce sibling reads from 133,124 to 3,589. Focus, portals, hydration, and foreign nodes remain covered. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger DESC-02.
  • descNeedsBlocks walks the descriptor subtree before the reconcile walks it again (:23864-23919, from childSlot :24939 and deoptItemBody :23590), invoking the scoped children resolver at every level twice. UPDATE/ITEM. Audited in PR fix: preserve descriptor ownership and reduce renderer work #1081: retain scope-sensitive classification; descriptor identity alone is unsafe. The audit fixes observed scoped child-shape/adoption defects, including nested tags/keys and reordered survivors. A separate stable-array context-propagation defect remains documented below. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger DESC-03.
  • applyHostProps re-writes every attribute, class and handler without diffing (:22917-23013; motion/lynx bindings only). Blink still runs DidModifyAttribute/style invalidation for an equal value. UPDATE. PR fix: preserve descriptor ownership and reduce renderer work #1081 merged: matching live ordinary string attributes/classes and validated event handlers skip redundant writes. Special props, foreign edits, aliases, custom elements, hydration, and diagnostics retain their behavior. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger DESC-04.
  • projectSelectValue indexes the live HTMLOptionsCollection 3–4× per option and runs twice per render (:19629-19666, :19620, :20150). UPDATE. PR fix: preserve descriptor ownership and reduce renderer work #1081 merged (partial cost reduction): one local option lookup per loop iteration reduces changed multi-select indexed reads from 5,632 to 3,072 in the fixture. Both projections and the full pre-mutation journal remain necessary. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger DESC-05.
  • setFormControlSources allocates an assign closure and does five propertyIsEnumerable.calls per spread per render (:19813-19941; the controlled-form bench scenario). UPDATE. PR fix: preserve descriptor ownership and reduce renderer work #1081 merged: aggregated hosts reuse the existing raw writer Map, removing a second source scan; the compatibility resolver no longer creates an assign closure. Its required enumerable probes remain (4/input, 3/select, 2/textarea spread). Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger DESC-06.
  • compilerCacheImmutableArrayFilter re-validates intrinsics with five Object.getOwnPropertyDescriptor calls on every memo hit (:24327-24339; emitted for every auto-memoised .filter/.map): each is a runtime call allocating a descriptor object, on the "deps unchanged" branch. Validate once per flush epoch. UPDATE. Audited in PR fix: preserve descriptor ownership and reduce renderer work #1081: current code has four intrinsic descriptor checks, not five. Retain per-hit validation: a sibling can replace an intrinsic within one root render, so a per-flush verdict is unsound. Final checklist reconciliation: resolved by the merged fixes and explicitly retained contracts above; ledger DESC-07.

SSR (packages/octane/src/runtime.server.ts)

Merged SSR follow-up (agent-authored, 2026-09-14): PR #1088 reuses unchanged populated CSS/head replay snapshots and pending streaming recorders by thenable identity. At 120ce4e44, unchanged populated collections fall 795→160 copies; 32 streaming waves fall 528→32 recorders and 1,056→560 public subscriptions. Local validation passes 1,526 SSR tests, 46 MCP tests, 28 new guards and 317 combined tests with #1069. Current-head CI passed all 26 jobs and Cursor Bugbot passed with no findings. PR #1088 merged on 2026-09-14 as cece195a. Changed snapshots, list/frame/VT snapshots, ordinary read probes, full retries, and the other SSR points remain open; this does not complete either grouped bullet below.

Current follow-up status (agent-authored, 2026-09-13): PR #1077 merged on September 13, 2026, with empty replay-snapshot sharing, lazy hook-pass Maps, scoped-counter storage, and local dev-check reuse. It partially addresses the snapshot/counter groups below; nonempty collection copies and the other SSR audit costs remain separate. PR #1073 merged the SSR escape pre-scan optimization. Neither status closes the broader SSR checklist.

  • Every component render copies the CSS map and head collections for a retry that almost never happens (captureComponentReplayState :3562, unconditional at :3804; runFullFramedPass always installs CSS = new Map() and HEAD = { hints: new Set(), … } at :6940): a ~42-field snapshot plus new Map(css), new Set(head.hints), new Map(head.sheets), VT_SSR_STACK.map(…), activeTryKeys.slice() per component; ~100K Map inserts on a 1,000-component page with 100 scoped stylesheets. SERIAL/SUSPENDED/DEFERRED already use record-length-and-truncate; the same design was rejected for the stream registry at :7787. Also HookPass allocates two Maps per component even when hook-free (:3803) and hookPosition returns a fresh object per hook call (:3443). Use an undo-log for CSS/HEAD mutations. SSR-NODE. Final disposition in PR #1092 (pending merge): The existing immutable snapshot cache now covers completed-boundary discarded fallbacks (832→688 copies and 8992→6688 entries/8 waves). Changed generations retain overwrite/transfer/deletion rollback; live-map aliasing loses accepted CSS. Nonempty list/VT snapshots retain owner paths/consumed flags; measured frame counters begin empty. Lazy HookPass Maps remain, and a shared hookPosition tuple fails reentrant memo/retry output (see metadata audit). Ledger SSR-01.
  • nextChildSegment's fast path is unreachable for compiled components (:3879 extends ASYNC_SCOPE before :3956 creates the frame with seg: nextChildSegment(pf), :514): pf.asyncScope was captured before the child's identity was appended, so every child does Map.get/Map.set keyed by a never-seen cons string (flatten + hash + retain; a keyed-list parent's scopedChildren grows one entry per child). CPU profile: withAsyncIdentity 3.2%, nextChildSegment 2.3%, nextFrameOccurrence 1.6% self time. Represent the scope as a linked node with an interned Smi id, or minimally compute seg before extending ASYNC_SCOPE. SSR-NODE. profile Final disposition in PR #1092 (pending merge): The direct path is reachable for children functions (128 direct segments in the children control). Ordinary compiled components require scoped segments; a parent-wide ordinal mutant loses authoritative keyed-row values during reorder/retry. Short pair-list counters and cached frame paths remain; a larger interned graph has no measured justification. Ledger SSR-02.
  • Server mapSlot 2-arg guard calls Object.getOwnPropertyDescriptor per array element per render (:135-170; emitted by compile.js:13090-13115 for every {items.map(…)}): O(n) runtime calls each allocating a descriptor before a single item renders; also re-probes Array.prototype.constructor and Symbol.species per call. The client twin (runtime.ts:24404) caches the scan per receiver and uses index in receiver. ITEM. Final disposition in PR #1092 (pending merge): 128 eligible elements require 128 descriptor queries plus one constructor and one species probe. Removing guards changes length snapshots, accessor/constructor effects or custom-species visible output; receiver/global caches miss later mutation. Normal, sparse and mutated arrays have clean/observed controls and rejected variants. Ledger SSR-03.
  • Per-list-item identity keys (scopedSsrDeoptKey :997 JSON.stringify + path spreads; encodeAsyncIdentityString :2024-2033 encoded += UNITS[code] per character, twice for keyed children; ssrArm :2108-2111 '@arm-position:' + ASYNC_SCOPE as a Map key per @for item, forcing a flatten + hash of the entire enclosing scope per item, multiplied by nesting; :506). Per-@for numeric arm counter on the frame; separator-escaped raw keys. ITEM. Final disposition in PR #1092 (pending merge): Prior PRs removed flat/nested implicit serialization and scoped-counter overhead. Remaining type/path boundaries and UTF-16 encodings preserve delimiter, lone-surrogate and occurrence identity; compiled 128-row controls reach 128 scoped segments and 257 key encodings. Ordinal scope collapse demonstrably breaks reordered retry values. Ledger SSR-04.
  • isDocumentRoot is where the response rope gets flattened, and the streaming path then copies it again (:8542 body.startsWith('<!--[-->', i); callers spliceHead :6361/:6364, :9007-9030): 6.8% self time in an O(1) predicate because startsWith on a ConsString takes the String::Flatten slow path; in the streaming/document path the flat body is then wrapped in a new cons string, so the writer pays a second full copy. Record a bodyStartsWithHtml flag while building, or flatten once and emit prefix and body as separate chunks. Per render. profile Final disposition in PR #1092 (pending merge): Actual renderer output has 1183 reachable cons strings before document classification and 1 cons root over flat storage afterward; document prefixing is flattened again at UTF-8 encoding. Node/Web transports emit identical 73834 bytes. A root flag adds provenance through dynamic output; prefix chunking adds a write/backpressure boundary while other consumers still inspect strings. No net benefit supports that protocol change. Ledger SSR-05.
  • Three toLowerCase() allocations per dynamic attribute (ssrAttr :2374, sanitize-url.js:57-62, ssrAttrs :2612): V8 only takes the allocation-free scan for strings under 8 chars, so placeholder, tabIndex, data-testid allocate 2–3 throwaway strings per attribute. hasUpperAscii charCode scan (as hyphenateStyleName does) or a name → lower memo. SSR-NODE. Final disposition in PR #1092 (pending merge): Four direct attributes/input reach 512 attribute lowercase calls and 512 URL-name lowercase calls per 128 rows; spread identities add 512. The stateless ASCII-scan alternative has overlapping/slower timings and adds 103 raw/43 gzip bytes; it is rejected without claiming all lowercase costs can be removed. Ledger SSR-06.
  • ssrHostElement per-descriptor overhead in production (:1636-1680): regex exec, tag.toLowerCase() twice, a {namespace, childrenNamespace} result object, a 5-field CURRENT_SSR_ELEMENT of which prod reads one field, try/finally. Memoise per tag. SSR-NODE. Final disposition in PR #1092 (pending merge): 129 hosts/root produce 129 namespace and context records. A bounded cache retaining up to 192 metadata records adds 235 raw/98 gzip bytes, has overlapping repeated-tag samples and a higher unique-tag median. Namespace, invalid-tag, reentrant coercion and finally-restoration controls justify retaining context state. Ledger SSR-07.
  • vtSsrClaimArm flattens every Suspense/@try boundary's cons-string with no ViewTransition on the page (:4384, called at :8160 and :8039; streaming re-runs it every wave): html.indexOf('<') flattens the whole subtree, nested boundaries copy inner content once per enclosing level, /[a-zA-Z0-9-]/.test(html[e]) per character. if (!VT_SSR_HAS_CANDIDATES) return html; is sound. Per boundary per pass. Fixed in #1000, merged as c92b932; current-head CI passed all 26 jobs.
  • spliceHead scans the whole body for </head> whenever any head element was hoisted (:6360-6362): the post-fix: address React behavioral audit defects #943 guard no longer applies once a <title> exists (documented +71/+110/+533 µs per 134/148/996 KB). Gate on isDocumentRoot(body). Per render. Fixed in #1001, merged as ab32364; current-head CI passed all 26 jobs.
  • ssrChildValue allocates two closures and stacks two identity membranes per descriptor component (:1576-1590 then :3879), computing asyncIdentityKey(d.type) twice. SSR-NODE. Final disposition in PR #1092 (pending merge): Flat component descriptors reach 258 render-closure events and 514 identity-key encodings. The outer descriptor scope and component scope govern replay identity, descendant evaluation and cleanup; collapsing them changes the ABI. Existing nested/reordered descriptor and isolation controls cover those boundaries; no measured benefit justifies a replacement. Ledger SSR-10.
  • markChildrenBlock writes a symbol expando onto a fresh closure per <Comp>…</Comp> per render (:6107; emitted at compile.js:12634; client twin runtime.ts:9871-9876 with isChildrenBlock :9892 at :25369/:25561/:25672): a JSFunction has no in-object slack, so each store allocates a PropertyArray and forks the closure map; isChildrenBlock loads polymorphically against plain callbacks. @if arms already use the module-level-function + env-tuple form. SSR-NODE/UPDATE. Final disposition in PR #1092 (pending merge): The 128-row compiled-children control reaches 128 marks. Public isChildrenBlock distinguishes callable template children from ordinary render callbacks; removing the marker fails rendered dispatch. Environment records/render objects change the callable contract and captures rather than merely eliminating an expando. Ledger SSR-11.
  • Streaming: done boundaries re-copy CSS/HEAD per wave, ssrTry allocates ~9 closures per boundary per pass, settleFirstOfWave attaches a new reaction per pending promise per wave (:8059-8075, :7899-7990, :7094). The pending-subscription part overlaps Track five-pass Octane audit fixes across server, SSR, compiler, bindings, and performance #967's "SSR pending subscriptions". Per boundary per wave. Final disposition in PR #1092 (pending merge): Direct boundary scans remove 131 arrays/4192 references over 32 waves; existing snapshots save 144 collection copies/2304 entries over 8 resource waves. Required 32-wave costs remain 528 membership visits, 496 ordinary read probes, 33 canonical passes, 1056 tries and 13728 closure evaluations. Lazy sync-thenable and stale-discovery-prop controls reject probe removal or discovery-output publication; arm-local closures preserve request/reentrant ownership. Ledger SSR-12.
  • Descriptor-path prop reads are megamorphic (createElement :924 p.children, :930 p.ref, hasElementConfigKey :726 config.key, keyed-by-name loops :2814-2815, :2640, :734): five user-props shapes through one helper; settled in warm-up; inherent to the descriptor twin. Low. IC log Final disposition in PR #1092 (pending merge): Five open user-prop layouts are observed in the descriptor workload. Universal field filling changes own-key and omitted-versus-explicit children semantics, checked in rendered output. Shared scoped-child accessors remain; no prop-shape normalization or lifetime cache is introduced. Ledger SSR-13.
  • escapeHtml is 12% + 3.6% regex of the merged profile (escape-heavy fixture): /[&<>]/g.test plus three replaceAll passes is four scans and up to three intermediates per escaped hole. The guarded form was chosen after measurement (a single-pass loop regressed on dense escapes), so this is a candidate to re-measure with a charCodeAt scan and lazy slicing, not a recommendation. Reconciled: the prescan paragraph predates merged #1073. The length-based no-escape guard and retained dense-escape passes have measured alternatives and output controls; see the final ledger.

Universal renderer (packages/octane/src/universal-core.ts)

Universal audit completed: #1086 merged on 2026-09-14 as 7d4dc4f51. Checked entries include measured fixes and explicitly retained designs documented in the audit; they do not imply every proposed rewrite was adopted. Final PR-head CI passed all 26 jobs and Bugbot.

  • delete props.key normalises every keyed component's props (:1710-1712; the compiler emits universalProps([["set","key",id], …]) with key first): the object is then frozen, spread in materializeComponentValue ({...dict} = CloneObjectIC_Slow, 312 vs 11 ns), Object.keys'd and diffed by universalShallowEqual with megamorphic keyed loads. Pass key as the existing 4th argument of universalComponent. ITEM/UPDATE. probe Merged follow-up #1086: Explicit keys and keyed spreads preserve key precedence and getter order without deleting the key.
  • Host props deleted for events/lifecycles/local callbacks become dictionary-mode LogicalRecord.props and command payloads (:3813/:3830/:3852, :2948-2987, :4002): shallowPropsEqual walks a dictionary every commit (207 vs 76 ns for 5 props plus a key array). Build copy-minus-handler-keys instead. MOUNT/UPDATE. probe Merged follow-up #1086: Filtered host payloads preserve ordinary props, refs, events, and local/lifecycle callbacks without deleting consumed fields.
  • materializeNode/materializeValue allocate an O(depth) identity-path array and a one-element result array per node per render (:3697-3708, :3872-3892, :3080, :3641-3647): paths are consumed only at owner-claim points, so ~90% are dead; GC was 14% of the probe profile with materializeNode the top core self-time function. Pass an accumulator; linked {parent, seg} path. MOUNT/UPDATE. Merged follow-up #1086: Static nodes append to caller arrays and keyed scopes share paths. Persisted owner segments and dynamic branch result arrays remain for identity/replay semantics; no linked-path rewrite is claimed.
  • Per-owner draft allocates six collections, then executeOwner throws three away and reallocates (:2236-2269, :2483-2489): hooks: new Map(record.hooks), clonedHooks, seenEffects, children, claimedChildren, appliedUpdates, then seenEffects = []; children = []; claimedChildren = new Set() unconditionally. UPDATE. Status after #1009: Merged as 0ba4016. Fresh drafts reuse their first-pass effect, child, and claim collections; retries still reset abandoned work. Current-head CI passed 26/26.
  • Every child owner claim rebuilds a replay-path array and touches the identity trie (three Map walks) (:2271-2281, :2314-2365); replay paths are read only by suspense replays; ~4.5% self in the probe. Compute lazily; flat Map keyed by an interned token. UPDATE. Status after #1010: Merged as 40f14c3. Owner replay paths are computed only when suspense memo replay needs them; retained and ordinary claims no longer build them eagerly. Current-head CI passed 26/26.
  • Transported roots allocate a WeakSet per prop value via a default parameter, plus a codec context object and closure per prop (cloneSerializableValue :6885-6887 seen: WeakSet<object> = new WeakSet() runs even for primitives, 9 vs 0.8 ns; :7847-7873; every binding in prepareCollapsedTemplateValues :4083 for every row in lynx-render). Lazy seen, one reusable codec context per root. UPDATE/ITEM. Status after #1004 and #1005: Primitive values no longer create a WeakSet (perf: avoid cycle set for primitive transport props #1004), and codec-using roots reuse one resource-handle factory across props and renders (perf: reuse universal codec resource-handle factory #1005, merged as d97637b; final-head CI 26/26). The public codec context object remains fresh per prop because codecs may retain its host type, name, and value; reusing one mutable context needs an explicit contract decision. The context decision is covered by the follow-up below. Merged follow-up #1086: Fresh retainable codec contexts are documented and regression-tested; mutable reuse is rejected because it changes retained host/name/value metadata. Earlier WeakSet and resource-factory fixes remain.
  • useRef cells are accessors whose getter scans all draft owners (:5813-5838, :5155-5162): O(owners) per ref.current read during render. Completed in #1011: an attempt-local lazy index handles repeated cross-owner reads while preserving the allocation-free newest-owner path, retry order, nested preparations, and aborts. Merged as de3f2e6; current-head CI passed 26/26.
  • Every commit deletes and re-inserts every listener in three collections and allocates a dispatcher closure per listener (:10746-10778, :11588-11616). Create the dispatcher once per listener id. UPDATE. Completed in #1008: surviving ordinary listener IDs keep one dispatcher while removed/hidden IDs retire; merged as f86fb48, current-head CI 26/26. Interleaved 128/1,024-listener Node benchmarks improved about 27%, with 43,776 → 2,304 dispatcher registrations in an untimed probe.
  • Duplicate-key validation runs 2–3× per keyed list per render with a fresh Set each time, in production (:3332-3360, :3638-3646, :1585-1596, :10075-10080, :10165-10169; no NODE_ENV branch anywhere in the file). Validate once in reconcile or gate like the DOM runtime. ITEM. Merged follow-up #1086: Unkeyed arrays avoid Sets, a first key delays allocation, and singleton reconciliation skips its Set. Production checks remain for static plans and host-provided keys.
  • Hook-slot symbols rebuilt via array spread + Symbol.for per nested hook (:4851-4868). Same fix as the client resolveSlot cache. UPDATE. Partial fix merged in #1026 as 9fd4fd8 on 2026-09-10: indexed traversal removes the temporary stack-plus-own array for nested universal/native hooks (1,024 → 0 resolver array events across 1,024 calls in each measured 128-owner render phase; direct hooks and semantic controls unchanged). At the perf: avoid nested universal hook slot arrays #1026 merge, key strings and Symbol.for work remained; the perf: reduce repeated hook bookkeeping #1076 follow-up below resolves that remaining work. Bounded path-cache follow-up: PR #1076 covers the remaining universal key/registry work; repeated depth-three paths drop 8,000 registry calls and 64,000 string-construction source sites to zero, while depth twenty retains the ordinary fallback. Final-head CI passes 26/26 jobs and Bugbot passes; perf: reduce repeated hook bookkeeping #1076 merged on 2026-09-13 as 1e12db7d6. The bounded cache and deliberate overflow/deep-path fallback resolve this entry. Final-head CI passed 26/26 jobs at 294f6b0cf; the PR is merged.
  • The retention fast path walks the retained subtree with Object.values(props) per host (:2655, :4595-4616). Record treeFeatures at commit. UPDATE. Merged follow-up #1086: Accepted subtree feature unions are cached and invalidated on affected writes; collapsed descendant events and own-key semantics are covered.
  • Blueprint records have nine literal shapes and host commands fourteen (ranges :2578/:3067/:2660/:3314/:3480/:2775/:3710/:9757; hosts :3878 vs :3919 post-hoc templatePlan vs :3986/:4103; commands :520-600 read through one command.op site at freezeUniversalHostBatch :11432 and every driver loop, plus per-command Object.freeze). --log-ic shows kind polymorphic in reconcileChildren and N at the command consumers. One factory per kind; a single HostCommand shape (public driver ABI: needs a protocol bump). UPDATE. IC log Merged follow-up #1086: Sparse blueprints and public commands are deliberately retained. The audit records ordinary-path map evidence and larger structured-serialization payloads for all-field commands.
  • createPreparedTransaction is 1,877 lines / 26.7 KB of bytecode with ~20 closures and ~15 Sets/Maps per commit (:9983-11859); --trace-deopt shows it reaching only Maglev before "dependent field type changed" invalidation. materializeValue (636 lines, 10 KB, twelve separate ?.$$kind loads in if-chain order) has the same problem; three "fast-path" transaction builders each walk the whole tree first (:9203-9981). Split the per-node loops into top-level functions. Per commit. Merged follow-up #1086: An attempt marker skips irrelevant compact builders and expansion. Required reconciliation and phase state remain; both large functions reach TurboFan on the audited Node 24 workload.

Compiler output (client and server)

Corpus: benchmarks/{js-framework,dbmon,todomvc}/octane-tsrx, examples/cinebase, and the context/components test fixtures, compiled with compile(src, path, { mode, hmr: false, dev: false }) (the codegen-size production settings minus minify).

  • Client array destructuring of __extra in every @for item and @if arm body (const [remove, select, selected] = __extra;; 25 sites in cinebase including elision-only const [,,,] = __extra;): GetIterator + N × next()/.done/.value + IteratorClose; Ignition/Sparkplug/Maglev allocate the iterator and N result objects per call and only TurboFan removes them, so the first few hundred of the 10,000 __item$1 calls on create-10k pay it. The compiler already emits const selected = __extra[2]; elsewhere. ITEM. Fixed for client codegen in #992; the server capture path was unchanged.
  • HandlerBundle literals start with a computed Symbol key (runtime.ts:17545,17555,17569,17585, evt0…evtN: { [EVENT_SLOT_KIND]: HANDLER_BUNDLE_KIND, fn, args: [a0] }): V8 builds the object-literal boilerplate only from the properties before the first computed name, so the boilerplate is empty and fn/args become DefineKeyedOwnPropertyInLiteral stores (--print-bytecode: symbol-first emits three keyed defines; symbol-last emits two named defines against the boilerplate plus one keyed). Two bundles per js-framework row. Brand last, or via a module-private class; store fixed-arity args as fields. ITEM MOUNT. bytecode Brand order fixed in #991; scalar evt1/evt2 arguments followed in #995.
  • Array/object class values get no change guard: unconditional clsx compose and className write (_$setClassName(_b.a, { completed: …, editing: … }) per re-rendered todo; setClassName :16492-16512, normalizeClass css.ts:9-32): a fresh literal every render defeats the _b.x !== _v guard used for string classes, and the unconditional className write runs Blink's ClassAttributeChanged → SpaceSplitString parse + invalidation every time. Compose first and guard on the composed string with the existing setClassNameIfChanged :14822. ITEM/UPDATE. Equal composed strings now skip DOM writes in #996.
  • Multi-statement inline handlers re-allocated per render and re-written on the update path (_$setEventHandler(_b.b, '$$click', (event) => { … }) in the else-branch; todomvc.Main.client.js:65-66, six cinebase sites): a fresh JSFunction per render plus a heap Context at every body entry because the arrow captures locals. Lift into module-level (a0, a1, event) => {…} and use evtN/evtNu (:17584/:17589). UPDATE. Implementation in #1078: eligible native block arrows with one or two immutable captures use module functions and fixed-field descriptors. The 128-update control eliminates 256 slot writes; mutable/larger captures, lexical escapes, and shared native event slots retain closures. Merged 2026-09-13; retained cases are recorded in the linked audit.
  • @if env tuples allocated eagerly even when the arm is absent, and rebuilt at every nesting level (_$ifBlock(…, cond, __then$3, null, _b.h, [commitEdit, editKeyDown, t]) per re-rendered todo; cinebase __else$30 → __else$32 → __else$34 re-materialise [props, result, titles] then [props, titles]). Emit cond ? […] : undefined for else-less ifs; pass __extra through when identical. UPDATE/ITEM. Implementation in #1078: absent arms skip arrays, and identical nested capture layouts forward the parent tuple when it cannot escape. Local shadows, differing layouts, arguments, and eval retain independent tuples. Merged 2026-09-13; retained cases are recorded in the linked audit.
  • Server codegen: an IIFE per attribute hole, a thunk + key IIFE per keyed item, Array.from per @for (js-framework.Main.server.js:187-195, todomvc.Main.server.js:66-104; ssrArm runtime.server.ts:2101-2119): the IIFE captures row so the item body allocates a Context per row plus a closure per hole; __html += _$ssrArm(((t) => t.id)(__it), () => __sitem$1(__it, __s)) adds two closures and a per-iteration Context, then ssrArm builds three strings and does a Map get+set before withAsyncIdentity builds two more; Array.from(items ?? []) copies an input that is already an array (the client forBlock avoids this at runtime.ts:32093). SSR-NODE. Implementation and audit in #1078: sole eligible attributes inline, key evaluators move outside item loops, and ssrForItem directly invokes compiled bodies under the same async identity. Multi-value/spread/form ordering frames and iterator snapshots are retained for observable semantics; async identity bookkeeping was separately addressed in merged #1077. Merged 2026-09-13; retained cases are recorded in the linked audit.
  • useState references arguments.length (runtime.ts:8057): Ignition emits CreateUnmappedArguments at entry on every call regardless of the short-circuit; Maglev/TurboFan elide it; compiled sites always pass two arguments. Route manual providers through a separate entry. Low. Audited in #1078: retain the check. Removing it breaks legacy manual calls; alternating default-JIT/jitless runtime measurements established no benefit to justify a separate compiler/runtime entry. The committed benchmark records this disposition. Merged 2026-09-13; retained cases are recorded in the linked audit.

Oversized hot functions

None exceed V8's ~60 KB TurboFan ceiling, so they optimise; the costs are no inlining, register pressure, and one deopt in any rare arm discarding the optimised code for the hot one. The hydration, ROOT_RENDER_TRANSACTION, off-screen-swap and upgrade-adoption arms sit behind guards that are false on the common path and can be split into cold functions (mind the reachability hazard from #767: naming a heavy function from a hot compiled path retains its graph).

  • childSlot runtime.ts:24820-25734: ~915 lines, 9.1 KB bytecode, 15 params, 75 registers, 600 B frame; 26 call sites with arities 5/7/8/9/13/14 and anchor ∈ {Comment, Element, null, undefined}. Every renderable hole and value-position component. Remaining investigation (scope correction after merged perf: investigate remaining client hot paths #1090): this separate entry was not included in the grouped client-function audit. It still needs a measured optimization or explicit retained-design disposition. Final disposition in PR #1092 (pending merge): The compiled public-root control observes 7 childSlot calls per completed scenario, 8977 bytecode bytes and natural Maglev. Existing-slot bypass loses the null-to-host output; extracting initialization has no demonstrated end-to-end win and retains ownership/marker flags. Clean, diagnostic and observed semantic digests agree. Hydration/interruptions/context remain owning-suite coverage. Ledger LARGE-01.
  • componentSlotImpl :21579-22111: ~533 lines, 3.6 KB, 14 params. Every <Foo> mount and update. Remaining investigation (scope correction after merged perf: investigate remaining client hot paths #1090): this separate entry was not included in the grouped client-function audit. It still needs a measured optimization or explicit retained-design disposition. Final disposition in PR #1092 (pending merge): The compiled public-root control observes 19 componentSlotImpl calls per completed scenario, 3539 bytecode bytes and natural Maglev. Existing-slot bypass loses fresh captures; stable type/key do not prove stable props/state/context. Generic/void entries already share a lifecycle core, and duplicating it has no measured benefit. Ledger LARGE-02.
  • renderBranchSlot :30560-31037 (478 lines), reconcileKeyed :33023-33497 (475), forBlock :32072-32340 (269), mountItem :33703-33930 (228; the client-mount path is the last ~60 lines, the hydration half is dead weight in the same unit), renderBlockInner :6880-7150 (270, nested try/catch/finally), setAttribute + coerceAttrValue (~180 + ~150), useState with inline setter (~160), mapSlot (client) :24404-24555 (152, arguments.length dispatch). Client investigation in PR #1090 (merged 2026-09-14 as 248af4edc): every listed client function now has a concrete alternative and retained-design decision. All eight functions other than the separately measured branch renderer naturally reach Maglev in the Node 24/V8 diagnostic; three reach TurboFan. useState is already only 59 bytecode bytes. Source size alone does not establish a profitable split; see the audit.
  • createPreparedTransaction universal-core.ts:9983-11859 (26.7 KB), materializeValue :3056-3691 (10.2 KB), materializeNode :3692-3904 (3.7 KB). Merged follow-up #1086: materialization allocations and optional compact scans are reduced; required phase orchestration is retained with bytecode/tiering evidence in the universal audit.
  • ssrTry runtime.server.ts:7899-8270 (~370 lines + 9 nested closures), ssrAttr :2246-2440, ssrHostElement :1636-1830 (~195 each). Final disposition in PR #1092 (pending merge): All three are measured against actual function identities: ssrTry 3098 bytes, ssrAttr 1598 bytes, ssrHostElement 1292 bytes. Each naturally reaches Maglev and TurboFan in the 300-round diagnostic, with pending/rejected/static controls. Size is not a permanent-tier or throughput claim; field/parameter passing, reentrancy and serialization costs remain without a measured win for a split. Ledger LARGE-05.

Already correct (do not re-audit)

Scheduler queue drained by index and truncated once; effect/ref/store queues use one splice(0) per commit by design; TRANSITION_JOURNAL is PACKED_ELEMENTS from the first push; hook.pendingBatches counter; BlockImpl constructor field order and createBlock's fixed 9-arg call; ChildScope/EffectSlot/PendingEffect/CompSlot/ChildSlot/TrySlot/ErrorSlot/ActivitySlot/ControlledState shape-consistent; bagN one literal per arity; LIS Int32Array cached, lis() stays PACKED_SMI, ≤4-move shortcut; batchClearItems textContent = '' / Range ≥512; initDomOperations seeding of the string-keyed expandos and per-type $$<type>; cached getFirstChild/getNextSibling at shared sites; setText writes nodeValue without reading; setStyle string form is one cssText compare; evt0/1/2/N mutate in place on update; controlled-form restoration never reads activeElement or forces layout; escapeHtml/escapeAttr guarded regex + compile-time pre-escaped statics; SSR output is cons-strings with __html += flattened once at emission; hook slots numeric at compiled base-hook sites; $$click pre-seeded so setEventHandler is monomorphic; universal LogicalRecord/DraftOwner single literal sites; for (const [name, slot] of node.bindings) lowers to indexed loads.

Validation harnesses and gaps

fix area timing harness deterministic control
root journal gate benchmarks/activity/run.mjs 8 --target=octane-tsrx, bench.mjs --quick js-framework benchmarks/activity/work.mjs named-call counts (journal helpers → 0 on plain updates); benchmarks/suspense-recovery/root-work.mjs green on the gated-on path
shape fixes (Block, slots, hook cells, Frame) js-framework, dbmon, effectful-list update_nodeps --log-ic transitions into N at the named sites; %HaveSameMap across two blocks/slots in a vitest probe
dictionary-mode descriptors / memo js-framework octane-jsx-naive / octane-ts, memo-wall with ≥2 wrappers, ssr-throughput deopt-page %HasFastProperties probes; descriptor for-in / 4-field-read microbench
resolveSlot cache, dense hooks hook-memo, hook-store-composition, store-selector-fanout --cpu-prof share of SymbolFor + String::Flatten; tests/hydration/prod-mode-hydrate.test.ts (custom-hook slot paths are load-bearing)
effects effectful-list effect-order snapshot tests
attributes / spread hosts svg-dashboard, controlled-form, base-ui/aria differential rigs ssrAttr/client coercion parity in the differential rigs
events event-delegation, hydration-interactivity, controlled-form own-property parity tests for currentTarget/stopPropagation
SSR ssr-throughput (news-N, deopt-page, escape-heavy, waterfall-d), streaming-ssr byte-identical output across passes; encodeAsyncIdentityString injectivity
universal lynx-render, universal-leaf-update, lynx-list host command batch snapshots
codegen codegen-size (size must not regress), js-framework create-10k compiled-output snapshots

Harness gaps worth closing regardless: memo-wall uses a single memo() wrapper, there is no Suspense-in-a-list fixture, and octane-jsx-naive is not gated, so the dictionary-mode wrapper path, the Block-map fan-out beyond two maps, and the de-opt renderer costs are invisible to the weekly bench today. Final reconciliation: memo-wall already has Row and Inner wrappers; memo-wrapper-shapes covers 128/1,024 distinct wrappers, and streaming-ssr already has per-card Suspense under a keyed list. The final closeout PR adds a client 64-row Suspense-list control and wires the actual naive JSX/TSRX work driver into 68 deterministic ratio guards with clean/observed semantics. The weekly Bench workflow runs all registered suites. See coverage and limits.

Completion criteria

  1. Reproduce each item on current main before fixing; annotate items already fixed or intentionally divergent. Keep PR links next to each checklist item.
  2. Fix in the owning package with a behavioral regression where semantics could move (Suspense rollback, hook slot identity, event own-property parity, SSR byte identity).
  3. For every performance change capture before/after with the harness and the deterministic control in the table above; same commit inputs, same machine state, interleaved runs; treat deltas inside noise as inconclusive. Shape fixes are expected to remove polymorphism and warm-up deopts, not to move js-framework numbers by themselves (pre-shaping bag literals measured neutral before).
  4. Run pnpm sync before any push and current-head CI for each PR; the weekly bench.yml ratio guards are the size/perf ratchet, so re-record budgets deliberately.

Activity

  1. added
    perf
    agent-authored
    on Sep 7, 2026
  2. domgan-oai commented on Sep 7, 2026

    @domgan-oai
    Contributor

    The separate keyed @empty rollback defect tracked in #984 was fixed by merged PR #986 at d5de04f; #984 closed automatically. It covers the same-drain root hold, later keyed insertion, a 1,000-row clear, and connected cleanup when a nested Suspense boundary commits its fallback. PR current-head CI passed on 71b8e29f, and the post-merge main run passed all 26 jobs. The remaining performance checklist in this issue is unchanged.

    The post-merge main CI run for #982 initially failed one pristine upstream React input-otp browser selection assertion. A retry on the identical 2c1ffaa commit passed every job. That harness does not import Octane's runtime, and PR #986 independently passed the same parity shard. This appears intermittent; no runtime change was needed for the CI retry.

  3. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The client class-field item landed in PR #989, merged as c9447c3. It makes BlockImpl, ScopeImpl, and LiteBlockImpl declarations type-only while retaining constructor assignments and the previous property order. The same-environment source-only keyed-mount comparison was directionally faster, and the V8 probe removed 70 redundant field definitions; the public mount/hydration regression went red when a constructor assignment was deliberately omitted. Current-head CI passed all 26 jobs, including the new regression in both octane and octane-prod; it merged on 2026-09-08. This coordination issue remains open for the other audit items.

  4. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The next hidden-class stability item landed in PR #990, merged as 4d00715. It reserves nine optional fields in BlockImpl so ordinary, Suspense, Activity, and warming blocks retain one V8 map. A public hidden-Activity/Suspense retry regression passes and turns red when the Activity back-reference assignment is omitted.

    In the same-environment source-only boundary comparison, 1,024-row visible updates were directionally faster (Activity 3.95 → 3.50 ms; resolved Suspense 4.05 → 3.45 ms). The 10,000-row keyed mount difference was within noise. The measured tradeoff is about 32 retained bytes per Block and 38 gzip bytes for the full-index bundle. Pinned current-head CI passed all 26 jobs, including the new regression in both octane and octane-prod; this coordination issue stays open for the other findings.

  5. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The Symbol-first handler-bundle item landed in PR #991, merged as 890527f. It puts the private Symbol brand last in the four delegated handler bundle factories and the synchronous-dispatch snapshot. The exact production evt1 probe retained 8 fewer bytes per bundle and emitted fewer keyed property definitions; a source-only 10,000-row keyed mount with two handlers per row was directionally faster in eight paired cycles. The public event regression covers zero, two, and three callback arguments plus an in-flight update.

    Pinned current-head CI passed all 26 jobs, including the compiled event suite in both octane and octane-prod. This addresses the Symbol-first layout portion of the checklist item; storing fixed-arity arguments as fields remains a separate unimplemented suggestion. #981 stays open for that and the other audit findings.

  6. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The client __extra capture item landed in PR #992, merged as faae10e01444d3c3080f0220747b3987f4f06a40. Hoisted client helpers now read only their own captures at fixed indices in the shared tuple, including sparse @for item/@empty and nested branch arms. A public keyed fixture covers shadowing, reorder identity, branch changes, empty state, and refill; a wrong-index mutant turned it red. SSR codegen is unchanged. Current-head CI passed all 26 jobs at 0dd952979b441b10bd0e2ea8c5779c11583770ec, including the regression in both development and production projects.

    The same-toolchain codegen-size comparison on merged main and the merged PR head found two pre-existing deterministic ratio breaches. This PR adds 75 compiled gzip bytes in the fixed corpus (27,823 → 27,898), 109 minified bytes, and 340 raw bytes. A compact numeric-property binding trial on an isolated branch saved 15 gzip bytes but remained 60 bytes above main and showed no measurable keyed DOM gain, so it was not shipped as a separate PR. The merged tradeoff is recorded here for subsequent work. The full quick Bench run was canceled after more than 60 minutes. Its partial artifact covers 78/92 suites; suite 79 logged no progress for about 26 minutes and no full ratio summary was reached. The paired targeted runs above remain the deterministic size evidence. The synthetic Node bytecode probe removes iterator work on fresh helper calls; a keyed Chromium DOM proxy stayed within timing noise, so no compiled application speedup is claimed.

    #981 remains open for other audit items, including fixed-arity event argument storage.

  7. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The fixed-arity event argument follow-up was merged in PR #995 as fbbb53d. evt1/evt2 keep their callback arguments on the branded bundle instead of retaining an additional array; evt0 and evtN retain their array paths. The compiler call ABI is unchanged. Public regressions cover one/two-argument queued handlers during synchronous dispatch and restoring those handlers after a suspended root update. Both scenarios passed in a source-only harness and turned red when their respective preservation step was removed.

    Exact production-runtime post-GC A/B saved about 48 retained bytes per evt1/evt2 bundle. Paired Chromium keyed mount timings at 1,000 and 10,000 rows overlapped noise; the full-index bundle grew 22 gzip bytes, so no application speedup is claimed. Pinned PR-head CI passed all 26 jobs at 19c829d16831a1e3d59a862838f380dddffccb94 after retrying one unrelated asynchronous Dialog parity warning on the identical head. The new audit suite passed 20/20 tests in both development and production.

    The pinned PR-head event/bundle benchmark and same-workflow latest-main baseline passed every event correctness/work gate. Both runs failed the same 55 pre-existing bundle-size ratio guards, with no new breach. The PR adds 65 gzip bytes to the Octane TSRX framework bundle on the pinned toolchain; two-sample event timings across separate VMs are inconclusive. #981 remains open for the other audit items.

  8. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The next bounded audit fix is PR #996: fresh array/object class bindings compare the composed string and skip unchanged DOM class writes. It includes mount/update, SVG, hydration-adjacent, and suspended-root rollback regression coverage, plus a patch changeset. This comment is agent-authored.

    Merged on 2026-09-08 as 1158956 from PR head 3d18ef459f093a0efff9b946978e39f5798853df, with current-head CI attempt 2 green (26/26 jobs); one unrelated pristine Input OTP browser selection test passed on the identical-head retry. Pinned pre-fix validation saw the new unchanged-class DOM mutation tests fail in both dev and prod on merged main. Paired adapted benchmarks against main cleared the Weather raw budget by five bytes (22,619/22,624), had the same 57 existing ratio breaches on both heads, and passed TodoMVC semantic controls; timings from separate runners are inconclusive. PR #996 has merged. #981 stays open for the remaining findings.

  9. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The next bounded #981 finding is PR #999, which keeps the SSR Frame.namespace field in the initial object shape across child, root, and discovery frames. The branch preserves SVG/HTML parser inheritance and includes a retry regression; removing that inheritance made the test fail in both development and production. This comment is agent-authored.

    The PR merged on 2026-09-08 as 7fca4d3 from head 664b52a00b3768cb9d266456423e0db77b891b9f. Focused pre-merge tests passed (212 SSR/streaming/conformance assertions), and paired production SSR waterfall runs preserved response bytes and marker counts; latency differences were within noise. The current upstream lockfile requires @tsrx/[email protected], which the configured local registry returns 403 for, so post-merge local installation and sync could not complete. Current-head CI passed 26/26 jobs on 664b52a00b3768cb9d266456423e0db77b891b9f; this was the green merged head. #981 remains open for the other audit findings.

  10. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The next bounded #981 finding is PR #1000: ordinary server Suspense/@try arms now skip ViewTransition candidate scanning when the active pass rendered none. A buffered and streaming regression protects content, fallback, and revealed markup; the existing ViewTransition tests protect real enter/exit claims. This comment is agent-authored.

    In a same-toolchain source-bundle probe with 12 nested no-ViewTransition boundaries around 1,000 spans, paired baseline medians were 0.02102 / 0.02063 ms per render versus 0.00512 / 0.00515 ms with the guard. Response bytes, marker count, and SHA-256 were identical; this is a focused mechanism probe, not a typical application throughput claim. The pinned local install and pnpm sync were blocked by the configured registry returning 403 for pinned @tsrx packages; direct generated-file checks and scoped formatting passed. The first PR head exposed a release gap between [email protected] and @types/[email protected], so the same PR also repairs the required CI lane to typecheck the newest matching pair and test the newest Three runtime. Current-head CI passed all 26 jobs on 91e48e7e6b37840bf663061b619230f22a97e583, including Three compatibility, Node and React parity suites, typecheck, lint, browser integration, and provenance; Cursor Bugbot passed without review comments. PR #1000 merged on 2026-09-08 as c92b932. #981 remains open for other findings.

  11. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    PR #1001 merged on 2026-09-08 as ab3236409f2446f08d1718daa63c81fe86b15837. Buffered SSR now detects a document root before searching for </head>, so a fragment with hoisted metadata skips a whole-body scan. The regression covers a raw <!-- </head> --> fragment whose title was previously misplaced inside the comment, and authored/synthesized document heads across string, static, and prerender APIs. This comment is agent-authored.

    A same-toolchain production source-bundle ABBA probe on an 86,648-byte hoisted fragment measured median sample medians of 0.0763 → 0.0078 ms per buffered render; output bytes and SHA-256 matched, the no-hoist control remained about 0.0034 ms, and document control timings overlapped. This isolates the fragment scan rather than typical application throughput. Source-only development/production and streaming output checks passed. Local pnpm sync and pinned tests were blocked by the configured registry returning 403 for pinned @tsrx packages. The first PR head exposed a test-only import error (prerender belongs to octane/static), corrected in a signed follow-up. Final-head CI passed all 26 jobs on 6056abb7497b57d38fa67780a22d74ad6eb8ad5c, including the SSR regression in development and production, typecheck, lint, browser integration, and provenance. Cursor Bugbot passed without comments. The #981 checklist item is complete; #981 remains open for the other findings.

  12. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The next bounded #981 finding, PR #1004, merged on 2026-09-08 as 12ea12aaa41307bf3b2bc06fe68718599e4de3f1 (head da4c63803985b09be7e26b21e94601a88e958b92). The universal renderer now allocates its cycle-detection WeakSet only for object-valued transported host props. A regression exercises primitive values, shared nested objects, cloned snapshots, and cycle rejection through both the codec and plain transport paths. This comment is agent-authored.

    On the pinned production source bundles, a 256-primitive-prop transport prepare used 256 → 0 WeakSet allocations; object-valued and local controls stayed at 256 → 256 and 0 → 0. The focused serializer ABBA probe measured 0.01773 → 0.00882 µs per primitive call; the full renderer timing ranges overlapped, so no end-to-end throughput improvement is claimed. Wire command hashes matched across versions. Local pnpm sync, repository pnpm typecheck, scoped formatting, and 266 development/production transport and renderer tests passed. Current-head CI passed all 26 jobs on attempt 2 for da4c63803985b09be7e26b21e94601a88e958b92, including the React parity, transport test, typecheck, lint, browser integration, and provenance gates. The first attempt could not run an unrelated Base UI drawer file in its broad parity shard; a focused same-head run passed all 16 tests and the retried shard passed. Cursor Bugbot passed without comments. The primitive-allocation portion of the #981 item is complete; the checklist item remains open because per-prop codec context allocation has not been addressed.

  13. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The next bounded transport allocation change is PR #1005. It reuses one root-bound resource-handle factory for host prop codec calls while keeping each public codec context a fresh snapshot. The regression covers late codec installation, callback reuse across props/renders, borrowed handles, cross-root rejection, and recovery; an old-allocation mutant fails in both development and production.

    In a 256-prop production source-bundle probe, the number of distinct factories per prepare falls from 256 to one (still one across two prepares). Wire hashes and root ownership match, with a +68-byte bundle cost. Public prepare timings change direction with process order, including no-codec controls, so no end-to-end throughput gain is claimed. Local pnpm sync, repository pnpm typecheck, scoped formatting, and 268 transport/renderer tests passed. This comment is agent-authored.

    The final-head CI run passed all 26 jobs on c0ec99caa31b70e61243a7b549e5ce85f5d63593, and Cursor Bugbot passed without comments. PR #1005 merged on 2026-09-08 as d97637b. The #981 checklist item remains open: the public codec context object still needs a fresh allocation per prop under the current retention contract.

  14. domgan-oai commented on Sep 8, 2026

    @domgan-oai
    Contributor

    The next bounded #981 first-fill allocation change is PR #1006. It removes the throw-only mounted: Block[] from mountItemsLinear and unwinds completed keyed rows through their existing backward sibling links. A public three-row regression covers a key getter error, suspension on retry, detachment of completed prefix nodes, recovery, and keyed node identity after reorder. Disabling the cleanup loop turns that regression red in both development and production. This comment is agent-authored.

    The same-toolchain production runtime bundle shrank by 25 raw and 20 gzip bytes. A generic 256-row first-fill benchmark preserved the output hash and keyed survivor identity; paired timing differences overlapped in both process orders, so no throughput gain is claimed. Local pnpm sync, repository pnpm typecheck, scoped formatting, and 230 keyed-list/hydration tests passed. Current-head CI passed all 26 jobs on 8457b52ff613cd7070d1303338fe3fa904f4a898; no review feedback has appeared. The commit is unsigned because the local Secretive signing agent refused two attempts; GitHub main branch protection does not require signatures.

    PR #1006 merged on 2026-09-09 as 31aff05. The #981 mount-array checklist item is complete; #981 remains open for the other audit findings.

  15. 5 remaining items

  16. domgan-oai commented on Sep 9, 2026

    @domgan-oai
    Contributor

    Next #981 finding in progress: PR #1015 addresses the un-seeded DOM expando reads. It seeds raw HTML ownership keys and the de-opt descriptor on Element/CharacterData prototypes, plus the uncontrolled default-value baseline; the new keys are nonenumerable. The DEFAULT_CHECKED_INITIALIZED marker is intentionally left unseeded after inspecting its only runtime read: seeding a presence marker would require extra work on every first defaultChecked write.

    The new checkbox and mixed raw HTML/de-opt regressions were each observed failing under deliberately broken implementations, then passed in both development and production modes. A focused run passed 228/228 tests, and a broader Octane run passed 17,475 tests with one timeout that passed on an isolated rerun (6/6). Frozen baseline/candidate production builds matched all eight semantic hashes; the intended prototype hits are present and lookup timing falls within control variation, so this PR makes no throughput claim. The PR is agent-authored. Current-head Actions CI passed 26/26 jobs at f0336258c; Cursor Bugbot passed without findings. PR #1015 merged as 593bf2e. Its checklist item is complete; this issue remains open for its other findings.

  17. domgan-oai commented on Sep 9, 2026

    @domgan-oai
    Contributor

    Completed #981 finding: PR #1016 addresses repeated delegated composedPath() calls. The root capture observer now stamps membership without constructing a path for the ordinary single-root/no-portal case; a nonbubbling event reuses its path across the capture and emulated bubble queues. Nested roots and portals retain eager ownership preparation.

    In the same production Chromium work gate, 128 no-authored-capture inputs made 256 path calls on merged main and 128 on the PR head; one nonbubbling play event made 3 and 1 respectively. Authored input capture stayed at 256 calls and all portal, native propagation, controlled form, handler order, and current-target controls passed. The new behavioral regressions passed 62/62 development/production event tests; repository typecheck passed. A broad local Node 26 test run encountered unrelated timeouts and localStorage failures, then exhausted its 4 GB heap. The email preview watcher failure reproduces with the unmodified main runtime; isolated Jotai and compiler/Volar reruns passed on Node 22. Current-head Actions CI passed all 26 jobs at 937fc527, including Node 24 tests and Chromium integration; Cursor Bugbot passed without findings. The PR declares agent provenance. PR #1016 merged as c6300cf3; its checklist item is complete, and #981 remains open for the other findings.

  18. domgan-oai commented on Sep 9, 2026

    @domgan-oai
    Contributor

    Agent-authored progress update for the capture fallback timer item: PR #1017 merged as 8a3da65d on 2026-09-09. It skips the fallback task for ordinary captured discrete events with no pending controlled restore, while retaining it for nested restores and form controls that may become controlled after capture.

    The production Chromium work gate measured 16 → 0 zero-delay tasks for 16 trusted button clicks. Native/framework capture and bubble order, current targets, the existing input/portal/media work gates, and the trusted stopped-input browser regression passed. The two new restore regressions were each observed failing under deliberately unsafe guards. Current-head CI passed all 26 jobs, and Bugbot reported no findings. The #981 checklist item is now checked; the coordination issue remains open for other findings.

  19. domgan-oai commented on Sep 9, 2026

    @domgan-oai
    Contributor

    Progress on the context-only useBatch([ctx]) item: PR #1018 merged as 70c29ab and final-head CI passed at 19c404f30 (28 passing checks, six expected skips; Bugbot passed).

    The recursive-context production work gate measures 1,024 fewer useBatch calls on mount/full update and 32 fewer on partial update/remount, while exact text-write controls remain 1,024/32. Plain TypeScript client/server context-only hooks generate no batch; mixed promise reads keep theirs. Behavioral coverage checks provider updates, pending descendant warming, lexical shadows, and SSR hydration. The checklist is now checked after the merge.

  20. domgan-oai commented on Sep 9, 2026

    @domgan-oai
    Contributor

    Progress on the per-consumer context cache item: PR #1019 merged as 266302e from head 21ae658a1. A production Chromium gate with 512 keyed single-context consumers records 518 → 6 Map constructions on mount (512 removed); the zero-context control stays at 6 and two-context readers still spill at 518. DOM values, provider updates, keyed identity, remount, and hosted-owner behavior pass.

    Current-head CI passed 26/26 jobs on attempt 2; Bugbot passed. Attempt 1 had a Vitest worker error while starting an unrelated base-ui SliderTrack test, which passed 30/30 locally, and the parity shard passed on retry. The checklist remains open for the separate provider-walk has/get probes.

  21. domgan-oai commented on Sep 9, 2026

    @domgan-oai
    Contributor

    PR #1020 merged as 9b17f4e. Its final head 18296d007320eb6692230099a233e4e3bf82bca7 passed all 26 CI jobs.

    This addresses the child-only registration part of the warm-plan allocation finding. Eligible components reuse their attached plan and props, and runtime registrations use a flat stack. Production recursive-context empty-batch calls drop from 2048 to 0 on mount/full update and from 62 to 0 on partial update/remount. Text writes, DOM, survivor identity, first-suspension request discovery, and fallback controls pass.

    Validation: 989 core test files / 17,514 passing tests (14 expected failures), full repository typecheck, focused regressions, production browser work gates, and current-head CI. CI needed retries for upstream React input-otp selection and SWR polling controls; their local suites passed with 19 and 362 tests respectively. No code change was required for those retries.

    The checklist item stays open: own-creation/complex fallback plan allocations and warm-memo ancestor walks still need separate work.

  22. domgan-oai commented on Sep 11, 2026

    @domgan-oai
    Contributor

    Agent update: opened draft PR #1057 for the per-list getKey callback portion of the de-opt list key item.

    The change passes existing prepared key arrays or compiled-map key functions into reconciliation directly. Both selected production callback-construction sites drop from 512 executions to zero per phase in isolated descriptor and mapped-list cases. The compiled @for control remains at zero; complete markup, node identity, typed inputs, and focus are preserved. Bundle delta is +107 minified / +38 gzip bytes. Warm timing distributions overlap, so no throughput or actual V8 heap-allocation claim is made; the PR documents the short-run timing limitation and a rejected larger implementation.

    Core source/public typechecks, scoped formatting, sync, and the production browser work gates pass. The PR remains draft: new/affected dev and production tests plus deliberate-red checks are awaiting a missing local test dependency. The configured registry returns 404 for @tsrx/[email protected] and its required @tsrx/[email protected]; the compiler download was explicitly approved and verified, while separate approval for the runtime dependency is pending. Current-head CI has not been validated.

    The grouped checkbox stays open. Explicit/nested key encoding, keyed component-slot coercion, and the issue's other costs remain separate follow-ups. PR #1057 is not merged.

  23. domgan-oai commented on Sep 11, 2026

    @domgan-oai
    Contributor

    PR #1057 update at 18d30aa74588575031000c76f9544e04c48e8062: the review thread is resolved and Cursor Bugbot passes on the new head. The failed-root assertions were verified through the public API in development and production; their title and comments now explain that an unhandled render error unmounts the root and a retry mounts fresh inputs.

    The broader run exposed a pre-existing compiler mismatch when a hydrated mapped component switches between native array mapping and a custom map implementation. This is fixed by retaining compatible component slots across both modes, with the original input identity/hydration regression intact.

    Local validation now passes 49 related test files / 856 tests, core source and public typechecks, scoped formatting, and pnpm sync. Three deliberate key-handling mutations each caused the expected regressions to fail, followed by exact source restoration and the green suite. The test configuration kept the repository's Octane dev/prod projects and omitted only the unrelated React differential fixture precompile, so the missing React runtime dependency did not need to be downloaded. This supersedes the local validation blocker in the earlier comment.

    The rebuilt production benchmark is byte-identical to the measured candidate. Standard production and server output for the mapped fixtures is unchanged; development and production without automatic memoization now use full component slots, with their bookkeeping cost documented in the PR.

    The PR is out of draft and full current-head CI is running. It is not merged. The grouped checklist item remains open for the separate key-encoding/coercion costs and other follow-ups.

  24. domgan-oai commented on Sep 11, 2026

    @domgan-oai
    Contributor

    PR #1057 CI follow-up: signed commit bf66a67a407b06b73d40d70c9980c5cbd173441d now incorporates main #1056, which fixes both failures from the previous run: the Three camera type error and Solana module-reload timeout. GitHub performed the branch update with a verified signature, resolving the unavailable local signing agent.

    The published merge tree exactly matches the locally validated source: 49 related test files / 856 tests, both core typechecks, and sync pass. The worktree is clean, Cursor Bugbot passes on the new head, and no review threads remain unresolved.

    Full current-head CI is green: 26/26 jobs passed. Attempt 1 hit a Vitest browser-orchestration error starting the adapted Base UI MeterTrack fixture; that exact Chromium fixture passed 15/15 locally, and the targeted retry passed without code changes. Both original Three and Solana failures now pass. GitHub still requires reviewer approval before merge. PR #1057 remains open and out of draft. The grouped issue item remains open for separate key-encoding/coercion costs and other follow-ups.

  25. domgan-oai commented on Sep 12, 2026

    @domgan-oai
    Contributor

    Opened PR #1067 for all three remaining Hidden-class stability items. The item notes now link the implementation and its measured memory/performance tradeoffs; checkboxes remain open until merge. #1060 is now recorded as merged. Current-head CI passed 26/26 jobs at e0ddf891e6162c59a0817a6956b8327c0a740efc. Cursor Bugbot passed with no findings, no review threads are unresolved, and the PR is ready for review. The head contains current main; the worktree is clean.

    The production probes preserve semantic snapshots while removing named slot-cache properties and stabilizing the six record families. Local broad validation passed 17,334 tests, with 14 expected failures; missing React precompile and three dependency-path assertions are local environment limitations, and the latter reproduce identically with frozen-baseline compiler source. Eight older hook-memo allocation ratio budgets also fail with identical baseline/candidate counts; both new cache-property guards pass. Details and reproducible commands are in the PR's benchmark READMEs.

    Separate pre-existing behavior found during the cache audit

    With production autoMemo: true and inlineHookMemo: true, switching a retained Context Provider's compiled child A → B → A can leave B's label visible. This reproduces on frozen fa11c10556338420dc686a2e93bf1b5787099b30; it is not introduced by #1067 and is not fixed by moving the caches.

    The exact fixture bodies are ProviderFirst and ProviderSecond in cache-shapes.tsrx. Both are compiled together in one module, have distinct per-body cache IDs, and call useMemo(() => ({ text: 'first' /* or second */ }), []) before forwarding that text to the same Label component.

    After compiling those bodies against the frozen runtime, the reproduction is:

    const Context = createContext('default');
    const root = createRoot(container);
    for (const [value, children] of [
      ['initial', ProviderFirst],
      ['second', ProviderSecond],
      ['return', ProviderFirst],
    ]) {
      flushSync(() => root.render(Context.Provider, { value, children }));
      console.log(container.querySelector('#cache-label').textContent);
    }
    root.unmount();

    Expected labels: first, second, first. Actual baseline labels: first, second, second. The old per-body auto cache survives the switch and skips output that B replaced. This needs a separate cache-lifetime fix. #1067 explicitly tests the one-way switch and repeated B render without claiming round-trip recovery.

  26. domgan-oai commented on Sep 13, 2026

    @domgan-oai
    Contributor

    Opened PR #1079 for the five remaining Root transactions entries.

    • Fixes enumerable symbol rollback and a reproduced keyed-row state loss when an urgent update shares a batch with a suspended removal.
    • Descriptor text reads: 256 → 128 per 128 changing updates.
    • Retirement closure sites: 128/256 → 0 for partial/full row removal.
    • Keyed input journal slots: 2,048 → 1,024 for 256 rows changing both item and captures; single-input/unchanged controls stay unchanged.
    • Retains eager arming, generic snapshots, required live DOM reads, exact parked node arrays, the retirement Set, and connected cleanup with documented experiments and contracts.

    Local validation: 17,280 core tests, 46 MCP tests, 16 Chromium regressions, 20 production root-suspension targets, and 10 new operation guards passed. Full repository CI passed on b1cc6999c: all 28 non-skipped checks passed, including Bugbot; local React differential/scoped TSRX validation remains limited by the missing @tsrx/react-runtime dependency. The PR is ready for review and mergeable. Root checklist entries remain unchecked until merge. Compiler output entries are now marked addressed by merged #1078.

  27. domgan-oai commented on Sep 13, 2026

    @domgan-oai
    Contributor

    Stale Provider output investigation: #1080 (merged)

    The same-module compiled Provider A → B → A reproduction from the #1067 audit reproduced on baseline 3c1cc55d8 and is fixed by merged PR #1080 (239dab04c). It invalidates each retained body's output dependencies when the Provider changes bodies, while preserving compatible DOM and hook state. Compiler-generated children closures have stable source-body tokens so fresh captures retain their ordinary memo hits. Rollback restores accepted dependencies and identity after a later suspension.

    Evidence: the original four failing dev/prod cases now pass; the final focused suite has 20 passing cases covering repeated switches, a body without memoization, inline captures, hydration, held retry, and supersession. Broad core validation passes 17,296 tests. The clean/observed benchmark changes two stale labels to zero, preserves direct and inline memo-hit work, and adds 382 minified / 131 gzip bytes to the measured fixture. Eight new benchmark guards pass. The earlier hook-memo allocation suite has eight existing guard breaches with identical baseline/candidate counts; no thresholds were relaxed. Full current-head CI passed on f2df470da, including tests, typechecks, parity, Chromium integration and Bugbot.

    Two distinct related defects were also reproduced and remain open:

    1. Independently compiled child bodies can alias numeric hook/cache slots in a shared Provider scope. Compile the same useMemo(() => ({text: 'first'}), []) child module twice with distinct module IDs and change the second module's text to second; mount the first body under one Provider, then supply the second body. The second still reads the first module's memo value with either inline-hook mode. Clearing only output arrays does not establish separate hook ownership.
    2. A lazy component whose resolved module's default changes body can reuse stale output. Resolve a module with a default accessor selecting compiled First/Second bodies, render First → Second → First through the same lazy wrapper, and the last label stays Second. The lazy body path needs its own ownership and invalidation fix.

    The separate experiment mixing optimized and unoptimized independently compiled child implementations also exposed a full component-slot versus lite-slot representation mismatch. The committed no-memo intermediate regression uses shared imported child implementations to isolate cache invalidation; the representation-switch case is not claimed fixed.

    The root-transaction follow-up #1079 is merged; its five status annotations above now say merged while retaining the explicitly unresolved portions. The descriptor-renderer follow-up #1081 is merged; its retained costs and separate context-propagation follow-up are documented below.

  28. domgan-oai commented on Sep 13, 2026

    @domgan-oai
    Contributor

    Descriptor renderer: PR #1081 (merged)

    PR #1081 addresses all seven audit entries with five measured reductions, correctness fixes for observed scoped descriptor/adoption failures, and explicit dispositions for the two unsafe caching proposals. It includes 163 deterministic benchmark guards and a standalone ownership cost audit. The branch includes merged Provider fix #1080 (239dab04c).

    • Known event updates: 6,144 parsed records, 9,216 substring calls, and 6,144 delegation arrays become zero; bounded cache/startup work is recorded.
    • Cursor reconciliation: 512 unchanged foreign rows reduce sibling reads 133,124 → 3,589 and indexed reads 1,024 → 0.
    • Persistent hosts avoid redundant live string-attribute/class/handler writes. Form aggregation removes repeated source scans, and option projections reuse each indexed option locally.
    • Scoped ownership: preserve accepted descriptors, reconstruct nested old tags/keys from DOM stamps during upgrades, and adopt survivors by key. The regression covers exact DOM shape, changed tags/keys, reorders, native input state, hydration, held renders and retries. All 32 cases pass; 28 fail on frozen baseline 3c1cc55d8.
    • Classification remains scope-sensitive. Four current intrinsic descriptor checks remain per memo hit; same-render mutation coverage proves an epoch-only verdict unsafe.

    Validation: 998 core dev/prod files passed, with 17,394 passing tests and the same 14 existing expected failures; core/public types, MCP tests, all 163 benchmark guards, and sync pass. No new test is skipped or marked expected-failure. Current-head CI passed for 0cbd852db, including full tests, typechecks, lint, React parity, Chromium integration, examples, package validation, and Bugbot with no findings. PR #1081 was merged on September 13, 2026.

    Separate remaining stable-array context propagation defect

    A bounded production probe reproduces this on both main 239dab04c and the candidate. It uses runtime scoped-descriptor helpers; an authored .tsrx equivalent was not established:

    const Mode = createContext(false);
    const nested = createScopedValue(() => {
      const active = useContext(Mode);
      return h(active ? 'strong' : 'span', { 'data-child': 'nested' }, active ? 'next' : 'first');
    });
    const Counter = () => h('button', null, 'counter');
    const children = [nested, h(Counter, null)];
    const shared = createScopedElement('section', null, () => children);
    const App = ({ active }) => h(Mode.Provider, { value: active }, shared);
    root.render(App, { active: false });
    flushSync(() => root.render(App, { active: true }));

    Expected: <strong data-child="nested">next</strong>. Both versions retain <span data-child="nested">first</span>, and the nested resolver runs only once. Classification resolves the nested shell in the previewing parent, but cached scope handoff does not replay its captured context dependency onto the eventual host/item Blocks. The stable outer array then permits an identity bailout. This requires a separate context-dependency ownership fix; #1081 does not claim it fixed. The exact example and scope are also recorded in benchmarks/descriptor-renderer/ownership.md.

    The independently compiled child-slot aliasing, lazy module-body stale output, and mixed full/lite slot cases from the #1080 investigation remain separate follow-ups.

  29. domgan-oai commented on Sep 13, 2026

    @domgan-oai
    Contributor

    Final audit closeout: PR #1092

    Every original audit point now has a documented disposition: all 84 checklist entries, escaping, the three harness notes, and discovered correctness follow-ups. The 15 stale boxes tied to prior merged fixes are reconciled. The remaining 16 are covered by #1092 and stay unchecked until merge; there is no unassigned investigation backlog in this issue.

    The PR removes streaming boundary-copy arrays (131→0 over 32 waves) and reuses existing immutable fallback snapshots (832→688 copies, 8,992→6,688 entries in the populated eight-wave case). It completes the two omitted client-function investigations and all SSR retained-design decisions, and adds 111 deterministic guards covering the missing workloads. No general latency claim is made; the measured server fixture grows by 27 gzip bytes.

    Local validation passes: 17,926 broad core tests plus 14 expected failures; 204 final nearby SSR tests with both intended mutants red; 46 MCP tests; scoped types; 172 integrated ratio guards; formatting, changesets and sync. Current-head CI passed all 26 jobs on aebdde780; Cursor Bugbot passed without findings and there are no unresolved review threads. PR #1092 is ready for review, conflict-free, and awaiting merge. #1092 contains Fixes #981 so the issue can close on merge.

    Earlier progress below is preserved as history.


    Combined correctness follow-up: PR #1082 (merged)

    #1082 merged on September 14, 2026, fixing the defects discovered by #1080 and #1081:

    • Stable-array scoped context propagation, now reproduced with authored TSRX as well as runtime helpers. Cached/nested reads replay their dependencies, including failed inner reads caught by an outer resolver.
    • Independently compiled Provider bodies aliasing hook/memo identities, plus the mixed full/lite component-slot ownership mismatch.
    • Changing resolved lazy bodies reusing stale output, including memoized wrappers, multiple mounts, held retries and supersession.

    The frozen baseline fails these regressions; the candidate passes. Final focused validation includes 226 compiler/ownership tests, 713 scoped JSX/context tests, 46 MCP tests, core/public types, and 215 production descriptor/ownership/hook guards. The production ownership probe changes 70 stale results to zero while unchanged-update memo work stays zero. Costs and reproducible commands are in the ownership audit. Current-head CI now passes on f2b7ac470: all 26 CI jobs and Cursor Bugbot with no findings. A pristine upstream React Base UI act() warning passed on an isolated parity-shard retry without source changes. The PR merged as fdb790a6b1b92878219bd498a6b3ccd40f773cc2. These correctness follow-ups are resolved.

    PR review additionally caught memo-wrapped lazy bodies, identical descriptor props and compiler memo witnesses bypassing validation. The fix covers those paths and independently evaluated runtime wrappers. Final evidence includes 160 nearby tests, the 46-case lazy suite and 223 relevant ratio guards, with nominal static-hoisting and unchanged-body comparator controls preserved. The review thread is resolved; final sync leaves the worktree clean.

    What remains in #981 — updated after merged #1090

    The Universal audit and the previously reproduced Provider/lazy/scoped-context correctness defects are addressed. The remaining work consists of performance investigations and final audit disposition:

    1. Two remaining client-function investigations: childSlot and componentSlotImpl. Correction to the previous summary: perf: investigate remaining client hot paths #1090 addressed the branch renderer, key conversions, and the grouped eight-function entry; these two separate entries were omitted and still need measured optimization or a retained-design disposition.
    2. SSR: changed and other replay snapshots; ordinary thenable read probes, scans and full retries; server mapSlot array/constructor/species guards; host/attribute/descriptor metadata and remaining identity/children-marker costs; response classification and output assembly. Unchanged populated snapshots and repeated settlement recorders are already addressed by merged perf: reuse SSR replay snapshots and streaming subscriptions #1088. Large SSR functions still need explicit dispositions.
    3. Benchmark coverage and checklist cleanup: reconcile original harness-gap claims with the current memo-wrapper, descriptor and suspension suites, add any genuinely missing guards, and mark merged fixes or retained contracts accurately. Older Root/DOM/descriptor unchecked bullets overstate remaining implementation work.

    Merged on 2026-09-14 as cece195a967d29d1682b37b7c87b9418a8076e95: PR #1088 implements populated replay snapshot sharing and streaming recorder reuse. The combined check with #1069 passed 317 tests; its only adjacent Ambient type conflict was resolved in a detached validation worktree while retaining all signal fields. All 26 final-head CI jobs and Cursor Bugbot passed with no findings; #1088 is merged. Remaining SSR work includes changed/other snapshots, normal read probes, mapSlot guards, metadata/identity costs and response assembly; #981 remains open.

    Compiler overlap has been coordinated with the concurrent #1027 Strong checks task: #1082 owns numeric hook/memo namespaces and runtime ownership; that task owns Strong compiler analysis/import policy. The second PR to merge must incorporate current main and rerun validation.

    A merge-tree check of #1082 at f2b7ac470 and #1083 at 6699e4c86 reports no file conflicts. Neither branch was changed by the check; the second PR to merge still needs current-main validation.

    Universal renderer follow-up — PR #1086

    PR #1086 merged on 2026-09-14 as 7d4dc4f51, addressing the remaining eight Universal audit points with measured fixes and documented retained designs. Final PR-head CI passed all 26 jobs at 1467f1afde8dd6291ce8b4c7be982bc38bfd3460; Cursor Bugbot passed on that same head. The merged branch included #1083.

    • Implemented: component key lifting without deletion; filtered host payload construction; caller-owned plan-node output arrays; shared per-list owner paths; lazy duplicate-key Sets; accepted subtree feature caching; compact-list preparation gating.
    • Preserved with explicit evidence: fresh retainable codec contexts, sparse public command shapes, persisted owner-path segments, dynamic conditional/portal/Suspense result arrays, and production reconciliation diagnostics for static/host-supplied keys. The current Node24 probe reaches TurboFan for both large functions; a whole-function split has no demonstrated tier benefit.
    • Local validation: 796 universal dev/prod tests and 67 compiler-capability tests (863 total), 46 MCP tests, core/public types, sync/format, and all 39 applicable guards across four new benchmark suites pass. These checks were rerun after merging feat: complete remaining Strong compiler checks #1083; both measured universal bundle hashes are unchanged. Targeted mutants demonstrate the behavior tests detect broken key identity, ordering, diagnostics, refs/listeners, codecs, and compact expansion.
    • Measured work: 128 static rows use 771→515 materializer arrays per update; keyed scopes 646→392; nested unkeyed arrays use 156→27 runtime Sets. Repeated feature scans across 64 updates beside 1,024 unchanged hosts fall 65,664→0 after warmup. Ordinary trees skip optional compact scans; compact controls retain required work.

    The audit and eight-item disposition table record the remaining deliberate costs and protocol constraints. All eight Universal follow-up checkboxes and the matching oversized-function entry are now checked with their merged #1086 dispositions; this PR does not close the remaining SSR work in #981.

    SSR performance follow-up — PR #1088 (merged)

    PR #1088 merged on 2026-09-14 as cece195a967d29d1682b37b7c87b9418a8076e95 (validated PR head 120ce4e440c1093113bf15177b6833c399ef9939). It shares immutable CSS/head snapshots until writes and reuses one pending stream recorder per thenable while recording every occurrence key separately. Reentrant resource coercion, rollback, disposal, abort, timeout, shared producers and compiler batch keys have behavioral coverage.

    • Measured work: 795→160 collection copies and 36,736→4,224 copied entries for 32 populated resource groups plus 128 unchanged leaves. For 32 streamed producers in 32 waves, recorder starts are 528→32, public subscriptions 1,056→560, and recorder race reactions 528→0. One-wave counts are unchanged.
    • Validation: 1,526 related SSR dev/prod tests, 46 MCP tests, core types, formatting, changesets, sync and all 28 new ratio guards pass. Original baseline fails 18 guards. A combined feat: add async signals and streaming SSR #1069 validation passes 317 dev/prod/strong tests. Full current-head CI passed all 26 jobs on 120ce4e440c1093113bf15177b6833c399ef9939; Cursor Bugbot passed with no findings. There are no unresolved review threads, the worktree is clean, and the branch includes live main with no merge conflicts.
    • Timing and cost: populated unchanged snapshot medians improve from 0.712–0.740 ms to 0.205–0.207 ms; compiled storefront timing distributions overlap, so no general throughput gain is claimed. That storefront bundle adds 1,165 minified /359 gzip bytes. Commands, limits and evidence.

    The grouped snapshot/streaming checklist items stay unchecked: changed collections, other snapshot families, regular read probes, full retries and remaining SSR audit points are not all addressed by this PR.

    Client hot-path investigations — PR #1090 (merged)

    PR #1090 merged on 2026-09-14 as 248af4edc30c80498dec13dad4f6d7508f10f220 (validated PR head c740015f0a6057d81352b1e358832dbc36f99f5b). All 26 CI jobs and Cursor Bugbot passed on that head, with no findings or unresolved review threads. The PR is merged; its branch renderer, key and grouped eight-function investigations are resolved.

    • Implemented: initialization-only hydration reads in ifBlock/switchBlock, reducing three update workloads from 57,344 to 28,672 lookups; fresh mounts retain 57,344. No new fields/caches/allocations or ownership paths.
    • Investigated and retained: the shared branch renderer (split timings overlap, extra bundle bytes), explicit/nested key encoding and component coercion (observable namespace/serialization/equality contracts), and all eight other listed large client functions (each has an alternative and evidence-based disposition). No general latency or heap-allocation gain claimed.
    • Local validation: 33/33 deterministic guards; frozen baseline fails exactly three intended guards. Core/public types, 46 MCP tests, 122 branch and 260 key tests pass. The broader core run passes 17,923 tests with 14 expected failures and one HMR timeout; isolated HMR+branch rerun passes all 102 tests with unchanged timeout/source. Final sync and scoped formatting pass. Full normal CI now passes, including the core/HMR, React parity, browser, typecheck, lint, package and example gates.
    • Review: new tests were seen red for missing environment refresh and broken hydration adoption. Independent review tightened reentry cardinality assertions; V8 trace review corrected padded pointer matching. Coordinated branch ownership/key protocols with feat: add async signals and streaming SSR #1069.

    Reproducible commands, raw Chromium samples, bundle costs and limits. The branch-renderer and grouped eight-function checkboxes are now checked. The grouped key item stays open for its remaining SSR scope. Correction: the separate childSlot and componentSlotImpl entries were not covered by this PR; those two client investigations, remaining SSR work, and benchmark/checklist reconciliation keep #981 open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-authoredperf

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions