Why it matters
Remove flags after rollout to avoid permanent branching debt.
Practical steps
- Describe the deploy surface for devops feature flag cleanup (process, env, healthcheck, rollback).
- Implement remove flags after rollout to avoid permanent branching debt behind a feature flag or canary when risk is high.
- Emit structured logs/metrics that show devops feature flag cleanup succeeding or failing in staging.
- Automate a smoke test that hits devops feature flag cleanup after each deploy.
- Write a one-page runbook: start, stop, rollback, and who to page.
Watch out for
- Copy-pasting outdated snippets for devops feature flag cleanup without re-reading current official docs.
- Shipping devops feature flag cleanup to production without a staging rehearsal and a documented rollback.