T1 / Test Something Real
−6.66% revenue lift
Keep the better grocery offer
Experiment #956 kept control. A/A #1026 served the same offer to both arms, and the final intervals all spanned zero.
Toggle Wars · Flagsmith Experimentation
Rehearse Flagsmith promotions on calibrated synthetic shoppers before committing customer traffic.
weekly_promo
Store replay · 4×
Flagsmith Cloud / Experiment #956
Synthetic shoppers calibrated to dunnhumby’s Complete Journey. Flagsmith assigned the offers and reported each metric per exposed shopper.
Control
13,440 exposures
Challenger
13,425 exposures
Retail and growth teams can screen offers for margin risk and size a customer test before allocating traffic.
Define the offers and guardrails in YAML. Simulate baskets, visits, and offer uptake.
python -m shopfloor rehearse \
--config examples/weekly_promo.yaml
Attach the multivariate flag and metrics to a Flagsmith experiment. The SDK assigns shoppers and the Results API returns warehouse outcomes.
flag_key: weekly_promo
primary:
event: purchase
guardrails:
- event: gross_margin
secondary:
- event: store_visit
Review the guardrails before approving a rollout. Operators can also approve a pause with promo_kill_switch.
python scripts/ship_winner.py \
--experiment 956 \
--run runs/rehearsal-live-956
T1 / Test Something Real
−6.66% revenue lift
Experiment #956 kept control. A/A #1026 served the same offer to both arms, and the final intervals all spanned zero.
T2 / AI Agents
4.29 s approve and start
The agent ranked offers, sized the leading candidate, and started Smoke #1508 after a GitHub issue approval. Synthetic revenue lift was +7.70% (inconclusive) and gross margin lift was +18.08%. The owner closed with control at 1:37 PM PST on 2026-11-27.
Hark posted the approval comment from Frank’s account at his explicit instruction. The agent process had no GitHub write access.
T3 / Open Source Self-Hosted
20.2 s kill-switch check
Self-hosted Flagsmith Retail Edition ran experiment #2 with a ClickHouse warehouse on GCP. The live staging kill-switch check took 20.2 s end to end, including baseline, pause, and restore.
T4 / Agent Skills
788 tokens in SKILL.md
flagsmith-prove-it-works uses a 788-token SKILL.md. The same Smoke reads used 197 tokens with --jq and 2,025 with full JSON. A hash-bound manifest refused the tampered #1500 payload before any write.
From the repository root in Bash, with Python 3.12 installed.
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements-dev.txt
python -m shopfloor rehearse --backend offline --config examples/weekly_promo.yaml
From the repository root with Docker Compose.
docker compose -f retail/docker-compose.yml up
Retail setup and experimentation ↗