Repository navigation
Unbreak main: raise the startup transfer budget to the margin it shipped with - #10700
Conversation
Frontend CI has been red on main since 7b9bb03, which crossed the 1,620,000 byte startup transfer ceiling by one byte. Its only frontend change is one English sentence in a settings panel, rewritten shorter. Nothing became eager that should not be: across the window the eager chunk set gained no member. main now measures 1,623,641 bytes, so raise the ceiling to 1,690,000, which is 64.8 KB (4.1%) of headroom, the same margin this file shipped with in #8964. rawBytes is left alone at 64.7 KB spare so both halves come up for one re-measure together.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Main raised the same ceiling to 1,645,000 independently. Keeping 1,690,000: main measures 1,585.6 KB and clears 1,645,000 by 20.9 KB, which is 1.3% and about six days at the measured drift -- the same margin the previous raise left, which lasted six days.
|
Rebased on main, which raised this same ceiling to 1,645,000 in the meantime. Keeping 1,690,000, because 1,645,000 is the same squeeze again. main measures 1,585.6 KB transfer and clears 1,645,000 by 20.9 KB. That is 1.3%, about six days at the 3.7 KB/day this file has drifted since 17363f8. It is the same margin the previous raise left, and that one lasted six days before main went red on a commit whose only frontend change was one English sentence rewritten shorter. 1,690,000 leaves 64.8 KB, 4.1%, which is the proportion #8964 shipped with and which absorbed 17 days. rawBytes stays at 64.7 KB spare so both halves come up for one re-measure together rather than each dragging main red separately. Measured on this branch: 5306.4 KB raw, 1585.6 KB transfer, 82 chunks, within budget with 64.8 KB transfer and 64.7 KB raw to spare. The build is byte-identical to main; only the ceiling moved. |
Why main is red
Frontend CIhas failed on every push tomainsincedc1b0be27(2026-09-09 11:52 UTC).Three different causes ran back to back. The first two are already fixed (a missing
readFileSyncimport, then an autoload guard test). Since92141b327(2026-09-10 02:16 UTC)the sole remaining failure is
Frontend build + bundle sanity, stepnpm run bundle:check,and that is what is red now.
What actually crossed the line
npm run bundle:checkcompares the eager startup transfer size againstBUDGET.transferBytes,currently 1,620,000 bytes. Building each commit locally reproduces CI to the tenth of a
kilobyte, so these are exact byte totals:
3f2c89537e3e457a7dab28823881ad44677d7b9bb039592141b327d4ef69f84maincrossed the ceiling at7b9bb0395by one byte, with its parent sitting 14 bytes inside.The only frontend change in
7b9bb0395is one English sentence inkeyless-api-access-section.tsx, rewritten shorter, which happens to compress 15 bytes worse.The gate did not report any of this at the time because the job never reached that step: from
dc1b0be27to1b0a2e419a typecheck error and then a unit test failed ahead of the build.92141b327fixed the last of those and uncovered the budget failure that had been sittingthere since
7b9bb0395.Which of the two fixes this is
The script offers two remedies: unwind a static import the first screen does not need, or raise
the budget with the measurement. I looked for the first one and it is not there.
Across the whole window the eager chunk set gained no member. The one commit that changed what
is eager is #10629, which restored the eager
SettingsDialogandFloatingMonitormount that#10236 had made lazy. That was an intentional, reviewed startup UX fix, it grew an already-eager
chunk rather than adding one (nine small shared chunks were absorbed into larger eager ones, so
the chunk count fell from 91 to 82), and even with it
mainwas still 2,217 bytes inside budget.Its own
Frontend CIruns were all cancelled, so the gate never priced it, but it did not breakthe ceiling either. There is nothing to lazy-load in the commit that did.
So this is drift, and the budget is stale. Its history says the same thing: #8964 set 1,600,000
against a measured 1,496.2 KB on 2026-08-16, which is 67.9 KB of headroom (4.4%) and absorbed
17 days of ordinary work. #10054 then set 1,620,000 against a measured 1,562.6 KB, which is
19.4 KB (1.2%), about a quarter of the original margin, and it lasted six days. A ceiling that
mainsits one byte under is not a gate, it is a coin flip on the next string edit.The raise
mainatd4ef69f84measures 1,623,641 bytes (1585.6 KB) transfer, 5,306.4 KB raw,82 chunks. New
transferBytesis 1,690,000, which leaves 64.8 KB (4.1%) spare.That figure is not rounded to taste. It restores the proportion this file shipped with in #8964
(67.9 KB, 4.4%), which is the calibration that demonstrably worked. Measured drift since
17363f8a2is 1,496.2 KB to 1,585.6 KB over 24 days, about 3.7 KB of transfer a day, so 64.8 KBis roughly 17 days, the same lifetime the original margin bought. Going wider would blunt the
gate for less reason: the failure mode it exists to catch is a single static import of something
the first screen does not need, and the case documented in the file was a 2.4 MB dialog, far
above 64.8 KB compressed.
rawBytesis deliberately left at 5,500,000.mainmeasures 5,306.4 KB raw against it, which is64.7 KB spare, about 16 days at the measured 4.1 KB a day. Raising it now would push the two
halves onto different clocks; leaving it means the next re-measure is one PR covering both.
Verification
From
studio/frontend, on this branch atd4ef69f84:The build is byte-identical either side. Only the ceiling moved.
npm test: 7275 pass, 0 fail, 0 cancelled, 0 skipped, 0 todo.npm run typecheck: clean, exit 0.The comment above
BUDGETrecords the measurement, the commit that crossed, and why thisheadroom rather than more or less.