Comparative Analysis of Agent Evaluation Frameworks: Stability, Detection, and Discovery in Enterprise Analytics Agents: what it means for business leaders
An Amazon team compared three ways of testing LLM analytics agents and found that a judge given the agent's full execution trace catches about as many failures as a text-only judge with roughly a fifth of the false alarms.
1. What the method is
This is a comparative study, not a new algorithm. Six Amazon authors ran three agent evaluation frameworks against the same two supply chain analytics agents and measured each on three questions: how repeatable its verdicts are, how well it detects failures already labelled by experts, and how many previously unknown failures it turns up. The frameworks stand for three paradigms. Strands Evals is an LLM judge that reads the agent's full OpenTelemetry execution trace. PromptFoo is an LLM judge that sees only the response text plus injected context strings, and it also generates adversarial red-team prompts. Agenta applies deterministic string heuristics with no model calls. The central finding is that the information the evaluator can see determines its quality more than anything else, and the authors recommend running two frameworks together: trace-based judging for functional correctness and red-teaming for security.
2. Why the method was developed
Analytics agents write SQL, call tools and summarise results over sensitive business data, and their worst failures are quiet ones: a query that is syntactically valid, runs without error and returns the wrong rows or none. The authors say most teams still rely on ad hoc spot-checking, and in this study the human reviewer initially passed 9 of 72 test cases, 12.5 percent, that were in fact failures. Three evaluation paradigms have emerged, LLM judges, deterministic checks and hybrids, but nobody had compared them systematically on agents for stability, detection and discovery together. Earlier comparisons varied the judging method rather than what the judge is allowed to see. Earlier consistency measures such as intraclass correlation also break down when most cases score near the ceiling, which is the normal situation for a reasonably well-behaved agent, so the team needed different stability measures as well.
3. Who should care
Engineering leaders who own agent products should read this as guidance on where to spend evaluation effort: instrument agents so that traces are captured, because the judge's value depends on it. Data and analytics leaders who put natural-language query agents in front of business users are the direct audience, since the failures found here are wrong numbers delivered confidently. Security and risk teams should note that the adversarial run exposed schema metadata, storage paths and system prompt content that functional testing never touched. Release and platform teams get a caution: the authors judge LLM-based verdicts not reliable enough to gate deployments automatically. Whoever holds the budget should know the three frameworks took thirty minutes to two hours to set up on the authors' stack, and that a mid-tier judge model matched a frontier one in their small check at about a fifth of the cost.
4. How the method works
Each agent was run once per test case and its execution trace frozen, so all three frameworks scored identical behaviour. Five requirements were mapped onto each framework: groundedness, intent, answer accuracy, tool correctness and SQL correctness. The trace-based judge reads the actual tool calls and returned data, so it can check a claim against what the tool really produced and see which tools were or were not called. The text-only judge receives the answer and context strings, including the SQL text, but only metadata about tool results. The deterministic layer uses token overlap, edit distance, set comparison and regular expressions. Stability was measured as the average standard deviation of scores within a case across repeated runs, with 0.15 as the threshold on a 0 to 1 scale, and as decision consistency, the share of cases where every repetition gives the same pass or fail verdict.
5. How it was evaluated
The two agents come from a retail supply chain forecasting system, one for category-level demand forecasts and one for product-level inbound lead times, each with nine tools and both running on Claude Sonnet 4.5. This was a research setting with frozen traces, not a live deployment. The stability phase used 20 expert-prepared cases per agent, three judge models (Claude Sonnet 4.6, Claude Haiku 4.5 and Qwen3 32B) and five repetitions, for 5,605 evaluations. The detection phase used 36 cases per agent across six failure categories, labelled on five dimensions by one primary domain expert per agent with cross-review on ambiguous cases, scored three times with the median taken. The discovery phase added 20 generated functional cases per agent from Strands and 42 to 48 adversarial cases per agent from PromptFoo, with the same expert classifying each flagged item as novel, known or a false positive. The total was 11,700 evaluations.
6. How it performed
On the 72 labelled cases, the trace-based judge reached F1 0.90 with 88 percent precision, 91 percent recall and a 10 percent false positive rate; the text-only judge had similar recall at 88 percent but a 49 percent false positive rate, and the deterministic checks flagged everything. The gap came from trace-dependent dimensions: tool correctness recall was 89 percent against 11 percent. Thirty-five of 36 configurations met the stability threshold, yet decision consistency averaged only 82 to 92 percent for the LLM judges, which the authors consider too low for automated release gating. Discovery produced 24 novel failures with no overlap: 9 functional, including a SQL bug that silently returned zero rows, and 15 security disclosures. The limits are real: two agents from one company, one primary labeller per agent, nine labels revised after the evaluators flagged them, a framework native to the authors' own stack, and no test of whether these judges detect regressions. Our call is to pilot: capture traces and add trace-based judging plus red-teaming to agent development, without making either a release gate. (Source: arXiv 2611.14493, 2026)
← Back to dossier index