Skip to content

fix(profbench): read grader verdicts from structured output - #216

Merged
abhinav-pola merged 2 commits into
mainfrom
devin/1796428060-profbench-structured-verdict
Dec 4, 2026
Merged

abhinav-pola merged 2 commits into
mainfrom
devin/1796428060-profbench-structured-verdict

Conversation

@abhinav-pola

@abhinav-pola abhinav-pola commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR

ProfBench graders now return a JSON {"met": boolean} verdict through structured output, instead of a free-text Yes/No reply that the scorer had to parse.

What changed?

  • profbench grader calls (judgeCall) and the profbench_judge solver request text.format with the profbench_verdict JSON schema.
  • parseJudgeVerdict reads the met field. It replaces parseJudgeLabel, which checked completion.trim().startsWith("Yes").
  • A reply that does not match the schema is now a failure, not "not met": profbench_judge skips the sample, and profbench skips the report (the same path as any other grading failure).
  • The prompt's last line changes from "Only answer Yes or No." to "Set met to true if the criterion is satisfied and false if it is not." for both upstream and verified prompts.

Why?

The prefix check scored any reply that did not start with the exact text Yes as not met. Judges often reply **Yes** with an explanation, or return reasoning with an empty answer. In a full profbench_judge run, this flipped 688 of 3,486 verdicts for one judge and lowered its MF1-BI from about 0.74 to 0.55.

How to test

bun test src/benchmarks/profbench

A live check sent one request with this schema to 12 judge models (Gemini, Claude and GPT families, small to extra-large). All 12 returned a valid {"met": ...} JSON object.

Benchmark impact

profbench and profbench_judge scores can change for every grader, mostly for graders that add markdown or explanations to the verdict. Results from earlier runs are not directly comparable. Runs on routes without structured-output support now show skipped samples instead of silent "not met" verdicts.

Reviewer focus

  • Skip vs. score-as-not-met on an invalid verdict.
  • extraBody.text in the profbench_judge solver: it merges with any caller extraBody and sets the response format.

Checklist

  • Tests cover changed behavior
  • Public API or configuration changes are backward compatible, or the break is documented
  • Benchmark changes document dataset provenance and licensing
  • No credentials, private results, or restricted dataset contents are included
  • Documentation is updated where needed

Link to Devin session: https://openrouter.devinenterprise.com/sessions/28482f0181cd48cc9582f91fdb52f6ef
Open in Devin Desktop: https://openrouter.devinenterprise.com/desktop/session/28482f0181cd48cc9582f91fdb52f6ef?variant=devin
Requested by: @abhinav-pola


🟢 Devin Review found nothing to fix · View findings · Follow Devin's work

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

Original prompt from Abhinav

SYSTEM:
<latest_message>
Abhinav Pola (U090K0G7JF3) [ts=1796316882.734439]: @Devin are we able to onboard healthbench meta-eval? harbor or kepler?
</latest_message>

=== BEGIN THREAD HISTORY (in #agents-benchmarks) ===
Abhinav Pola (U090K0G7JF3) [ts=1796316882.734439]: @Devin are we able to onboard healthbench meta-eval? harbor or kepler?
=== END THREAD HISTORY ===
Channel ID: C0BAKP8P5C3
Thread URL: https://openrouter.slack.com/archives/C0BAKP8P5C3/p1796316882734439?thread_ts=1796316882.734439&amp;cid=C0BAKP8P5C3

The <latest_message> is the message that you should use to guide your goals + task for this session, and you should use the rest of the slack thread as context.
A [ts=...] marker on a Slack message is that message's timestamp. To act on a specific message with the slack tool (e.g. adding an emoji reaction via the reaction command), pass that value as timestamp along with the Channel ID — no extra lookup call is needed.

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@abhinav-pola
abhinav-pola merged commit b433962 into main Dec 4, 2026
5 checks passed
@abhinav-pola
abhinav-pola deleted the devin/1796428060-profbench-structured-verdict branch December 4, 2026 23:54
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