# Incident Response
<!--
ref: @any-corp/engineering/incident-response
type: protocol
tags: [engineering, incident, oncall, sev, outage, security]
triggers: [customer-facing outage, significant degradation, localized issue, bug or annoyance]
trigger_prompt: When a system failure occurs, prompting the need for immediate action to assess and resolve the incident while keeping stakeholders informed.
version: 1
updated_at: 2026-04-30T17:25:41.165Z
-->

How we respond when something is broken in production. Page → assess → mitigate → communicate → learn.

## Severities

| Sev | Meaning | Examples | Response |
|---|---|---|---|
| **Sev-1** | Customer-facing outage or data loss. | Site down. Login broken. Payments failing. Customer data exposed. | Page on-call immediately. All-hands welcome. |
| **Sev-2** | Significant degradation. | Latency > 2× baseline for 10+ min. Major feature broken. Internal tool down. | Page on-call. Multi-person response. |
| **Sev-3** | Localized issue, contained. | One non-critical feature degraded. Single customer affected. | On-call investigates, no broad page. |
| **Sev-4** | Bug or annoyance. | Cosmetic, edge case, single user complaint. | Bug ticket, normal cycle. |

When in doubt, **declare higher**. Downgrading is easy; upgrading mid-incident is messy.

## On-call

- Rotation: **weekly**, Tuesday 9am Pacific to Tuesday 9am Pacific.
- Two tiers: **primary** (first paged) and **secondary** (paged if primary doesn't ack within 5 min).
- Schedule + handoff per `@any-corp/engineering/on-call` (folded into this protocol below).

## Page → ack → first 15 minutes

### When you're paged

1. **Acknowledge** within 5 minutes. The pager system requires it. Even "I'm here, looking" is fine.
2. **Open the incident channel.** `#inc-YYYYMMDD-<short-name>`. The system creates it; you confirm.
3. **Set the severity** in the incident tool. Default Sev-2 if unsure, then adjust.
4. **Confirm scope.** What's broken? For whom? When did it start?

### First 15 minutes — IC, comms, ops

If it's Sev-1 or Sev-2:

| Role | Responsibility |
|---|---|
| **Incident Commander (IC)** | Decides what to try, declares severity, calls escalations. One person, named. |
| **Comms** | Posts updates externally (status page) + internally (#general, #incidents). |
| **Ops / debugger** | Hands on the system. The IC asks, "what do you need" — Ops answers. |
| **Scribe** | Captures timeline + decisions in the incident channel. |

For smaller (Sev-3 / Sev-4), one person is all roles.

The IC's first three sentences in `#incidents`:

```
INCIDENT: [one-line description]
SEV: [1 / 2 / 3]
IC: [your name]
SCOPE: [what % / which customers / which feature]
NEXT UPDATE: [time, e.g., +15 min]
```

### Mitigation > root cause

In the incident: **stop the bleeding first**. Root-cause later.

- Did a deploy go out before the incident? **Roll back.** Don't debug live.
- Is one customer's traffic blowing up the system? **Rate limit them.** Apologize later.
- Is one query taking down the DB? **Kill the query.** Add a guard later.

The goal is: **customers stop being hurt**. Then we figure out why.

## Communication during the incident

### Status page

Public status page updated by **Comms** at the start, every 30 minutes thereafter, and at resolution.

Templates:

```
[Investigating] We're investigating reports of [X]. We'll update in 30 minutes.

[Identified] We've identified the cause: [Y]. We're applying a fix.

[Monitoring] The fix is deployed. We're monitoring for stability.

[Resolved] [X] is resolved as of [time]. Postmortem to follow within 5 business days.
```

### Internal

`#general` for company awareness. `#incidents` for response. `#exec` if Sev-1.

External-facing teams (CS, sales) get a brief in `#cs-incidents` so they can answer customer DMs without guessing.

## Resolution criteria

An incident is resolved when:

- The original symptom is gone for at least 30 minutes of normal traffic.
- No new related alerts are firing.
- Customer-facing status is updated to "Resolved."

The IC declares resolution, in the channel and on the status page. Post the **incident summary** within 1 hour of resolution.

## Handoff (for long incidents)

If an incident runs more than 4 hours, the IC hands off — incidents kill people who try to solo them.

Handoff message:

```
Handing off IC to <next person>.
- Current state: ...
- What's been tried: ...
- What we're trying now: ...
- What I think the path forward is: ...
- Open questions: ...
```

The new IC reads, asks questions, takes the channel.

## Security incidents — same flow, with extra steps

If the incident is or might be a **security** issue (data exposure, unauthorized access, malware, suspicious account activity):

- **Severity is at least Sev-2**, often Sev-1.
- **Notify** `#security` and the **CTO + Head of Security** (or designated DPO) immediately.
- **Don't share details** in public channels until scope is confirmed.
- **Preserve evidence.** Don't wipe logs, don't kill the suspicious session immediately if it would lose forensic data — coordinate with the security lead.
- **Customer notification** decisions are made by **CEO + legal + security**, not by the IC alone.
- **Regulatory clocks** may apply (GDPR 72h, state breach laws). Legal owns timing.

## Postmortem

Required for any Sev-1 or Sev-2, or any Sev-3 with a customer-facing impact.

Template + cadence in `@any-corp/engineering/postmortem`.

Due: **5 business days** after the incident.

## Practice — once a quarter

Once a quarter, we run a **game day**:

- Inject a controlled failure in staging (or a real but small production failure with prep).
- On-call walks through the response.
- Time-to-detect, time-to-mitigate, time-to-resolve are measured.
- Outputs feed into improvements: better runbooks, better alerts, better tooling.

## What we don't do

- We don't investigate root cause while customers are still hurting. Mitigate first.
- We don't go silent. Updates every 30 minutes minimum, even if it's "we're still investigating."
- We don't hide a Sev-1 from the company. Bad signal.
- We don't blame people in the postmortem. We blame systems and decisions; we improve them.
- We don't skip the postmortem because "we know what happened." The discipline of writing it is what makes the next incident shorter.

---

*Related: `@content/web/github/2026-11-29-convex-backend-skill-issue-64` · `@content/youtube/tiago-forte/i-connected-claude-to-everything-then-i-saw-the-gap` · `@content/youtube/indy-dev-dan/mac-mini-agents-openclaw-is-a-nightmare-use-these-skills-instead` · `@content/youtube/cole-medin/watch-this-if-your-coding-agent-is-ignoring-your-rules-you-need-hooks` · `@content/youtube/aie/the-one-thing-every-ai-agent-framework-agrees-on-mislav-ivanda-daytona`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*