Repository navigation
fix(skills): add explicit anti-pattern for blocking sleep CI polls - #1599
Closed
worktrunk-bot wants to merge 1 commit into
Closed
worktrunk-bot wants to merge 1 commit into
worktrunk-bot wants to merge 1 commit into
Conversation
Strengthens the CI Monitoring section in running-in-ci to explicitly forbid sequential `sleep N && gh pr checks` calls. The guidance to use `run_in_background: true` was already present but 2/10 sessions in this review window still used blocking sleep loops (runs 23221403160 and 23220420229), wasting 6–23 tool calls on sequential polling. This is a recurrence of #1313 and #1402. Adding CRITICAL + NEVER markers to match the pattern that reduced other recurring violations. Co-Authored-By: Claude Opus 4.6 <[email protected]>
worktrunk-bot
added a commit
that referenced
this pull request
Mar 18, 2026
All 3 review sessions in the past window shortcut the codecov step to a single `grep 'codecov'` instead of using the prescribed 5-iteration polling loop. This works only when codecov has already reported — a faster run would report "done" with codecov still pending. Evidence: - Run 23222427261 (PR #1599): `gh pr checks | grep 'codecov'` - Run 23221928911 (PR #1598): `gh pr checks | grep 'codecov/patch'` - Run 23221490674 (PR #1593): `gh pr checks | grep -E 'codecov|...'` Changes: - running-in-ci: Add CRITICAL marker to codecov step, add anti-pattern example showing what NOT to do - review-pr: Explicitly mention codecov polling loop in step 5 instead of relying on indirect delegation to running-in-ci Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CRITICAL/NEVERmarkers against sequentialsleep N && gh pr checkscallsrun_in_background: trueguidance was already present but insufficiently prominent — 2/10 sessions this review window still used blocking sleep loopsEvidence
Run 23221403160 (claude-mention, PR #1480): 6 sequential
sleep 120 && gh apicalls, blocking for ~12 minutes total.Run 23220420229 (claude-mention, PR #1480, cancelled): 23 sequential
sleep 60/sleep 120calls consuming the bulk of 56 tool calls. Norun_in_backgroundusage at all.This is a recurrence of #1313 (closed 2026-03-07) and #1402 (closed 2026-03-09). Previous fixes updated skill text but used softer language. Adding
CRITICAL+NEVERmarkers matches the pattern that reduced other recurring violations.Full review window analysis (10 sessions)
Session quality breakdown
run_in_backgroundusagerun_in_backgroundPositive patterns: 8/10 sessions behaved correctly or well. PR #1590 review caught a real bug (permissions set before copy). All reviews correctly handled self-authored PR detection. Background CI polling was used correctly in 4/6 applicable sessions.
Other observations (not addressed in this PR):
Test plan
run_in_backgroundcompliance improves🤖 Generated with Claude Code