Why Single-Turn Accuracy Hides Multi-Step Agent Failures
A model that scores 90% on static multiple-choice questions can still break a production workflow on turn four. Once an agent calls real APIs, edits files, or passes state to another sub-agent, failures cluster around environment drift, tool-schema mismatches, silent partial completions, and infinite retry loops.
Auditing real agent traces highlights a second surprise: broken evaluation harnesses often masquerade as model failures. Container timeouts, leaked temporary files, and brittle regex graders can swing scores dramatically until traces and Docker sandboxes are versioned like production code.
- #1 Harness & Sandbox Timeouts: Flaky containers or network stalls abort valid tool chains and corrupt benchmark scores.
- #2 Silent Partial Tool Execution: Agent reports 'done' after a tool returned an empty list or truncated PDF.
- #3 Schema & Type Drift: Malformed JSON arguments break downstream tool calls mid-trajectory.
- #4 Infinite Error-Retry Loops: Model repeats the exact same failing command until hitting token or 5-hour quota caps.
- #5 Multi-Agent Handoff Conflict: Swarm workers overwrite shared state or misread upstream assumptions.
Failure Modes #6 Through #10 & The Open-Source Eval Stack
The remaining five production failures hit retrieval, context, and security: stale RAG chunks overriding newer API docs, context rot when verbose logs push system constraints out of focus, prompt injection hidden in scraped web pages, silent model-router regressions after provider updates, and unverified numeric claims.
Catching all ten in CI requires combining trace observability (langfuse/langfuse at 37.8k stars or Arize-ai/phoenix at 12.4k), automated agent auditing (ifixai-ai/iFixAi at 47.3k stars), assertion suites (confident-ai/deepeval at 19.7k), and red-team scanners (promptfoo/promptfoo at 27.7k and NVIDIA/garak at 10.2k).
| Rank & Failure Mode | How It Breaks Production | Eval Check That Catches It | Open-Source Tool |
|---|---|---|---|
| #1 Harness / Timeout Bug | Flaky Docker env aborts valid run | Deterministic sandbox healthcheck | ifixai-ai/iFixAi (47.3k) |
| #2 Silent Empty Result | Agent claims success on empty output | Post-run state & non-empty assert | confident-ai/deepeval (19.7k) |
| #3 Tool Schema Drift | Invalid JSON args crash tool runner | Strict Pydantic / JSON schema gate | langfuse/langfuse (37.8k) |
| #4 Infinite Retry Loop | Repeats failed call till quota hits | Loop detector + max step budget | mlflow/mlflow (29.0k) |
| #5 Swarm State Collision | Parallel agents overwrite same file | Workspace isolation & diff check | comet-ml/opik (23.5k) |
| #6 Stale RAG Citation | Old doc overrides current spec | Date-pinned retrieval assertions | Arize-ai/phoenix (12.4k) |
| #7 Context Bloat / Rot | Long logs bury system rules | Token budget + compression eval | headroomlabs-ai/headroom (80.8k) |
| #8 Indirect Prompt Inject | Scraped HTML hijacks tool calls | Adversarial red-team CI suite | promptfoo/promptfoo (27.7k) |
| #9 Silent Router Shift | Model snapshot change breaks format | Pinned snapshot regression run | NVIDIA/garak (10.2k) |
| #10 Unverified Numbers | Hallucinated prices or counts | Regex/table match vs source JSON | oumi-ai/oumi (9.4k) |
Shipping an 8-Point Continuous Agent QA Gate
Treat evaluation tasks, grader scripts, and failure traces with the same Git discipline as application code. Run a fast 20-case deterministic trajectory suite on every prompt or model change, log every production failure as a permanent regression test, and run periodic red-team scans on any agent that browses untrusted web pages.
Checking actual workspace or database state after the agent finishes—rather than asking an LLM judge if the agent sounded confident—eliminates the majority of silent production bugs.
def grade_agent_run(trace: dict, final_state: dict) -> list[str]:
errors = []
if trace.get('steps', 0) > 12:
errors.append('Exceeded step budget (possible retry loop)')
if trace.get('schema_failures', 0) > 0:
errors.append('Tool JSON schema drift detected')
if not final_state.get('artifact_verified'):
errors.append('Post-run environment check failed')
return errors
Whenever a production user hits an agent failure, copy the sanitized trace directly into your golden regression dataset before patching the prompt.