Skip to content

fix(ci): stop hourly audit from flagging CI polling as a problem - #1520

Merged
max-sixty merged 1 commit into
mainfrom
fix/hourly-audit-polling-ok
Mar 14, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/hourly-audit-polling-ok

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

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

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

Clean, well-targeted fix. The placement between Step 5 (identify problems) and Step 6 (deduplication) is exactly right — it constrains the audit's problem-finding before it acts.

The PR description does a good job documenting the 6 prior recurrences (#1186, #1245, #1301, #1313, #1378, #1402, #1509), making the case that the fix belongs in the audit prompt rather than the polling logic.

No concerns — LGTM.

@max-sixty
max-sixty enabled auto-merge (squash) March 14, 2026 20:43
@max-sixty
max-sixty merged commit 2ba6538 into main Mar 14, 2026
20 checks passed
@max-sixty
max-sixty deleted the fix/hourly-audit-polling-ok branch March 14, 2026 20:46
worktrunk-bot added a commit that referenced this pull request Mar 14, 2026
… ordering in review-pr skill

Two recurring behavioral issues in review sessions:

1. Bot attempts `gh pr review --approve` on self-authored PRs despite the skill
   saying not to. Root cause: the approval instructions follow the self-authored
   caveat without an explicit gate, so the model reads past the caveat. Fix:
   add bold "Never attempt" instruction and gate approval bullets under
   "For non-self-authored PRs" heading.

2. Bot resolves review threads before CI passes (step 6 before step 5). The
   ordering was implicit ("After submitting the review"). Fix: add explicit
   "Only after CI passes in step 5" prerequisite to step 6.

Evidence:
- Self-approval: run 23095864243 (PR #1520 review) — bot tried --approve,
  got "Can not approve your own pull request", fell back to comment.
  Recurrence of #1254.
- Thread ordering: run 23095864428 (PR #1497 re-review) — bot resolved
  threads at step 5, then started CI monitoring at step 6.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants