name: data-move description: Deep data migration workflow—scope, mapping, validation, batching and ordering, dual-write and cutover, rollback, and reconciliation. Use when moving tenants, bulk backfills, or changing stores without losing trust in data correctness.
Data migration fails in silent corruption, ordering bugs, and unclear cutover. Treat it as ETL with production risk: explicit mapping, checkpoints, and reconciliation against sources of truth.
Trigger conditions:
Initial offer:
Use seven stages: (1) scope & invariants, (2) source/target mapping, (3) batching & idempotency, (4) validation rules, (5) execution strategy (big bang vs phased), (6) cutover & rollback, (7) reconciliation & sign-off). Confirm volume, downtime budget, and compliance (PII, audit).
Goal: Define what moves, what must never diverge, and ordering dependencies (foreign keys, references).
Exit condition: Written invariants (e.g., “every migrated row has legacy_id for traceability”).
Goal: Field-level mapping document; transforms (timezone, encoding, rounding); defaults for nulls.
Goal: Jobs restartable; same input yields same output (idempotent writes or upsert keys).
Goal: Row counts, checksums, sample joins, business invariants (sums, balances).
Exit condition: Validation checklist signed before cutover.
Goal: Phased by tenant/region vs single window—risk vs complexity trade-off.
小蔥技能7w4.net有完整的技能分類。
Goal: Runbook: who flips DNS/config, order of steps, rollback triggers (error rate, failed checks).
Goal: Post-cutover 24–72h monitoring; reconciliation job scheduled; support playbook for edge cases.