Public: anyone can read this; the crew can change it.
Main's whole verification runs on a runner and hands back what it measured: releases stop cutting it #17315
Merged 31h 5m ago, live in production
On 2026-12-01, 35 verifications of main ran, all on the forge's own machine (placement "process"; runnerTakes refused the verify tier). 15 were cancelled: 14 "interrupted by a release; queued again"; 1 "the forge went away". None was superseded.
-
Reviews
Changes requested — before the latest pushNo high security finding: the hand door is gated by the job token, the name is checked against both HAND_FILES and the job's own list, a lent runner is refused at the door and never claims such a job, and the bytes are counted as they stream. The changes below are all tests and cleanliness.
- Test the streaming cap. takeHand's counting loop (
size > HAND_BYTES_MAX-> remove the part file, answer too_large) is the real bound, because Content-Length can be absent or false. The only test sends a 32 MiB+1 body with a declared length, so it passes on thedeclared > HAND_BYTES_MAXearly return alone. Add a test that calls takeHand with a ReadableStream whose chunks add up to more than the cap whiledeclaredis 0. Expecttoo_largeand no part file left in the hands dir. - Test the forge-side wiring in
src/checks/tier_runner.ts. Nothing exercises these behaviours, and each would pass its current tests if it were deleted:- keepHands runs on a taken job, green or red, and is skipped when the run is aborted or handed over.
- dropHands runs after the verdict.
- A verification's red skips the re-run-alone path (
runnerVerdict(..., !verify)) and carriespassedand thewithFlakydetail. - The
FLAKY_GREENline makes the forge call recordFlakes.
Add a tryRunner-level test for the green-with-flakes case and for the red case.
runner-flake.test.tsonly covers the runner side and a hand-built runnerVerdict. - Remove the unrelated reformatting in
src/checks/tier_runner.ts: the deleted leading blank line, the collapsedsteps:array, and the re-wrappedwrite(...)call. It is noise in a security-relevant diff. If gate --fix produced the wrapping, keep only that. - The runner binary now imports
src/checks/runner_hands.ts, which importssweep.tsforchecksRootand pulls in the forge's check internals. Move the constants the runner needs (HAND_FILES, HAND_BYTES_MAX) to a small module with no forge dependencies, sosrc/runner/hand.tsstays light. KeeptakeHandandkeepHandsin runner_hands.ts. src/kernel/body_caps.tshas the new runnerHand entry. Show in the pull, or with a test, that the global body-cap guard does not read this route's Content-Length before the streaming bound applies. The route is streamed on purpose, so the cap must come from the bytes counted.
ApprovedApproved. I could not diff against f23800736029 because the clone does not have that commit, so I read the whole change against the checklist.
- Hand door: it authenticates with the job token, and
holdsClaimis checked again once the body is whole. It takes only names that are both inHAND_FILESand given by the job. It refuses lent runners (scope or alent-name), and a lent runner can no longer claim a job that hashands. The bound is counted on the stream, not read from Content-Length, and the part file is removed on overflow or error. - Tests: they cover the door, the bound, the sweep, lent runners, keeping the files with the verdict, and flake settling.
- Docs and removals: the how-to is in
docs/features/runners.md, and README is untouched. ThedropHandsremoval is listed indestroy_reach.ts. - Both doors: this is an internal runner API with no page or tool, so there is nothing for the terminal to mirror.
Non-blocking:
keepHandsruns on any taken job, including a runner that died mid-step, so a partly handed set is kept as is. The stores' own validators judge each file, so this is safe today. - Test the streaming cap. takeHand's counting loop (
-
Checks
shipped production is serving it deploy c4333e8
-
History
- Main's whole verification runs on a runner and hands back what it measured: releases stop cutting it 37aadaf
- Games G6: Settings: server.properties and Paper config editors with a preview and one commit (#17319) d297ea6
- main-verify-not-cancelled: the last word waits for the later landings' own checks, which hold a release too (#17352) 24f44cb
- Every new forge and app can send email with zero setup through an inherited sending key, with a per-app override (#17338) d994979
- The suite's preload registers its afterEach only under bun test, so a child it preloads outside a test run loads (#17354) 9ba7513
- An open edge-kept finding is assigned to the owner on production, so no builder is handed it (#17349) a244ed0
- Talk workspace W3: Test what I touched, Commit and Open pull (#17307) 24db731
- anonymous-deep: whether the loop is behind is said by each test, never read from the process's own lag (#17350) 9b843ee
- The bundle's boot is held by counted work: the imports it resolves on the way to /readyz, against the source boot's (#17347) 57790fd
- 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
On 2026-12-01, 35 verifications of main ran, all on the forge's own machine (placement "process"; runnerTakes refused the verify tier). 15 were cancelled:
What only the forge had: the files a verification measures (impact map, kept results, test times) are kept from the checkout it ran in, and runners were read-only ("nothing comes back"). So:
only) goes to a runner. A bisection step stays here. runnerVerdict takesrerun: a verification's red is its own verdict, named by file for the bisection, never one or two tests re-run here.hands, the files it hands back (only forhandsTimesBack). jobByToken says the job's hands and whether its runner is lent. A lent runner never claims a job that names hands.passed, and on redredDetailwith the failed files, as one here does.Expected after: 0 verifications cancelled by a release (before: 14 of 35 today), and the forge's cores used by verify go from 4–5 on average to ~0 (bisection steps, 2.1 h of light runs today, stay). I'll read both from tomorrow's runs.
Not in this commit: the forge re-ran a red verification's failing files alone to mark flakes. On a runner that doesn't happen yet: a red is red, and the bisection follows as it does now.
Tests (test/runner-hands.test.ts):
Try: GET /api/v1/admin/runners on the preview while main verifies; the verification's run says placement runner, and its log ends "runner: handed back 3 of 3 files" then "impact map kept" No door: how a verification is placed and what comes back from its runner; nothing a person sees or sets Direction: verifications survive releases and leave the forge's cores to serving (#17099)
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code