WeMakeDevs × Flagsmith Toggle Wars · Track 01 · Recorded shoppers (Open Bandit Dataset, Nov 2019), not live users

Replay Lab

A real Flagsmith Experimentation A/B test whose users are real recorded shoppers: 2.69M impressions replayed with the Li et al. (2011) method.

GitHub repoPre-registrationRaw results

Result: ship smart

Lift (Flagsmith)
+70.8%
95% interval
+28.9% … +112.6%
Clicks · random vs smart
101 vs 172
Identities per arm
24,791 / 24,719

Both pre-registered rules passed: Flagsmith's ci_low > 0, and our 10-minute block bootstrap (+32.1% … +123.7%) excludes 0. Flagsmith's counts matched our local log exactly. A/A false-positive rate 2.7%, sample-ratio p = 0.84.

Flagsmith results page: +70.8% lift for smart

Does replay predict reality?

The shop also ran a learning algorithm live that week. Its true CTR was 0.571%; our replay predicted 0.608%, which is 6.5% off, inside the pre-registered ±10% target.

Validation chart: replay predicted the live algorithm within 6.5%

How it works

  1. Pre-register: the hypothesis, metric and decision rule are frozen in git tag prereg before any click is read (the code enforces it).
  2. Replay: for each recorded row, Flagsmith assigns a variant of the multivariate flag rec_strategy (random vs smart). If that variant would have shown the item the shopper really saw, we send track_exposure_event, plus track_event("rec_click") if they really clicked.
  3. Analyse: Flagsmith computes the lift and interval; we reconcile its counts with a local mirror, cross-check with a block bootstrap, an A/A test and an SRM test, then apply the rule once.
  4. Ship: Complete via the Flagsmith API with the winner; flagsmith eval confirms every identity gets smart.
Flagsmith experiment with the pre-registered hypothesis

Data: Open Bandit Dataset (Saito et al.), CC BY 4.0. One shop, one week, an identity is an impression, not a person; see LIMITATIONS.md in the repo.