Skip to content

FEATURE_FLAG_DECISION_ITEM

const FEATURE_FLAG_DECISION_ITEM: typeof FEATURE_FLAG_DECISION_ITEM

Defined in: packages/pipeline-feature-flags/src/feature-flag.behavior.ts:86

Unique symbol key set on context.items with the full FeatureFlagDecision: raw boolean value, final enabled decision, provider variant/reason/error metadata, and targeting key when available.

This lets audit/logging/telemetry behaviors inspect the exact decision without evaluating the flag a second time.

const decision = context.items.get(FEATURE_FLAG_DECISION_ITEM) as
| FeatureFlagDecision
| undefined;
if (decision?.variant === 'treatment-a') {
// enrich telemetry/audit metadata
}