Questions, answers and terms
The questions a careful reader asks, answered plainly, with the weak points left in.
The design
What was tested
Is this a benchmark of two models?
No. Both arms use the same planner model, prompts, tools and caps. The only difference is which model does the delegated grunt work (Sonnet 5.5 in control, Haiku 5.5 in lanes_v1). The question is about a routing decision inside one agent, the kind of change a team would ship behind a flag. The result applies to this planner and worker design, not to an agent that does its own grunt work. How the agent works.
Who decides which arm a task runs in?
Flagsmith. The runner calls get_experiment_flag with the task's identity and uses whatever policy comes back. It never picks an arm. Every recorded arm can be recomputed offline from a saved environment document with Flagsmith's own flag-engine 11.1.2: 146 of 146 matched for experiment 1. Why Flagsmith is the core.
Could the run be stopped early when the numbers looked good?
No. The run continued until every task in the pools was done, excluded or invalid. The live board showed running totals from 89 tasks in, so the operator did see interim figures; the rule, the margin, the pools and the stopping rule were fixed in the registration before that and there was no early stop to take. Decision D24 records this.
Was the agent changed to make the arms differ?
Yes, before registration, and identically for both arms. In the first dry runs the planner never delegated, so both arms would have run the same model on nearly every call and measured nothing. The planner prompt was changed to delegate surveys, long reads and test runs, then its shell output was cut, then its shell was removed. These three changes were in place before the pilot. Decisions D16 to D18.
The numbers
How sure
How much could this experiment detect?
At 70 tasks per arm, the simulation in analysis/power.py (2,000 runs seeded from the pilot) detects a 25% cut in mean cost with 80% power, and a solve-rate drop of 20 points with the same power. If the small-model lane truly solves as many tasks as control, the guardrail passes 87% of the time.
So the cost question was well powered and the solve-rate question was not. A drop of a few points cannot be seen at this size: detecting a 5-point drop would take about 1,300 tasks per arm. The power table.
Why is the solve-rate margin so wide, and when was it chosen?
The margin m is 20 percentage points. It was chosen after the pilot had been run and looked at, and before any experiment task ran. It was set so that an arm truly as good as control passes the guardrail more often than not at the sample size the task supply allowed. A 5-point margin would fail almost every time, even for an equal arm, so the experiment would decide nothing.
That means rule 2 is a check against large losses only. A reader who wanted a tighter margin should read the result that way: the solve-rate interval runs from −19.8 pp to +11.8 pp. Decision D19.
Could the models have seen these bugs in training?
Some of them, yes. The registered pool held only tasks created after the models' training cutoff (from 2026-07-01). That pool was too small for Flagsmith to report a verdict, so an amendment, hashed and tagged before any of its tasks ran, added 80 older tasks created from 2026-03-01. The pilot, the rollout batch and experiment 2 use pre-cutoff tasks only.
Assignment is random, so a leak lifts both arms alike and does not bias the difference. It can raise the absolute solve rates, which is why the tiers are reported separately. On the fresh tier alone the solve rate was −12.5 pp for lanes_v1 and the guardrail would not have cleared its bar; the decision was registered on both tiers together. The result by tier.
Do Flagsmith's numbers and yours agree?
Yes. The largest gap between Flagsmith's mean cost per arm and the one computed from the run's own logs is $0.0001, and the solve rates match exactly. Flagsmith gave the small-model lane a 100.0% chance of being cheaper and called the solve-rate guardrail inconclusive. The checks.
Flagsmith
Why this tool
Why run this as a Flagsmith experiment and not a script?
Because the claim has to be checkable by someone who does not trust the author. Flagsmith picks every arm by hashing the task's identity, records the exposure when the policy is applied, joins the cost and solve events to those exposures and reports the chance each variant beats control. The routing policy is the flag's value, so the thing being tested is the thing that ships.
When the experiment ended, the winner became the flag's own value and the next batch ran on it with no deploy. A script that picked arms with its own random number generator could show none of that. Every Flagsmith feature used.
What would have happened if the small model had lost?
Control would have stayed as the flag's value and the reason would have been published with the same tables. The second experiment follows the same promise: a result that keeps the current policy is published in full, the same way a win would be.
Was the flag touched while an experiment ran?
No. The environment was saved 56 times through experiment 1 and every snapshot has the same hash (1 distinct). Flagsmith also locks a flag while its experiment runs, and the flags-as-code setup is read-only during a run. Only the kill switch may be used, for safety, and any use is logged. The proof.
Running it
Cost and reuse
What did it cost to run?
Model spend across the whole study is $23.34: $8.52 for experiment 1, $5.47 for experiment 2, $1.70 for the pilot, $0.48 for the rollout batch and the rest for dry runs. Each task is capped at $0.60, 40 planner turns and 1200 seconds, so a pool has a known worst case before it starts.
That figure is model calls only. The run also used a rented Linux machine for the task containers and Flagsmith's free plan; neither is in the number above.
Can I run this on my own agent?
Yes. The kit wraps any agent loop in Python or TypeScript, works with Flagsmith Cloud or self-hosted Flagsmith, and sends the same four events. You bring the tasks and a way to grade them.
How do I check that the run was not edited?
Clone the repository and run one command per run directory: it walks the hash chain of the ledger and prints the Merkle root over every finished task. A second command recomputes every arm with Flagsmith's flag-engine. The commands.
A question that is not here? The issue tracker is open, and every design choice is in the decisions log.
Glossary
The words this site uses, in plain terms. Each one links to the page where it matters most.
Letter A
- Amendment
- A change to the registered plan, written as its own hashed file before it applies. The original file is never edited. The amendment →
- Arm
- One version of the agent in the experiment. Every task runs in exactly one arm, chosen by Flagsmith.
Letter C
- Chance to beat control
- Flagsmith's estimate of the probability that a variant does better than control on a metric. Rule 1 of the decision uses it for cost. Decision rule →
- Control
- The arm the challenger is compared against. Here the frontier model does everything, and its policy is the flag's own value.
Letter D
- Delegate lane
- Another name for the worker lane: the model that does searching, builds and test runs for the planner.
- Drift
- Any difference between the live Flagsmith flags and the Terraform code that describes them. The drift check must find none. Terraform drift →
Letter E
- Edge Proxy
- A Flagsmith service you run near your app that serves flags from a polled copy of the environment. It serves values but no variant key. Evaluation modes →
- Environment document
- The full flag configuration of one Flagsmith environment. Saved during the run, it is what the offline assignment check evaluates.
- Event
- A number sent to Flagsmith for an identity, such as task_cost. Flagsmith counts only events at or after that identity's exposure.
- Exposure
- The record that an identity was served a variant in a running experiment. Sent once per task, where the policy is applied. Exposure →
Letter F
- FAIL_TO_PASS / PASS_TO_PASS
- The tests SWE-bench-Live uses to grade a fix: the first set must start passing, the second must keep passing. A task is solved only if both hold.
- Flag-engine
- Flagsmith's open-source evaluation library, the same code the SDKs use for local evaluation. Used here to recompute every arm offline. Flag-engine check →
- Fresh tier
- Tasks created after the models' training cutoff, so the models cannot have seen them. Experiment 1's registered pool.
Letter G
- Guardrail
- A metric the change must not hurt. Here it is the solve rate: a cheaper arm that solves far fewer bugs does not ship.
Letter I
- Identity
- Flagsmith's unit of assignment. Each task is one identity, swelive:<instance_id>, used for the exposure and every event.
Letter K
- Kill switch
- The routing_kill flag. When on, tasks run control with no exposure, so the experiment's data stays clean. Kill switch →
Letter L
- lanes_v1
- The challenger in experiment 1: the same planner, with a small model in the worker lane.
- lanes_v2
- The challenger in experiment 2: the small model drafts the patch and the frontier model reviews it.
- Ledger
- An append-only file of run records where each record's hash includes the previous one, so an edit breaks every later hash. Hashing rules →
Letter M
- Margin m
- How far the solve rate may drop and still pass rule 2. Set from the pilot before the run. The margin →
- Merkle root
- One hash computed over every finished task's record. If two people get the same root, they have the same set of tasks.
Letter O
- OpenFeature
- A vendor-neutral feature flag API. The kit can read the policy and send events through it with the official Flagsmith provider.
Letter P
- Planner lane
- The main model of the agent. It reads files, writes the fix, delegates grunt work and submits. It has no shell.
- Policy
- The JSON value of the routing flag: which model runs each lane, token limits and caps. Remote config, changed without a deploy.
- Posterior
- Our own estimate of the solve-rate difference, from a Beta(1,1) model of each arm. Rule 2 reads it, alongside Flagsmith's numbers.
- Pre-cutoff tier
- Tasks created before the models' training cutoff. Used for the pilot, the rollout batch, experiment 2 and the amendment, and reported separately.
- Pre-registration
- The plan, hypothesis and decision rule, hashed and tagged in git before the first task of the main run. The registration →
Letter R
- Rollout
- After the experiment ends, the winner's value becomes the flag's value and new tasks get it, on the same flag.
Letter S
- Snapshot
- A saved copy of the environment document, taken through the run. One distinct hash of the routing flag across all of them means the flag and its split never changed; other flags, such as the site's notice, can change without touching it.
- SRM
- Sample-ratio mismatch: when the arms' sizes differ more than a fair split would allow. A sign that assignment or counting broke.
- Stratum
- The slice of the dataset the pools are drawn from: small fixes, in a fixed set of languages. Results apply to this slice.
- SWE-bench-Live
- A public dataset of real GitHub issues with the fix and the tests that check it, refreshed with new issues over time.
Letter V
- Variant
- A named value of a multivariate flag. lanes_v1 is the variant; control is the flag's own value.
Letter W
- Worker lane
- The model that runs bash in the task's container and reports back as JSON. The only thing that differs between the arms.