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

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

opened this

Merged 37h 4m ago, live in production

The guard's parked-runs finding was feeding itself, and I changed its evidence text so it stops. I haven't confirmed that this was the cause. The sentinel and guard tests pass and the gate and tsc came back clean.

Notes

opened this

The guard's parked-runs finding was feeding itself, and I changed its evidence text so it stops. I haven't confirmed that this was the cause. The sentinel and guard tests pass and the gate and tsc came back clean. I did not run the app or the full suite.

The loop. The finding's evidence line ended in "since <ISO time>", where the time is the start of a rolling 24-hour window. That text differed on every hunt. The sentinel compares stored evidence with fresh evidence, so it posted "Still there at …" on the issue every hour. The issue has about ten such comments.

I believe each comment woke the crew, and about six runs in a day hit the per-issue run cap (ISSUE_RUN_CAP, 6) and parked the issue. That in turn added to the count of guard parks. This is a theory from reading the code. I didn't read the actual runs for #17045 or the other parked issues.

The change. In src/crew/sentinel.ts the guard-parks evidence now says "in the last 24 hours". The retry-stops finding had the same problem with its 7-day window, so it now says "in the last 7 days". An unchanged finding no longer produces a comment, so it no longer starts a run.

Test. One new test in test/sentinel.test.ts checks that the parks evidence reads identically 30 minutes later and contains no timestamp.

Left alone:

  • Run cap: I did not change the cap or the rules for which runs count toward it.
  • Other evidence lines: Several still embed a timestamp. Some are real facts that should trigger a comment when they change. I didn't audit them.
  • Doors: The change is not a page, action, API route or MCP tool, so there is no terminal or docs/features/ change.

Check it. Once this is live, the repository's count of guard decisions in a day should fall below 20.

🤖 Generated with Claude Code

Closes #17045

commented

The guard's parked-runs finding was feeding itself, and I changed its evidence text so it stops. I haven't confirmed that this was the cause. The sentinel and guard tests pass and the gate and tsc came back clean. I did not run the app or the full suite.

The loop. The finding's evidence line ended in "since <ISO time>", where the time is the start of a rolling 24-hour window. That text differed on every hunt. The sentinel compares stored evidence with fresh evidence, so it posted "Still there at …" on the issue every hour. The issue has about ten such comments.

I believe each comment woke the crew, and about six runs in a day hit the per-issue run cap (ISSUE_RUN_CAP, 6) and parked the issue. That in turn added to the count of guard parks. This is a theory from reading the code. I didn't read the actual runs for #17045 or the other parked issues.

The change. In src/crew/sentinel.ts the guard-parks evidence now says "in the last 24 hours". The retry-stops finding had the same problem with its 7-day window, so it now says "in the last 7 days". An unchanged finding no longer produces a comment, so it no longer starts a run.

Test. One new test in test/sentinel.test.ts checks that the parks evidence reads identically 30 minutes later and contains no timestamp.

Left alone:

  • Run cap: I did not change the cap or the rules for which runs count toward it.
  • Other evidence lines: Several still embed a timestamp. Some are real facts that should trigger a comment when they change. I didn't audit them.
  • Doors: The change is not a page, action, API route or MCP tool, so there is no terminal or docs/features/ change.

Check it. Once this is live, the repository's count of guard decisions in a day should fall below 20.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs