Evals

Designing triage evals

Decide the easy cases cheaply and send only the hard ones to a judge or a person: which step to use for what, the four shapes good evals take, and how spot checks keep the cheap steps honest.

A judge is the most flexible way to grade an answer, and the most expensive and the slowest. Most of your traffic doesn't need one. An empty answer is a fail, and a Python rule sees that for free. An answer whose every figure appears in the tool output is grounded, and a decision model confirms that in one pass. A triage eval puts the cheap steps first, lets each decide what it can, and routes the rest onward.

What it saves

Move the sliders: your traffic, how much of it the cheap steps settle, and what one judge call costs.

Judge every run$1,200600,000 judge calls a month
Triage$18090,000 judge calls a month

Provider spend only: what your model provider bills for judge calls on your key. Steps that are not judges make no model call. Trodo’s own usage is counted separately, one unit per step run.

The saving isn't only money. A trace a screen settles gets its verdict in milliseconds, and it is decided exactly: a rule has no off days.

Choosing a step

You want to know…UseWhy
Is a field set, a status ok, a number in range, a pattern present? Is the output valid JSON? Free of emails and keys?PythonExact and free. Anything code can decide, code should decide.
Does every claim rest on the tool results? Was the question answered? Did the user repeat themselves?Decision modelTyped questions answered with probabilities, every question in one pass. Route can't tell onward.
Is the tone right? Is it in scope? Which of five failure types is it?LLM judgeNuance and categories, for what the cheaper steps couldn't settle.
The run looks wrong: which tool call or step broke it?Score spansScores the run's own spans with checks of their own, then routes on what they found.
We can't tell without a person.Human reviewNever first: always behind a screen, so a person sees a trickle, not a flood.
StepSpeedModel call
PythonMillisecondsNone
Decision modelOne call, no text writtenYes
LLM judgeSecondsYes, on your provider key
Score spansDepends on its checks; spans already scored are read, not scored againDepends on its checks
Human reviewWhen someone grades itNone

The same question, three ways

Take "Did the agent's answer invent a number?"

Built withHowTrade-off
Only a judgeShow it the question, the tool output and the answer; ask for a score.Works, but pays for a judge call on every run, including the thousands whose numbers obviously match.
Only PythonFind every number in the answer and check each appears in the tool output.Free and exact for figures, blind to invented claims without numbers.
TriagePython gathers the tool results, a decision model asks whether every figure and claim is supported, and what it can't tell goes to a person.One model call per run, and a person only where the model was unsure. This is the Grounded in tool results template.

The patterns

Most good evals take one of four shapes.

  1. Screen, then judgePython or a decision model decides the clear passes and clear fails. Only the rest reach the judge. The default shape for quality evals.
  2. Gather, then checkPython collects the evidence (tool outputs, retrieved documents, the expected answer) and passes it on. A decision model or judge reads exactly that, not the whole trace.
  3. Judge, then a personThe judge's clear scores decide. The unsure middle band goes to Human review, and every grade becomes a label.
  4. Classify, then explainA cheap step finds the failures; a judge or decision model says which kind of failure it is. The categories become your report.

The Grounded in tool results template gathers, then checks, then asks a person:

  1. Gather tool results (Python) collects every tool's output and passes it on. A run with no tools passes straight away: there is nothing to be grounded in.
  2. Rests on the tool results (Decision model) reads the question, the gathered tool results and the answer, and asks whether every figure and claim is supported. yes passes, no fails.
  3. can't tell goes to Is it grounded? (Human review), and a person decides.

Spot checks

A screen that sends a trace straight to an ending saves a model call. If the screen is wrong, nobody sees what the rest of the eval would have said. Spot checks measure that.

A small, fixed share of traffic, 0.5% of units, walks the whole eval even where a cheap step would have ended it. The cheap step's verdict is still the result: the eval decides as it always does. What the whole eval would have said is kept beside it. When the two disagree, the case appears in the grading queue under Spot checks, for someone to rule which was right. Screen accuracy on Analysis shows how often each screen's shortcut disagreed.

  • Only evals with a judge or a decision model have anything to spot-check.
  • A spot-check walk never puts work in front of a person: if it reaches Human review, it stops there as Skipped.
  • The extra steps a spot check runs are billed like any others.

Anti-patterns

On this page