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
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
- Run every task with no guardrails to set the baseline failure rate.
- Train a failure predictor on half of the logged runs and test it on the other half.
- Re-run with retries, a token budget and production guardrails switched on.
- Compare success rate, recovery latency and cost per successful task.
- Publish the dataset, the evaluation code and every result, including failures.
Test cases
| ID | Experiment | Measurement | Result |
|---|---|---|---|
| TC-021 | Single-agent execution | Task success rate | Pending |
| TC-022 | Multi-agent execution | Coordination failures | Pending |
| TC-023 | Invalid tool responses | Error recovery | Pending |
| TC-024 | Hallucinated outputs | Factual error rate | Pending |
| TC-025 | Context limitations | Information retention | Pending |
| TC-026 | API timeout simulation | Recovery latency | Pending |
| TC-027 | Agent failure prediction | Precision, recall, F1 | Pending |
| TC-028 | Automatic retries | Recovery success rate | Pending |
| TC-029 | Token-budget enforcement | Cost per successful task | Pending |
| TC-030 | Production guardrails | Critical failure rate | Pending |
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.