fix(docs-eval): reduce LLM judge verdict variance#1002
Open
alexluong wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
The docs-agent-eval job on run 29590304174 failed because the LLM judge scored scenario 02 as fail on a transcript that objectively succeeded (heuristic 9/9, live event id printed and verified). The saved
llm-score.jsonshows the verdict was incoherent: two criteria havepass: falsewhile their own evidence text concludes pass ("Pass for TS script", "The final TS script DID run successfully"), and the judge read the scenario's scripted turn 1 ("Option 1. Let's do it in TypeScript") as the user pushing back on a wrong deliverable, calling the SDK version "an afterthought".Two changes in
llm-judge.ts: pintemperature: 0on the judge call (it previously used the API default of 1.0 — maximum variance for what is a classification task), and add a system-prompt paragraph stating that user turns are scripted by the harness, so an option-choice follow-up is scenario design rather than pushback, and criteria satisfied by the final artifact pass regardless of which turn produced it.Parse/prompt tests pass (
npm run test). Not re-judged against the saved failing transcript locally (no Anthropic key on this machine); to verify: download the run's artifact andnpm run score -- --run <scenario-02 dir> --llm. Neither change makes an LLM fully deterministic — if flakes persist, majority-of-3 judging is the next step.🤖 Generated with Claude Code