AI engineering · ZST-INS-021
Why most agent pilots fail at the evaluation layer
Agents rarely fail because the model is weak. They fail because nobody defined what a correct run looks like before the build started.
The demo is the specification
A pilot usually begins with a demo. Someone has already built a version that works on a curated set of inputs, and the project is funded on the strength of that demo. The team then inherits an implicit specification: make it work like the demo, on real data, for real users, without a definition of what "work" means.
This is why the failure is so often discovered late. There is no test that can fail early, because no test was written. The system appears to function, users lose confidence one ambiguous answer at a time, and the retrospective concludes that the model was not ready.
Evaluation is a specification you can run
An evaluation set is not a quality assurance step at the end of delivery. It is the clearest statement of intent a team can produce. It forces three decisions that are otherwise avoided: which cases matter, what a correct output looks like, and how much error is acceptable for this task.
In practice we build the first version from twenty to fifty real cases, including the awkward ones: the ambiguous request, the document with a stale version, the customer who changes their mind mid-conversation. The set is versioned alongside the code, and it runs on every prompt or model change. Its value is not the score. It is the argument the score forces.
- A task definition precise enough that two reviewers agree on correctness
- An error budget agreed with the business owner, not the engineering team
- A held-out set that is never used for tuning
- A failure taxonomy, so regressions are diagnosable rather than merely visible
The uncomfortable middle
Most production agent systems settle at a success rate that is useful but not impressive: high enough to remove real work, low enough that a person must remain accountable for exceptions. That is a legitimate outcome, and it is only defensible if the number is known and monitored.
Teams that skip evaluation end up with a binary argument: the pilot either "worked" or it did not. Teams that measure can say precisely where it works, where it fails, and what the failure costs. That is the difference between a demo and a system you can put in front of a customer.
Takeaway
Write the evaluation before the second sprint. If you cannot describe a correct run, you are not ready to build one.