Types of feature flags: release, experiment, ops, permission and how long each should live
The types of feature flags explained: release, experiment, ops (kill switches) and permission flags, how long each should live and how dynamic it is, and how LaunchDarkly, Unleash, Statsig, PostHog, Flagsmith and GitLab classify them, with Unleash's expected lifetimes read from its API.
Short answer: The most widely cited classification has four types, from Pete Hodgson's article on Martin Fowler's site: release flags hide unfinished work for days or weeks, experiment flags split users for A/B tests, ops flags let operators change behavior (including kill switches), and permission flags decide who gets a feature, sometimes for years. The type tells you how long the flag should live and when it's stale.
What are the four types of feature flags?
Hodgson's Feature Toggles article sorts flags by two things: "longevity", how long the flag will live, and "dynamism", how much the decision changes from request to request.
| Type | What it's for | How long it lives | How dynamic the decision is |
|---|---|---|---|
| Release | Hide unfinished or rolling-out features | Short: "a week or two", per Hodgson, though product-centric ones may stay longer | Static: the same decision for everyone on a release |
| Experiment | Split users between variants to measure a difference | Hours to weeks, until the result is in | Highly dynamic: each user gets a consistent variant |
| Ops | Let operators change system behavior, including kill switches | Mostly short; kill switches can be permanent | Must be changed "extremely quickly" |
| Permission | Give features to some users (plans, betas, internal users) | Can be years, for example for premium features; shorter for betas | Decided per request |
The type matters most for cleanup. Release and experiment flags are temporary and should be removed; kill switches and permission flags are meant to stay, so a stale-flag report that treats them alike is noisy (stale feature flags). Putting the type in the flag key makes this visible in code (naming conventions).
How do flag tools classify flag types?
From each tool's documentation, checked on 15 November 2026:
| Tool | Types | Lifetime rules |
|---|---|---|
| Unleash | Release, Experiment, Operational, Kill switch, Permission, Sunset | Expected lifetime per type (table below); flags are marked potentially stale once they pass it; admins can change the lifetimes |
| LaunchDarkly | Flag templates: Release, Kill switch, Experiment, Migration, Custom | Release, experiment and migration flags are temporary; kill switches are permanent; custom flags are either. Temporary flags 30+ days old can show as ready for code removal or archiving; criteria are configurable |
| Statsig | Feature gates (on/off), dynamic configs (JSON values), experiments | Gates are temporary by default or marked permanent; a gate is stale after no checks in 30 days, or when its first check was 30+ days ago |
| PostHog | Boolean ("release toggle"), multivariate, remote config; experiments as a preset | Stale after 30+ days without evaluations, or 30+ days at 100% with no property filters |
| Flagsmith | One kind: an on/off flag with an optional typed value (remote config), optionally multivariate | Stale flag detection after 30 days by default, per project, excluding flags tagged permanent (Scale-up and Enterprise plans) |
| DevCycle | Release, Ops, Experiment, Permission (Hodgson's four) | Not stated per type; ops features can stay long-term as kill switches |
| GitLab (its own codebase) | gitlab_com_derisk, wip, beta, ops, experiment, plus worker and markdown_cache |
2 to 6 months after merge for temporary types; ops has no limit but must be reviewed every 12 months |
Sources: Unleash feature flags, LaunchDarkly flag templates, release, kill switch, experiment, migration and custom flags; flag status; Statsig feature gates, dynamic configs and permanent and stale gates; PostHog creating flags and stale flags; Flagsmith flag management and stale flags; DevCycle feature types; GitLab development feature flags.
Two things stand out. LaunchDarkly and Unleash give kill switches their own template or type, permanent by default, though LaunchDarkly still describes them as operational flags and Hodgson files them under ops toggles. And some tools add a type for a specific job: LaunchDarkly's migration flags (see database migrations behind feature flags) and Unleash's sunset flags for removing a feature.
How long should each type of flag live?
Unleash is the only tool here that sets a different expected lifetime for each flag type; Statsig, LaunchDarkly, Flagsmith and PostHog instead use one staleness threshold (30 days by default) with a way to mark flags permanent, and ConfigCat reports "zombie" flags after a threshold you choose (zombie flags). We read Unleash's lifetimes from the open-source Unleash server 8.3.1's API (GET /api/admin/feature-types) on 15 November 2026:
| Unleash type | Expected lifetime | Description (from the API) |
|---|---|---|
| Release | 40 days | Roll out new or incomplete features |
| Experiment | 40 days | A/B and multivariate testing |
| Operational | 7 days | Transition between technical implementations with minimal risk |
| Kill switch | Permanent | Quickly disable certain functionalities or features |
| Permission | Permanent | Control feature access based on user roles or entitlements |
| Sunset | 90 days | Coordinate the planned removal of an existing feature |
The script and output are published; it needs Docker. Unleash's "operational" type is the short-lived kind of ops flag (switching implementations); its long-lived ops flags are kill switches.
GitLab's policy for its own code is a useful benchmark from a large codebase: gitlab_com_derisk flags must go within 2 months of merging, wip within 4, beta and experiment within 6, and ops flags have no limit but must be evaluated every 12 months (GitLab development docs). Hodgson's guidance for release toggles is shorter still, "a week or two", though he allows that product-centric toggles may need to stay longer.
Which type should a new flag be?
- Will it be removed when the feature is fully out? A release flag. Give it an owner and a removal date when you create it.
- Are you measuring a difference between variants? An experiment flag, removed when the experiment ends (see A/B testing with feature flags).
- Is it a switch operators flip in an incident? A kill switch: permanent, boolean, defaulting to the safe behavior, and tested regularly so it works when needed.
- Is it a short-term operational change (moving to a new implementation or data store)? An ops flag with a short lifetime, like Unleash's operational type or LaunchDarkly's migration flags.
- Does it decide which customers get something, for as long as the product sells it? A permission flag, or better an entitlement in your billing system (entitlements vs feature flags).
- Is it a value rather than on/off (a timeout, a limit, copy)? That's remote configuration: Statsig (dynamic configs) and PostHog (remote config flags) model it as a separate kind, while Flagsmith, LaunchDarkly (multivariate flags) and Unleash (variant payloads) attach values to flags (remote config vs feature flags).
Does the type change how the flag is implemented?
Yes, in two ways that Hodgson describes:
- Where the decision is made. Hodgson prefers static configuration where the flag allows it: a release flag that's the same for everyone can be read from configuration at startup. Flags that decide per request, like experiment and permission flags, need what he calls a more sophisticated toggle router, which today usually means a flag SDK or service with the user's context.
- How the code is written. Short-lived flags can be simple
ifstatements, because they'll be deleted soon. For long-lived flags he warns against "sprinkling if/else checks around indiscriminately" and recommends separating the decision point from the decision logic (a feature-decisions object), inversion of decision, or the strategy pattern.
For more on flags in general, see what is a feature flag, and for short definitions of related terms, the glossary. All tools are in the directory.