Skip to content

fix(skills): add explicit anti-pattern for blocking sleep CI polls - #1599

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

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

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Strengthens running-in-ci CI Monitoring section with explicit CRITICAL/NEVER markers against sequential sleep N && gh pr checks calls
  • The run_in_background: true guidance was already present but insufficiently prominent — 2/10 sessions this review window still used blocking sleep loops

Evidence

Run 23221403160 (claude-mention, PR #1480): 6 sequential sleep 120 && gh api calls, blocking for ~12 minutes total.

Run 23220420229 (claude-mention, PR #1480, cancelled): 23 sequential sleep 60 / sleep 120 calls consuming the bulk of 56 tool calls. No run_in_background usage 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 + NEVER markers matches the pattern that reduced other recurring violations.

Full review window analysis (10 sessions)

Session quality breakdown
Run ID Workflow Target Tool Calls Quality
23221490674 claude-review PR #1593 (fix/issue-1591) 12 Excellent — correct self-author handling
23221480277 claude-review PR #1480 (dependabot) 14 Good, but redundant 3rd approval
23221448431 claude-review PR #1596 (nightly-cleaner) 9 Good — correct trivial review
23220999944 claude-review PR #1590 (fix/issue-1589) 17 Excellent — caught real permissions bug
23220640603 claude-issue-triage Issue #1595 54 (12+42) Subagent waste (42 calls), correct outcome
23221427583 claude-mention PR #1593 29 Good — correct run_in_background usage
23221403160 claude-mention PR #1480 25 Blocking sleep (6 calls)
23221389334 claude-mention Issue #1595 11 Excellent — cleanest session
23220455366 claude-mention PR #1590 50 Good — justified complexity, correct run_in_background
23220420229 claude-mention PR #1480 (cancelled) 56 Blocking sleep (23 calls), cancelled

Positive 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):

  • Redundant approval on dependabot PR chore: bump astral-sh/setup-uv from 7.4.0 to 7.5.0 #1480 (3 approvals across runs) — incremental diff gating in review-pr step 1 was not followed, but the skill text is already clear
  • Subagent waste in issue triage — 42 tool calls from an Explore subagent when the answer was in one file read; this is a model judgment issue rather than a skill gap

Test plan

  • Verify the skill file renders correctly
  • Monitor next few claude-mention sessions that push code to confirm run_in_background compliance improves

🤖 Generated with Claude Code

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 worktrunk-bot added the claude-behavior Issues with Claude CI bot behavior label Mar 18, 2026
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]>
@max-sixty max-sixty closed this Mar 18, 2026
@max-sixty
max-sixty deleted the hourly/review-23222103622 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