Skip to content

ci(bench): raise the deferred-hydration budget for Hydrate children signal owners - #1780

Closed
trueadm wants to merge 7 commits into
mainfrom
ci/hydrate-children-signal-owner-budget
Closed

trueadm wants to merge 7 commits into
mainfrom
ci/hydrate-children-signal-owner-budget

Conversation

@trueadm

@trueadm trueadm commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Update (main 9c84293179): this PR no longer changes anything; it is a 0-file diff against main. #1773 and #1782 landed, and on the new main the Hydrate children fix (#1781) measures deferred-hydration at 233,775 raw / 73,912 gzip / 63,763 brotli. That is under main's 234,315 / 74,141 / 63,955, and no other minimal, app or JSX budget is breached. Taking the max per value against main leaves every budget at main's value, so there is nothing left to raise and this PR can be closed.

Budget-only raise for the Hydrate children signal-owner fix, #1781.

Stacking. This PR is stacked on #1773, as rebuilt against main e233e4a11d, with 82 raises covering #1761 plus #1774. It carries #1773's budget commits until #1773 lands.

Budget (minimal-budgets.json) Metric #1773 New Measured
deferred-hydration raw 233,682 233,807 233,775
deferred-hydration gzip 73,914 73,914 (unchanged) 73,912
deferred-hydration brotli 63,955 63,955 (unchanged) 63,763

Why the growth is worth it.

  • The children a component writes between <Hydrate> tags rendered in Hydrate's own signal frame, in the browser and on the server.
  • So <Hydrate when={load()}>{record$.get()}</Hydrate> started a second request for the component's query, and a derived$ read computed from cells the component never updated.
  • The fix gives Hydrate's internal content body a lazy CHILDREN_SIGNAL_OWNER getter, which scopeSignalOwner already reads.
  • That code sits in the Hydrate boundary body, so only deferred-hydration reaches it.
  • Against the same stack without the fix, the fix adds +125 raw / +30 gzip / −29 brotli.
  • No other minimal scenario, app or JSX budget changes.

Rejected alternative. Detecting Hydrate inside scopeSignalOwner with hasComponentFlags grew every client bundle by 67–235 raw, including bundles that never import Hydrate.

Validation

Risk / follow-ups

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


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


Note

Low Risk
CI threshold-only change in benchmark budgets; no runtime or production code in this diff.

Overview
Raises only the deferred-hydration minimal bundle raw byte budget so CI can pass after the Hydrate children signal-owner runtime fix (#1781), without touching gzip/brotli limits or any other scenario budgets.

The deferred-hydration raw ceiling moves from 233,682 → 233,807 (measured ~233,775, padded per the repo’s raise-only rule). That headroom matches code that lives only on the deferred-hydration boundary path—a lazy CHILDREN_SIGNAL_OWNER getter for Hydrate’s internal body so children written between <Hydrate> tags share the correct signal frame.

No application or JSX budgets change; this is stacked budget work carried with #1773 until that lands.

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

trueadm and others added 4 commits October 5, 2026 12:58
Make room for resolving a component's signal handles from its nested
`@{ … }` blocks: about 70 minified bytes in client owner creation and 159 on
the server render path. Only raised values; no budget is lowered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…l-owner-budget

# Conflicts:
#	benchmarks/bundle-size/minimal-budgets.json
Compiled children now record the owner of the template that authored them,
and scopeSignalOwner links their owner, or a context provider's, to it. That
adds about 112-151 raw bytes to every client bundle and 171 to server-render.
Values are measured on the fix branch plus 32 raw/gzip and 256 brotli, and
only raise #1760's values.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ignal owners

`fix/hydrate-children-signal-owner` gives Hydrate's internal content body a
lazy signal-owner getter, so the children written between `<Hydrate>` tags
read their author's cells. Only `deferred-hydration` reaches that code:
measured 238,985 raw / 75,544 gzip / 65,252 brotli on the full stack, so raw
and gzip go to measured + 32. Brotli still fits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Oct 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
octane-website Skipped Skipped Oct 5, 2026 1:13pm UTC
octane-website-mcp Skipped Skipped Oct 5, 2026 1:13pm UTC

Request Review

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent ci PR: CI or build pipeline labels Oct 5, 2026
@trueadm
trueadm marked this pull request as ready for review October 5, 2026 13:14
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

🟢 No budget breaches, no added work, and no timing changes beyond ±3%.

Compares e233e4a11, the merge commit's first parent with 0ed5470e1 on the same runner. A byte value over its committed budget or any increase in a js-framework work counter fails this check. Wall time is a report: base and head samples alternate in one browser, and an operation is called slower or faster only when the 95% confidence interval of its ratio excludes ±3%. Workflow run

js-framework: 1k/10k row operations

All 20 timed operations (20 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 2.833 2.975 +1.7% ±0.0% … +3.8% ⚪ within noise
octane-tsrx replace 8.267 7.967 −3.0% −5.1% … +5.2% ⚪ within noise
octane-tsrx add 2.683 2.708 +3.9% ±0.0% … +6.1% ⚪ within noise
octane-tsrx update 0.143 0.145 +1.6% −0.5% … +5.2% ⚪ within noise
octane-tsrx select 0.006 0.006 −1.8% −13.1% … −0.0% ⚪ within noise
octane-tsrx swap 0.037 0.040 +3.6% +1.0% … +15.1% ⚪ within noise
octane-tsrx remove 0.021 0.022 +2.9% −1.1% … +6.1% ⚪ within noise
octane-tsrx runlots 27.075 26.333 −0.8% −4.6% … +3.4% ⚪ within noise
octane-tsrx select_lots 0.006 0.007 +0.5% −2.1% … +1.6% ⚪ within noise
octane-tsrx clear 55.100 55.400 −0.2% −3.0% … +3.9% ⚪ within noise
octane-jsx run 3.808 3.525 +2.7% −2.9% … +4.0% ⚪ within noise
octane-jsx replace 9.458 10.258 +5.2% −0.6% … +18.2% ⚪ within noise
octane-jsx add 4.008 4.308 +2.9% ±0.0% … +7.6% ⚪ within noise
octane-jsx update 0.318 0.295 +1.7% −0.7% … +5.4% ⚪ within noise
octane-jsx select 0.145 0.155 −0.3% −6.5% … +2.0% ⚪ within noise
octane-jsx swap 0.279 0.275 +1.1% −12.4% … +3.7% ⚪ within noise
octane-jsx remove 0.207 0.200 −0.0% −2.6% … +5.0% ⚪ within noise
octane-jsx runlots 35.067 34.192 −0.2% −3.5% … +6.2% ⚪ within noise
octane-jsx select_lots 1.625 1.630 −0.5% −4.7% … +3.2% ⚪ within noise
octane-jsx clear 59.225 58.008 −1.0% −2.7% … +1.4% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx bindings_js_gzip 239,481 239,468 −13 (−0.0%) 🟢
octane-tsrx bindings_js_brotli 204,088 203,984 −104 (−0.1%) 🟢
octane-tsrx bindings_app_gzip 121,381 121,368 −13 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 101,572 101,468 −104 (−0.1%) 🟢

56 other measured values are unchanged.

Public-import reachability bundles (bytes)

No changes across 105 measured values.

trueadm and others added 2 commits October 5, 2026 19:12
…ner-budget

# Conflicts:
#	benchmarks/bundle-size/app-budgets.json
#	benchmarks/bundle-size/minimal-budgets.json
…stack

#1773 now raises against main (e233e4a). On that stack the Hydrate
children fix measures deferred-hydration at 233,775 raw / 73,912 gzip /
63,763 brotli. Only raw breaches #1773's 233,682, so raw goes to measured + 32
and every other value keeps #1773's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main now carries #1773 and #1782's raises. Taking the max per value
leaves every budget at main's: on the new main the Hydrate children fix
measures deferred-hydration at 233,775 raw / 73,912 gzip / 63,763 brotli,
under main's 234,315 / 74,141 / 63,955, and no other budget is breached.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm

trueadm commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator Author

Closing: after merging main this is an empty diff. Main's budgets, with #1782 and #1793 merged, already cover #1781 (deferred-hydration 233,775 raw against a 234,315 budget).

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 ci PR: CI or build pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant