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.
Dark-mode Swiss industrial illustration of verified pipeline nodes and guardrail shield
Visual: Diagnostic trace checkpoints and agent guardrail shielding (OnlyAIMatters)

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).

Agentic evaluation benchmark and CWE failure audit chart
Reference: Multi-stage agentic evaluation and vulnerability tracking
Top Open-Source Evals & Observability GitHub Repos (k Stars) Source: OnlyAIMatters Week 47 GitHub Radar (assets/data/repos.json)
ifixai-ai/iFixAi47.3k
langfuse/langfuse37.8k
mlflow/mlflow29.0k
promptfoo/promptfoo27.7k
confident-ai/deepeval19.7k
Rank & Failure ModeHow It Breaks ProductionEval Check That Catches ItOpen-Source Tool
#1 Harness / Timeout BugFlaky Docker env aborts valid runDeterministic sandbox healthcheckifixai-ai/iFixAi (47.3k)
#2 Silent Empty ResultAgent claims success on empty outputPost-run state & non-empty assertconfident-ai/deepeval (19.7k)
#3 Tool Schema DriftInvalid JSON args crash tool runnerStrict Pydantic / JSON schema gatelangfuse/langfuse (37.8k)
#4 Infinite Retry LoopRepeats failed call till quota hitsLoop detector + max step budgetmlflow/mlflow (29.0k)
#5 Swarm State CollisionParallel agents overwrite same fileWorkspace isolation & diff checkcomet-ml/opik (23.5k)
#6 Stale RAG CitationOld doc overrides current specDate-pinned retrieval assertionsArize-ai/phoenix (12.4k)
#7 Context Bloat / RotLong logs bury system rulesToken budget + compression evalheadroomlabs-ai/headroom (80.8k)
#8 Indirect Prompt InjectScraped HTML hijacks tool callsAdversarial red-team CI suitepromptfoo/promptfoo (27.7k)
#9 Silent Router ShiftModel snapshot change breaks formatPinned snapshot regression runNVIDIA/garak (10.2k)
#10 Unverified NumbersHallucinated prices or countsRegex/table match vs source JSONoumi-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.

python
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
Builder Note

Whenever a production user hits an agent failure, copy the sanitized trace directly into your golden regression dataset before patching the prompt.