Hacker
Aarush Pareek
@aarushpareek
Projects
Flag Doctor: make every Flagsmith feature flag outage-safe
Flagsmith Experimentation HackathonNov 2026
When an app cannot reach Flagsmith, the SDK falls back to default values written in the code. Teams set these once and forget them, and they are often dangerous: a permission flag that defaults to ON gives every user the admin panel, a kill switch that defaults to ON pauses all payments, and a release at 100% that defaults to OFF sends users to deleted code. Copying today's live value does not help either, because "ON for admins only" cannot be expressed as a single fallback. Flag Doctor is an Agent Skill for any team that uses Flagsmith. A developer tells their coding agent "make our flags outage-safe", and the skill: 1. Inventory: lists every flag in Flagsmith and every flag used in the code, with its current fallback. 2. Census: reads git history to find who added each flag, when and why. 3. Diagnose: a rules engine classifies each flag (permission, paid, kill switch, experiment, release, dead, missing) and picks the safe fallback for its type. Permission and paid flags fail closed, kill switches stay off, experiments fall back to control, releases match production. 4. Approve: shows a risk table and an approval code, then stops until a human types the code. 5. Treat: fixes the fallbacks on a new git branch, saves an offline snapshot of the environment, and writes a note into every flag in Flagsmith (type, owner, safe fallback, origin commit). 6. Prove: simulates an outage and checks every flag, for every test user, against live Flagsmith. In the demo, 42 of 42 checks pass. The result is three layers of protection: live Flagsmith, then the offline snapshot (every user still gets the right answer, segments included), then fallbacks that are safe for everyone. The demo app, Marlow, is a small London coffee shop with five planted outage traps, which shows each trap going off and then being fixed.