Problem
Motorway, a UK online car marketplace, built a natural-language stock search agent for dealers (about 1,500 concurrent users at peak). It has eight tools: structured filters and vector similarity search. The agent sounds confident even when it picks the wrong tool, misreads a query with several constraints, drops a refinement in a later turn or answers differently on a repeat run. Before the evaluation pipeline, tool selection accuracy was 87%, so 1 in 8 queries returned wrong results, with 12 production incidents a month and about 4 hours to detect one.
Example from the article: "I'm looking for an older VW" can fail where "Volkswagen Golf 7-12 years old" works.
Solution in brief
Evaluate the agent in three layers (tool usage, reasoning, output quality), each with a pass threshold that blocks deployment, and gate on pass^k over several trials. After release, sample 1–5 percent of live traffic through online evaluators and turn every failure into a new test case.
Questions this case answers
- How to gate releases of a non-deterministic, tool-calling LLM agent on measurable quality thresholds, when a single test run proves little and a fluent answer can hide a wrong tool call
- How to monitor the quality of a live LLM agent on sampled traffic and feed detected failures back into the offline test suite
- How to prove that a tool-calling LLM search agent works reliably before and after release?
- How to block a release of an LLM agent when tool selection, reasoning or answer quality drops?
Tools and methods
- Agent evaluation (strands-agents-evals) — test cases with expected output and tool trajectory
- LLM-as-a-judge (Claude Sonnet 4.6) — scores reasoning and output
- Evaluation regression gate — thresholds that block the release
- Shadow mode and A/B test — candidate on real traffic before rollout
- Amazon Bedrock AgentCore Evaluations — online and on-demand scoring of live traces
- OpenTelemetry — traces from the runtime to evaluators
Google or a one-time email code. No password.