Hacker
Karan Singh Bisht
@karansinghbisht09
Elsewhere
Projects
Flag Replay: find which Flagsmith changes broke production
Flagsmith Experimentation HackathonNov 2026
Production is broken, staging works, and a dozen flag changes went out this week. Which ones did it? Sometimes it is not one flag: two changes are each harmless and only break together, and nobody finds that by clicking through a dashboard. Flag Replay is an Agent Skill built on the Flagsmith CLI. It exports the working and the broken environment with `flagsmith environment document`, lists every difference (defaults, segment overrides, identity overrides, variant weights), and replays your own failing check locally against mixes of those differences. Flagsmith's own SDK evaluates each mix, so segments and priorities behave as they do in production. Delta debugging narrows the differences to the changes that cause the failure. In the demo, on a real Flagsmith Cloud project, it finds a two-change interaction among 12 differences in 29 check runs and 2.5 seconds, without touching production. It answers what the on-call engineer has to decide: keep tax engine v2 for everyone, keep the other ten changes, and remove one override that only EU customers get. In a benchmark it isolates a 4-way interaction among 500 changed flags in 132 runs and 13 seconds. Every claim is tied to a check run. It says CAUSE only when the check passes without each change and every run repeats the same way; otherwise it says the result is narrowed, unexplained or inconclusive, and offers no plan. It then proves which single revert repairs the check, by running it twice on the exact flags the revert leaves behind, prints the CLI commands and the rollback, and hands over to a person. After the person applies it, the tool reads the flag back, re-runs the check on the live flags and writes an incident record: cause, the run behind each claim, who last changed each culprit, fix, rollback. A complete recorded run is in the repo under evidence/. It is for on-call engineers and release owners on any team with more than a handful of flags. Investigating never needs live traffic, a canary, or a write to production.