Code rollback leaves new data behind
A release can write a new local status value before operators decide to revert it. The old worker may then crash or misclassify those rows. Treat rollback as a supported compatibility path that needs evidence, rather than a universal undo button.
What to do next
- 01
Inventory newly written forms
List schema changes, command versions, enum values and media metadata introduced by the release. Identify which can already exist in active work, even if only a small fraction of traffic reached the new code.
- 02
Exercise the older build
Run the intended rollback build against representative post-release fixtures in an isolated environment. Verify it can read, reconcile and safely leave unsupported work untouched instead of coercing it into a known but incorrect state.
- 03
Choose rollback or forward repair
If the old build cannot safely interpret new data, pause affected dispatch and deploy a compatible repair or adapter. Preserve accepted-work identities and avoid deleting rows simply to make the old build start.
A concrete example
Illustrative example: the new release writes delivery state quarantined. The rollback build must preserve that state or explicitly refuse it. Mapping every unfamiliar value to pending could cause repeated local side effects and is not a safe rollback.
Before you call it ready
- Rollback tests include new durable data.
- Active remote work keeps its identity.
- Unsupported rows are preserved for repair.
When to stop or choose another method
Stop treating a successful old-process startup as proof that rollback is safe for commands and task records created by the newer release.
