Repository navigation
ci(bench): re-baseline the Lynx inventory budgets on main - #1717
Merged
Merged
Conversation
The weekly lynx-bundle-size suite fails in inventory.mjs: Web raw is 519,371 against the 501,574 frozen by #765 for the issue #57 candidate, and 22 of the 32 artifact, section, and owner gates are over. Only the weekly bench runs the inventory, so the growth merged since #765 never met a pull request gate. Every budget is now the bytes measured on main c60eef1 plus 32, the repository's size-budget ratchet. The checked report attributes the +17,797 Web / +17,782 Lynx raw to the pull requests that spent it, bisected over the 594 relevant main commits since #765. A new ledger entry records the mainline drift. Budget values and prose only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 4, 2026 16:37
Contributor
Benchmark report🟢 No budget breaches, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)
50 other measured values are unchanged. Public-import reachability bundles (bytes)No changes across 105 measured values. |
5 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a stale-budget reset with attribution. It changes no code.
The weekly
lynx-bundle-sizesuite fails ininventory.mjs:gateBudgetthrows at the first breach, which hides the rest. 22 of the 32 gates are over. #765 frozeinventory-budgets.jsonat the issue #57 candidate on 2026-08-17. Only the weekly bench runs the inventory, so nothing that merged since then met a gate.bench.mjsmerges each run's exit code intoharnessExit, so this failure alone fails the whole suite.Every budget is now measured + 32 bytes on main
c60eef1342, which already includes #1710. That is the repository's size-budget ratchet. The diff changes only budget values and prose:inventory-budgets.json: all 32 values, plus acontrolledLedgerentry for the mainline drift. It follows the existingmainline through dcf94cfc8entry.README.md: states the measured + 32 rule, the calibrate switch, and that owner slices are proportional.results/production-inventory.md: a re-baseline section with the measured artifacts, the per-PR attribution, and the owner-slice table. The More website #57 record stays below it.Artifact and section budgets
Where the bytes went
Rebuilding #765 (
21f4dfb244) reproduces its frozen raw budgets byte for byte. I built the inventory at the ends of the 594 first-parent main commits since #765 that touch reachable paths:packages/lynx/src,packages/octane/src,packages/rspeedy-plugin-octane, the fixture, and the lockfile. I then bisected every interval whose Web, Lynx, main, or background raw total moved by more than 200 B down to a single commit, which took 68 builds. Each row below is that commit's exact production delta against its first parent, and the rows sum to the totals.transport-codec.ts)hook-slot-cache.ts)context-identity.ts)All of these merged as performance or correctness work with their own justification. Nothing here is a new size tax.
Owner slices (largest deltas)
An owner slice is artifact raw × the owner's share of reachable transformed module bytes. Those module bytes still contain comments and code that minification later removes. A slice therefore also moves when another owner's share moves.
universal-core.ts+58,111 reachable: #1044 +24,452, #1086 +4,062, #816 +2,505, #1665 +2,169, #1299 +1,216, #1138, and #1011. About 26 KB more comes from commits whose final delta stayed under 200 B.transport-codec.ts(32,216 reachable). #909 adds +616.hook-slot-cache(#1076),context-identity(#1138, #1266),method-dep(#1339),sub-slot(#818),runtime-tags(#1169),context-epoch(#1091), andshared-value-helpers(#1435). Most of this code moved out ofuniversal-core.ts.The other seven owners are lowered to measured + 32. Each one's slice shrank as the shares above grew, and their reachable bytes are flat or nearly flat. The full table is in
results/production-inventory.md.Validation
node benchmarks/lynx-bundle-size/inventory.mjs: every gate passes (exit 0) on this branch (macOS, Node 24.18.0).pnpm format:files:check benchmarks/lynx-bundle-size/pnpm sync: no generated changes.node benchmarks/bench.mjs lynx-bundle-sizeend to end: the inventory passes, but the run still exits 1 inrun.mjs, the part this PR does not touch. See Risk.pnpm format:check,pnpm typecheck, andpnpm testwere not run locally. This change edits one JSON budget file and Markdown only.Risk / follow-ups
run.mjsstill pins background raw 8 bytes low. ci(bench): reset the Lynx main-thread caps and background pin for #1700 #1710 pinnedbackgroundRawat 288,390 from77504c160c. refactor(octane): move universal hook cells into the owner kernel #1714 then added 8 bytes, and main now measures 288,398. With ci(bench): reset the Lynx main-thread caps and background pin for #1700 #1710's caps,run.mjspasses at refactor(octane): move universal hook cells into the owner kernel #1714's parent4601dd3b4dand fails at refactor(octane): move universal hook cells into the owner kernel #1714. A separate budget-onlyrun.mjsre-pin is already owed by the Add a dedicated Lynx compiler backend and remove universal-renderer dependency #1055 work. I left it out because this PR covers only the inventory.inventory.mjs.budget-raises.mjsdoes not listinventory-budgets.json, so raises here are not checked against other files in the same PR.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Documentation and frozen benchmark budget JSON only; no application or inventory gate logic changes, though future merges can again outgrow caps until the next budget PR.
Overview
Re-baselines the weekly
lynx-bundle-sizeinventory gates so they match current production bundle sizes on main, without changing runtime or build code.inventory-budgets.jsonraises all 32 artifact, Lynx main/background section, and owner-slice raw/gzip caps to measured bytes + 32 (same ratchet as the repo size-budget policy). A newcontrolledLedgerrow records drift since #765’s frozen #57 candidate caps (~+18 KB raw Web/Lynx), distinct from pending controlled size taxes.README.mddocuments that ratchet, that only the weekly bench enforces these gates, how to recalibrate viaOCTANE_INVENTORY_CALIBRATE/OCTANE_INVENTORY_OUTPUT, and that owner slices shift proportionally when other owners grow.results/production-inventory.mdadds a 2026-10-04 re-baseline section with measured artifact hashes/sizes, a bisected per-PR byte attribution table (#765 → main), and updated owner-slice budgets; the older issue #57 record remains below for history.Reviewed by Cursor Bugbot for commit f8794a9. Bugbot is set up for automated code reviews on this repo. Configure here.