Hacker
Ayush Kumar
@e4ayush
Projects
flagtrail: the black box for your feature flags
Flagsmith Experimentation HackathonNov 2026
flagtrail is a tamper-evident audit trail for self-hosted Flagsmith. The problem: self-hosted Flagsmith keeps its flags and its audit log in ordinary Postgres tables. Anyone with database access (a DBA, a leaked credential, a compromised host) can change what customers are served, or edit the record of it, without a trace: a change written straight to the database fires no webhook and leaves no audit row. For a bank or a store running pricing experiments, "show me every change, who made it, and prove nobody altered the record" is a question the audit log can't answer. How it works: flagtrail runs beside Flagsmith and watches it from outside. It compares three sources: what Flagsmith reports (signed webhooks), what each environment actually serves (its environment document, every few seconds) and what Flagsmith's audit table admits (through a read-only database role). Everything is sealed into an append-only Merkle log with signed checkpoints (RFC 9162, the design behind Certificate Transparency). When the sources disagree it alerts within seconds (Slack, email, PagerDuty), and it shows the alarm inside Flagsmith's own dashboard with a browser extension. On top of the log it answers the questions that follow an incident, each as a proof anyone can verify offline: who was hit and for how long (every identity re-evaluated with Flagsmith's own rules), the postmortem with every line proven, a SOC 2 / ISO 27001 change-management report, a receipt for what one customer was served, and proof that an experiment ran as registered (or exactly how it was rigged). Who uses it: teams that self-host Flagsmith because they can't use a cloud flag service (banks, payments, healthcare, government) and need their flag history to be evidence. You use it through the Console (a web UI), the CLI, Claude or any MCP client (14 read-only tools), or an Agent Skill that runs a whole incident with the Flagsmith CLI. It installs in one line beside an existing Flagsmith, never writes to it, and is MIT licensed.