Skip to content

ci: budget integrated producer and transition cue costs - #1901

Closed
domgan-oai wants to merge 5 commits into
octanejs:mainfrom
openai-oss-forks:codex/integrated-producer-cue-budgets
Closed

domgan-oai wants to merge 5 commits into
octanejs:mainfrom
openai-oss-forks:codex/integrated-producer-cue-budgets

Conversation

@domgan-oai

@domgan-oai domgan-oai commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Update bundle ceilings for native producer pacing (#1875) combined with the split pending-cue implementation already landed in #1888. #1891 measured the producer change before #1888; #1887 measured #1888 without the producer change. The integrated build exceeds 18 of those combined ceilings. This PR changes only measured budget values, following the separate-budget policy in CONTRIBUTING.md.

Why

#1875 retains the shared host-task admission and approximately 5 ms producer budget while preserving #1888's previous-state pending cue. Its integration places cue rendering on the transition root capability so native-only readers do not call missing transition methods or retain offscreen rendering. The combined code changes production compression and reachability compared with either earlier budget measurement. These are measured allowances for that reviewed implementation, not new runtime behavior.

Changes

Retain every ceiling from #1887 and raise only the 18 metrics whose measured value exceeds it. Apply the repository's existing headroom: 32 bytes for raw/gzip, 256 for Brotli. The largest additional allowance is hydrate-frame raw: 365,796 → 366,136, for an observed 366,104 bytes. Its source delta against main is +1,584 raw and +590 gzip; most of that producer cost was already budgeted in #1891.

Budget Scenario Metric #1887 cap Measured New cap
minimal-budgets.json root-static brotli 45579 45596 45852
minimal-budgets.json hydrate-root gzip 44196 44219 44251
minimal-budgets.json hydrate-frame raw 365796 366104 366136
minimal-budgets.json hydrate-frame gzip 113469 113537 113569
minimal-budgets.json suspense-transition raw 141582 141591 141623
minimal-budgets.json suspense-transition gzip 44759 44768 44800
minimal-budgets.json binding-base-ui-vite raw 199780 199790 199822
minimal-budgets.json binding-base-ui-esbuild raw 215300 215315 215347
minimal-budgets.json binding-radix-vite raw 201811 201825 201857
minimal-budgets.json binding-radix-esbuild raw 217124 217139 217171
minimal-budgets.json binding-radix-esbuild gzip 70294 70298 70330
minimal-budgets.json binding-mantine-hooks-vite gzip 28396 28398 28430
minimal-budgets.json binding-apollo-client-vite raw 342231 342242 342274
minimal-budgets.json binding-apollo-client-esbuild raw 365443 365458 365490
minimal-budgets.json binding-apollo-client-esbuild gzip 116065 116087 116119
app-budgets.json weather / total brotli 44466 44467 44723
app-budgets.json bindings / framework raw 341226 341240 341272
app-budgets.json bindings / total raw 688864 688878 688910

The integrated build also allows a 37-byte downward Brotli ratchet for binding-base-ui-esbuild; that reduction belongs in the implementation PR. No runtime, tests, workflow gates, or headroom policy changes are included here.

Validation

Risk / follow-ups

This builds on the budget-only #1887. Merge #1887 first, then this PR before #1875 and #1877. Until #1887 lands, its budget changes are also visible in this branch. Raised unused headroom can make other feature PRs fail their downward ratchets, so keep the budget and implementation merges together. #1875/#1877 will be checked again with these ceilings and their required reductions.

The producer budget cannot interrupt an expensive callback or commit. The implementation's separate timing evidence is in #1875; this PR makes no new performance claim.

Provenance

  • An agent produced this diff (agent-authored)

Codex task · host com-79386


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
JSON budget ceiling updates only; no production code, tests, or CI gate logic changes.

Overview
Raises bundle size ceilings in minimal-budgets.json and app-budgets.json so CI matches measured output from the integrated native producer pacing and split pending-cue work—not new runtime behavior.

Only metrics that exceeded the prior caps (mostly #1887) are bumped, using the repo’s usual headroom (+32 raw/gzip, +256 brotli where applicable). Affected areas include hydration (hydrate-frame, hydrate-root, suspense-transition), several binding scenarios (base-ui, radix, apollo, mantine-hooks), weather / bindings app totals in app-budgets.json, and a small chat framework gzip allowance.

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

trueadm and others added 5 commits October 8, 2026 13:20
Budget-only raise for the companion fix that commits a pending cue apart from
its own component's transition (octanejs#1864). Values come from run-minimal.mjs
--write-budgets and run.mjs --write-budgets octane-tsrx octane-jsx on that
branch merged with main 8444db8. Only the nine scenarios that start
transitions move, by about +1.29 kB raw and +0.31 to +0.39 kB gzip; apps that
never start a transition stay inside their existing budgets.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
octanejs#1888 now also marks retained transition updates its block already rendered,
so a later split cue cannot expose a committed plain cell's base: about
+128 raw and +45 gzip on the nine transition scenarios. Values from
--write-budgets on octanejs#1888's head.

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

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

# Conflicts:
#	benchmarks/bundle-size/app-budgets.json
#	benchmarks/bundle-size/jsx-budgets.json
#	benchmarks/bundle-size/minimal-budgets.json
@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 8, 2026
@domgan-oai
domgan-oai marked this pull request as ready for review October 8, 2026 14:23
@trueadm trueadm closed this Oct 8, 2026
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.

2 participants