The problem
Switching an AI agent to a new or cheaper model is risky. A model can sound fluent and still say "done" without calling the tool that does the work, give medical advice it shouldn't, or forget what the caller said two turns earlier. Normal unit tests don't catch this.
What I built
An evaluation harness that runs real conversation scenarios against any candidate model and checks behaviour rather than wording. Each scenario states what must happen: the right tool was called with the right arguments, nothing was confirmed before a tool succeeded, emergencies were escalated, and the answer stayed grounded in the business's own information.
How it is used
36 scenarios covering bookings, cancellations, rescheduling, FAQs, escalations and multi-turn context
Side-by-side comparison of models on pass rate, latency and cost
Runs offline against a fake model in CI, so behaviour regressions fail the build
New models go out to a small share of traffic first (canary), with a one-step rollback
Result
Model changes became a measured decision instead of a guess, and false "action completed" claims are caught before they reach a real caller.
My role
I designed the scenarios and checks, built the runner and CI integration, and set up the canary rollout.
0 likes · 0 views · Nov 30, 2026
Test harness that checks an AI agent's behaviour across 36 scenarios, compares models and blocks regressions in CI before release.