Pidoku

Archive

This learning material is in the archive. It is not currently maintained and has not been updated with the latest information, so tool versions, prices and dates may be out of date.

Severity and Roles

Module 5 Lesson 5.a 35 min Difficulty 2/5

Prerequisites 4.c

The idea in one minute#

Two decisions make an incident manageable. First, a severity level (SEV-1 to SEV-4) from a written table of impact, so everyone knows how much effort and noise is appropriate. Second, clear roles: one incident commander (IC) who coordinates and decides, an operations lead who does the hands-on work, a communications lead who keeps everyone informed, and a scribe who records the timeline. The commander does not debug.

These roles come from the Incident Command System used by fire services, adapted by Google, PagerDuty and others. They stop the two classic failures: everyone debugging and nobody coordinating, and five people making changes at once without telling each other.

An analogy#

An orchestra without a conductor can play a piece it knows well. When something unexpected happens — a missed entry, a broken string — someone has to decide, and everyone has to know who that is.

A picture#

flowchart TB
  IC[":i-user: <b>Incident commander</b><br/><small>coordinates, decides, delegates</small>"]
  IC --> OPS[":i-terminal: <b>Operations lead</b><br/><small>investigates, changes production</small>"]
  IC --> COM[":i-message-square: <b>Communications lead</b><br/><small>status page, stakeholders, support</small>"]
  IC --> SCR[":i-file-text: <b>Scribe</b><br/><small>timeline, decisions</small>"]
  OPS --> SME1[":i-users: Subject-matter experts<br/><small>DB, network, payments…</small>"]
  COM --> EXT[":i-globe: Customers, execs,<br/>support, legal"]
  class IC warn
  class OPS compute
  class COM io
  class SCR memory
  class SME1,EXT neutral

How it really works#

When is it an incident?#

Declare an incident when any of these is true (write your own list; this is a good start):

  • Users are visibly affected and it is not resolved within 15 minutes of starting work.
  • You need a second team to help.
  • Data loss, data corruption or a security breach is suspected.
  • An SLO error budget is burning at page level and the cause is not obvious.
  • You would want to tell your manager about it tomorrow.

Declaring is cheap; not declaring is expensive. Many organisations have a rule: if anyone wonders whether it is an incident, it is one. Downgrading later costs nothing.

Severity levels#

SeverityImpactExamplesResponse
SEV-1Critical: a core journey down for many users, data loss, security breach, legal exposureCheckout down everywhere; customer data exposedAll hands; IC + comms lead; exec notified within 15 min; public status page; updates every 30 min
SEV-2Major: a core journey degraded, or down for a subset (one region, one large customer)Checkout 10% errors in one region; login slow for everyoneIC + ops; status page if customer-visible; updates hourly
SEV-3Minor: a non-core feature broken, or a core one with a workaroundOrder history not loading; admin tool downOwning team, business hours
SEV-4Negligible / near missA canary caught a bad release; disk nearly fullTicket; optional review

Severity is about impact, not cause. A one-line typo that takes checkout down is SEV-1; a dramatic hardware fire that users never notice because of redundancy is SEV-3 at most.

Severity can change during the incident; say so explicitly (“upgrading to SEV-1”).

The roles in detail#

RoleDoesDoes not
Incident commanderOwns the incident until handed off. Sets objectives (“mitigate first”), assigns roles, decides between options, calls for help, keeps a regular rhythm of status checks, declares the endDebug, run commands, write the status page
Operations leadLeads hands-on investigation and mitigation; the only person (or delegated people) changing production; reports findings to the ICMake customer communication decisions
Communications leadWrites status page updates, informs support, executives and affected customers at a fixed cadenceSpeculate about cause in public
ScribeTimestamped log of observations, actions and decisions in the incident documentFilter or interpret
Subject-matter expertsJoin when asked, work under the ops leadFreelance changes

In a small incident one person may hold several roles — but the IC role should be separate from the hands-on role as soon as there are two people.

Rules that keep it calm#

  • One incident channel, one incident document, named by ID (#inc-2231-checkout-errors).
  • One person changes production at a time, or each change is announced first: “I’m going to roll back checkout in eu-west, objections?”
  • Explicit handoffs. “I am handing IC to Priya. Priya, do you accept?” “I accept.”
  • Fixed rhythm. The IC asks for status every 15–30 minutes and posts a summary.
  • Clear end. The IC declares the incident mitigated, then resolved, and names the postmortem owner.

Tooling#

Incident management platforms — PagerDuty, incident.io, FireHydrant, Rootly, Opsgenie, Jira Service Management, Grafana Incident — automate the mechanics: create the channel and document, page the IC rotation, assign roles, post status page updates, and assemble the timeline for the postmortem. A Slack or Teams command like /incident declare lowers the cost of declaring to seconds, which is the most important thing they do.

A worked example#

At 14:05 a support lead reports that several large customers cannot log in. The on-call engineer for identity checks: login errors are 30% for customers using single sign-on, 0% for password users.

  1. Declare: SEV-2 (core journey, subset of users). /incident declare sev2 "SSO login failures".
  2. Roles: the on-call engineer becomes ops lead. The IC rotation pages Priya, who becomes IC. The identity team’s manager takes comms.
  3. 14:20: ops lead finds the SAML signing certificate from one identity provider rotated at 14:00. IC asks: “What are our options?” — (a) import the new certificate (10 minutes, low risk), (b) disable signature checking (no!). IC chooses (a).
  4. 14:22: comms posts: “Some customers using single sign-on cannot log in. We have identified the cause and are applying a fix. Next update 14:45.”
  5. 14:31: certificate imported, errors at 0%. IC declares mitigated; 30 minutes of monitoring; resolved at 15:05. Postmortem owner: ops lead.

The program below turns an impact description into a suggested severity, so the decision is made from the written table rather than from adrenaline.

Code#

Go
// severity.go — suggest an incident severity from impact, using a written table.
package main

import "fmt"

type impact struct {
	name            string
	coreJourney     bool    // checkout, login, core API
	usersAffected   float64 // fraction of users
	dataLoss        bool
	securityBreach  bool
	workaround      bool
	customerVisible bool
}

func severity(i impact) (int, string) {
	switch {
	case i.dataLoss || i.securityBreach:
		return 1, "data loss or security breach is always SEV-1"
	case i.coreJourney && i.usersAffected >= 0.25 && !i.workaround:
		return 1, "core journey broken for a large share of users"
	case i.coreJourney && (i.usersAffected >= 0.01 || !i.workaround):
		return 2, "core journey degraded or broken for a subset"
	case i.customerVisible && !i.workaround:
		return 3, "non-core feature broken"
	case i.customerVisible:
		return 3, "visible but has a workaround"
	default:
		return 4, "no user impact (near miss)"
	}
}

func response(sev int) string {
	return map[int]string{
		1: "all hands, IC + comms, execs within 15 min, status page, updates every 30 min",
		2: "IC + ops lead, status page if visible, updates hourly",
		3: "owning team, business hours",
		4: "ticket, optional review",
	}[sev]
}

func main() {
	cases := []impact{
		{"checkout down everywhere", true, 1.0, false, false, false, true},
		{"SSO login failing for 30% of business customers", true, 0.08, false, false, false, true},
		{"order history page broken", false, 0.4, false, false, false, true},
		{"export to CSV broken; copy-paste works", false, 0.02, false, false, true, true},
		{"canary caught a bad build", false, 0, false, false, true, false},
		{"backup job wrote to a public bucket", false, 0, false, true, true, false},
	}
	for _, c := range cases {
		sev, why := severity(c)
		fmt.Printf("SEV-%d  %-48s  %s\n       → %s\n", sev, c.name, why, response(sev))
	}
}

Remember this#

  • Declare early; downgrading is free. If anyone wonders whether it is an incident, it is.
  • Severity is from a written impact table, not from how scary the cause looks.
  • Roles: incident commander (coordinates, does not debug), operations lead, communications lead, scribe.
  • One channel, one document, announced changes, explicit handoffs, a fixed rhythm, a clear end.

Try it#

  1. Run severity.go. Add a case for “admin tool down for internal staff” and check where it lands.
  2. Write your organisation’s severity table with one real example per level.
  3. With two colleagues, role-play the SSO incident above for 15 minutes with strict roles.

Check yourself#

  1. Why should the incident commander not debug?
  2. A data centre catches fire but users notice nothing. What severity, and why?
  3. What does an explicit handoff of the IC role sound like?
  4. Name three conditions that should trigger declaring an incident.

Sources#

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in