@radicaltools/cli 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +121 -16
  2. package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
  3. package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
  4. package/dist/hub-catalogue/concern/concern-api-evolution.radical +449 -210
  5. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
  6. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
  7. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
  8. package/dist/hub-catalogue/concern/concern-architecture-style.radical +287 -131
  9. package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
  10. package/dist/hub-catalogue/concern/concern-authentication.radical +247 -37
  11. package/dist/hub-catalogue/concern/concern-authorization.radical +311 -89
  12. package/dist/hub-catalogue/concern/concern-availability.radical +287 -63
  13. package/dist/hub-catalogue/concern/concern-backend-stack.radical +300 -381
  14. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +385 -129
  15. package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
  16. package/dist/hub-catalogue/concern/concern-capacity.radical +194 -81
  17. package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
  18. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
  19. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
  20. package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
  21. package/dist/hub-catalogue/concern/concern-communication-style.radical +473 -167
  22. package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
  23. package/dist/hub-catalogue/concern/concern-data-consistency.radical +339 -308
  24. package/dist/hub-catalogue/concern/concern-data-store.radical +480 -158
  25. package/dist/hub-catalogue/concern/concern-decomposition.radical +260 -85
  26. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
  27. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
  28. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
  29. package/dist/hub-catalogue/concern/concern-deployment.radical +343 -92
  30. package/dist/hub-catalogue/concern/concern-encryption.radical +339 -76
  31. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
  32. package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
  33. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +467 -160
  34. package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
  35. package/dist/hub-catalogue/concern/concern-infrastructure.radical +1300 -268
  36. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +88 -51
  37. package/dist/hub-catalogue/concern/concern-messaging.radical +173 -140
  38. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +162 -159
  39. package/dist/hub-catalogue/concern/concern-observability.radical +224 -275
  40. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
  41. package/dist/hub-catalogue/concern/concern-personal-data.radical +637 -122
  42. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
  43. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +433 -141
  44. package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
  45. package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
  46. package/dist/hub-catalogue/concern/concern-secrets.radical +332 -74
  47. package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
  48. package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
  49. package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
  50. package/dist/hub-catalogue/concern/concern-supply-chain.radical +257 -183
  51. package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
  52. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
  53. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +271 -137
  54. package/dist/hub-catalogue/concern/concern-test-strategy.radical +243 -224
  55. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
  56. package/dist/index.js +3680 -2074
  57. package/package.json +1 -1
@@ -0,0 +1,1204 @@
1
+ {
2
+ "hub": {
3
+ "id": "concern-incident-management",
4
+ "category": "concern",
5
+ "name": "Incident management",
6
+ "description": "What happens once something has gone wrong: how an incident is declared and classified by severity, who leads it, how customers and stakeholders are told, how it is closed, and how the team learns from it. The snippets are Node 20 scripts over the incident.io API, Atlassian Statuspage and the GitHub Deployments API, and a bash check of the severity definitions.",
7
+ "tags": [
8
+ "operability",
9
+ "incident management",
10
+ "severity",
11
+ "incident command",
12
+ "status page",
13
+ "postmortem"
14
+ ],
15
+ "requiredMetamodel": "c4-ddd-governance-builtin",
16
+ "concern": {
17
+ "id": "incident-management",
18
+ "trigger": "LIST NODES WHERE type = \"system\" AND external != true",
19
+ "why": "this system serves people who notice when it fails, so how an incident is declared, led, communicated and learned from has to be decided.",
20
+ "group": "operability"
21
+ },
22
+ "sources": [
23
+ {
24
+ "title": "Google, Site Reliability Engineering, chapter 14: Managing Incidents",
25
+ "url": "https://sre.google/sre-book/managing-incidents/"
26
+ },
27
+ {
28
+ "title": "Google, Site Reliability Engineering, chapter 15: Postmortem Culture: Learning from Failure",
29
+ "url": "https://sre.google/sre-book/postmortem-culture/"
30
+ },
31
+ {
32
+ "title": "PagerDuty Incident Response: Severity Levels",
33
+ "url": "https://response.pagerduty.com/before/severity_levels/"
34
+ },
35
+ {
36
+ "title": "PagerDuty Incident Response: Incident Commander",
37
+ "url": "https://response.pagerduty.com/training/incident_commander/"
38
+ },
39
+ {
40
+ "title": "PagerDuty Incident Response: Postmortem Process",
41
+ "url": "https://response.pagerduty.com/after/post_mortem_process/"
42
+ },
43
+ {
44
+ "title": "Atlassian Incident Management Handbook: Responding to an incident",
45
+ "url": "https://www.atlassian.com/incident-management/handbook/incident-response"
46
+ },
47
+ {
48
+ "title": "Atlassian Incident Management Handbook: Postmortems",
49
+ "url": "https://www.atlassian.com/incident-management/handbook/postmortems"
50
+ },
51
+ {
52
+ "title": "Atlassian: Understanding incident severity levels",
53
+ "url": "https://www.atlassian.com/incident-management/kpis/severity-levels"
54
+ },
55
+ {
56
+ "title": "ITIL 4 Practice Guide: Incident Management (Axelos)",
57
+ "url": "https://www.axelos.com/resource-hub/practice/incident-management-itil-4-practice-guide"
58
+ },
59
+ {
60
+ "title": "ServiceNow: Define priority lookup rules (priority from impact and urgency)",
61
+ "url": "https://www.servicenow.com/docs/r/it-service-management/incident-management/def-prio-lookup-rules.html"
62
+ },
63
+ {
64
+ "title": "incident.io API reference (OpenAPI: incidents, severities, incident updates, follow-ups, post-mortem documents)",
65
+ "url": "https://docs.incident.io/api-reference"
66
+ },
67
+ {
68
+ "title": "Atlassian Statuspage REST API",
69
+ "url": "https://developer.statuspage.io/"
70
+ },
71
+ {
72
+ "title": "GitHub REST API: deployment statuses",
73
+ "url": "https://docs.github.com/en/rest/deployments/statuses"
74
+ },
75
+ {
76
+ "title": "Atlassian: Opsgenie end of sale and end of support",
77
+ "url": "https://www.atlassian.com/licensing/opsgenie"
78
+ },
79
+ {
80
+ "title": "Commission Delegated Regulation (EU) 2024/1772: criteria for classifying ICT-related incidents and materiality thresholds for major incidents",
81
+ "url": "https://eur-lex.europa.eu/eli/reg_del/2024/1772/oj"
82
+ },
83
+ {
84
+ "title": "Regulation (EU) 2016/679 (GDPR), Article 33: notification of a personal data breach",
85
+ "url": "https://eur-lex.europa.eu/eli/reg/2016/679/oj"
86
+ }
87
+ ],
88
+ "templateParams": [
89
+ {
90
+ "key": "SEVERITY",
91
+ "title": "Severity",
92
+ "label": "How are incidents classified by severity?",
93
+ "hint": "The level decides everything that follows: who is woken, who leads, whether customers are told and whether a postmortem is written. Each scheme defines its levels by customer impact with examples; the two highest levels are the top severities that get the full response. How a major incident under the EU DORA rules maps is decided here for every scheme; its classification stays in the EU DORA pack.",
94
+ "defaultValue": "sev4",
95
+ "options": [
96
+ {
97
+ "value": "sev4",
98
+ "label": "four severity levels by customer impact (SEV1 to SEV4)",
99
+ "description": "SEV1 all or most customers cannot use a core function or data is lost or leaked; SEV2 some customers cannot; SEV3 a minor function is degraded with a workaround; SEV4 no customer impact yet, a risk to act on in working hours. SEV1 and SEV2 are the top severities. Pick it for a product team running its own services: enough levels to separate waking someone from the next working day, few enough to choose in seconds."
100
+ },
101
+ {
102
+ "value": "three",
103
+ "label": "three levels (critical, major, minor)",
104
+ "description": "Critical very high impact (a full outage, a data breach), major significant impact for some customers, minor low impact handled in working hours: incident.io's default levels and Atlassian's three-level scale. Critical and major are the top severities. Pick it for a small team or a first incident process, where a fourth level would only be argued about."
105
+ },
106
+ {
107
+ "value": "itsm",
108
+ "label": "the ITIL priority of the ITSM tool (P1 to P5)",
109
+ "description": "The priority comes from the ITSM tool's impact and urgency matrix (ITIL 4 incident management; ServiceNow's priority lookup rules give P1 Critical to P5 Planning), and the response uses the same five levels. P1 and P2 are the top severities. Pick it when the organisation already runs ServiceNow or Jira Service Management with that matrix and the service desk opens incidents there."
110
+ }
111
+ ]
112
+ },
113
+ {
114
+ "key": "COMMAND",
115
+ "title": "Leadership",
116
+ "label": "Who leads an incident of the top severities?",
117
+ "hint": "Coordinating and fixing are two jobs; under pressure one person doing both does neither well. Incidents below the top severities are always led by the on-call engineer.",
118
+ "defaultValue": "commander",
119
+ "options": [
120
+ {
121
+ "value": "commander",
122
+ "label": "an incident commander from a rota, apart from those fixing it",
123
+ "description": "A trained commander is paged from a rota of their own, takes the lead role, coordinates, decides and sees that people are told, and changes nothing in the system; the on-call engineers and the experts they call do the fixing (Google SRE incident command; PagerDuty's Incident Commander). Pick it when at least four people can be trained for the rota and outages cross teams or last hours."
124
+ },
125
+ {
126
+ "value": "oncall",
127
+ "label": "the on-call engineer who was paged",
128
+ "description": "The paged engineer leads the incident and names a teammate to handle communication for a top-severity one, handing the lead over explicitly when it outgrows them or the shift ends. Pick it for one team that owns the whole system, where a separate rota would be the same few people."
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ "key": "COMMS",
134
+ "title": "Communication",
135
+ "label": "How are customers told?",
136
+ "hint": "Stakeholders inside get regular updates in the incident tool either way; this decides how customers learn of an incident that affects them. The Observability pack's working-hours alerting and the Availability pack's announced maintenance window both assume a public status page.",
137
+ "defaultValue": "statuspage",
138
+ "options": [
139
+ {
140
+ "value": "statuspage",
141
+ "label": "a public status page",
142
+ "description": "Every customer-facing incident is published on a status page (Atlassian Statuspage, Instatus, Better Stack or incident.io Status Pages) within minutes and updated on a fixed cadence until it is resolved; customers subscribe for e-mail or webhook notices. Pick it for products with many customers, or whenever the Observability pack alerts only in working hours or the Availability pack announces maintenance windows."
143
+ },
144
+ {
145
+ "value": "direct",
146
+ "label": "direct messages to the affected customers",
147
+ "description": "Support tells the affected customers by e-mail or in the product, from the incident's list of who is affected, and tells them again when it is over; there is no public page. Pick it for a few business customers with named contacts and contracts, where a public page would show more than any one customer needs, and only when no other pack relies on a status page."
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "key": "POSTMORTEM",
153
+ "title": "Learning",
154
+ "label": "How does the team learn from an incident of the top severities?",
155
+ "hint": "Postmortems pay off only when they are written soon, blame nobody, and their actions are finished. Actions from either way are tracked to closure.",
156
+ "defaultValue": "blameless",
157
+ "options": [
158
+ {
159
+ "value": "blameless",
160
+ "label": "a blameless postmortem with tracked actions",
161
+ "description": "Every top-severity incident gets a written postmortem within a week of being resolved (impact, timeline, contributing factors, actions), discussed in a meeting with the responders and naming no one as the cause; its actions are tracked to closure (Google SRE postmortem culture; PagerDuty and Atlassian postmortems). Pick it by default, and always when incidents cross teams or customers ask for a report."
162
+ },
163
+ {
164
+ "value": "retro",
165
+ "label": "a short review in the next team retrospective",
166
+ "description": "The team reviews each top-severity incident in its next retrospective, writes the outcome into the incident and closes it; actions are tracked as with a postmortem. Pick it for one small team with few incidents, where a separate document and meeting would be ceremony; supersede it when the same incident comes back."
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "key": "DECLARE_MINUTES",
172
+ "label": "Within how many minutes of the first sign of customer impact is an incident declared?",
173
+ "defaultValue": "15",
174
+ "type": "number"
175
+ },
176
+ {
177
+ "key": "COMMAND_MINUTES",
178
+ "label": "Within how many minutes of declaring a top-severity incident is its lead assigned?",
179
+ "defaultValue": "15",
180
+ "type": "number"
181
+ },
182
+ {
183
+ "key": "STATUS_MINUTES",
184
+ "label": "Within how many minutes of declaring a customer-facing incident are customers told?",
185
+ "defaultValue": "15",
186
+ "type": "number"
187
+ },
188
+ {
189
+ "key": "UPDATE_MINUTES",
190
+ "label": "How many minutes may pass between two updates on a live top-severity incident?",
191
+ "defaultValue": "30",
192
+ "type": "number"
193
+ },
194
+ {
195
+ "key": "POSTMORTEM_DAYS",
196
+ "label": "Within how many days of resolution is the postmortem completed? (a blameless postmortem only)",
197
+ "defaultValue": "7",
198
+ "type": "number"
199
+ },
200
+ {
201
+ "key": "RETRO_DAYS",
202
+ "label": "Within how many days of resolution is the incident reviewed in a retrospective? (a review in the retrospective only)",
203
+ "defaultValue": "14",
204
+ "type": "number"
205
+ },
206
+ {
207
+ "key": "ACTION_DAYS",
208
+ "label": "Within how many days is an action from a postmortem or review done or dropped with a reason?",
209
+ "defaultValue": "56",
210
+ "type": "number"
211
+ }
212
+ ]
213
+ },
214
+ "nodes": [
215
+ {
216
+ "id": "need",
217
+ "type": "need",
218
+ "label": "Incidents are handled and learned from",
219
+ "x": 0,
220
+ "y": 0,
221
+ "kind": "brief",
222
+ "source": "Hub concern pack: Incident management",
223
+ "description": "When the system fails its customers, the team has to recognise it quickly, agree how bad it is, put one person in charge, keep customers and the business told, get service back, and make the same failure less likely. Without an agreed process every incident is improvised, the loudest guess sets the severity, the best engineer is buried in messages, and the lessons are lost. The checks assume the severity definitions in docs/incidents/severity.md and Node 20 scripts under scripts/incidents/ that a daily CI job runs with read-only keys for incident.io (INCIDENT_IO_API_KEY), Atlassian Statuspage (STATUSPAGE_API_KEY, STATUSPAGE_PAGE_ID) and GitHub (GITHUB_TOKEN)."
224
+ },
225
+ {
226
+ "id": "req-classify",
227
+ "type": "requirement",
228
+ "label": "Incidents classified by severity",
229
+ "x": 260,
230
+ "y": 0,
231
+ "ears_type": "ubiquitous",
232
+ "action": "classify every incident at declaration on {{SEVERITY}}, as docs/incidents/severity.md defines each level by its impact with examples, take the higher level when in doubt, record it in the incident tool and change it there as the impact becomes known",
233
+ "rationale": "Levels agreed before the incident end the argument during it, and choosing the higher one when unsure costs less than an under-staffed response (PagerDuty, Severity Levels; Atlassian, Understanding incident severity levels)."
234
+ },
235
+ {
236
+ "id": "req-declare",
237
+ "type": "requirement",
238
+ "label": "Incidents declared early",
239
+ "x": 260,
240
+ "y": 130,
241
+ "ears_type": "event-driven",
242
+ "trigger": "an alert routed as the Observability pack decides, a customer report or an engineer's own observation shows customer impact, or a problem needs a second team or is still unsolved after an hour of concentrated work",
243
+ "action": "declare an incident in the incident tool within {{DECLARE_MINUTES}} minutes, with a level and a channel of its own named after the incident's reference",
244
+ "rationale": "Google SRE declares an incident when a second team is needed, customers see the outage, or an hour of analysis has not solved it; declaring early and standing down is cheaper than organising late (Site Reliability Engineering, chapter 14)."
245
+ },
246
+ {
247
+ "id": "req-dora",
248
+ "type": "requirement",
249
+ "label": "DORA major incidents at the highest level",
250
+ "x": 260,
251
+ "y": 260,
252
+ "ears_type": "event-driven",
253
+ "trigger": "an incident is classified as major under the EU Digital Operational Resilience Act, as the EU DORA pack decides",
254
+ "action": "put it on the highest level of the scheme for as long as it stays major, and mark it in the incident's field DORA major incident",
255
+ "rationale": "A major ICT-related incident affects critical services and meets the materiality thresholds (Delegated Regulation (EU) 2024/1772); its reports are due within hours, so the response must be the fullest one, and the level must not hide it."
256
+ },
257
+ {
258
+ "id": "req-security",
259
+ "type": "requirement",
260
+ "label": "Confirmed security alerts become private incidents",
261
+ "x": 260,
262
+ "y": 390,
263
+ "ears_type": "event-driven",
264
+ "trigger": "the person triaging a security alert from the detection the Security event logging and detection pack decides confirms it",
265
+ "action": "declare it as an incident of type Security that only invited responders can see, on the same levels by impact",
266
+ "rationale": "A security incident needs the same command and communication as an outage, but its details must not reach everyone with access to the incident tool while an attacker may still be inside (Atlassian, Responding to an incident)."
267
+ },
268
+ {
269
+ "id": "req-commander",
270
+ "type": "requirement",
271
+ "label": "A commander leads",
272
+ "x": 260,
273
+ "y": 520,
274
+ "ears_type": "event-driven",
275
+ "trigger": "an incident on one of the two highest levels is declared",
276
+ "action": "page the commander rota and give the incident's lead role to the commander within {{COMMAND_MINUTES}} minutes; the commander coordinates, decides and sees that people are told, makes no change to the system, and hands command over only by reassigning the role",
277
+ "rationale": "Separating command from the hands-on work keeps someone looking at the whole incident; a recorded handover keeps it clear who leads (Site Reliability Engineering, chapter 14; PagerDuty, Incident Commander).",
278
+ "hubWhen": {
279
+ "COMMAND": [
280
+ "commander"
281
+ ]
282
+ }
283
+ },
284
+ {
285
+ "id": "req-oncall-lead",
286
+ "type": "requirement",
287
+ "label": "The on-call engineer leads",
288
+ "x": 260,
289
+ "y": 650,
290
+ "ears_type": "event-driven",
291
+ "trigger": "an incident on one of the two highest levels is declared",
292
+ "action": "give the incident's lead role to the paged on-call engineer within {{COMMAND_MINUTES}} minutes, have them name a teammate for communication, and record every handover by reassigning the role",
293
+ "rationale": "In one small team the on-call engineer knows the most; naming a communicator keeps the updates from waiting on the fix, and a recorded handover keeps it clear who leads (Site Reliability Engineering, chapter 14).",
294
+ "hubWhen": {
295
+ "COMMAND": [
296
+ "oncall"
297
+ ]
298
+ }
299
+ },
300
+ {
301
+ "id": "req-status-page",
302
+ "type": "requirement",
303
+ "label": "Status page tells customers",
304
+ "x": 260,
305
+ "y": 780,
306
+ "ears_type": "event-driven",
307
+ "trigger": "an incident with customer impact is declared",
308
+ "action": "publish an incident on the public status page within {{STATUS_MINUTES}} minutes of the declaration, link it in the incident's field Status page incident, update it at least every {{UPDATE_MINUTES}} minutes and resolve it when the impact ends",
309
+ "rationale": "Telling customers quickly that the problem is known, and when they will hear more, builds trust and cuts the support load (Atlassian, Responding to an incident).",
310
+ "hubWhen": {
311
+ "COMMS": [
312
+ "statuspage"
313
+ ]
314
+ }
315
+ },
316
+ {
317
+ "id": "req-direct",
318
+ "type": "requirement",
319
+ "label": "Affected customers told directly",
320
+ "x": 260,
321
+ "y": 910,
322
+ "ears_type": "event-driven",
323
+ "trigger": "an incident with customer impact is declared",
324
+ "action": "tell the affected customers' named contacts by e-mail or in the product within {{STATUS_MINUTES}} minutes of the declaration, record the time in the incident's timestamp Customers notified at, and tell them again when the impact ends",
325
+ "rationale": "Without a public page, a customer hears only what support sends; recording the time is how the team shows it did (Atlassian, Responding to an incident).",
326
+ "hubWhen": {
327
+ "COMMS": [
328
+ "direct"
329
+ ]
330
+ }
331
+ },
332
+ {
333
+ "id": "req-stakeholders",
334
+ "type": "requirement",
335
+ "label": "Stakeholders updated on a cadence",
336
+ "x": 260,
337
+ "y": 1040,
338
+ "ears_type": "state-driven",
339
+ "precondition": "an incident on one of the two highest levels is live",
340
+ "action": "post an update in the incident tool, announced in #incidents, at least every {{UPDATE_MINUTES}} minutes, with the impact, the current status, the next steps and when the next update comes",
341
+ "rationale": "Regular updates with the time of the next one stop stakeholders from interrupting the responders to ask (Site Reliability Engineering, chapter 14: the communication role; Atlassian, Responding to an incident)."
342
+ },
343
+ {
344
+ "id": "req-deploy-failure",
345
+ "type": "requirement",
346
+ "label": "Failed deployments marked at close-out",
347
+ "x": 260,
348
+ "y": 1170,
349
+ "ears_type": "event-driven",
350
+ "trigger": "an incident caused by a production deployment is resolved by an intervention other than a rollback or hotfix deployment, such as a feature flag or a setting switched off",
351
+ "action": "record the deployment in the incident's field Caused by deployment and post a failure status on that deployment in the GitHub Deployments API within 1 working day, naming the incident and the intervention, as the Delivery metrics pack counts failures; rollback and hotfix deploy jobs post it themselves",
352
+ "rationale": "The Delivery metrics pack counts a deployment as failed when it needed immediate intervention, from the failure status on the deployment; an intervention without a deployment is seen only if the incident process marks it (GitHub REST API: deployment statuses)."
353
+ },
354
+ {
355
+ "id": "req-postmortem",
356
+ "type": "requirement",
357
+ "label": "Blameless postmortem",
358
+ "x": 260,
359
+ "y": 1300,
360
+ "ears_type": "event-driven",
361
+ "trigger": "an incident on one of the two highest levels is resolved",
362
+ "action": "complete a blameless postmortem within {{POSTMORTEM_DAYS}} days, with the impact, the timeline, the contributing factors and the actions, discussed with the responders and naming no person as the cause",
363
+ "rationale": "A postmortem written soon, by people who are not afraid of it, finds the contributing causes; PagerDuty schedules it within days and Atlassian requires it for severity 1 and 2 (Site Reliability Engineering, chapter 15; PagerDuty, Postmortem Process; Atlassian, Postmortems).",
364
+ "hubWhen": {
365
+ "POSTMORTEM": [
366
+ "blameless"
367
+ ]
368
+ }
369
+ },
370
+ {
371
+ "id": "req-retro",
372
+ "type": "requirement",
373
+ "label": "Reviewed in the retrospective",
374
+ "x": 260,
375
+ "y": 1430,
376
+ "ears_type": "event-driven",
377
+ "trigger": "an incident on one of the two highest levels is resolved",
378
+ "action": "review it in the team's next retrospective within {{RETRO_DAYS}} days, write the outcome and the actions into the incident, and close it",
379
+ "rationale": "Even a short review, held while the incident is fresh, turns it into actions; closing the incident is the record that it was held (Site Reliability Engineering, chapter 15).",
380
+ "hubWhen": {
381
+ "POSTMORTEM": [
382
+ "retro"
383
+ ]
384
+ }
385
+ },
386
+ {
387
+ "id": "req-actions",
388
+ "type": "requirement",
389
+ "label": "Actions tracked to closure",
390
+ "x": 260,
391
+ "y": 1560,
392
+ "ears_type": "ubiquitous",
393
+ "action": "record every action from a postmortem or review as a follow-up in the incident tool, synced to the team's issue tracker, with one owner, and finish it, or mark it not doing with the reason, within {{ACTION_DAYS}} days",
394
+ "rationale": "An action without an owner and a deadline is a wish; Atlassian holds its priority actions to an objective of 4 or 8 weeks with reminders and reports (Atlassian, Postmortems; PagerDuty, Postmortem Process)."
395
+ },
396
+ {
397
+ "id": "sc-classify",
398
+ "type": "scenario",
399
+ "label": "Severity defined and set",
400
+ "x": 520,
401
+ "y": 0,
402
+ "given": "the severity definitions and an incident declared without a level",
403
+ "when": "the definitions are checked and the daily incident check runs",
404
+ "then": "each level has its impact, examples, response and review written down, and the incident without a level is reported"
405
+ },
406
+ {
407
+ "id": "sc-declare",
408
+ "type": "scenario",
409
+ "label": "Customer report declared",
410
+ "x": 520,
411
+ "y": 130,
412
+ "given": "a customer report that checkout fails",
413
+ "when": "{{DECLARE_MINUTES}} minutes have passed",
414
+ "then": "an incident exists in the incident tool with a level and its own channel, and the daily check finds none without them"
415
+ },
416
+ {
417
+ "id": "sc-dora",
418
+ "type": "scenario",
419
+ "label": "Major incident raised",
420
+ "x": 520,
421
+ "y": 260,
422
+ "given": "an incident on the second level",
423
+ "when": "it is classified as major under DORA",
424
+ "then": "it is on the highest level, its field DORA major incident says Yes, and the daily check reports any major one below the highest level"
425
+ },
426
+ {
427
+ "id": "sc-security",
428
+ "type": "scenario",
429
+ "label": "Security incident private",
430
+ "x": 520,
431
+ "y": 390,
432
+ "given": "a confirmed alert of credential stuffing",
433
+ "when": "it is declared",
434
+ "then": "it is an incident of type Security, private to the invited responders, with a level, and the daily check reports any Security incident that is not private"
435
+ },
436
+ {
437
+ "id": "sc-commander",
438
+ "type": "scenario",
439
+ "label": "Commander takes the lead",
440
+ "x": 520,
441
+ "y": 520,
442
+ "given": "an incident declared on the highest level",
443
+ "when": "{{COMMAND_MINUTES}} minutes have passed",
444
+ "then": "a commander from the rota holds the lead role, the engineers fixing it hold other roles, and the daily check finds no top-severity incident without a lead",
445
+ "hubWhen": {
446
+ "COMMAND": [
447
+ "commander"
448
+ ]
449
+ }
450
+ },
451
+ {
452
+ "id": "sc-oncall-lead",
453
+ "type": "scenario",
454
+ "label": "On-call engineer takes the lead",
455
+ "x": 520,
456
+ "y": 650,
457
+ "given": "an incident declared on the second level at night",
458
+ "when": "{{COMMAND_MINUTES}} minutes have passed",
459
+ "then": "the paged engineer holds the lead role, a teammate handles communication, and the daily check finds no top-severity incident without a lead",
460
+ "hubWhen": {
461
+ "COMMAND": [
462
+ "oncall"
463
+ ]
464
+ }
465
+ },
466
+ {
467
+ "id": "sc-status-page",
468
+ "type": "scenario",
469
+ "label": "Customers see the incident",
470
+ "x": 520,
471
+ "y": 780,
472
+ "given": "an incident marked customer facing",
473
+ "when": "it runs for an hour and is resolved",
474
+ "then": "the linked status page incident was created within {{STATUS_MINUTES}} minutes of the declaration, no two updates are more than {{UPDATE_MINUTES}} minutes apart, and it is resolved",
475
+ "hubWhen": {
476
+ "COMMS": [
477
+ "statuspage"
478
+ ]
479
+ }
480
+ },
481
+ {
482
+ "id": "sc-direct",
483
+ "type": "scenario",
484
+ "label": "Customers told in time",
485
+ "x": 520,
486
+ "y": 910,
487
+ "given": "an incident marked customer facing",
488
+ "when": "{{STATUS_MINUTES}} minutes have passed",
489
+ "then": "the timestamp Customers notified at is set no later than {{STATUS_MINUTES}} minutes after the declaration, or the daily check reports it",
490
+ "hubWhen": {
491
+ "COMMS": [
492
+ "direct"
493
+ ]
494
+ }
495
+ },
496
+ {
497
+ "id": "sc-stakeholders",
498
+ "type": "scenario",
499
+ "label": "Updates keep coming",
500
+ "x": 520,
501
+ "y": 1040,
502
+ "given": "a live incident on the highest level",
503
+ "when": "two hours pass before it is resolved",
504
+ "then": "no two of its updates, counted from the declaration to the resolution, are more than {{UPDATE_MINUTES}} minutes apart"
505
+ },
506
+ {
507
+ "id": "sc-deploy-failure",
508
+ "type": "scenario",
509
+ "label": "Flag switched off marks the deployment",
510
+ "x": 520,
511
+ "y": 1170,
512
+ "given": "deployment 41 that broke checkout, fixed by switching its feature flag off",
513
+ "when": "the incident is resolved and 1 working day passes",
514
+ "then": "deployment 41 carries a failure status naming the incident and the flag, and the incident's field Caused by deployment says 41"
515
+ },
516
+ {
517
+ "id": "sc-postmortem",
518
+ "type": "scenario",
519
+ "label": "Postmortem done in time",
520
+ "x": 520,
521
+ "y": 1300,
522
+ "given": "an incident on the highest level, resolved",
523
+ "when": "{{POSTMORTEM_DAYS}} days have passed",
524
+ "then": "its postmortem document is completed, and the daily check reports any top-severity incident without one",
525
+ "hubWhen": {
526
+ "POSTMORTEM": [
527
+ "blameless"
528
+ ]
529
+ }
530
+ },
531
+ {
532
+ "id": "sc-retro",
533
+ "type": "scenario",
534
+ "label": "Review closes the incident",
535
+ "x": 520,
536
+ "y": 1430,
537
+ "given": "an incident on the second level, resolved",
538
+ "when": "{{RETRO_DAYS}} days have passed",
539
+ "then": "it is closed with the review's outcome, and the daily check reports any top-severity incident still open",
540
+ "hubWhen": {
541
+ "POSTMORTEM": [
542
+ "retro"
543
+ ]
544
+ }
545
+ },
546
+ {
547
+ "id": "sc-actions",
548
+ "type": "scenario",
549
+ "label": "Old action reported",
550
+ "x": 520,
551
+ "y": 1560,
552
+ "given": "a follow-up outstanding for more than {{ACTION_DAYS}} days and one without an owner",
553
+ "when": "the daily check runs",
554
+ "then": "both are reported and the check fails"
555
+ },
556
+ {
557
+ "id": "adr-sev4",
558
+ "type": "adr",
559
+ "label": "Four severity levels by customer impact",
560
+ "x": 780,
561
+ "y": 0,
562
+ "concern": "incident-management",
563
+ "status": "accepted",
564
+ "date": "",
565
+ "context": "This system serves customers, and some day it fails them: an outage, wrong results, a leak. The forces: in the first minutes nobody knows how bad it is, and an argument about severity costs the time the fix needs; the engineer who knows the system best is the worst person to also coordinate, update the business and answer customers; customers forgive an outage they were told about more readily than one they discovered, and silence is filled with guesses; a regulator may need a report within hours of an incident becoming major; and an incident nobody learns from comes back, while a review that looks for someone to blame teaches people to hide the next one. Who is paged and how alerts are routed is the Observability pack's; the availability objective and its error budget the Availability pack's; how a release is rolled back the Deployment pack's; how a failed deployment is counted the Delivery metrics pack's; the classification and reporting of major ICT-related incidents to the authority the EU DORA pack's; what is detected as a security event the Security event logging and detection pack's; and the assessment and notification of a breach of personal data the Personal data pack's.",
566
+ "decision": "Incidents are classified on four levels by customer impact. SEV1: a core function (checkout, payment, sign-in) fails for all or most customers, or data is lost or leaked; for example every order fails. SEV2: a core function fails or is wrong for some customers, or the error budget burns at the fast rate; for example orders from one region fail. SEV3: a minor function is degraded and a workaround exists; for example order history loads slowly. SEV4: no customer impact yet, a risk to act on in working hours; for example a certificate expiring in 7 days. SEV1 and SEV2 are the top severities: they are paged at any hour, get a lead within {{COMMAND_MINUTES}} minutes, an update at least every {{UPDATE_MINUTES}} minutes and a review; SEV3 and SEV4 wait for working hours. An incident classified as major under the EU Digital Operational Resilience Act is put on the highest level for as long as it is major, whatever else its impact suggests, and the field DORA major incident says so; whether it is major, the thresholds and the reporting deadlines are the EU DORA pack's. A security alert from the detection the Security event logging and detection pack decides becomes an incident of type Security once the person triaging it confirms it: a private incident, on the same levels by impact. An incident that may be a breach of personal data brings in the data protection officer at declaration, and the breach is assessed and notified as the Personal data pack decides. When in doubt between two levels, the higher one is taken and corrected later. The levels, their examples and what each sets off are written in docs/incidents/severity.md. The incident tool is incident.io: severities, incident types, roles and the custom fields Customer facing (Yes or No), Caused by deployment (the GitHub deployment id) and DORA major incident (Yes or No), and the timestamp Resolved at, set when the incident leaves its active statuses. Every incident gets a Slack or Microsoft Teams channel of its own and is announced in one #incidents channel. PagerDuty Incident Management, FireHydrant, Rootly and Grafana IRM offer the same records, and the checks name their equivalents. Opsgenie is not an option: Atlassian ended its sale on 4 June 2025 and ends its support on 5 April 2027, moving its users to Jira Service Management or Compass.",
567
+ "consequences": "• Four levels separate waking someone (SEV1, SEV2) from the next working day (SEV3, SEV4) with one level of nuance on each side.\n• The examples have to be kept current as the product changes, or the levels drift into argument again.\n• incident.io starts with three levels; renaming them and adding a fourth is a settings change, and every report filtered by level follows it.\n• Comparing with teams on another scheme needs a mapping.",
568
+ "alternatives": "1. Three levels (critical, major, minor): fewer choices, but a degraded minor function and a risk with no impact share a level.\n2. Five levels as PagerDuty uses (SEV-1 to SEV-5): a separate level for cosmetic issues, which belong in the backlog rather than the incident tool.\n3. The ITSM tool's priority (P1 to P5): fits a service desk, but mixes urgency into what should say how bad the impact is.",
569
+ "hubWhen": {
570
+ "SEVERITY": [
571
+ "sev4"
572
+ ]
573
+ }
574
+ },
575
+ {
576
+ "id": "adr-three",
577
+ "type": "adr",
578
+ "label": "Three severity levels",
579
+ "x": 780,
580
+ "y": 130,
581
+ "concern": "incident-management",
582
+ "status": "accepted",
583
+ "date": "",
584
+ "context": "This system serves customers, and some day it fails them: an outage, wrong results, a leak. The forces: in the first minutes nobody knows how bad it is, and an argument about severity costs the time the fix needs; the engineer who knows the system best is the worst person to also coordinate, update the business and answer customers; customers forgive an outage they were told about more readily than one they discovered, and silence is filled with guesses; a regulator may need a report within hours of an incident becoming major; and an incident nobody learns from comes back, while a review that looks for someone to blame teaches people to hide the next one. Who is paged and how alerts are routed is the Observability pack's; the availability objective and its error budget the Availability pack's; how a release is rolled back the Deployment pack's; how a failed deployment is counted the Delivery metrics pack's; the classification and reporting of major ICT-related incidents to the authority the EU DORA pack's; what is detected as a security event the Security event logging and detection pack's; and the assessment and notification of a breach of personal data the Personal data pack's.",
585
+ "decision": "Incidents are classified on three levels, incident.io's defaults and Atlassian's scale. Critical: very high impact, a core function down for all or most customers, or data lost or leaked; for example checkout fails for everyone. Major: significant impact, a core function down or wrong for some customers, sometimes with a workaround; for example payments by one card scheme fail. Minor: low impact that most customers will not notice, handled in working hours; for example a report is a day late. Critical and major are the top severities: they are paged at any hour, get a lead within {{COMMAND_MINUTES}} minutes, an update at least every {{UPDATE_MINUTES}} minutes and a review; minor waits for working hours. An incident classified as major under the EU Digital Operational Resilience Act is put on the highest level for as long as it is major, whatever else its impact suggests, and the field DORA major incident says so; whether it is major, the thresholds and the reporting deadlines are the EU DORA pack's. A security alert from the detection the Security event logging and detection pack decides becomes an incident of type Security once the person triaging it confirms it: a private incident, on the same levels by impact. An incident that may be a breach of personal data brings in the data protection officer at declaration, and the breach is assessed and notified as the Personal data pack decides. When in doubt between two levels, the higher one is taken and corrected later. The levels, their examples and what each sets off are written in docs/incidents/severity.md. The incident tool is incident.io: severities, incident types, roles and the custom fields Customer facing (Yes or No), Caused by deployment (the GitHub deployment id) and DORA major incident (Yes or No), and the timestamp Resolved at, set when the incident leaves its active statuses. Every incident gets a Slack or Microsoft Teams channel of its own and is announced in one #incidents channel. PagerDuty Incident Management, FireHydrant, Rootly and Grafana IRM offer the same records, and the checks name their equivalents. Opsgenie is not an option: Atlassian ended its sale on 4 June 2025 and ends its support on 5 April 2027, moving its users to Jira Service Management or Compass.",
586
+ "consequences": "• The choice is quick and incident.io needs no change of its levels.\n• Minor covers both a degraded function and a risk with no impact yet, so its response time has to suit both.\n• Two of three levels are top severities, so the full response, the postmortem included, runs often; the line between major and minor carries the cost.\n• A fourth level later means re-reading old incidents to compare.",
587
+ "alternatives": "1. Four levels (SEV1 to SEV4): separates a risk without impact from a degraded function, at the cost of one more choice.\n2. The ITSM tool's priority (P1 to P5): fits a service desk, but five levels are more than a small team can tell apart.",
588
+ "hubWhen": {
589
+ "SEVERITY": [
590
+ "three"
591
+ ]
592
+ }
593
+ },
594
+ {
595
+ "id": "adr-itsm",
596
+ "type": "adr",
597
+ "label": "Severity is the ITSM priority",
598
+ "x": 780,
599
+ "y": 260,
600
+ "concern": "incident-management",
601
+ "status": "accepted",
602
+ "date": "",
603
+ "context": "This system serves customers, and some day it fails them: an outage, wrong results, a leak. The forces: in the first minutes nobody knows how bad it is, and an argument about severity costs the time the fix needs; the engineer who knows the system best is the worst person to also coordinate, update the business and answer customers; customers forgive an outage they were told about more readily than one they discovered, and silence is filled with guesses; a regulator may need a report within hours of an incident becoming major; and an incident nobody learns from comes back, while a review that looks for someone to blame teaches people to hide the next one. Who is paged and how alerts are routed is the Observability pack's; the availability objective and its error budget the Availability pack's; how a release is rolled back the Deployment pack's; how a failed deployment is counted the Delivery metrics pack's; the classification and reporting of major ICT-related incidents to the authority the EU DORA pack's; what is detected as a security event the Security event logging and detection pack's; and the assessment and notification of a breach of personal data the Personal data pack's.",
604
+ "decision": "Incidents carry the priority of the ITSM tool, set from its impact and urgency matrix as ITIL 4 incident management describes and ServiceNow's priority lookup rules implement: impact and urgency each High, Medium or Low give P1 Critical (High and High), P2 High, P3 Moderate, P4 Low and P5 Planning (Low and Low); docs/incidents/severity.md gives the matrix and an example for each priority (P1: checkout fails for everyone; P2: payments by one card scheme fail; P3: order history slow; P4: one report a day late; P5: a cosmetic fault). P1 and P2 are the top severities: they are paged at any hour, get a lead within {{COMMAND_MINUTES}} minutes, an update at least every {{UPDATE_MINUTES}} minutes and a review; P3 to P5 stay with the service desk's queue. The service desk raises incidents in ServiceNow or Jira Service Management; a P1 or P2 there becomes an incident.io alert through incident.io's ServiceNow alert source (from Jira Service Management, through an automation rule calling a custom HTTP alert source), which declares the response with the same priority, and the ITSM ticket stays the record of the ITIL process. An incident classified as major under the EU Digital Operational Resilience Act is put on the highest level for as long as it is major, whatever else its impact suggests, and the field DORA major incident says so; whether it is major, the thresholds and the reporting deadlines are the EU DORA pack's. A security alert from the detection the Security event logging and detection pack decides becomes an incident of type Security once the person triaging it confirms it: a private incident, on the same levels by impact. An incident that may be a breach of personal data brings in the data protection officer at declaration, and the breach is assessed and notified as the Personal data pack decides. When in doubt between two levels, the higher one is taken and corrected later. The levels, their examples and what each sets off are written in docs/incidents/severity.md. The incident tool is incident.io: severities, incident types, roles and the custom fields Customer facing (Yes or No), Caused by deployment (the GitHub deployment id) and DORA major incident (Yes or No), and the timestamp Resolved at, set when the incident leaves its active statuses. Every incident gets a Slack or Microsoft Teams channel of its own and is announced in one #incidents channel. PagerDuty Incident Management, FireHydrant, Rootly and Grafana IRM offer the same records, and the checks name their equivalents. Opsgenie is not an option: Atlassian ended its sale on 4 June 2025 and ends its support on 5 April 2027, moving its users to Jira Service Management or Compass.",
605
+ "consequences": "• One priority across the service desk and engineering; reports to IT management need no mapping.\n• Urgency is part of the priority, so an incident with little impact but a deadline can land on P2 and be paged; the matrix has to be tuned with that in mind.\n• Two tools hold the incident (the ITSM ticket and the response in incident.io), and their priorities must be kept in step by the integration.\n• Five levels are more than responders can tell apart at 3 a.m.; the matrix decides, not the responder.",
606
+ "alternatives": "1. Four severity levels by customer impact: simpler for engineers, but the service desk then maps between two schemes.\n2. Running the whole response in the ITSM tool (Jira Service Management's major incident features): one tool, but the checks here read incident.io and would need rewriting against its REST API.",
607
+ "hubWhen": {
608
+ "SEVERITY": [
609
+ "itsm"
610
+ ]
611
+ }
612
+ },
613
+ {
614
+ "id": "adr-commander",
615
+ "type": "adr",
616
+ "label": "An incident commander leads top-severity incidents",
617
+ "x": 780,
618
+ "y": 390,
619
+ "concern": "incident-management",
620
+ "status": "accepted",
621
+ "date": "",
622
+ "context": "This system serves customers, and some day it fails them: an outage, wrong results, a leak. The forces: in the first minutes nobody knows how bad it is, and an argument about severity costs the time the fix needs; the engineer who knows the system best is the worst person to also coordinate, update the business and answer customers; customers forgive an outage they were told about more readily than one they discovered, and silence is filled with guesses; a regulator may need a report within hours of an incident becoming major; and an incident nobody learns from comes back, while a review that looks for someone to blame teaches people to hide the next one. Who is paged and how alerts are routed is the Observability pack's; the availability objective and its error budget the Availability pack's; how a release is rolled back the Deployment pack's; how a failed deployment is counted the Delivery metrics pack's; the classification and reporting of major ICT-related incidents to the authority the EU DORA pack's; what is detected as a security event the Security event logging and detection pack's; and the assessment and notification of a breach of personal data the Personal data pack's.",
623
+ "decision": "Incidents on the two highest levels are led by an incident commander from a commander rota of at least four trained people, kept as an incident.io On-call schedule apart from the engineers' rota (a PagerDuty schedule works the same) and paged automatically when such an incident is declared. The commander takes incident.io's Incident Lead role, renamed Incident Commander, within {{COMMAND_MINUTES}} minutes; coordinates, decides, keeps the incident's timeline and sees that updates go out, or names a communications lead; and changes nothing in the system: the on-call engineers and the experts they call in hold the other roles and do the fixing. Command passes only by reassigning the role, announced in the channel. Incidents on lower levels are led by the on-call engineer. Commanders are trained by shadowing two incidents and leading one under supervision.",
624
+ "consequences": "• Someone always looks at the whole incident, and the engineers fixing it are spared the messages.\n• A second rota costs pay and training; with fewer than four people it burns them out.\n• A commander who does not know the system depends on the experts and must resist fixing it themselves.\n• The handover is visible in the role history, so it is always clear who leads.",
625
+ "alternatives": "1. The on-call engineer leads: no second rota, but the person who knows the system best is also the one answering everyone.\n2. A manager leads: authority without training, and managers on call for every incident is a rota by another name.",
626
+ "hubWhen": {
627
+ "COMMAND": [
628
+ "commander"
629
+ ]
630
+ }
631
+ },
632
+ {
633
+ "id": "adr-oncall-lead",
634
+ "type": "adr",
635
+ "label": "The on-call engineer leads",
636
+ "x": 780,
637
+ "y": 520,
638
+ "concern": "incident-management",
639
+ "status": "accepted",
640
+ "date": "",
641
+ "context": "This system serves customers, and some day it fails them: an outage, wrong results, a leak. The forces: in the first minutes nobody knows how bad it is, and an argument about severity costs the time the fix needs; the engineer who knows the system best is the worst person to also coordinate, update the business and answer customers; customers forgive an outage they were told about more readily than one they discovered, and silence is filled with guesses; a regulator may need a report within hours of an incident becoming major; and an incident nobody learns from comes back, while a review that looks for someone to blame teaches people to hide the next one. Who is paged and how alerts are routed is the Observability pack's; the availability objective and its error budget the Availability pack's; how a release is rolled back the Deployment pack's; how a failed deployment is counted the Delivery metrics pack's; the classification and reporting of major ICT-related incidents to the authority the EU DORA pack's; what is detected as a security event the Security event logging and detection pack's; and the assessment and notification of a breach of personal data the Personal data pack's.",
642
+ "decision": "The on-call engineer who was paged leads every incident and takes incident.io's lead role within {{COMMAND_MINUTES}} minutes. For an incident on the two highest levels they name a teammate as communications lead, who posts the updates and talks to support, so the updates do not wait for the fix. The lead passes to someone else only by reassigning the role, announced in the channel: at the end of a shift, or when the incident outgrows one person and a second engineer or the team lead takes over the coordination.",
643
+ "consequences": "• No second rota: the team that owns the system runs its incidents.\n• The lead is also the most likely person to fix it, so coordination suffers in a long or cross-team incident; the handover is the escape.\n• A communications lead from the team takes someone else away from their work for the incident.\n• When incidents grow beyond one team, this decision should be superseded by a commander rota.",
644
+ "alternatives": "1. An incident commander from a rota: clearer command, at the cost of a second rota and training.\n2. Whoever notices leads: fast to start, but nobody is sure who is in charge an hour later.",
645
+ "hubWhen": {
646
+ "COMMAND": [
647
+ "oncall"
648
+ ]
649
+ }
650
+ },
651
+ {
652
+ "id": "adr-statuspage",
653
+ "type": "adr",
654
+ "label": "Customers learn from a public status page",
655
+ "x": 780,
656
+ "y": 650,
657
+ "concern": "incident-management",
658
+ "status": "accepted",
659
+ "date": "",
660
+ "context": "This system serves customers, and some day it fails them: an outage, wrong results, a leak. The forces: in the first minutes nobody knows how bad it is, and an argument about severity costs the time the fix needs; the engineer who knows the system best is the worst person to also coordinate, update the business and answer customers; customers forgive an outage they were told about more readily than one they discovered, and silence is filled with guesses; a regulator may need a report within hours of an incident becoming major; and an incident nobody learns from comes back, while a review that looks for someone to blame teaches people to hide the next one. Who is paged and how alerts are routed is the Observability pack's; the availability objective and its error budget the Availability pack's; how a release is rolled back the Deployment pack's; how a failed deployment is counted the Delivery metrics pack's; the classification and reporting of major ICT-related incidents to the authority the EU DORA pack's; what is detected as a security event the Security event logging and detection pack's; and the assessment and notification of a breach of personal data the Personal data pack's.",
661
+ "decision": "Customers learn of incidents from a public status page on Atlassian Statuspage, with one component per customer-facing service and subscriptions by e-mail and webhook (Instatus, Better Stack or incident.io Status Pages serve as well). An incident with customer impact is marked Customer facing in incident.io and published on the status page within {{STATUS_MINUTES}} minutes of being declared, linked in the incident's custom field Status page incident (a link), updated at least every {{UPDATE_MINUTES}} minutes in one or two plain sentences that say what customers notice and when they will hear next, and resolved when the impact ends. Where the Observability pack routes alerts to the status page outside working hours, that automatic post is the first one. Inside the company, every incident has its own channel and every update on the top levels is posted in incident.io and announced in #incidents, at least every {{UPDATE_MINUTES}} minutes.",
662
+ "consequences": "• Customers and support find the state of an incident in one place, and support answers with a link.\n• The page is public: a competitor and the press see every incident too, and the wording needs care.\n• Someone in each incident must post to it on time; incident.io's Statuspage integration or its own status pages can post from the incident.\n• A status page that is green during an outage costs more trust than having none, so the page must not depend on the system it reports on.",
663
+ "alternatives": "1. Direct messages to the affected customers: private, but each customer depends on support finding them, and nothing is visible to prospects.\n2. Social media posts only: reach without control, and no history for customers to look up.",
664
+ "hubWhen": {
665
+ "COMMS": [
666
+ "statuspage"
667
+ ]
668
+ }
669
+ },
670
+ {
671
+ "id": "adr-direct",
672
+ "type": "adr",
673
+ "label": "Affected customers are told directly",
674
+ "x": 780,
675
+ "y": 780,
676
+ "concern": "incident-management",
677
+ "status": "accepted",
678
+ "date": "",
679
+ "context": "This system serves customers, and some day it fails them: an outage, wrong results, a leak. The forces: in the first minutes nobody knows how bad it is, and an argument about severity costs the time the fix needs; the engineer who knows the system best is the worst person to also coordinate, update the business and answer customers; customers forgive an outage they were told about more readily than one they discovered, and silence is filled with guesses; a regulator may need a report within hours of an incident becoming major; and an incident nobody learns from comes back, while a review that looks for someone to blame teaches people to hide the next one. Who is paged and how alerts are routed is the Observability pack's; the availability objective and its error budget the Availability pack's; how a release is rolled back the Deployment pack's; how a failed deployment is counted the Delivery metrics pack's; the classification and reporting of major ICT-related incidents to the authority the EU DORA pack's; what is detected as a security event the Security event logging and detection pack's; and the assessment and notification of a breach of personal data the Personal data pack's.",
680
+ "decision": "There is no public status page. An incident with customer impact is marked Customer facing in incident.io and lists the affected customers; support tells their named contacts by e-mail from the support tool (Zendesk, Intercom or Freshdesk) or by a banner in the product within {{STATUS_MINUTES}} minutes of the declaration, records the time in the incident's manual timestamp Customers notified at, updates them when anything they notice changes, and tells them when the impact ends. Inside the company, every incident has its own channel and every update on the top levels is posted in incident.io and announced in #incidents, at least every {{UPDATE_MINUTES}} minutes. This decision assumes the Observability pack does not rely on a status page outside working hours and the Availability pack announces no maintenance windows on one; either would need this decision superseded.",
681
+ "consequences": "• Each customer hears only about what affects them, in words chosen for them.\n• Support has to find the affected contacts within minutes, which needs the list of customers per service to be ready before the incident.\n• Customers who were not told and are affected anyway have nowhere to look.\n• A growing customer base makes this slower with every customer; a status page is the next step.",
682
+ "alternatives": "1. A public status page: one place for everyone, at the cost of public visibility.\n2. Telling customers only on request: least effort, and the customers learn that silence means nothing is known.",
683
+ "hubWhen": {
684
+ "COMMS": [
685
+ "direct"
686
+ ]
687
+ }
688
+ },
689
+ {
690
+ "id": "adr-blameless",
691
+ "type": "adr",
692
+ "label": "Blameless postmortems with tracked actions",
693
+ "x": 780,
694
+ "y": 910,
695
+ "concern": "incident-management",
696
+ "status": "accepted",
697
+ "date": "",
698
+ "context": "This system serves customers, and some day it fails them: an outage, wrong results, a leak. The forces: in the first minutes nobody knows how bad it is, and an argument about severity costs the time the fix needs; the engineer who knows the system best is the worst person to also coordinate, update the business and answer customers; customers forgive an outage they were told about more readily than one they discovered, and silence is filled with guesses; a regulator may need a report within hours of an incident becoming major; and an incident nobody learns from comes back, while a review that looks for someone to blame teaches people to hide the next one. Who is paged and how alerts are routed is the Observability pack's; the availability objective and its error budget the Availability pack's; how a release is rolled back the Deployment pack's; how a failed deployment is counted the Delivery metrics pack's; the classification and reporting of major ICT-related incidents to the authority the EU DORA pack's; what is detected as a security event the Security event logging and detection pack's; and the assessment and notification of a breach of personal data the Personal data pack's.",
699
+ "decision": "Every incident on the two highest levels gets a blameless postmortem in incident.io's post-mortem documents, from one template: summary, customer impact, timeline, contributing factors (never a person as the cause), what went well, and actions. The lead names an owner at resolution; the owner holds a meeting with the responders and marks the document completed within {{POSTMORTEM_DAYS}} days of resolution; the engineering manager reviews it. Lower levels get one on request, or when the Google SRE triggers apply (data loss, a rollback or other on-call intervention, a monitoring failure). Each action becomes a follow-up in incident.io, synced to Jira or Linear, with one owner, and is done or marked not doing with the reason within {{ACTION_DAYS}} days. When the Availability pack calls for a postmortem because the error budget is spent, it uses the same template and the same follow-ups.",
700
+ "consequences": "• Contributing causes are found while they are fresh, and the document becomes the record customers and auditors can be given.\n• A postmortem takes a few hours of several people per top-severity incident.\n• Blamelessness has to be defended by managers in every review, or people start hiding mistakes.\n• Follow-ups compete with feature work; the deadline makes the trade-off visible instead of silent.",
701
+ "alternatives": "1. A short review in the team retrospective: lighter, but shallow for incidents that cross teams.\n2. A root-cause report by the person who caused it: fast, and it teaches everyone to hide the next one.",
702
+ "hubWhen": {
703
+ "POSTMORTEM": [
704
+ "blameless"
705
+ ]
706
+ }
707
+ },
708
+ {
709
+ "id": "adr-retro",
710
+ "type": "adr",
711
+ "label": "Incidents reviewed in the team retrospective",
712
+ "x": 780,
713
+ "y": 1040,
714
+ "concern": "incident-management",
715
+ "status": "accepted",
716
+ "date": "",
717
+ "context": "This system serves customers, and some day it fails them: an outage, wrong results, a leak. The forces: in the first minutes nobody knows how bad it is, and an argument about severity costs the time the fix needs; the engineer who knows the system best is the worst person to also coordinate, update the business and answer customers; customers forgive an outage they were told about more readily than one they discovered, and silence is filled with guesses; a regulator may need a report within hours of an incident becoming major; and an incident nobody learns from comes back, while a review that looks for someone to blame teaches people to hide the next one. Who is paged and how alerts are routed is the Observability pack's; the availability objective and its error budget the Availability pack's; how a release is rolled back the Deployment pack's; how a failed deployment is counted the Delivery metrics pack's; the classification and reporting of major ICT-related incidents to the authority the EU DORA pack's; what is detected as a security event the Security event logging and detection pack's; and the assessment and notification of a breach of personal data the Personal data pack's.",
718
+ "decision": "Each incident on the two highest levels is reviewed in the team's next retrospective, within {{RETRO_DAYS}} days of resolution: what happened, what helped, what got in the way and what to change, without naming a person as the cause. The outcome is written into the incident in incident.io, the incident is closed after the review, and each action becomes a follow-up synced to Jira or Linear, with one owner, done or marked not doing with the reason within {{ACTION_DAYS}} days. An incident that crosses teams, or the second incident with the same cause, gets a written postmortem instead.",
719
+ "consequences": "• No separate document or meeting; the lessons stay with the team that runs the system.\n• The review is as deep as a retrospective allows, which can be too shallow for a long or complex incident.\n• Nothing written is there to give a customer or an auditor who asks for an incident report.\n• Actions are still tracked, so the team does not lose them in the retrospective board.",
720
+ "alternatives": "1. A blameless postmortem with tracked actions: deeper and written down, at a few hours per incident.\n2. No review: cheapest, and the same incident returns.",
721
+ "hubWhen": {
722
+ "POSTMORTEM": [
723
+ "retro"
724
+ ]
725
+ }
726
+ },
727
+ {
728
+ "id": "ff-severity-defined",
729
+ "type": "fitness-fn",
730
+ "label": "Severity levels defined in the runbook",
731
+ "x": 1040,
732
+ "y": 0,
733
+ "characteristic": "reliability",
734
+ "scope": "atomic",
735
+ "cadence": "triggered",
736
+ "trigger": "pull-request",
737
+ "invocation": "automated",
738
+ "description": "A CI step runs on every change to the repository and fails when the severity definitions lose a level, a level loses its impact, examples, response or review, or the sections on the top severities, DORA major incidents and security incidents are missing. Each level is a ### heading under ## Levels.\n\nThreshold: docs/incidents/severity.md has at least 3 levels, each with Impact, Examples, Response and Review lines, and the sections Levels, Top severities, DORA major incidents and Security incidents\n\nTool: bash with awk and grep in a CI step\n\n```bash\n#!/usr/bin/env bash\n# CI, on every change: docs/incidents/severity.md defines each level with its impact, examples, response and review\nset -euo pipefail\nf=docs/incidents/severity.md\nawk '\n BEGIN { split(\"Impact: Examples: Response: Review:\", need, \" \") }\n function check( k) { levels++; for (k in need) if (index(seen, need[k]) == 0) { print FILENAME \": level \" name \" has no \" need[k]; bad = 1 } }\n /^## / { if (name != \"\") check(); name = \"\"; next }\n /^### / { if (name != \"\") check(); name = substr($0, 5); seen = \"\"; next }\n /^(Impact|Examples|Response|Review):/ { seen = seen \" \" $1 }\n END { if (name != \"\") check(); if (levels < 3) { print FILENAME \": fewer than 3 levels\"; bad = 1 }; exit bad }\n' \"$f\"\nfor section in '## Levels' '## Top severities' '## DORA major incidents' '## Security incidents'; do\n grep -qx \"$section\" \"$f\" || { echo \"$f: no section \\\"$section\\\"\"; exit 1; }\ndone\n```"
739
+ },
740
+ {
741
+ "id": "ff-declared",
742
+ "type": "fitness-fn",
743
+ "label": "Incidents declared completely",
744
+ "x": 1040,
745
+ "y": 130,
746
+ "characteristic": "reliability",
747
+ "scope": "atomic",
748
+ "cadence": "triggered",
749
+ "trigger": "nightly",
750
+ "invocation": "automated",
751
+ "description": "A daily CI job reads the incidents of the last 90 days from the incident.io API (declined, merged and canceled ones left out) and fails on an incident without a severity or a Slack or Teams channel, a DORA major incident below the highest severity rank, or a Security incident whose visibility is not private. The first file is the small API module the other incident checks import; the two highest severity ranks of /v1/severities are the top severities, whichever scheme was chosen.\n\nThreshold: 0 incidents of the last 90 days without a level or a channel; 0 marked DORA major incident below the highest level; 0 of type Security that are not private\n\nTool: Node 20 over the incident.io API (GET /v2/incidents, /v1/severities); for PagerDuty, GET /incidents with priority and the incident's custom fields\n\n```js\n// scripts/incidents/api.mjs: shared by the incident checks (Node 20; INCIDENT_IO_API_KEY is a read-only key)\nconst headers = { Authorization: `Bearer ${process.env.INCIDENT_IO_API_KEY}` }\nconst get = async (path) => { const r = await fetch(`https://api.incident.io${path}`, { headers }); if (!r.ok) throw new Error(`${path}: ${r.status}`); return r.json() }\nexport async function list(path, key, out = [], after = '') {\n const body = await get(`${path}${path.includes('?') ? '&' : '?'}page_size=250${after && `&after=${after}`}`)\n out.push(...body[key])\n return body[key].length < 250 ? out : list(path, key, out, body.pagination_meta.after)\n}\nconst since = new Date(Date.now() - 90 * 86_400_000).toISOString().slice(0, 10) // the last 90 days, declined, merged and canceled left out\nexport const incidents = async () => (await list(`/v2/incidents?created_at[gte]=${since}`, 'incidents')).filter((i) => !['declined', 'merged', 'canceled'].includes(i.incident_status.category))\nconst ranks = (await get('/v1/severities')).severities.map((s) => s.rank).sort((a, b) => b - a)\nexport const top = (i) => i.severity?.rank >= ranks[1], highest = (i) => i.severity?.rank === ranks[0] // the two highest levels; the highest\nexport const field = (i, name) => i.custom_field_entries.find((e) => e.custom_field.name === name)?.values[0]\nexport const stamp = (i, name) => Date.parse(i.incident_timestamp_values?.find((t) => t.incident_timestamp.name === name)?.value?.value ?? '') || undefined\n\n// scripts/incidents/declared.mjs\nimport { field, highest, incidents } from './api.mjs'\nconst problems = []\nfor (const i of await incidents()) {\n if (!i.severity) problems.push(`${i.reference}: no severity`)\n if (!i.slack_channel_id && !i.ms_teams_channel_url) problems.push(`${i.reference}: no incident channel`)\n if (field(i, 'DORA major incident')?.value_option?.value === 'Yes' && !highest(i)) problems.push(`${i.reference}: DORA major incident below the highest level`)\n if (i.incident_type?.name === 'Security' && i.visibility !== 'private') problems.push(`${i.reference}: security incident is not private`)\n}\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```"
752
+ },
753
+ {
754
+ "id": "ff-lead",
755
+ "type": "fitness-fn",
756
+ "label": "Top-severity incidents have a lead",
757
+ "x": 1040,
758
+ "y": 260,
759
+ "characteristic": "reliability",
760
+ "scope": "atomic",
761
+ "cadence": "triggered",
762
+ "trigger": "nightly",
763
+ "invocation": "automated",
764
+ "description": "A daily CI job reads the incidents on the two highest levels and fails on any whose lead role (incident.io's role of type lead, named Incident Commander or Incident Lead as decided) has no assignee.\n\nThreshold: 0 incidents of the last 90 days on the two highest levels without an assignee in the lead role\n\nTool: Node 20 over the incident.io API (incident_role_assignments of GET /v2/incidents); for PagerDuty, the incident's responders and roles\n\n```js\n// scripts/incidents/lead.mjs\nimport { incidents, top } from './api.mjs'\nconst leaderless = (await incidents()).filter(top)\n .filter((i) => !i.incident_role_assignments.some((a) => a.role.role_type === 'lead' && a.assignee))\nif (leaderless.length) {\n console.error(`top-severity incidents without a lead (the commander or the on-call engineer): ${leaderless.map((i) => i.reference).join(', ')}`)\n process.exit(1)\n}\n```"
765
+ },
766
+ {
767
+ "id": "ff-status-page",
768
+ "type": "fitness-fn",
769
+ "label": "Status page in time and kept current",
770
+ "x": 1040,
771
+ "y": 390,
772
+ "characteristic": "reliability",
773
+ "scope": "atomic",
774
+ "cadence": "triggered",
775
+ "trigger": "nightly",
776
+ "invocation": "automated",
777
+ "description": "A daily CI job reads the incidents marked Customer facing, follows each one's field Status page incident to the Statuspage incident, and compares its created_at with the declaration and the times of its incident_updates up to resolved_at (or now, while it is open).\n\nThreshold: 0 customer-facing incidents of the last 90 days without a linked status page incident, published later than {{STATUS_MINUTES}} minutes after the declaration, or with more than {{UPDATE_MINUTES}} minutes between two status page updates before it was resolved\n\nTool: Node 20 over the incident.io API and the Atlassian Statuspage REST API (GET /v1/pages/{page_id}/incidents/{incident_id}); for incident.io Status Pages, GET /v2/status_page_incidents\n\n```js\n// scripts/incidents/status-page.mjs (STATUSPAGE_API_KEY, STATUSPAGE_PAGE_ID: Atlassian Statuspage)\nimport { field, incidents } from './api.mjs'\nconst STATUS_MINUTES = {{STATUS_MINUTES}}, UPDATE_MINUTES = {{UPDATE_MINUTES}}\nconst page = (id) => fetch(`https://api.statuspage.io/v1/pages/${process.env.STATUSPAGE_PAGE_ID}/incidents/${id}`,\n { headers: { Authorization: `OAuth ${process.env.STATUSPAGE_API_KEY}` } }).then((r) => (r.ok ? r.json() : undefined))\nconst problems = []\nfor (const i of await incidents()) {\n if (field(i, 'Customer facing')?.value_option?.value !== 'Yes') continue\n const link = field(i, 'Status page incident')?.value_link\n const sp = link && (await page(link.split('/').filter(Boolean).pop()))\n if (!sp) { problems.push(`${i.reference}: customer-facing, but no status page incident linked`); continue }\n if (Date.parse(sp.created_at) - Date.parse(i.created_at) > STATUS_MINUTES * 60_000) problems.push(`${i.reference}: status page later than ${STATUS_MINUTES} min`)\n const times = [...sp.incident_updates.map((u) => Date.parse(u.created_at)), Date.parse(sp.resolved_at ?? new Date().toISOString())].sort((a, b) => a - b)\n if (times.some((t, n) => n > 0 && t - times[n - 1] > UPDATE_MINUTES * 60_000)) problems.push(`${i.reference}: a gap of more than ${UPDATE_MINUTES} min between status page updates`)\n}\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```",
778
+ "hubWhen": {
779
+ "COMMS": [
780
+ "statuspage"
781
+ ]
782
+ }
783
+ },
784
+ {
785
+ "id": "ff-customers-told",
786
+ "type": "fitness-fn",
787
+ "label": "Affected customers told in time",
788
+ "x": 1040,
789
+ "y": 520,
790
+ "characteristic": "reliability",
791
+ "scope": "atomic",
792
+ "cadence": "triggered",
793
+ "trigger": "nightly",
794
+ "invocation": "automated",
795
+ "description": "A daily CI job reads the incidents marked Customer facing and compares the manual timestamp Customers notified at with the time the incident was declared.\n\nThreshold: 0 customer-facing incidents of the last 90 days whose timestamp Customers notified at is more than {{STATUS_MINUTES}} minutes after the declaration, or unset once that time has passed\n\nTool: Node 20 over the incident.io API (incident_timestamp_values of GET /v2/incidents)\n\n```js\n// scripts/incidents/customers-told.mjs\nimport { field, incidents, stamp } from './api.mjs'\nconst STATUS_MINUTES = {{STATUS_MINUTES}}\nconst late = (await incidents())\n .filter((i) => field(i, 'Customer facing')?.value_option?.value === 'Yes')\n .filter((i) => {\n const told = stamp(i, 'Customers notified at') ?? Date.now()\n return told - Date.parse(i.created_at) > STATUS_MINUTES * 60_000\n })\nif (late.length) {\n console.error(`affected customers told later than ${STATUS_MINUTES} min after declaration, or not yet: ${late.map((i) => i.reference).join(', ')}`)\n process.exit(1)\n}\n```",
796
+ "hubWhen": {
797
+ "COMMS": [
798
+ "direct"
799
+ ]
800
+ }
801
+ },
802
+ {
803
+ "id": "ff-updates",
804
+ "type": "fitness-fn",
805
+ "label": "Updates on a cadence",
806
+ "x": 1040,
807
+ "y": 650,
808
+ "characteristic": "reliability",
809
+ "scope": "atomic",
810
+ "cadence": "triggered",
811
+ "trigger": "nightly",
812
+ "invocation": "automated",
813
+ "description": "A daily CI job lists the incident updates of each incident on the two highest levels and fails when the longest gap between the declaration, the updates and the resolution exceeds the cadence.\n\nThreshold: 0 incidents of the last 90 days on the two highest levels with more than {{UPDATE_MINUTES}} minutes between two updates, counted from the declaration to Resolved at (or now)\n\nTool: Node 20 over the incident.io API (GET /v2/incident_updates); for PagerDuty, GET /incidents/{id}/status_updates\n\n```js\n// scripts/incidents/updates.mjs\nimport { incidents, list, stamp, top } from './api.mjs'\nconst UPDATE_MINUTES = {{UPDATE_MINUTES}}\nconst problems = []\nfor (const i of (await incidents()).filter(top)) {\n const updates = await list(`/v2/incident_updates?incident_id=${i.id}`, 'incident_updates')\n const end = stamp(i, 'Resolved at') ?? Date.now()\n const times = [Date.parse(i.created_at), ...updates.map((u) => Date.parse(u.created_at)).filter((t) => t < end), end].sort((a, b) => a - b)\n const gap = Math.max(...times.slice(1).map((t, n) => t - times[n]))\n if (gap > UPDATE_MINUTES * 60_000) problems.push(`${i.reference}: ${Math.round(gap / 60_000)} min without an update`)\n}\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```"
814
+ },
815
+ {
816
+ "id": "ff-deploy-marked",
817
+ "type": "fitness-fn",
818
+ "label": "Deployments that caused incidents marked failed",
819
+ "x": 1040,
820
+ "y": 780,
821
+ "characteristic": "reliability",
822
+ "scope": "holistic",
823
+ "cadence": "triggered",
824
+ "trigger": "nightly",
825
+ "invocation": "automated",
826
+ "description": "A daily CI job reads the incidents whose field Caused by deployment is set and that were resolved more than 3 days ago, and fails when that GitHub deployment carries no failure status: the record the Delivery metrics pack counts failed deployments and recovery from.\n\nThreshold: 0 incidents resolved more than 3 days ago (1 working day, a weekend included) whose field Caused by deployment names a deployment without a failure status\n\nTool: Node 20 over the incident.io API and the GitHub REST API (GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses)\n\n```js\n// scripts/incidents/deployment-failure.mjs (GITHUB_TOKEN with deployments:read, GITHUB_REPOSITORY=owner/repo)\nimport { field, incidents, stamp } from './api.mjs'\nconst statuses = (id) => fetch(`https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/deployments/${id}/statuses?per_page=100`,\n { headers: { Authorization: `Bearer ${process.env.GITHUB_TOKEN}`, Accept: 'application/vnd.github+json' } }).then((r) => r.json())\nconst problems = []\nfor (const i of await incidents()) {\n const deployment = field(i, 'Caused by deployment')?.value_text?.trim()\n const resolved = stamp(i, 'Resolved at')\n if (!deployment || !resolved || Date.now() - resolved < 3 * 86_400_000) continue // 1 working day, a weekend included\n const list = await statuses(deployment)\n if (!Array.isArray(list) || !list.some((s) => s.state === 'failure'))\n problems.push(`${i.reference}: deployment ${deployment} caused it but carries no failure status (Delivery metrics pack)`)\n}\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```"
827
+ },
828
+ {
829
+ "id": "ff-postmortem",
830
+ "type": "fitness-fn",
831
+ "label": "Postmortems completed in time",
832
+ "x": 1040,
833
+ "y": 910,
834
+ "characteristic": "reliability",
835
+ "scope": "atomic",
836
+ "cadence": "triggered",
837
+ "trigger": "nightly",
838
+ "invocation": "automated",
839
+ "description": "A daily CI job reads the incidents on the two highest levels whose Resolved at is more than {{POSTMORTEM_DAYS}} days ago and lists their post-mortem documents; one in status completed is required.\n\nThreshold: 0 incidents on the two highest levels resolved more than {{POSTMORTEM_DAYS}} days ago without a post-mortem document in status completed\n\nTool: Node 20 over the incident.io API (GET /v1/postmortem_documents?incident_id=…); for PagerDuty, the postmortem linked from the incident\n\n```js\n// scripts/incidents/postmortem.mjs\nimport { incidents, list, stamp, top } from './api.mjs'\nconst POSTMORTEM_DAYS = {{POSTMORTEM_DAYS}}\nconst problems = []\nfor (const i of (await incidents()).filter(top)) {\n const resolved = stamp(i, 'Resolved at')\n if (!resolved || Date.now() - resolved < POSTMORTEM_DAYS * 86_400_000) continue\n const documents = await list(`/v1/postmortem_documents?incident_id=${i.id}`, 'postmortem_documents')\n if (!documents.some((d) => d.status === 'completed')) problems.push(`${i.reference}: resolved ${POSTMORTEM_DAYS}+ days ago, no completed postmortem`)\n}\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```",
840
+ "hubWhen": {
841
+ "POSTMORTEM": [
842
+ "blameless"
843
+ ]
844
+ }
845
+ },
846
+ {
847
+ "id": "ff-review",
848
+ "type": "fitness-fn",
849
+ "label": "Incidents closed after the review",
850
+ "x": 1040,
851
+ "y": 1040,
852
+ "characteristic": "reliability",
853
+ "scope": "atomic",
854
+ "cadence": "triggered",
855
+ "trigger": "nightly",
856
+ "invocation": "automated",
857
+ "description": "A daily CI job reads the incidents on the two highest levels whose Resolved at is more than {{RETRO_DAYS}} days ago and fails on any whose status is not in the closed category, which the team sets after the retrospective has reviewed it.\n\nThreshold: 0 incidents on the two highest levels resolved more than {{RETRO_DAYS}} days ago that are not closed\n\nTool: Node 20 over the incident.io API (incident_status.category of GET /v2/incidents)\n\n```js\n// scripts/incidents/review.mjs\nimport { incidents, stamp, top } from './api.mjs'\nconst RETRO_DAYS = {{RETRO_DAYS}}\nconst open = (await incidents()).filter(top).filter((i) => {\n const resolved = stamp(i, 'Resolved at')\n return resolved && Date.now() - resolved > RETRO_DAYS * 86_400_000 && i.incident_status.category !== 'closed'\n})\nif (open.length) {\n console.error(`resolved more than ${RETRO_DAYS} days ago and not closed after the retrospective: ${open.map((i) => i.reference).join(', ')}`)\n process.exit(1)\n}\n```",
858
+ "hubWhen": {
859
+ "POSTMORTEM": [
860
+ "retro"
861
+ ]
862
+ }
863
+ },
864
+ {
865
+ "id": "ff-actions",
866
+ "type": "fitness-fn",
867
+ "label": "Actions done in time",
868
+ "x": 1040,
869
+ "y": 1170,
870
+ "characteristic": "reliability",
871
+ "scope": "atomic",
872
+ "cadence": "triggered",
873
+ "trigger": "nightly",
874
+ "invocation": "automated",
875
+ "description": "A daily CI job lists the follow-ups of the last year and fails on an outstanding one older than the deadline or without an owner. A follow-up marked not doing counts as closed; the reason is in its description.\n\nThreshold: 0 outstanding follow-ups created more than {{ACTION_DAYS}} days ago; 0 outstanding follow-ups without an assignee or team\n\nTool: Node 20 over the incident.io API (GET /v3/follow_ups); for Jira, a JQL search on the postmortem action issues\n\n```js\n// scripts/incidents/actions.mjs\nimport { list } from './api.mjs'\nconst ACTION_DAYS = {{ACTION_DAYS}}\nconst since = new Date(Date.now() - 365 * 86_400_000).toISOString().slice(0, 10)\nconst open = (await list(`/v3/follow_ups?created_at[gte]=${since}`, 'follow_ups')).filter((f) => f.status === 'outstanding')\nconst problems = [\n ...open.filter((f) => Date.now() - Date.parse(f.created_at) > ACTION_DAYS * 86_400_000).map((f) => `${f.title}: open for more than ${ACTION_DAYS} days`),\n ...open.filter((f) => !f.assignee && !f.assignee_team).map((f) => `${f.title}: no owner`),\n]\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```"
876
+ }
877
+ ],
878
+ "relations": [
879
+ {
880
+ "id": "req-classify--derives--need",
881
+ "sourceId": "req-classify",
882
+ "targetId": "need",
883
+ "relationType": "derives"
884
+ },
885
+ {
886
+ "id": "req-declare--derives--need",
887
+ "sourceId": "req-declare",
888
+ "targetId": "need",
889
+ "relationType": "derives"
890
+ },
891
+ {
892
+ "id": "req-dora--derives--need",
893
+ "sourceId": "req-dora",
894
+ "targetId": "need",
895
+ "relationType": "derives"
896
+ },
897
+ {
898
+ "id": "req-security--derives--need",
899
+ "sourceId": "req-security",
900
+ "targetId": "need",
901
+ "relationType": "derives"
902
+ },
903
+ {
904
+ "id": "req-commander--derives--need",
905
+ "sourceId": "req-commander",
906
+ "targetId": "need",
907
+ "relationType": "derives"
908
+ },
909
+ {
910
+ "id": "req-oncall-lead--derives--need",
911
+ "sourceId": "req-oncall-lead",
912
+ "targetId": "need",
913
+ "relationType": "derives"
914
+ },
915
+ {
916
+ "id": "req-status-page--derives--need",
917
+ "sourceId": "req-status-page",
918
+ "targetId": "need",
919
+ "relationType": "derives"
920
+ },
921
+ {
922
+ "id": "req-direct--derives--need",
923
+ "sourceId": "req-direct",
924
+ "targetId": "need",
925
+ "relationType": "derives"
926
+ },
927
+ {
928
+ "id": "req-stakeholders--derives--need",
929
+ "sourceId": "req-stakeholders",
930
+ "targetId": "need",
931
+ "relationType": "derives"
932
+ },
933
+ {
934
+ "id": "req-deploy-failure--derives--need",
935
+ "sourceId": "req-deploy-failure",
936
+ "targetId": "need",
937
+ "relationType": "derives"
938
+ },
939
+ {
940
+ "id": "req-postmortem--derives--need",
941
+ "sourceId": "req-postmortem",
942
+ "targetId": "need",
943
+ "relationType": "derives"
944
+ },
945
+ {
946
+ "id": "req-retro--derives--need",
947
+ "sourceId": "req-retro",
948
+ "targetId": "need",
949
+ "relationType": "derives"
950
+ },
951
+ {
952
+ "id": "req-actions--derives--need",
953
+ "sourceId": "req-actions",
954
+ "targetId": "need",
955
+ "relationType": "derives"
956
+ },
957
+ {
958
+ "id": "sc-classify--verifies--req-classify",
959
+ "sourceId": "sc-classify",
960
+ "targetId": "req-classify",
961
+ "relationType": "verifies"
962
+ },
963
+ {
964
+ "id": "sc-declare--verifies--req-declare",
965
+ "sourceId": "sc-declare",
966
+ "targetId": "req-declare",
967
+ "relationType": "verifies"
968
+ },
969
+ {
970
+ "id": "sc-dora--verifies--req-dora",
971
+ "sourceId": "sc-dora",
972
+ "targetId": "req-dora",
973
+ "relationType": "verifies"
974
+ },
975
+ {
976
+ "id": "sc-security--verifies--req-security",
977
+ "sourceId": "sc-security",
978
+ "targetId": "req-security",
979
+ "relationType": "verifies"
980
+ },
981
+ {
982
+ "id": "sc-commander--verifies--req-commander",
983
+ "sourceId": "sc-commander",
984
+ "targetId": "req-commander",
985
+ "relationType": "verifies"
986
+ },
987
+ {
988
+ "id": "sc-oncall-lead--verifies--req-oncall-lead",
989
+ "sourceId": "sc-oncall-lead",
990
+ "targetId": "req-oncall-lead",
991
+ "relationType": "verifies"
992
+ },
993
+ {
994
+ "id": "sc-status-page--verifies--req-status-page",
995
+ "sourceId": "sc-status-page",
996
+ "targetId": "req-status-page",
997
+ "relationType": "verifies"
998
+ },
999
+ {
1000
+ "id": "sc-direct--verifies--req-direct",
1001
+ "sourceId": "sc-direct",
1002
+ "targetId": "req-direct",
1003
+ "relationType": "verifies"
1004
+ },
1005
+ {
1006
+ "id": "sc-stakeholders--verifies--req-stakeholders",
1007
+ "sourceId": "sc-stakeholders",
1008
+ "targetId": "req-stakeholders",
1009
+ "relationType": "verifies"
1010
+ },
1011
+ {
1012
+ "id": "sc-deploy-failure--verifies--req-deploy-failure",
1013
+ "sourceId": "sc-deploy-failure",
1014
+ "targetId": "req-deploy-failure",
1015
+ "relationType": "verifies"
1016
+ },
1017
+ {
1018
+ "id": "sc-postmortem--verifies--req-postmortem",
1019
+ "sourceId": "sc-postmortem",
1020
+ "targetId": "req-postmortem",
1021
+ "relationType": "verifies"
1022
+ },
1023
+ {
1024
+ "id": "sc-retro--verifies--req-retro",
1025
+ "sourceId": "sc-retro",
1026
+ "targetId": "req-retro",
1027
+ "relationType": "verifies"
1028
+ },
1029
+ {
1030
+ "id": "sc-actions--verifies--req-actions",
1031
+ "sourceId": "sc-actions",
1032
+ "targetId": "req-actions",
1033
+ "relationType": "verifies"
1034
+ },
1035
+ {
1036
+ "id": "ff-severity-defined--implements--adr-sev4",
1037
+ "sourceId": "ff-severity-defined",
1038
+ "targetId": "adr-sev4",
1039
+ "relationType": "implements"
1040
+ },
1041
+ {
1042
+ "id": "ff-severity-defined--implements--adr-three",
1043
+ "sourceId": "ff-severity-defined",
1044
+ "targetId": "adr-three",
1045
+ "relationType": "implements"
1046
+ },
1047
+ {
1048
+ "id": "ff-severity-defined--implements--adr-itsm",
1049
+ "sourceId": "ff-severity-defined",
1050
+ "targetId": "adr-itsm",
1051
+ "relationType": "implements"
1052
+ },
1053
+ {
1054
+ "id": "ff-declared--implements--adr-sev4",
1055
+ "sourceId": "ff-declared",
1056
+ "targetId": "adr-sev4",
1057
+ "relationType": "implements"
1058
+ },
1059
+ {
1060
+ "id": "ff-declared--implements--adr-three",
1061
+ "sourceId": "ff-declared",
1062
+ "targetId": "adr-three",
1063
+ "relationType": "implements"
1064
+ },
1065
+ {
1066
+ "id": "ff-declared--implements--adr-itsm",
1067
+ "sourceId": "ff-declared",
1068
+ "targetId": "adr-itsm",
1069
+ "relationType": "implements"
1070
+ },
1071
+ {
1072
+ "id": "ff-lead--implements--adr-sev4",
1073
+ "sourceId": "ff-lead",
1074
+ "targetId": "adr-sev4",
1075
+ "relationType": "implements"
1076
+ },
1077
+ {
1078
+ "id": "ff-lead--implements--adr-three",
1079
+ "sourceId": "ff-lead",
1080
+ "targetId": "adr-three",
1081
+ "relationType": "implements"
1082
+ },
1083
+ {
1084
+ "id": "ff-lead--implements--adr-itsm",
1085
+ "sourceId": "ff-lead",
1086
+ "targetId": "adr-itsm",
1087
+ "relationType": "implements"
1088
+ },
1089
+ {
1090
+ "id": "ff-lead--implements--adr-commander",
1091
+ "sourceId": "ff-lead",
1092
+ "targetId": "adr-commander",
1093
+ "relationType": "implements"
1094
+ },
1095
+ {
1096
+ "id": "ff-lead--implements--adr-oncall-lead",
1097
+ "sourceId": "ff-lead",
1098
+ "targetId": "adr-oncall-lead",
1099
+ "relationType": "implements"
1100
+ },
1101
+ {
1102
+ "id": "ff-status-page--implements--adr-statuspage",
1103
+ "sourceId": "ff-status-page",
1104
+ "targetId": "adr-statuspage",
1105
+ "relationType": "implements"
1106
+ },
1107
+ {
1108
+ "id": "ff-customers-told--implements--adr-direct",
1109
+ "sourceId": "ff-customers-told",
1110
+ "targetId": "adr-direct",
1111
+ "relationType": "implements"
1112
+ },
1113
+ {
1114
+ "id": "ff-updates--implements--adr-sev4",
1115
+ "sourceId": "ff-updates",
1116
+ "targetId": "adr-sev4",
1117
+ "relationType": "implements"
1118
+ },
1119
+ {
1120
+ "id": "ff-updates--implements--adr-three",
1121
+ "sourceId": "ff-updates",
1122
+ "targetId": "adr-three",
1123
+ "relationType": "implements"
1124
+ },
1125
+ {
1126
+ "id": "ff-updates--implements--adr-itsm",
1127
+ "sourceId": "ff-updates",
1128
+ "targetId": "adr-itsm",
1129
+ "relationType": "implements"
1130
+ },
1131
+ {
1132
+ "id": "ff-updates--implements--adr-statuspage",
1133
+ "sourceId": "ff-updates",
1134
+ "targetId": "adr-statuspage",
1135
+ "relationType": "implements"
1136
+ },
1137
+ {
1138
+ "id": "ff-updates--implements--adr-direct",
1139
+ "sourceId": "ff-updates",
1140
+ "targetId": "adr-direct",
1141
+ "relationType": "implements"
1142
+ },
1143
+ {
1144
+ "id": "ff-deploy-marked--implements--adr-sev4",
1145
+ "sourceId": "ff-deploy-marked",
1146
+ "targetId": "adr-sev4",
1147
+ "relationType": "implements"
1148
+ },
1149
+ {
1150
+ "id": "ff-deploy-marked--implements--adr-three",
1151
+ "sourceId": "ff-deploy-marked",
1152
+ "targetId": "adr-three",
1153
+ "relationType": "implements"
1154
+ },
1155
+ {
1156
+ "id": "ff-deploy-marked--implements--adr-itsm",
1157
+ "sourceId": "ff-deploy-marked",
1158
+ "targetId": "adr-itsm",
1159
+ "relationType": "implements"
1160
+ },
1161
+ {
1162
+ "id": "ff-postmortem--implements--adr-blameless",
1163
+ "sourceId": "ff-postmortem",
1164
+ "targetId": "adr-blameless",
1165
+ "relationType": "implements"
1166
+ },
1167
+ {
1168
+ "id": "ff-review--implements--adr-retro",
1169
+ "sourceId": "ff-review",
1170
+ "targetId": "adr-retro",
1171
+ "relationType": "implements"
1172
+ },
1173
+ {
1174
+ "id": "ff-actions--implements--adr-sev4",
1175
+ "sourceId": "ff-actions",
1176
+ "targetId": "adr-sev4",
1177
+ "relationType": "implements"
1178
+ },
1179
+ {
1180
+ "id": "ff-actions--implements--adr-three",
1181
+ "sourceId": "ff-actions",
1182
+ "targetId": "adr-three",
1183
+ "relationType": "implements"
1184
+ },
1185
+ {
1186
+ "id": "ff-actions--implements--adr-itsm",
1187
+ "sourceId": "ff-actions",
1188
+ "targetId": "adr-itsm",
1189
+ "relationType": "implements"
1190
+ },
1191
+ {
1192
+ "id": "ff-actions--implements--adr-blameless",
1193
+ "sourceId": "ff-actions",
1194
+ "targetId": "adr-blameless",
1195
+ "relationType": "implements"
1196
+ },
1197
+ {
1198
+ "id": "ff-actions--implements--adr-retro",
1199
+ "sourceId": "ff-actions",
1200
+ "targetId": "adr-retro",
1201
+ "relationType": "implements"
1202
+ }
1203
+ ]
1204
+ }