Hacker
Eka Vardhan
@ekaa
Projects
FlagWitness — Prove It Before You Flip It
Flagsmith Experimentation HackathonNov 2026
Feature flags let developers change production behavior without deploying new code. But what happens when two individually safe flags interact and silently break an application? FlagWitness is an AI-powered pre-change verification agent for Flagsmith that discovers dangerous feature flag interactions, produces executable failure evidence, and verifies safer rollout configurations before human-approved deployment. Consider an e-commerce team enabling a new checkout engine. The feature works for most customers but causes incorrect charges for customers using a legacy tax system. Disabling the feature for everyone sacrifices functionality, while enabling it globally risks financial errors. FlagWitness provides a third option. A developer describes their intended rollout in natural language. FlagWitness tests the proposed configuration in an isolated Flagsmith environment, evaluates synthetic customer identities through the official SDK, executes application invariants, and identifies reproducible failures. Google Gemini then investigates the interacting flags and proposes targeted alternative configurations. Every alternative is independently executed and ranked according to verified correctness and retained feature exposure. In our live synthetic checkout demonstration: - 12 failed invariant checks were reduced to zero. - 72/72 invariant checks passed for the recommended configuration. - 67% of eligible feature exposure was retained instead of disabling the feature entirely. - The recommended configuration was applied to a live Flagsmith demonstration environment and successfully rolled back. Across three synthetic application scenarios, including a held-out refund settlement scenario, the AI-guided approach retained more eligible feature exposure than our bounded deterministic checklist baseline. FlagWitness is designed for software engineers, SREs, QA teams, platform engineers, and release managers who need greater confidence when changing feature flags. Unlike an ordinary AI assistant, FlagWitness does not simply predict that a rollout might be unsafe. It produces a reproducible counterexample, independently verifies alternatives, and requires human approval before changing the target environment. AI proposes. Execution verifies. Humans approve. Prove it before you flip it.