# Retire a flag without changing the served branch — acceptance checklist

Record evidence for every checked item. Unchecked or untested is not a pass. This checklist does not execute an integration or authorise external actions.

## Required inputs

- [ ] One exact LaunchDarkly flag key/project and a fixed application revision, with the owner naming every critical environment.

- [ ] Fresh, sanitised configuration and lifecycle exports for those environments, including served variations, targeting/prerequisite rules, defaults and the evaluation observation window.

- [ ] Code-reference exports and repository access covering direct keys, wrappers, generated/dynamic keys, dependent flags and independently released consumers.

- [ ] A fixture harness for the currently served behaviour and offline/default cases, plus the feature owner's removal rationale and recovery requirements.

## Output checks

- [ ] Compare actual variation values across every critical environment; missing environments, stale exports or differing values block removal readiness.

- [ ] Exercise targeting and prerequisite cases from the export; a cohort that still receives another value or depends on this flag prevents constant replacement.

- [ ] Search wrappers, generated keys and cross-repository references; an unresolved dynamic key or long-lived client prevents declaring the flag fully retired.

- [ ] Test offline/default evaluation against the retained branch; any behavioural difference requires explicit acceptance and cannot be labelled unchanged behaviour.

- [ ] Compare side effects as well as rendered output before and after cleanup; missing validation, duplicate work or changed error handling fails equivalence.

- [ ] Inspect the zero-evaluation case against the observation window and job schedule; absent traffic alone must not clear a dormant consumer.

- [ ] Rehearse recovery using the previous code contract; if premature archival or removed prerequisites make recovery impossible, retain configuration or revise the recovery plan.

## Deliverables

- [ ] Per-environment served-value and removal-readiness assessment with dated evidence.

- [ ] Consumer/fallback inventory and a single-flag removal patch.

- [ ] Before/after branch-equivalence receipts with intentional fallback changes separated.

- [ ] Retirement-order and recovery handoff retaining configuration needed by remaining consumers.

## Evidence and decision

Evidence links: [fill in]
Untested paths: [fill in]
Unresolved findings: [fill in]
Reviewer: [fill in]
Decision and scope: [fill in]

## Boundaries

- The reviewed flag-cleanup agent is LaunchDarkly-specific and declares all host tools. Its Copilot MCP configuration and tool names require explicit host mapping; no server or token is installed by this recipe. A supplied snapshot supports drafting, not a current live-state claim.

- Disable its branch/PR and configuration-write actions for evidence review. Dynamic keys and other repositories need separate coverage, and criteria must be re-derived before applying the method to a different flag system.

- No token, production evaluation or flag mutation is used during authoring. Runtime tool compatibility and the full cleanup integration remain untested; a source-reviewed profile does not certify removal readiness.

Workflow: https://undominated.ai/workflows/#retire-a-feature-flag
