Hacker
racha sumanth
@sumanth_bro
Elsewhere
Projects
StatGuard — Flagsmith's Non-Bypassable Experimentation Control Plane & Lifecycle Agent
Flagsmith Experimentation HackathonNov 2026
StatGuard is Flagsmith's missing non-bypassable Experimentation Control Plane across Cloud and self-hosted OSS. Today, AI coding agents stop right after starting a Flagsmith experiment or blindly promote early "peeking" results (Bayesian mirages where the 95% credible interval still crosses zero), ship conversions that regress error guardrails, and leave stale multivariate branches behind in production code. StatGuard solves the entire experimentation lifecycle end-to-end: - Track 1 (Live API Contract Bench — https://d36avlyfr4clp4.cloudfront.net/): A React + TypeScript Flagsmith app comparing blank_canvas vs preloaded_starter API contract onboarding with persistent visitor IDs, balanced 50/50 multivariate bucketing, real HTTP probe execution, and an interactive Live Flagsmith Telemetry HUD showing $flag_exposure and trackEvent flushes in real time. - Track 2 (StatGuard Agent & 5-Tool MCP Server `statguard-mcp`): Audits experiment health (`statguard doctor`), blocks Sample Ratio Mismatch, Bayesian mirages (CI crossing zero), and guardrail regressions, issues cryptographic HMAC human confirmation challenges (`statguard confirm <id>` — preventing LLMs from self-approving "APPROVE"), writes pre-mutation Flagsmith rollback snapshots, archives winning flags, and uses an AST/marker janitor to prune dead JSX/TS branches and open a build-and-test-verified cleanup PR. - Track 3 (Self-Hosted OSS Flagsmith + Local Fallback): 1-command `deploy/docker-compose.oss.yml` (`flagsmith/flagsmith:2.295.2` + `postgres:15-alpine`) plus local Welch/Bayesian fallback (`local_oss_fallback`) whenever OSS Flagsmith `/results/` returns `inference: null`. - Track 4 (Portable Agent Skill `flagsmith-statguard-ship`): Self-contained CLI v2.0.0 (`--json --jq`) skill fixing real CLI bare-array gojq and `--archive` quirks while cutting inspect+gate payload tokens by 81.99% (1,960 -> 353 tokens).