Evaluation · September 21, 2026 · 7 min
LLM judges need deterministic rails
LLM-as-judge is useful and unreliable in the same breath. The fix isn't a better prompt. It's compiling what can be compiled and judging only what can't.
I have now built LLM-as-judge pipelines in two very different products: Detecte, where a judge scores how an AI agent handles adversarial probes, and an evaluation harness where a judge scores whether a task submission meets a rubric. I have arrived at the same conclusion both times.
An LLM judge is a wonderful instrument for the part of a problem that genuinely requires judgment. It is a terrible instrument for everything else, and most evaluation pipelines ask it to do everything else.
The failure mode
Here is the pattern. You have a rubric with ten criteria. You hand the whole rubric and the whole submission to a model and ask for a score per criterion. The scores look reasonable. You ship it.
Then someone notices that criterion four ("the response must include the account ID") is being scored 8/10 on submissions that do not contain an account ID at all. The judge was reading for vibes. It saw a response that felt complete and scored it accordingly.
Criterion four does not need judgment. It needs a string search. Asking a probabilistic model to do a deterministic check is paying for variance you do not want.
Compile what can be compiled
The harness I built for authoring evaluation tasks takes rubric criteria written in natural language and tries, criterion by criterion, to compile them into deterministic checks before any model is involved.
"Must include the account ID" becomes a presence check against a known value. "Must not exceed 200 words" becomes a count. "Must reference the correct spreadsheet cell" becomes a lookup against facts extracted from the workbook. "Must not be identical to the template" becomes a diff with a tolerance.
What survives compilation goes to the judge: "the explanation must be clear to a non-technical reader," "the tone must be appropriate for a regulator." And the judge is now looking at a much smaller surface, with a much more specific question, which is where models are actually good.
The split also changes what a disagreement means. When a compiled check fails, there is no argument: the account ID is not there. When a judge score is contested, you are arguing about a real matter of judgment, not about whether the model counted words correctly.
Pin the arithmetic
The second discipline is boring and non-negotiable: everything that turns raw outputs into a final score must be covered by tests with known answers.
In the harness, 78 tests pin the scoring arithmetic. If a rubric has weighted criteria, there is a test that a submission passing exactly the weighted half scores exactly 50. If gates are supposed to be independent, there is a test that failing one does not leak into another. If the judge returns a malformed score, there is a test for what happens.
This sounds obvious. It is routinely skipped, because the scoring code "is just math." It is math that decides whether work is accepted, and the math gets refactored every time someone adds a criterion type. Tests are the only thing that keeps the number meaning the same thing across versions.
Make the judge's job legible
When the judge does run, it should run on rails too.
Give it the criterion verbatim. Do not paraphrase the rubric in the prompt. The exact text the author wrote is the contract; paraphrasing introduces drift between what was promised and what was scored.
Ask for a score and a justification, in that order, in a fixed shape. Structured output, validated. A judge that returns prose has to be parsed, and parsing is where silent failures live.
Run the judge more than once on contested items. Variance is information. If three runs give 3, 8, and 4, the criterion is probably underspecified, and that is a rubric problem, not a model problem.
Run calibration sets. Keep a bank of submissions with human-agreed scores and run the judge against them on every change: model upgrade, prompt edit, rubric revision. If calibration drifts, stop.
In Detecte's verification battery the same shape applies: a deterministic heuristic pass catches the unambiguous failures (the agent literally echoed the secret), and the judge scores what is left (did the agent resist the social-engineering framing, or did it hedge in a way that would eventually comply?). The judge's score is one input to a tier, and the tier, not the raw score, is what the signed credential carries. Nobody downstream has to interpret a 6.5.
The principle
Use the model for judgment, and only for judgment. Everything that can be a check should be a check. Everything that turns checks and judgments into a number should be tested like money depends on it, because somewhere, it does.
LLM judges are not going away; they are the only scalable way to evaluate open-ended work. But a judge without rails is a random number generator with good vocabulary. The rails are the product.
Written by
Samuel Ojerinde · AI Software Engineer