Hacker
Pranav Kadam
@pranavk429
Elsewhere
Projects
Experiment Isolation
Flagsmith Experimentation HackathonNov 2026
I built Experiment Isolation. It fixes a problem that's easy to miss with A/B tests: two experiments can target the same audience, so the same people end up in both. If both tests show a lift, you can't tell which change actually did it. Flagsmith can't stop this today because each experiment audience only holds one segment, and two experiments can point at the same one. The tool runs before launch. It samples a fixed set of users, measures the overlap, and exits with code 10 if the experiments collide. Then it plans a fix: it splits the shared audience into non-overlapping bucket ranges (0 to 49 and 50 to 99) while keeping the original rules like US mobile. Nothing changes until a human approves the exact plan with an HMAC token. After applying, it re-samples the same users and proves the overlap is 0. It also writes a compact 121-token receipt with the before and after state plus rollback references. It's built as a standalone Agent Skill with a zero-dependency Python 3.9 engine, and the repo includes a self-hosted Flagsmith 2.291.0 lab that runs the whole loop with one command. It's for teams running more than one experiment in the same environment who want to catch the collision before launch instead of after the numbers look weird.