The kill switch you wish you had built before launch

The feature was doing harm in real time, and the fastest way to stop it was a code deploy that would take forty minutes. Nobody had built an off switch.

The kill switch you wish you had built before launch

A director of engineering at a consumer app company described the worst twenty minutes of a launch week. Their new AI feature had started giving users a response that was actively harmful to the product experience, and the team agreed immediately that it needed to stop. Then they discovered there was no way to stop it quickly. The feature was wired into the main flow, turning it off meant a code change, and a code change meant going through the full deploy pipeline, which on a good day took forty minutes. So the harm continued for forty minutes while a fix rolled out, and everyone watched, because nobody had built a way to simply switch the feature off.

The ability to stop is a feature you have to build

When a feature is behaving well, an off switch feels unnecessary. You built the thing to be on. Turning it off is not part of the happy path, so it does not make the launch checklist, and the team ships without a fast way to disable what they just shipped. This is fine right up until the feature does something you need to stop, at which point the missing off switch becomes the most important thing about the system.

AI features raise the stakes on this, because they can fail in ways that do harm while technically working. A deterministic feature that breaks usually errors, and an erroring feature often fails safe, it stops doing the thing. An AI feature that goes wrong keeps running and keeps producing output, and the output is the harm. It does not fail safe, it fails loud, generating bad results for every user who hits it until someone stops it. And if the only way to stop it is a deploy, you are measuring the harm in deploy cycles, which is the wrong unit entirely when real users are affected each minute.

The team almost always knows what to do during these incidents. The decision to stop the feature is easy and fast. What is missing is the mechanism to act on the decision, and building that mechanism after you need it is too late by definition. The kill switch is worth nothing during the incident if it was not built before the incident.

Build the off switch before the on switch ships

The lesson is that any AI feature that can do harm needs a fast, deploy-free way to turn it off, and that switch has to exist before launch, because you cannot build it during the incident it is meant to handle. It is not a nice-to-have, it is part of shipping the feature responsibly.

What a real kill switch for an AI feature looks like.

  • A runtime toggle that disables the feature without a code deploy, so stopping it takes seconds, not deploy cycles.
  • A safe fallback the feature drops to when switched off, so users get a graceful degraded experience rather than a broken one.
  • Access for on-call to flip it, so the person handling the incident can act without waking the team that built it.
  • A tested path, exercised before launch, so the switch is known to work when it is finally needed under pressure.
  • Granularity where it helps, so you can disable the feature for one segment or one path rather than only all or nothing.

The switch will sit unused most of the time, and that is fine. The one incident where you need it will pay for every minute it took to build, several times over.

How we approach it at Density Labs

The missing kill switch is one of the most preventable AI incidents we see, and it comes from the same place every time. The feature was built to be on, turning it off was never on the checklist, and the team discovers during a live incident that their only lever is a deploy. The decision to stop is instant. The ability to stop is forty minutes away, because nobody built it.

Our AI Opportunity Assessment is a fixed two-week engagement, priced at $2,500, that scopes the real work of shipping an AI feature. A fast, deploy-free way to turn the feature off is part of that scope, because an AI feature that can do harm needs an off switch as much as it needs an on switch, and the off switch has to exist before you find out you need it.

You will hope to never use the kill switch. Build it anyway, because the day you need it, you will not have time to build it.