Skip to content

fix(review): a judge that cannot run fails the review; release 1.7.1 - #20

Merged
jack1590 merged 2 commits into
mainfrom
fix/judge-cannot-run-fails-review
Oct 22, 2026
Merged

jack1590 merged 2 commits into
mainfrom
fix/judge-cannot-run-fails-review

Conversation

@jack1590

Copy link
Copy Markdown
Owner

What

A review whose judge hits an error a retry cannot fix now fails, showing the error. Before, it finished with every finding demoted to unverified noted. Examples of such errors: a model the installed claude CLI does not support, a plan limit, auth.

Releases as 1.7.1.

Why

Found during the open-code-review bake-off. In the vix project (Claude Code engine), every review's judge was failing:

API Error: 400 Claude Code 2.1.267 does not support this model; version 2.1.280 or newer is required.

The review still ended as done, with lostLenses: ["judge"]. In the PR list that showed as a yellow Incomplete review chip, with the cause only in its tooltip. In local and MCP reviews it showed as done. Every re-review failed the same way.

How

  • runReview throws The judge cannot run: <error> when the judge result is not usable and isPermanentFailure matches.
  • PR, local and MCP reviews already turn a thrown error into a failed review, so all three show it.
  • Transient judge failures (bad JSON, a stalled run) keep the existing fallback: unverified findings plus Incomplete review.

Test

  • verify-review.ts drives the real runReview through a fake claude binary. Its reviewers return a finding; its judge returns the error above.
  • It failed before the fix ("Missing expected rejection") and passes after.
  • npm run typecheck: 0 errors. npm test: all pass. npm run verify -w roku-dev-studio-review: ok.

When the judge failed with an error a retry cannot fix (a model the installed
claude CLI does not support, a plan limit, auth), the review still finished:
every finding was demoted to unverified "noted" and the cause sat only in
lostLenses. On a quiet PR that read as an incomplete but clean review, and
every re-review failed the same way.

runReview now throws "The judge cannot run: <error>" for those failures, so
PR, local and MCP reviews end as failed with the cause shown. Transient judge
failures (bad reply, stalled run) keep today's unverified fallback.

verify-review drives runReview through a fake claude binary whose judge
returns the real "version 2.1.280 or newer is required" error.
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: be3ce7b4-9428-427c-b8d7-1e143e97e5ef
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jack1590
jack1590 merged commit d511b3d into main Oct 22, 2026
6 checks passed
@jack1590
jack1590 deleted the fix/judge-cannot-run-fails-review branch October 22, 2026 02:26
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