Skip to main content
December 4, 2026

One Green Run Is Not a Benchmark: How to Repeat LLM and Agent Evals

One Green Run Is Not a Benchmark: Repeat Your Evals

How many times should you repeat an LLM eval? More than once, and usually at least 10 times per task. A single pass tells you the task is possible for that model, not that it is reliable. To judge reliability, run the same task with a fixed prompt and setup N times from a clean environment. Then report the pass rate with a confidence interval, pass@k and pass^k, and count harness and infrastructure failures apart from model failures.

The story is common. A small browser task fails on every model anyone tries. A new model passes it on the first try, and nobody runs it again. One sample cannot tell you whether the model got better, the harness got luckier, or the site under test changed. The protocol below turns that green run into a number you can defend.

Why One Run Proves So Little

Model outputs vary between runs, even when you try to pin them down. Anthropic's guide to agent evals puts it simply: "Because model outputs vary between runs, we run multiple trials to produce more consistent results."

Temperature 0 does not save you. In Defeating Nondeterminism in LLM Inference (Thinking Machines, September 2025), Horace He sent the same prompt to Qwen3-235B 1000 times at temperature 0 and got 80 unique completions. The cause is server load: batch size changes from request to request, and common inference kernels are not batch-invariant. You do not control the batch size of a hosted API.

Then there is the math. Here is the 95% Wilson interval for the true pass rate after a perfect streak:

Observed 95% interval for the true pass rate
1 of 1 21% to 100%
3 of 3 44% to 100%
10 of 10 72% to 100%
20 of 20 84% to 100%
7 of 10 40% to 89%

One green run fits a model that passes one time in five. Three green runs still fit a coin flip. Ten is the smallest number in this table that rules out "fails half the time".

Step 1: Freeze Everything Except the Model

You can only blame the model for a change if nothing else changed. Before the first run, write a manifest and commit it next to the results:

  • The exact prompt and system prompt, by file hash.
  • The harness version: agent code, tool definitions, the API client or proxy and its version.
  • Model ID, temperature, reasoning effort, and max output tokens.
  • The environment: container image digest, browser version and viewport for browser tasks, CPU and memory limits.
  • The grader: the script or judge prompt, by hash.

Resource limits belong in the manifest. Anthropic's infrastructure noise study (February 2026) found that "the gap between the most- and least-resourced setups on Terminal-Bench 2.0 was 6 percentage points (p < 0.01)." The same agent, on a different runner, got a different score.

Step 2: How Many Times to Repeat an LLM Eval

Use the table above as a guide:

  • 3 runs per task to triage a new model or catch a broken setup.
  • 10 runs per task before you call a task "solved" or switch a production model.
  • 20 or more per task when two models are close, or when the task gates an action in production.

Each run must start from a clean environment. The Anthropic guide warns that shared state makes trials "not independent because they're affected by the same factor". In one case, Claude gained "an unfair advantage on some tasks by examining the git history from previous trials." For browser tasks, the same applies to cookies, local storage and a logged-in profile.

Two tools that repeat for you, per their current CLI docs:

# Inspect AI: repeat each sample 10 times and average the scores
inspect eval browser_task.py --model <provider/model> --epochs 10 --epochs-reducer mean

# promptfoo: run each test 10 times, without the disk cache
promptfoo eval --repeat 10 --no-cache

Inspect's options page also lists pass_at_{k}, pass_k_{k} and at_least_{n} reducers. The promptfoo CLI reference describes --no-cache as "Do not read or write results to disk cache". Drop the cache when you repeat, or you may measure the cache.

Step 3: Report pass@k and pass^k, Not Just Pass Rate

The two metrics answer different questions. From the Anthropic guide: pass@k "measures the likelihood that an agent gets at least one correct solution in k attempts", and pass^k "measures the probability that all k trials succeed."

  • pass@k fits a workflow where a human or a test picks the one good answer from k tries.
  • pass^k fits an SRE agent. On call, the agent gets one try per incident, and the next incident is another try. You want it to be right every time.

Take a task that passes 7 of 10 runs. pass@1 is 0.70. pass@3 is 0.99, which looks great. pass^3 is about 0.34: the chance of three right answers in a row is about one in three. Same data, opposite stories. The τ-bench paper, which introduced pass^k, found agents "quite inconsistent (pass^8 <25% in retail)."

For pass@k, use the unbiased estimator from the Codex paper, as implemented in OpenAI's human-eval repo: 1 - comb(n - c, k) / comb(n, k) for n runs with c passes. The README adds a rule: there is no unbiased way to estimate pass@k when you have fewer runs than k.

Step 4: Put Error Bars on the Numbers

Evan Miller's paper Adding Error Bars to Evals suggests "reporting the standard error of the mean alongside (beneath) the mean when reporting eval scores." When you compare two models on the same tasks, it recommends "the paired version of the standard error estimate": analyze per-task differences, not two totals.

The infrastructure noise study adds a rule of thumb for public leaderboards: "leaderboard differences below 3 percentage points deserve skepticism". A 20-task internal suite is far noisier, so expect larger gaps to be noise too.

Step 5: Split Model Failures From Harness Failures

Not every red run is the model's fault. Tag every failed run with one status before you compute anything:

Status Typical evidence Counts against
infra_error Container OOM-killed, runner timeout, browser crash, provider 5xx or 429 Nobody. Rerun it.
harness_error Tool call rejected by a schema translation layer, output parser failure, page loaded before the agent acted Your harness. Fix it, then rerun the model.
fail Clean run, the agent finished, and the answer was wrong The model, with this prompt.
pass Grader accepted the final state

The Anthropic guide notes that shared factors "can cause correlated failures due to infrastructure flakiness rather than agent performance." We saw the harness case on SRE Bench: as our benchmark update describes, Gemini 3.7 Flash went from zero to first place once we routed around a broken API translation layer. The model never changed. Before you believe that a task "failed on every model", check whether every model went through the same broken layer.

A short script turns tagged runs into the numbers above, with only the Python standard library:

#!/usr/bin/env python3
"""Usage: python3 evalstats.py results.jsonl"""
import json, sys
from collections import defaultdict
from math import comb, sqrt

K, Z = 3, 1.96

def pass_at_k(n, c, k):  # unbiased estimator from the Codex paper
    if n - c < k:
        return 1.0
    return 1.0 - comb(n - c, k) / comb(n, k)

def wilson(c, n, z=Z):
    p, d = c / n, 1 + z * z / n
    centre = (p + z * z / (2 * n)) / d
    half = z / d * sqrt(p * (1 - p) / n + z * z / (4 * n * n))
    return max(0.0, centre - half), min(1.0, centre + half)

runs = defaultdict(lambda: defaultdict(int))
for line in open(sys.argv[1]):
    r = json.loads(line)  # {"task": "...", "trial": 3, "status": "pass"}
    runs[r["task"]][r["status"]] += 1

for task, s in sorted(runs.items()):
    n, c = s["pass"] + s["fail"], s["pass"]  # errors are not model samples
    if n < K:
        print(f"{task}: only {n} valid runs, rerun")
        continue
    lo, hi = wilson(c, n)
    print(f"{task}: {c}/{n} pass@1={c/n:.2f} [{lo:.2f}-{hi:.2f}] "
          f"pass@{K}={pass_at_k(n, c, K):.2f} pass^{K}~{(c/n)**K:.2f} "
          f"infra={s['infra_error']} harness={s['harness_error']}")

For a task with 7 passes, 3 fails and 1 infrastructure error, it prints:

checkout-flow: 7/10 pass@1=0.70 [0.40-0.89] pass@3=0.99 pass^3~0.34 infra=1 harness=0

The pass^k value is the plug-in estimate (pass rate to the power k), as in Anthropic's worked example. For the one-green-run case, the script prints only 1 valid runs, rerun, which is the correct answer.

Troubleshooting

  • All N runs return identical text. You are reading a cache: the eval tool's, your LLM proxy's, or the provider's response cache. Turn it off for repeats (--no-cache in promptfoo).
  • Different results at temperature 0. Expected on hosted APIs, as the Thinking Machines experiment shows. Repeat instead of fighting it.
  • 0 of N on every model. Suspect the task. The Anthropic guide says "a 0% pass rate across many trials (i.e. 0% pass@100) is most often a signal of a broken task, not an incapable agent." Check the grader and the reference answer.
  • Scores moved when you changed runners. Compare CPU and memory limits in the manifest. Specify a guaranteed allocation and a separate hard kill limit per task, as the infrastructure noise study recommends.
  • Later trials do better than earlier ones. State leaks between trials. Reset the repo, the browser profile, and any database before each run.
  • The total improved, but one important task got worse. Read the per-task lines and the transcripts. The Anthropic guide's conclusion puts it plainly: "Read the transcripts!"

Applying It to an SRE Agent

An AI SRE agent earns trust by being right on every incident it touches, so pass^k is the number that matters. The Akmatori skills docs suggest testing a skill by asking the agent about a known problem and reading the run log to check that it used the skill. That check is one sample. Run it 10 times on each model you plan to use and tag each run with the statuses above. For a wider view across models on real production incidents, see SRE Bench.

Conclusion

A single success shows that a task is possible, not that it is reliable. Freeze the setup, repeat each task 10 times from a clean start, report pass@1 with an interval plus pass@k and pass^k, and keep infrastructure and harness errors out of the model's score.

If your team wants AI-assisted incident workflows that you can measure before you trust them, Akmatori helps SRE teams investigate alerts, coordinate response, and automate safe infrastructure actions. Powered by Gcore for global infrastructure reliability.

Automate incident response and prevent on-call burnout with AI-driven agents!