
Feature Toggle Types: A Working Taxonomy
Two flags can be identical in code and have opposite requirements. The four toggle types, the two axes that, among other factors, can help guide how each is managed, and what the classification fixes.
TL;DR: Two flags can be identical in the code — a boolean and an if — and have opposite requirements: one gets deleted soon after its rollout, the other must survive for years and answer per request. Nothing in the language distinguishes them, so the classification has to be carried by the author. This piece uses the four-type taxonomy (release, experiment, ops, permission), places it on the two axes its author treats as big factors, among others, that can help guide how toggles are managed — lifespan and dynamism — and shows what the classification then fixes: where the toggle point belongs, whether the value must be dynamic, what has to be tested, and whether the flag has a death date at all.
The classification is an engineering decision, not paperwork
Here are two flags. One hides a checkout redesign that ships shortly and is deleted the day after. The other decides whether an account on a particular plan sees an export button, and it will still be there when everyone currently on the team has left.
In the code, they are the same thing. A boolean, an if, two paths. There is no keyword that distinguishes them, no type that captures the difference, nothing in a code review diff that says which one you are looking at.
Everything downstream depends on telling them apart. The first one should not be dynamic — it changes at a deploy, and giving it a runtime source buys complexity nobody asked for. The second must be evaluated per request against the account asking. The first is a bug if it is still alive long after the rollout. The second is doing its job. The first needs both paths tested until the rollout finishes and neither afterward. The second needs both paths tested for as long as it stays.
None of that is derivable from the code. It can only be carried by the author, at the moment of writing, and the cost of skipping the step is paid by whoever inherits the branch and cannot tell which kind they are holding.
The taxonomy used here is Pete Hodgson's, from his feature toggles article (martinfowler.com, first published 2016, revised 2017). His names are Release, Experiment, Ops and Permissioning Toggles, shortened here to release, experiment, ops and permission. The taxonomy classifies intent rather than implementation, so nothing about it depends on which flag system is currently fashionable.
The four types, stated by what they hide
A release toggle hides work that is not finished — or, as Hodgson also describes, work a product manager is not yet ready to expose even when it is fully implemented and tested, for example because the release is being coordinated with a marketing campaign. Its first purpose is to let the trunk keep moving while a feature is still being built, so the team does not pay for a long-lived branch and the merge at the end of it. It is transitional by nature: Hodgson writes that release toggles should generally not stick around much longer than a week or two, although product-centric toggles may need to remain in place for a longer period. Once the feature is released, the toggle has no job. A release toggle that survives its release is not a permanent fixture; it is a defect nobody has noticed.
An experiment toggle splits a population into paths so behavior can be compared. Its lifetime is the length of the comparison, which makes it short-lived in intent and, unless someone removes it, able to outlive the comparison. One note on scope, stated once and meant: this piece owns the toggle as a splitting mechanism. Whether the new path actually won, by how much, and with what confidence is experiment design — a different discipline with its own literature, and one this topic deliberately leaves to it.
An ops toggle gives an operator a switch to degrade or disable behavior under load or failure. It is the only type whose entire purpose is to be thrown in anger. Hodgson notes that most ops toggles will be relatively short-lived: once confidence is gained in the operational aspects of a new feature, the flag should be retired. He adds that it is not uncommon for a system to have a small number of long-lived kill switches, which let operators gracefully degrade non-vital functionality when the system is enduring unusually high load, and that a few such controls may be left in place almost indefinitely. Those are legitimately long-lived: a lever for an emergency that has not happened yet is not stale merely because the emergency has not happened.
A permission toggle gates behavior by entitlement or cohort — a plan, a role, an internal-only or beta feature. How long it lives depends on what it gates. Hodgson notes that one used to manage a feature exposed only to premium users may be very long-lived compared to other categories of toggles — at the scale of multiple years. A gate that turns a new feature on for internal or beta users first (his "Champagne Brunch") is an early-access step, and it has no job once the feature is open to everyone. And sometimes, looked at closely, the plan-gating kind is not really a flag at all: it is a product rule wearing a flag's clothes, which is worth noticing because product rules deserve to live where product rules live.
The two axes that can help guide how toggles are managed
The four names are useful. The two axes underneath them are the ones Hodgson calls two big factors that can help guide how toggles are managed; he notes there are other factors to consider, such as who will manage the toggle.
Lifespan (his "longevity") runs from hours to years, and for a few kill switches almost indefinitely. It answers exactly one question: does this flag have a death date? That question decides whether the flag belongs in the debt frame at all. A flag with a death date must be tracked toward it, and its survival past that date is a defect. A flag with no death date must not be treated as debt, and deleting it because nobody has touched it is its own failure.
Dynamism runs from redeploy-to-change, through runtime-configurable, to evaluated per request against context. It answers a different question: how fast must the value change, and against what does it change? That decides whether a value can be a constant compiled into the build or has to travel from somewhere at runtime — which is the difference between no runtime dependency and a new one on every path that asks.
The axes are independent, and the pairing is where the engineering falls out. A long-lived, per-request flag — a permission gate on a plan — and a short-lived flag that usually changes only with a deploy — a release toggle — share a data type and nothing else. They want different toggle points, different delivery, different tests, and opposite treatment at cleanup time. Reading the type name tells you less than reading the pair.
What the classification fixes downstream
| Type | Toggle point | Delivery requirement | Who changes it | Test surface | Removal condition |
|---|---|---|---|---|---|
| Release | High — routing or a swapped implementation, so deletion is one edit | Redeploy is usually enough | The team, at merge or ramp | Both paths, until the ramp finishes | The rollout reaches full traffic |
| Experiment | At the point the paths diverge | Evaluated per subject at runtime; the configuration itself can stay static, changed by a deploy | Whoever runs the comparison | Both paths, for the comparison's life | The comparison concludes |
| Ops | Wrapping the expensive or fragile call | Runtime, and fast — the switch is only as quick as its delivery | An operator, under pressure | Both paths, for as long as the toggle stays — the degraded path is production code | Confidence in the new feature's operational behavior is gained; a few kill switches may stay almost indefinitely |
| Permission | Where the entitlement is already known | Per request, against the account | Product rules, or an admin | Both paths, for as long as the gate stays | None while it gates a plan; for an internal or beta cohort, the feature opening to everyone |
Two misclassifications are worth singling out.
The first is a release toggle given runtime dynamism it does not need. It feels free — the flag system is already there, so why not put the flag in it — and it is not. A build-time constant has no runtime dependency, no propagation delay, no bootstrap window, and no behavior when the source is unreachable, because there is no source. Routing a short-lived toggle through a service buys a permanent delivery dependency to solve a problem the flag never had.
The second is the reverse and worse: a permission rule implemented as a release toggle. Now a permanent product rule is sitting in the bucket meant for temporary code, where it will eventually be found by someone doing a cleanup sweep who sees a long-forgotten flag at 100% and does the reasonable thing. The classification is what stops that, which is why it belongs in the code and not in someone's memory.
One legitimate move deserves naming, because it looks like drift and is not. An experiment toggle that wins becomes a release toggle on its way to deletion: the comparison is over, the winner is chosen, and the flag now exists only to carry the winner to full traffic. That is a deliberate edit — the type changes, the removal condition changes, and both are rewritten. What is not legitimate is the same thing happening by neglect, where nobody edits anything and the flag simply stops being what its declaration says it is.
The classification written where the code can see it
A type that lives only in the author's head is worth nothing the moment the author moves on, and a flag can outlive its author's time on a team. So it goes next to the flag: the type, the owner, the removal condition.
Not in a ticket, which will be closed. Not in a dashboard, which is a different system with its own drift. In the code, because the code is the artifact that stays attached to the branch it describes through moves, renames, and refactors.
What the declaration buys is concrete rather than aspirational. Staleness can only be detected automatically if something says what stale means for this particular flag — and that sentence is exactly what the type plus the removal condition provides. Without it, every cleanup sweep is a human reading branches and guessing at intent, which is one reason cleanup sweeps get skipped. This is the sense in which the taxonomy is a precondition for the lifecycle work rather than a parallel concern.
The honest limit: a declared type is a claim, not an enforcement. Nothing stops a release toggle labeled "delete after the March rollout" from being alive the following March. The declaration makes the gap visible and machine-detectable; it does not close it. Only the removal discipline does that.