worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

review-pr: bot monitors CI after COMMENT verdict, wasting compute

Open worktrunk-bot opened this issue 8 months ago • 1 comments

Problem

The review-pr skill Step 5 ("Monitor CI") has two explicit paths:

  1. Silent (self-authored PR, no concerns) → stop
  2. After approving → monitor CI

But there's no instruction for the COMMENT verdict case — when the bot posts concerns without approving or requesting changes. The bot falls through to CI monitoring, wasting compute until the workflow is cancelled or times out.

Evidence

Run 22830146231 reviewed PR #1376 and posted a COMMENT raising a legitimate concern about undocumented help_heading removal. After posting the review, the bot entered CI polling (sleep 60 && gh pr checks), spending 2+ minutes sleeping until the workflow was cancelled when the PR was merged.

Session log excerpt shows the bot polling CI after its COMMENT verdict:

  • Review posted at ~21:24 UTC
  • Bot then ran sleep 60 && gh pr checks 1376 twice
  • Workflow cancelled at ~21:32 UTC when PR was merged

Root cause

Skill gap in Step 5: the COMMENT path is not explicitly handled, so the bot defaults to CI monitoring behavior.

Fix

Add an explicit "COMMENT → stop" instruction to Step 5, parallel to the existing "silent → stop" instruction. There is no approval to dismiss on CI failure when the verdict was COMMENT, so monitoring adds no value.

worktrunk-bot avatar Mar 08 '26 23:03 worktrunk-bot

Closing — monitoring CI after COMMENT reviews is intentional (the bot can diagnose failures). See #1379 discussion.

worktrunk-bot avatar Mar 09 '26 00:03 worktrunk-bot