Agent Reliability Lab
Chaos testing for AI agents: inject real tool failures, check invariants and block regressions in CI before production does
Overview
Agent Reliability Lab (ARL) asks the question most agent evals skip: what happens to your agent when the software around it fails? It sits between an agent and its real tools, injects deterministic faults, checks stateful invariants and records evidence you can replay.
Problem
Tool-using agents fail in ways prompt-level evals never see: a refund commits but the response times out and the agent retries it, 429 storms, changed JSON schemas, runaway tool loops that burn tokens, and prompt injection hidden inside tool output.
Solution
A tool proxy that injects seeded faults (timeouts after the side effect, HTTP 429/500/503, malformed payloads), a typed invariant engine with no LLM-as-judge, adversarial scenario fuzzing, paired comparisons between agent versions and fail-closed CI gates.
Architecture
- 1Tool proxy and fault injector in front of real APIs and databases
- 2Invariant engine with 13 safe operators over a parsed JMESPath AST (no eval, no LLM verdicts)
- 3Scenario fuzzer that builds schema-valid adversarial variants and compound fault chains
- 4Deterministic replay of any failure from its seed, with step-by-step traces
- 5MCP server so Cursor or Claude can run scenarios; adapters for MCP agents like Career-Agents
Technical Challenges
- Making chaos deterministic: the same seed must reproduce the same failure every time.
- Judging pass/fail without an LLM, so verdicts never change between runs.
Results
- 185 passing tests with 85% coverage and mypy strict.
- CI gates that fail closed when an invariant breaks.