Skip to content

perf: skip context-dependency scans when no provider has committed - #1091

Merged
trueadm merged 2 commits into
mainfrom
perf/core-runtime-hunt-r3
Sep 14, 2026
Merged

trueadm merged 2 commits into
mainfrom
perf/core-runtime-hunt-r3

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Memo and implicit bailouts re-scanned every block's context-dependency maps on each bail decision even when no Context.$$version had moved — per-survivor bookkeeping that is pure cost on context-quiescent renders. This adds a process-wide context epoch and a per-block $$ctxDepsEpoch stamp so the scans provably can't find anything while no provider has committed.

  • packages/octane/src/context-epoch.ts (new): the shared epoch, backed by a Symbol.for('octane.contextEpoch') cell so duplicated module copies (a binding bundled against its own octane, ESM/CJS dual loads) share one counter — contexts are deliberately cross-instance (CONTEXT_TAG).
  • Block.$$ctxDepsEpoch: sampled when renderBlockInner clears the dep maps, re-stamped after a clean scan, poisoned to -1 by restampCtxDeps when a stale version is merged in, so a still-pending consumer refresh can never be masked.
  • ctxBailDepsClean gates both scans for tryMemoBail/tryImplicitBail; refreshBlockForContext prunes re-checks for already-verified blocks (non-memo intermediates still descend — they hold no aggregate map).
  • Epoch bumps: provideContext (paired with $$version++), universal-renderer commits (once per commit containing context changes), and renderResolved entry — the catch-all for external bumpers such as react-hosted mirrors, which publish $$version++ and then commit through root.render.
  • Direct $$version data reads retained throughout: a variant backing $$version with an accessor measurably regressed context-heavy ops (~3k reads/op).

Benchmarks

benchmarks/memo-wall (octane-tsrx fixture, production build). The sequential run.mjs proved drift-dominated on this box — the candidate-vs-baseline sign flipped with target order — so the numbers below come from an interleaved driver alternating per-sample between two vite preview servers (baseline cece195a9 vs this diff).

op baseline med candidate med Δ med Δ min
one_change_B 0.3625 ms 0.3475 ms −4.1% −2.9%
one_change_B (order swap) 0.3525 ms 0.3425 ms −2.9% −2.3%
one_change_A ~0.012 ms ~0.012 ms parity parity
ctx_through_wall_A/B — — parity (±2%) —
  • A/A noise floor (baseline vs baseline, same harness): ±3% median on one_change_B. The −2.9 to −4.1% medians repeat across runs and sit above the floor.
  • Order-balanced sequential passes showed −8 to −12% on the same op.
  • Live CDP profile on __oneChangeB: ctxDepsChanged, ctxDirectChanged, and refreshContextConsumers are absent from the candidate profile — the gate fires — while restampCtxDeps/tryMemoBail remain (expected per-survivor work).
  • benchmarks/recursive-context guard: all ops within noise.
  • Browser check on the bench page: mount 2000 rows, one_change re-renders 1 row (999 bailed), ctx_through_wall propagates to all leafs, zero console errors.

Validation

  • pnpm format:files on every changed file (pnpm format:check equivalent for the diff)
  • pnpm typecheck:files on all changed .ts files
  • pnpm test — full run OOM'd in V8 after ~20 min (environmental); completed coverage: octane project 10,601 tests (1 pre-existing strong-mode acorn stack-overflow, identical on baseline), all packages a–r green, plus a bounded --maxWorkers=3 run of the remaining r–z tail: 688 files / 4,722 tests, all green
  • targeted tests: context-epoch.test.ts (new — pins cross-module-copy epoch sharing and the external-bump→root.render contract; both verified load-bearing by mutation), context.test.ts, context-bailout conformance, memo/implicit bailout, react-hosted bridge (host-bridge, octane-compat-context, use-context-retention), universal renderer boundaries — plus a deliberate-breakage run (forcing the gate always-skip → 12 tests red, restored → green)

Risk / follow-ups

  • renderResolved bumps the epoch on every root.render, including context-quiescent ones: each render re-stales every block's stamp for one rescan cycle (self-healing, never worse than baseline) and converts compilerCacheContext's previous === current O(1) guard into a refreshBlockForContext walk per context-aware cache per root.render. React-hosted islands hit this per non-bailed React commit. Marked ponytail: at the site — the precise alternative is bumping at the mirror publish site in src/react/, which is outside this change's scope and would drop the catch-all that covers unknown external bumpers.
  • Multi-root: the epoch is process-global, so one root's render stales stamps in every root for one rescan cycle.
  • Cross-renderer edge: hydrateRoot bypasses renderResolved and never bumps — verified benign (fresh blocks record post-bump versions; mirrors are root-local).

Provenance

  • An agent produced this diff (agent-authored)

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Medium Risk
Widens a fast path on context invalidation for memo/implicit bailouts and compiler cache guards; incorrect epoch pairing or stamp poisoning could strand consumers, though foreign bumps and stale merges force conservative rescans.

Overview
Adds a process-wide context epoch and per-block $$ctxDepsEpoch stamps so memo and implicit bailouts can skip per-entry context version scans when no provider has committed since the deps were recorded or verified.

The module-local compiler cache epoch moves to context-epoch.ts, backed by a Symbol.for('octane.contextEpoch') cell so duplicate Octane copies share one counter. Each block stamps $$ctxDepsEpoch when renderBlock clears context dep maps; ctxBailDepsClean centralizes the bailout gate, restampCtxDeps poisons the stamp when a stale version is merged, and refreshBlockForContext avoids redundant rescans for already-verified blocks. bumpContextEpoch() runs alongside $$version++ in provideContext and universal renderer commits, and at renderResolved entry as a catch-all for external bumpers (e.g. react-hosted mirrors). New tests and architecture guidance document cross-instance epoch sharing.

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

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent perf PR: performance work labels Sep 14, 2026
@jonkwheeler
jonkwheeler force-pushed the perf/core-runtime-hunt-r3 branch from b96107c to 6dc4f02 Compare September 14, 2026 16:48
@jonkwheeler
jonkwheeler marked this pull request as ready for review September 14, 2026 16:48
Every memo/implicit bailout re-scanned the block's context dependency
maps even when no Context.$$version had moved — per-survivor bookkeeping
that was pure cost on context-quiescent renders. Stamp each block with
the shared context epoch (Symbol.for'd cell so duplicated module copies
share it at which its dep entries are known current; bailouts and
context-propagation refreshes now skip both scans while the epoch is
unmoved. provideContext and universal-renderer commits bump the epoch
beside the version; renderResolved bumps it at entry so external
bumpers (react-hosted mirrors, which publish then commit through
root.render) can never be masked by the fast path. Stale merges poison
the stamp so pending consumer refreshes are never skipped.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
EOF
)
@jonkwheeler
jonkwheeler force-pushed the perf/core-runtime-hunt-r3 branch from 6dc4f02 to 6204193 Compare September 14, 2026 17:16
@trueadm
trueadm merged commit 03dacb7 into main Sep 14, 2026
29 checks passed
@trueadm
trueadm deleted the perf/core-runtime-hunt-r3 branch September 14, 2026 18:30
trueadm added a commit that referenced this pull request Sep 15, 2026
* chore: verify react-is 19.3 and repair binding audit intake

* fix: preserve configured upstream test discovery boundaries

* fix: preserve Electron 44 clipboard promise results

* fix: preserve color channels when changing picker opacity

* fix: register Colorful parity lanes and preserve Playwright selectors

* fix: discover complete binding test inventories

* chore: refresh Sanity loader dependency baseline

* fix: follow shared binding test configurations

* fix: update Thinking Orbs with verified engine imports

* test: preload the Thinking Orbs differential oracle

* perf: reduce effect and scheduler bookkeeping (#1070)

* fix: update Resizable Panels with complete parity coverage

* fix: route required Resizable Panels browser tests through parity CI

* fix: update Window direction handling and compatibility evidence

* fix: preserve error boundary reset refs and hydration

* test: retain pinned error boundary declaration artifact

* fix: use live reset from native error fallback

* perf: reduce repeated hook bookkeeping (#1076)

* perf: reduce repeated hook bookkeeping

* test: follow shared helpers in Lynx compatibility evidence

* fix: update Mantine Hooks compatibility to 9.6.1

* perf: split SSR escape pre-scan by string length (#1073)

* perf: reduce SSR bookkeeping cost (empty snapshots, scoped counters, dev checks) (#1077)

* perf: share empty SSR replay snapshots and allocate hook maps lazily

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* perf: flatten SSR frame scoped counters and hoist dev-mode checks

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* feat(jotai): migrate bindings to Jotai 3 (#1062)

* feat(jotai): migrate bindings to Jotai 3

* test(jotai): register hydration and pristine CI ownership

* perf: reduce compiler output allocation work (#1078)

* perf: reduce compiler output allocation work

* fix: register compiler output benchmark with MCP server

* fix: preserve root transaction rollback and reduce journal work (#1079)

* fix: invalidate stale retained Provider output (#1080)

* fix: update Motion bindings to 13.2 with scoped props and native host fixes

* fix: register Motion parity cases and refresh shared evidence hashes

* fix: preserve descriptor ownership and reduce renderer work (#1081)

* test: make motion parity checks reproducible in CI

* fix: update Alien Signals binding to 0.4.0

Add selectors, deferred snapshots, phase effects, batching and trigger APIs.
Reuse alien-signals 3.2.1 while retaining functional setters and cancelled
scope ownership. Refresh the immutable upstream suite, full strict public
contracts, SSR/hydration evidence and packed browser consumers.

Isolate pristine Bun types from workspace build plugins and repair the
verification defects exposed by the new upstream declarations and suite.

* test: separate Alien Signals parity projects

* fix: update Intersection Observer to 11.0.1

* fix(hook-form): update compatibility binding to 7.88.0

* test(hook-form): prepare clean typechecks and isolate parity projects

* fix: update MobX bindings for MobX 7

* fix: preserve deferred JSX props and MobX CI coverage

* fix: preserve context and render body ownership (#1082)

* fix: preserve context and render body ownership

* fix: validate lazy ownership through memo bailouts

* perf: resolve renderer-region owner with one chain-top lookup (#1085)

Context reads that resolve to a context default called
rendererRegionOwnerForBlock on every read, and it did a guaranteed-miss
WeakMap.get at every ancestor: bindRendererRegionOwner rejects any block
that is not a top-level root, so only chain tops can be keys. Climb to
the top directly and do one lookup; a module counter collapses the
common no-owner case to a single integer test.

Generated with [Devin](https://devin.ai)

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* Version Packages (#1058)

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

* feat: complete remaining Strong compiler checks (#1083)

* feat: complete remaining Strong compiler checks

* fix: preserve Strong inference and mutation semantics

* test: align mapped list fixture with Strong policy

* fix: harden Strong declaration caching and editor analysis

Review fixes for the automatic declaration cache and the new analyzers:

- Reuse the parsed module for renderer-region analysis in the template
  policy and trusted-HTML check. The second strict parse threw out of
  `compileToVolarMappings` on shapes the tolerant editor parser accepts,
  and the TypeScript plugin then dropped every Strong diagnostic for the
  file. Restore the three base fixtures that had been rewritten around it.
- Keep template `@for` row declarations out of the cache: the analysis
  does not model row bindings, so they were cached with empty inputs and
  rendered stale after item updates.
- Count hooks executed inside nested functions when judging a candidate,
  so `compute(() => useContext(Ctx))` is not frozen on its first value.
- Track class declarations as late bindings so a cache input never reads
  a class before its declaration runs.
- Recognise cleanup returned by an expression-bodied effect callback.
- Keep state provenance on values that mix props and state, and leave
  hook-named JSX builders with unknown arguments.
- Treat authored dependency entries whose root is imported or
  module-invariant as redundant instead of conflicting.
- Accept the `octane/strong` pragma as explicit ownership in slotHooks,
  forward plain-module Strong hints through the bundler, and keep a
  line-comment pragma readable when swapping to Strong JSX types.

Every change carries a regression test that fails without it.

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

* fix: address Strong compiler review and preserve hook ownership

* docs: refresh Strong audit against release main

---------

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

* perf: reduce universal renderer materialization and preparation work (#1086)

* perf: reduce universal renderer materialization and preparation work

* fix: preserve own-key semantics in retained feature scans

* chore: release universal benchmark tooling with runtime changes

* fix: align universal benchmark order in MCP schema

* perf: reuse SSR replay snapshots and streaming subscriptions (#1088)

* perf: investigate remaining client hot paths (#1090)

* perf: finish remaining runtime audit investigations (#1092)

* perf: skip context-dependency scans when no provider has committed (#1091)

Every memo/implicit bailout re-scanned the block's context dependency
maps even when no Context.$$version had moved — per-survivor bookkeeping
that was pure cost on context-quiescent renders. Stamp each block with
the shared context epoch (Symbol.for'd cell so duplicated module copies
share it at which its dep entries are known current; bailouts and
context-propagation refreshes now skip both scans while the epoch is
unmoved. provideContext and universal-renderer commits bump the epoch
beside the version; renderResolved bumps it at entry so external
bumpers (react-hosted mirrors, which publish then commit through
root.render) can never be masked by the fast path. Stale merges poison
the stamp so pending consumer refreshes are never skipped.

Generated with [Devin](https://devin.ai)


EOF
)

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(website): refresh published benchmark results (#1089)

* feat(i18next): update binding to react-i18next 17.0.14

Tracks react-i18next 17.0.14 (v17.0.14, 5f8c5f9) while preserving the
complete existing Octane surface and documented divergences.

Source changes from the upstream delta: useTranslation keys its wrapper
cache on language/resolvedLanguage/languages and warns
SUSPENDED_WHILE_LOADING; IcuTransWithoutContext falls back to
i18nKey || defaultTranslation; TransWithoutContext uses HTML.parse
allowedTags, unwraps a top-level Octane Fragment passed through
children, and carries the updated missing-i18n warning wording.

Adds the pinned upstream tree and artifact (124 files, MIT), provenance,
source ledger, closure and baseline audit artifacts, pristine/adapted
parity lanes covering 495 React and 458 Octane specs plus 314 type
registrations across fourteen programs, public-entry type assertions
for all three subpaths, and refreshed status/UPSTREAM metadata.

Extends react-parity/react-port tooling for multi-program type suites
and records the jest-dom vitest-instance inline fix in the pristine
config. Regenerates lockfile and manifest evidence hashes.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* merge: resolve manifest ownership against branch evidence

Restore branch-side react-parity manifests (their lanes claim the
testExecution entries this branch adds) and refresh lockfileSha256 for
the merged lockfile. Keeps catalog resolution react-resizable-panels
4.12.4 + ripple 0.3.128.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: discriminate scoped-read replay by source kind after merge

replayScopedContextReads arrived on main typed Map<Context, number>
while this branch widened scoped captures to ScopedReads (Context |
StoreInst). Replaying store keys through recordContextDependency was
unsound: stores carry snapshots, not $$version, and have no block
context-dependency channel. Discriminate with $$version presence —
contexts still record block deps; both kinds propagate to the enclosing
resolver's capture.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: give Vite-SSR hydration specs CI headroom

The parity-shard failures on this head were 5s timeouts in three
hydration specs that boot a Vite SSR server per case — pass in <1.5s
idle, ~4s under local load, and over 5s in a 246-lane CI shard. Same
signature as the load flakes already observed on main. Adds per-test
30s timeouts to the authored specs and a 15s project timeout to the
tanstack-query adapted suite (matching tanstack-router's config),
rehashing the affected manifests.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(tanstack-ai): raise ai-ui-hydration timeout for shard load

The dedicated hydration lane boots a fresh Vite SSR server through
renderHydrationFixture; under full-shard CI contention the 5s default
timed out (same class as the earlier tanstack-table/router/query fixes).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: raise infra timeouts hit under CI shard load

cli analyze tests spawn the CLI per case and mantine-hooks browser
navigation waits on a fresh-page networkidle from a busy Vite dev
server; both hit the 5s default under full-shard contention. The
describe-level 30s budget and a 30s goto timeout keep the deliberate
per-interaction deadlines while giving infrastructure room.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: raise base vitest testTimeout to 30s for shard load

Hydration, browser, and CLI lanes boot per-test infrastructure whose
cold start can exceed the 5s default under full-shard CI contention;
successive runs have rotated through different victims (tanstack-query,
table, router, ai, virtual, mantine-hooks, cli analyze). A base 30s
covers the slowest observed cold start while per-project overrides keep
their larger budgets.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(octane-evals): regenerate user-app corpus manifest after merge

The main merge resolved manifest.jsonl to a side whose graderDigest no
longer matched the merged grader files; the corpus staleness check
flags it. Regenerated via generate-user-app-corpus.mjs; --check passes.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: domgan-oai <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Dominic Gannaway <[email protected]>
domgan-oai added a commit that referenced this pull request Sep 15, 2026
* perf: reuse nested explicit child key prefixes (#1060)

* perf: stabilize remaining runtime object shapes (#1067)

* perf: reduce remaining DOM and event overhead (#1068)

* perf: reduce remaining DOM and event overhead

* test: cover parser text hosts and sync benchmark catalog

* fix: update TanStack Router and SSR Query bindings

* fix: register Router parity checks and migrate example SSR redirects

* fix: update Mantine, Window, and compatibility bindings (#1074)

* chore: verify react-is 19.3 and repair binding audit intake

* fix: preserve configured upstream test discovery boundaries

* perf: reduce effect and scheduler bookkeeping (#1070)

* fix: update Window direction handling and compatibility evidence

* fix: preserve error boundary reset refs and hydration

* test: retain pinned error boundary declaration artifact

* fix: use live reset from native error fallback

* perf: reduce repeated hook bookkeeping (#1076)

* perf: reduce repeated hook bookkeeping

* test: follow shared helpers in Lynx compatibility evidence

* fix: update Mantine Hooks compatibility to 9.6.1

---------

Co-authored-by: domgan-oai <[email protected]>

* fix: update UI integration bindings (#1075)

* chore: verify react-is 19.3 and repair binding audit intake

* fix: preserve configured upstream test discovery boundaries

* fix: preserve Electron 44 clipboard promise results

* fix: preserve color channels when changing picker opacity

* fix: register Colorful parity lanes and preserve Playwright selectors

* fix: discover complete binding test inventories

* chore: refresh Sanity loader dependency baseline

* fix: follow shared binding test configurations

* fix: update Thinking Orbs with verified engine imports

* test: preload the Thinking Orbs differential oracle

* perf: reduce effect and scheduler bookkeeping (#1070)

* fix: update Resizable Panels with complete parity coverage

* fix: route required Resizable Panels browser tests through parity CI

* fix: update Window direction handling and compatibility evidence

* fix: preserve error boundary reset refs and hydration

* test: retain pinned error boundary declaration artifact

* fix: use live reset from native error fallback

* perf: reduce repeated hook bookkeeping (#1076)

* perf: reduce repeated hook bookkeeping

* test: follow shared helpers in Lynx compatibility evidence

* fix: update Mantine Hooks compatibility to 9.6.1

* perf: split SSR escape pre-scan by string length (#1073)

* perf: reduce SSR bookkeeping cost (empty snapshots, scoped counters, dev checks) (#1077)

* perf: share empty SSR replay snapshots and allocate hook maps lazily

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* perf: flatten SSR frame scoped counters and hoist dev-mode checks

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* feat(jotai): migrate bindings to Jotai 3 (#1062)

* feat(jotai): migrate bindings to Jotai 3

* test(jotai): register hydration and pristine CI ownership

* perf: reduce compiler output allocation work (#1078)

* perf: reduce compiler output allocation work

* fix: register compiler output benchmark with MCP server

* fix: preserve root transaction rollback and reduce journal work (#1079)

* fix: invalidate stale retained Provider output (#1080)

* fix: update Motion bindings to 13.2 with scoped props and native host fixes

* fix: register Motion parity cases and refresh shared evidence hashes

* fix: preserve descriptor ownership and reduce renderer work (#1081)

* test: make motion parity checks reproducible in CI

* fix: update Alien Signals binding to 0.4.0

Add selectors, deferred snapshots, phase effects, batching and trigger APIs.
Reuse alien-signals 3.2.1 while retaining functional setters and cancelled
scope ownership. Refresh the immutable upstream suite, full strict public
contracts, SSR/hydration evidence and packed browser consumers.

Isolate pristine Bun types from workspace build plugins and repair the
verification defects exposed by the new upstream declarations and suite.

* test: separate Alien Signals parity projects

* fix: update Intersection Observer to 11.0.1

* fix(hook-form): update compatibility binding to 7.88.0

* test(hook-form): prepare clean typechecks and isolate parity projects

* fix: update MobX bindings for MobX 7

* fix: preserve deferred JSX props and MobX CI coverage

* fix: preserve context and render body ownership (#1082)

* fix: preserve context and render body ownership

* fix: validate lazy ownership through memo bailouts

* perf: resolve renderer-region owner with one chain-top lookup (#1085)

Context reads that resolve to a context default called
rendererRegionOwnerForBlock on every read, and it did a guaranteed-miss
WeakMap.get at every ancestor: bindRendererRegionOwner rejects any block
that is not a top-level root, so only chain tops can be keys. Climb to
the top directly and do one lookup; a module counter collapses the
common no-owner case to a single integer test.

Generated with [Devin](https://devin.ai)

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* Version Packages (#1058)

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

* feat: complete remaining Strong compiler checks (#1083)

* feat: complete remaining Strong compiler checks

* fix: preserve Strong inference and mutation semantics

* test: align mapped list fixture with Strong policy

* fix: harden Strong declaration caching and editor analysis

Review fixes for the automatic declaration cache and the new analyzers:

- Reuse the parsed module for renderer-region analysis in the template
  policy and trusted-HTML check. The second strict parse threw out of
  `compileToVolarMappings` on shapes the tolerant editor parser accepts,
  and the TypeScript plugin then dropped every Strong diagnostic for the
  file. Restore the three base fixtures that had been rewritten around it.
- Keep template `@for` row declarations out of the cache: the analysis
  does not model row bindings, so they were cached with empty inputs and
  rendered stale after item updates.
- Count hooks executed inside nested functions when judging a candidate,
  so `compute(() => useContext(Ctx))` is not frozen on its first value.
- Track class declarations as late bindings so a cache input never reads
  a class before its declaration runs.
- Recognise cleanup returned by an expression-bodied effect callback.
- Keep state provenance on values that mix props and state, and leave
  hook-named JSX builders with unknown arguments.
- Treat authored dependency entries whose root is imported or
  module-invariant as redundant instead of conflicting.
- Accept the `octane/strong` pragma as explicit ownership in slotHooks,
  forward plain-module Strong hints through the bundler, and keep a
  line-comment pragma readable when swapping to Strong JSX types.

Every change carries a regression test that fails without it.

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

* fix: address Strong compiler review and preserve hook ownership

* docs: refresh Strong audit against release main

---------

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

* perf: reduce universal renderer materialization and preparation work (#1086)

* perf: reduce universal renderer materialization and preparation work

* fix: preserve own-key semantics in retained feature scans

* chore: release universal benchmark tooling with runtime changes

* fix: align universal benchmark order in MCP schema

* perf: reuse SSR replay snapshots and streaming subscriptions (#1088)

* perf: investigate remaining client hot paths (#1090)

* perf: finish remaining runtime audit investigations (#1092)

* perf: skip context-dependency scans when no provider has committed (#1091)

Every memo/implicit bailout re-scanned the block's context dependency
maps even when no Context.$$version had moved — per-survivor bookkeeping
that was pure cost on context-quiescent renders. Stamp each block with
the shared context epoch (Symbol.for'd cell so duplicated module copies
share it at which its dep entries are known current; bailouts and
context-propagation refreshes now skip both scans while the epoch is
unmoved. provideContext and universal-renderer commits bump the epoch
beside the version; renderResolved bumps it at entry so external
bumpers (react-hosted mirrors, which publish then commit through
root.render) can never be masked by the fast path. Stale merges poison
the stamp so pending consumer refreshes are never skipped.

Generated with [Devin](https://devin.ai)


EOF
)

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(website): refresh published benchmark results (#1089)

* feat(i18next): update binding to react-i18next 17.0.14

Tracks react-i18next 17.0.14 (v17.0.14, 5f8c5f9) while preserving the
complete existing Octane surface and documented divergences.

Source changes from the upstream delta: useTranslation keys its wrapper
cache on language/resolvedLanguage/languages and warns
SUSPENDED_WHILE_LOADING; IcuTransWithoutContext falls back to
i18nKey || defaultTranslation; TransWithoutContext uses HTML.parse
allowedTags, unwraps a top-level Octane Fragment passed through
children, and carries the updated missing-i18n warning wording.

Adds the pinned upstream tree and artifact (124 files, MIT), provenance,
source ledger, closure and baseline audit artifacts, pristine/adapted
parity lanes covering 495 React and 458 Octane specs plus 314 type
registrations across fourteen programs, public-entry type assertions
for all three subpaths, and refreshed status/UPSTREAM metadata.

Extends react-parity/react-port tooling for multi-program type suites
and records the jest-dom vitest-instance inline fix in the pristine
config. Regenerates lockfile and manifest evidence hashes.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* merge: resolve manifest ownership against branch evidence

Restore branch-side react-parity manifests (their lanes claim the
testExecution entries this branch adds) and refresh lockfileSha256 for
the merged lockfile. Keeps catalog resolution react-resizable-panels
4.12.4 + ripple 0.3.128.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: discriminate scoped-read replay by source kind after merge

replayScopedContextReads arrived on main typed Map<Context, number>
while this branch widened scoped captures to ScopedReads (Context |
StoreInst). Replaying store keys through recordContextDependency was
unsound: stores carry snapshots, not $$version, and have no block
context-dependency channel. Discriminate with $$version presence —
contexts still record block deps; both kinds propagate to the enclosing
resolver's capture.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: give Vite-SSR hydration specs CI headroom

The parity-shard failures on this head were 5s timeouts in three
hydration specs that boot a Vite SSR server per case — pass in <1.5s
idle, ~4s under local load, and over 5s in a 246-lane CI shard. Same
signature as the load flakes already observed on main. Adds per-test
30s timeouts to the authored specs and a 15s project timeout to the
tanstack-query adapted suite (matching tanstack-router's config),
rehashing the affected manifests.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(tanstack-ai): raise ai-ui-hydration timeout for shard load

The dedicated hydration lane boots a fresh Vite SSR server through
renderHydrationFixture; under full-shard CI contention the 5s default
timed out (same class as the earlier tanstack-table/router/query fixes).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: raise infra timeouts hit under CI shard load

cli analyze tests spawn the CLI per case and mantine-hooks browser
navigation waits on a fresh-page networkidle from a busy Vite dev
server; both hit the 5s default under full-shard contention. The
describe-level 30s budget and a 30s goto timeout keep the deliberate
per-interaction deadlines while giving infrastructure room.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: raise base vitest testTimeout to 30s for shard load

Hydration, browser, and CLI lanes boot per-test infrastructure whose
cold start can exceed the 5s default under full-shard CI contention;
successive runs have rotated through different victims (tanstack-query,
table, router, ai, virtual, mantine-hooks, cli analyze). A base 30s
covers the slowest observed cold start while per-project overrides keep
their larger budgets.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(octane-evals): regenerate user-app corpus manifest after merge

The main merge resolved manifest.jsonl to a side whose graderDigest no
longer matched the merged grader files; the corpus staleness check
flags it. Regenerated via generate-user-app-corpus.mjs; --check passes.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: domgan-oai <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Dominic Gannaway <[email protected]>

---------

Co-authored-by: domgan-oai <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dominic Gannaway <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Dominic Gannaway <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent perf PR: performance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants