add-a-feature-flag
Add a feature flag
A read scope is the partition for a flag value and its evidence.
A flag selects behavior through a declared ladder. Each climb needs evidence from the current rung and its exact read scope.
Read Flags climb on evidence and Feature flags first.
1. Decide whether a flag fits
Use deployment Config for kill switches and safety stops. KV is eventually consistent. Another location can retain an old value for 60 seconds or more.
off records a stop without waiting for approval. It does not make KV propagation immediate. A stop that must affect every request immediately needs a stronger control path.
EVENTS_ENABLED stays deployment Config because it selects cloud resources. Change its Config value and review the infrastructure plan.
2. Declare the ladder
Use defineFlag in core or the child's declaration module.