ci: raise Claude review turn budget and bump to Opus 4.8 - #1130
Merged
shane-moore merged 1 commit intoJul 11, 2026
Conversation
Both Claude review workflows hit the 50-turn cap on PR sigp#1128 (runs 29113701689 and 29115026820), losing all review work ~13 min in. The turn cap and the 15-minute step timeout are the same limit at Opus pace (~15s/turn), so raise both together to 80 turns / 25 minutes. Pre-stage the PR diff into .claude-pr-diff.txt: large diffs overflow the agent tool-output limit and the allowlist blocks saving output to a file, so the agent burned ~15 turns re-paging gh pr diff. Point the prompt at the staged file instead. Post inline comments incrementally so a capped run still delivers partial findings, and bump the model to Opus 4.8 (same Bedrock pricing, stronger code review).
jnhsigmap
approved these changes
Jul 11, 2026
jnhsigmap
left a comment
Contributor
There was a problem hiding this comment.
looks good - I wonder if it needs to be told explicitly not to duplicate commentary and to ensure that issues are logically segregated into mutually exclusive components. This would prevent it from wasting tokens examining something that it has already addressed previously - for example if an issue is confirmed at a surface level and a comment is posted, then further exploration results in a deeper root cause or wider blast radius being identified. An attempt to totally re-resolve may leave a previous comment defunct? I guess we can only find out by observing here.
Contributor
|
The |
This was referenced Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem, Evidence, and Context
Both Claude review workflows failed on PR #1128 with
Reached maximum number of turns (50), losing all review work roughly 13 minutes in and posting nothing:claude-pr-review: run 29113701689 - ~15 of 50 turns were wasted fighting the diff:gh pr diffoutput (~84KB) overflowed the tool-output limit, every attempt to save it to a file was blocked by the tool allowlist (noWrite), and the agent fell back to re-paging the diff onesedslice per turn.claude-mentions: run 29115026820 - only 5 permission denials, so minimal friction, and it still exhausted 50 turns mid-review. The budget itself is too small for a ~1,400-line PR at Opus pace (~15s/turn, one tool call per turn).Each failed attempt costs ~$3.30 in Bedrock spend with zero output.
Change Overview
--max-turns50 -> 80 andtimeout-minutes15 -> 25 in both workflows. These are the same limit at Opus pace (50 turns ~= 13.5 min), so they must move together.claude-pr-reviewonly: pre-stage the PR diff into.claude-pr-diff.txtin a workflow step and point the prompt at it, so the agent reads it with the paginatedReadtool instead of burning turns ongh pr diff. The file lives only on the ephemeral runner; nothing commits or uploads it.review.md: instruct the agent to post each inline comment as soon as it is confirmed, so a capped run still delivers partial findings instead of losing everything.us.anthropic.claude-opus-4-8in both workflows: same Bedrock pricing ($5/$25 per MTok), no API changes from 4.7, stronger at code review.Intentionally unchanged: the tool allowlists and the silent-watchdog prompt semantics.
Risks, Trade-offs, and Mitigations
Validation
stablefirst (pull_request_target/issue_commentrun workflow files from the default branch); after merge, applying theclaude-rechecklabel to PR feat(validator_store): use decided votes for aggregation #1128 re-runs the review and doubles as verification of Bedrock Opus 4.8 access.Rollback
Revert the commit. No config, data, or operational impact beyond the workflows themselves.
Additional Info / Next Steps
After merge: apply
claude-recheckto PR #1128 to confirm the review completes within budget.