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

opened this

Merged 35h 4m 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.

Notes

opened this

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. A cancelled verification keeps nothing: about 320 minutes of verify time, roughly 24 CPU-hours at the 4–5 cores one uses (sampled live: 1,834 CPU-s in 432 s), thrown away. A runner's job survives a release (#16991, #17099 adoption), and moving the lane off the forge frees those cores for serving.

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:

  • runner_step.ts runnerTakes: the default branch's whole verification (verify, keepImpact, no only) goes to a runner. A bisection step stays here. runnerVerdict takes rerun: a verification's red is its own verdict, named by file for the bisection, never one or two tests re-run here.
  • runner_jobs.ts: a job names hands, the files it hands back (only for handsTimesBack). jobByToken says the job's hands and whether its runner is lent. A lent runner never claims a job that names hands.
  • runner_hands.ts and POST /api/v1/runner/jobs/{id}/hand:
    • The job's token, only a name the job gives (.forge-impact.json, .forge-kept.json, .forge-times.json), never from a lent runner, at most 32 MiB each (production's map is 3.9 MB).
    • Written to <checks>/<run>.hands, which the sweep treats as the run's own.
  • tier_runner.ts: the job names the three files. With the verdict, green or red, never cut or handed over, keepHands keeps them through keepImpact/keepKept/keepTimes, the same functions a verification here uses. The verdict carries passed, and on red redDetail with the failed files, as one here does.
  • runner/hand.ts: when the check step has run, the runner posts each named file before it reports done, and says what it handed.
  • OpenAPI row; docs/features/runners.md.

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):

  • runnerTakes: main's whole verification goes, a bisection step does not.
  • The door takes a named file from the job's runner. It refuses another name, a job naming none, another job's token, a runner made lent, and a file over the bound.
  • The real runner's handBack sends its checkout's three files, and keepHands puts them in the stores.
  • The sweep spares a live run's .hands and takes it after.
  • A lent runner never claims a job that hands back. checks-runner-placement now expects verify to go to a runner. Runner-claim, runner-seeds, runner-red-alone, lent-runners, lent-yield, check-times, and the OpenAPI and route-marks tests pass.

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

commented

Taken over by @trevato; stopped @sentinel.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs