Exit 7

By the numbers

Two arms and one flag, and behind them 472 task attempts, 1,762,767 test results and 6,344 priced model calls. Every figure here is counted from the repository when the site is built.

The runs

Every batch, from the first dry run

A batch is a run directory. Its files are the only source: one line per attempt, per model call and per ledger record.

Batches
Counts per batch, from the files in runs/
BatchAttemptsGradedSolvedTests readModel callsTokensLedger records
Dry runs 10 runs191910257,3892872,323,62629
Pilot 2 runs1919998,9734062,875,32721
Experiment 115014662574,2911,81210,894,645467
Rollout batch1313763,991137872,34734
Experiment 214614681438,0052,35319,445,454392
Experiment 312512564330,1181,3496,672,666370
All 17 runs4724682331,762,7676,34443,084,0651,313

The bill

What all of that cost in model calls

The sum of every priced call across every run, failed attempts included. Each task is capped, so a pool has a known worst case before it starts. analysis/out/numbers.json

Total model spend, all runs$23.34 total model spend
Experiment 1
$8.52
Rollout batch
$0.48
Per attempt, on average
$0.0495

At a larger size

What the measured gap adds up to

These two blocks are sums and ratios of figures on this site. Neither is a new measurement.

Arithmetic on measured figures, not a measurement

Per 1,000 solved bugs

control
$175.28
lanes_v1
$83.75
difference
$91.53

Experiment 1's cost per solved task in each arm, multiplied by 1,000. It assumes the same agent, models, prices and kind of task, and it carries the same uncertainty as the figures it is made from. The measured figures and their intervals.

List prices, from the pricing file

20 times the price per token

frontier model, input and output per million tokens
$2.00 · $10.00
small model, input and output per million tokens
$0.10 · $0.50

The price gap is 20 to 1; the measured saving per task is smaller, because only the worker lane changed model and the planner still runs on the frontier one. harness/pricing.json

Your own numbers

What would it save you?

Put in how many bugs your agent fixes in a month and what your models cost. The calculator applies experiment 1's measured lane costs and solve rates to them. It starts on the study's own prices, where it gives the study's own result.

Your frontier model, $ per million tokens
Your small model, $ per million tokens
control
Frontier everywhere · per month$175.28 per month

$0.1753 per solved bug · $2,103.31 per year

lanes_v1
Small worker lane · per month$83.75 per month

$0.0837 per solved bug · $1,004.96 per year

$91.53less per month, $1,098.35 per year, with the small model on the worker lane (−52.2% per solved bug)

Projection from experiment 1's measured costs and solve rates; your agent and tasks will differ.

A cheaper lane is not always a saving. In experiment 2 a cheaper drafting role cut the cost of a task by 15.4% and solved fewer bugs, so each solved bug cost 4.8% more. Experiment 2. Measure your own before you ship it.

The formula

  1. Measured, per task, in experiment 1. With the frontier model everywhere (Sonnet 5.5): planner lane $0.0294, worker lane $0.0490, 44.7% of tasks solved. With Haiku 5.5 on the worker lane: planner lane $0.0301, worker lane $0.0039, 40.6% solved. Keys exp1.arms.<arm>.main_cost_mean, delegate_cost_mean and solve_rate in numbers.json.
  2. Your prices. A model's lane cost is multiplied by (I × your input price + O × your output price) ÷ (I × list input + O × list output). I and O are the study's own token mix: at the frontier list prices 52.9% of the dollars are input-side tokens (input, cache writes and cache reads, at their list ratios to the input price) and 47.1% are output tokens. At the list prices the factor is 1.
  3. Your split. The all-frontier cost per task ($0.0784) is divided into planner and worker by your share (62.5% was measured). Moving the worker lane to the small model multiplies the worker part by 0.080 and the planner part by 1.022, the ratios measured in experiment 1.
  4. Per solved bug, per month, per year. Cost per solved bug = cost per task ÷ solve rate. Monthly cost = bugs fixed per month × cost per solved bug. The year is twelve months. The saving is the difference between the two arms.

With nothing changed this is experiment 1's own cost per solved task. It assumes your agent splits its work, and solves bugs, the way this one did, which yours will not exactly. Solve rates carry the intervals on the results page, and the projection is exactly as uncertain as they are.

The evidence

What was kept so it can be checked

  • 1,313ledger recordsHash-chained lines across every run's ledger.jsonl. Change one and every later hash breaks.analysis/out/numbers.json
  • 16Merkle roots publishedOne per run, over its finished tasks, in the analysis output.analysis/out/numbers.json
  • 122environment snapshotsFlagsmith's full flag configuration, saved at the start, every 15 minutes and at the end of a run.analysis/out/numbers.json
  • 434task transcripts publishedThe planner's transcript and the graded patch of each attempt.analysis/out/numbers.json
  • 5registrations taggedprereg-exp1, prereg-exp1-amend1, prereg-exp2, prereg-exp3, prereg-exp4, prereg-exp5, prereg-exp5-amend1analysis/out/numbers.json
  • 430 of 430arms re-derived offlineEvery recorded arm of the 4 batches that ran on the flag (experiments 1 to 3 and the rollout), recomputed with Flagsmith's flag-engine from each run's saved environment.integrity/verify_assignment.py

Check a ledger and one task's proof in your browser

The build

77,236 lines in 453 files

Lines in the files git tracks, by language. Run records, analysis output, task pools, rendered transcripts and lock files are left out, because they are data, not code.

  1. TypeScript26,624 lines · 138 files
  2. Python20,501 lines · 120 files
  3. CSS11,601 lines · 20 files
  4. Markdown8,676 lines · 73 files
  5. Shell4,898 lines · 52 files
  6. JavaScript2,688 lines · 19 files
  7. YAML1,462 lines · 19 files
  8. Terraform623 lines · 8 files
  9. SQL163 lines · 4 files

The counter is board/web/scripts/scale-data.mjs. It runs on every build, so these figures move when the repository does.