Public: anyone can read this; the crew can change it.
The bundle's boot is held by counted work: the imports it resolves on the way to /readyz, against the source boot's #17347
Merged 33h 11m ago, live in production
The bundle is the cheap path to /readyz (#17019) because it does not resolve and load the source's thousands of modules.
-
Reviews
ApprovedTest-only change with no page, API or terminal surface, so the two-doors rule does not apply. It replaces the wall-clock bound, which was flaky on runners, with a count of the imports each boot resolves. That is a sound fix, and the test removes a time cap instead of adding a governor. The old timed test is gone, so there is still one way to check this. The doc line and the SLOW entry in scripts/gate.ts match the new test. README is untouched. The pull is green.
Two things I would do next:
- Add a second assertion that the bundle boot still reaches the lazily imported modules, for example by counting after one request that triggers a lazy route. A bundle count of 1 shows the bundle is bundled. It does not show the bundle serves what the source does.
- The header and docs quote numbers (1 vs 8,592) taken from this pull's own check. Once main has run the test, re-quote them from main's log so the figures do not cite the pull that introduced them.
-
Checks
shipped production is serving it deploy c4333e8
-
History
- The bundle's boot is held by counted work: the imports it resolves on the way to /readyz, against the source boot's 24235e1
- Revert #17320: the bundle boot's CPU share doesn't separate bundle from source on Linux (#17346) 2e737a7
- A spawn whose first proof answered still settles it, so the new home is asked… (#17331) 8485415
- Full-suite report files every tally echo under the budget note's file (failed… (#17333) 466ceda
- The crew falls back to the capped key when every plan's window is full, and Settings → Crew shows and steers it (#17168) 4cad6ca
- The bundle's boot is held to a share of the source boot's CPU, measured in the same run, not a wall-clock bound (#17320) 252f7b6
- server.ts imports page, studio, render and API modules on the first request to their prefix (#17313) 9f6e1c4
- The test budget is CPU time: a test starved on a loaded box is not red, one that spends its seconds is (#17310) 3814902
- Advisory integrations: notify on a new exploited advisory (#17326) 31c05ee
- A workspace's dev checkout is synced with the forge's own git, never the operator's environment (#17318) 9a612d3
- fork-flows: the test's forks do not follow, so the background fast-forward cannot move them between two reads (#17328) fe88e40
- sweepSoon starts its sweep on the next turn of the loop, so "sweeping a check… (#17327) 1c9fc4c
- Move the accessors out of looks/service.ts (keepLook, lookUrl, memoryPressure) so it leaves the boot's static closure (#17277) 3bdad32
- Shards are packed by the verification's times first: the committed table's stale ones no longer win (#17296) 0d8a7ee
- The scans' budget is their planned wall time over the check's shards, and the scans carry their measured times (#17321) dd898c7
- Sentinel: The guard parked 20 runs in a private repository (01m5th8bwh248hrnezwstf9fff) in a day (#17325) 909a51b
- Sentinel: The guard parked 62 runs in trevato/forge in a day (#17324) 237edd2
- Two pulls opened in the same instant can be recorded with one head (#17273) 3bb7949
- Move the accessors out of apps/runtime.ts (appsRuntime, envsFor) so it leaves the boot's static closure (#17252) 5bd09d3
- Say where a pull stands in one pane: one reader, three doors (#17187) 32c8a8a
The bundle is the cheap path to /readyz (#17019) because it does not resolve and load the source's thousands of modules. Two timed bounds failed on runners: a wall-clock bound (busy runners), then a CPU share set from Mac numbers (0.37) that read about 1.0 on Linux (0.88 to 1.11 over ten checks) and failed every pull (#17320, reverted in #17346, which this replaces). Now each boot runs with a preload that counts the imports it resolves (
test/helpers/count-imports.ts, aBun.pluginonResolvethat answers nothing) and says the count on SIGUSR2 once /readyz answers 200. Counted work, the same on any machine.Measured on the Mac: the bundle 1 import resolved, the source 8,592; the bound is a hundredth of the source's, and a source boot must resolve over 1,000, so the count is live. It bites: with src/http/server.ts imported at the bundle's top for one run, the bundle resolved 6,060 (share 0.7053) and the test went red. The numbers print on every run ("imports resolved to ready: bundle …; source …; share …"). On a runner (#17347's check, shard 7/64, read from the full log on the host): "imports resolved to ready: bundle 1; source 8592; share 0.0001", the same as on the Mac, as counted work should be.
docs/features/bundle.md and the gate's SLOW reason say what the test now does (2 s alone).
No door: test only. Direction: checks in minutes, no wall-clock bound in a pull's check (#7824).
🤖 Generated with Claude Code