Hear the sirens · you are the agent · simulation in your browser
Hear the sirens
A shop is testing a new checkout button against the old one. Visitors arrive in batches, and after each batch Flagsmith’s scoreboard updates its chance that the new button wins. You are the agent. Peek as often as you like, and ship whenever you are sure.
The reveal
Both buttons were the same
You
The agent under a signed Ulysses contract
Two ships · 100 new A/A voyages, not picked · simulation in your browser
Your strategy against the contract
Every one of these experiments compares a button with itself. Each red ship is a change that does nothing, shipped.
Your strategy
Agent under a signed Ulysses contract
Ships only where Flagsmith’s number crosses the boundary signed before the test, alpha 0.05.
How this works
Simulation in your browser. Each voyage is 20 looks of 200 simulated visitors per button. Every visitor buys with probability 10%, on both buttons. Nothing here touches Flagsmith or real traffic.
Flagsmith’s number. The chance to win is computed the way Flagsmith’s api/experimentation/stats.py computes it: relative lift of the new button over the old, a delta-method standard error from both arms’ spread, and chance to win = Φ(lift / SE). It is a normal approximation, as in Flagsmith. Until each button has 50 visitors and 5 purchases Flagsmith shows “collecting data”; over 95% is “Winning”.
The contract. The boundary is the Lan-DeMets O’Brien-Fleming boundary at two-sided alpha 0.05 over 20 equally spaced looks, the contract’s default. It was computed on the server by ulysses/boundary.py and is embedded in this page; the browser does not derive it. The agent compares Flagsmith’s number with it at each look: over the boundary it ships, under the mirror image it keeps control, and at the last look without a crossing it keeps control.
| look | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ships over | no stop | >99.99% | >99.99% | >99.99% | >99.99% | >99.99% | 99.99% | 99.97% | 99.93% | 99.88% | 99.80% | 99.71% | 99.59% | 99.45% | 99.30% | 99.13% | 98.94% | 98.74% | 98.53% | 98.31% |