Verify the current facts
Check repository, deployed artifacts, versions, live patches, configuration, data dictionary, APIs, dependency rights and critical workflows. Conversation summaries and current source are not production facts. Register unknowns and retain every patch authorized to remain.
Define compatibility boundaries
Freeze user-visible behavior, data invariants, interfaces and permissions first. Split independently replaceable areas by value and risk, with owners, inputs, exits and acceptance. A new framework or total rewrite must not conceal unknown business rules.
Prepare backup and rollback
Verify recoverable backups, data definitions and migration order in isolation, preserving provenance/checksums and restore evidence. Define backward compatibility, old-code access to new data and state-loss risks. Unverified recovery does not enter a production window.
Implement and accept small changes
Write compatibility-denial controls before minimal implementation. Read back database and real interfaces, covering concurrency, idempotency, timeouts, retries and access denial. Builds, health-check 200s and unit tests prove their own scope, not the full workflow.
Controlled cutover and observation
Only cut over after precise authorization of target, version, migration, rollback and test scope. Define observation, alerts and stop-expansion criteria. If workflows or invariants fail, roll back or isolate a smaller reproduction rather than editing claims to hide defects.
Enable maintenance and exit
Deliver source, versions, configuration references, tests, operating/restore guides, account/access transfer and explicit debt/support boundaries. The client controls private keys and sole backups. Extensions update requirements and tasks first, not scope through unrecorded engineering decisions.