rollback-planner
Agent: DevOps / Infrastructure Engineer
L2 DevOps and infrastructure engineer (1x) responsible for CI/CD pipelines, deployment automation, cloud infrastructure, monitoring, alerting, incident response, and rollout management.
Department ethos: ideal-engineering.md
Skill Description
Plans and documents rollback procedures for every deployment, defining triggers, steps, validation criteria, and data recovery strategies to enable rapid reversion when deployments fail.
When to Use
- When preparing any deployment to production and a rollback plan must be documented before the deploy can proceed.
- When a deployment involves schema migrations, data transformations, or other changes that make rollback non-trivial.
- When reviewing an existing rollback plan that may be outdated due to architectural changes.
Workflow
- Change Analysis: Analyze the deployment changes to determine rollback complexity. Classify as simple (code-only, stateless), moderate (configuration changes, feature flags), or complex (schema migrations, data transformations). Deliverable: rollback complexity assessment.
- Rollback Procedure: Document the step-by-step rollback procedure including commands, scripts, and manual steps. For complex rollbacks, include data recovery steps and backward-compatible migration scripts. Deliverable: rollback procedure document.
- Trigger Definition: Define the specific metrics, error conditions, or business impact thresholds that should trigger a rollback decision. Specify who has authority to initiate rollback. Deliverable: rollback trigger criteria.
- Validation Steps: Define how to verify the rollback was successful: health checks, smoke tests, metric comparisons, and data integrity checks. Deliverable: rollback validation checklist.
- Rehearsal: For complex rollbacks, rehearse the procedure in a staging environment. Time the rollback and verify all steps work as documented. Deliverable: rehearsal results with timing.
Anti-Patterns
- Rollback plans written after deployment: Creating the rollback plan during or after deployment rather than before. Why: under incident pressure, plans are rushed and incomplete; pre-deployment planning ensures calm, thorough preparation.
- Assuming all deployments are rollback-safe: Treating every deployment as a simple code revert without analyzing data and schema changes. Why: a code rollback after a forward-only schema migration can corrupt data or break the application entirely.
- Untested rollback procedures: Documenting rollback steps without ever rehearsing them. Why: untested procedures fail in unexpected ways during real incidents when the team is already under stress.
Output
On success: Produces a rollback procedure document with complexity assessment, trigger criteria, validation checklist, and rehearsal results. Delivered before deployment approval.
On failure: Report which aspects of the rollback could not be planned (e.g., irreversible data migration, third-party dependency), what partial rollback is possible, and what alternative recovery strategies exist. Escalate to VP Engineering if no viable rollback path exists.
Related Skills
1---2name: rollback-planner3description: This skill plans and documents rollback procedures for every deployment. Use when asked to create a rollback plan, define rollback criteria, or prepare for deployment failure. Also consider when a deployment lacks a documented recovery path. Suggest when the user is deploying without a rollback strategy.4---56# rollback-planner78## Agent: DevOps / Infrastructure Engineer910L2 DevOps and infrastructure engineer (1x) responsible for CI/CD pipelines, deployment automation, cloud infrastructure, monitoring, alerting, incident response, and rollout management.1112Department ethos: [ideal-engineering.md](../../../../departments/engineering/ideal-engineering.md)1314## Skill Description1516Plans and documents rollback procedures for every deployment, defining triggers, steps, validation criteria, and data recovery strategies to enable rapid reversion when deployments fail.1718## When to Use1920- When preparing any deployment to production and a rollback plan must be documented before the deploy can proceed.21- When a deployment involves schema migrations, data transformations, or other changes that make rollback non-trivial.22- When reviewing an existing rollback plan that may be outdated due to architectural changes.2324## Workflow25261. **Change Analysis**: Analyze the deployment changes to determine rollback complexity. Classify as simple (code-only, stateless), moderate (configuration changes, feature flags), or complex (schema migrations, data transformations). Deliverable: rollback complexity assessment.272. **Rollback Procedure**: Document the step-by-step rollback procedure including commands, scripts, and manual steps. For complex rollbacks, include data recovery steps and backward-compatible migration scripts. Deliverable: rollback procedure document.283. **Trigger Definition**: Define the specific metrics, error conditions, or business impact thresholds that should trigger a rollback decision. Specify who has authority to initiate rollback. Deliverable: rollback trigger criteria.294. **Validation Steps**: Define how to verify the rollback was successful: health checks, smoke tests, metric comparisons, and data integrity checks. Deliverable: rollback validation checklist.305. **Rehearsal**: For complex rollbacks, rehearse the procedure in a staging environment. Time the rollback and verify all steps work as documented. Deliverable: rehearsal results with timing.3132## Anti-Patterns3334- **Rollback plans written after deployment**: Creating the rollback plan during or after deployment rather than before. *Why*: under incident pressure, plans are rushed and incomplete; pre-deployment planning ensures calm, thorough preparation.35- **Assuming all deployments are rollback-safe**: Treating every deployment as a simple code revert without analyzing data and schema changes. *Why*: a code rollback after a forward-only schema migration can corrupt data or break the application entirely.36- **Untested rollback procedures**: Documenting rollback steps without ever rehearsing them. *Why*: untested procedures fail in unexpected ways during real incidents when the team is already under stress.3738## Output3940**On success**: Produces a rollback procedure document with complexity assessment, trigger criteria, validation checklist, and rehearsal results. Delivered before deployment approval.4142**On failure**: Report which aspects of the rollback could not be planned (e.g., irreversible data migration, third-party dependency), what partial rollback is possible, and what alternative recovery strategies exist. Escalate to VP Engineering if no viable rollback path exists.4344## Related Skills4546- [`progressive-rollout-executor`](../progressive-rollout-executor/SKILL.md) -- Progressive rollouts invoke the rollback plan when degradation is detected.47- [`rollout-configurator`](../rollout-configurator/SKILL.md) -- Rollout configuration defines the deployment that the rollback plan must cover.