{
  "$schema": "../../../skill/references/schemap.schema.json",
  "kind": "workflow",
  "title": "Incident response",
  "subtitle": "From alert to postmortem",
  "lanes": [
    { "id": "mon", "label": "Monitoring" },
    { "id": "oncall", "label": "On-call engineer" },
    { "id": "ic", "label": "Incident commander" },
    { "id": "comms", "label": "Comms" }
  ],
  "nodes": [
    {
      "id": "alert",
      "type": "external",
      "lane": "mon",
      "card": { "title": "Alert fires", "subtitle": "SLO burn rate" }
    },
    { "id": "ack", "type": "client", "lane": "oncall", "card": { "title": "Acknowledge", "tag": "≤ 5 min" } },
    { "id": "triage", "type": "client", "lane": "oncall", "card": { "title": "Triage", "subtitle": "severity?" } },
    {
      "id": "declare",
      "type": "security",
      "lane": "ic",
      "card": { "title": "Declare incident", "subtitle": "SEV1 / SEV2" }
    },
    { "id": "status", "type": "external", "lane": "comms", "card": { "title": "Status page" } },
    {
      "id": "mitigate",
      "type": "service",
      "lane": "oncall",
      "card": { "title": "Mitigate", "subtitle": "rollback, failover" }
    },
    { "id": "resolve", "type": "security", "lane": "ic", "card": { "title": "Resolve" } },
    { "id": "pm", "type": "storage", "lane": "ic", "card": { "title": "Postmortem", "subtitle": "within 5 days" } }
  ],
  "edges": [
    { "id": "a", "from": "alert", "to": "ack", "tone": "main" },
    { "id": "b", "from": "ack", "to": "triage", "tone": "main" },
    { "id": "c", "from": "triage", "to": "declare", "label": "user impact", "tone": "main" },
    { "id": "d", "from": "declare", "to": "status", "label": "update every 30 min" },
    { "id": "e", "from": "declare", "to": "mitigate", "tone": "main" },
    { "id": "f", "from": "mitigate", "to": "resolve", "tone": "main" },
    { "id": "g", "from": "resolve", "to": "pm", "tone": "main" },
    { "id": "h", "from": "resolve", "to": "status", "label": "all clear" }
  ]
}
