ZH-RESEARCH-003 · AI engineering · Machine learning

Why AI Agents Fail: A 1,000-Task Reliability and Recovery Benchmark

Status: PlannedPlan published By Zubair Hussain

Experiment design: 1,000 tasks run by single and multi-agent setups, a fault injector adds tool errors and timeouts, a failure predictor triggers recovery, and success rate, precision, recall and cost are measured.
Experiment design. No results are shown until they have been measured.

The question

AI agents produce wrong outputs, call the wrong tools, exceed budgets and fail midway through multi-step work. How can developers catch those failures before they reach production users?

Abstract

Agent demos show the runs that worked. Production sees the rest. This benchmark runs 1,000 controlled tasks across single-agent and multi-agent setups, injects reproducible failures, and compares the same systems with and without a failure predictor and automatic recovery. The dataset, evaluation code and results will be published together.

Hypothesis

Signals available during a run (tool error patterns, token spend and step count) predict most failures early enough to recover, and a token budget with targeted retries lowers cost per successful task.

Experimental setup

  • 1,000 scripted tasks with known correct outcomes: research, data extraction, multi-step tool use and code edits.
  • Single-agent and multi-agent configurations using the same models and tools.
  • A fault injector for invalid tool responses, API timeouts, context overflow and misleading inputs, each seeded so every run can be repeated.
  • Full execution logs for every step: prompts, tool calls, tokens, latency and outcome.

Method

  1. Run every task with no guardrails to set the baseline failure rate.
  2. Train a failure predictor on half of the logged runs and test it on the other half.
  3. Re-run with retries, a token budget and production guardrails switched on.
  4. Compare success rate, recovery latency and cost per successful task.
  5. Publish the dataset, the evaluation code and every result, including failures.

Test cases

IDExperimentMeasurementResult
TC-021Single-agent executionTask success ratePending
TC-022Multi-agent executionCoordination failuresPending
TC-023Invalid tool responsesError recoveryPending
TC-024Hallucinated outputsFactual error ratePending
TC-025Context limitationsInformation retentionPending
TC-026API timeout simulationRecovery latencyPending
TC-027Agent failure predictionPrecision, recall, F1Pending
TC-028Automatic retriesRecovery success ratePending
TC-029Token-budget enforcementCost per successful taskPending
TC-030Production guardrailsCritical failure ratePending

Results

Not measured yet. Results, the raw data as CSV and the source code will be published here once the experiment has run, including any test case that fails.

Work with me

Schedule a technical consultation

Facing the same problem in your own product? I can run the same tests on your stack and fix what they find.

All research