Flagsmith ran the experiment. Twoheads shipped.
Does adding a verify step to Flagsmith's coding-agent set-up prompt make the A/B tests agents build trustworthy? 107 Claude Code runs, arms assigned by Flagsmith Cloud experiment #482, the plan fixed in advance.

Every run, by outcome
| Flagsmith's prompt | + Twoheads | |
|---|---|---|
| Runs | 51 | 56 |
| Trustworthy experiments | 9 (18%) | 24 (43%) |
| ↳ exposures missing | 23 | 25 |
| ↳ winner from simulated traffic | 17 | 0 |
| ↳ agent failed | 1 | 4 |
| ↳ identical arms | 1 | 1 |
| ↳ experiment never started | 0 | 1 |
| ↳ no experiment | 0 | 1 |
| Median minutes per run | 3.3 | 3.5 |
Decision, as pre-registered: ship verify. Verify step wins on trustworthy runs: 95.7% chance to win, lift 142.9% (95% interval -20.4% to 306.1%). Guardrails held: agent_tokens 2% chance worse, agent_minutes 18% chance worse. The experiment was then completed with verify rolled out, through the Twoheads MCP server and a person's approval.
What our harness broke
Seven agents stopped their own process: restarting the app with pkill -f matched the prompt, which the harness passed as a command-line argument. Two more runs failed when we restarted the study to fix that. All nine stay in the numbers above as failures (amendment 1).
Without them: 9 of 50 (18%) vs 24 of 48 (50%), 97.1% chance to win.
Checking the checker
The oracle was run again on runs whose wiring was already known: before the study and after it, one trustworthy run per app and arm. 400 visits, 0 false failures.
On the way we found that the arena's Postgres, with JIT on, made Flagsmith's environment lookup take 3 seconds, so SDK events timed out. Reported to Flagsmith.
Why the browser-only apps failed in both arms
| App (exploratory, not pre-registered) | Flagsmith's prompt | + Twoheads |
|---|---|---|
| Express to-do app | 2 of 11 | 10 of 11 |
| Flaskr (Flask tutorial) | 6 of 12 | 5 of 10 |
| Next.js + Turso | 1 of 8 | 9 of 13 |
| React + Vite landing page | 0 of 9 | 0 of 12 |
| Vue TodoMVC | 0 of 11 | 0 of 10 |
Flagsmith's browser SDK keeps events in a buffer and sends them every 10 seconds; it doesn't send them when the page closes. Our visitors stayed 3–6 seconds, so their exposures never arrived. The same experiment (cc-0104) scored 0 of 40 with those visits, 40 of 40 with 11-second visits, and 40 of 40 with one line, flushInterval: 1000. Real visitors who leave that fast drop out of real experiments too.
Reported to Flagsmith, and twoheads check now warns about it (added after the study, so not part of what was tested).
Start a run yourself
The live arena runs a capped open model (Kimi K2.7 on Venice), not the study's agent, through the same harness and oracle. Pick an app and a prompt; the result appears here.
All 107 runs
| Run | Prompt | App | Outcome |
|---|---|---|---|
| cc-0001 | + Twoheads | express-todos | trustworthy |
| cc-0002 | Flagsmith's | flaskr | winner from simulated traffic |
| cc-0003 | + Twoheads | next-turso | exposures missing |
| cc-0004 | + Twoheads | react-landing | exposures missing |
| cc-0005 | Flagsmith's | vue-todomvc | exposures missing |
| cc-0006 | Flagsmith's | express-todos | trustworthy |
| cc-0007 | Flagsmith's | flaskr | winner from simulated traffic |
| cc-0008 | + Twoheads | next-turso | trustworthy |
| cc-0009 | Flagsmith's | react-landing | exposures missing |
| cc-0010 | Flagsmith's | vue-todomvc | exposures missing |
| cc-0011 | + Twoheads | express-todos | trustworthy |
| cc-0012 | + Twoheads | flaskr | agent failed harness |
| cc-0013 | + Twoheads | next-turso | trustworthy |
| cc-0014 | + Twoheads | react-landing | exposures missing |
| cc-0015 | + Twoheads | vue-todomvc | exposures missing |
| cc-0016 | Flagsmith's | express-todos | winner from simulated traffic |
| cc-0017 | + Twoheads | flaskr | agent failed harness |
| cc-0018 | Flagsmith's | next-turso | exposures missing |
| cc-0019 | + Twoheads | react-landing | exposures missing |
| cc-0020 | + Twoheads | vue-todomvc | exposures missing |
| cc-0021 | Flagsmith's | express-todos | winner from simulated traffic |
| cc-0022 | Flagsmith's | flaskr | winner from simulated traffic |
| cc-0023 | Flagsmith's | next-turso | winner from simulated traffic |
| cc-0024 | + Twoheads | react-landing | exposures missing harness |
| cc-0025 | + Twoheads | vue-todomvc | exposures missing harness |
| cc-0026 | Flagsmith's | express-todos | winner from simulated traffic |
| cc-0027 | + Twoheads | flaskr | trustworthy |
| cc-0028 | + Twoheads | next-turso | trustworthy |
| cc-0029 | Flagsmith's | react-landing | exposures missing |
| cc-0030 | + Twoheads | vue-todomvc | exposures missing |
| cc-0031 | Flagsmith's | express-todos | winner from simulated traffic |
| cc-0032 | Flagsmith's | flaskr | identical arms |
| cc-0033 | + Twoheads | next-turso | trustworthy |
| cc-0034 | + Twoheads | react-landing | exposures missing harness |
| cc-0035 | Flagsmith's | vue-todomvc | exposures missing |
| cc-0036 | Flagsmith's | express-todos | trustworthy |
| cc-0037 | Flagsmith's | flaskr | trustworthy |
| cc-0038 | + Twoheads | next-turso | exposures missing |
| cc-0039 | + Twoheads | react-landing | exposures missing |
| cc-0040 | + Twoheads | vue-todomvc | exposures missing |
| cc-0041 | Flagsmith's | express-todos | winner from simulated traffic |
| cc-0042 | + Twoheads | flaskr | experiment never started harness |
| cc-0043 | Flagsmith's | next-turso | winner from simulated traffic |
| cc-0044 | + Twoheads | react-landing | exposures missing |
| cc-0045 | + Twoheads | vue-todomvc | no experiment |
| cc-0046 | Flagsmith's | express-todos | winner from simulated traffic |
| cc-0047 | + Twoheads | flaskr | agent failed harness |
| cc-0048 | Flagsmith's | next-turso | exposures missing |
| cc-0049 | Flagsmith's | react-landing | exposures missing |
| cc-0050 | Flagsmith's | vue-todomvc | agent failed harness |
| cc-0051 | + Twoheads | express-todos | agent failed harness |
| cc-0052 | Flagsmith's | flaskr | trustworthy |
| cc-0053 | + Twoheads | next-turso | trustworthy |
| cc-0054 | Flagsmith's | react-landing | exposures missing |
| cc-0055 | + Twoheads | vue-todomvc | exposures missing |
| cc-0056 | + Twoheads | express-todos | trustworthy |
| cc-0057 | Flagsmith's | flaskr | winner from simulated traffic |
| cc-0058 | + Twoheads | next-turso | exposures missing |
| cc-0059 | Flagsmith's | react-landing | exposures missing |
| cc-0060 | Flagsmith's | vue-todomvc | exposures missing |
| cc-0061 | + Twoheads | express-todos | trustworthy |
| cc-0062 | + Twoheads | flaskr | identical arms |
| cc-0063 | Flagsmith's | next-turso | exposures missing |
| cc-0064 | + Twoheads | react-landing | exposures missing |
| cc-0065 | + Twoheads | vue-todomvc | exposures missing |
| cc-0066 | + Twoheads | express-todos | trustworthy |
| cc-0067 | + Twoheads | flaskr | trustworthy |
| cc-0068 | + Twoheads | next-turso | trustworthy |
| cc-0069 | + Twoheads | react-landing | exposures missing |
| cc-0070 | + Twoheads | vue-todomvc | exposures missing |
| cc-0071 | Flagsmith's | express-todos | winner from simulated traffic |
| cc-0072 | Flagsmith's | flaskr | trustworthy |
| cc-0073 | + Twoheads | next-turso | trustworthy |
| cc-0074 | Flagsmith's | react-landing | exposures missing |
| cc-0075 | Flagsmith's | vue-todomvc | exposures missing |
| cc-0076 | Flagsmith's | express-todos | winner from simulated traffic |
| cc-0077 | + Twoheads | flaskr | trustworthy |
| cc-0078 | Flagsmith's | next-turso | trustworthy |
| cc-0079 | + Twoheads | react-landing | exposures missing |
| cc-0080 | + Twoheads | vue-todomvc | exposures missing |
| cc-0081 | + Twoheads | express-todos | trustworthy |
| cc-0082 | + Twoheads | flaskr | trustworthy |
| cc-0083 | + Twoheads | next-turso | exposures missing |
| cc-0084 | + Twoheads | react-landing | exposures missing |
| cc-0085 | Flagsmith's | vue-todomvc | exposures missing |
| cc-0086 | + Twoheads | express-todos | trustworthy |
| cc-0087 | Flagsmith's | flaskr | trustworthy |
| cc-0088 | + Twoheads | next-turso | trustworthy |
| cc-0089 | Flagsmith's | react-landing | exposures missing |
| cc-0090 | Flagsmith's | vue-todomvc | exposures missing |
| cc-0091 | + Twoheads | express-todos | trustworthy |
| cc-0092 | + Twoheads | flaskr | trustworthy |
| cc-0093 | Flagsmith's | next-turso | winner from simulated traffic |
| cc-0094 | Flagsmith's | react-landing | exposures missing |
| cc-0095 | Flagsmith's | vue-todomvc | exposures missing |
| cc-0096 | + Twoheads | express-todos | trustworthy |
| cc-0097 | Flagsmith's | flaskr | winner from simulated traffic |
| cc-0098 | Flagsmith's | next-turso | exposures missing |
| cc-0099 | Flagsmith's | react-landing | exposures missing |
| cc-0100 | Flagsmith's | vue-todomvc | exposures missing |
| cc-0101 | + Twoheads | express-todos | trustworthy |
| cc-0102 | Flagsmith's | flaskr | trustworthy |
| cc-0103 | + Twoheads | next-turso | trustworthy |
| cc-0104 | + Twoheads | react-landing | exposures missing |
| cc-0105 | Flagsmith's | vue-todomvc | exposures missing |
| cc-0106 | Flagsmith's | express-todos | winner from simulated traffic |
| cc-0107 | Flagsmith's | flaskr | trustworthy |