A unit test checks one exact answer. An AI eval in your build pipeline checks a rate, with enough repeats to tell a real drop from noise.
The full build, with a trace schema, code graders, a judge calibration script, and a pipeline workflow, is in Evals for Engineers: Build the Harness That Runs on Every Change. How to keep a judge honest over time is in The Threshold Card: Tune the Judge Before You Trust the Score, and Date the Re-Tune. Why an agent should stop when its checker goes silent is in Shopify's Attack Agent Dies When Its Judge Goes Quiet. Most Agents Keep Going..