Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

A paired A/B bench for coding models, checked end to end against scripted mock arms

harness-ab-bench runs the same failing-test tasks on two model backends and compares them pair by pair. Our keyless run used scripted mock arms, so it proves the wiring and scores no model.

By David Discua

Measured in the lab

114
mock trials
309
mock model calls
48.4 s
run time
0
live models scored
  • Planted wrong patches scored as failures in all three configs
  • No-map arm that explored past max_turns scored as a failure
  • Prompt suite caught a regex miss and a fenced JSON reply
  • Mock arm A reported usage.speed=fast on the fast tier
  • Live arms were not run in this lab

From reports/harness-ab-bench.json · run on October 21, 2026. MOCK run: scripted local servers with neutral arm names, one shared synthetic latency profile, tokens counted as ceil(chars/4); no live model was scored

How it is wired

temp copyREAD / FILEREAD / FILEpass / failTask repofailing testsharness-ab-benchsame loop per armArm Amock in this runArm Bmock in this runPaired statsbootstrap + sign test

01/03Each trial copies a small repo whose tests must fail first.

harness-ab-bench runs the same small coding tasks on two model backends, writes each returned patch into a copy of the task repo, runs its tests, and compares the arms pair by pair with wins, losses, ties, a bootstrap confidence interval and an exact sign test. It also records cost from a sourced price table, latency and output tokens per second. Our keyless run drove both arms with scripted mock servers on the local machine, so the numbers show that the bench detects passes, failures and turn limits. No live model was scored in this lab.

The catch

Every pass rate below comes from a mock. The arms have neutral names, share one synthetic latency profile, count tokens as ceil(chars/4), and get the same number of planted failures, so they tie by design. Pass and fail are still real in one sense, because each scripted patch was written into a temp copy and that task's tests ran. The live path was not run in this lab, so the configured real endpoints have produced no numbers.

Five tiny TypeScript tasks with three trials each give wide intervals. One planted failure per arm already spans -20 to +20 points. The agent loop is minimal, with no shell, no test runs mid-episode and full-file rewrites only. Each run executes model-written code in a temp copy with a minimal environment, which is not a sandbox.

What we ran (keyless)

bun install --frozen-lockfile
bun run bench run --config configs/ab.json
bun run bench run --config configs/shadow.json
bun run bench run --config configs/argon.json
bun run report

From reports/harness-ab-bench.json, run on October 21, 2026: 114 trials, 309 mock model calls, 48.4 s.

ConfigMock armsCoding passPaired coding result95% CISign test
abmock arm A vs mock arm B93% vs 93%1 win each, 13 ties-20 to +20 ptsp = 1.000
shadowmock arm A vs mock arm B93% vs 93%1 win each, 13 ties-20 to +20 ptsp = 1.000
argonmock + map vs mock, no map93% vs 93%1 win each, 13 ties-20 to +20 ptsp = 1.000

Each failure was planted. In ab, arm A returns an unfixed file on lru-recency trial 2 and arm B returns a wrong patch on duration-units trial 1. In shadow, the prompt suite also caught an answer of "v2.10.0" that fails a regex and a JSON reply wrapped in a code fence that fails is-json, which left both arms at 75% over 12 prompt pairs. In argon, the no-map arm explored past max_turns on cart-tax-rounding trial 1 and was scored as a failure. The map arm read 1 file per task against 3.3333 for the no-map arm, a gap the mock script sets, so it says nothing about whether maps help.

How it is wired

Each trial copies a task repo, checks that its tests fail, and sends the model the task, the failing output and the file list. The model replies with READ <path> lines and full-file blocks over a text protocol that is the same on every backend, with no tool calling. Writes outside the copy, inside .git or under tests/ are rejected, so a model cannot pass by editing tests. Usage is normalized across Anthropic, Gemini and OpenAI-compatible wires. Trials are paired by task and trial index, and the bootstrap resamples whole tasks 10,000 times with a fixed seed because trials of one task are not independent.

Minilab (open source)

The map arm uses DeusData/codebase-memory-mcp (47,370 stars, MIT, C), built from source at a pinned commit. The rubric implements 14 assertion types from promptfoo/promptfoo (26,358 stars, MIT, TypeScript) by name, without depending on it. Star counts are as of October 24, 2026. Re-run bun run report for the mock tables, or put your own provider keys in .env and run bun run bench run --config configs/shadow.json --live --trials 3 to score real arms.

Run it yourself

SkilledDragonCorp/harness-ab-bench

Clone, install and run the report with no API keys. The numbers above are what that run writes.

bun install --frozen-lockfile && bun run bench run --config configs/ab.json

SkilledDragon is not affiliated with Anthropic, Google, OpenAI, DeusData or promptfoo. Every result in this post comes from scripted mock servers and says nothing about any real model; re-run the bench before relying on it. Marks belong to their owners.

All labs