Hacker
Aditya Chimurkar
@inslot2525_ctrl
Elsewhere
Projects
aa-canary: catch fake A/B winners by counting what was sent
Flagsmith Experimentation HackathonNov 2026
Experiment gates check the numbers Flagsmith shows you. aa-canary checks whether those numbers are complete. The problem: when events get lost between your app and Flagsmith (ad blockers, SDK buffers, broken collectors, renamed events), the dashboard can show a winner that doesn't exist. In our demo a checkout button with no effect scored a 99.3% chance to win in Flagsmith. The split looked healthy (p = 0.21) and both arms had plenty of conversions, because 23 of 94 control conversion events never arrived. Every check that reads only the experiment's own numbers passes this one. What we built: a permanent A/A experiment on self-hosted Flagsmith. On a schedule (hourly by default) it sends known, labelled identities through the same SDK and pipeline as your real experiments, keeps a ledger of what it sent, reads Flagsmith's results back and checks: sent vs counted per arm (exposures and conversions), an independent sample-ratio test against the declared split, an A/A "no winner" check, and that results exist and are fresh. The verdict (TRUSTED / UNTRUSTED / NO_DATA, with a plain-English reason) is written to a Flagsmith flag, canary_pipeline_trusted. Who uses it: teams running Flagsmith experiments who ship winners. Any deploy script, our GitHub Action or the Flagsmith CLI reads the flag. `canary ship` refuses to roll out a winner while the flag is red, missing or stale, or if the experiment collected data while the canary was red, and only ships on Flagsmith's "winning" verdict and data floor plus a credible interval clear of zero. Evaluation: a randomized blind holdout. Code and thresholds were frozen at a git tag, then a public drand beacon round published afterwards picked the faults and loss rates (as low as 4%): 12 of 12 faulty windows flagged (95% CI 73.5-100%), 0 of 6 clean windows flagged. The sample-ratio check fired in 1 of the 12; counting what was sent fired in all 12. Small sample, fault families from our own catalogue; the README says both. All traffic is synthetic and labelled, and every number comes from a file in results/.
FORT@omeexzoro