← Engineering notes
Evaluation · Advisory note

Measure an agent upgrade across five layers before you ship it

An upgrade to a support triage agent improved its tool selection while quietly making it three times slower and less consistent. A single headline accuracy score would have celebrated the win and hidden the regression. Here is how to set up a golden set and a five-layer scorecard so your team sees every trade-off before customers do.

For: CTOs, heads of engineering, product leadsRelated engagement: AI Reliability Audit, Managed AI Operations

Why one accuracy figure misleads you

A production triage agent has to be fast, predictable and auditable at the same time. Simple single-pass agents typically stumble in three places: ambiguous tickets that straddle categories, picking the wrong downstream tool, or calling the right tool with malformed arguments.

When an engineering team upgrades the prompt, adds a reasoning step or swaps the base model, they usually check one overall pass rate or eyeball a dozen sample tickets. That tells you whether the change helped the happy path. It tells you almost nothing about what the change just did to latency, retry loops, token cost or run-to-run stability.

Evaluation habits that hide regressions

Across the teams we audit, four evaluation shortcuts show up repeatedly whenever an agent change goes wrong in production.

WHAT TEAMS DOWHAT IT HIDES
Track a single headline accuracy scoreThe trade-off between decision quality and operational efficiency. A change can lift accuracy on edge cases while doubling latency and variance.
Test with ad-hoc prompts that shift between runsTrue version-to-version regressions. If the test inputs changed alongside the agent, the scores cannot be compared.
Treat one pass at temperature 0 as ground truthRun-to-run variance in both the agent and the LLM judge. Teams end up shipping on statistical noise.
Accept planning scores at face valueAn inflated score caused by the evaluator awarding full marks when the agent skipped emitting a plan altogether.

In our reference build, adding explicit planning and self-correction lifted tool selection and argument quality, cut step efficiency by roughly two-thirds, and slightly lowered overall task completion. A single accuracy metric would have green-lit the release and left operations to discover the latency spike in production.

Score every run across five layers

We evaluate agentic workflows across five distinct layers, each with its own metric, so an architectural change that sharpens reasoning at the expense of action efficiency shows up clearly on a single page.

LAYERWHAT IT MEASURES
InstructionsDoes the agent obey format, scope and policy constraints?
PlanningIs the proposed plan sound, and does it select the right tools?
ActionsDo tool calls succeed on the first try? What is the retry count, latency and error-handling behaviour?
ContextDid retrieval pull the right records, and is the response grounded in them with accurate citations?
OutcomesWas the customer’s problem solved factually, safely and within the target SLA?

Putting this scorecard into CI takes six practical steps, starting before anyone edits a prompt.

  1. Freeze a representative golden set. Pull real historical tickets (including messy edge cases), agree the expected tool calls and outcome for each, and lock the dataset under version control.
  2. Score all five layers on every run. Compute one metric per layer from the table above whenever the golden set executes.
  3. Map each layer to an operational KPI. Connect technical layers to routing accuracy, escalation quality, cost per ticket and SLA compliance so engineering and leadership read the same scorecard.
  4. Run multiple trials per evaluation. Report both the mean and the spread across runs, treating minor single-run swings as noise until they repeat.
  5. Fail closed on missing telemetry. If the planning or citation layer emits nothing to grade, record it as a coverage gap rather than a passing score.
  6. Gate every prompt, model and tool change in CI. An unscored change to a prompt or tool schema is an untested deployment.

Our recommendation

If your team cannot show what last week’s prompt or model change did across each of the five layers, you are flying blind. Standing up a frozen golden set and a layered CI scorecard takes one to two weeks and pays for itself on the very first regression it blocks.