Repository navigation
ci: raise claude-pr-loop fix agent budget to 80 turns, widen allowlist - #227
Conversation
The fix agent hit error_max_turns on #225: 41 turns against a 40-turn cap with 14 permission denials (~1/3 of turns wasted). Its job — evaluate every CodeRabbit thread, verify each against the code, refute or fix, run the gates, commit, push, and reply in threads — does not fit in 40 turns, and the denials came from git inspection and REST `gh api` thread replies that were not on the allowlist (only `gh api graphql` was). Raise --max-turns 40 -> 80 and add read-only git (status/diff/log/show) plus broaden `gh api graphql` -> `gh api` so the agent can reply to and resolve review threads via REST as well as GraphQL. 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)
WalkthroughThis PR modifies the Claude ChangesClaude Fix Job Configuration
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Preview DeploymentPreview URL: https://521353b9.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
The
fixagent inclaude-pr-loop.ymlhiterror_max_turnson #225 (run): 41 turns against a 40-turn cap, with 14 permission denials (~⅓ of turns wasted). The gate perm-fix (#226) worked — the gate went green and launched the fixer — this is the next capped stage.Root cause: the fix agent's job (evaluate every CodeRabbit thread, verify each against the code, refute or fix, run the gates, commit, push, reply in threads) doesn't fit in 40 turns, and the denials came from
gitinspection commands and RESTgh apithread-replies that weren't on the allowlist (onlygh api graphqlwas).Fix:
--max-turns 40→80status/diff/log/show), and broadengh api graphql→gh apiso the agent can reply to / resolve review threads via REST as well as GraphQL.Same class as #218 (implement cap), #223 (review cap), #226 (gate perms).
Affected package(s):
@allxsmith/bestax-bulma)create-bestax)@allxsmith/bestax-docs).github/workflows/claude-pr-loop.yml)Related Issue(s)
Refs #188
Type of Change
Note on the widened
gh apiThe fix agent processes untrusted review-comment content, so broadening
gh api graphql→gh apigrants more REST reach. Real capability is still bounded by the job's token scopes and the prompt's hard prohibitions (never merge/close/label/push-to-main/edit protected paths). Kept read-only git to inspection verbs only.Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01NVR5yWevceZEFbTJmpviiM
Generated by Claude Code
Summary by CodeRabbit