Hacker
Kotra Lingaraju
@kotra
Projects
FlagGuard OSS — Self-Healing Release Controller for Self-Hosted Flagsmith
Flagsmith Experimentation HackathonNov 2026
Feature flags are great for shipping new code safely, but rolling back a broken release is still a manual headache. When a new feature starts throwing errors or slowing down in production, someone still has to notice an alert, figure out which flag caused it, log into the dashboard, and flip the switch off—all while real users are hitting errors. I built FlagGuard OSS to close that loop automatically on top of self-hosted Flagsmith. Instead of treating flags as passive on or off switches, FlagGuard lets developers wrap any Spring Boot endpoint with a simple @FlagGuarded annotation and set basic health rules, such as a maximum 15% error rate or an 800ms latency limit. Under the hood, it checks the live flag state from Flagsmith, tracks how the endpoint performs on every request, and streams those metrics in real time to a Next.js dashboard over Server-Sent Events. If a feature starts failing or lagging, FlagGuard's watchdog catches it within seconds, automatically calls Flagsmith's Management API to turn the flag off, routes traffic back to the safe fallback code, and logs the incident with exact failure metrics. Once the bug is fixed, you can re-enable the flag in Flagsmith with a single click from the dashboard.