arXiv(opens in a new tab)cs.AISep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.02246

LLM-as-a-Judge Is Not an Oracle: Why Self-Improving Agents Need Deterministic Guardrails

Vansh Wahi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Observed failure modes of LLM evaluators under optimization pressure, and the guardrails that contained them.

Self-improving agent pipelines have a problem at their center. An optimizer rewrites prompts to score higher, and the score comes from a judge that is itself an LLM. That judge therefore has the last word on whether the system is getting better, and our position is that it has not earned it. The judge should be demoted from oracle to advisor: its verdict becomes one input among several, and every change is gated instead by a deterministic verification layer that the judge has no power to override. We reached this position by building the alternative and running it. Over months of operating autonomous prompt-optimization loops in production across commercial contract analysis, legal compliance review, and code-quality assessment, we cataloged eleven ways the evaluation signal failed, grouped into four classes: judge bias, harness and metric failures, ground-truth errors, and reward hacking. Agents achieved perfect scores by reading cached answer keys from their environment, a 100% pass rate concealing 68% true capability. A corrupted ground-truth label caused the optimizer to delete correct compliance rules in order to agree with it. A syntactically broken prompt was promoted as the winning candidate because a silent parser fallback improved the metric. Attempts to fix the judge by rewriting its rubric plateaued; the only reliable gain came from a structural constraint on its output order. In response we describe PROCTOR, the architecture we now use: a Teacher-Student loop with systematic verification, in which a stateful orchestrator holds all tool access, stateless subagents diagnose failures and draft mutations without the ability to apply them, and a Teacher grades those mutations against an explicit rubric, under a five-layer verification regime: hermetic execution sandboxes that remove the exfiltration channel entirely, capability-disjoint roles in which no component both proposes and applies, deterministic acceptance checks that outrank the Teacher's approval, stratified frozen holdouts under strict leak prohibition, and canary cases engineered so that a perfect score is itself evidence of cheating. We report the failures this architecture prevented, and, because the Teacher is itself an LLM judge, the failures it did not.

1 Introduction

Consider a concrete setup, one of the two we describe in this paper. An LLM is given a codebase and asked to rate it from 1 to 5 on qualities such as readability and robustness. Expert human reviewers have already rated the same codebases, so we can measure how far the model's ratings sit from theirs: a mean absolute error of 0.96 means the model is typically off by roughly one point on the five-point scale. To close that gap without a human in the loop, a second LLM acts as an optimizer. It repeatedly rewrites the judge's instructions, re-runs the judge, and keeps whichever version of the instructions scores best.

In an early prototype of ours, the optimizer improved the judge by deleting it. The mutation it proposed replaced the entire scoring rubric with a placeholder string. The judge, now with nothing to grade against, returned unstructured prose containing none of the expected rating fields. Our evaluation harness caught the resulting parsing errors and quietly fell back to a default rating of 3 on every dimension. And because a flat 3 happens to sit closer to the human average than the original judge's scattered 4s and 5s, the measured error improved, from 0.96 down to 0.92. The selection gate did exactly what it had been built to do and promoted the gutted prompt as the winning candidate.

Nothing in that sequence was a bug in the ordinary sense. Every component behaved as specified. What failed was the assumption underneath the whole arrangement: that the score meant what we thought it meant.

Hillclimbing requires a reliable measure of progress. Running these loops in production taught us that ours was not reliable, and, more importantly, that the search process did not tolerate the error but sought it out. This is the paper's central claim, and we state it before the evidence rather than after: in a closed optimization loop, the LLM evaluator cannot be treated as an oracle. It is a fallible component sitting in the position of final authority, and optimization pressure is very good at finding the gap between what it measures and what we meant.

The constructive half of the claim matters more than the critical half. We are not arguing against LLM judges, which remain the only scalable option for semantic evaluation. We are arguing about where their verdict sits in the chain of authority. The judge should be demoted from oracle to advisor: its opinion is an input, not a decision, and the decisions are made by checks that cannot be persuaded. We call the resulting discipline systematic verification, and it has two components, developed in Sections 2 and 5 respectively. The first is role decoupling: no component in the loop both proposes and applies, or both judges and acts. The second is deterministic gating: the checks with final authority are mechanical rules, and a mechanical rejection overrides an LLM approval, never the reverse.

This is a field report rather than a benchmark study. Section 2 describes the Teacher-Student architecture we ran and the roles it separates. Section 3 catalogs eleven evaluation pathologies we observed while running it, grouped into four classes. Section 4 examines what happens when a search process optimizes against defects of this kind, which is the part we found most instructive: the loop does not average evaluator error away, it ascends it. Section 5 specifies the five deterministic layers that contain these failures, together with an honest account of what they do not contain, including the failures of our own Teacher. Section 6 proposes an adversarial multi-persona judge as future work.

References (23)