Public: anyone can read this; the crew can change it.
Sentinel: The guard parked 20 runs in trevato/forge in a day #17211
Merged 38h 2m ago, live in production
The sentinel now counts only caps as guard parks, so routed rows no longer inflate the "parked 20 runs" figure. The sentinel and sentinel-private tests pass (56) and tsc is clean. I did not run the full suite or any of the other checks, which the forge's check does on push.
-
Reviews
ApprovedThe park count now includes only
cappedguard decisions, which are the only ones that park an issue. Routed bookkeeping rows no longer inflate it, so this is a removal rather than a new rule. The test would fail without the change: it marks 40 distinct issues routed and expects no park fault. The existing 20-parks test now uses the realcappedanswer instead of a made-uppark. This is an internal fault count, so no page, action, route or tool changes and no terminal door or how-to is needed. I read the diff and the surrounding code insrc/crew/sentinel.tsandsrc/crew/guard.ts; I opened the preview:/answers 200 with the served page and nothing on it changed, as expected for an internal count; there are no pictures for this change.Two things I would do next:
- The evidence line says "decisions that parked distinct issues". Say "cap decisions" so a reader of the fault knows what is counted.
- The skip and non-cap branches could become one
answerswitch, so a future guard answer cannot be miscounted silently.
-
Checks
shipped production is serving it deploy c4333e8
-
History
- Direction: the sentinel counts only a cap as a guard park, not a routed red's bookkeeping row (#17044) 82217a7
- The home says in one line how much is flowing up and down, and opens /forks/flows (#17146) 59563dc
- The forge's boot can run the bundle of src/main.ts, and a test holds its spawn-to-ready under 1.5 s (#17160) 5bbff79
- Keep the phone dock one 44 px row: the Chat/Preview tabs lose the seg padding there too (#17196) 6ce04d3
- Hold the Talk pane's Live fallback by its value, not its old word (#17197) 01e9b02
- Every red check keeps its failing tests' assertions and excerpts, not only a verification (#17201) 0b95dda
- signup-fresh: main.ts's part is the seedSignup option, read from its createApp call, not a boot timed against a clock (#17198) f264c2b
- mcp-flow-drift-update: the agent's pull is the agent's own, as #17132 made the rule (#17195) 2c2f675
- runner-adopt: drop a wait for a check that the test itself cancels (#17194) 90db393
- Asking main about a red file runs its BASE_RUNS runs at once, and confirms a red alone (#17165) e24948a
- The game agent is never blind: compose up runs in the background, and every sync carries a diagnosis (#17157) efed1f4
- An edge-kept finding is the owner's from the moment it exists: every open one is assigned to the owner on each run, even when the edge goes unread (#17190) 46b42c3
- guest-pull: the forge-made variables are errorEnv's own names, so the OTLP ones added in #17137 are not taken for seeded ones (#17184) d6415a8
- A rule red that is main's no longer stops a pull's behaviour files, so main's red cannot pass a check that never ran them (#17188) 6a277c5
- As code: infra.json in a repo, written by the UI, reconciled on merge (#17149) 4fec00e
- The forge image carries jq, so the game box agent's tests run on check runners (#17175) 60cad34
- Say the screen and the fix when a terminal r binding is unlisted (#17174) bbfa7da
- MAX_UNFIXTURED: one file per page, not one shared number (#17170) f3e1a23
- Flaky test: on production's size > a cold home answers from the picture, within a few passes over the runs (#17166) 56dc9e2
- Sentinel: memory-growth was degraded 33 minutes today: The forge's own memory is 4600 MiB, over twice its first-hour 1962 MiB and past the 2176 MiB more its database caches m… (#17159) 2e8c816
The sentinel now counts only caps as guard parks, so routed rows no longer inflate the "parked 20 runs" figure. The sentinel and sentinel-private tests pass (56) and tsc is clean. I did not run the full suite or any of the other checks, which the forge's check does on push.
Cause. The sentinel's park count (findFaults in src/crew/sentinel.ts) treated every guard decision that wasn't a skip as a park. src/crew/red_routed.ts writes one guard decision with answer routed for every failed run the crew has decided on, so each of those counted as a park. That is why the evidence listed only five capped issues (#14396, #16731, #16844, #16868, #16887) while the total reached 59.
Change. src/crew/sentinel.ts now skips any guard decision whose answer is not capped. Only capped decisions park an issue, and the count is still one per distinct issue.
Tests. In test/sentinel.test.ts, the existing 20-parks test now records capped instead of the made-up park. A new test records 40 routed decisions on distinct issues and expects no park fault.
Not done. I didn't change the guard or the run cap. The five capped issues are real parks, and fewer than 20 a day is now judged on caps alone. The gate.ts check only notes two comment lines over 100 columns, which the nightly rewrap fixes on main, so I left them.
No door: this changes the sentinel's internal fault count only. No page, action, API route or MCP tool changes, so there is nothing for the terminal or docs/features/ to mirror.
To try it: bun test test/sentinel.test.ts.
🤖 Generated with Claude Code
The sentinel now counts only caps as guard parks, so
routedrows no longer inflate the "parked 20 runs" figure. The sentinel and sentinel-private tests pass (56) andtscis clean. I did not run the full suite or any of the other checks, which the forge's check does on push.Cause. The sentinel's park count (
findFaultsinsrc/crew/sentinel.ts) treated everyguarddecision that wasn't a skip as a park.src/crew/red_routed.tswrites oneguarddecision with answerroutedfor every failed run the crew has decided on, so each of those counted as a park. That is why the evidence listed only five capped issues (#14396, #16731, #16844, #16868, #16887) while the total reached 59.Change.
src/crew/sentinel.tsnow skips anyguarddecision whose answer is notcapped. Onlycappeddecisions park an issue, and the count is still one per distinct issue.Tests. In
test/sentinel.test.ts, the existing 20-parks test now recordscappedinstead of the made-uppark. A new test records 40routeddecisions on distinct issues and expects no park fault.Not done. I didn't change the guard or the run cap. The five capped issues are real parks, and fewer than 20 a day is now judged on caps alone. The
gate.tscheck only notes two comment lines over 100 columns, which the nightly rewrap fixes on main, so I left them.No door: this changes the sentinel's internal fault count only. No page, action, API route or MCP tool changes, so there is nothing for the terminal or
docs/features/to mirror.To try it:
bun test test/sentinel.test.ts.🤖 Generated with Claude Code
Closes #17044