36.1 Incident Lifecycle
Detection → Triage → Mitigation → Resolution → Post-Mortem → Prevention
36.2 Severity Levels
| Level | Description | Response Time | Communication |
|---|---|---|---|
| SEV1 | Service down, major customer impact | Immediate, all hands | Status page, exec update every 15 min |
| SEV2 | Significant degradation, partial impact | 15 min, on-call team | Slack channel, update every 30 min |
| SEV3 | Minor issues, limited impact | 1 hour, owning team | Ticket, daily update |
| SEV4 | Cosmetic, no user impact | Next business day | Ticket only |
36.3 Blameless Post-Incident Review Template
- Summary — what happened, duration, impact.
- Timeline — detailed chronological events.
- Root Cause — technical root cause (5 Whys).
- Contributing Factors — what made it worse or delayed recovery.
- What Went Well — what worked in the response.
- Action Items — concrete tasks with owners/deadlines:
- Immediate (this week): fix the specific bug.
- Short-term (this month): add monitoring/alerting.
- Long-term (this quarter): architectural improvement.
36.4 AI-Specific Incident Categories
- Model quality degradation — increased hallucination, wrong answers, off-topic responses.
- Retrieval failures — vector DB outage, embedding service down, stale indices.
- Safety incidents — harmful, biased, or confidential content generated.
- Cost explosions — runaway token usage, infinite agent loops.
- Traditional infra — service/database/network outages.
Response framework:
- Model quality: immediate fallback model + increase retrieval K + guardrails → investigate drift vs. golden dataset → update prompts/retuning, escalate to model team.
- Safety incidents (always SEV1): block the input pattern, enable strict content filtering, notify legal/compliance/management, post-mortem on model vs. prompt vs. data root cause, update guardrails.
- Cost explosions: rate limit, disable expensive features, switch to smaller model → identify source (user/agent loop/data) → per-user quotas, per-request cost limits, agent iteration caps.
36.5 DORA Metrics
| Metric | Definition | Elite Performance |
|---|---|---|
| Deployment Frequency | How often code ships to production | Multiple times per day |
| Lead Time for Changes | Commit → production | < 1 hour |
| Change Failure Rate | % of deployments causing incidents | 0–15% |
| Time to Restore Service | Time to recover from a production incident | < 1 hour |
DORA metrics are the standard architects use to justify CI/CD and reliability investment to leadership — they map engineering practice directly to business risk and velocity.
36.6 Deployment Strategies
| Strategy | Description | Risk | Rollback Speed | Resource Overhead |
|---|---|---|---|---|
| Rolling Update | Gradually replace old pods with new | Low-Medium | Medium | Low |
| Blue-Green | Two identical environments, switch traffic | Low | Instant | High (2x) |
| Canary | Route small % traffic to new version | Low | Fast | Low-Medium |
| A/B Testing | Route specific users to new version | Low | Fast | Low-Medium |
| Shadow/Dark | Mirror traffic, discard responses | Very Low | N/A | Medium |
| Recreate | Stop all old, start all new | High | Slow | None (downtime) |
Canary deep dive:
Phase 1 (0-5 min): 1% traffic → gate: error rate <0.1%, latency <2x baseline
Phase 2 (5-15 min): 10% traffic → gate: no business metric regression
Phase 3 (15-30 min): 50% traffic → gate: resource utilization normal
Phase 4 (30-60 min): 100% traffic → keep old version 1h for quick rollback
Tools: Argo Rollouts, Flagger, LaunchDarkly/Flagsmith (feature flags), Spinnaker.
36.7 Q&A
Q: Describe your incident-management approach for a production AI system. See 105.4 — the key differentiator is categorizing AI-specific failure modes separately from infra failures, and treating any safety/PHI-leakage incident as automatic SEV1 regardless of scale.
Q: How do you ensure production reliability while shipping fast? Testing pyramid (70% unit / 20% integration / 10% E2E); CI/CD gates (build→test→scan→staging→smoke→prod); feature flags for decoupled deploy/release; canary with automated 15-minute monitoring window and auto-rollback on SLO breach; error budgets governing release cadence; blameless post-mortems feeding systemic fixes back into the pipeline.