Design a diagnostic eval for an agentic workflow with 62% task success across 5 tools and 10+ steps that reveals WHY tasks fail, not just whether they pass.
Design a diagnostic eval for an agentic workflow with 62% task success across 5 tools and 10+ steps that reveals WHY tasks fail, not just whether they pass.
Three scoring layers (step-level correctness, trajectory efficiency, backward error attribution) plus a failure taxonomy that tells engineering exactly where to invest to move the 62% success rate.
Imagine a cooking competition where contestants follow a 10-step recipe using 5 different kitchen tools. If 38% of dishes taste bad, the judges need to know why. Did the chef pick the wrong tool (used a blender instead of a mixer)? Did they use the right tool with wrong settings (oven at 500 degrees instead of 350)? Did they misread the timer? By watching each step and noting where things first went wrong, you can tell the chef exactly what to practice instead of just saying the dish failed.
Detailed answer & concept explanation~9 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Open by framing the problem: 62% pass rate, PM wants to know why 38% fail. Walk the three scoring layers in order: step-level correctness (deterministic plus semantic), trajectory efficiency (oracle comparison), error attribution (backward trace). Present the failure taxonomy with approximate percentages and map each category to a specific engineering fix. Describe the two diagnostic views (per-tool, per step position). Reference SWE-bench, TAU-bench, AgentBench as proof that trajectory scoring works at scale.
Real products, models, and research that use this idea.
- SWE-bench Verified evaluates software-engineering agent trajectories with per-step analysis of code edits, using test suite execution as the deterministic correctness check and trajectory length as an efficiency metric.
- TAU-bench scores customer-service agent dialog per turn, checking rule-following and tool-call validity at each step, directly implementing the step-level correctness layer described here.
- AgentBench evaluates agents across 8 environments with per-environment trajectory analysis, demonstrating that the three-layer scoring pattern scales across diverse tool sets.
- Anthropic's internal agent evaluation pipeline uses backward error attribution to trace task failures to root-cause steps, with a failure taxonomy that directly informs agent improvement priorities.
- Production agentic workflows at scale in 2026 commonly instrument per-tool success rates and per step position failure rates as the primary diagnostic signals for agent quality improvement.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow do you build the oracle trajectory for tasks where the optimal solution is not obvious?
QThe agent calls tool B correctly at step 4 but then misinterprets the result at step 5. How does the LLM-as-judge score step 5?
QThe failure taxonomy shows 33% wrong tool selection. How do you determine whether to fix tool descriptions versus reducing the total tool count?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Scoring only the final task outcome and reporting a single pass/fail number. This tells the PM that 38% fail but not whether the failures are concentrated in one tool, one step position, or one error type, making it impossible to prioritize fixes.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.