·
Rafael Duarte
Evals research
Three things customers asked for most this year: run last week’s traffic against today’s prompt, stop a deploy that fails its evals, and answer every agent’s question from one place.
Most teams write their first eval the week after their first incident. That is not a criticism; it is how we wrote ours. The trouble is that a suite written in a hurry tests the incident and nothing else, and the next failure walks straight past it. After reading the suites of a few hundred agents on Talos, we see the same handful of habits in the ones that catch problems early.
Start from runs, not from imagination
The best eval cases are runs that already happened. Real inputs carry the typos, the half sentences and the odd requests that nobody thinks to write down. Pick twenty runs a week: ten that went well, five that a person corrected, and five that the agent should have handed off and did not. Save each one as a case, with the answer it should have given.
Twenty a week sounds small. After a quarter you have 260 cases, and every one of them is something your agent has actually been asked.
Write down what the right answer is, not what the agent said. If a person corrected the run, their correction is the expectation. If nobody did, decide now, while the case is fresh: an expectation written a month later is usually the agent's own answer copied back.
Three kinds of check, in order of cost
Not every case needs a model to grade it. Use the cheapest check that can tell right from wrong.
Exact checks. The route is
billing, the JSON has anorder_id, the refund is under $250. They run in milliseconds and never disagree with themselves. Write these first.Graded checks. A second model scores the answer against a short rubric: did it cite the policy, did it promise anything it cannot deliver. Keep the rubric to three or four questions with yes or no answers, so the grader has little room to drift.
A person's label. For the cases that matter most, a person marks the answer right or wrong once, and the label is kept. It costs the most and ages the best.
Write the failing case before the fix
When a run goes wrong, the order matters. Save the run as a case, watch the suite fail on it, then change the prompt or the tool. If the suite does not fail, the case is not testing what went wrong, and the fix will not be protected the next time someone edits the prompt.
On Talos, any trace can be saved as a case in one click, with the step that went wrong already marked as the expectation to change.
Keep the suite small enough to run on every change
A suite that takes forty minutes gets run once a day, then once a week, then before releases, then never. Aim for under three minutes. Cut duplicates: twelve cases that test the same routing rule tell you nothing the first one did not. Run cases in parallel. Cache the grader's answer when the agent's answer has not changed.
The suite is not there to prove the agent is good. It is there to tell you, quickly, when it got worse.
Pinned in our evals channel
Read the failures, not the score
A score of 0.94 against a threshold of 0.95 says very little. The two cases that flipped say everything. Every time the suite runs, read the cases that changed, in both directions. A case that started passing for no reason is as suspicious as one that started failing: it often means the grader moved, not the agent.
Keep a short log beside the suite: the date, the score, the cases that flipped and what you did about them. Six months in, it is the best record you have of how the agent changed, and why.
Then let the suite gate the deploy. Once a suite is small, honest and read, it has earned the right to say no.