Hacker
Narasimman P
@narasimman_26
Elsewhere
Projects
FlagSentinel
Flagsmith Experimentation HackathonNov 2026
We built FlagSentinel — an automated canary guard, global outage immunity engine, and real-time SSE refresh sidecar for self-hosted Open-Source Flagsmith. Problem it solves: Self-hosted Flagsmith OSS lets teams toggle flags and split multivariate traffic, but automated metric-driven rollback is left to custom scripts and real-time SSE flag updates require Flagsmith Enterprise (plus Redis and a separate SSE service). Worse, naive auto-rollback scripts false-trigger during shared infrastructure outages (like a database slowdown) by blaming an innocent feature flag. Who would use it: Backend, SRE, and DevOps teams running self-hosted Flagsmith OSS who want safe progressive rollouts without paying for Enterprise or writing brittle rollback cron jobs. How it works: 1. Progressive Guarded Rollouts (10% -> 25% -> 50% -> 100%): @flagsentinel/sdk wraps @flagsmith/nodejs, tracks per-cohort (control vs. canary) HTTP status & latency asynchronously, and isolates metrics per rollout stage. 2. 1-Tick Fast-Fail & 2-Tick Z-Test Protection: Immediately reverts Flagsmith to 0% on catastrophic canary regressions (~11s), while requiring 2 consecutive statistical breaches (z >= 3.3) so single-request noise never causes false rollbacks. 3. "Flag Not Guilty" Global Outage Immunity: Compares canary error rate against control. When shared infrastructure fails and both cohorts spike equally (0.24% false rollback rate across 5,000 Monte Carlo trials at 35% shared outage), FlagSentinel suppresses rollback. 4. Real-Time SSE Refresh on OSS Flagsmith: Hosts /api/v1/stream and triggers @flagsmith/nodejs's updateEnvironment() immediately on rollback or manual Flagsmith UI edits (1.3–1.6s end-to-end vs. waiting up to 60s polling), plus posts HEALTHY/UNHEALTHY events to Flagsmith Feature Health and ingests HMAC-SHA256 Audit Log webhooks.