By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
The evaluation lesson scored a small labelled set with deterministic checks. Those checks are still the first line: if an answer can be graded by code - does it cite the order id, did it call the right tool, is the total exactly 42.50 - a judge only adds cost and noise. LLM judges are for the qualities code cannot measure: is the tone right, is the explanation grounded, did the answer address the actual question.
At scale, the judge is a measuring instrument, and instruments need calibration. A judge that agrees with humans seventy percent of the time is a hint; a judge that is stable, versioned and calibrated against a human-labelled set is evidence. The difference is a small amount of boring work up front.
The snippet below aggregates a fixture of judge runs. It counts a vote only when the judge cited evidence, compares the same judge's two orderings to catch position bias, and refuses to promote when the mean clears the floor but a case is unstable. That last rule is the point: a good average can hide a judge that swings three points on the same case depending on order.
"""Aggregate judge votes with an evidence check and a position-swap test."""
from collections import defaultdict
from statistics import mean
FLOOR = 4.0
RUNS = [
{"case": "c1", "judge": "j-a", "order": "AB", "score": 5, "evidence": True},
{"case": "c1", "judge": "j-a", "order": "BA", "score": 5, "evidence": True},
{"case": "c1", "judge": "j-b", "order": "AB", "score": 4, "evidence": True},
{"case": "c2", "judge": "j-a", "order": "AB", "score": 5, "evidence": True},
{"case": "c2", "judge": "j-a", "order": "BA", "score": 2, "evidence": True},
{"case": "c2", "judge": "j-b", "order": "AB", "score": 4, "evidence": True},
{"case": "c3", "judge": "j-a", "order": "AB", "score": 4, "evidence": True},
{"case": "c3", "judge": "j-a", "order": "BA", "score": 4, "evidence": True},
{"case": "c3", "judge": "j-b", "order": "AB", "score": 3, "evidence": True},
{"case": "c9", "judge": "j-b", "order": "AB", "score": 2, "evidence": False},
]
by_case = defaultdict(list)
by_case_judge = defaultdict(list)
for run in RUNS:
if not run["evidence"]:
continue
by_case[run["case"]].append(run["score"])
by_case_judge[(run["case"], run["judge"])].append(run["score"])
unstable = []
for case in sorted(by_case):
scores = by_case[case]
swaps = [
max(pair) - min(pair)
for (case_key, _judge), pair in by_case_judge.items()
if case_key == case and len(pair) > 1
]
stable = max(swaps, default=0) <= 1
if not stable:
unstable.append(case)
print(f"{case} score={mean(scores):.2f} votes={len(scores)} stable={stable}")
batch = mean(mean(scores) for scores in by_case.values())
print(f"batch score={batch:.2f}")
print("unstable cases:", ",".join(unstable) or "none")
if batch < FLOOR:
print("decision: hold (below floor)")
elif unstable:
print("decision: hold (unstable judge)")
else:
print("decision: promote")The batch score is exactly the 4.0 floor, which is the seductive case: a dashboard with one green number. The instability list says case c2 dropped from 5 to 2 when the candidate was shown second, so the judge is not measuring the answer consistently. The decision is hold, not because the mean failed but because the instrument did. Fix the rubric or the pair, re-run the calibration and then re-score. Case c9 never entered the aggregate because its only vote cited no evidence, which is the second quiet rule: an unsupported score does not count.
Judge runs cost real money, so sample deliberately: the full set before a release, and a stratified sample - every failure class, every route, the longest cases - on a nightly cadence. Keep a human-labelled calibration set of a few hundred rows and re-check agreement every time the judge model, the rubric or the prompt changes.
| Question | Cheap check | When a judge is worth it |
|---|---|---|
| Did it answer the right order? | Exact match or a tool-call assertion | Never needed |
| Did it cite a real policy? | Resolve the citation ids | Only to grade the relevance of the cited span |
| Is the tone right? | Keyword and length heuristics are weak | Pairwise judge on a sample |
| Did the release regress? | Full deterministic suite | Stratified 200-case run, scored against the floor |
Key takeaways
Use deterministic checks first and reserve LLM judges for the qualities code cannot measure.
Pin the judge model, temperature, rubric and prompt version; an unversioned judge makes scores incomparable.
Score one criterion at a time with written anchors and require a quoted span as evidence.
Aggregate with position swaps and a disagreement list; hold the release when the instrument is unstable, even if the mean passes.
Budget judge runs as batches over a labelled calibration set, and re-calibrate whenever the judge or the rubric changes.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.