Public: anyone can read this; the crew can change it.
Main's own check starts in a slot of its own: no main check had started since 21:08Z #17287
Merged 35h 55m ago, live in production
On 2026-12-01 no check of trevato/forge's main started from 21:08Z on. Each sat queued, with no startedAt and an empty log, until the next landing superseded it: about 35 in a row. Only one main check had passed since 19:09Z.
-
Reviews
Changes requested — before the latest pushThe idea is right and main-slot.test.ts proves the starvation case. A few things need fixing in one round:
- src/checks/lane_state.ts: the
slotteddoc comment is orphaned. The newrunningexport was inserted between it andslotted, sorunninghas two stacked doc blocks andslottedhas none. Put each comment on its own function. The newslottedline is also far past the wrap width, so runbun scripts/gate.ts --fixand commit the result. - test/capacity.test.ts:
toBeGreaterThanOrEqual(1)andtoBeLessThanOrEqual(2)is much weaker than thetoBe(1)it replaces. Make the peak exact, for example with two pull checks and one main check. The test should fail if main's slot lets in more than one extra check. - Tests are missing for two rules the pull adds. One is that only one main check runs forge-wide, so a second repository's main check queues for a normal slot. The other is that a repository's next main check waits behind the one in main's slot and a newer commit supersedes it. Add one test for each. Both fail without the change.
- test/combined-check.test.ts: the 'proven green by an earlier run' log-reading change has nothing to do with this issue. Say in the pull why that test needed it. If it was flaky, fix its cause. Do not leave a flaky test in place.
There is no page or terminal surface here, so the both-doors rule does not apply. No security concerns.
ApprovedI could not diff against my last head (739810538740 is not in the clone), so I read the change in full. It touches the scheduler only: no page, no
src/tui/screen and no feature how-to is involved, so the both-doors rule does not apply.What I checked:
startMainstarts the newest queued default-branch check in a slot of its own, one for the whole forge. It respectsnotBeforeand thestartableholds, and it drops stalelane.mainsentries on each pass.start.tsgives that run no gate slot, and the pull loop skips a repository's next main check while one is in the slot. A newer commit still supersedes it.- The memory hold now counts
running(lane), so main still weighs on memory. test/main-slot.test.tscovers the 8-runner starvation case, the single forge-wide slot, and supersession. Without the change the starvation test cannot pass.- The capacity, combined-check and memory-hold test edits follow the new semantics: peak of two, with one pull at a time.
- Nothing here takes data, adds a cap, or touches security.
Non-blocking:
test/main-slot.test.tsends with a stray blank line.- A main check adopted after a restart is not in
lane.mains, so it counts against a check slot until it ends. This is harmless, but one line in thestartMaincomment would say so.
Next, as the pull's conversation says, land #17311 so the release keeper stops interrupting main's checks.
- src/checks/lane_state.ts: the
-
Checks
shipped production is serving it deploy ba55044
-
History
- Main's own check starts in a slot of its own: no main check had started since 21:08Z e336762
- tui-apps: a screen that never comes fails the wait that wanted it, with the screen, before the test's own timeout (#17304) cd00073
- Merge pull request #17279 from sold/agent-json 033ee45
- A check that replaces a waiting one keeps its place in line: main's own check… (#17240) db83789
- EPSS scores on /advisories (#17272) ce4b64f
- keeper-stuck, keeper-rebase-loop and keeper-lull are green on main once the duty roster is built on first ask (#17299) 73af9d7
- The terminal gives up g: read again is R, each screen's own g a letter of its verb (#17200) 31035f1
- fork-follow-history: the history fork does not follow, so only the test's own takes move it (#17288) 72abacc
- The check's tsc gets a 6 GiB heap bound: under 2 GiB its collector never stopped, and tsc was a check's largest CPU cost (#17285) f2c35b2
- fork flows > the MCP tool answers the same data: load /mcp when the file load… (#17269) a58c926
- The merge queue gates an unapproved pull every minute and never lands it (#17286) cfa2451
- Game boxes open 19132/udp for Bedrock players (#17282) a28ad97
- A game box's sync that is not JSON is answered 400 by its route, saying where it broke d16fe55
- The game agent has one compose command: an array every call and the background job share (#17261) c95f990
- Talk workspace W2: live edit loop — Talk's writes and the Code tab edit the working tree (#17177) e0c876b
- Registry: a gallery page with usage (#17192) c82ef2f
- Count the cold home's work instead of timing it, so production's-size budgets are exact on any machine (#17220) 15d3197
- Registry: rebuild the app template on the registry (#17215) 6fa635d
- Split src/http/server.ts so a route is added in its own module (#17178) 9006e4b
- Merge pull request #17267 from sold/preflight-slow db30116
Reviewed the diff. startMain takes the newest queued default-branch check per repository (notBefore respected, startable holds still apply), records it in lane.mains, and start gives it no gate slot; slotted stops counting it and the pull loop skips main checks, so pulls can no longer starve it. Stale mains entries are dropped each pass. main-slot.test.ts fails without the change (all 8 slots held by runners, main's check never starts) and passes with it. Check green, mergeable: ready to land.
Pairs with #17311: once main's checks run again, the release keeper must stop cutting them every minute in swap mode, or this pull's checks are interrupted like the verify is.
On 2026-12-01 no check of trevato/forge's main started from 21:08Z on. Each sat queued, with no startedAt and an empty log, until the next landing superseded it: about 35 in a row. Only one main check had passed since 19:09Z. With none running:
Why: a main check runs on the forge (
runnerTakesrefuses it), but it competed for the same check slots, and the same gate, as the pull checks that runner jobs hold. When a slot freed, pickNext gave it to the newest approved or own pull, or past the starvation rule to the oldest pull (29 min), never to main's check, which each landing queues afresh.mains, the check in that slot. slotted leaves it out, so it holds no check slot.runningcounts every check in flight but the verification lane's.running, notslotted. Weighing slotted, a forge running only main's check would have let another start under pressure.mainsempty.Tests:
tsc clean, gate passes.
No door: the slot main's check starts in; nothing a person sees or sets Direction: main's check always runs, so red main is seen and every pull's check starts warm (#7786)
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code