Hacker

Arjun Haldiya

@arjunhaldiya

Joined Oct 2026AI fellow at KPMG - Break Through TechUnited States

Projects

  • Tripwire: variant-level guardrails for Flagsmith experiments

    Flagsmith Experimentation HackathonNov 2026

    Flagsmith Experimentation tells you which variant wins, but its results can take hours to arrive, and a broken variant hurts users in minutes. Tripwire closes that gap. It is a small Go service that watches guardrail metrics (error rate and slow requests) for each variant of a multivariate flag and, when a variant is clearly worse than control, pulls it to 0% through Flagsmith itself, within about a minute. Why it is new: rollback tools like Flagger and Argo Rollouts compare a canary deployment with a stable one. Flag variants run inside the same deployment, so those tools cannot tell a broken variant from a healthy one. Tripwire works at the variant level. Who would use it: any team running A/B tests or gradual rollouts with Flagsmith that wants a safety net while an experiment is still collecting data. How it works: every 15 seconds it reads each variant's errors and requests from Prometheus over the same time window and computes the probability that the variant's error rate is higher than control's (Beta posteriors, Monte Carlo). If that probability is at least 99.9% on three checks in a row, it sets the variant to 0% through the Flagsmith Admin API, tags the feature `tripwire:compromised` (a pull taints the experiment's data), writes an audit log, and posts a readable notice to Discord or Slack. Safety: the kill switch is itself a Flagsmith flag, there is a dry-run mode, and a shared outage (control failing too) does not trigger a pull. We backtested the decision code: the common 95% threshold with 2 checks would wrongly pull a healthy variant in about 95% of simulated one-hour runs; our defaults do it in about 1%. The repo includes a demo shop, a load generator, an idempotent bootstrap script and an end-to-end test that runs in CI. Try it with one command: `docker compose up -d --build`.