01Problem
Most agent evals report a pass-rate delta and stop there. A harness change that moves an eval from 5/10 to 8/10 looks like a win, but on small evals that kind of jump is often chance. And “the model got confused” is not a diagnosis anyone can act on.
HarnessBench treats the harness as the system under test: same tasks on both sides, a significance test on the tasks that flip, a diff of what changed, and a failure cause only when the trace supports one.
02Approach
A small web app that runs in your browser and never calls a model. You record runs from your own agent, export them as one JSON file, and import it. Nothing is uploaded anywhere.
- Paired significance test. Both harnesses ran the same tasks, so only the tasks that flip carry evidence. An exact McNemar test (a sign test over tasks when there are repeats) says could be chance until the result holds, with 95% Wilson intervals on task success.
- What changed. Each harness config is hashed and diffed, so a verdict reads like
loop.retries 0 → 2, tools +run_tests. - Failure causes that cite the trace. A cause is named only when a trace event supports it: a tool that errored and never recovered, a run that hit its step limit, an agent that declared success after a red test run. Otherwise: insufficient evidence.
- A grader that trusts outcomes, not claims. Checks read what the environment observed after the attempt, not what the agent said it did.
03Key decision
Refuse to declare a winner without evidence. Even when every flipped task favours one harness, p stays above 0.05 until at least six of them flip. The importer rejects a file unless every task has the same number of runs on every harness, and the diagnosis abstains rather than inventing a cause.
04Architecture
- Your agent recorder or an Inspect AI log produces a runs JSON file
- Import and validate pairing: every task, every harness, same number of runs
- Grader: outcomes, not claims
- Diagnosis: cite trace events or abstain
- Harness configs: stable hash and diff against the baseline
- Paired test: McNemar / sign test, Wilson interval
- Output: verdict, task matrix, trace view, Markdown report
The core in src/lib/harness/ (import, grader, diagnosis, stats, config diff) has no React dependency. A built-in rule engine can write simulated traces so the pages have something to show before you import anything.
05Results
| Study (simulated) | Harness | Task success | Paired test |
|---|---|---|---|
| Shipped sample import | Two coding harnesses, 4 tasks | 1/4 → 3/4 | 2 tasks flip, both one way, p = 0.50. Could be chance. |
| Coding agents | Generation-only → Verify-and-repair | 50% → 80% | 3 tasks flip, all one way, p = 0.25. Could be chance. |
| General tool agents | Chat loop → Retrieval harness | 40% → 80% | 4 tasks flip, all one way, p = 0.13. Could be chance. |
Every one of these correctly reads could be chance, which is the point: small evals rarely justify the conclusion people draw from them. Results on real agents: to come.