review-pr: self-authored CI polling regression — bot ignores 'done, stop here' instruction (recurrence of #1350)
Problem
The review-pr skill Step 5 says (line 379):
If you stayed silent (self-authored PR, no concerns) → done, stop here.
Despite this, run 22920083221 (claude-review of self-authored PR #1429, branch hourly/fix-self-trigger-1428) polled CI for ~9 minutes with 9 consecutive sleep 60 && gh pr checks calls after correctly deciding to stay silent.
Recurrence
This is a recurrence of #1350 (closed March 8). The fix in PR #1351 simplified the skip instruction from a paragraph to a one-liner, but the model still ignores it intermittently.
Evidence
Session log from run 22920083221 shows:
- Bot correctly identified PR #1429 as self-authored (
worktrunk-bot) - Bot determined "no concerns" and decided to stay silent (no review posted)
- Bot then ran
gh pr checks 1429 --requiredand found checks pending - Bot entered a polling loop: 9 iterations of
sleep 60 && gh pr checks 1429 --required - Total wasted compute: ~9 minutes
Root cause analysis
The current instruction sits at the start of Step 5, but the model reads linearly through steps and may have already committed to "doing Step 5" before processing the skip condition. The instruction is also only stated once — in Step 5 itself. By contrast, the verdict section (Step 3) says to "stay silent if there are none" but doesn't say to stop the workflow.
Suggested fix
Add an explicit early-return instruction to the verdict section (Step 3) so the model terminates before reaching Step 5:
**Self-authored PRs:** If `PR_AUTHOR == BOT_LOGIN`, you cannot approve — GitHub
rejects self-approvals. Submit as COMMENT when there are concerns, or stay
silent if there are none. **If staying silent, you are done — do not proceed to
steps 4–6.**
This creates two reinforcement points: one at the decision point (Step 3) and one at the action point (Step 5), making it harder for the model to skip past both.
New evidence from today showing a worse manifestation of the same root cause — the bot not only polls CI but actively posts an unwanted praise comment on a self-authored PR.
Run 22922311305 — review of self-authored PR #1432
Sequence:
- Bot identified PR #1432 as self-authored (
worktrunk-bot) - Bot found no concerns — should have stayed silent per the skill
- Bot attempted
gh pr review 1432 --approve— GitHub rejected with "Can not approve your own pull request" - Bot fell back to
gh pr comment 1432— posted a praise comment describing what the code does well
The posted comment begins: "Looks good — clean rewrite of Step 7 that directly addresses the duplication problem…" — this is exactly the "nothing useful to contribute, don't post" scenario the skill targets.
Why this is worse than CI polling
Issue #1430 documents the bot wasting compute by polling CI after correctly deciding to stay silent. In this run, the bot failed to decide to stay silent at all — it actively posted a non-actionable praise comment. This means the "stay silent if there are none" instruction is being ignored at the decision point (Step 3), not just at the action point (Step 5).
Context
This was the second claude-review run on PR #1432. The first run (22922025746) correctly stayed silent. Two runs reviewing the same self-authored PR, one correct and one not — the instruction is followed non-deterministically.
Implication for the fix
The proposed fix in #1430 (adding "do not proceed to steps 4–6" after the silent decision) would help, but may not be sufficient for this failure mode since the bot didn't even correctly reach the "stay silent" decision — it decided to post a review. The self-authored PR guardrail may need to be even more forceful, e.g., a hard rule at Step 1 rather than a conditional at Step 3.