AIToday
Large Language ModelsAI Coding AssistantsHacker NewsPublished: Jul 24, 2026, 06:00 JST

Motorway & AWS cut AI agent errors 8× with production evaluation blueprint

Motorway & AWS cut AI agent errors 8× with production evaluation blueprint

3 Key Points

  1. What happened

    Motorway, a UK online car marketplace, partnered with AWS to build an evaluation pipeline for its AI dealer stock search agent using the Strands Agents SDK and Amazon Bedrock AgentCore. The pipeline reduced incorrect query results from 1 in 8 to 1 in 50 and cut issue detection time from hours to minutes.

  2. Why it matters

    Production AI agents handling real transactions (Motorway sees ~1,500 concurrent users at peak) need reliable evaluation beyond standard language model metrics. The three-layer framework—tool usage (>95% pass), reasoning (>85%), and output quality (>90%)—catches errors before deployment that synthetic tests alone miss, protecting user trust when agents make autonomous decisions.

  3. What to watch

    The companion repository provides a deployable blueprint using a five-stage pipeline with quality gates; initial deployment takes 30–45 minutes, customization 2–3 hours. The evaluation suite costs approximately $5–10 in Amazon Bedrock inference charges for the sample; production monitoring costs vary by sampling rate.

Not sure about something? Ask the AI

Summaries like this, in your inbox every morning.

Context & Analysis

Traditional LLM evaluation metrics—coherence, factual accuracy, response relevance—do not adequately assess AI agents that orchestrate multiple tools and take autonomous actions. Agent evaluation must verify task completion across multi-step workflows, correct tool selection and parameter passing, reasoning coherence under changing conditions, and reliability consistency (since non-deterministic outputs make single-trial testing unreliable). Motorway's specific challenge illustrates this gap: a query like "Petrol, Hybrid and electric cars up to 5 years old" requires the agent to parse multiple constraints correctly, and semantic search misinterpretations or context drift in multi-turn conversations directly erode dealer trust when real money is on the line.

The solution Motorway and AWS implemented combines two evaluation phases mapped to the GenAIOps lifecycle. Build-time evaluation using strands-agents-evals catches issues before deployment, while production monitoring via Amazon Bedrock AgentCore Evaluations catches failures that synthetic tests miss. The three-layer framework—Layer 1 validating tool usage (>95%), Layer 2 assessing reasoning (>85%), Layer 3 measuring output quality (>90%)—requires all layers to pass before a release proceeds. A key insight for handling LLM non-determinism is the pass^k metric (probability of succeeding in k consecutive trials), which matters far more than pass@k for customer-facing agents; an agent with 75% per-trial success rate has only a 42% chance of passing three consecutive trials, unacceptable when dealers expect consistent quality on every interaction.

FAQ
What metrics does the evaluation pipeline use to measure agent reliability?
The pipeline uses three grader types: code-based deterministic graders for Layer 1 (tool selection and parameter passing), LLM-as-judge evaluators (Claude Sonnet 4.6) for Layers 2–3 (reasoning and output quality), and human review for calibration. For handling non-determinism, it employs pass^k (probability of succeeding in k consecutive trials), which is critical for customer-facing agents—an agent with 75% per-trial success has only 42% chance of passing three consecutive trials.
What are the pass/fail thresholds for each evaluation layer?
Layer 1 (Tool Usage) requires >95% threshold, Layer 2 (Reasoning) requires >85% threshold, and Layer 3 (Output Quality) requires >90% threshold. All three layers must pass before deployment proceeds; failure in any layer blocks the pipeline.
How much does it cost to run the evaluation pipeline?
Running the sample evaluation suite costs approximately $5–10 in Amazon Bedrock inference charges. Production monitoring costs vary based on sampling rate.

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • Arcee AI tops $1B valuation with Series B for open-weight modelsSiliconANGLE AI · 2h ago
  • OpenAI flags six new AI agent incidents, adds misalignment reportingSiliconANGLE AI · 2h ago
  • Huawei: AI agents to drive 90% of token traffic by 2035DIGITIMES Asia · 2h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleHand-coded AI weights match trained models' scaling efficiency