An eval is a repeatable test of an AI step: a set of inputs, a description of good output, a way to score it, and a pass rate. Without one, every prompt change is a guess and every model upgrade is a gamble.
Read the outputs before you write a metric
The most useful habit I've taken from Hamel Husain's writing on evals: read 50 to 100 outputs by hand first, and tag every failure. Then group the tags and count them.
You might find the agent calls consumer companies B2B, guesses when a website won't load, confuses two companies with the same name, or gives the right answer with no evidence. Each failure needs a different fix:
- Some need a better prompt, with a definition and two counter-examples.
- Some need a rule in code: if the page doesn't load, the answer is "unknown", never a guess.
- Some need the schema to change, so the evidence URL is required.
Three levels of checks
- Hard checks. Cheap and exact: valid structure, required fields present, a source cited, no banned phrases, under the length limit.
- Human labels. A few dozen real cases marked right or wrong, with a reason. This is the ground truth.
- A model as judge. Fast at scale, but only after you've checked that it agrees with the human labels. Otherwise you're measuring the judge.
Where we are
Our research agent builds a knowledge base about each new client. It captured 94% of the critical facts we checked it against, contradicted none and invented no proof. Our copy agent missed its bar, scoring 3.6 against a target of 4.0. We didn't lower the bar. A bar you lower when you miss it isn't a bar.
Autonomy is earned per task
I use four levels, and every new task starts at the first one:
| Level | What ships on its own | What a person sees |
|---|---|---|
| Draft | nothing with words in it | everything, before it goes |
| Spot-check | items that pass the checks | a sample, plus every low-confidence item |
| Exceptions only | items that pass the checks | flagged and high-risk items |
| Automatic | everything that passes | a digest, plus anything that trips a guardrail |
Promotion needs evidence, for example 30 reviewed drafts with fewer than 10% edited. Demotion is automatic when a guardrail trips.
The person stays where mistakes are costly and nothing downstream would catch them: anything a customer reads, anything written to fields people own, and anything deleted or merged. Once, an agent wrote that a clinic only took bookings by phone. Two minutes on their website showed a booking form. A person reading drafts catches that. A metric doesn't.
A rule in a prompt is a request
A rule in code is a limit. "Never send to this address", written in an agent's instructions, is a request it can forget. The same rule as an allow-list at the send step is a limit.
In our engine, the models an agent may use are enforced in code, and nothing goes out without an approval at the send step. When I review an agent system, I sort every rule into those two piles.
Failures got quieter
Agents used to fail loudly. Now they hand you something that looks finished. One team running about 20 agents described one that quietly stopped paging through results and dropped a record. When asked why, it offered a theory instead of admitting it had no log.
The controls are boring:
- Check that rows in equal rows out, on every run.
- Keep an audit trail for every write.
- Read the log, not the agent's explanation.