A cutover packet needs mapping disposition, row and value parity, tail lag, read-path tests, capacity, rollback route, decision owner, and communications. The prompt drafts a checklist; it does not execute a switch. A fallback must account for writes accepted after any switch, since restoring an old backup alone may lose them. Keep private row content in the approved system and pass only counts, pseudonymous exception IDs, and synthetic examples into review text. Record a new receipt after the actual operation.
Make this comfortable
Backfill prompts: hold cutover until fallback is rehearsed
Operational case
Harbor still has 60 undispositioned source rows and three wrong target values. The decision is hold; the legacy table remains write owner. The operator rehearses a return route and a plan for post-switch writes in a representative environment. After owners resolve the 60 and three, a fresh parity and tail check can support a new approval. The assistant cannot label a plan as a completed cutover or paste tenant records into the memo.
Open: 47 unknown + 13 tenant missing + 3 value mismatches
Current write owner: legacy
Private rows: stay in controlled system
Fallback: preserve post-switch writes
Decision: hold until fresh approval and receiptPerformance and review cost
Checking G measured release gates is O(G) lookups, but rehearsal and fallback capacity dominate elapsed time. A summary built from E exceptions and B batch receipts costs O(E+B) ledger work. The slower operator gate protects data that is harder to recover than a draft paragraph.
Common Mistakes
- Do not cut over from matching row counts alone.
- Do not promise rollback without handling post-switch writes.
- Do not expose full tenant rows to a planning prompt by default.
Connected lessons
- Production prompt engineering
- Prompt Engineering
- Infrastructure release: verify live state and rollback limits
- Prompt privacy: send only the fields needed for the task
- Backfill prompts: pin source, target, and snapshot
- Backfill prompts: map known states and quarantine unknowns
- Backfill prompts: bound batches and make retries idempotent
- Backfill prompts: account for writes during migration
- Backfill prompts: compare count and field-level parity
- Project: review Harbor's order-status backfill
- Database backfill prompt decisions
prompt engineering
database migration
