2026-12-02 · Atharva
A Reproducible Evaluation Protocol for Tool-Using AI Agents
Most agent evaluation is not reproducible. Two runs of the "same" benchmark differ because the environment carried state from the last trial, the model provider quietly changed, the budget was not fixed, or the result was a single flaky trial reported as a number. When the conditions move, the score is not a measurement. It is an anecdote.
This post writes down a protocol that makes agent evaluation reproducible, explains why each part matters, and compares it honestly to the open-source frameworks (Inspect AI and Harbor) that already let you build something similar in code. AgentClash is one implementation of this protocol; the method is the point.
Reproducibility is about conditions, not identical outputs
A tool-using agent is stochastic. You will not get identical transcripts twice, and you should not want them. Reproducible evaluation does not mean identical outputs. It means identical conditions plus a statistical treatment of variance, so that a score difference reflects the agent rather than the environment.
That distinction drives every part of the protocol below.
The protocol
1. Freeze the task specification
A task is not a prompt string. It is a version-controlled bundle: the instruction, the input cases, the allowed tools, the network policy, the time and token budget, the expected artifacts, and the scoring specification. AgentClash calls this bundle a challenge pack, defined in YAML and validated before it can run. If any of those fields can drift between runs, the comparison is not reproducible, so all of them are frozen and hashed with the run record.
2. Give every trial a fresh, isolated environment
Shared state is the most common source of irreproducibility: a file left by the previous trial, a warm package cache, a mutated database, a lingering process. The fix is a fresh, isolated environment per trial. AgentClash runs each agent in its own Firecracker microVM (via E2B), so every trial boots from the same clean image with real files, a real shell, and a real network, and nothing survives the trial. Isolation is also a safety property: untrusted model-generated code never shares a kernel with the host or with another candidate.
3. Race candidates on the same task, at the same time, on the same budget
To compare two agents, run the identical frozen task against both, concurrently, under the same tool set, the same network policy, and the same time and cost budget. Concurrent same-task races remove the "it ran on a different day against a different provider snapshot" confound and make cost and latency first-class, comparable outputs rather than afterthoughts.
4. Capture the full trajectory, not the final string
Two agents can produce similar final text via completely different paths. One picks the right tool, verifies, and stays in scope. The other hallucinates a file, skips the failing test, and burns twice the tokens. Reproducible scoring needs the ordered event history: every tool call, observation, error, retry, artifact, and terminal state. AgentClash records this as the replay, and the score is built from it.
5. Score deterministic-first, from four vantages
A single grader has a single blind spot, and an LLM judge alone is not reproducible. Score each trajectory from four vantages and aggregate with consensus: deterministic validators (file contents, JSON contracts, code execution results), numeric metrics (latency, tokens, tool-call count, cost, validator pass rate), behavioral signals (tool-choice efficiency, error recovery, scope discipline), and LLM judges reserved for genuinely subjective rubrics. Deterministic and numeric evidence carries the verdict so a flaky judge cannot sink a run that passed every objective check. The full breakdown is in how AgentClash scores trajectories.
6. Run N trials and report pass^k, not a single pass
One trial of a stochastic agent is a coin flip. Run each candidate N times on the frozen task and report reliability, not a single success. pass@k and pass^k capture different things: pass@k asks "did it succeed at least once in k tries," while pass^k asks "did it succeed every time," which is what a release gate actually cares about. Reporting the trial count and the variance alongside the score is what makes a number reproducible enough to defend.
7. Promote escaped failures into the suite
Reproducibility has to hold over time, not just within one run. When a candidate fails in production, freeze that exact failure into a new regression case so the suite grows with every escaped defect. AgentClash turns failed runs and imported OTel-compatible traces into permanent regression cases that replay against every future candidate in CI. The benchmark gets harder as the agent gets more deployed, which is the opposite of benchmark decay.
How this compares to Inspect AI and Harbor
This protocol is not proprietary, and you can build all of it in code today with open-source frameworks. Being fair about that matters:
- Inspect AI (UK AI Security Institute) is a composable evaluation framework with real sandboxes (Docker, Kubernetes, Modal, Proxmox, EC2), 200+ ready-made evals, scorers, and multi-agent primitives. It covers steps 2, 4, and 5 well, and you can assemble the rest yourself in Python.
- Harbor (from the creators of Terminal-Bench) runs any agent on any model across parallel cloud sandboxes, records ATIF trajectories, and generates RL rollouts. It is excellent for steps 2, 3, and 6 at benchmark scale.
The difference is altitude, not capability. Inspect AI and Harbor give you parts to build a harness; AgentClash productizes the whole protocol (frozen packs, same-task Firecracker races, replay and scorecards, pass^k, CI gates, and failure-to-regression promotion) behind a CLI and an MIT-licensed codebase, so a team can run reproducible release gates without writing and maintaining bespoke harness code. If you already have a harness you love, keep it and steal the protocol. If you want the protocol running this week, that is the gap AgentClash fills.
Honest limitations
- Nondeterminism is inherent. The protocol controls conditions and treats variance statistically; it does not eliminate it. Always report N and the spread.
- The sandbox provider is part of the conditions. A Firecracker microVM, a gVisor container, and a bare Docker container are different environments. Pin the provider and image, and disclose them, or "reproducible" only holds on your machine.
- Model providers change under you. Freeze model versions where the provider allows it, and timestamp every run, because "the same model" in March is not "the same model" in June.
- Concurrency costs money. Same-task races across many candidates and N trials multiply spend. Budget caps are part of the protocol precisely so cost stays a measured output rather than a surprise.
Running it
The reference implementation ships as an open-source CLI on npm (npm i -g agentclash) and as the agentclash Go module on GitHub. Introspect every command, flag, and status lifecycle as JSON with agentclash schema --json, author a pack, then start from the quickstart and wire CI/CD agent gates. The protocol is the deliverable; the tool is just one way to run it.
Explore