Hacker
Sagar Rathi
@sagar_r
Projects
guardrail-pilot
Flagsmith Experimentation HackathonNov 2026
I built GuardrailPilot, a safety watchdog and human approval gate for Flagsmith experiments. While building with Flagsmith Experimentation, I ran into three real issues. First, the results refresh API is rate-limited to once every 5 minutes, so if a new AI variant starts crashing on messy real-world inputs, users keep hitting errors long before the dashboard updates. Second, experiment dashboards can show a high win probability even when the 95% credible interval still crosses 0%, which makes it easy to ship a lucky fluke. Third, calling Flagsmith's /pause/ endpoint stops experiment tracking, but doesn't reset the variant's rollout percentage back to 0%, so broken traffic keeps getting served unless you also update rollout weights. And nobody wants an AI agent silently flipping production flags without a human signing off. Any engineering or AI team running live A/B tests with Flagsmith can use it. In my app, an invoice-extraction API splits traffic 34/33/33 across Control, Variant A (schema validation and repair), and Variant B (a faster parser that skips cleanup) using Flagsmith's get_experiment_flag and track_event. GuardrailPilot checks error rates every second instead of waiting 5 minutes, locks shipping whenever the 95% credible interval crosses 0% or sample counts are too low, and asks Gemini to explain crashes in plain English. When Variant B spikes past the 5% error limit, it prepares the exact Flagsmith API update and waits for a human to click Approve Rollback to Control before sending both /pause/ and /rollout/ to move 100% of traffic back to control in under 2 seconds.
SentinelOps
Flip the Switch HackathonNov 2026
SentinelOps is an Autonomous SRE Incident Commander for DevOps and SRE teams. When production outages strike, SRE teams burn an average of 40+ minutes and over $5,600 every minute just aligning on what broke. SentinelOps transforms AI coding agents from isolated terminal tools into active room teammates inside shared chat (Mattermost/Slack) via Switch. It automatically catches service crashes, scrubs customer PII via Switch Trust, isolates breaking commits with automated git bisect, and posts an interactive triage briefing. With strict human-in-the-loop governance, an on call engineer replies "approve rollback". Upon approval, it executes a sandboxed git revert, runs a full 42-test pytest regression suite, redeploys the target container, updates living postmortem documentation, and slashes Mean Time to Remediate (MTTR) from 45 minutes down to 34 seconds (a 98% reduction). Built natively for Switch AI with 100% reproducible local execution.