Repository navigation
ci: make the claude-pr-loop fix agent adversarial and scope-aware - #228
Conversation
The fixer was an order-taker: it tried to satisfy every CodeRabbit finding, including out-of-scope "make it fully generic-polymorphic" asks that #188 explicitly deemed unnecessary — burning its whole turn budget on a refactor it should have refused (see #225's max-turns failures). Add a "BE ADVERSARIAL" directive to the fix prompt: read the linked issue's scope and refute findings that exceed it; treat the opus deep review's clean verdict as a strong prior; never attempt large type-system/architecture refactors for one reviewer; refute (reply + no code) and let contested findings escalate to needs-human-review rather than thrashing. Mirrors the "adversarial code review" + "verify the problem is real" model Bun/robobun use. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVR5yWevceZEFbTJmpviiM
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe Claude PR loop workflow's fix prompt was updated to instruct Claude to act as a skeptical reviewer, treating linked issue scope as a strict contract, requiring reproducible findings, prohibiting large refactors, and defining explicit refute behavior for out-of-scope or disputed findings. ChangesClaude Fix Prompt Update
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Preview DeploymentPreview URL: https://73f96988.bestax.pages.dev |
|
🎉 This PR is included in version 5.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 3.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Item 1 of 3 from the Bun/robobun-inspired loop hardening.
The
fixagent inclaude-pr-loop.ymlbehaved like an order-taker — it tried to satisfy every CodeRabbit finding, including the out-of-scope "make Button/Link fully generic-polymorphic" ask that #188 explicitly deemed unnecessary. It burned its entire turn budget attempting that refactor and failed witherror_max_turns(twice on #225, even after 40→80).Fix: add a
BE ADVERSARIALdirective to the fix prompt:needs-human-reviewinstead of thrashing.This mirrors the "adversarial code review" + "verify the problem is real" model that Bun/robobun use (per this session's deep-research).
Affected package(s):
.github/workflows/claude-pr-loop.yml)Related Issue(s)
Refs #188. Unblocks #225 (the fixer will now refute the Major and converge the rest).
Type of Change
Checklist
fixjob; no permission or tool changes🤖 Generated with Claude Code
https://claude.ai/code/session_01NVR5yWevceZEFbTJmpviiM
Generated by Claude Code
Summary by CodeRabbit