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 DO | WHAT IT HIDES |
|---|---|
| Track a single headline accuracy score | The 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 runs | True 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 truth | Run-to-run variance in both the agent and the LLM judge. Teams end up shipping on statistical noise. |
| Accept planning scores at face value | An 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.
| LAYER | WHAT IT MEASURES |
|---|---|
| Instructions | Does the agent obey format, scope and policy constraints? |
| Planning | Is the proposed plan sound, and does it select the right tools? |
| Actions | Do tool calls succeed on the first try? What is the retry count, latency and error-handling behaviour? |
| Context | Did retrieval pull the right records, and is the response grounded in them with accurate citations? |
| Outcomes | Was 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.
- 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.
- Score all five layers on every run. Compute one metric per layer from the table above whenever the golden set executes.
- 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.
- Run multiple trials per evaluation. Report both the mean and the spread across runs, treating minor single-run swings as noise until they repeat.
- 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.
- 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.