Skip to content

fix(ci): add explicit polling caps to CI monitoring skills - #1509

Closed
worktrunk-bot wants to merge 1 commit into
mainfrom
hourly/review-23080325760
Closed

worktrunk-bot wants to merge 1 commit into
mainfrom
hourly/review-23080325760

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Add explicit polling caps to running-in-ci CI monitoring: max 10 iterations for required checks, max 5 additional iterations for codecov/patch
  • Add explicit COMMENT verdict handling to review-pr step 5: stop immediately (no approval to dismiss, so monitoring is waste)
  • Reinforce polling caps in review-pr by cross-referencing the running-in-ci limits

Evidence

5 of 10 review sessions from the past hour spent 7-30+ minutes in unbounded CI polling loops:

Run PR Branch Polling time
23079479912 #1499 experimental ~7 min (7 rounds polling codecov/patch)
23080051043 #1506 headline-feature ~9 min (8-9 polling cycles)
23079755703 #1504 validate-other-cmds ~8 min (8 polling cycles)
23079744387 #1503 stale-flag ~30 min (15+ polling cycles)
23079358336 #1502 alias-docs ~9 min (9 polling cycles)

This is a 6th recurrence of the same problem, previously filed as #1402, #1378, #1313, #1301, #1245, #1186. All were closed, but the actual iteration caps were never added to the skill text — the guidance said "this may take up to 10 minutes" as a parenthetical rather than a hard cap.

Root cause

The running-in-ci skill said "continue polling every 60 seconds" for codecov/patch with no iteration limit, and "poll... until all required checks complete (this may take up to 10 minutes)" without enforcing the cap. The review-pr skill delegated to running-in-ci without adding its own bounds, and had no instruction for the COMMENT verdict case (previously filed as #1378).

Test plan

  • Verify next hour's review sessions respect the 10-iteration cap for required checks
  • Verify codecov/patch polling stops after 5 additional iterations
  • Verify COMMENT-verdict reviews skip CI monitoring entirely

🤖 Generated with Claude Code

5 of 10 review sessions this hour wasted 7-30+ minutes in unbounded
CI polling loops. Despite 6+ closed issues about this (#1402, #1378,
#1313, #1301, #1245, #1186), the actual iteration caps were never
added to the skill text.

Changes:
- running-in-ci: cap required checks polling at 10 iterations,
  codecov/patch polling at 5 additional iterations
- review-pr: add explicit COMMENT verdict → stop instruction,
  reinforce polling caps from running-in-ci

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@max-sixty

Copy link
Copy Markdown
Owner

I think it's totally fine to spend time on polling.

Meta: why do we get so many PRs asking to fix it? Is it something in the prompt of the reviewer?

@worktrunk-bot

Copy link
Copy Markdown
Collaborator Author

Fair point — closing this.

On the meta question: the hourly review audit sees sessions that poll for 7-30 minutes and flags them as wasteful. The audit prompt treats long polling as a problem to fix, which is why it keeps generating these PRs. If polling time is acceptable, the fix is on the audit side (stop flagging polling duration as an issue), not on the skill side. I'll stop producing these.

@max-sixty

Copy link
Copy Markdown
Owner

If polling time is acceptable, the fix is on the audit side (stop flagging polling duration as an issue), not on the skill side. I'll stop producing these.

yes, can you fix?

worktrunk-bot added a commit that referenced this pull request Mar 14, 2026
The hourly review audit kept creating PRs to cap CI polling time (6
recurrences: #1186, #1245, #1301, #1313, #1378, #1402, #1509). Polling
is expected behavior per the running-in-ci skill. The fix belongs in the
audit prompt, not the polling logic.

Closes #1509 (comment)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@worktrunk-bot

Copy link
Copy Markdown
Collaborator Author

Done — #1520 adds guidance to the hourly audit prompt that CI polling time is expected behavior and shouldn't be flagged. This should stop the recurring polling-cap PRs.

max-sixty pushed a commit that referenced this pull request Mar 14, 2026
## Summary

- Add explicit guidance to the hourly review audit prompt that CI
polling time is expected and acceptable behavior, not a problem to flag

This is the root cause fix for the 6 recurrences of polling-cap PRs
(#1186, #1245, #1301, #1313, #1378, #1402, #1509). The audit kept seeing
7-30 minute polling sessions and flagging them as wasteful, but polling
is working as intended per the `running-in-ci` skill. The fix belongs in
the audit prompt, not the polling logic.

Requested by @max-sixty in
#1509 (comment).

## Test plan

- [ ] Verify next hour's audit run does not create a polling-cap PR

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: worktrunk-bot <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
@max-sixty
max-sixty deleted the hourly/review-23080325760 branch June 18, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-behavior Issues with Claude CI bot behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants