Skip to content

Skip review on release PRs; widen the reviewer tool allowlist - #414

Merged
erikdarlingdata merged 1 commit into
devfrom
fix/skip-review-on-release-prs
Jul 26, 2026
Merged

Skip review on release PRs; widen the reviewer tool allowlist#414
erikdarlingdata merged 1 commit into
devfrom
fix/skip-review-on-release-prs

Conversation

@erikdarlingdata

Copy link
Copy Markdown
Owner

The review check failed on the v1.19.0 release PR with 20 permission denials and Reached maximum number of turns (40). Two separate causes.

1. Release PRs are the wrong thing to review

A dev -> main PR aggregates every commit since the last release - each of which was already reviewed on its own PR. Re-reviewing the whole release adds nothing, and the diff is large enough to reliably exhaust the turn budget. The result is a red X on the release itself, which is the worst possible place for a spurious failure.

Now skipped when head is dev and base is main.

2. The allowlist was still too narrow

--allowedTools replaces the default tool set rather than adding to it, so anything omitted is denied at runtime - and a denied call still consumes a turn. A short list therefore burns the budget and the review dies having posted nothing.

That is the same failure mode twice now: #399 died with 10 denials, this one with 20. Fixing it by adding one or two tools at a time is how I got here, so this adds the ordinary read-only exploration set rather than guessing again:

Read, Grep, Glob, TodoWrite, gh pr comment/diff/view, gh api, git diff/log/show/status, ls, cat, head, tail, wc, find, rg

Everything on that list is read-only except the two comment-posting tools. Turn cap raised 40 -> 60.

Note

v1.19.0 was merged with this check red. That was deliberate: review is not a required status check (only build-and-test and check-version are), both required checks passed, and every commit in the release had already been reviewed on its own PR - including the three real bugs the reviewer caught on #411.

🤖 Generated with Claude Code

The review failed on the v1.19.0 release PR with 20 permission denials
and "Reached maximum number of turns (40)".

Two causes, both fixed.

Release PRs are the wrong thing to review. A dev -> main PR aggregates
commits that were each already reviewed on their own PR, so re-reviewing
the whole release adds nothing - and the diff is large enough to reliably
exhaust the turn budget, which then puts a red X on the release itself.
Now skipped.

The allowlist was still too narrow. --allowedTools REPLACES the default
tool set rather than adding to it, so anything omitted is denied at
runtime - and a denied call still consumes a turn. A short list therefore
burns the budget and the review dies having posted nothing, which is how
both #399 (10 denials) and this one (20) failed. Added the ordinary
read-only exploration tools plus TodoWrite, and raised the cap to 60.
Everything on the list is read-only except the two comment-posting tools.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@erikdarlingdata
erikdarlingdata merged commit 1fa0e8e into dev Jul 26, 2026
3 checks passed
@erikdarlingdata
erikdarlingdata deleted the fix/skip-review-on-release-prs branch July 26, 2026 01:08
This was referenced Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant