Hacker
Doraking X
@doraking
Elsewhere
Projects
DoNotMix — find the feature-flag combinations that break your app
Flagsmith Experimentation HackathonNov 2026
DoNotMix finds the feature-flag combinations that break your app, before your users do. Every flag ships with its own tests and each one passes, but nobody tests the combinations: 10 flags already give 1,024 states, and segment overrides give different users different mixes. The worst cases throw no error at all. Who would use it: teams that ship behind Flagsmith flags (developers, QA, release managers) and the coding agents working for them, before a release or in CI. How it works: 1. Snapshot a Flagsmith environment read-only through the official Flagsmith CLI (environment document, flag list, segment list). 2. Constrain the space with requires/excludes rules, so only feasible states are tested. 3. Analyze the code for flags that interact (read in the same function, through calls, or writing the same field) to build a risk prior. 4. Plan a constrained covering array. In the demo, 25 states cover every 2- and 3-way combination of 10 flags. 5. Run your real test suite on each state and persona. The Flagsmith SDK in offline mode evaluates each state, so segment overrides behave exactly as in Flagsmith. 6. Shrink each failure with delta debugging to the minimal flag combination, and check whether it is sufficient or only context-dependent. 7. Propose the smallest pre-verified flag change. Only a human can approve it. Apply is drift-checked, changes exactly the approved flags through the CLI, reads them back, re-scans and writes a hash-chained audit log. It ships as a CLI with CI exit codes, a dashboard, a GitHub Action, a one-command Docker stack with self-hosted Flagsmith, and an Agent Skill. On the demo store it found all 4 planted bugs: a silently wrong checkout total caused by 3 flags together, a 2-flag crash, a bug that needs a flag switched OFF, and a bug that only the beta segment sees.