Public: anyone can read this; the crew can change it.
Stall log: a long-polled runner claim is resting, not in flight #16712
Check · Review · Land · Live done — Landed and live in production.
Production logged 347 event-loop stalls in an hour; 320 named /api/v1/runner/claim (in flight) (354 s total, worst 19 s). The claim is not the cause: each runner holds the long poll open up to 25 s, and src/perf/inflight.ts counted it in flight the whole time, so every stall in that window blamed it.
-
Reviews
ApprovedClean. Security: no new input, output or authorization surface. The change only removes a resting claim from the in-flight set, and it is reopened in a
finally, so a stall after the wake is still charged to it. The tests cover the wake, a key that is not open, a throwing rest, and a real claim on the desk. No door is needed, since this is internal diagnostics. No dependency was added. -
Checks
shipped production is serving it deploy aac12e1
-
History
- A runner's claim resting in its long poll is not charged with loop stalls 701c749
- Next up's pace line wins only when the cost line is unknown: a test shows both (#16763) 8e10c2c
- A pull reading says approval moved in one string: approvedAt reads "head against base" beside the object it carries now (#16761) f788d21
- Every /next decision kind has a test that fails without its 60-second Undo, and the MCP names the same undo (#16758) e78d344
- A 5,000-row deploy_pull prune batch holds the write lock under 50 ms, measured in a test (#16756) b9a4941
- The vendor's own variables (ANTHROPIC_*, CLAUDE_CODE_*) are read only inside the Claude runner's module (#16757) 46e0349
- Revert "LFS door: batch API and locks on the BlobStore" (#16754) 771a2a7
- The pull page answers inside a lower budget, measured (#16748) 9ac08ea
- The forge is a developer's file system: every app's database and the API spec, first-party (web, terminal app, MCP) (#16743) f6d3c84
- Component library: skeleton, toast and confirm dialog as ui.ts parts, each in the gallery (#16683) 6ba9019
- Quarantine untrusted repositories until a Sentinel security review passes (#16709) 92b768e
- A gate's checkout is not removed under it: three gates on #7608 went red on files missing from their own working tree (#16742) bec38a3
- Infrastructure: what runs on your own cloud, what it is for, what it costs and when it ends, and a plan tray that builds it (#16706) d11ea08
- A pull's pairs line counts pages, not pictures, when a page has both a phone and a desktop look (#16747) 0c2baa3
- GET a repository's milestones answers under 50 ms: trevato/forge's `read` phase is 1,365 ms today (#16735) 2816515
- Look pictures (a person's attachments) archive to the BlobStore (#16733) d5260ac
- In a preview, the forge pill's panel says the pull's check: green, red with its first failing test, or running (#16738) c904595
- The /__forge/ door's "More pulls" line says how many and links to the open pulls (from branch scout/6411-…) (#16736) af22bcd
- A test proves hotkey hints never shift a page, and design-lint refuses an inline keyhint outside menus and tooltips (#16741) 58a68e0
- The review and build briefs say a preview's /__forge/ and pill come from the host forge, so changes to them are judged by test (#16734) 6fc06e8
Production logged 347 event-loop stalls in an hour; 320 named
/api/v1/runner/claim (in flight)(354 s total, worst 19 s). The claim is not the cause: each runner holds the long poll open up to 25 s, and src/perf/in_flight.ts counted it in flight the whole time, so every stall in that window blamed it. A claim's own work is 0.2 ms (check_job_state index, 4 rows). Because a stall with a request in flight never looked at jobs, the real cause stayed hidden.InFlight.rest()takes a request out of the in-flight set while it waits innextOffer, and puts it back from the moment it wakes.After this ships the stall log names the real culprits (heap 600 MiB–1 GiB with GC; the
samplerjob about 1.1 s every 5 min are the leads).tsc, gate and 212 related tests pass.
🤖 Generated with Claude Code