/fde-migration:decommission-planfrom fde-migration
Plans safe system decommissioning by proving no remaining consumers exist, managing data retention and archival obligations, and executing a staged darkening sequence. Use when retiring a system, after migration leaves the old system idle, or when assessing if a service can be switched off.
Ships in fde-migration. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Proving nothing needs it, then turning it off.
Decommissioning is common, genuinely hard, and almost never planned properly. Systems get left running for years after their replacement ships because nobody was willing to say it was safe to stop them — which is a rational position, since the evidence to say so was never gathered.
The difficulty is entirely in one place: proving there are no remaining consumers. Turning something off takes a minute. Knowing you can is the work, and it's hard because absence of evidence is not evidence of absence. A quarterly report, an annual regulatory extract, or a partner integration used twice a year will not appear in a week of traffic logs.
The second reason this matters: leaving systems running has real costs — licences, infrastructure, patching obligations, audit scope, and the ongoing confusion of two systems where one is authoritative. Nobody attributes those costs to the decommission that didn't happen.
cutover-plan firstsafe-change plus git-archaeologyResolve <workspace> before reading or writing artifacts: use FDE_WORKSPACE if set (report an unavailable explicit path rather than falling back), otherwise the charter's recorded Location (look in .fde/ and ../*-fde/), then an existing .fde/ or ../<repo>-fde/. If none exists, run core fde-orient; do not create a second workspace. All artifact paths below use that location. Follow core workspace conventions for headers; preserve existing sections when appending.
<workspace>/02-system-map.md and <workspace>/02b-ownership.md<workspace>/runbooks/cutover-*.md if this follows a migrationSeveral distinct states, and conflating them causes most of the confusion:
| State | Meaning | Reversible |
|---|---|---|
| Read-only | Still serves reads, accepts no writes | Trivially |
| Dark | Running, no traffic routed | Trivially |
| Stopped | Not running, data intact | Minutes to hours |
| Deprovisioned | Infrastructure released, data archived | Days, if archived properly |
| Deleted | Data gone | Never |
Decommissioning is a sequence through these, not a single event. Each step is cheap to reverse until the last, and staging through them is what makes the whole thing safe.
The core of the skill. No single method is sufficient, and using only one is how decommissions break things.
That last one is worth emphasizing: a broad announcement with a deadline reliably produces consumers no technical method found. People respond when their thing is about to break.
The trap that catches technically careful people.
Weekly, monthly, quarterly, and annual processes will not appear in a week of logs. A regulatory extract that runs each January, a quarterly board report, an annual audit pull — each is a consumer, each is invisible in short observation, and each is exactly the kind of thing whose failure is a serious incident.
Observe for at least a full cycle, and where you can't, say so explicitly and account for it in the darkening period. If the system has been running for years and you have four weeks of logs, your evidence covers four weeks.
Data usually outlives the system holding it, and the obligations are rarely the system owner's to waive.
Establish: what must be retained, for how long, under what obligation, and in what form. Retention is frequently a legal or regulatory requirement with a defined period — and it may require the data be retrievable, not merely stored, which is a much stronger requirement and changes the archive format.
Also ask who might need to query it. An archive nobody can read satisfies a retention clause and fails the actual need. Where the data will be needed for investigation, a queryable export beats a database dump.
Archive and verify the archive before deprovisioning. A backup nobody has restored is not an archive.
The sequence that makes this safe. Each stage is cheap to reverse, and the waiting is the point:
Make the waits real. A week at "dark" catches weekly jobs; a full quarter catches quarterly ones. The tension between cost pressure and observation period is genuine — state it explicitly rather than quietly shortening the wait.
Keep the ability to reverse for as long as it's cheap. A stopped VM costs almost nothing; an unrecoverable deletion is unbounded risk. There is rarely a good reason to hurry past stage 4.
Don't rely on someone complaining. Before darkening, ensure a failed access is visible: log rejected connections at read-only, alert on attempted access while dark.
A consumer that fails silently and retries — a batch job that logs an error nobody reads — will not complain until something else breaks weeks later, by which point the connection to your decommission is lost.
Decommissioning is a decision with consequences, and one where "nobody objected" is doing a lot of work. Record who was notified, when, what they said, and who authorized each stage.
Not defensively — because when someone appears in month three saying they needed it, the useful question is which notification they missed and whether the list was wrong. That's a fixable process problem, and it's only answerable if you kept the record.
Write to <workspace>/runbooks/decommission-<system>.md:
# Decommission — <system>
**Engagement:** <name> · **Author:** FDE · **Date:** <YYYY-MM-DD>
**Replaced by:** <system>, live since <date> · **Decision owner:** <name>
**Status:** draft
**Source revision:** <repo>@<short SHA>, or "no repository yet"
**Confidence:** <what is confirmed, inferred, or unverified>
## Consumer discovery
| Method | Coverage | Found | Confidence |
|---|---|---|---|
| Access logs | 90 days | 3 internal services | confirmed |
| Network connections | 30 days | 3 services + 1 unknown host | **1 unresolved** |
| DB sessions | 30 days | 2 reporting tools | confirmed |
| Org code search | full | 4 references, 1 in a dormant repo | confirmed |
| Config search | full | credentials in 2 other systems | confirmed |
| Service accounts | full | 6 issued, 4 unused 12m+ | confirmed |
| **Announcement** | sent 03-01 to 40 people | **2 consumers nobody found** | — |
**Business cycle observed:** 90 days. **Annual processes NOT observed** `[unverified]` —
accounted for by a 12-month dark period before deprovisioning.
## Consumers found
| Consumer | Owner | Migrated? | Notes |
|---|---|---|---|
| `billing-web` | Team B | ✅ 03-10 | |
| Quarterly finance extract | Finance | ❌ **not migrated** | Surfaced by announcement only |
| Unknown host 10.x.x.x | ? | — | **unresolved — blocks darkening** |
## Retention
**Obligation:** 7 years, retrievable, per <policy> `[confirmed: Compliance, 03-12]`
**Form:** queryable export to <location>, not a raw dump — Finance may need to query it
**Archive verified:** <date> — restored and spot-checked ✅
## Sequence
| # | Stage | Date | Wait | Reversal | Gate |
|---|---|---|---|---|---|
| 1 | Announce | 03-01 | 4w | — | — |
| 2 | Read-only | 04-01 | 4w | instant | All known consumers migrated |
| 3 | Dark | 05-01 | **12m** | instant | No rejected access in 4w |
| 4 | Stopped | 06-01 | — | ~1h | No access attempts while dark |
| 5 | Archive + verify | 06-15 | — | — | Archive readable ✅ |
| 6 | Deprovision | 2027-05 | — | days | 12m dark, full annual cycle passed |
| 7 | Delete | 2033 | — | **never** | Retention expired |
## Instrumentation
- Rejected writes logged and alerting to <channel> from stage 2
- Any connection attempt while dark alerts <name> from stage 3
## Notification record
| Date | Who | Response |
|---|---|---|
One discovery method. Each is blind to something. Use all of them.
Observing for a week. Misses monthly, quarterly, and annual consumers — the ones whose failure is most serious.
Treating silence as absence. A batch job that logs an error nobody reads will not complain.
Not instrumenting the darkening. You find out from a downstream incident weeks later, with the connection lost.
Skipping the dark stage. The highest-value stage — breakage happens while recovery is instant.
Archiving without verifying. A backup nobody has restored is not an archive.
Storing rather than making retrievable. Satisfies the clause, fails the need.
Hurrying past "stopped." A stopped VM costs almost nothing. Deletion is unbounded risk.
Not recording notifications. When someone surfaces in month three, you need to know which list was wrong.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rpraharaj/forward-deployed-engineer --plugin fde-migration4 skills in this plugin
/cutover-planPlan the moment two systems swap - data migration and backfill, dual-run and reconciliation, the consistency window, traffic shifting, the point of no return, and what abort means at each stage. Use for any migration or replatform where data moves and both systems briefly coexist, when a legacy system is being replaced, or when a go-live has a defined switchover moment. The hardest artifact in the portfolio, because unlike a deploy the thing being changed is state, and state does not roll back cleanly./dependency-upgradeRun an EOL or version-driven upgrade where the scope is fixed, the deadline is external, and the risk is concentrated in transitive breakage - ordering the upgrade, building a compatibility matrix, cutting over incrementally, and telling a real break from a warning. Use for end-of-life work, runtime or framework major-version jumps, expiring vendor support, security-driven dependency bumps, or when a library upgrade cascades further than expected. Behaves unlike feature work and should not be planned like it./refactor-seamsChange code that must change but is not safely changeable - find the seams that let you alter behavior without rewriting, using branch-by-abstraction, strangler fig, and adapter insertion, always leaving the system releasable at every step. Use when extracting from a monolith, when a component must be replaced incrementally, when a refactor is too large to do in one change, or when someone proposes a rewrite. Every step ships independently, because a long-lived refactor branch is how refactors die.Other plugins' skills for the same job