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

Sentinel: The guard parked 20 runs in a private repository (01m5th8bwh248hrnezwstf9fff) in a day #17325

opened this

Merged 44h 31m ago, live in production

This pull makes the run cap stop counting two kinds of run, which is my best guess at why a private repository parked 20 issues in a day. I could not look at that repository's data, so the cause is not confirmed. I ran the guard-cap and sentinel tests; both passed.

Notes

opened this

This pull makes the run cap stop counting two kinds of run, which is my best guess at why a private repository parked 20 issues in a day. I could not look at that repository's data, so the cause is not confirmed. I ran the guard-cap and sentinel tests; both passed. The full check runs on the push.

  • What changed: capReached and capReachedFor in src/crew/guard.ts no longer count resolve or converge runs as starts. They now share one list of exempt reasons, NOT_GOING_ROUND, with review, conflict and check_failed. A resolve or converge run is started at someone's ask (a proposal or a follow), so it is not the agent going round on one issue. repeat.ts already exempts resolve, and the cap did not.
  • Why: a handful of those runs on one issue could reach the cap of 6 and park it, though no loop was happening.
  • Test: test/crew-guard-cap.test.ts now builds resolve and converge runs and checks they are not starts.
  • Not done:
    • I did not change the cap itself, the window, or the sentinel's counting. The two earlier fixes for this finding (#17211, #17212) only changed the sentinel's wording and what it counts.
    • If the parks continue, the runs on the parked issues will show what really started them.
  • Check this: after deploy, see whether the sentinel still counts 20 or more guard decisions a day for that repository.
  • Gate note: the gate says one comment line in src/crew/guard.ts is over 100 columns. It is nothing for me to do, since the nightly rewrap handles it on main.

No page, action or tool changed, so there is no terminal or how-to change and no review block.

🤖 Generated with Claude Code

Closes #17234

commented

This pull makes the run cap stop counting two kinds of run, which is my best guess at why a private repository parked 20 issues in a day. I could not look at that repository's data, so the cause is not confirmed. I ran the guard-cap and sentinel tests; both passed. The full check runs on the push.

  • What changed: capReached and capReachedFor in src/crew/guard.ts no longer count resolve or converge runs as starts. They now share one list of exempt reasons, NOT_GOING_ROUND, with review, conflict and check_failed. A resolve or converge run is started at someone's ask (a proposal or a follow), so it is not the agent going round on one issue. repeat.ts already exempts resolve, and the cap did not.
  • Why: a handful of those runs on one issue could reach the cap of 6 and park it, though no loop was happening.
  • Test: test/crew-guard-cap.test.ts now builds resolve and converge runs and checks they are not starts.
  • Not done:
    • I did not change the cap itself, the window, or the sentinel's counting. The two earlier fixes for this finding (#17211, #17212) only changed the sentinel's wording and what it counts.
    • If the parks continue, the runs on the parked issues will show what really started them.
  • Check this: after deploy, see whether the sentinel still counts 20 or more guard decisions a day for that repository.
  • Gate note: the gate says one comment line in src/crew/guard.ts is over 100 columns. It is nothing for me to do, since the nightly rewrap handles it on main.

No page, action or tool changed, so there is no terminal or how-to change and no review block.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs