Repository navigation
test(evals): Judge replies with the vitest-evals matcher - #2041
Merged
dcramer merged 1 commit intoOct 6, 2026
Merged
Conversation
Remove the criteria option of run() and continue(). A test now asserts
a rubric with toSatisfyJudge(RubricJudge, rubric({ pass, fail })) on
the eval run of a call. vitest-evals records the scores and applies the
threshold, so the fixture no longer does.
RubricJudge is a createJudge() judge with its own judge harness. It
scores the replies of one call and reads the earlier messages of the
Conversation from the session metadata.
Refs #2001
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Rubric checks in agent evals now use the vitest-evals judge matcher. The
criteriaoption ofrun()andcontinue()is gone.With
criteria, the fixture called its own judge function, wrotetask.meta.evalby hand, and asserted the threshold. vitest-evals already does all three fortoSatisfyJudge().RubricJudgeis acreateJudge()judge with its own judge harness. The prompt, the judge model, and the scores for each answer do not change.rubric({ pass, fail })returns the matcher options and adds the 0.75 threshold. The default threshold of the matcher is 1.conversation.evalRun. The judge reads them as context and scores only the replies of that call, as before.describeEval(), the matcher gives the judge no signal.Review focus
conversationorresult.criteriaas a call option.Refs #2001
🤖 Generated with Claude Code