Skip to content

feat(harvey-lab): switch judge from Gemini to Claude Sonnet#3

Merged
xdotli merged 1 commit into
mainfrom
devin/1778888642-update-harvey-lab-claude-judge
May 15, 2026
Merged

feat(harvey-lab): switch judge from Gemini to Claude Sonnet#3
xdotli merged 1 commit into
mainfrom
devin/1778888642-update-harvey-lab-claude-judge

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented May 15, 2026

Copy link
Copy Markdown

Summary

Updates all 1,251 Harvey LAB pre-converted tasks to use Claude Sonnet (claude-sonnet-4-6) as the LLM judge instead of Gemini (gemini-3.1-flash-lite-preview). This matches the original Harvey LAB benchmark's default judge model (per eval-strategies.md).\n\nThree files changed per task (3,753 files total):\n- tests/evaluate.py: call_gemini()call_judge() using Anthropic API with claude-sonnet-4-6\n- task.toml: GEMINI_API_KEYANTHROPIC_API_KEY in [verifier.env]\n- environment/Dockerfile: google-genaianthropic pip dependency\n\nCompanion to benchflow-ai/benchflow#264 which updates the converter.\n\n## Review & Testing Checklist for Human\n\n- [ ] Run a single task locally to verify the Claude judge produces a valid reward:\n bash\n export ANTHROPIC_API_KEY=...\n bench eval create \\\n --source-repo benchflow-ai/benchmarks \\\n --source-path datasets/harvey-lab/tasks/corporate-ma-analyze-cim-deal-teaser-scenario-01 \\\n -a gemini -m gemini-3.1-flash-lite-preview -e docker\n \n- [ ] Verify ANTHROPIC_API_KEY (not GEMINI_API_KEY) appears in task.toml [verifier.env]\n- [ ] Spot-check that evaluate.py contains import anthropic and claude-sonnet-4-6, not google-genai\n\n### Notes\n\n- All 1,251 evaluate.py files were identical (same md5), so a single template replacement was safe\n- All 1,251 Dockerfiles were also identical — sed replacement was used for google-genaianthropic\n- Agent-side behavior is unchanged — only the verifier (judge) is affected\n- Users now need ANTHROPIC_API_KEY exported instead of GEMINI_API_KEY for the verifier"

Link to Devin session: https://app.devin.ai/sessions/6b1fbe50a16b4fd497ed4a26cc1d4b6c
Requested by: @xdotli


Open in Devin Review

Replace the hardcoded Gemini judge with Claude Sonnet (claude-sonnet-4-6)
to match Harvey LAB's original benchmark default judge model.

Changes across all 1,251 tasks:
- evaluate.py: call_gemini() → call_judge() using Anthropic API
- task.toml: GEMINI_API_KEY → ANTHROPIC_API_KEY in [verifier.env]
- Dockerfile: google-genai → anthropic pip dependency

Matches the converter change in benchflow-ai/benchflow PR #264.
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@xdotli
xdotli merged commit c65af83 into main May 15, 2026
1 check failed
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