Decides whether to roll back or roll forward a bad release using a fixed procedure (data compatibility between versions, current migration phase, measured time to revert versus time to fix, customer impact rate), gives the exact order of operations for flag kill, traffic drain, app rollback, and migration reversal.
Decides whether to roll back or roll forward a bad release using a fixed procedure (data compatibility between versions, current migration phase, measured time to revert versus time to fix, customer impact rate), gives the exact order of operations for flag kill, traffic drain, app rollback, and migration reversal, and lists what can never be reversed and how to compensate instead. Writes the Rollback plan section of the Release Dossier before the release and the executed decision into the incident log during one. Use when someone asks "should we roll back", "revert or hotfix", "can we roll back after the migration ran", "what's our rollback plan", "the deploy is broken, what do we do first", or when progressive-rollout gates abort. Do NOT use for running the incident itself - use incident-command instead; for designing migration phases, use zero-downtime-db-migrations.This is the skill's description: the text your AI reads to decide when the skill applies.
rollback-or-roll-forward/SKILL.md
---
name: rollback-or-roll-forward
description: Decides whether to roll back or roll forward a bad release using a fixed procedure (data compatibility between versions, current migration phase, measured time to revert versus time to fix, customer impact rate), gives the exact order of operations for flag kill, traffic drain, app rollback, and migration reversal, and lists what can never be reversed and how to compensate instead. Writes the Rollback plan section of the Release Dossier before the release and the executed decision into the incident log during one. Use when someone asks "should we roll back", "revert or hotfix", "can we roll back after the migration ran", "what's our rollback plan", "the deploy is broken, what do we do first", or when progressive-rollout gates abort. Do NOT use for running the incident itself - use incident-command instead; for designing migration phases, use zero-downtime-db-migrations.
---
# rollback-or-roll-forward
"Just roll back" is the right answer most of the time and catastrophically wrong some of the time. It is wrong when the new version has already written data the old version cannot read, when a migration has contracted the schema the old version needs, or when the effect that hurts customers was an email, a charge, or a webhook that no deploy can unsend. Teams find this out mid-incident, under pressure, and make it worse. This skill decides in advance which path is safe at each phase of the release, records it in section 6, and gives the on-call engineer an ordered procedure instead of a judgement call.
## Inputs to collect
- Release Dossier sections 2-4: tier, the migration phase table with its point of no return, the kill switch and its measured propagation time.
- For each version pair (new to old): does the old code tolerate every record shape the new code writes? Check serialized formats, enum values, new nullable columns, cache keys, queue message schemas, and event payloads.
- Measured time to revert the app (from the last real rollback), and time to build, test, and deploy a fix (from your pipeline's median, not the optimistic case).
- Current customer impact: rate of failed requests or affected users per minute, and whether it is growing.
- The list of external side effects from section 1.
## Operating procedure
### Step 1: Before the release, build the phase matrix (section 6)
For every migration phase and rollout step, record which actions are safe. This is the work that makes the incident decision fast.
| Release state | Kill flag | App rollback | Migration reversal | Notes |
|---|---|---|---|---|Click to play with sound.