Incident rollback or fix forward
During a production incident linked to a recent change, decide the fastest safe way back to normal: roll back the deploy, turn off a feature flag, ship a small fix forward, or keep the change and monitor, so on-call engineers stop debating under pressure and pick a reversible step first.
F@fLimits to keep in mind
Rollbacks can fail too: caches, queued jobs and clients on the new version may keep the problem alive for a while.
This label does not replace the team's incident process or security response procedures.
Impact numbers in the first minutes of an incident are often wrong; recheck dashboards before choosing keep_and_monitor.
Problem
When something breaks right after a deploy, on-call engineers often lose valuable minutes arguing whether to roll back or write a quick fix. Fixing forward under stress can make things worse, while rolling back is not always safe when database migrations, data changes or external integrations went out with the release. Teams also forget that a feature flag can switch off the faulty part in seconds without touching the deploy.
Goal
Label each situation so a safe rollback is used when the change clearly caused real harm, a feature flag is turned off when the problem sits behind one, a small, well-understood fix is shipped forward when rolling back is unsafe or slower, minor issues are watched instead of reverted, and the incident commander decides when cause, safety or impact is unclear.
Input / state
One ongoing production problem and the recent change that may have caused it: impact so far, what was deployed, whether a rollback or flag is safe, and how ready a fix is.
- incident_summary
- What users are experiencing, since when, how many are affected, and whether money, data or security is involved.
- recent_change
- What was deployed or changed recently, when, and how strongly the timing and symptoms point to it.
- rollback_safety
- Whether the previous version can be restored safely: database migrations, data written in the new format, external integrations, and if a feature flag covers the change.
- fix_readiness
- Whether the root cause is understood, how big the proposed fix is, whether it is tested, and how long it would take to deploy.
Decision question
recovery_actionWhat is the fastest safe way back to normal? Weigh user impact, how clearly the recent change caused it, whether a rollback is safe given migrations and data, whether a feature flag covers it, and how ready and small a fix is. Use roll_back when the change clearly caused real harm and reverting is safe. Use disable_flag when a flag isolates it. Use fix_forward when rollback is unsafe or slower and a small fix is ready. Use keep_and_monitor for minor issues. Use needs_review when cause, safety or impact is unclear.
Options
roll_backThe recent deploy clearly caused real user harm, the previous version can be restored safely without breaking migrations or data, and no feature flag isolates the problem.disable_flagThe faulty behavior sits behind a feature flag or kill switch that can be turned off quickly without affecting the rest of the release.fix_forwardRolling back is unsafe or slower, for example because of irreversible migrations or data in a new format, and the cause is understood with a small, tested fix that can ship within minutes.keep_and_monitorThe impact is minor or cosmetic, affects few users, has a workaround, and is not getting worse; keep the release and fix it through the normal process while watching the metrics.
Allowed outcomes
Decided in your code from the answer and its confidence. Thresholds are yours to set and test.
- Incident commander decidesThe cause is unclear, rollback safety is unknown, data or security may be at risk, or the impact is growing without a clear option; escalate to the incident commander.
- Roll back nowClear cause and safe to revert; roll back first, confirm recovery in the metrics, then investigate calmly and redeploy with a fix later.
- Turn off the feature flagA flag isolates the problem; switch it off, verify recovery, and keep the rest of the release running.
- Ship a small fix forwardRollback unsafe or slower and the fix is small and tested; get a second reviewer, deploy through the normal pipeline and watch closely.
- Keep and monitorMinor, stable impact with a workaround; keep the release, open a ticket, share the workaround with support and set an alert threshold.
Example scenarios
Predefined demonstrations. No model is called; the outcome shown is an illustrative judgment.
Example state
{
"fix_readiness": "Root cause not yet found",
"recent_change": "Payment service release with a refactored cart total calculation",
"rollback_safety": "No migrations in this release; the previous version is still cached and can be restored in 3 minutes",
"incident_summary": "Since the deploy 12 minutes ago, 30% of checkout attempts fail with a server error"
}Outcome
IllustrativeClear cause and safe to revert; roll back first, confirm recovery in the metrics, then investigate calmly and redeploy with a fix later.
Why
Clear cause, serious harm and a safe, fast rollback.
Using it well
- Restore service first and find the root cause later; the safest reversible step usually wins.
- Check database migrations and data written by the new version before any rollback; an unsafe rollback can turn an outage into data loss.
- If a feature flag covers the problem, turning it off is usually faster and safer than a rollback or a fix.
- Only fix forward when the cause is understood and the fix is small, tested and reviewed by a second person.
- Strong timing alone is not proof; confirm that the symptoms match what the change touched.
- Possible data corruption or security exposure always goes to the incident commander.
- Write down the decision and the time in the incident channel so everyone knows the current plan.
Request definition
POST https://api.typesafe.ai/v1/systemone{
"model": "jev-latest",
"state": {
"incident_summary": "<incident_summary>",
"recent_change": "<recent_change>",
"rollback_safety": "<rollback_safety>",
"fix_readiness": "<fix_readiness>"
},
"questions": {
"recovery_action": {
"type": "choice",
"instructions": "What is the fastest safe way back to normal? Weigh user impact, how clearly the recent change caused it, whether a rollback is safe given migrations and data, whether a feature flag covers it, and how ready and small a fix is. Use roll_back when the change clearly caused real harm and reverting is safe. Use disable_flag when a flag isolates it. Use fix_forward when rollback is unsafe or slower and a small fix is ready. Use keep_and_monitor for minor issues. Use needs_review when cause, safety or impact is unclear.",
"criteria": {
"roll_back": "The recent deploy clearly caused real user harm, the previous version can be restored safely without breaking migrations or data, and no feature flag isolates the problem.",
"disable_flag": "The faulty behavior sits behind a feature flag or kill switch that can be turned off quickly without affecting the rest of the release.",
"fix_forward": "Rolling back is unsafe or slower, for example because of irreversible migrations or data in a new format, and the cause is understood with a small, tested fix that can ship within minutes.",
"keep_and_monitor": "The impact is minor or cosmetic, affects few users, has a workaround, and is not getting worse; keep the release and fix it through the normal process while watching the metrics."
}
}
}
}Request shape from the System One API reference; a Kev server accepts the same body. Replace the placeholder state with your data. Requests need your own API key or server.
Version History
Initial version