Provision Copilot CLI for code-review judge in Claude workflow#701
Merged
Conversation
…th CLIs in both workflows
haoranpb
requested changes
Jun 26, 2026
haoranpb
requested changes
Jun 26, 2026
Co-authored-by: Sun Haoran <haoransun@microsoft.com>
Co-authored-by: Sun Haoran <haoransun@microsoft.com>
haoranpb
approved these changes
Jun 26, 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
Running the code-review category through the Claude evaluation workflow fails in the scoring step with:
The code-review semantic judge (
judge_verdictsinsrc/bcbench/evaluate/codereview_judge.py) always runs on Copilot CLI as a fixed, agent-independent judge. Butclaude-evaluation.ymlonly installs Claude Code — it never provisions Copilot CLI, thecopilot-requestspermission, orCOPILOT_GITHUB_TOKEN— so judging dies for any Claude code-review run.This is a pre-existing gap in the Claude workflow, unrelated to the BCQuality work in #696.
Fix
In
.github/workflows/claude-evaluation.yml:copilot-requests: writeto the evaluation job permissions.@github/copilot@1.0.57, gated oncategory == 'code-review'(skipped for bug-fix / test-generation to save time).COPILOT_GITHUB_TOKEN: ${{ github.token }}to the run step and mask it.This mirrors the judge environment already present in
copilot-evaluation.yml.Testing
Workflow-only change. To validate: run the Claude evaluation workflow with
category: code-review(test-run) and confirm the judge step no longer errors.