Prompt
My kill switch isn't disabling the feature, what should I check?
Latest observation
Nov 25, 2026
OpenAI APIWeb search: off
If a kill switch isn’t disabling a feature, check these common failure points:
-
Flag source / environment
- Make sure you’re changing the flag in the right environment: prod vs staging, correct region, correct tenant/account.
- Verify the app is reading from the same config/flag service you edited.
-
Propagation / caching
- The change may not have propagated yet.
- Clear or reduce client-side/server-side caching.
- Check CDN, edge cache, in-memory cache, or local storage if the flag is cached there.
-
Evaluation logic
- Confirm the code is using the kill switch as an override, not just one of several conditions.
- Look for logic like:
- feature enabled if
A || Binstead ofA && !killSwitch - default values overriding the switch
- stale config merged after the kill switch is applied
- feature enabled if
-
Targeting rules
- The flag may only apply to certain users, devices, versions, or cohorts.
- Ensure the current request/user matches the kill switch targeting.
-
Fallback behavior
- If the feature has a hardcoded fallback or “safe default,” verify it doesn’t re-enable the feature.
- Check if multiple code paths can activate the feature independently.
-
Deployment mismatch
- The code version running may not include the kill switch check.
- Verify the deployed build matches the branch/version where the switch was added.
-
Async / race conditions
- The feature may initialize before the kill switch is loaded.
- Check startup order, race conditions, and whether the switch is read once at boot and never refreshed.
-
Client vs server
- If the feature exists on both client and server, disabling only one side may not be enough.
- Make sure both layers honor the kill switch.
-
Observability
- Add logging/metrics for:
- flag value fetched
- evaluation result
- source of config
- feature enable path taken
- This often makes the issue obvious quickly.
- Add logging/metrics for:
-
Kill switch semantics
- Confirm whether “off” means
false,0, empty,disabled, or “unset” in your system. - Some systems treat missing flags differently from explicit false.
If you want, I can help you debug it step by step if you share:
- the flag system you use,
- the code snippet for the feature check,
- and where you changed the kill switch.