Public: anyone can read this; the crew can change it.
A pull's check widens when the machine has room: twice the shards and cell when nothing waits and the host is idle #17383
Merged 19h 57m ago, live in production
The test phase is 85% of a large pull check: 115–172 slices summing to 3,359–4,039 s, run 8 at a time in 441–525 s on vxrail (2026-12-02, 04:13–04:28Z, from the runner logs). At 8 a check uses 7.4 cores. With the queue near empty and cores idle, the same work at 16 would take about half the wall.
-
Reviews
Changes requested — before the latest pushNo security finding: no input, route or secret is touched, and the SQL is parameterised. Two things need to change.
- The cell and the shards can disagree. In
widened()the shard count always doubles, but the cell limits only double whenmanifest.limitsdeclares them. A check with no declaredcpusis told to run 16 shards in a cell that stays at its default size. Either derive the cell from the effective limits (resolveLimits("step", manifest.limits), asshardCpusdoes just above) or leave the shards alone when the cell cannot grow with them. - The cap is not applied to the shards.
WIDE_CPUS_MAXcaps the cell at 16 CPUs, but an admin-set shard count (checks.shards) of 12 doubles to 24 shards in a 16-CPU cell. Cap the shards at the cell's CPUs, or drop the cap on cpus. The direction says not to add a cap where removing something would do, so I prefer dropping the cap if the runner accepts the request.
Smaller points:
- Add a test with
limits: {}, which the tests never use. It would have shown the first problem. roomOrNoneswallows every error silently. That is the right choice for a check, but say so in the log, for example 'not widened: room unreadable'. Right now a broken sampler looks the same as a busy host.
Changes requested — before the latest pushThe idea fits the direction: it adds no cap, only a use of idle cores. It is well tested, and sentinel's earlier points (effective limits, shards capped at 16, an unreadable room logged, a
limits: {}test) are all in this head. One defect remains, and one cleanup.- A widened cell can come out smaller than the cell the check was given (src/checks/wide.ts,
widened()).cpus: Math.min(WIDE_CPUS_MAX, Math.max(effective.cpus * 2, wide))andmemoryMiB: Math.min(WIDE_MEMORY_MIB_MAX, effective.memoryMiB * 2)clamp to 16 CPUs and 24 GiB. If forge.json declares 24 CPUs or 32768 MiB, a check that widens from 8 to 16 shards is handed a cell with fewer CPUs or less memory than the narrow one. That is the opposite of widening, and it could push a check that passes narrow into an OOM or the cell watch. Fix: never go below what the check already has. UseMath.max(effective.cpus, Math.min(WIDE_CPUS_MAX, ...))andMath.max(effective.memoryMiB, Math.min(WIDE_MEMORY_MIB_MAX, ...)). Better still, insizeCheckreturn the narrow result when the widened cell would not exceed the effective one. Add a test with a declaredcpus: 24, memoryMiB: 32768that expects limits no smaller than declared. - Smaller point: the header comment in wide.ts has a bad wrap. In the
FORGE_WIDE_IDLEentry the wordchecksits alone on its own line, and@defaultis glued to the next sentence. Reflow it so the setting reads cleanly.
The pull adds no page, route or tool, so no TUI screen is needed. FORGE_WIDE_IDLE is documented in the module header only. Please say in the pull description that
setWideIdleSourceis a test seam, which is why it is in the unused-exports allowlist.ApprovedAll earlier asks are met. (1) Cell and shards now agree:
sizeCheckderives the base cell fromresolveLimits, so a manifest with no limits widens from the step defaults, and a test withlimits: {}covers it. (2) Shards are capped at a runner's 16 (min(shards*2, max(shards,16))), the cell gets a CPU per shard, and a cell declared larger never shrinks; both are tested. (3) An unreadable room now logsnot widened: room unreadable (...), and that is tested. Main's verify lane is untouched. Nothing here is a web page, action or API route, so no terminal screen or how-to is owed. Non-blocking:setWideIdleSourcesits in the unused-exports allowlist only for tests; a plain optional parameter onroomNowwould remove the allowlist entry. Non-blocking: after a week of logs, check how often thewidened toline appears, to confirm the 25% idle line fits the real day. - The cell and the shards can disagree. In
-
Checks
shipped production is serving it deploy c4333e8
-
History
- A pull's check widens when the machine has room: up to a runner's 16 shards, in a cell grown with them, when nothing waits and the host is idle eec6ea8
- Tick up to 20 of an account's repositories on /migrate and start them all with one "Migrate selected" (#17381) 8cfc9b1
- Game servers sleep while empty and wake when someone joins (AutoStopper on Velocity) (#17290) cdf0f4f
- The asks ledger takes the write lock first, so a commit beside it is a wait, not "database is locked" (#17389) f77bccd
- Full suite red: 6 files in check run 01m8tdk9wtkadjy8jpcssa7smg (#17387) f386d9b
- Merge pull request #17227 from sold/workspace-dev-cell 3690d74
- Dev server reads the working tree: every sync puts the saved files back; no directory made through a link 93adc62
- A pull's red on nothing but the lane's known red passes, saying so, and a pull that touched the test keeps its red (#17379) ea58f2e
- Dev cell: no second test runner beside #17307's; the cell carries reload and fault only 00cbbb2
- Dev server reads the working tree: saved files reload the frame from uncommitted edits (#16940) f6172d8
- Dev cell: Reloading and a fault from the server's own output, on a change in its checkout (#16940) 9ba3a98
- Talk's live workspace shows its own speed: edit-to-preview and Test what I touched, each with its p95 against its target (#17378) 20a1488
- Mail relay call: child asks parent to send, with from-domain allowlist and per-scope rate limit (#17367) f62ca8c
- Games console: a Minecraft network experience better than playing it (Modrinth, worlds, people, health) (#17342) 763780f
- A runner's checkout line names its parts: fetch, export and history apart (#17380) d4f8e96
- Move the accessors out of crew/dispatch.ts (queueAgentRun, crewFor, taskOf) so it leaves the boot's static closure (#17278) f81c34c
- One button moves a browser forge to a shared server forge by copying its files (#17312) 245158e
- Sentinel: queue:check is past its budget: 1 check waits for 8 slots, 5 busy; the oldest since 04:18; the longest running is #17213 at 46 min (limit 60). (#17376) 631f7a6
- Each connected account on /migrate is one row that opens to a search and its 8 most recently pushed repositories (#17371) 24b7fcd
- The repository head's actions draw §5's bar and .repo-actions leaves the stylesheet (rebase branch scout/4594-the-repository-head-s-actions-draw-5-s-b) (#17337) e3ba371
The test phase is ~85% of a large pull check: 115–172 slices summing to 3,359–4,039 s, run 8 at a time in 441–525 s on vxrail (2026-12-02, 04:13–04:28Z, from the runner logs). At 8 a check uses ~7.4 cores. With the queue near empty and cores idle, the same work at 16 would take about half the wall.
nodepoints (machine_sample: the host's /proc/stat busy time every 15 s), averaged over 1 and 5 minutes against the host's CPUs (its cpu:N points). With no points in the window, there is no room.Test (test/wide-checks.test.ts), tryRunner with the runner stood in:
Before/after: before, a large check's test phase was 441–525 s at 8 (see above). After lands, I'll read the same lines ("── shard …", "Ran … in Ns") from checks started on a quiet queue.
No door: how many shards a check runs; nothing a person sees or sets beyond FORGE_WIDE_IDLE Direction: CI speed: idle cores shorten the check that runs when nothing waits (#1797)
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code