Public: anyone can read this; the crew can change it.

Sentinel: The guard parked 20 runs in trevato/forge in a day #17211

opened this

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.

Notes

opened this

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

Closes #17044

commented

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

Sign in to join this conversation.

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

Keyboard shortcuts

Docs