1---2name: incident-hotfix3description: Use during a production incident or urgent outage. Ship the minimal fix, bound blast radius, and prepare rollback; defer refactors and non-essential cleanups until the system is stable.4---56# Incident Hotfix78## When to use910- Production is broken, degraded, or actively paging.11- A revert or tiny patch will restore service faster than a redesign.12- The user says "hotfix", "SEV", "outage", or "rollback".1314## When not to use1516- Feature work on a healthy system with normal review timelines.17- Post-incident improvements once mitigation is done (schedule separately).18- Speculative hardening without an active or imminent user impact.1920## Assumptions2122- Access to deploy/rollback mechanisms, logs, metrics, and the hotfix branch process the team uses.23- Communication channel for status may exist; follow the team's incident lead if present.24- Do **not** run destructive data repairs (`DROP`, mass `DELETE`, force-push to main, prod secret rotation storms) without explicit confirmation from the incident owner.25- Do **not** disable auth, open security groups widely, or bypass CI without approval.2627## Workflow28291. Stabilize: confirm impact, recent changes, and whether revert is safer than forward fix.302. Choose the smallest mitigation (feature flag off, revert, config fix, one-line patch).313. Bound blast radius: target canaries/single region when possible; avoid global risky changes.324. Ship with a clear rollback path documented before or with the deploy.335. Verify recovery on golden signals; only then file follow-up work for root cause/refactors.3435## Steps36371. **Triage** — Symptom, scope (who/what/%), onset time, last deploy/change. Prefer timeline from metrics/logs over guesses.382. **Mitigation choice** — Revert > config/flag > tiny forward fix. Avoid refactors in the hotfix PR.393. **Blast radius** — Limit audience (canary, single service). No drive-by dependency upgrades.404. **Rollback plan** — Exact command or previous artifact version; who can execute it.415. **Verify** — Error rate, latency, and the failing user journey return to baseline.426. **Handoff** — Write a short timeline + follow-ups (proper fix, tests, postmortem). Do not expand the hotfix.4344## Success criteria4546- [ ] User-facing impact is mitigated or clearly reduced.47- [ ] Change set is minimal and free of unrelated refactors.48- [ ] Rollback path is documented and feasible.49- [ ] Verification used real signals (metrics/logs/journey), not only "deploy succeeded".50- [ ] Destructive or security-weakening actions were confirmed or avoided.5152## Out of scope5354- Full postmortem facilitation and action-item programs.55- Long-term architecture rewrites during the incident window.56- Customer comms strategy beyond brief factual status if you are not the comms owner.