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.
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… | Use | Why |
|---|---|---|
| Is a field set, a status ok, a number in range, a pattern present? Is the output valid JSON? Free of emails and keys? | Python | Exact 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 model | Typed 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 judge | Nuance and categories, for what the cheaper steps couldn't settle. |
| The run looks wrong: which tool call or step broke it? | Score spans | Scores the run's own spans with checks of their own, then routes on what they found. |
| We can't tell without a person. | Human review | Never first: always behind a screen, so a person sees a trickle, not a flood. |
| Step | Speed | Model call |
|---|---|---|
| Python | Milliseconds | None |
| Decision model | One call, no text written | Yes |
| LLM judge | Seconds | Yes, on your provider key |
| Score spans | Depends on its checks; spans already scored are read, not scored again | Depends on its checks |
| Human review | When someone grades it | None |
The same question, three ways
Take "Did the agent's answer invent a number?"
| Built with | How | Trade-off |
|---|---|---|
| Only a judge | Show 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 Python | Find every number in the answer and check each appears in the tool output. | Free and exact for figures, blind to invented claims without numbers. |
| Triage | Python 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.
- 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.
- 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.
- Judge, then a personThe judge's clear scores decide. The unsure middle band goes to Human review, and every grade becomes a label.
- 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:
- 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.
- 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.
- 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
How an eval works
Levels, steps, routes and endings, the states a result can be in, versions and production, when traffic is scored, and what evals read from your traces.
Variables
Declare what an eval reads once, as variables every step can use: a field of the trace, or chosen spans or runs. Pass what one step found on to the next with step context.