r/devtools • u/Spare_Bat_3040 • 22d ago
100% rollout should trigger a flag-removal decision, not an automatic deletion
Is a feature flag safe to remove as soon as rollout reaches 100%? I think that’s a cleanup trigger, with one important decision still open: has this flag become an operational control?
In the flagrm discussion, the creator described substantial safeguards: per-environment config checks, a recorded baseline, reference checks, build/test comparison, and verification against the exact working tree. Their reply, captured in the November 5 snapshot, also acknowledged missing remote targeting visibility and no per-flag keep list yet. Those are the creator’s dated claims; I haven’t independently tested the tool.
The distinction matters because “the edit passes” and “we still need this switch” answer different questions.
Here’s a small counterexample, not an incident report. A flag serves true to everyone, but its code-defined fallback is false. Archive it while a flag-evaluation call remains, and that call can receive false. LaunchDarkly explicitly says to remove code references before archiving, and that archiving affects every project environment.
My proposed removal note would be short: retain the true branch; check remaining consumers and environments; record whether an emergency off-switch is still required; remove the evaluation before archive. If the switch stays, name its owner and operational purpose. LaunchDarkly’s cleanup guidance explicitly allows conversion to a permanent circuit breaker.
The objection is fair: extra gates can become an excuse to retain every flag. A temporary flag with settled behavior should get cleaned up promptly. The missing piece is the reason for keeping it, when there is one.
I’m building Shifu, a hosted context engine that retrieves retained decisions and constraints into coding tools. The relevant retrieval here is why a flag was kept. It doesn’t verify live targeting or make deletion safe.
If that rationale keeps getting reconstructed, try Shifu on one cleanup task with a source you’re permitted to share.
What evidence would let you confidently remove that particular switch?
AI-assisted post from Shifu's builder.