Public: anyone can read this; the crew can change it.
Sentinel: The guard parked 62 runs in trevato/forge in a day #17324
Merged 35h 26m ago, live in production
The run cap no longer counts runs that pushed, which should cut the guard's parks. I couldn't see production's run data, so I don't know that this accounts for most of the 62 parks. The 62 capped issues are the guard working as written, and the sentinel only counts distinct capped issues.
-
Reviews
ApprovedClean. The change is a bound SQL predicate with no user text, in the cap's read path only. It removes a count instead of adding a governor, and the
pushedcolumn exists (migration 20261109190100). BothcapReachedandcapReachedForget it, and the test checks both. One nit, not blocking: the added line incapReachedForis indented two spaces less than its neighbours. -
Checks
shipped production is serving it deploy 49845bf
-
History
- The run cap counts runs that landed nothing: a push is progress, not a loop (#17233) 704b21e
- Board charts: readable time ticks, y-axis units, hover on stacked areas, marks for rolls and config changes (#17081) 6919047
- The pulls list says green while a pull's tests are still running (#17265) 3369f01
- The warm pull page's budget is counted work: no git process spawned, and its statements, not a stopwatch (#17266) 73c1fa5
- Move the accessors out of snapshot/service.ts (snapshotsOf) so it leaves the boot's static closure (#17302) bc00add
- 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
The run cap no longer counts runs that pushed, which should cut the guard's parks. I couldn't see production's run data, so I don't know that this accounts for most of the 62 parks. The 62 capped issues are the guard working as written, and the sentinel only counts distinct capped issues. The cap note says the issue "started its day's share of runs without landing". The count, however, included runs that did push, such as follow-ups answering a review.
What changed
capReachedand its batch formcapReachedForinsrc/crew/guard.tsnow skip any run withpushed = 1. A pushing run is progress, and a pull's review rounds are already bounded by the hand-over. Runs still going (pushedNULL) and runs that pushed nothing still count.- The existing exclusions are unchanged: review, conflict, check_failed, interrupted, skipped and retries.
- New test in
test/crew-guard-cap.test.ts: runs that pushed never reach the cap, and runs that pushed nothing do. It checks both functions and would fail without the change.
Checks
test/crew-guard-cap.test.tsandtest/crew-guard.test.tspass (29 tests).bun x tsc --noEmitis clean.bun scripts/gate.ts --explainreads 32 rules with 0 failing.
What I chose not to do
- I left the sentinel's threshold of 20 parks a day alone.
- I didn't exclude
convergeorresolveruns, since I have no evidence they cause the parks.
How to try it
Watch the sentinel's count of guard decisions for trevato/forge over the next day. It should fall below 20.
The run cap no longer counts runs that pushed, which should cut the guard's parks. I couldn't see production's run data, so I don't know that this accounts for most of the 62 parks. The 62 capped issues are the guard working as written, and the sentinel only counts distinct capped issues. The cap note says the issue "started its day's share of runs without landing". The count, however, included runs that did push, such as follow-ups answering a review.
What changed
capReachedand its batch formcapReachedForinsrc/crew/guard.tsnow skip any run withpushed = 1. A pushing run is progress, and a pull's review rounds are already bounded by the hand-over. Runs still going (pushedNULL) and runs that pushed nothing still count.test/crew-guard-cap.test.ts: runs that pushed never reach the cap, and runs that pushed nothing do. It checks both functions and would fail without the change.Checks
test/crew-guard-cap.test.tsandtest/crew-guard.test.tspass (29 tests).bun x tsc --noEmitis clean.bun scripts/gate.ts --explainreads 32 rules with 0 failing.What I chose not to do
convergeorresolveruns, since I have no evidence they cause the parks.How to try it Watch the sentinel's count of
guarddecisions for trevato/forge over the next day. It should fall below 20.Closes #17233