What peeking costs your team · lab simulation on Flagsmith’s own stats code
What peeking costs your team
Some of the changes a team tests do nothing at all. An agent that ships the first time Flagsmith says Winning still ships some of those. Put in your own numbers. Every rate below is counted from simulated A/A experiments scored by Flagsmith’s stats.py; none of it is typed in.
A team running 20 experiments a quarter with an agent that ships at the first Winning ships about 1.3 do-nothing changes a quarter; under a contract about 0.13.
10 of your experiments a quarter test a variation that does nothing; reading Flagsmith’s label at every look ships 10 times as many of them as the contract does.
Agent ships at the first “Winning”
Stops the first time Flagsmith shows over 95% (ships) or under 5% (keeps control), at any of the 30 reads.
95% interval 1.27–1.41 · 5.3 a year · 4.0 engineer-days a quarter (16.0 a year)
False-Winning rate 13.4% (12.7%–14.1%), 1,337 of 10,000 simulated A/A experiments · data/offline.json, 10,000 runs
Agent under a signed Ulysses contract
Same Flagsmith number, same reads; ships only past the boundary signed for 30 looks at alpha 0.05.
95% interval 0.11–0.16 · 0.5 a year · 0.4 engineer-days a quarter (1.6 a year)
False-Winning rate 1.3% (1.1%–1.6%), 134 of 10,000 simulated A/A experiments · data/offline.json, 10,000 runs
one do-nothing experiment, over a year of four quarters shipped anyway; a part-filled hull is the fraction of one expected ship
How the number is made
do-nothing ships a quarter = experiments a quarter × share that do nothing × false-Winning rate first Winning: 20 × 50% × 13.4% = 1.34 (interval: same product over 12.7%–14.1%) contract: 20 × 50% × 1.3% = 0.13 (interval: same product over 1.1%–1.6%) engineer-days = ships × 3 days per change
The interval is the 95% Wilson interval of the measured rate carried through the product. It covers the uncertainty in the rate only; the count in any one quarter also varies around its expectation.
Measured false-Winning rates
| Looks | First Winning | 95% interval | Runs | Contract, alpha 0.05 | 95% interval | Runs |
|---|---|---|---|---|---|---|
| 1 | 3.9% | 3.5%–4.3% | 389 of 10,000 | 3.0% | 1.0%–8.5% | 3 of 100 |
| 2 | 5.0% | 2.2%–11.2% | 5 of 100 | 3.0% | 1.0%–8.5% | 3 of 100 |
| 3 | 8.0% | 4.1%–15.0% | 8 of 100 | 3.0% | 1.0%–8.5% | 3 of 100 |
| 5 | 8.0% | 4.1%–15.0% | 8 of 100 | 3.0% | 1.0%–8.5% | 3 of 100 |
| 6 | 9.0% | 4.8%–16.2% | 9 of 100 | 3.0% | 1.0%–8.5% | 3 of 100 |
| 10 | 9.0% | 4.8%–16.2% | 9 of 100 | 3.0% | 1.0%–8.5% | 3 of 100 |
| 15 | 11.0% | 6.3%–18.6% | 11 of 100 | 3.0% | 1.0%–8.5% | 3 of 100 |
| 30 | 13.4% | 12.7%–14.1% | 1,337 of 10,000 | 1.3% | 1.1%–1.6% | 134 of 10,000 |
Source. Simulated A/A experiments, both arms at a 10% conversion rate, 30 looks of 100 synthetic identities per arm (3,000 per arm at the end), scored by Flagsmith stats.py v2.295.2 sha256 97c5ebfca7c8, unmodified. Not user traffic. 30 looks: all 10,000 runs of data/offline.json. One look, first Winning: the same 10,000 runs read once at the end. Every other row: the 100 runs of data/paths-offline.json (seed 62944) read at every 30/K-th look, with a contract drafted for K looks and scored by the service’s own decision.evaluate; recounted into data/cost-rates.json by uv run ulysses cost --recount. Both data files were written by uv run ulysses calibrate offline --flagsmith-src ../_shared/reference/flagsmith.
Assumptions. A variation that does nothing behaves like these A/A runs; your traffic, base rate and sample sizes differ, and the rates move with them. Looks are evenly spaced. Look counts that do not divide 30 are not offered because nothing measured them.
Left out. Experiments with a real effect: with a +25% relative lift and 30 looks, the contract at alpha 0.05 calls the win in 79.3% of 10,000 runs against 91.0% for first Winning, which also calls 5.0% of them the wrong way (data/offline.json). False Losing calls keep control and ship nothing, so they are not counted as cost here.
Same numbers on the command line: uv run ulysses cost --experiments 20 --looks 30 --null-share 50% --days 3 --alpha 0.05