/fde-migration:cutover-planfrom fde-migration
Plans the moment two systems swap during a migration or replatform, covering data migration, dual-run reconciliation, consistency windows, traffic shifting, and abort criteria at each stage.
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.
The moment the old thing stops and the new thing starts.
A deploy changes code. A cutover changes state, and state does not roll back cleanly. Once the new system has accepted a transaction the old one never saw, "just switch back" stops being a plan and becomes a data reconciliation project.
That asymmetry is why cutovers deserve a bigger artifact than deploys. The questions that decide whether one succeeds are almost entirely about the seam: what happens to records written during the switch, how you know the two systems agree, and precisely when you lose the ability to go back.
Most failed cutovers were not failures of the new system. They were failures to plan the twenty minutes in the middle.
deploy-runbookdecommission-planResolve <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>/traces/data-model.md — you must know the eras and shapes before moving data<workspace>/06-blast-radius-*.md — every consumer of both systems<workspace>/07-verification.md — the new system proven on its own before you plan the swapdb-change-management where schema changes are involvedThe single most consequential decision, and it should be explicit rather than defaulted into:
| Shape | How it works | Use when |
|---|---|---|
| Big bang | Stop old, migrate, start new | Small data, a real outage window is available, rollback is genuinely feasible |
| Parallel run | Both process everything; old is authoritative until proven | Correctness matters more than speed; you can afford double-writing |
| Phased by segment | Migrate tenants, regions, or product lines in tranches | Data partitions cleanly; blast radius must stay small |
| Strangler | Route by route, over months | Long-lived, low-risk, no single moment |
Parallel run requires isolated effects. Keep the old system authoritative; route shadow writes to separate storage and suppress or sandbox notifications, payments, events, and external mutations. Define which system alone may perform each real-world action, how retries are deduplicated, and how extra load is bounded. Only compare live traffic after verifying those controls; otherwise rehearse with policy-approved inputs in a lower environment. Switch only after reconciliation succeeds for a stated period.
Where data partitions cleanly, phased is the safest real option: the first tranche is a genuine rehearsal with real data and bounded consequences.
Rarely a single copy.
The rehearsal question that determines everything: how long does the final delta take? That duration is your cutover window, and it's knowable in advance by rehearsing.
Also decide: what happens to data that fails to migrate? A record that won't transform — because it's from an era nobody remembers — must have a defined destination. Silently dropped is the default and the worst answer.
The seam. Between the final delta and the new system going live, writes are happening somewhere.
Options: freeze writes entirely (simplest, needs a real outage window), queue writes and replay them after (complex, but no downtime), or dual-write during the window (complex, risks divergence).
Whichever you pick, answer explicitly: what happens to a transaction submitted during the window? If you can't answer it, you don't have a cutover plan yet.
You must be able to demonstrate the two systems agree — before cutting over, and after.
Counts by entity and by day, sums of the key measures, spot-checks on the awkward records, and specifically the eras data-archaeology identified. Legacy-shaped records are where migration transforms fail, and they're a small enough population to check individually.
Reconciliation is also what tells you the cutover worked. "The migration completed" is not evidence; matching totals are.
The most important line in the document.
Somewhere the old system stops being authoritative, or gets written to in a way that can't be undone, or a consumer is repointed irreversibly. Mark it explicitly. Everything before it must be verified before you cross.
Then be honest about what's after it. If rollback after that point means "restore from backup and lose the transactions since," say that in those words. A plan claiming reversibility it doesn't have is worse than one honestly admitting a one-way door, because people make different decisions when they know.
Not one abort decision — one per stage, each with a threshold and a named decider. Judgment degrades badly at 3am under pressure, so agree these calmly in advance.
For each stage: what would make us stop, what do we do if we stop, and how long does that take?
Abort before the point of no return should be genuinely cheap. Abort after it is a recovery operation and should be described as one, with its own steps.
Non-negotiable for anything significant. A full dress rehearsal against production-shaped data, timed.
Rehearsal reliably surfaces: the final delta taking four times longer than estimated, a transform failing on legacy records, a consumer nobody knew about, a permission the operator doesn't have, and a step whose written instructions don't work.
Every one of those is cheap to find in a rehearsal and expensive at 2am. Record the timings — they become the plan's estimates, and they're the only trustworthy ones.
A cutover isn't done when traffic moves.
decommission-plan, and it should be scheduled, not left.Leaving the old system running indefinitely because nobody decided is the standard outcome, and it costs money and confusion for years.
Write to <workspace>/runbooks/cutover-<name>.md:
# Cutover — <old> → <new>
**Engagement:** <name> · **Date planned:** <date> · **Window:** <start>–<end>
**Shape:** phased by region · **Rehearsed:** <date>, <duration>
**Decision owner:** <name> · **Operators:** <names>
**Author:** FDE
**Date:** <YYYY-MM-DD>
**Status:** draft
**Source revision:** <repo>@<short SHA>, or "no repository yet"
**Confidence:** <what is confirmed, inferred, or unverified>
## Summary
<One sentence a release manager understands.>
## Data migration
| Stage | What | When | Duration (rehearsed) | Verified by |
|---|---|---|---|---|
| Bulk load | All history to 03-01 | 03-05 | 6h 20m | count + sum reconciliation |
| Delta 1 | 03-01 → 03-14 | 03-15 | 40m | reconciliation |
| **Final delta** | since delta 1 | **in window** | **12m** | reconciliation, must pass |
**Failed records:** routed to `migration_rejects` with a reason. Rehearsal produced 41,
all pre-2019 era `[confirmed]`. Each reviewed; 38 obsolete, 3 hand-corrected.
## Consistency window
**Approach:** writes frozen at the API layer for the window
**Duration:** ~25 min · **Submitted during window:** rejected with a retryable error `[confirmed]`
## Steps
| # | Stage | Action | Expect | Abort → |
|---|---|---|---|---|
| 1 | pre | Verify delta 1 reconciliation | counts match exactly | A1 (no-op) |
| 2 | freeze | Enable write freeze | writes rejected, reads OK | A1 |
| 3 | sync | Final delta | completes < 20m | A2 |
| 4 | verify | Full reconciliation | counts + sums match | A2 |
| 5 | **POINT OF NO RETURN** | Repoint consumers to new | — | A3 (recovery) |
| 6 | unfreeze | Lift write freeze | writes land in new | A3 |
| 7 | watch | 2h hypercare | error rate at baseline | A3 |
## Point of no return
**Step 5.** After this, the new system accepts writes the old one never sees.
Rollback becomes: restore old from backup, replay from `migration_rejects` and the
new system's write log, **and accept a reconciliation exercise of several hours.**
This is not a clean rollback and should not be described as one.
## Abort criteria
| # | Stage | Condition | Decider | Action |
|---|---|---|---|---|
| A1 | 1–2 | Any reconciliation mismatch | FDE | Lift freeze, reschedule. Cheap. |
| A2 | 3–4 | Final delta > 20m, or mismatch | <name> | Lift freeze, old system authoritative. Cheap. |
| A3 | 5+ | Error rate > baseline ×3 sustained 10m | <name> + <sponsor> | **Recovery operation — see below** |
## Recovery after the point of no return
<Explicit steps. Duration. Who. What data is at risk.>
## Aftermath
**Hypercare:** 48h, <name> · **Old system:** running idle 30 days, decommission ticket <ref>
**Rollback expires:** <date> · **Ongoing reconciliation:** daily for 2 weeks
Treating it like a deploy. State doesn't roll back cleanly.
Not rehearsing. The final delta duration is the window, and it's only knowable by measuring.
No defined consistency window. If you can't say what happens to a transaction submitted mid-cutover, you don't have a plan.
No named point of no return. Then nobody knows when the decision became irreversible.
Claiming rollback you don't have. People make different decisions when they know the truth.
No destination for failed records. Silently dropped is the default and the worst answer.
One abort decision for the whole cutover. Each stage has different costs and needs its own threshold.
Abort criteria decided in the moment. Judgment at 3am is not what you want deciding this.
No plan for the old system. It runs idle for years because nobody scheduled the decision.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/decommission-planTurn a system off safely - proving there are no remaining consumers, which is much harder than it sounds, then data retention and archival obligations, a staged darkening sequence, and how long to keep the ability to reverse. Use when a system is being retired, after a migration leaves the old system idle, when someone asks whether something can be switched off, or when a service appears unused. Consumer discovery is the whole job; the switching off is trivial by comparison./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.npx claudepluginhub rpraharaj/forward-deployed-engineer --plugin fde-migrationOther plugins' skills for the same job