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

Sentinel: The guard parked 62 runs in trevato/forge in a day #17324

opened this

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.

Notes

opened this

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

  • capReached and its batch form capReachedFor in src/crew/guard.ts now skip any run with pushed = 1. A pushing run is progress, and a pull's review rounds are already bounded by the hand-over. Runs still going (pushed NULL) 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.ts and test/crew-guard.test.ts pass (29 tests).
  • bun x tsc --noEmit is clean.
  • bun scripts/gate.ts --explain reads 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 converge or resolve runs, 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.

Closes #17233

commented

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

  • capReached and its batch form capReachedFor in src/crew/guard.ts now skip any run with pushed = 1. A pushing run is progress, and a pull's review rounds are already bounded by the hand-over. Runs still going (pushed NULL) 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.ts and test/crew-guard.test.ts pass (29 tests).
  • bun x tsc --noEmit is clean.
  • bun scripts/gate.ts --explain reads 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 converge or resolve runs, 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 crew's run was interrupted: restart, resumes on the next pass — cancelled
Sign in to join this conversation.

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

Keyboard shortcuts

Docs