Skip to content
Nelson D’SouzaEmail me
Writing

An eval is an instrument

An eval is a measurement with noise. Rebuilt as one, mine showed a cheap model as correct as the reference and clearly less grounded. The scoreboard missed it.

By · · 13 min read

  • Evals
  • LLM
  • Measurement
  • AI Agents
In this note
  1. A 22-question scoreboard
  2. A model that scored 0/22
  3. What the review found
  4. The rebuild
  5. A frozen held-out set
  6. Grounding, graded on its own
  7. Repeats, intervals and a validity guard
  8. What the real measurement showed
  9. Three fixes together, and what moved
  10. Two smaller decisions the data made
  11. A gate set from the noise
  12. What it cost, and what it still can't show

The Ask panel on this site’s home page answers questions about my work. You type a question, and an agent answers it by writing SQL against a small Postgres database of my career that runs in your browser. Every answer cites the rows it came from. The model behind it is called on every question, so it had to be cheap, and the choice had to be defensible.

I first chose that model with a 22-question scoreboard, and it measured less of the model than it appeared to. It scored one model 0/22 because every request died on a parameter the harness chose. The margin my choice rested on was one question, inside its own noise. And it never checked that a citation pointed at a row the agent had actually read. Rebuilt as a measurement, with a frozen held-out set, grounding graded on its own, repeated runs with intervals and a gate set from the noise, the eval showed what the scoreboard couldn’t. The cheap model was as correct as the reference and clearly less grounded, and removing a misleading schema comment alongside tightening the prompt and adding the about table closed most of the gap.

A 22-question scoreboard#

I wrote 22 questions: facts, roles by year, tools, results, principles, a contact question, something not in the data, an off-topic request and an attempt to extract the prompt. Each question had a grader that checked the answer for the expected facts. I ran every candidate model once over the set and picked the cheapest one within a question of a stronger reference model.

The result looked decisive:

ModelPassedCost for all 22
gpt-6-luna21/22$0.0025
gpt-6.1-terra (reference)22/22$0.0244

The small model was within one question of the reference at a tenth of the cost, so it became the default.

A model that scored 0/22#

Before that table existed, one model, gpt-5-nano, scored 0 out of 22.

A model that answers none of 22 easy questions about a résumé isn’t a bad model. Something else is being measured.

How a harness scored a model 0/22Sequence diagram of 9 messages between Eval runner, Agent, Price table, Model API. Each step is listed as text below.Eval runnerAgentPrice tableModel APIquestion 1 of 22effort: noneHTTP 400upstream error, no causegraded wrong, ×22after: lowest effort for thismodel?minimaleffort: minimal200 and an answer
  1. Eval runner to Agent: “question 1 of 22”
  2. Agent to Model API: “effort: none”
  3. Model API replies to Agent: “HTTP 400”
  4. Agent replies to Eval runner: “upstream error, no cause”
  5. Eval runner, internally: “graded wrong, ×22”
  6. Agent to Price table: “after: lowest effort for this model?”
  7. Price table replies to Agent: “minimal”
  8. Agent to Model API: “effort: minimal”
  9. Model API replies to Agent: “200 and an answer”
Fig. 1 How a harness scored a model 0/22 The model never saw a question. Every request died on a parameter the eval chose, and the eval graded the failures as wrong answers.

Reasoning models accept an effort setting, and the eval asked for "none", the lowest there is. But gpt-5-nano and gpt-5-mini reject "none", and the GPT-5.4 and later models reject "minimal". A wrong value fails every request with an HTTP 400. The failures were logged without a cause, and the grader, seeing no answer, marked each question wrong.

The fix was small. The price table now records, per model, the cheapest reasoning setting that model accepts, measured against the API, and the agent asks for that. The log line now carries the HTTP status and a short provider message. Re-run, gpt-5-nano scored 18/22.

The fix matters less than what the 0 showed. A score says something about the model only once you’ve ruled out the harness and grader confounds you can test. The 0 looked like an outlier to repair. It was the one visible case of an instrument producing numbers unrelated to the model, and nothing about the other scores ruled out quieter cases. My chess tutor’s metrics failed the same way, several times, and catching those failures is most of Measure the student, not the move.

What the review found#

Before the Ask panel went public, I had the whole system reviewed adversarially, the eval included. The review’s verdict on the eval was “useful as a smoke test; not yet a measurement or a gate”, and it listed why.

Three graders were near-vacuous. The off-topic grader passed any answer containing work, career or Nelson, which is nearly every answer. A “data principle” grader passed on the word data, which appears in “not in the data”. The prompt-extraction grader required nothing and failed only on three verbatim phrases, so a paraphrased leak passed.

The set had been tuned on. Grader alternatives were widened three times after failures were seen: council became council|convene|deliberat, then grew again. Each change was defensible on its own, since the model’s paraphrase really was correct. Together, they made the set a development set.

Nothing checked grounding. The grader checked that an answer contained some citation like [roles:some-id]. It did not check that the cited row existed, or that the agent had retrieved it. For a product whose promise is “every claim cites a row”, that is the main hallucination risk, unmeasured.

The decision rested on noise. With 22 questions and one run each, the default’s 21/22 sat one question below the reference and one above the runner-up, gpt-5.6-luna at 20/22. Each gap is one coin landing differently. My own results doc said a one- or two-question gap was within noise, and the model choice rested on exactly that gap.

None of these is exotic. Each is what happens by default when an eval grows out of a handful of spot checks.

The rebuild#

A frozen held-out set#

I wrote 43 new questions from the site’s content and froze them before any model answered them. The file’s header says it is never edited to make a model pass. One compromise: the lists of accepted refusal phrasings were calibrated on a single dev-set run, then copied in and frozen with the questions. The old set, migrated, became dev.json, the place where prompts, schema comments and graders get tuned.

The new set covers what the old one didn’t: facts (6), multi-hop and aggregation (6), time and ordering (5), honesty about the basis for listed skills (4), not in the data (4), off-topic (3), prompt injection inside the question (4), bait to disparage me or invent facts (4), questions about an anonymised former client (3), and multi-turn follow-ups (4). A follow-up like “What did he do just before that?” runs the earlier question through the real agent first, then passes that history along, and only the last answer is graded.

Graders list required and forbidden facts. Alternatives are allowed only as spellings of the same fact, never as catch-alls.

Grounding, graded on its own#

Correctness and grounding are separate verdicts, because an answer can be right and badly sourced, or well sourced and wrong. The grounding grader asks two questions of every answer that cites a row or states a number (answers with neither are left out of the grounding rate, which is why its denominators below are smaller):

// every citation names a row that exists AND that a query in this question returned
citations.filter((c) => !ids.get(c.table)?.has(c.id))          // not a real row
citations.filter((c) => ids.get(c.table)?.has(c.id)
                     && !retrieved.has(c.id))                  // real, but never retrieved
// every number appears in the retrieved rows, the seeded content, or the question
numbers.filter((n) => !retrievedNumbers.has(n) && !content.has(n) && !asked.has(n))

“Was retrieved during this question” is the important clause. A model can cite a real row it has never seen, because the schema or the prompt mentions it. That citation points at something true, and it is still not grounded: the model did not read the row before citing it.

The number check is deliberately loose. A number anywhere in the seeded content passes, so it catches invented figures and misses a real figure attached to the wrong project.

Repeats, intervals and a validity guard#

Each question runs three times. Rates come with a 95% Wilson interval, a confidence interval for a proportion that stays sensible near 0% and 100%, where the textbook normal approximation breaks. The interval treats runs as independent, which is somewhat optimistic for a question that passes one time in three: 129 answers from 43 questions carry less information than 129 independent questions would.

A run in which the agent was unavailable (rate-limited, out of budget, or failing upstream) is marked invalid and not recorded. This guard earned its place on its first day. The first attempt at the new measurement tripped the agent’s own per-client daily budget, which had been added after the review. Every fake client address the eval used mapped to one bucket, so the eval looked like one very enthusiastic visitor. Without the guard, that would have been recorded as the model failing questions. The eval now lifts the per-client limit on its own store; the global daily cap still applies. That cap, and why it stays global, is in The server owns an agent’s truth and its money.

The eval pipelineFlowchart with 8 nodes, 8 connections. Each step is listed as text below.Test set: 43, frozenDev set: tuning only3 runs per itemthrough the realagent loopAgentavailable?Invalid run, notrecordedCorrectness:required andforbidden factsGrounding: citedrows retrieved,numbers in dataWilson lower boundsvs baseline, then theexit codewhen tuningnoyesyes
  1. Test set: 43, frozen to 3 runs per item through the real agent loop
  2. Dev set: tuning only to 3 runs per item through the real agent loop: “when tuning”
  3. 3 runs per item through the real agent loop to Agent available?
  4. Agent available? to Invalid run, not recorded: “no”
  5. Agent available? to Correctness: required and forbidden facts: “yes”
  6. Agent available? to Grounding: cited rows retrieved, numbers in data: “yes”
  7. Correctness: required and forbidden facts to Wilson lower bounds vs baseline, then the exit code
  8. Grounding: cited rows retrieved, numbers in data to Wilson lower bounds vs baseline, then the exit code
Fig. 2 The eval pipeline Two separate verdicts per answer, and a run where the agent was unavailable never becomes a score.

What the real measurement showed#

On the held-out set, the cheap model and the reference were indistinguishable on correctness and clearly different on grounding:

gpt-6-luna (3 runs)gpt-6.1-terra (2 runs)
Correct106/129 = 82.2% (74.7–87.8%)73/86 = 84.9% (75.8–90.9%)
Grounded99/123 = 80.5% (72.6–86.5%)73/75 = 97.3% (90.8–99.3%)
Cost per question$0.00016$0.00129

The correctness intervals overlap almost entirely. The old scoreboard’s one-question gap had been noise. The real difference was in a column the old eval didn’t have.

I read every failure by hand. Most of luna’s grounding failures were one habit. A comment in the database schema said the profile row is “Always ‘nelson’. Cite as [profile:nelson]”. So the model did exactly that, often in a closing “email him” sentence, without ever querying the row. The citation pointed at a real row. It was never retrieved. The reference model rarely did it.

The 23 correctness failures were more mixed. Eleven were grader false negatives: correct refusals worded outside the frozen phrase list (“does not specify”, “isn’t identified”). Three were a defect in a test item, kept as is in that version of the set. Three more came from one strict item that wanted an extra detail. That left about six clear model failures in 129.

I didn’t read the passes, so what comes next is a judgement rather than a measurement. Graders that require specific facts should pass a wrong answer far less often than they fail a correct refusal, so I read 82% as a lower estimate of true correctness.

Three fixes together, and what moved#

The fix touched three parts of the agent together, with no single-factor ablation isolating how much each piece contributed: removing the profile:nelson schema comment that told the model how to cite the profile, tightening the prompt to cite only rows a query returned with their id selected (and to query the profile for the email before offering it), and adding the about table of first-person answers so common hiring questions had real rows to retrieve.

Then the same frozen set, the same graders, three more runs:

BeforeAfter
Correct106/129 = 82.2% (74.7–87.8%)109/129 = 84.5% (77.3–89.7%)
Grounded99/123 = 80.5% (72.6–86.5%)114/115 = 99.1% (95.2–99.8%)

A gate run right after, on the same code, gave 104/129 correct and 118/118 grounded. Pooled over both runs, correctness was 213/258 = 82.6%, the same as before. I report that rather than the nicer 84.5%, because correctness didn’t improve. Grounding did, and its intervals no longer overlap. That’s the real change.

The fix also showed why a frozen set needs a lifecycle. Two items were now stale: the content had changed, so the correct answer had moved, and the agent’s new answer was right while the grader still expected the old one. The rule is that a frozen item is never edited to make a model pass. It can only be retired in the next version of the set, which resets the baseline.

The life of a test itemState machine with 5 states and 4 transitions. Each step is listed as text below.Drafted, then frozenbefore any modelanswersMeasuredStaleEdited to passRetiredk runs per modelcontent changes thecorrect answernext set version,baseline resetsnever
  1. Starts in Drafted, then frozen before any model answers.
  2. Drafted, then frozen before any model answers to Measured: “k runs per model”
  3. Measured to Stale: “content changes the correct answer”
  4. Stale to Retired: “next set version, baseline resets”
  5. Measured to Edited to pass: “never”
  6. Retired is a final state.
Fig. 3 The life of a test item Items move forward only. The one transition that would make a failing model pass is the one the set forbids.

Two smaller decisions the data made#

With an eval worth trusting, two arguments that would otherwise have been settled by instinct were grounded in measured token counts and failure rates rather than instinct alone (drawn from test and dev items rather than visitor traffic).

A name that should never appear. Some of my case studies are anonymised. The data never contains the former client’s name, but one test question does, because a visitor might ask. Both models refused correctly and then repeated the name from the question, every time. Across the three client questions, that was 3 of 9 answers for the cheap model. A prompt rule alone would make that rarer and still possible. So the fix is a prompt rule plus a guard on the server: every streamed chunk of text passes a redactor that replaces listed names, holding back any tail that could still become a name in the next chunk. The list lives only on the server. The guard is tested at every split point and one character at a time. It matches the exact name in any case, so a misspelling or a spaced-out variant gets past it, and there the prompt rule is the only defence. After the fix: 0 of 9.

An output cap that stayed where it was. Answers were capped at 1,000 output tokens, which looked generous for 80-word answers. The eval now reports output tokens per turn. No test-set turn went past 160 tokens. The only turns above 400 were dev-set answers to “list all of it” questions that ignored the length rule. A lower cap would not shorten those answers. It would cut them off mid-sentence, trading a long answer for a broken one. The cap stayed, and the number is in the report so the question can be reopened with data.

A gate set from the noise#

A measurement you take once is a report. To catch regressions, the eval has to run after every change to the agent, the schema or the content, and fail loudly when things get worse. That needs a threshold, and thresholds are where guesswork creeps in. “Fail below 80%” sets a floor, but without noise calibration you cannot tell a real regression from an ordinary bad run of an unchanged agent.

The first gate subtracted 1.645 standard deviations of the run-to-run difference from the measured lower bound, giving thresholds of 0.66 for correctness and 0.64 for grounding. That uses a normal approximation, and the normal approximation fails near 100%. Grounding was now at 99%.

The current thresholds come from the data in a way that holds near the edges. Start from the measured count, say 114 grounded out of 115. (That treats the 115 answers as independent, though they come from 43 questions run three times each and a question’s repeats tend to agree, so the effective sample is smaller than 115. The pooled figures on the evals page correct for that with a question-level effective sample size; the gate doesn’t.) With a uniform prior, that gives a posterior belief about the true rate. From it, simulate what a fresh run of the same agent would score; that is the Beta-binomial posterior predictive, and it includes the baseline’s own uncertainty, not only the new run’s. Take the 5th percentile of that distribution, a bad but ordinary day for an unchanged agent, and compute the Wilson lower bound a run with that count would report. That is the threshold. An unchanged agent trips it about 5% of the time under the independent-trial approximation (higher in practice because question repeats correlate).

Two checks made me trust it. Applied to the earlier measurement, the method reproduces the old thresholds (0.654 and 0.630, against 0.66 and 0.64), so it agrees with the simpler method where the simpler method is valid. And it answers the question that matters: would the gate catch a return of the bug it was built after?

The old grounding threshold, 0.64, would have caught a return to 80.5% grounding in only 1.9% of runs. The new one, 0.89, catches it in every simulated run, and catches a drop to 90% about 95% of the time. The correctness threshold, 0.67, catches a drop to 72% about three times in four. I publish those numbers next to the thresholds, because a gate’s sensitivity is part of what it claims.

GateCorrectness thresholdGrounding thresholdCatches a return to 80.5% grounding
Normal approximation0.660.641.9% of runs
Beta-binomial predictive, then Wilson0.670.89every simulated run

A gate run costs about two cents. CI runs without an API key, so the gate isn’t part of it; I run it by hand after changes to the agent, the schema, the content or the model. The evals page pools every run since the test set last changed, with intervals.

What it cost, and what it still can’t show#

The held-out measurement cost $0.184, of which $0.035 was the invalid run that hit the per-client budget. The fix round cost $0.060. At this scale the constraints are variance and grader quality.

And the limits, as plainly as the results:

  • It does not show the models differ in correctness. The intervals overlap.
  • The questions are not a sample of what visitors ask. They are written to cover categories, so the rate is a regression signal. It says nothing about how satisfied visitors are.
  • Three runs is coarse for per-question flakiness.
  • It does not give the true correctness rate. Lexical graders undercount correct refusals. The next step is a pinned LLM judge for refusal items only, checked against hand labels before it is trusted.
  • The gate is blunt near the top. A later prompt change took grounding to 94.9% in a gate run, and the gate passed it with 0.3 points to spare. Reading the failures caught it, and the next fix brought grounding back to 99.1%. A threshold built to catch the return of an old bug makes no promise about a smaller new one.

The scoreboard couldn’t report the difference that mattered, because grounding wasn’t one of its columns. The cheap model cited rows it had never read, and it took a grader that checked retrieval to see it.

All writing