Ramiz RajaBook a call
← Writing
Working With AI Agents

LLM Evaluation: What Two Judges Caught in About 140 Review Records

One judge reads like a customer. The other checks claims against source. On this pipeline they caught different things.

Ramiz RajaDecember 2, 20269 min read
LLM Evaluation: What Two Judges Caught in About 140 Review Records

Suppose a support bot politely offers 60 days for a return when the policy allows 30. A judge given only the answer lacks the policy needed to verify that deadline. The cost lands later, as a refund you did not plan for or a customer who feels misled.

That is the problem LLM evaluation has to solve: an output can read well and still be wrong against a source the reader never sees. I ran into it on my own pipeline, where I used two LLM judges as release gates on articles and code. On this pipeline they caught different things.

Reader judgeClaims judge
Readsthe rendered page onlythe draft plus the source files and logs
Asksis it useful, fast, trustworthy, free of noisedoes each claim match the evidence
Caught herewrong title, jargon, no decision for the readerwrong counts, overstated behaviour, unsupported causes
Ends withPASS or FAIL plus fixesthe wrapper's required last line, VERDICT: PASS or VERDICT: FAIL

This is one pipeline, not a benchmark. The archive holds about 140 review records (top-level files). I have no human-labelled ground truth for them, and nothing below measures judge accuracy.

What did each judge catch in these reviews?

On this pipeline, the reader review flagged decision and framing problems, and the source review flagged claims the reader had no evidence to verify. That follows from their inputs. The reader judge sees the page the way a stranger does and never opens the script behind it. The claims judge reads the script and can still miss that a title promises something the page does not deliver.

Judges are not neutral either. The MT-Bench paper reports that strong LLM judges reached over 80% agreement with human preferences on its chat-assistant preference comparisons, and it names position, verbosity and self-enhancement biases. OpenAI's evaluation best practices list position and verbosity bias and recommend human feedback to calibrate automated scoring.

So I gave two judges different inputs, and checked each finding against the rubric it was written for.

What did the claims judge catch after the reader judge passed?

An article about running several coding agents at once.

The claims judge failed the first draft with 13 findings. Two of them: the article promised a CPU guard that the script returns early from for foreground calls, and it said a session-end hook kills everything left running when it does not. The cover image also showed CPU, phone and disk bars with no measurement behind them.

By the second claims review, the rendered-page reader had passed it. The second claims review still failed, with eight findings. The sharpest was about a single word:

"Machine-wide cap" still overstates enforcement ...
Fix: call it a background-launch admission threshold, not a cap

Trimmed from the claims judge's second verdict. The judge read the implementation and rejected a word the code did not earn.

The writer's closeout records fixes for all eight, including changing "cap" to "threshold". The reader judge had no way to see this one, because it never saw the hook. The article is Running Multiple Claude Code Agents.

The reader judge was not wrong. It answered the question it was asked, and that question was about the page.

What did the reader judge catch in these reviews?

A comparison of two coding tools. The reader judge failed the first draft: no decision for the searcher, log jargon such as model ids and "rows", and stacked disclaimers. The fixes were a decision section near the top, translated jargon and one stated limit. The second reader round passed it.

The claims judge then failed the same article on a count. The heading said "50 Logged Worker Runs", but some log rows covered more than one run. The reviewer proposed "50 logged task rows". The closeout records that the article switched to "tasks" and explained that some rows covered several runs. After two claims FAILs and a written judgement, the next claims file is a bare PASS.

A second article went FAIL, FAIL, FAIL, PASS on the reader judge alone. Its original title promised a tool comparison, but the page was one person's workflow note. The draft had the workflow title by the third recorded reader review, which still failed. The fourth passed after the opening was revised and repeated caveats were cut.

Along the way the reader asked for a pasteable snippet and the full text of a verdict. Neither went in. The full verdict was unavailable, and the proposed snippet had not been tested. The final PASS still noted that the original tool-comparison query went unanswered.

How do you evaluate your own LLM output with a judge?

Here is the support-bot case from the top, set up the way I set up my claims judge. It is a worked illustration, not a measured result.

  1. Output. The bot's answer: "You can return any item within 60 days."
  2. Evidence. The policy section the answer should rest on: "Returns are accepted within 30 days of delivery."
  3. Pass criterion. Every policy statement in the answer must match the quoted section. A mismatch fails, whatever the tone.
  4. Judge prompt. Give the judge the output, the evidence and the criterion. Ask for the mismatched sentence, the source line it contradicts, and the exact last line.
  5. Calibration set. Before trusting the judge, have a person label a small set of real answers, say 20 to 50, as pass or fail against the policy. Run the judge on the same set and compare.

The LLM evaluation metrics fall out of that setup. Compare the judge's labels with human labels and count how often it passes an answer a human marked as failing. To track policy compliance across releases, keep the test cases, rubric and calibrated judge fixed so the pass rates are comparable. When the two disagree on a calibration item, read the item yourself. If a release-blocking dispute is still unresolved after that, a human decides.

This is the same split as my pipeline. The answer alone cannot show the 60-day error. The policy line can.

How do you stop a judge loop?

For the claims gate, stop after two rounds on the same target. Re-reviews cover the diff and omit findings already posted. Before a third round, record a judgement for the finding. Fix it, accept it and register a follow-up, or delete the check. The default is to register the follow-up and move on.

The records do not follow the policy perfectly. Both claims-review arcs above include second-round findings that revisit first-round issues, and the separate reader sequence on the workflow article ran four times.

The cap still changed decisions. Before another round, I weigh what happens if the page ships with the finding against what the fix costs. A wrong count in a heading is cheap to fix and visibly wrong, so it gets fixed. A request for a snippet I have not tested is not worth adding.

Two more rules keep a round from drifting:

  • Only an important finding on a changed line may FAIL the gate. Nits and pre-existing issues are tagged and reported, not blocking.
  • Each finding is checked against its rubric before I act on it. A finding that cites no rubric line gets asked for one.

I wrote about the related habit of not taking an agent's word in Don't Trust an Agent That Says the Tests Pass.

What should a judge prompt contain?

A standard to check against, evidence per finding, read-only access, and a fixed ending. This is the skeleton I use for the claims judge:

You are a reviewer, not the author. You may read files; you may not edit.
Check the draft against these sources: <list>.
For each finding: severity (Important / Nit / Pre-existing),
file:line evidence, and the class of bug.
Only an Important finding on a changed line may fail the gate.
Reasoning goes above the verdict.
Last line, exactly: VERDICT: PASS   or   VERDICT: FAIL

The skeleton of my claims-judge prompt. The exact last line is what lets a script parse the result. The standard and the evidence are what make each finding reviewable.

That last line is the wrapper's required format. Some files in the archive hold a bare PASS or FAIL instead, which is part of why I count records, not verdicts.

Two of these match the docs I checked. OpenAI says to add reasoning before scoring and to keep rubrics clear. Anthropic's develop tests page shows a grader prompt that grades against a rubric and returns only "correct" or "incorrect" in a result tag.

When both attempts time out, the wrapper returns exit code 124 and no verdict. Investigate the timeout or rerun the review.

What must a substitute judge disclose?

Sometimes the primary judge cannot answer. My claims judge is Codex run through a wrapper script, and it can error or run out of quota. The wrapper can then run the same prompt as a read-only Claude Opus review. That fallback is opt-in.

The rule is that the output says what produced it. The file starts with a banner:

=== SUBSTITUTE GATE: Claude Opus adversarial review ===
=== NOT a Codex run: the primary judge could not produce a verdict (ERROR). ===
=== A PASS here is a full, final PASS; a real Codex re-run is a separate non-blocking follow-up. ===

The banner at the top of a substitute verdict, with the internal account label replaced with "the primary judge" and the dash changed to a colon.

The record says which judge ran, so nobody mistakes it for the primary. A substitute PASS is final, so the pipeline does not stall waiting for quota. The real re-run is tracked separately.

A substitute can still do real work. On an article about mobile test automation, the substitute failed the first draft for miscounts. It said "XCUITest in six iOS apps" when my own count file listed seven iOS repos, and "Compose UI tests in four Android apps" when the file listed five. It also flagged two aphorism closers my house style bans, and a stale Apple doc link. The second verdict confirmed the corrected counts and still failed, partly because the linked Apple page did not support the draft's separate-process claim.

Where does this stop being useful?

In four places.

  • The sample is one pipeline, about 140 review records, mostly on my own blog drafts. I did not measure how often either judge is wrong.
  • A judge that agrees with the writer is not evidence of correctness. The reader judge passed an article that the claims judge then failed.
  • The reader headers record REVIEWER, WRITER and INDEPENDENT, so I can see when the same model family wrote and judged. That matters given the self-enhancement bias the MT-Bench paper names.
  • For a security or money decision, a human still signs off.

A checklist before you trust a judge

  • If verifying an important claim needs evidence outside the output, give a judge that evidence.
  • If you have no human-labelled calibration set, build a small one before trusting the pass rate.
  • For a run using the wrapper's verdict format, require VERDICT: PASS or VERDICT: FAIL on the final line.
  • If a finding has no file and line, ask for one before you fix it.
  • After round two, record the decision before commissioning another review.
  • If a substitute ran, the record says so, and the re-run is on a list.
  • If two judges disagree on a release-blocking finding, check each against its rubric, and escalate what is still open to a human.