---
slug: "FeatureFlag"
name: "FeatureFlag"
type: "Protocols"
layer: "Society"
ref: "FeatureFlag#dd17"
sema_id: "sema:FeatureFlag#mh:SHA-256:dd1786602a5f6a608ac5a4ee986715239a7ee218ef831eb350d9f1dcf563da3b"
tags: ["Society","Protocols"]
updated: 2026-11-11
mindscape: "bootstrap"
index_url: https://mindscape.world/scapes/bootstrap.json
url: https://mindscape.world/bootstrap/FeatureFlag/
related: ["Condition"]
---

# FeatureFlag

Runtime functionality toggle

Layer: Society · Category: Protocols

## Mechanism

A toggle point in the code that allows functionality to be enabled or disabled at runtime based on a [Condition](https://mindscape.world/scapes/bootstrap/Condition.md). It decouples deployment from release, enabling safer rollouts and A/B testing.

## Invariants

—

## Failure modes

- Flag outlives its purpose, accumulating unused conditional branches.
- Flag state inconsistent across distributed evaluators.

## Builds on

- [Condition](https://mindscape.world/scapes/bootstrap/Condition.md) (Infrastructure; References)

## Used by

—

## Identity

- Sema ID: `sema:FeatureFlag#mh:SHA-256:dd1786602a5f6a608ac5a4ee986715239a7ee218ef831eb350d9f1dcf563da3b`
- Ref: `FeatureFlag#dd17`
- Supersedes:
  - `sema:FeatureFlag#mh:SHA-256:9464b708479fc75cc5d825850393199c41c35e06f20a2861954e98f8edcfa8a8`

## Links

- [Pattern page](https://mindscape.world/bootstrap/FeatureFlag/)
- [View in the interactive graph](https://mindscape.world/bootstrap/#FeatureFlag)
- [JSON](https://mindscape.world/scapes/bootstrap/FeatureFlag.json)
- [Index of all patterns](https://mindscape.world/scapes/bootstrap.json)
