A few years ago I'd have told you feature flags were an unambiguous good — ship behind a flag, roll out slowly, flip the switch off if something breaks. We adopted that gospel at a client's company and ran with it for eighteen months. By the time anyone asked "do we actually need all these?" we had 340 flags in production, and nobody — not the team that wrote them, not the one currently maintaining the code — could tell you what more than half of them actually did anymore.
The flag was supposed to be temporary
Every flag starts the same way: a developer wraps a risky change in if (flagEnabled('new-checkout-flow')), ships it dark, turns it on for 5% of traffic, watches the dashboards, and ramps up. That part works great. The part nobody plans for is step six — the one where the flag gets deleted once the rollout finishes. Deleting a flag means touching code that's currently working, writing a PR with zero visible user impact, and getting it reviewed, against a backlog full of things that visibly matter. So it doesn't happen. The flag just sits there, permanently true, an if-statement nobody will ever read again, until two more flags get nested inside its "true" branch and the thing becomes load-bearing by accident.
What it actually cost us
The sprawl wasn't abstract. We had a production incident where disabling an old flag — one everyone assumed was dead weight — also turned off rate limiting on an internal API, because someone back in 2024 had tied the two together as a quick fix and never documented it. Nobody on the team at the time of the incident had written that code, and the flag's name gave no hint it touched rate limiting at all. We spent four hours of an on-call engineer's night figuring that out, for a mechanism that was supposed to make releases safer.
That's the part that stings: flags are sold as a risk-reduction tool, and used carelessly they become a second, undocumented configuration layer running parallel to your actual codebase — one with none of the review rigor you'd apply to the code it's gating.
My actual take
I don't think the answer is "stop using feature flags." They're still the best tool we have for decoupling deploy from release. The answer is that a flag needs an expiration date the moment it's created, not a vague intention to clean it up "later." We now require a ticket, a named owner, and a kill date in the flag's metadata before a flag merges at all, plus a weekly job that calls out anything that's overstayed it. It's a small amount of ceremony that feels like overhead on day one and saves you from a 340-flag graveyard eighteen months in.
The lesson generalizes past flags: any mechanism you add to make change safer is itself a piece of software, and it needs maintenance, ownership, and an exit plan like everything else you ship. If it doesn't have one, it isn't reducing risk — it's just moving the risk to a date nobody picked, which arrives whether you're ready for it or not.
Takeaway
If your team uses feature flags, go count how many you actually have running right now, and how many have an owner who could tell you what happens if they're removed. The gap between those two numbers is your technical debt, measured honestly.