@radicaltools/cli 0.3.0 → 0.3.2
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.
- package/README.md +332 -44
- package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
- package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +449 -210
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +287 -131
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +247 -37
- package/dist/hub-catalogue/concern/concern-authorization.radical +311 -89
- package/dist/hub-catalogue/concern/concern-availability.radical +287 -63
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +300 -381
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +385 -129
- package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +194 -81
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
- package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +473 -167
- package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +339 -308
- package/dist/hub-catalogue/concern/concern-data-store.radical +480 -158
- package/dist/hub-catalogue/concern/concern-decomposition.radical +260 -85
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +343 -92
- package/dist/hub-catalogue/concern/concern-encryption.radical +339 -76
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +467 -160
- package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +1300 -268
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +88 -51
- package/dist/hub-catalogue/concern/concern-messaging.radical +173 -140
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +162 -159
- package/dist/hub-catalogue/concern/concern-observability.radical +224 -275
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +637 -122
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +433 -141
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
- package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +332 -74
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
- package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
- package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +257 -183
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +271 -137
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +243 -224
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
- package/dist/index.js +10608 -6579
- package/package.json +1 -1
|
@@ -0,0 +1,1249 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-operational-readiness",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Operational readiness",
|
|
6
|
+
"description": "What must be true before it first takes production traffic, and how the team keeps practising running it: the production readiness review and its checklist, the runbooks the alerts link to, game days or chaos experiments, and who owns it and whom to call.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"operations",
|
|
9
|
+
"readiness review",
|
|
10
|
+
"runbooks",
|
|
11
|
+
"game days",
|
|
12
|
+
"chaos engineering",
|
|
13
|
+
"ownership"
|
|
14
|
+
],
|
|
15
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
16
|
+
"concern": {
|
|
17
|
+
"id": "operational-readiness",
|
|
18
|
+
"trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\") AND external != true",
|
|
19
|
+
"why": "these elements will run in production, so what must be ready before their first production traffic, and how the team keeps practising running them, has to be decided.",
|
|
20
|
+
"group": "operability"
|
|
21
|
+
},
|
|
22
|
+
"sources": [
|
|
23
|
+
{
|
|
24
|
+
"title": "Google SRE book, chapter 32: The Evolving SRE Engagement Model (Production Readiness Review)",
|
|
25
|
+
"url": "https://sre.google/sre-book/evolving-sre-engagement-model/"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"title": "Google SRE workbook, chapter 18: SRE Engagement Model",
|
|
29
|
+
"url": "https://sre.google/workbook/engagement-model/"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"title": "Google SRE book, chapter 1: Introduction (playbooks and MTTR)",
|
|
33
|
+
"url": "https://sre.google/sre-book/introduction/"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"title": "AWS Well-Architected, Operational Excellence: OPS07-BP02 Ensure a consistent review of operational readiness",
|
|
37
|
+
"url": "https://docs.aws.amazon.com/wellarchitected/latest/operational-excellence-pillar/ops_ready_to_support_const_orr.html"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "AWS Well-Architected, Operational Excellence: OPS07-BP03 Use runbooks to perform procedures",
|
|
41
|
+
"url": "https://docs.aws.amazon.com/wellarchitected/latest/operational-excellence-pillar/ops_ready_to_support_use_runbooks.html"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"title": "AWS whitepaper: Operational Readiness Reviews (ORR)",
|
|
45
|
+
"url": "https://docs.aws.amazon.com/wellarchitected/latest/operational-readiness-reviews/wa-operational-readiness-reviews.html"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"title": "AWS Well-Architected, Reliability: REL12-BP05 Conduct game days regularly",
|
|
49
|
+
"url": "https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/rel_testing_resiliency_game_days_resiliency.html"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"title": "AWS Well-Architected, Reliability: REL12-BP04 Test resiliency using chaos engineering",
|
|
53
|
+
"url": "https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/rel_testing_resiliency_failure_injection_resiliency.html"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"title": "Principles of Chaos Engineering",
|
|
57
|
+
"url": "https://principlesofchaos.org/"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"title": "AWS Fault Injection Service: stop conditions",
|
|
61
|
+
"url": "https://docs.aws.amazon.com/fis/latest/userguide/stop-conditions.html"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"title": "Chaos Mesh documentation",
|
|
65
|
+
"url": "https://chaos-mesh.org/docs/"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"title": "Backstage: Descriptor Format of Catalog Entities",
|
|
69
|
+
"url": "https://backstage.io/docs/features/software-catalog/descriptor-format/"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"title": "GitHub Docs: About code owners",
|
|
73
|
+
"url": "https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"templateParams": [
|
|
77
|
+
{
|
|
78
|
+
"key": "PRR",
|
|
79
|
+
"title": "Readiness review",
|
|
80
|
+
"label": "Who reviews it before it takes production traffic?",
|
|
81
|
+
"hint": "A production readiness review checks against a written checklist that the element can be run: who owns it, what pages and who answers, where the next step is written, and that its targets, load tests, restores and rollback have been decided and tried. Held before the first production traffic and again after a major change, it is the cheapest point to find what is missing. The checklist links to the decisions of the Availability, Observability, Capacity and scaling, Backup and recovery, Deployment and rollback and Incident management packs instead of repeating them.",
|
|
82
|
+
"defaultValue": "self",
|
|
83
|
+
"options": [
|
|
84
|
+
{
|
|
85
|
+
"value": "sre",
|
|
86
|
+
"label": "a readiness review signed off by SRE or the platform team",
|
|
87
|
+
"description": "The owning team fills in the checklist with evidence; an engineer of the SRE or platform team who is not in the owning team checks every item and approves the record, before the first production traffic and after each major change. Pick it when such a team exists and will help run the element or its platform, or when the element is on a revenue path."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value": "self",
|
|
91
|
+
"label": "a self-assessment by the owning team",
|
|
92
|
+
"description": "The owning team fills in the same checklist with evidence and its lead signs the record; nobody outside the team checks it. Pick it when there is no SRE or platform team, or when the team builds and runs the element alone."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"value": "none",
|
|
96
|
+
"label": "no readiness review",
|
|
97
|
+
"description": "The element goes to production without a review, and the decision says so and until when. Pick it only for a prototype or an internal tool that the owning team alone uses; the first user outside the team ends it."
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"key": "RUNBOOKS",
|
|
103
|
+
"title": "Runbooks",
|
|
104
|
+
"label": "How are the runbooks organised?",
|
|
105
|
+
"hint": "Whoever is paged needs the next step one click from the alert. The alerts, their routing and who is paged are decided in the Observability pack; this decides where the steps are written and how an alert leads to them. Either way, each alerting rule carries a runbook_url annotation.",
|
|
106
|
+
"defaultValue": "alert",
|
|
107
|
+
"options": [
|
|
108
|
+
{
|
|
109
|
+
"value": "alert",
|
|
110
|
+
"label": "a runbook per alert, linked from the alert",
|
|
111
|
+
"description": "Each alerting rule links to a page of its own under docs/runbooks, named after the alert: what it means, the user impact, how to diagnose, mitigate and escalate. Pick it when the element has more than a handful of alerts or several people on the rotation, so that each page stays short and is found from the page."
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"value": "element",
|
|
115
|
+
"label": "one runbook per element, a section per alert",
|
|
116
|
+
"description": "One document per element under docs/runbooks with its dependencies, dashboards and routine operations, and one section per alert, which the alert links to by its anchor. Pick it for an element with a few alerts and one small team, where one document is easier to keep current than many."
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"key": "PRACTICE",
|
|
122
|
+
"title": "Practice",
|
|
123
|
+
"label": "How does the team keep practising running it?",
|
|
124
|
+
"hint": "Runbooks and a response that are never exercised fail on the night they are needed. The drills that prove a decision are decided where the decision is: instance, zone and region loss in the Availability pack, restores in the Backup and recovery pack, rollback in the Deployment and rollback pack, peak load in the Capacity and scaling pack. This decides how the team practises the rest: the runbooks, the response, and the failure modes the readiness review listed.",
|
|
125
|
+
"defaultValue": "gameday",
|
|
126
|
+
"options": [
|
|
127
|
+
{
|
|
128
|
+
"value": "gameday",
|
|
129
|
+
"label": "game days on a written scenario",
|
|
130
|
+
"description": "Every quarter by default, the people on the rotation spend a few hours responding with the runbooks to a failure a facilitator injects into staging, while observers note what was missing; the findings become tickets. Pick it when the team is starting to practise, or when what most needs exercising is people, runbooks and communication."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"value": "chaos",
|
|
134
|
+
"label": "automated chaos experiments in staging",
|
|
135
|
+
"description": "Fault experiments, each with a steady-state hypothesis and a stop condition, run on a schedule (weekly by default) against staging with AWS Fault Injection Service, Chaos Mesh or LitmusChaos, and a broken hypothesis becomes a ticket. Pick it when the platform can inject faults safely and the element changes so often that a quarterly exercise falls behind."
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"value": "none",
|
|
139
|
+
"label": "no practice beyond the drills of the other packs",
|
|
140
|
+
"description": "No game days and no chaos experiments; the team relies on the drills the other packs decide and on real incidents, and the decision records it. Pick it for an internal tool with an availability target of 99.0 % or less, or a team of two or three people."
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"key": "OWNERSHIP",
|
|
146
|
+
"title": "Ownership",
|
|
147
|
+
"label": "Where are the owner and the escalation contact recorded?",
|
|
148
|
+
"hint": "When it breaks at night, or another team needs a change, the first question is who owns it and whom to call. The on-call rotation and its escalation policy are decided in the Observability pack; this decides where the element points to them.",
|
|
149
|
+
"defaultValue": "catalog",
|
|
150
|
+
"options": [
|
|
151
|
+
{
|
|
152
|
+
"value": "catalog",
|
|
153
|
+
"label": "a service catalogue entry (Backstage catalog-info.yaml)",
|
|
154
|
+
"description": "A catalog-info.yaml beside the code describes the element as a Backstage Component with its owning team (spec.owner), its lifecycle (spec.lifecycle) and the paging service to escalate to (the PagerDuty plugin's pagerduty.com/service-id annotation); the catalogue shows every element's owner in one place. Pick it when the organisation runs Backstage (self-hosted or as Roadie), or has more than a handful of teams."
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"value": "readme",
|
|
158
|
+
"label": "an ownership section in the README",
|
|
159
|
+
"description": "The repository's README.md has an Ownership section naming the owning GitHub team, its channel and the on-call schedule to escalate to. Pick it for a few teams without a service catalogue; move to a catalogue when people start asking which repository is whose."
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"key": "PRR_TEAM",
|
|
165
|
+
"label": "Which GitHub team signs the readiness review (SRE or platform)? Only with a review signed off by SRE or the platform team",
|
|
166
|
+
"defaultValue": "@shop/sre"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"key": "PRR_MONTHS",
|
|
170
|
+
"label": "After how many months must the readiness review be held again, even without a major change?",
|
|
171
|
+
"defaultValue": "12",
|
|
172
|
+
"type": "number"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"key": "GAP_DAYS",
|
|
176
|
+
"label": "Within how many days of the review must a gap it found be closed?",
|
|
177
|
+
"defaultValue": "90",
|
|
178
|
+
"type": "number"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"key": "RUNBOOK_DAYS",
|
|
182
|
+
"label": "Within how many days must each runbook be reviewed again?",
|
|
183
|
+
"defaultValue": "180",
|
|
184
|
+
"type": "number"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"key": "GAMEDAY_DAYS",
|
|
188
|
+
"label": "How many days may pass between two game days? Only with game days",
|
|
189
|
+
"defaultValue": "92",
|
|
190
|
+
"type": "number"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"key": "CHAOS_DAYS",
|
|
194
|
+
"label": "Within how many days must each chaos experiment have completed a run? Only with automated chaos experiments",
|
|
195
|
+
"defaultValue": "7",
|
|
196
|
+
"type": "number"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
"nodes": [
|
|
201
|
+
{
|
|
202
|
+
"id": "need",
|
|
203
|
+
"type": "need",
|
|
204
|
+
"label": "Ready to run before it goes live",
|
|
205
|
+
"x": 0,
|
|
206
|
+
"y": 0,
|
|
207
|
+
"kind": "brief",
|
|
208
|
+
"source": "Hub concern pack: Operational readiness",
|
|
209
|
+
"description": "Before this element takes its first production traffic, the people who will run it must know that it can be run: who owns it, what pages and who answers, where the next step is written, and that its targets, alerts, load tests, restores and rollback have been decided and tried. After launch the team has to keep practising, or the runbooks and the response decay until the night they are needed. The snippets assume one repository per element (order-api, labelled Order API in the architecture model) with the review checklist at docs/operations/prr-checklist.md and the signed reviews as docs/operations/prr/YYYY-MM-DD.md, the runbooks under docs/runbooks, the Prometheus alerting rules under monitoring/rules, the game-day records as docs/gamedays/YYYY-MM-DD.md, catalog-info.yaml or README.md at the root, the architecture model as a Radical Markdown folder under architecture/, and js-yaml among the development dependencies."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": "req-prr-gate",
|
|
213
|
+
"type": "requirement",
|
|
214
|
+
"label": "No production deployment without a review",
|
|
215
|
+
"x": 260,
|
|
216
|
+
"y": 0,
|
|
217
|
+
"ears_type": "unwanted-behaviour",
|
|
218
|
+
"unwanted_condition": "a production deployment of the element starts without an approved readiness review on record, or with one older than {{PRR_MONTHS}} months",
|
|
219
|
+
"action": "stop the deployment before it changes anything in production, and name the missing or stale review",
|
|
220
|
+
"rationale": "A review held after launch reviews nothing; tying it to the deployment makes the first production traffic wait for it, and the age limit catches the drift that no single change announced (Google SRE book, chapter 32; AWS Well-Architected OPS07-BP02).",
|
|
221
|
+
"hubWhen": {
|
|
222
|
+
"PRR": [
|
|
223
|
+
"sre",
|
|
224
|
+
"self"
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "req-prr-gaps",
|
|
230
|
+
"type": "requirement",
|
|
231
|
+
"label": "Gaps written down with a date",
|
|
232
|
+
"x": 260,
|
|
233
|
+
"y": 130,
|
|
234
|
+
"ears_type": "unwanted-behaviour",
|
|
235
|
+
"unwanted_condition": "a checklist item is not met when the review is signed",
|
|
236
|
+
"action": "record it in the review as a gap with a ticket and a due date at most {{GAP_DAYS}} days after the review, so that a review may approve with known gaps but never with unknown ones",
|
|
237
|
+
"rationale": "Waiting for a perfect review delays launch until the review is skipped; an approval with written, dated gaps keeps both the launch and the follow-up honest (AWS whitepaper, Operational Readiness Reviews).",
|
|
238
|
+
"hubWhen": {
|
|
239
|
+
"PRR": [
|
|
240
|
+
"sre",
|
|
241
|
+
"self"
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"id": "req-prr-signoff",
|
|
247
|
+
"type": "requirement",
|
|
248
|
+
"label": "Review signed outside the team",
|
|
249
|
+
"x": 260,
|
|
250
|
+
"y": 260,
|
|
251
|
+
"ears_type": "ubiquitous",
|
|
252
|
+
"action": "have every readiness review approved by a member of {{PRR_TEAM}}, who checks each checklist item against its evidence, through a required code-owner review of the pull request that adds the record",
|
|
253
|
+
"rationale": "The team that built the element is the worst judge of what it forgot; the engaging SRE team checks it against its checklist (Google SRE book, chapter 32), and the required code-owner approval is the signature (GitHub Docs, About code owners).",
|
|
254
|
+
"hubWhen": {
|
|
255
|
+
"PRR": [
|
|
256
|
+
"sre"
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"id": "req-prr-checklist",
|
|
262
|
+
"type": "requirement",
|
|
263
|
+
"label": "One checklist that links, not copies",
|
|
264
|
+
"x": 260,
|
|
265
|
+
"y": 390,
|
|
266
|
+
"ears_type": "ubiquitous",
|
|
267
|
+
"action": "be reviewed against one checklist kept in the repository, with a section for each of ownership, availability objective, alerts and on-call, runbooks, capacity and load test, backup and restore, rollout and rollback, incident response, dependencies and failure modes, and practice, each section linking to the decision or the latest record it rests on instead of repeating its numbers",
|
|
268
|
+
"rationale": "A written checklist makes reviews comparable across elements and reviewers; links instead of copies keep it right when a neighbouring decision changes (AWS whitepaper, Operational Readiness Reviews; Google SRE workbook, chapter 18).",
|
|
269
|
+
"hubWhen": {
|
|
270
|
+
"PRR": [
|
|
271
|
+
"sre",
|
|
272
|
+
"self"
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": "req-prr-major",
|
|
278
|
+
"type": "requirement",
|
|
279
|
+
"label": "Reviewed again after a major change",
|
|
280
|
+
"x": 260,
|
|
281
|
+
"y": 520,
|
|
282
|
+
"ears_type": "event-driven",
|
|
283
|
+
"trigger": "a major change reaches the element: a new dependency or data store, a new region, a higher availability target or a new owning team",
|
|
284
|
+
"action": "review it again against the checklist before the change takes production traffic, with every dependency the architecture model shows listed in the new review",
|
|
285
|
+
"rationale": "Most of what a first review finds comes back with a new dependency or a new owner, and the review is cheapest before the change is live (Google SRE book, chapter 32).",
|
|
286
|
+
"hubWhen": {
|
|
287
|
+
"PRR": [
|
|
288
|
+
"sre",
|
|
289
|
+
"self"
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"id": "req-prr-none",
|
|
295
|
+
"type": "requirement",
|
|
296
|
+
"label": "Unreviewed only while nobody else depends on it",
|
|
297
|
+
"x": 260,
|
|
298
|
+
"y": 650,
|
|
299
|
+
"ears_type": "state-driven",
|
|
300
|
+
"precondition": "the element runs in production without a readiness review",
|
|
301
|
+
"action": "serve no user outside the owning team, and have the first such user, or an availability target above 99.0 %, supersede the decision with a review",
|
|
302
|
+
"rationale": "Skipping the review is a bet that nobody depends on the element yet; writing down when the bet ends keeps it from becoming permanent.",
|
|
303
|
+
"unchecked": "The owning team's lead confirms at each quarterly planning that nobody outside the team uses the element; who calls it in production is a fact no repository check sees reliably.",
|
|
304
|
+
"hubWhen": {
|
|
305
|
+
"PRR": [
|
|
306
|
+
"none"
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"id": "req-runbook-alert",
|
|
312
|
+
"type": "requirement",
|
|
313
|
+
"label": "Each alert links its own runbook",
|
|
314
|
+
"x": 260,
|
|
315
|
+
"y": 780,
|
|
316
|
+
"ears_type": "ubiquitous",
|
|
317
|
+
"action": "give every alerting rule a runbook_url annotation that resolves to a runbook page of its own under docs/runbooks, shared with no other alert, which says what the alert means, the user impact, and how to diagnose, mitigate and escalate",
|
|
318
|
+
"rationale": "The engineer who is paged starts from the alert; a playbook written ahead of time cuts the time to repair roughly threefold compared with winging it (Google SRE book, chapter 1), and a short page per alert is found from the page and kept current (AWS Well-Architected OPS07-BP03).",
|
|
319
|
+
"hubWhen": {
|
|
320
|
+
"RUNBOOKS": [
|
|
321
|
+
"alert"
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"id": "req-runbook-element",
|
|
327
|
+
"type": "requirement",
|
|
328
|
+
"label": "Each alert links its section of the runbook",
|
|
329
|
+
"x": 260,
|
|
330
|
+
"y": 910,
|
|
331
|
+
"ears_type": "ubiquitous",
|
|
332
|
+
"action": "keep one runbook for the element under docs/runbooks, with its dependencies, dashboards and routine operations, and give every alerting rule a runbook_url annotation that resolves to the section of that runbook written for the alert, no two alerts sharing a section",
|
|
333
|
+
"rationale": "The engineer who is paged starts from the alert; a playbook written ahead of time cuts the time to repair roughly threefold compared with winging it (Google SRE book, chapter 1), and an anchor to the alert's own section saves the scrolling (AWS Well-Architected OPS07-BP03).",
|
|
334
|
+
"hubWhen": {
|
|
335
|
+
"RUNBOOKS": [
|
|
336
|
+
"element"
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"id": "req-runbook-review",
|
|
342
|
+
"type": "requirement",
|
|
343
|
+
"label": "Runbooks reviewed on time",
|
|
344
|
+
"x": 260,
|
|
345
|
+
"y": 1040,
|
|
346
|
+
"ears_type": "ubiquitous",
|
|
347
|
+
"action": "have every runbook reviewed by someone on the rotation at least every {{RUNBOOK_DAYS}} days and after each incident in which it was used, with the date of the last review in the runbook itself",
|
|
348
|
+
"rationale": "Runbooks decay as the element changes; a review date the check reads makes the decay visible before the night it matters (AWS Well-Architected OPS07-BP03)."
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"id": "req-gameday",
|
|
352
|
+
"type": "requirement",
|
|
353
|
+
"label": "Game days held and recorded",
|
|
354
|
+
"x": 260,
|
|
355
|
+
"y": 1170,
|
|
356
|
+
"ears_type": "ubiquitous",
|
|
357
|
+
"action": "hold a game day at least every {{GAMEDAY_DAYS}} days, in which at least two people on the rotation respond with the runbooks to a failure injected on a written scenario with a hypothesis, and record the scenario, the hypothesis, the participants, the outcome and a ticket for each finding under docs/gamedays",
|
|
358
|
+
"rationale": "A practised response is what makes a runbook trustworthy; a written scenario and hypothesis turn the afternoon into an experiment rather than a demonstration (AWS Well-Architected REL12-BP05; Principles of Chaos Engineering).",
|
|
359
|
+
"hubWhen": {
|
|
360
|
+
"PRACTICE": [
|
|
361
|
+
"gameday"
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"id": "req-chaos",
|
|
367
|
+
"type": "requirement",
|
|
368
|
+
"label": "Chaos experiments run continuously",
|
|
369
|
+
"x": 260,
|
|
370
|
+
"y": 1300,
|
|
371
|
+
"ears_type": "ubiquitous",
|
|
372
|
+
"action": "complete a run of each of its chaos experiments against staging at least every {{CHAOS_DAYS}} days, each stating a steady-state hypothesis on the service level indicator and injecting one failure mode the readiness review or an incident named",
|
|
373
|
+
"rationale": "Systems drift; experiments that run continuously against a hypothesis about the steady state catch what a change broke before an incident does (Principles of Chaos Engineering; AWS Well-Architected REL12-BP04).",
|
|
374
|
+
"hubWhen": {
|
|
375
|
+
"PRACTICE": [
|
|
376
|
+
"chaos"
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"id": "req-chaos-abort",
|
|
382
|
+
"type": "requirement",
|
|
383
|
+
"label": "Experiments stop when the steady state breaks",
|
|
384
|
+
"x": 260,
|
|
385
|
+
"y": 1430,
|
|
386
|
+
"ears_type": "unwanted-behaviour",
|
|
387
|
+
"unwanted_condition": "the steady state breaks while an experiment runs",
|
|
388
|
+
"action": "stop the experiment at once through a stop condition on the alarm that measures the steady state, so that no experiment of the element is defined without one",
|
|
389
|
+
"rationale": "Minimising the blast radius is a principle of chaos engineering, and a stop condition bound to the steady-state alarm is its mechanism (Principles of Chaos Engineering; AWS Fault Injection Service, stop conditions).",
|
|
390
|
+
"hubWhen": {
|
|
391
|
+
"PRACTICE": [
|
|
392
|
+
"chaos"
|
|
393
|
+
]
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"id": "req-owner-catalog",
|
|
398
|
+
"type": "requirement",
|
|
399
|
+
"label": "Owner and escalation in the catalogue",
|
|
400
|
+
"x": 260,
|
|
401
|
+
"y": 1560,
|
|
402
|
+
"ears_type": "ubiquitous",
|
|
403
|
+
"action": "be described by a catalog-info.yaml at its repository root as a Backstage Component whose spec.owner names a group in the catalogue with at least one member, whose spec.lifecycle is experimental, production or deprecated, and whose pagerduty.com/service-id annotation names the paging service to escalate to",
|
|
404
|
+
"rationale": "One file beside the code, read by the catalogue, answers who owns it and whom to call for every element in one place; owner and lifecycle are required fields of a Component (Backstage, Descriptor Format).",
|
|
405
|
+
"hubWhen": {
|
|
406
|
+
"OWNERSHIP": [
|
|
407
|
+
"catalog"
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"id": "req-owner-readme",
|
|
413
|
+
"type": "requirement",
|
|
414
|
+
"label": "Owner and escalation in the README",
|
|
415
|
+
"x": 260,
|
|
416
|
+
"y": 1690,
|
|
417
|
+
"ears_type": "ubiquitous",
|
|
418
|
+
"action": "state in README.md, under an Ownership heading, the owning GitHub team, its channel and the on-call schedule to escalate to, the team having at least one member",
|
|
419
|
+
"rationale": "Without a catalogue the README is the first place anyone looks; a fixed heading and fixed fields let a check keep it filled in and the team behind it real.",
|
|
420
|
+
"hubWhen": {
|
|
421
|
+
"OWNERSHIP": [
|
|
422
|
+
"readme"
|
|
423
|
+
]
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"id": "sc-prr-gate",
|
|
428
|
+
"type": "scenario",
|
|
429
|
+
"label": "Stale review stops the deployment",
|
|
430
|
+
"x": 520,
|
|
431
|
+
"y": 0,
|
|
432
|
+
"given": "an element whose newest review record is older than {{PRR_MONTHS}} months",
|
|
433
|
+
"when": "a production deployment starts",
|
|
434
|
+
"then": "the deployment stops before any change and names the stale review; once an approved record is merged, it runs",
|
|
435
|
+
"hubWhen": {
|
|
436
|
+
"PRR": [
|
|
437
|
+
"sre",
|
|
438
|
+
"self"
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"id": "sc-prr-gaps",
|
|
444
|
+
"type": "scenario",
|
|
445
|
+
"label": "Missing load test becomes a dated gap",
|
|
446
|
+
"x": 520,
|
|
447
|
+
"y": 130,
|
|
448
|
+
"given": "a review held before the first load test has run",
|
|
449
|
+
"when": "the record is signed",
|
|
450
|
+
"then": "it lists the load test as a gap with a ticket and a due date within {{GAP_DAYS}} days, and a gap without either fails the review check",
|
|
451
|
+
"hubWhen": {
|
|
452
|
+
"PRR": [
|
|
453
|
+
"sre",
|
|
454
|
+
"self"
|
|
455
|
+
]
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"id": "sc-prr-signoff",
|
|
460
|
+
"type": "scenario",
|
|
461
|
+
"label": "Owning team cannot sign alone",
|
|
462
|
+
"x": 520,
|
|
463
|
+
"y": 260,
|
|
464
|
+
"given": "a pull request adding a review record, approved only by the owning team",
|
|
465
|
+
"when": "it is to be merged",
|
|
466
|
+
"then": "the merge is blocked until a member of {{PRR_TEAM}} approves it",
|
|
467
|
+
"hubWhen": {
|
|
468
|
+
"PRR": [
|
|
469
|
+
"sre"
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"id": "sc-prr-checklist",
|
|
475
|
+
"type": "scenario",
|
|
476
|
+
"label": "Checklist keeps its sections",
|
|
477
|
+
"x": 520,
|
|
478
|
+
"y": 390,
|
|
479
|
+
"given": "the checklist in the repository",
|
|
480
|
+
"when": "a section is removed, or a section holds no link",
|
|
481
|
+
"then": "the checklist check fails naming the section",
|
|
482
|
+
"hubWhen": {
|
|
483
|
+
"PRR": [
|
|
484
|
+
"sre",
|
|
485
|
+
"self"
|
|
486
|
+
]
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"id": "sc-prr-major",
|
|
491
|
+
"type": "scenario",
|
|
492
|
+
"label": "New dependency asks for a review",
|
|
493
|
+
"x": 520,
|
|
494
|
+
"y": 520,
|
|
495
|
+
"given": "the architecture model and the newest review, which lists the element's dependencies",
|
|
496
|
+
"when": "a pull request adds a call from the element to a new system in the model",
|
|
497
|
+
"then": "the dependency check fails until a new review lists the system",
|
|
498
|
+
"hubWhen": {
|
|
499
|
+
"PRR": [
|
|
500
|
+
"sre",
|
|
501
|
+
"self"
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"id": "sc-prr-none",
|
|
507
|
+
"type": "scenario",
|
|
508
|
+
"label": "First outside user ends the exemption",
|
|
509
|
+
"x": 520,
|
|
510
|
+
"y": 650,
|
|
511
|
+
"given": "an element running without a readiness review",
|
|
512
|
+
"when": "a team outside the owning team asks to use it",
|
|
513
|
+
"then": "the decision is superseded and the element is reviewed before that team's traffic arrives",
|
|
514
|
+
"hubWhen": {
|
|
515
|
+
"PRR": [
|
|
516
|
+
"none"
|
|
517
|
+
]
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"id": "sc-runbook-alert",
|
|
522
|
+
"type": "scenario",
|
|
523
|
+
"label": "Alert without a runbook refused",
|
|
524
|
+
"x": 520,
|
|
525
|
+
"y": 780,
|
|
526
|
+
"given": "the alerting rules",
|
|
527
|
+
"when": "an alert is added without a runbook_url, with one that does not resolve, or with one another alert uses",
|
|
528
|
+
"then": "the runbook check fails naming the alert",
|
|
529
|
+
"hubWhen": {
|
|
530
|
+
"RUNBOOKS": [
|
|
531
|
+
"alert"
|
|
532
|
+
]
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"id": "sc-runbook-element",
|
|
537
|
+
"type": "scenario",
|
|
538
|
+
"label": "Broken anchor refused",
|
|
539
|
+
"x": 520,
|
|
540
|
+
"y": 910,
|
|
541
|
+
"given": "the alerting rules and the element's runbook",
|
|
542
|
+
"when": "an alert links to a section heading that does not exist, or to the section of another alert",
|
|
543
|
+
"then": "the runbook check fails naming the alert",
|
|
544
|
+
"hubWhen": {
|
|
545
|
+
"RUNBOOKS": [
|
|
546
|
+
"element"
|
|
547
|
+
]
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"id": "sc-runbook-review",
|
|
552
|
+
"type": "scenario",
|
|
553
|
+
"label": "Stale runbook flagged",
|
|
554
|
+
"x": 520,
|
|
555
|
+
"y": 1040,
|
|
556
|
+
"given": "a runbook last reviewed {{RUNBOOK_DAYS}} days and one day ago",
|
|
557
|
+
"when": "the daily runbook check runs",
|
|
558
|
+
"then": "it fails naming the runbook"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"id": "sc-gameday",
|
|
562
|
+
"type": "scenario",
|
|
563
|
+
"label": "Overdue game day flagged",
|
|
564
|
+
"x": 520,
|
|
565
|
+
"y": 1170,
|
|
566
|
+
"given": "the game-day records",
|
|
567
|
+
"when": "the newest is older than {{GAMEDAY_DAYS}} days, or a finding has no ticket",
|
|
568
|
+
"then": "the scheduled check fails naming what is missing",
|
|
569
|
+
"hubWhen": {
|
|
570
|
+
"PRACTICE": [
|
|
571
|
+
"gameday"
|
|
572
|
+
]
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"id": "sc-chaos",
|
|
577
|
+
"type": "scenario",
|
|
578
|
+
"label": "Experiment that stopped running flagged",
|
|
579
|
+
"x": 520,
|
|
580
|
+
"y": 1300,
|
|
581
|
+
"given": "an experiment template for the element",
|
|
582
|
+
"when": "it has no completed run in the last {{CHAOS_DAYS}} days",
|
|
583
|
+
"then": "the scheduled check fails naming the template",
|
|
584
|
+
"hubWhen": {
|
|
585
|
+
"PRACTICE": [
|
|
586
|
+
"chaos"
|
|
587
|
+
]
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"id": "sc-chaos-abort",
|
|
592
|
+
"type": "scenario",
|
|
593
|
+
"label": "Experiment aborts on the alarm",
|
|
594
|
+
"x": 520,
|
|
595
|
+
"y": 1430,
|
|
596
|
+
"given": "an experiment whose steady-state alarm goes into alarm during the run",
|
|
597
|
+
"when": "the alarm fires",
|
|
598
|
+
"then": "the experiment ends as stopped; and a template whose only stop condition is none fails the guard check",
|
|
599
|
+
"hubWhen": {
|
|
600
|
+
"PRACTICE": [
|
|
601
|
+
"chaos"
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"id": "sc-owner-catalog",
|
|
607
|
+
"type": "scenario",
|
|
608
|
+
"label": "Ownerless entry refused",
|
|
609
|
+
"x": 520,
|
|
610
|
+
"y": 1560,
|
|
611
|
+
"given": "the element's catalog-info.yaml",
|
|
612
|
+
"when": "its owner names a group missing from the catalogue or without members, or its escalation annotation is removed",
|
|
613
|
+
"then": "the ownership check fails naming what is missing",
|
|
614
|
+
"hubWhen": {
|
|
615
|
+
"OWNERSHIP": [
|
|
616
|
+
"catalog"
|
|
617
|
+
]
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"id": "sc-owner-readme",
|
|
622
|
+
"type": "scenario",
|
|
623
|
+
"label": "Ownership section kept",
|
|
624
|
+
"x": 520,
|
|
625
|
+
"y": 1690,
|
|
626
|
+
"given": "the README",
|
|
627
|
+
"when": "the Ownership section loses its escalation line, or names a team with no members",
|
|
628
|
+
"then": "the ownership check fails naming what is missing",
|
|
629
|
+
"hubWhen": {
|
|
630
|
+
"OWNERSHIP": [
|
|
631
|
+
"readme"
|
|
632
|
+
]
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"id": "adr-prr-sre",
|
|
637
|
+
"type": "adr",
|
|
638
|
+
"label": "Readiness review signed off by SRE",
|
|
639
|
+
"x": 780,
|
|
640
|
+
"y": 0,
|
|
641
|
+
"concern": "operational-readiness",
|
|
642
|
+
"status": "accepted",
|
|
643
|
+
"date": "",
|
|
644
|
+
"context": "This element will run in production, and somebody will be paged for it. The forces: the team that has just built something is the worst judge of what it forgot; a review held after launch reviews nothing; a checklist that copies every number goes stale the day a neighbouring decision changes; a review that blocks every launch until it is perfect is soon skipped; a runbook not linked from the alert is not found at three in the morning, and one nobody has followed is a guess; a game day costs the rotation an afternoon each quarter, while automated experiments cost the platform work to run them safely; and an element whose owner is unknown is fixed by whoever happens to be nearest. The availability target is decided in the Availability pack; the alerts, their routing and the on-call rotation in the Observability pack; load tests in the Capacity and scaling pack; restore drills in the Backup and recovery pack; rollout and rollback in the Deployment and rollback pack; incident handling and postmortems in the Incident management pack; and who approves each change in the Definition of Done pack. The readiness review approves the element, not a change.",
|
|
645
|
+
"decision": "Before the element takes its first production traffic, after each major change (a new dependency or data store, a new region, a higher availability target, a new owning team) and at the latest {{PRR_MONTHS}} months after the last review, it passes a production readiness review. The owning team fills in the checklist docs/operations/prr-checklist.md with evidence for each item and opens a pull request adding the record docs/operations/prr/YYYY-MM-DD.md (result, reviewer, the dependencies reviewed, the gaps); an engineer of {{PRR_TEAM}} who is not in the owning team checks it and approves the pull request, which CODEOWNERS and the main-branch ruleset make required. Items not met are listed as gaps with a ticket and a due date at most {{GAP_DAYS}} days away. The production deployment job stops when no approved record younger than {{PRR_MONTHS}} months exists, and a check on every pull request fails when the architecture model shows a dependency the newest review did not list. The checklist links to the decisions and latest records of the Availability, Observability, Capacity and scaling, Backup and recovery, Deployment and rollback and Incident management packs, never copying their numbers. Runbooks: {{RUNBOOKS}}. Practice: {{PRACTICE}}. Owner and escalation contact: {{OWNERSHIP}}.",
|
|
646
|
+
"consequences": "• A second team sees the element before users do, and knows it before it is asked to help run it.\n• Launches wait for the reviewer: {{PRR_TEAM}} needs time for reviews, or the review becomes the queue every launch stands in.\n• Approving with dated gaps keeps launches moving only if the gaps are closed; the gap tickets are debt the owning team carries.\n• A review older than {{PRR_MONTHS}} months stops production deployments until it is renewed, which has to be planned, not discovered on release day.\n• The dependency check ties the review to the architecture model, so the model has to be kept current.",
|
|
647
|
+
"alternatives": "1. A self-assessment by the owning team: no queue, but nobody outside the team checks what it forgot.\n2. A launch meeting without a written checklist: depends on who attends, and leaves no record to compare reviews by.\n3. A full hand-over in which SRE takes the pager: the deepest review, but Google reserves it for the services that need it most, and most elements stay with the team that builds them (Google SRE book, chapter 32).",
|
|
648
|
+
"hubWhen": {
|
|
649
|
+
"PRR": [
|
|
650
|
+
"sre"
|
|
651
|
+
]
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"id": "adr-prr-self",
|
|
656
|
+
"type": "adr",
|
|
657
|
+
"label": "Readiness review as a self-assessment",
|
|
658
|
+
"x": 780,
|
|
659
|
+
"y": 130,
|
|
660
|
+
"concern": "operational-readiness",
|
|
661
|
+
"status": "accepted",
|
|
662
|
+
"date": "",
|
|
663
|
+
"context": "This element will run in production, and somebody will be paged for it. The forces: the team that has just built something is the worst judge of what it forgot; a review held after launch reviews nothing; a checklist that copies every number goes stale the day a neighbouring decision changes; a review that blocks every launch until it is perfect is soon skipped; a runbook not linked from the alert is not found at three in the morning, and one nobody has followed is a guess; a game day costs the rotation an afternoon each quarter, while automated experiments cost the platform work to run them safely; and an element whose owner is unknown is fixed by whoever happens to be nearest. The availability target is decided in the Availability pack; the alerts, their routing and the on-call rotation in the Observability pack; load tests in the Capacity and scaling pack; restore drills in the Backup and recovery pack; rollout and rollback in the Deployment and rollback pack; incident handling and postmortems in the Incident management pack; and who approves each change in the Definition of Done pack. The readiness review approves the element, not a change.",
|
|
664
|
+
"decision": "Before the element takes its first production traffic, after each major change (a new dependency or data store, a new region, a higher availability target, a new owning team) and at the latest {{PRR_MONTHS}} months after the last review, the owning team assesses it against the checklist docs/operations/prr-checklist.md, with evidence for each item, and its lead signs the record docs/operations/prr/YYYY-MM-DD.md (result, reviewer, the dependencies reviewed, the gaps) in a pull request reviewed like any other. Items not met are listed as gaps with a ticket and a due date at most {{GAP_DAYS}} days away. The production deployment job stops when no approved record younger than {{PRR_MONTHS}} months exists, and a check on every pull request fails when the architecture model shows a dependency the newest review did not list. The checklist is the one an SRE or platform team would use, and links to the decisions and latest records of the Availability, Observability, Capacity and scaling, Backup and recovery, Deployment and rollback and Incident management packs, never copying their numbers. Runbooks: {{RUNBOOKS}}. Practice: {{PRACTICE}}. Owner and escalation contact: {{OWNERSHIP}}.",
|
|
665
|
+
"consequences": "• No queue behind another team: the review happens when the owning team is ready.\n• Nobody outside the team checks the answers, so what the team does not know it does not know stays unseen; the evidence links are what keep it honest.\n• Approving with dated gaps keeps launches moving only if the gaps are closed.\n• A review older than {{PRR_MONTHS}} months stops production deployments until it is renewed.\n• Moving to an SRE sign-off later needs no new checklist, only a new code owner for the records.",
|
|
666
|
+
"alternatives": "1. A review signed off by SRE or the platform team: a second pair of eyes, at the cost of a queue.\n2. No review: nothing to fill in, and the gaps are found by the first incident.\n3. A one-off launch checklist in the ticket system: no record beside the code, and nothing to repeat after a major change.",
|
|
667
|
+
"hubWhen": {
|
|
668
|
+
"PRR": [
|
|
669
|
+
"self"
|
|
670
|
+
]
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"id": "adr-prr-none",
|
|
675
|
+
"type": "adr",
|
|
676
|
+
"label": "No readiness review for now",
|
|
677
|
+
"x": 780,
|
|
678
|
+
"y": 260,
|
|
679
|
+
"concern": "operational-readiness",
|
|
680
|
+
"status": "accepted",
|
|
681
|
+
"date": "",
|
|
682
|
+
"context": "This element will run in production, and somebody will be paged for it. The forces: the team that has just built something is the worst judge of what it forgot; a review held after launch reviews nothing; a checklist that copies every number goes stale the day a neighbouring decision changes; a review that blocks every launch until it is perfect is soon skipped; a runbook not linked from the alert is not found at three in the morning, and one nobody has followed is a guess; a game day costs the rotation an afternoon each quarter, while automated experiments cost the platform work to run them safely; and an element whose owner is unknown is fixed by whoever happens to be nearest. The availability target is decided in the Availability pack; the alerts, their routing and the on-call rotation in the Observability pack; load tests in the Capacity and scaling pack; restore drills in the Backup and recovery pack; rollout and rollback in the Deployment and rollback pack; incident handling and postmortems in the Incident management pack; and who approves each change in the Definition of Done pack. The readiness review approves the element, not a change. Here the element is a prototype or an internal tool that only the owning team uses.",
|
|
683
|
+
"decision": "The element runs in production without a readiness review. This holds while only the owning team uses it and its availability target is 99.0 % or less; the first user outside the team, or a higher target, supersedes this decision with a review against a checklist as the other answers of this pack describe. Runbooks: {{RUNBOOKS}}. Practice: {{PRACTICE}}. Owner and escalation contact: {{OWNERSHIP}}. These are kept even without a review, since they are what makes a later review short.",
|
|
684
|
+
"consequences": "• Nothing waits for a review, and nothing records what was never checked.\n• The first outage may also be the first time anyone asks who owns it and what to do; the runbooks and the ownership record are the only preparation.\n• The exemption ends by a decision, not by drift: the team's lead confirms each quarter that nobody else uses the element.",
|
|
685
|
+
"alternatives": "1. A self-assessment by the owning team: an afternoon with the checklist, and a record to start from.\n2. A review signed off by SRE or the platform team: more than a prototype needs.",
|
|
686
|
+
"hubWhen": {
|
|
687
|
+
"PRR": [
|
|
688
|
+
"none"
|
|
689
|
+
]
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"id": "adr-gamedays",
|
|
694
|
+
"type": "adr",
|
|
695
|
+
"label": "Game days on a written scenario",
|
|
696
|
+
"x": 780,
|
|
697
|
+
"y": 390,
|
|
698
|
+
"concern": "operational-readiness",
|
|
699
|
+
"status": "accepted",
|
|
700
|
+
"date": "",
|
|
701
|
+
"context": "This element will run in production, and somebody will be paged for it. The forces: the team that has just built something is the worst judge of what it forgot; a review held after launch reviews nothing; a checklist that copies every number goes stale the day a neighbouring decision changes; a review that blocks every launch until it is perfect is soon skipped; a runbook not linked from the alert is not found at three in the morning, and one nobody has followed is a guess; a game day costs the rotation an afternoon each quarter, while automated experiments cost the platform work to run them safely; and an element whose owner is unknown is fixed by whoever happens to be nearest. The availability target is decided in the Availability pack; the alerts, their routing and the on-call rotation in the Observability pack; load tests in the Capacity and scaling pack; restore drills in the Backup and recovery pack; rollout and rollback in the Deployment and rollback pack; incident handling and postmortems in the Incident management pack; and who approves each change in the Definition of Done pack. The readiness review approves the element, not a change.",
|
|
702
|
+
"decision": "The team holds a game day at least every {{GAMEDAY_DAYS}} days. A facilitator writes the scenario beforehand (the failure, a hypothesis about how the element and the people respond, the abort criteria), chosen from the failure modes the readiness review listed or from recent incidents, and injects it into staging, or into production once the team trusts its abort. At least two people from the rotation respond with the runbooks and the alerts as they are, while observers note where a runbook, an alert or a dashboard fell short. The record docs/gamedays/YYYY-MM-DD.md holds the scenario, the hypothesis, the participants, the outcome and a ticket for every finding, and a runbook found wrong is corrected within the week. The drills of the Availability, Backup and recovery and Deployment and rollback packs prove their own decisions; a game day may reuse their faults to exercise the people.",
|
|
703
|
+
"consequences": "• The people practise the response, not only the system: runbooks, hand-overs and communication are tried before a real incident.\n• It costs the rotation an afternoon each time, plus the facilitator's preparation.\n• Between game days, drift is caught only by the other packs' drills and by incidents.\n• A game day is worth its tickets: one whose findings are never fixed teaches the team that game days do not matter.",
|
|
704
|
+
"alternatives": "1. Automated chaos experiments: catch drift every week, but exercise the system rather than the people.\n2. Tabletop exercises only, talking a scenario through without injecting it: cheap, and nobody finds out that the dashboard link is dead.\n3. No practice: nothing to plan, and the runbooks are first followed at night.",
|
|
705
|
+
"hubWhen": {
|
|
706
|
+
"PRACTICE": [
|
|
707
|
+
"gameday"
|
|
708
|
+
]
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"id": "adr-chaos",
|
|
713
|
+
"type": "adr",
|
|
714
|
+
"label": "Automated chaos experiments in staging",
|
|
715
|
+
"x": 780,
|
|
716
|
+
"y": 520,
|
|
717
|
+
"concern": "operational-readiness",
|
|
718
|
+
"status": "accepted",
|
|
719
|
+
"date": "",
|
|
720
|
+
"context": "This element will run in production, and somebody will be paged for it. The forces: the team that has just built something is the worst judge of what it forgot; a review held after launch reviews nothing; a checklist that copies every number goes stale the day a neighbouring decision changes; a review that blocks every launch until it is perfect is soon skipped; a runbook not linked from the alert is not found at three in the morning, and one nobody has followed is a guess; a game day costs the rotation an afternoon each quarter, while automated experiments cost the platform work to run them safely; and an element whose owner is unknown is fixed by whoever happens to be nearest. The availability target is decided in the Availability pack; the alerts, their routing and the on-call rotation in the Observability pack; load tests in the Capacity and scaling pack; restore drills in the Backup and recovery pack; rollout and rollback in the Deployment and rollback pack; incident handling and postmortems in the Incident management pack; and who approves each change in the Definition of Done pack. The readiness review approves the element, not a change.",
|
|
721
|
+
"decision": "Fault experiments run against staging on a schedule, each completing a run at least every {{CHAOS_DAYS}} days: on AWS as AWS Fault Injection Service experiment templates tagged service=order-api, started by an EventBridge Scheduler schedule; on Kubernetes as Chaos Mesh Schedules, with a Chaos Mesh Workflow whose StatusCheck aborts it (abortWithStatusCheck) where a stop condition is needed, or LitmusChaos experiments with probes. Each experiment states a steady-state hypothesis on the service level indicator decided in the Observability pack, injects one failure mode the readiness review or an incident named (latency or errors from a dependency, a lost instance, CPU or memory pressure, a full disk), and stops on the alarm that measures the steady state. Staging carries generated traffic, so that the indicator moves. An experiment that stops on its condition, or fails, gets a ticket, and the experiment is fixed or the element is. Experiments start small, one instance or one dependency, and widen only after they pass. The experiments that prove redundancy for the availability target are the Availability pack's; these cover the other failure modes.",
|
|
722
|
+
"consequences": "• Drift is caught within {{CHAOS_DAYS}} days of the change that caused it, not at the next incident.\n• Needs a staging environment close enough to production for the hypothesis to mean something, and generated traffic in it.\n• Fault injection needs permissions of its own (an IAM role for Fault Injection Service, the Chaos Mesh controller in the cluster), which are an attack surface to guard.\n• The people are not exercised: a passing experiment says the system coped, not that whoever was paged would have.",
|
|
723
|
+
"alternatives": "1. Game days: exercise the people and the runbooks, but only a few times a year.\n2. Experiments in production: the only place with real traffic, but only after staging has passed them for months and with a stop condition proven to work (Principles of Chaos Engineering).\n3. No practice: nothing to build, and failure modes are first met by users.",
|
|
724
|
+
"hubWhen": {
|
|
725
|
+
"PRACTICE": [
|
|
726
|
+
"chaos"
|
|
727
|
+
]
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"id": "adr-no-practice",
|
|
732
|
+
"type": "adr",
|
|
733
|
+
"label": "No practice beyond the other packs' drills",
|
|
734
|
+
"x": 780,
|
|
735
|
+
"y": 650,
|
|
736
|
+
"concern": "operational-readiness",
|
|
737
|
+
"status": "accepted",
|
|
738
|
+
"date": "",
|
|
739
|
+
"context": "This element will run in production, and somebody will be paged for it. The forces: the team that has just built something is the worst judge of what it forgot; a review held after launch reviews nothing; a checklist that copies every number goes stale the day a neighbouring decision changes; a review that blocks every launch until it is perfect is soon skipped; a runbook not linked from the alert is not found at three in the morning, and one nobody has followed is a guess; a game day costs the rotation an afternoon each quarter, while automated experiments cost the platform work to run them safely; and an element whose owner is unknown is fixed by whoever happens to be nearest. The availability target is decided in the Availability pack; the alerts, their routing and the on-call rotation in the Observability pack; load tests in the Capacity and scaling pack; restore drills in the Backup and recovery pack; rollout and rollback in the Deployment and rollback pack; incident handling and postmortems in the Incident management pack; and who approves each change in the Definition of Done pack. The readiness review approves the element, not a change.",
|
|
740
|
+
"decision": "The team holds no game days and runs no chaos experiments for this element. It relies on the drills the Availability, Backup and recovery, Capacity and scaling and Deployment and rollback packs decide, and on real incidents; the runbooks are kept current only by their review every {{RUNBOOK_DAYS}} days and by use. The first incident in which a runbook or the response itself failed supersedes this decision.",
|
|
741
|
+
"consequences": "• No afternoons spent and no fault-injection tooling to run.\n• Runbooks are first followed under pressure, by whoever is paged; their review is the only check that they still fit.\n• Failure modes outside the other packs' drills are met first in production.",
|
|
742
|
+
"alternatives": "1. Game days on a written scenario: an afternoon a quarter to try the runbooks and the response.\n2. Automated chaos experiments in staging: drift caught weekly, at the cost of the tooling.",
|
|
743
|
+
"hubWhen": {
|
|
744
|
+
"PRACTICE": [
|
|
745
|
+
"none"
|
|
746
|
+
]
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"id": "ff-prr-gate",
|
|
751
|
+
"type": "fitness-fn",
|
|
752
|
+
"label": "Production deployment waits for an approved review",
|
|
753
|
+
"x": 1040,
|
|
754
|
+
"y": 0,
|
|
755
|
+
"characteristic": "reliability",
|
|
756
|
+
"scope": "holistic",
|
|
757
|
+
"cadence": "triggered",
|
|
758
|
+
"trigger": "deploy",
|
|
759
|
+
"invocation": "manual",
|
|
760
|
+
"description": "The production deployment job runs this script before its deploy step (needs: in GitHub Actions, a stage before deploy in GitLab CI), so the first production deployment waits for an approved review and a stale one stops the next. Each record is docs/operations/prr/YYYY-MM-DD.md with YAML front matter: result (approved or not-approved), reviewer, dependencies (labels of the elements it calls, as in the architecture model) and gaps (item, ticket, due).\n\nThreshold: The newest record under docs/operations/prr is approved, names a reviewer and is at most {{PRR_MONTHS}} months old, and every gap in it has a ticket and a due date within {{GAP_DAYS}} days of the review; otherwise the production deployment stops\n\nTool: Node.js script with js-yaml, run by the production deployment job\n\n```js\n// scripts/prr-gate.mjs: the production deploy job runs it before the deploy step (node scripts/prr-gate.mjs)\nimport { readdirSync, readFileSync } from 'node:fs'\nimport yaml from 'js-yaml'\n\nconst MAX_MONTHS = {{PRR_MONTHS}}\nconst GAP_DAYS = {{GAP_DAYS}}\nconst DIR = 'docs/operations/prr'\nconst fail = (message) => { console.error(`readiness review: ${message}`); process.exit(1) }\n\nconst records = readdirSync(DIR).filter((f) => /^\\d{4}-\\d{2}-\\d{2}\\.md$/.test(f)).sort()\nif (!records.length) fail(`no review under ${DIR}; the first production deployment waits for one`)\nconst file = records.at(-1)\nconst record = yaml.load(readFileSync(`${DIR}/${file}`, 'utf8').split(/^---$/m)[1] ?? '') ?? {}\nconst reviewed = Date.parse(file.slice(0, 10))\nconst months = (Date.now() - reviewed) / (30.44 * 86_400_000)\nif (record.result !== 'approved') fail(`${file} is not approved (result: ${record.result})`)\nif (!record.reviewer) fail(`${file} names no reviewer`)\nif (months > MAX_MONTHS) fail(`${file} is ${months.toFixed(1)} months old; review the element again`)\nfor (const gap of record.gaps ?? []) {\n const days = (new Date(gap.due).getTime() - reviewed) / 86_400_000\n if (!gap.ticket || !(days <= GAP_DAYS)) fail(`gap \"${gap.item}\" needs a ticket and a due date within ${GAP_DAYS} days of the review`)\n}\nconsole.log(`readiness review ${file}: approved by ${record.reviewer}`)\n```",
|
|
761
|
+
"hubWhen": {
|
|
762
|
+
"PRR": [
|
|
763
|
+
"sre",
|
|
764
|
+
"self"
|
|
765
|
+
]
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"id": "ff-prr-signoff",
|
|
770
|
+
"type": "fitness-fn",
|
|
771
|
+
"label": "Review records need the signing team",
|
|
772
|
+
"x": 1040,
|
|
773
|
+
"y": 130,
|
|
774
|
+
"characteristic": "reliability",
|
|
775
|
+
"scope": "atomic",
|
|
776
|
+
"cadence": "triggered",
|
|
777
|
+
"trigger": "pull-request",
|
|
778
|
+
"invocation": "automated",
|
|
779
|
+
"description": "A pull request adding a review record can only merge with an approval from a code owner of the records, and GitHub does not let authors approve their own pull requests, so the approval of a {{PRR_TEAM}} member is the signature. The step checks both halves on every change to CODEOWNERS and nightly, since the ruleset can be changed in the settings. In CODEOWNERS the last matching pattern wins, so the line must come last.\n\nThreshold: The last line of .github/CODEOWNERS gives /docs/operations/prr/ to {{PRR_TEAM}}, and the rules of the main branch include a pull_request rule with require_code_owner_review true\n\nTool: GitHub CODEOWNERS and repository rulesets, checked with grep and gh api (GET /repos/{owner}/{repo}/rules/branches/{branch})\n\n```bash\nset -euo pipefail\n# .github/CODEOWNERS ends with the line: /docs/operations/prr/ {{PRR_TEAM}}\ngrep -Eq '^/docs/operations/prr/[[:space:]]+{{PRR_TEAM}}([[:space:]]|$)' .github/CODEOWNERS \\\n || { echo \"CODEOWNERS does not give /docs/operations/prr/ to {{PRR_TEAM}}\"; exit 1; }\ntail -n 1 .github/CODEOWNERS | grep -q '^/docs/operations/prr/' \\\n || { echo \"the /docs/operations/prr/ line must be the last of CODEOWNERS (the last match wins)\"; exit 1; }\n# the main branch requires a code owner's review, so their approval is the signature\ngh api 'repos/{owner}/{repo}/rules/branches/main' \\\n --jq '[.[] | select(.type == \"pull_request\") | .parameters.require_code_owner_review] | any' \\\n | grep -qx true || { echo \"main does not require a code owner's review\"; exit 1; }\n```",
|
|
780
|
+
"hubWhen": {
|
|
781
|
+
"PRR": [
|
|
782
|
+
"sre"
|
|
783
|
+
]
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"id": "ff-prr-checklist",
|
|
788
|
+
"type": "fitness-fn",
|
|
789
|
+
"label": "Checklist complete and linked",
|
|
790
|
+
"x": 1040,
|
|
791
|
+
"y": 260,
|
|
792
|
+
"characteristic": "reliability",
|
|
793
|
+
"scope": "atomic",
|
|
794
|
+
"cadence": "triggered",
|
|
795
|
+
"trigger": "pull-request",
|
|
796
|
+
"invocation": "automated",
|
|
797
|
+
"description": "A CI step on every change to the checklist checks that its ten sections are there and that each links to the decision or the latest record it rests on (the availability objective, the alert rules, the last load test, the last restore and rollback drills, the incident process), so the checklist points to the neighbouring packs' records instead of copying their numbers.\n\nThreshold: docs/operations/prr-checklist.md has the 10 sections, and every second-level section holds at least one Markdown link\n\nTool: grep and awk in a CI step\n\n```bash\nset -euo pipefail\nfile=docs/operations/prr-checklist.md\nstatus=0\nfor section in 'Ownership' 'Availability objective' 'Alerts and on-call' 'Runbooks' 'Capacity and load test' \\\n 'Backup and restore' 'Rollout and rollback' 'Incident response' 'Dependencies and failure modes' 'Practice'; do\n grep -qx \"## ${section}\" \"$file\" || { echo \"missing section: ## ${section}\"; status=1; }\ndone\n# every section links to the decision or record it rests on instead of copying its numbers\nunlinked=$(awk '/^## /{ if (s && !l) print s; s = $0; l = 0; next } /\\]\\(/{ l = 1 } END { if (s && !l) print s }' \"$file\")\n[ -z \"$unlinked\" ] || { echo \"sections without a link:\"; echo \"$unlinked\"; status=1; }\nexit $status\n```",
|
|
798
|
+
"hubWhen": {
|
|
799
|
+
"PRR": [
|
|
800
|
+
"sre",
|
|
801
|
+
"self"
|
|
802
|
+
]
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"id": "ff-prr-dependencies",
|
|
807
|
+
"type": "fitness-fn",
|
|
808
|
+
"label": "Review covers every dependency in the model",
|
|
809
|
+
"x": 1040,
|
|
810
|
+
"y": 390,
|
|
811
|
+
"characteristic": "reliability",
|
|
812
|
+
"scope": "atomic",
|
|
813
|
+
"cadence": "triggered",
|
|
814
|
+
"trigger": "pull-request",
|
|
815
|
+
"invocation": "automated",
|
|
816
|
+
"description": "On every pull request that changes architecture/ or the review records, a script reads the architecture model (the front matter of each element under architecture/nodes and architecture/relations.json), lists the elements the element calls, and fails when the newest review does not list one of them: a new dependency in the model asks for a new review in the same pull request. A new region, a higher target or a new owner is not visible this way; the decision names them, and the age limit of the gate catches what is missed.\n\nThreshold: 0 elements the model shows the element calling (interacts relations from it) that the newest review record does not list under dependencies\n\nTool: Node.js script with js-yaml over the Radical Markdown folder\n\n```js\n// scripts/prr-dependencies.mjs: on every pull request that changes architecture/ or docs/operations/prr/\nimport { readdirSync, readFileSync } from 'node:fs'\nimport { join } from 'node:path'\nimport yaml from 'js-yaml'\n\nconst ELEMENT = 'Order API' // the element's label in the architecture model\nconst front = (file) => yaml.load(readFileSync(file, 'utf8').split(/^---$/m)[1] ?? '') ?? {}\nconst walk = (dir) => readdirSync(dir, { withFileTypes: true }).flatMap((e) =>\n e.isDirectory() ? walk(join(dir, e.name)) : e.name.endsWith('.md') ? [join(dir, e.name)] : [])\nconst nodes = Object.fromEntries(walk('architecture/nodes').map(front).filter((n) => n.id).map((n) => [n.id, n]))\nconst element = Object.values(nodes).find((n) => n.label === ELEMENT)\nif (!element) throw new Error(`no element labelled ${ELEMENT} in architecture/nodes`)\nconst calls = JSON.parse(readFileSync('architecture/relations.json', 'utf8'))\n .filter((r) => r.relationType === 'interacts' && r.sourceId === element.id && nodes[r.targetId])\n .map((r) => nodes[r.targetId].label)\nconst reviews = readdirSync('docs/operations/prr').filter((f) => /^\\d{4}-\\d{2}-\\d{2}\\.md$/.test(f)).sort()\nconst reviewed = new Set(reviews.length ? front(`docs/operations/prr/${reviews.at(-1)}`).dependencies ?? [] : [])\nconst unreviewed = [...new Set(calls)].filter((label) => !reviewed.has(label))\nif (unreviewed.length) {\n console.error(`dependencies not in the last readiness review: ${unreviewed.join(', ')}; review the element again`)\n process.exit(1)\n}\n```",
|
|
817
|
+
"hubWhen": {
|
|
818
|
+
"PRR": [
|
|
819
|
+
"sre",
|
|
820
|
+
"self"
|
|
821
|
+
]
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"id": "ff-runbook-links",
|
|
826
|
+
"type": "fitness-fn",
|
|
827
|
+
"label": "Every alert links a runbook that resolves",
|
|
828
|
+
"x": 1040,
|
|
829
|
+
"y": 520,
|
|
830
|
+
"characteristic": "reliability",
|
|
831
|
+
"scope": "atomic",
|
|
832
|
+
"cadence": "triggered",
|
|
833
|
+
"trigger": "pull-request",
|
|
834
|
+
"invocation": "automated",
|
|
835
|
+
"description": "A CI step on every change to the rules or the runbooks reads every Prometheus rule file (groups at the top) and PrometheusRule manifest (groups under spec), and resolves each alert's runbook_url annotation to a file in the repository and, when it has an anchor, to a heading in that file (GitHub's heading anchors: lower case, punctuation dropped, spaces as dashes). Alerts of the same name at two severities may share a runbook. Alert rules that Sloth generates take the annotation from the SLO's alerting annotations. promtool check rules still validates the files themselves; runbook_url is an annotation by convention, which Prometheus passes on but does not check.\n\nThreshold: 0 alerting rules under monitoring/rules without a runbook_url, with one outside docs/runbooks or to a missing file or heading, or with one another alert uses\n\nTool: Node.js script with js-yaml, beside promtool check rules\n\n```js\n// scripts/runbook-links.mjs: in CI on every change to monitoring/rules or docs/runbooks\nimport { existsSync, readdirSync, readFileSync } from 'node:fs'\nimport yaml from 'js-yaml'\n\nconst BASE = 'https://github.com/shop/order-api/blob/main/' // where the repository's files are browsed\nconst slug = (h) => h.trim().toLowerCase().replace(/[^\\p{L}\\p{N}\\s_-]/gu, '').replace(/\\s/g, '-')\nconst problems = []\nconst seen = new Map()\nfor (const file of readdirSync('monitoring/rules').filter((f) => /\\.ya?ml$/.test(f))) {\n for (const doc of yaml.loadAll(readFileSync(`monitoring/rules/${file}`, 'utf8'))) {\n // a Prometheus rule file has groups at the top, a PrometheusRule manifest under spec\n for (const rule of (doc?.groups ?? doc?.spec?.groups ?? []).flatMap((g) => g.rules ?? []).filter((r) => r.alert)) {\n const url = rule.annotations?.runbook_url ?? ''\n const [path, anchor] = url.startsWith(BASE) ? url.slice(BASE.length).split('#') : []\n if (!path?.startsWith('docs/runbooks/') || !existsSync(path)) { problems.push(`${rule.alert}: runbook_url \"${url}\" is no runbook in docs/runbooks`); continue }\n const headings = readFileSync(path, 'utf8').split('\\n').filter((l) => /^#{1,6} /.test(l)).map((l) => slug(l.replace(/^#+ /, '')))\n if (anchor && !headings.includes(anchor)) problems.push(`${rule.alert}: no heading #${anchor} in ${path}`)\n if (seen.has(url) && seen.get(url) !== rule.alert) problems.push(`${rule.alert} shares its runbook with ${seen.get(url)}`)\n seen.set(url, rule.alert)\n }\n }\n}\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"id": "ff-runbook-review",
|
|
839
|
+
"type": "fitness-fn",
|
|
840
|
+
"label": "Runbooks reviewed on time",
|
|
841
|
+
"x": 1040,
|
|
842
|
+
"y": 650,
|
|
843
|
+
"characteristic": "reliability",
|
|
844
|
+
"scope": "atomic",
|
|
845
|
+
"cadence": "temporal",
|
|
846
|
+
"every": "{{RUNBOOK_DAYS}}d",
|
|
847
|
+
"invocation": "manual",
|
|
848
|
+
"description": "A daily scheduled job reads the last_reviewed date from each runbook's front matter and checks that it has headings for diagnosis, mitigation and escalation; a failure notifies the owning team. Reviewing a runbook after an incident means updating the date in the same pull request as the correction.\n\nThreshold: 0 runbooks under docs/runbooks whose last_reviewed is missing or older than {{RUNBOOK_DAYS}} days, and 0 without a diagnosis, a mitigation and an escalation heading\n\nTool: Node.js script with js-yaml in a scheduled CI job\n\n```js\n// scripts/runbook-review.mjs: a daily scheduled job; every runbook starts with front matter holding last_reviewed: YYYY-MM-DD\nimport { readdirSync, readFileSync } from 'node:fs'\nimport yaml from 'js-yaml'\n\nconst MAX_DAYS = {{RUNBOOK_DAYS}}\nconst problems = []\nfor (const file of readdirSync('docs/runbooks').filter((f) => f.endsWith('.md'))) {\n const text = readFileSync(`docs/runbooks/${file}`, 'utf8')\n const reviewed = new Date(yaml.load(text.split(/^---$/m)[1] ?? '')?.last_reviewed ?? NaN)\n const days = (Date.now() - reviewed.getTime()) / 86_400_000\n if (!(days <= MAX_DAYS)) problems.push(`${file}: last reviewed ${isNaN(days) ? 'never' : `${Math.floor(days)} days ago`}`)\n for (const [stem, name] of [['Diagnos', 'diagnosis'], ['Mitigat', 'mitigation'], ['Escalat', 'escalation']]) {\n if (!new RegExp(`^#+ .*${stem}`, 'mi').test(text)) problems.push(`${file}: no ${name} heading`)\n }\n}\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"id": "ff-gameday",
|
|
852
|
+
"type": "fitness-fn",
|
|
853
|
+
"label": "Game days on record",
|
|
854
|
+
"x": 1040,
|
|
855
|
+
"y": 780,
|
|
856
|
+
"characteristic": "reliability",
|
|
857
|
+
"scope": "holistic",
|
|
858
|
+
"cadence": "temporal",
|
|
859
|
+
"every": "{{GAMEDAY_DAYS}}d",
|
|
860
|
+
"invocation": "manual",
|
|
861
|
+
"description": "Each game day is recorded as docs/gamedays/YYYY-MM-DD.md with YAML front matter: scenario, hypothesis, participants, outcome and findings (text, ticket). A daily scheduled job fails, and notifies the owning team, when the newest record is too old or a record is incomplete.\n\nThreshold: The newest record under docs/gamedays is at most {{GAMEDAY_DAYS}} days old; every record has a scenario, a hypothesis, an outcome and at least 2 participants, and every finding a ticket\n\nTool: Node.js script with js-yaml in a scheduled CI job\n\n```js\n// scripts/gameday-overdue.mjs: a daily scheduled job over the records docs/gamedays/YYYY-MM-DD.md\nimport { readdirSync, readFileSync } from 'node:fs'\nimport yaml from 'js-yaml'\n\nconst MAX_DAYS = {{GAMEDAY_DAYS}}\nconst records = readdirSync('docs/gamedays').filter((f) => /^\\d{4}-\\d{2}-\\d{2}\\.md$/.test(f)).sort()\nconst latest = records.at(-1)\nconst age = latest ? (Date.now() - Date.parse(latest.slice(0, 10))) / 86_400_000 : Infinity\nconst problems = age > MAX_DAYS ? [`the last game day was ${latest?.slice(0, 10) ?? 'never'}, more than ${MAX_DAYS} days ago`] : []\nfor (const file of records) {\n const r = yaml.load(readFileSync(`docs/gamedays/${file}`, 'utf8').split(/^---$/m)[1] ?? '') ?? {}\n for (const key of ['scenario', 'hypothesis', 'outcome']) if (!r[key]) problems.push(`${file}: no ${key}`)\n if ((r.participants ?? []).length < 2) problems.push(`${file}: fewer than 2 participants`)\n for (const finding of r.findings ?? []) if (!finding.ticket) problems.push(`${file}: finding \"${finding.text}\" has no ticket`)\n}\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```",
|
|
862
|
+
"hubWhen": {
|
|
863
|
+
"PRACTICE": [
|
|
864
|
+
"gameday"
|
|
865
|
+
]
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"id": "ff-chaos-guarded",
|
|
870
|
+
"type": "fitness-fn",
|
|
871
|
+
"label": "Every experiment has a stop condition",
|
|
872
|
+
"x": 1040,
|
|
873
|
+
"y": 910,
|
|
874
|
+
"characteristic": "reliability",
|
|
875
|
+
"scope": "atomic",
|
|
876
|
+
"cadence": "triggered",
|
|
877
|
+
"trigger": "nightly",
|
|
878
|
+
"invocation": "automated",
|
|
879
|
+
"description": "A nightly job lists the experiment templates tagged for the element and reads each one's stop conditions; a template without a CloudWatch alarm stop condition (source none) fails it. The alarm is the one on the steady state: the service level indicator the hypothesis names. On Kubernetes with Chaos Mesh, the same check reads each Workflow for a StatusCheck node with abortWithStatusCheck set (kubectl get workflows.chaos-mesh.org -o json).\n\nThreshold: At least 1 Fault Injection Service experiment template tagged service=order-api, and 0 such templates without a stop condition whose source is aws:cloudwatch:alarm\n\nTool: AWS CLI (aws fis list-experiment-templates, aws fis get-experiment-template) with jq\n\n```bash\nset -euo pipefail\n# every FIS experiment template of the element stops on a CloudWatch alarm\nids=$(aws fis list-experiment-templates --output json \\\n | jq -r '.experimentTemplates[] | select(.tags.service == \"order-api\") | .id')\n[ -n \"$ids\" ] || { echo \"no experiment template tagged service=order-api\"; exit 1; }\nstatus=0\nfor id in $ids; do\n aws fis get-experiment-template --id \"$id\" --output json \\\n | jq -e '[.experimentTemplate.stopConditions[]? | select(.source == \"aws:cloudwatch:alarm\")] | length > 0' >/dev/null \\\n || { echo \"template $id has no stop condition on a CloudWatch alarm\"; status=1; }\ndone\nexit $status\n```",
|
|
880
|
+
"hubWhen": {
|
|
881
|
+
"PRACTICE": [
|
|
882
|
+
"chaos"
|
|
883
|
+
]
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"id": "ff-chaos-recent",
|
|
888
|
+
"type": "fitness-fn",
|
|
889
|
+
"label": "Every experiment completed a run recently",
|
|
890
|
+
"x": 1040,
|
|
891
|
+
"y": 1040,
|
|
892
|
+
"characteristic": "reliability",
|
|
893
|
+
"scope": "atomic",
|
|
894
|
+
"cadence": "triggered",
|
|
895
|
+
"trigger": "nightly",
|
|
896
|
+
"invocation": "automated",
|
|
897
|
+
"description": "A daily job lists the runs of each experiment template of the element and fails when the newest completed one is too old: the schedule stopped, the experiment failed, or it stopped on its condition and nobody fixed the cause. Runs that stopped or failed do not count. On Kubernetes with Chaos Mesh, the Schedule's status.time holds the time of its last scheduled run (kubectl get schedules.chaos-mesh.org -o json).\n\nThreshold: Every Fault Injection Service experiment template tagged service=order-api has a run in state completed created within the last {{CHAOS_DAYS}} days\n\nTool: AWS CLI (aws fis list-experiments --experiment-template-id) with jq\n\n```bash\nset -euo pipefail\nmax_days={{CHAOS_DAYS}}\ncutoff=$(( $(date +%s) - max_days * 86400 ))\nstatus=0\nfor id in $(aws fis list-experiment-templates --output json \\\n | jq -r '.experimentTemplates[] | select(.tags.service == \"order-api\") | .id'); do\n # creationTime is epoch seconds (AWS CLI v1) or ISO 8601 (v2); only completed runs count\n last=$(aws fis list-experiments --experiment-template-id \"$id\" --output json | jq '\n [.experiments[] | select(.state.status == \"completed\") | .creationTime\n | if type == \"number\" then floor else .[0:19] + \"Z\" | fromdateiso8601 end] | max // 0')\n [ \"$last\" -ge \"$cutoff\" ] || { echo \"template $id has no completed experiment in the last $max_days days\"; status=1; }\ndone\nexit $status\n```",
|
|
898
|
+
"hubWhen": {
|
|
899
|
+
"PRACTICE": [
|
|
900
|
+
"chaos"
|
|
901
|
+
]
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"id": "ff-catalog-owner",
|
|
906
|
+
"type": "fitness-fn",
|
|
907
|
+
"label": "Catalogue entry names a real owner and escalation",
|
|
908
|
+
"x": 1040,
|
|
909
|
+
"y": 1170,
|
|
910
|
+
"characteristic": "reliability",
|
|
911
|
+
"scope": "atomic",
|
|
912
|
+
"cadence": "triggered",
|
|
913
|
+
"trigger": "pull-request",
|
|
914
|
+
"invocation": "automated",
|
|
915
|
+
"description": "A CI step on every change to catalog-info.yaml, and nightly, parses the file and asks the Backstage catalogue API (GET /api/catalog/entities/by-name/group/<namespace>/<name>) for the owning group, so an owner renamed or dissolved in the catalogue is caught too. The pagerduty.com/service-id annotation is the PagerDuty plugin's; with another paging tool, use its plugin's annotation instead.\n\nThreshold: catalog-info.yaml is a Component with spec.lifecycle experimental, production or deprecated and a pagerduty.com/service-id annotation, and its spec.owner is a group the catalogue returns with at least 1 hasMember relation\n\nTool: Node.js script with js-yaml and the Backstage catalogue API\n\n```js\n// scripts/catalog-owner.mjs: in CI on every change to catalog-info.yaml, and nightly; BACKSTAGE_URL and BACKSTAGE_TOKEN from the pipeline's secrets\nimport { readFileSync } from 'node:fs'\nimport yaml from 'js-yaml'\n\nconst entity = yaml.load(readFileSync('catalog-info.yaml', 'utf8')) ?? {}\nconst { owner, lifecycle } = entity.spec ?? {}\nconst problems = []\nif (entity.kind !== 'Component') problems.push('catalog-info.yaml does not describe a Component')\nif (!['experimental', 'production', 'deprecated'].includes(lifecycle)) problems.push(`spec.lifecycle \"${lifecycle}\" is not experimental, production or deprecated`)\nif (!entity.metadata?.annotations?.['pagerduty.com/service-id']) problems.push('no pagerduty.com/service-id annotation: nobody to escalate to')\nconst [, namespace = 'default', name] = String(owner ?? '').match(/^(?:group:)?(?:([^/:]+)\\/)?([^/:]+)$/) ?? []\nconst res = name && await fetch(`${process.env.BACKSTAGE_URL}/api/catalog/entities/by-name/group/${namespace}/${name}`,\n { headers: { Authorization: `Bearer ${process.env.BACKSTAGE_TOKEN}` } })\nconst group = res?.ok ? await res.json() : undefined\nif (!group) problems.push(`spec.owner \"${owner}\" is no group in the catalogue`)\nelse if (!(group.relations ?? []).some((r) => r.type === 'hasMember')) problems.push(`group ${name} has no members`)\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```",
|
|
916
|
+
"hubWhen": {
|
|
917
|
+
"OWNERSHIP": [
|
|
918
|
+
"catalog"
|
|
919
|
+
]
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"id": "ff-readme-owner",
|
|
924
|
+
"type": "fitness-fn",
|
|
925
|
+
"label": "README names a real owner and escalation",
|
|
926
|
+
"x": 1040,
|
|
927
|
+
"y": 1300,
|
|
928
|
+
"characteristic": "reliability",
|
|
929
|
+
"scope": "atomic",
|
|
930
|
+
"cadence": "triggered",
|
|
931
|
+
"trigger": "pull-request",
|
|
932
|
+
"invocation": "automated",
|
|
933
|
+
"description": "A CI step on every change to README.md, and nightly, reads the Ownership section and asks GitHub for the members of the team it names (GET /orgs/{org}/teams/{team_slug}/members); the job needs a token that may read the organisation's teams (read:org), which the default GITHUB_TOKEN may not.\n\nThreshold: README.md has an Ownership section with Team, Channel and Escalation lines, and the GitHub team named has at least 1 member\n\nTool: awk, sed and gh api in a CI step\n\n```bash\nset -euo pipefail\n# README.md holds, for example:\n# ## Ownership\n# - Team: @shop/orders\n# - Channel: https://shop.slack.com/archives/C0123ORDERS\n# - Escalation: https://shop.pagerduty.com/schedules/P123ABC\nsection=$(awk '/^## Ownership$/{ on = 1; next } /^## /{ on = 0 } on' README.md)\nfor field in Team Channel Escalation; do\n printf '%s\\n' \"$section\" | grep -Eq \"^- ${field}: [^ ]+\" || { echo \"README.md, Ownership: no ${field} line\"; exit 1; }\ndone\nteam=$(printf '%s\\n' \"$section\" | sed -nE 's#^- Team: @([^/ ]+/[^ ]+).*#\\1#p')\nmembers=$(gh api \"orgs/${team%%/*}/teams/${team#*/}/members\" --jq 'length')\n[ \"$members\" -gt 0 ] || { echo \"team @${team} has no members\"; exit 1; }\n```",
|
|
934
|
+
"hubWhen": {
|
|
935
|
+
"OWNERSHIP": [
|
|
936
|
+
"readme"
|
|
937
|
+
]
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
],
|
|
941
|
+
"relations": [
|
|
942
|
+
{
|
|
943
|
+
"id": "req-prr-gate--derives--need",
|
|
944
|
+
"sourceId": "req-prr-gate",
|
|
945
|
+
"targetId": "need",
|
|
946
|
+
"relationType": "derives"
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"id": "req-prr-gaps--derives--need",
|
|
950
|
+
"sourceId": "req-prr-gaps",
|
|
951
|
+
"targetId": "need",
|
|
952
|
+
"relationType": "derives"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"id": "req-prr-signoff--derives--need",
|
|
956
|
+
"sourceId": "req-prr-signoff",
|
|
957
|
+
"targetId": "need",
|
|
958
|
+
"relationType": "derives"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"id": "req-prr-checklist--derives--need",
|
|
962
|
+
"sourceId": "req-prr-checklist",
|
|
963
|
+
"targetId": "need",
|
|
964
|
+
"relationType": "derives"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"id": "req-prr-major--derives--need",
|
|
968
|
+
"sourceId": "req-prr-major",
|
|
969
|
+
"targetId": "need",
|
|
970
|
+
"relationType": "derives"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"id": "req-prr-none--derives--need",
|
|
974
|
+
"sourceId": "req-prr-none",
|
|
975
|
+
"targetId": "need",
|
|
976
|
+
"relationType": "derives"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"id": "req-runbook-alert--derives--need",
|
|
980
|
+
"sourceId": "req-runbook-alert",
|
|
981
|
+
"targetId": "need",
|
|
982
|
+
"relationType": "derives"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"id": "req-runbook-element--derives--need",
|
|
986
|
+
"sourceId": "req-runbook-element",
|
|
987
|
+
"targetId": "need",
|
|
988
|
+
"relationType": "derives"
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"id": "req-runbook-review--derives--need",
|
|
992
|
+
"sourceId": "req-runbook-review",
|
|
993
|
+
"targetId": "need",
|
|
994
|
+
"relationType": "derives"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"id": "req-gameday--derives--need",
|
|
998
|
+
"sourceId": "req-gameday",
|
|
999
|
+
"targetId": "need",
|
|
1000
|
+
"relationType": "derives"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"id": "req-chaos--derives--need",
|
|
1004
|
+
"sourceId": "req-chaos",
|
|
1005
|
+
"targetId": "need",
|
|
1006
|
+
"relationType": "derives"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"id": "req-chaos-abort--derives--need",
|
|
1010
|
+
"sourceId": "req-chaos-abort",
|
|
1011
|
+
"targetId": "need",
|
|
1012
|
+
"relationType": "derives"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"id": "req-owner-catalog--derives--need",
|
|
1016
|
+
"sourceId": "req-owner-catalog",
|
|
1017
|
+
"targetId": "need",
|
|
1018
|
+
"relationType": "derives"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"id": "req-owner-readme--derives--need",
|
|
1022
|
+
"sourceId": "req-owner-readme",
|
|
1023
|
+
"targetId": "need",
|
|
1024
|
+
"relationType": "derives"
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"id": "sc-prr-gate--verifies--req-prr-gate",
|
|
1028
|
+
"sourceId": "sc-prr-gate",
|
|
1029
|
+
"targetId": "req-prr-gate",
|
|
1030
|
+
"relationType": "verifies"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"id": "sc-prr-gaps--verifies--req-prr-gaps",
|
|
1034
|
+
"sourceId": "sc-prr-gaps",
|
|
1035
|
+
"targetId": "req-prr-gaps",
|
|
1036
|
+
"relationType": "verifies"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"id": "sc-prr-signoff--verifies--req-prr-signoff",
|
|
1040
|
+
"sourceId": "sc-prr-signoff",
|
|
1041
|
+
"targetId": "req-prr-signoff",
|
|
1042
|
+
"relationType": "verifies"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"id": "sc-prr-checklist--verifies--req-prr-checklist",
|
|
1046
|
+
"sourceId": "sc-prr-checklist",
|
|
1047
|
+
"targetId": "req-prr-checklist",
|
|
1048
|
+
"relationType": "verifies"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"id": "sc-prr-major--verifies--req-prr-major",
|
|
1052
|
+
"sourceId": "sc-prr-major",
|
|
1053
|
+
"targetId": "req-prr-major",
|
|
1054
|
+
"relationType": "verifies"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"id": "sc-prr-none--verifies--req-prr-none",
|
|
1058
|
+
"sourceId": "sc-prr-none",
|
|
1059
|
+
"targetId": "req-prr-none",
|
|
1060
|
+
"relationType": "verifies"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"id": "sc-runbook-alert--verifies--req-runbook-alert",
|
|
1064
|
+
"sourceId": "sc-runbook-alert",
|
|
1065
|
+
"targetId": "req-runbook-alert",
|
|
1066
|
+
"relationType": "verifies"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"id": "sc-runbook-element--verifies--req-runbook-element",
|
|
1070
|
+
"sourceId": "sc-runbook-element",
|
|
1071
|
+
"targetId": "req-runbook-element",
|
|
1072
|
+
"relationType": "verifies"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"id": "sc-runbook-review--verifies--req-runbook-review",
|
|
1076
|
+
"sourceId": "sc-runbook-review",
|
|
1077
|
+
"targetId": "req-runbook-review",
|
|
1078
|
+
"relationType": "verifies"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"id": "sc-gameday--verifies--req-gameday",
|
|
1082
|
+
"sourceId": "sc-gameday",
|
|
1083
|
+
"targetId": "req-gameday",
|
|
1084
|
+
"relationType": "verifies"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"id": "sc-chaos--verifies--req-chaos",
|
|
1088
|
+
"sourceId": "sc-chaos",
|
|
1089
|
+
"targetId": "req-chaos",
|
|
1090
|
+
"relationType": "verifies"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"id": "sc-chaos-abort--verifies--req-chaos-abort",
|
|
1094
|
+
"sourceId": "sc-chaos-abort",
|
|
1095
|
+
"targetId": "req-chaos-abort",
|
|
1096
|
+
"relationType": "verifies"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"id": "sc-owner-catalog--verifies--req-owner-catalog",
|
|
1100
|
+
"sourceId": "sc-owner-catalog",
|
|
1101
|
+
"targetId": "req-owner-catalog",
|
|
1102
|
+
"relationType": "verifies"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"id": "sc-owner-readme--verifies--req-owner-readme",
|
|
1106
|
+
"sourceId": "sc-owner-readme",
|
|
1107
|
+
"targetId": "req-owner-readme",
|
|
1108
|
+
"relationType": "verifies"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"id": "ff-prr-gate--implements--adr-prr-sre",
|
|
1112
|
+
"sourceId": "ff-prr-gate",
|
|
1113
|
+
"targetId": "adr-prr-sre",
|
|
1114
|
+
"relationType": "implements"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"id": "ff-prr-gate--implements--adr-prr-self",
|
|
1118
|
+
"sourceId": "ff-prr-gate",
|
|
1119
|
+
"targetId": "adr-prr-self",
|
|
1120
|
+
"relationType": "implements"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"id": "ff-prr-signoff--implements--adr-prr-sre",
|
|
1124
|
+
"sourceId": "ff-prr-signoff",
|
|
1125
|
+
"targetId": "adr-prr-sre",
|
|
1126
|
+
"relationType": "implements"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"id": "ff-prr-checklist--implements--adr-prr-sre",
|
|
1130
|
+
"sourceId": "ff-prr-checklist",
|
|
1131
|
+
"targetId": "adr-prr-sre",
|
|
1132
|
+
"relationType": "implements"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"id": "ff-prr-checklist--implements--adr-prr-self",
|
|
1136
|
+
"sourceId": "ff-prr-checklist",
|
|
1137
|
+
"targetId": "adr-prr-self",
|
|
1138
|
+
"relationType": "implements"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"id": "ff-prr-dependencies--implements--adr-prr-sre",
|
|
1142
|
+
"sourceId": "ff-prr-dependencies",
|
|
1143
|
+
"targetId": "adr-prr-sre",
|
|
1144
|
+
"relationType": "implements"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"id": "ff-prr-dependencies--implements--adr-prr-self",
|
|
1148
|
+
"sourceId": "ff-prr-dependencies",
|
|
1149
|
+
"targetId": "adr-prr-self",
|
|
1150
|
+
"relationType": "implements"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"id": "ff-runbook-links--implements--adr-prr-sre",
|
|
1154
|
+
"sourceId": "ff-runbook-links",
|
|
1155
|
+
"targetId": "adr-prr-sre",
|
|
1156
|
+
"relationType": "implements"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"id": "ff-runbook-links--implements--adr-prr-self",
|
|
1160
|
+
"sourceId": "ff-runbook-links",
|
|
1161
|
+
"targetId": "adr-prr-self",
|
|
1162
|
+
"relationType": "implements"
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
"id": "ff-runbook-links--implements--adr-prr-none",
|
|
1166
|
+
"sourceId": "ff-runbook-links",
|
|
1167
|
+
"targetId": "adr-prr-none",
|
|
1168
|
+
"relationType": "implements"
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"id": "ff-runbook-review--implements--adr-prr-sre",
|
|
1172
|
+
"sourceId": "ff-runbook-review",
|
|
1173
|
+
"targetId": "adr-prr-sre",
|
|
1174
|
+
"relationType": "implements"
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
"id": "ff-runbook-review--implements--adr-prr-self",
|
|
1178
|
+
"sourceId": "ff-runbook-review",
|
|
1179
|
+
"targetId": "adr-prr-self",
|
|
1180
|
+
"relationType": "implements"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"id": "ff-runbook-review--implements--adr-prr-none",
|
|
1184
|
+
"sourceId": "ff-runbook-review",
|
|
1185
|
+
"targetId": "adr-prr-none",
|
|
1186
|
+
"relationType": "implements"
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"id": "ff-runbook-review--implements--adr-no-practice",
|
|
1190
|
+
"sourceId": "ff-runbook-review",
|
|
1191
|
+
"targetId": "adr-no-practice",
|
|
1192
|
+
"relationType": "implements"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"id": "ff-gameday--implements--adr-gamedays",
|
|
1196
|
+
"sourceId": "ff-gameday",
|
|
1197
|
+
"targetId": "adr-gamedays",
|
|
1198
|
+
"relationType": "implements"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"id": "ff-chaos-guarded--implements--adr-chaos",
|
|
1202
|
+
"sourceId": "ff-chaos-guarded",
|
|
1203
|
+
"targetId": "adr-chaos",
|
|
1204
|
+
"relationType": "implements"
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"id": "ff-chaos-recent--implements--adr-chaos",
|
|
1208
|
+
"sourceId": "ff-chaos-recent",
|
|
1209
|
+
"targetId": "adr-chaos",
|
|
1210
|
+
"relationType": "implements"
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
"id": "ff-catalog-owner--implements--adr-prr-sre",
|
|
1214
|
+
"sourceId": "ff-catalog-owner",
|
|
1215
|
+
"targetId": "adr-prr-sre",
|
|
1216
|
+
"relationType": "implements"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"id": "ff-catalog-owner--implements--adr-prr-self",
|
|
1220
|
+
"sourceId": "ff-catalog-owner",
|
|
1221
|
+
"targetId": "adr-prr-self",
|
|
1222
|
+
"relationType": "implements"
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"id": "ff-catalog-owner--implements--adr-prr-none",
|
|
1226
|
+
"sourceId": "ff-catalog-owner",
|
|
1227
|
+
"targetId": "adr-prr-none",
|
|
1228
|
+
"relationType": "implements"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"id": "ff-readme-owner--implements--adr-prr-sre",
|
|
1232
|
+
"sourceId": "ff-readme-owner",
|
|
1233
|
+
"targetId": "adr-prr-sre",
|
|
1234
|
+
"relationType": "implements"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"id": "ff-readme-owner--implements--adr-prr-self",
|
|
1238
|
+
"sourceId": "ff-readme-owner",
|
|
1239
|
+
"targetId": "adr-prr-self",
|
|
1240
|
+
"relationType": "implements"
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"id": "ff-readme-owner--implements--adr-prr-none",
|
|
1244
|
+
"sourceId": "ff-readme-owner",
|
|
1245
|
+
"targetId": "adr-prr-none",
|
|
1246
|
+
"relationType": "implements"
|
|
1247
|
+
}
|
|
1248
|
+
]
|
|
1249
|
+
}
|