@radicaltools/mcp 0.6.1 → 0.6.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 +1 -1
- package/dist/{chunk-H2EUPF2D.js → chunk-DQYB4GAU.js} +13 -6
- package/dist/{chunk-CKZSHFE5.js → chunk-U5QA6HBS.js} +1 -1
- package/dist/{dist-3IBN4PU7.js → dist-MPDDP2CV.js} +2 -2
- package/dist/{elkLayout-7MVDIEFO.js → elkLayout-SUGCAZZ5.js} +2 -2
- package/dist/hub-catalogue/concern/concern-accessibility.radical +85 -1
- package/dist/hub-catalogue/concern/concern-api-collections.radical +78 -1
- package/dist/hub-catalogue/concern/concern-api-errors.radical +78 -1
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +78 -1
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +121 -3
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +78 -1
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +78 -1
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +83 -7
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +77 -1
- package/dist/hub-catalogue/concern/concern-authentication.radical +178 -8
- package/dist/hub-catalogue/concern/concern-authorization.radical +133 -7
- package/dist/hub-catalogue/concern/concern-availability.radical +156 -6
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +71 -8
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +136 -6
- package/dist/hub-catalogue/concern/concern-caching.radical +73 -1
- package/dist/hub-catalogue/concern/concern-capacity.radical +124 -5
- package/dist/hub-catalogue/concern/concern-ci-cd-pipeline.radical +154 -15
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +131 -13
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +116 -7
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +174 -13
- package/dist/hub-catalogue/concern/concern-code-style.radical +148 -16
- package/dist/hub-catalogue/concern/concern-communication-style.radical +94 -7
- package/dist/hub-catalogue/concern/concern-data-classification.radical +77 -1
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +87 -5
- package/dist/hub-catalogue/concern/concern-data-store.radical +87 -5
- package/dist/hub-catalogue/concern/concern-decomposition.radical +78 -1
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +150 -11
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +130 -5
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +127 -10
- package/dist/hub-catalogue/concern/concern-deployment.radical +113 -9
- package/dist/hub-catalogue/concern/concern-encryption.radical +146 -5
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +118 -12
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +69 -1
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +148 -9
- package/dist/hub-catalogue/concern/concern-incident-management.radical +122 -1
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +54 -1
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +110 -5
- package/dist/hub-catalogue/concern/concern-messaging.radical +89 -2
- package/dist/hub-catalogue/concern/concern-mobile-performance.radical +67 -1
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +92 -5
- package/dist/hub-catalogue/concern/concern-observability.radical +105 -1
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +140 -5
- package/dist/hub-catalogue/concern/concern-personal-data.radical +206 -7
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +104 -12
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +110 -1
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +99 -7
- package/dist/hub-catalogue/concern/concern-retention.radical +130 -9
- package/dist/hub-catalogue/concern/concern-secrets.radical +196 -12
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +122 -1
- package/dist/hub-catalogue/concern/concern-secure-development.radical +118 -1
- package/dist/hub-catalogue/concern/concern-security-detection.radical +124 -1
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +116 -1
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +162 -19
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +152 -18
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +111 -1
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +83 -7
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +120 -1
- package/dist/hub-catalogue/concern/concern-usability.radical +84 -5
- package/dist/index.js +1862 -1066
- package/dist/{pdfjs-DDCLOUBH.js → pdfjs-PK44HJZP.js} +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,66 @@
|
|
|
17
17
|
"id": "definition-of-done",
|
|
18
18
|
"trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\") AND external != true",
|
|
19
19
|
"why": "code in these elements changes and reaches production, so what a change must carry before it counts as done, and who or what approves it going to production, has to be decided; one decision usually covers a whole repository and is bound to every element built from it.",
|
|
20
|
-
"group": "sdlc"
|
|
20
|
+
"group": "sdlc",
|
|
21
|
+
"scope": {
|
|
22
|
+
"group": "sdlc",
|
|
23
|
+
"questions": [
|
|
24
|
+
{
|
|
25
|
+
"key": "USE",
|
|
26
|
+
"label": "What is the software for?",
|
|
27
|
+
"default": "business",
|
|
28
|
+
"hint": "Software for one's own use can be built by hand; an organisation that runs or ships it needs a repeatable way to build, release and deploy.",
|
|
29
|
+
"options": [
|
|
30
|
+
{
|
|
31
|
+
"value": "personal",
|
|
32
|
+
"label": "our own or home use",
|
|
33
|
+
"description": "A hobby project or a tool for oneself or a household; nobody else depends on it."
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"value": "business",
|
|
37
|
+
"label": "a system an organisation runs",
|
|
38
|
+
"description": "A company or public body runs it for its staff or customers (an internal tool, an online shop, a booking system)."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"value": "product",
|
|
42
|
+
"label": "a product we ship to others",
|
|
43
|
+
"description": "Software sold or handed to customers who install or run it themselves, or offered to many organisations."
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"key": "TEAM",
|
|
49
|
+
"label": "Who builds it?",
|
|
50
|
+
"default": "small",
|
|
51
|
+
"hint": "Review, a Definition of Done and delivery metrics need more than one or two people.",
|
|
52
|
+
"options": [
|
|
53
|
+
{
|
|
54
|
+
"value": "small",
|
|
55
|
+
"label": "one or two people",
|
|
56
|
+
"description": "One or two developers."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"value": "team",
|
|
60
|
+
"label": "a team",
|
|
61
|
+
"description": "A team of its own."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"value": "teams",
|
|
65
|
+
"label": "several teams",
|
|
66
|
+
"description": "Several teams contributing to it."
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"when": [
|
|
72
|
+
{
|
|
73
|
+
"TEAM": [
|
|
74
|
+
"team",
|
|
75
|
+
"teams"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
21
80
|
},
|
|
22
81
|
"sources": [
|
|
23
82
|
{
|
|
@@ -107,7 +166,13 @@
|
|
|
107
166
|
"label": "no separation beyond the peer review",
|
|
108
167
|
"description": "The review the Code review and branching pack requires is the only separation; administrators may bypass the rules, and every bypass is posted to the team the next day. Pick it for an unregulated team small enough that an administrator is often the only person awake during an incident."
|
|
109
168
|
}
|
|
110
|
-
]
|
|
169
|
+
],
|
|
170
|
+
"scopeWhen": {
|
|
171
|
+
"TEAM": [
|
|
172
|
+
"team",
|
|
173
|
+
"teams"
|
|
174
|
+
]
|
|
175
|
+
}
|
|
111
176
|
},
|
|
112
177
|
{
|
|
113
178
|
"key": "EMERGENCY",
|
|
@@ -126,7 +191,13 @@
|
|
|
126
191
|
"label": "a break-glass deployment reviewed afterwards",
|
|
127
192
|
"description": "A separate break-glass workflow deploys a hotfix branch without waiting for the review, the board or the release approver, with a second on-call engineer approving the run; it opens a review issue at once, and the change must be reviewed and merged to main within a set number of hours (24 by default). Pick it when the normal path takes hours (a manual approval, a long pipeline) and incidents cannot wait for it."
|
|
128
193
|
}
|
|
129
|
-
]
|
|
194
|
+
],
|
|
195
|
+
"scopeWhen": {
|
|
196
|
+
"TEAM": [
|
|
197
|
+
"team",
|
|
198
|
+
"teams"
|
|
199
|
+
]
|
|
200
|
+
}
|
|
130
201
|
},
|
|
131
202
|
{
|
|
132
203
|
"key": "TRACE",
|
|
@@ -145,7 +216,13 @@
|
|
|
145
216
|
"label": "no required ticket id",
|
|
146
217
|
"description": "The pull request's description says why; nothing links it to a tracker. Pick it for a small team without a tracker, or where the pull request itself is the unit of planning."
|
|
147
218
|
}
|
|
148
|
-
]
|
|
219
|
+
],
|
|
220
|
+
"scopeWhen": {
|
|
221
|
+
"TEAM": [
|
|
222
|
+
"team",
|
|
223
|
+
"teams"
|
|
224
|
+
]
|
|
225
|
+
}
|
|
149
226
|
},
|
|
150
227
|
{
|
|
151
228
|
"key": "DOD",
|
|
@@ -250,6 +327,10 @@
|
|
|
250
327
|
"hubWhen": {
|
|
251
328
|
"DOD": [
|
|
252
329
|
"agreement"
|
|
330
|
+
],
|
|
331
|
+
"TRACE": [
|
|
332
|
+
"ticket",
|
|
333
|
+
"none"
|
|
253
334
|
]
|
|
254
335
|
}
|
|
255
336
|
},
|
|
@@ -261,7 +342,13 @@
|
|
|
261
342
|
"y": 390,
|
|
262
343
|
"ears_type": "ubiquitous",
|
|
263
344
|
"action": "link every production deployment to the commit it deployed, the merged pull request that commit belongs to, at least one approving review by someone other than that pull request's author, and the pipeline run that deployed it, in the platform's deployment history",
|
|
264
|
-
"rationale": "An approval that leaves no record can be shown neither to an auditor nor to the next incident. The EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), Article 9(4)(e), asks that changes to ICT systems be recorded, tested, assessed, approved, implemented and verified in a controlled manner; DORA's capability guidance recommends recording peer review in the development platform (DORA: Streamlining change approval)."
|
|
345
|
+
"rationale": "An approval that leaves no record can be shown neither to an auditor nor to the next incident. The EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), Article 9(4)(e), asks that changes to ICT systems be recorded, tested, assessed, approved, implemented and verified in a controlled manner; DORA's capability guidance recommends recording peer review in the development platform (DORA: Streamlining change approval).",
|
|
346
|
+
"hubWhen": {
|
|
347
|
+
"TRACE": [
|
|
348
|
+
"ticket",
|
|
349
|
+
"none"
|
|
350
|
+
]
|
|
351
|
+
}
|
|
265
352
|
},
|
|
266
353
|
{
|
|
267
354
|
"id": "req-peer-approval",
|
|
@@ -291,6 +378,10 @@
|
|
|
291
378
|
"hubWhen": {
|
|
292
379
|
"APPROVAL": [
|
|
293
380
|
"cab"
|
|
381
|
+
],
|
|
382
|
+
"TRACE": [
|
|
383
|
+
"ticket",
|
|
384
|
+
"none"
|
|
294
385
|
]
|
|
295
386
|
}
|
|
296
387
|
},
|
|
@@ -307,6 +398,10 @@
|
|
|
307
398
|
"hubWhen": {
|
|
308
399
|
"APPROVAL": [
|
|
309
400
|
"cab"
|
|
401
|
+
],
|
|
402
|
+
"TRACE": [
|
|
403
|
+
"ticket",
|
|
404
|
+
"none"
|
|
310
405
|
]
|
|
311
406
|
}
|
|
312
407
|
},
|
|
@@ -323,6 +418,10 @@
|
|
|
323
418
|
"hubWhen": {
|
|
324
419
|
"APPROVAL": [
|
|
325
420
|
"release-approver"
|
|
421
|
+
],
|
|
422
|
+
"TRACE": [
|
|
423
|
+
"ticket",
|
|
424
|
+
"none"
|
|
326
425
|
]
|
|
327
426
|
}
|
|
328
427
|
},
|
|
@@ -441,6 +540,10 @@
|
|
|
441
540
|
"hubWhen": {
|
|
442
541
|
"DOD": [
|
|
443
542
|
"agreement"
|
|
543
|
+
],
|
|
544
|
+
"TRACE": [
|
|
545
|
+
"ticket",
|
|
546
|
+
"none"
|
|
444
547
|
]
|
|
445
548
|
}
|
|
446
549
|
},
|
|
@@ -452,7 +555,13 @@
|
|
|
452
555
|
"y": 390,
|
|
453
556
|
"given": "the production deployments of the last 30 days, one of them from a pull request approved only by its author",
|
|
454
557
|
"when": "the daily change-record job runs",
|
|
455
|
-
"then": "it fails naming that deployment's commit and pull request, and passes for the others"
|
|
558
|
+
"then": "it fails naming that deployment's commit and pull request, and passes for the others",
|
|
559
|
+
"hubWhen": {
|
|
560
|
+
"TRACE": [
|
|
561
|
+
"ticket",
|
|
562
|
+
"none"
|
|
563
|
+
]
|
|
564
|
+
}
|
|
456
565
|
},
|
|
457
566
|
{
|
|
458
567
|
"id": "sc-peer-approval",
|
|
@@ -481,6 +590,10 @@
|
|
|
481
590
|
"hubWhen": {
|
|
482
591
|
"APPROVAL": [
|
|
483
592
|
"cab"
|
|
593
|
+
],
|
|
594
|
+
"TRACE": [
|
|
595
|
+
"ticket",
|
|
596
|
+
"none"
|
|
484
597
|
]
|
|
485
598
|
}
|
|
486
599
|
},
|
|
@@ -496,6 +609,10 @@
|
|
|
496
609
|
"hubWhen": {
|
|
497
610
|
"APPROVAL": [
|
|
498
611
|
"cab"
|
|
612
|
+
],
|
|
613
|
+
"TRACE": [
|
|
614
|
+
"ticket",
|
|
615
|
+
"none"
|
|
499
616
|
]
|
|
500
617
|
}
|
|
501
618
|
},
|
|
@@ -511,6 +628,10 @@
|
|
|
511
628
|
"hubWhen": {
|
|
512
629
|
"APPROVAL": [
|
|
513
630
|
"release-approver"
|
|
631
|
+
],
|
|
632
|
+
"TRACE": [
|
|
633
|
+
"ticket",
|
|
634
|
+
"none"
|
|
514
635
|
]
|
|
515
636
|
}
|
|
516
637
|
},
|
|
@@ -599,7 +720,7 @@
|
|
|
599
720
|
"status": "accepted",
|
|
600
721
|
"date": "",
|
|
601
722
|
"context": "Every change to this element travels from a pull request to production, and somewhere on the way someone decides that it is done and may go. The forces: a Definition of Done kept in people's heads is applied unevenly, and one that repeats the rules of other packs drifts away from them; approval by people outside the team feels safe, but DORA's research (dora.dev) finds that it slows delivery and leads to larger, riskier batches without lowering the change failure rate; regulators and auditors still ask that no one can put a change into production alone, and that every change is recorded and approved; an incident is exactly when a slow path gets skipped, so the emergency path has to be designed rather than improvised; and a change nobody can trace back to its reason costs hours in the next incident. The snippets assume GitHub: rulesets on main (kept by the Code review and branching pack), a deployment environment for production, GitHub Actions workflows under .github/workflows/ and the GitHub CLI with jq in scheduled jobs; GitLab's protected environments with deployment approvals do the same.",
|
|
602
|
-
"decision": "A change is approved for production by its pull request: the approving reviews the Code review and branching decision requires, and a green pipeline. No further sign-off stands between the merge and the deployment: the {{PROD_ENV}} GitHub environment has no required reviewers and no wait timer (on GitLab, the protected environment has no approval rules). The deployment history links each deployed commit to its pull request, its approvers and the pipeline run, and that is the change record an auditor reads. The Definition of Done is kept as {{DOD}}. Each of its items names the decision that owns it instead of setting it again: the tests of the Test strategy decision, the Code quality gate, the reviews and their number of the Code review and branching decision, the open findings of the Secure coding decision, the documentation of the Code documentation decision and the rollout of the Deployment and rollback decision. Every item a machine can check is written \"(check: <status check name>)\" and is a required status check on main.
|
|
723
|
+
"decision": "A change is approved for production by its pull request: the approving reviews the Code review and branching decision requires, and a green pipeline. No further sign-off stands between the merge and the deployment: the {{PROD_ENV}} GitHub environment has no required reviewers and no wait timer (on GitLab, the protected environment has no approval rules). The deployment history links each deployed commit to its pull request, its approvers and the pipeline run, and that is the change record an auditor reads. The Definition of Done is kept as {{DOD}}. Each of its items names the decision that owns it instead of setting it again: the tests of the Test strategy decision, the Code quality gate, the reviews and their number of the Code review and branching decision, the open findings of the Secure coding decision, the documentation of the Code documentation decision and the rollout of the Deployment and rollback decision. Every item a machine can check is written \"(check: <status check name>)\" and is a required status check on main. ",
|
|
603
724
|
"consequences": "• Nothing waits for a meeting or a signature: a reviewed change reaches production as fast as the pipeline and the rollout allow.\n• The review carries the weight of the approval, so a rubber-stamp review is a rubber-stamp approval; the Code review and branching pack's limits on size and turnaround are what keep reviews real.\n• An auditor who expects a separate approval has to accept the review recorded in the platform as the approval; agree on that before the audit, not during it.\n• A class of changes that keeps failing despite review gets no extra gate until this decision is revisited.",
|
|
604
725
|
"alternatives": "1. A change advisory board for high-risk changes only: extra scrutiny where review keeps missing problems, at the price of a wait for those changes.\n2. A named release approver for every deployment: a signature on every release, and a queue in front of every deployment.\n3. A change advisory board for every change: DORA's research finds it slows delivery without lowering the change failure rate.",
|
|
605
726
|
"hubWhen": {
|
|
@@ -618,7 +739,7 @@
|
|
|
618
739
|
"status": "accepted",
|
|
619
740
|
"date": "",
|
|
620
741
|
"context": "Every change to this element travels from a pull request to production, and somewhere on the way someone decides that it is done and may go. The forces: a Definition of Done kept in people's heads is applied unevenly, and one that repeats the rules of other packs drifts away from them; approval by people outside the team feels safe, but DORA's research (dora.dev) finds that it slows delivery and leads to larger, riskier batches without lowering the change failure rate; regulators and auditors still ask that no one can put a change into production alone, and that every change is recorded and approved; an incident is exactly when a slow path gets skipped, so the emergency path has to be designed rather than improvised; and a change nobody can trace back to its reason costs hours in the next incident. The snippets assume GitHub: rulesets on main (kept by the Code review and branching pack), a deployment environment for production, GitHub Actions workflows under .github/workflows/ and the GitHub CLI with jq in scheduled jobs; GitLab's protected environments with deployment approvals do the same.",
|
|
621
|
-
"decision": "A change is approved for production by its pull request (the reviews the Code review and branching decision requires and a green pipeline), and a change that touches {{HIGH_RISK_PATHS}} is approved by the change advisory board as well. The deploy workflow labels such a pull request change:high-risk on merge and deploys it through the {{PROD_ENV}}-high-risk GitHub environment, whose required reviewers are the board's members (on GitLab, a protected environment with an approval rule for the board's group); every other change deploys through {{PROD_ENV}} without waiting. The board decides within {{APPROVAL_HOURS}} working hours from the pull request, its pipeline run and the rollout plan, with no separate form, and once a quarter compares the change failure rate of the changes it approved with the rest and drops a path whose changes fail no more often. The Definition of Done is kept as {{DOD}}. Each of its items names the decision that owns it instead of setting it again: the tests of the Test strategy decision, the Code quality gate, the reviews and their number of the Code review and branching decision, the open findings of the Secure coding decision, the documentation of the Code documentation decision and the rollout of the Deployment and rollback decision. Every item a machine can check is written \"(check: <status check name>)\" and is a required status check on main.
|
|
742
|
+
"decision": "A change is approved for production by its pull request (the reviews the Code review and branching decision requires and a green pipeline), and a change that touches {{HIGH_RISK_PATHS}} is approved by the change advisory board as well. The deploy workflow labels such a pull request change:high-risk on merge and deploys it through the {{PROD_ENV}}-high-risk GitHub environment, whose required reviewers are the board's members (on GitLab, a protected environment with an approval rule for the board's group); every other change deploys through {{PROD_ENV}} without waiting. The board decides within {{APPROVAL_HOURS}} working hours from the pull request, its pipeline run and the rollout plan, with no separate form, and once a quarter compares the change failure rate of the changes it approved with the rest and drops a path whose changes fail no more often. The Definition of Done is kept as {{DOD}}. Each of its items names the decision that owns it instead of setting it again: the tests of the Test strategy decision, the Code quality gate, the reviews and their number of the Code review and branching decision, the open findings of the Secure coding decision, the documentation of the Code documentation decision and the rollout of the Deployment and rollback decision. Every item a machine can check is written \"(check: <status check name>)\" and is a required status check on main. ",
|
|
622
743
|
"consequences": "• Most changes flow as with peer review; only the classified ones wait, up to {{APPROVAL_HOURS}} working hours.\n• The board sees what review keeps missing only if the classification is right: a list of paths is coarse, and a risky change outside it goes through unseen.\n• Changes that wait tend to grow into larger batches, which DORA's research links to more risk; the quarterly comparison is what keeps the list short.\n• The board's members must be reachable within the deadline, holidays included.",
|
|
623
744
|
"alternatives": "1. Peer review and a green pipeline as the only approval: the fastest, and enough when review catches what goes wrong.\n2. A named release approver for every deployment: one gate for every change instead of a board for some.\n3. A board for every change: DORA's research finds no lower change failure rate for it, and slower delivery.",
|
|
624
745
|
"hubWhen": {
|
|
@@ -637,7 +758,7 @@
|
|
|
637
758
|
"status": "accepted",
|
|
638
759
|
"date": "",
|
|
639
760
|
"context": "Every change to this element travels from a pull request to production, and somewhere on the way someone decides that it is done and may go. The forces: a Definition of Done kept in people's heads is applied unevenly, and one that repeats the rules of other packs drifts away from them; approval by people outside the team feels safe, but DORA's research (dora.dev) finds that it slows delivery and leads to larger, riskier batches without lowering the change failure rate; regulators and auditors still ask that no one can put a change into production alone, and that every change is recorded and approved; an incident is exactly when a slow path gets skipped, so the emergency path has to be designed rather than improvised; and a change nobody can trace back to its reason costs hours in the next incident. The snippets assume GitHub: rulesets on main (kept by the Code review and branching pack), a deployment environment for production, GitHub Actions workflows under .github/workflows/ and the GitHub CLI with jq in scheduled jobs; GitLab's protected environments with deployment approvals do the same.",
|
|
640
|
-
"decision": "Every deployment to production waits for one of the named release approvers: the {{PROD_ENV}} GitHub environment lists them as required reviewers (up to six people or teams, of whom one must approve), and the deployment job waits until one does; on GitLab, the protected environment has an approval rule naming them. The approver decides within {{APPROVAL_HOURS}} working hours from the pull requests in the release, their pipeline runs and the rollout plan, and the approval stays on the run. The change itself is still approved for merge by the reviews the Code review and branching decision requires. The Definition of Done is kept as {{DOD}}. Each of its items names the decision that owns it instead of setting it again: the tests of the Test strategy decision, the Code quality gate, the reviews and their number of the Code review and branching decision, the open findings of the Secure coding decision, the documentation of the Code documentation decision and the rollout of the Deployment and rollback decision. Every item a machine can check is written \"(check: <status check name>)\" and is a required status check on main.
|
|
761
|
+
"decision": "Every deployment to production waits for one of the named release approvers: the {{PROD_ENV}} GitHub environment lists them as required reviewers (up to six people or teams, of whom one must approve), and the deployment job waits until one does; on GitLab, the protected environment has an approval rule naming them. The approver decides within {{APPROVAL_HOURS}} working hours from the pull requests in the release, their pipeline runs and the rollout plan, and the approval stays on the run. The change itself is still approved for merge by the reviews the Code review and branching decision requires. The Definition of Done is kept as {{DOD}}. Each of its items names the decision that owns it instead of setting it again: the tests of the Test strategy decision, the Code quality gate, the reviews and their number of the Code review and branching decision, the open findings of the Secure coding decision, the documentation of the Code documentation decision and the rollout of the Deployment and rollback decision. Every item a machine can check is written \"(check: <status check name>)\" and is a required status check on main. ",
|
|
641
762
|
"consequences": "• Every release carries a named person's approval, which is what some contracts and auditors ask for.\n• Every deployment waits for a person: continuous deployment of every merge without a manual step, as the Deployment and rollback pack may decide, is ruled out, and releases tend to batch up, which DORA's research links to more failures, not fewer.\n• The approver sees a release, not each change; the approval adds little to the reviews unless the approver checks something they cannot (a business date, a customer notice).\n• The approvers become a queue and a single point of failure; keep at least three, across time zones if the team spans them.",
|
|
642
763
|
"alternatives": "1. Peer review and a green pipeline as the approval: no wait, and the same evidence in the platform.\n2. A change advisory board for high-risk changes only: the wait only where it buys something.\n3. A sign-off by e-mail or in a ticket: no wait in the pipeline, but nothing stops a deployment without it.",
|
|
643
764
|
"hubWhen": {
|
|
@@ -657,7 +778,7 @@
|
|
|
657
778
|
"date": "",
|
|
658
779
|
"context": "Every change to this element travels from a pull request to production, and somewhere on the way someone decides that it is done and may go. The forces: a Definition of Done kept in people's heads is applied unevenly, and one that repeats the rules of other packs drifts away from them; approval by people outside the team feels safe, but DORA's research (dora.dev) finds that it slows delivery and leads to larger, riskier batches without lowering the change failure rate; regulators and auditors still ask that no one can put a change into production alone, and that every change is recorded and approved; an incident is exactly when a slow path gets skipped, so the emergency path has to be designed rather than improvised; and a change nobody can trace back to its reason costs hours in the next incident. The snippets assume GitHub: rulesets on main (kept by the Code review and branching pack), a deployment environment for production, GitHub Actions workflows under .github/workflows/ and the GitHub CLI with jq in scheduled jobs; GitLab's protected environments with deployment approvals do the same. Here segregation of duties is asked for, by an auditor, a regulator or the team's own view of the risk.",
|
|
659
780
|
"decision": "No person can put a change into production alone. The author of a change never approves it: the rulesets on main require an approval from someone else (the Code review and branching decision) and list no bypass actors, so neither repository nor organisation administrators can merge past them. No one approves a deployment they started: every GitHub environment with required reviewers has Prevent self-review on (on GitLab, \"Allow pipeline triggerer to approve deployment\" stays off), and \"Allow administrators to bypass configured protection rules\" is off for {{PROD_ENV}}. No person holds credentials that deploy to production outside the pipeline, which deploys with its own short-lived OpenID Connect identity. This is the separation PCI DSS Requirement 6.5.4 and the technical standard under the EU Digital Operational Resilience Act (Delegated Regulation (EU) 2024/1774, Article 17(1)(b)) ask for, met with peer review recorded in the platform as DORA's capability guidance recommends.",
|
|
660
|
-
"consequences": "• An administrator cannot fix a broken ruleset or a stuck deployment alone; that takes a second person, at night too, so the emergency path
|
|
781
|
+
"consequences": "• An administrator cannot fix a broken ruleset or a stuck deployment alone; that takes a second person, at night too, so the emergency path must not depend on a bypass.\n• A team of one or two cannot ship while one of them is away; segregation needs at least three people who can review and approve.\n• Bypassing is impossible rather than reported, so a mistake in the rules blocks everyone until two people fix it.\n• The daily check needs a token with write access to the rulesets, a secret to guard in its own right.",
|
|
661
782
|
"alternatives": "1. No separation beyond the peer review, with every bypass reported: simpler for a small team, and not what a regulator accepts.\n2. A quarterly manual review of who can bypass: finds a bypass months after it was used.",
|
|
662
783
|
"hubWhen": {
|
|
663
784
|
"SEGREGATION": [
|
|
@@ -730,6 +851,10 @@
|
|
|
730
851
|
"hubWhen": {
|
|
731
852
|
"DOD": [
|
|
732
853
|
"agreement"
|
|
854
|
+
],
|
|
855
|
+
"TRACE": [
|
|
856
|
+
"ticket",
|
|
857
|
+
"none"
|
|
733
858
|
]
|
|
734
859
|
}
|
|
735
860
|
},
|
|
@@ -744,7 +869,13 @@
|
|
|
744
869
|
"cadence": "triggered",
|
|
745
870
|
"trigger": "nightly",
|
|
746
871
|
"invocation": "automated",
|
|
747
|
-
"description": "A daily job lists the deployments to {{PROD_ENV}} through the deployments API (GitHub Actions creates one for every job that names the environment), finds the merged pull request of each deployed commit and its reviews, and fails naming every deployment without an approval from someone other than the author. Deployments younger than {{BREAK_GLASS_HOURS}} hours are left to a later run, so that a break-glass change has its time to be reviewed and merged. The deployment, its run and its pull request together are the change record.\n\nThreshold: Every deployment to {{PROD_ENV}} of the last 30 days and older than {{BREAK_GLASS_HOURS}} hours belongs to a merged pull request with at least 1 approving review by someone other than its author; 0 without\n\nTool: GitHub CLI (gh api) and jq in a scheduled GitHub Actions job (GNU date)\n\n```bash\n#!/usr/bin/env bash\n# daily: every production deployment of the last 30 days leads to a merged pull request approved by someone other than its author\nset -euo pipefail\nrepo=$GITHUB_REPOSITORY\nsince=$(date -u -d '30 days ago' +%FT%TZ) # GNU date, as on ubuntu-latest\ngrace=$(date -u -d '{{BREAK_GLASS_HOURS}} hours ago' +%FT%TZ) # a break-glass change has this long to be reviewed and merged\nfailed=0\nfor sha in $(gh api --paginate \"repos/$repo/deployments?environment={{PROD_ENV}}&per_page=100\" \\\n --jq \".[] | select(.created_at >= \\\"$since\\\" and .created_at <= \\\"$grace\\\") | .sha\" | sort -u); do\n pr=$(gh api \"repos/$repo/commits/$sha/pulls\" --jq '[.[] | select(.merged_at != null)][0] | \"\\(.number) \\(.user.login)\"')\n if [ \"$pr\" = \"null null\" ]; then echo \"::error::$sha was deployed without a merged pull request\"; failed=1; continue; fi\n read -r number author <<< \"$pr\"\n approvers=$(gh api --paginate \"repos/$repo/pulls/$number/reviews\" \\\n --jq \".[] | select(.state == \\\"APPROVED\\\" and .user.login != \\\"$author\\\") | .user.login\")\n [ -n \"$approvers\" ] || { echo \"::error::$sha (#$number) has no approval from anyone but its author $author\"; failed=1; }\ndone\nexit $failed\n```"
|
|
872
|
+
"description": "A daily job lists the deployments to {{PROD_ENV}} through the deployments API (GitHub Actions creates one for every job that names the environment), finds the merged pull request of each deployed commit and its reviews, and fails naming every deployment without an approval from someone other than the author. Deployments younger than {{BREAK_GLASS_HOURS}} hours are left to a later run, so that a break-glass change has its time to be reviewed and merged. The deployment, its run and its pull request together are the change record.\n\nThreshold: Every deployment to {{PROD_ENV}} of the last 30 days and older than {{BREAK_GLASS_HOURS}} hours belongs to a merged pull request with at least 1 approving review by someone other than its author; 0 without\n\nTool: GitHub CLI (gh api) and jq in a scheduled GitHub Actions job (GNU date)\n\n```bash\n#!/usr/bin/env bash\n# daily: every production deployment of the last 30 days leads to a merged pull request approved by someone other than its author\nset -euo pipefail\nrepo=$GITHUB_REPOSITORY\nsince=$(date -u -d '30 days ago' +%FT%TZ) # GNU date, as on ubuntu-latest\ngrace=$(date -u -d '{{BREAK_GLASS_HOURS}} hours ago' +%FT%TZ) # a break-glass change has this long to be reviewed and merged\nfailed=0\nfor sha in $(gh api --paginate \"repos/$repo/deployments?environment={{PROD_ENV}}&per_page=100\" \\\n --jq \".[] | select(.created_at >= \\\"$since\\\" and .created_at <= \\\"$grace\\\") | .sha\" | sort -u); do\n pr=$(gh api \"repos/$repo/commits/$sha/pulls\" --jq '[.[] | select(.merged_at != null)][0] | \"\\(.number) \\(.user.login)\"')\n if [ \"$pr\" = \"null null\" ]; then echo \"::error::$sha was deployed without a merged pull request\"; failed=1; continue; fi\n read -r number author <<< \"$pr\"\n approvers=$(gh api --paginate \"repos/$repo/pulls/$number/reviews\" \\\n --jq \".[] | select(.state == \\\"APPROVED\\\" and .user.login != \\\"$author\\\") | .user.login\")\n [ -n \"$approvers\" ] || { echo \"::error::$sha (#$number) has no approval from anyone but its author $author\"; failed=1; }\ndone\nexit $failed\n```",
|
|
873
|
+
"hubWhen": {
|
|
874
|
+
"TRACE": [
|
|
875
|
+
"ticket",
|
|
876
|
+
"none"
|
|
877
|
+
]
|
|
878
|
+
}
|
|
748
879
|
},
|
|
749
880
|
{
|
|
750
881
|
"id": "ff-no-manual-gate",
|
|
@@ -779,6 +910,10 @@
|
|
|
779
910
|
"hubWhen": {
|
|
780
911
|
"APPROVAL": [
|
|
781
912
|
"cab"
|
|
913
|
+
],
|
|
914
|
+
"TRACE": [
|
|
915
|
+
"ticket",
|
|
916
|
+
"none"
|
|
782
917
|
]
|
|
783
918
|
}
|
|
784
919
|
},
|
|
@@ -798,6 +933,10 @@
|
|
|
798
933
|
"APPROVAL": [
|
|
799
934
|
"cab",
|
|
800
935
|
"release-approver"
|
|
936
|
+
],
|
|
937
|
+
"TRACE": [
|
|
938
|
+
"ticket",
|
|
939
|
+
"none"
|
|
801
940
|
]
|
|
802
941
|
}
|
|
803
942
|
},
|
|
@@ -17,7 +17,66 @@
|
|
|
17
17
|
"id": "delivery-metrics",
|
|
18
18
|
"trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\") AND external != true",
|
|
19
19
|
"why": "code in these elements is changed and deployed, so how the team measures its delivery, and what it does about the figures, has to be decided.",
|
|
20
|
-
"group": "sdlc"
|
|
20
|
+
"group": "sdlc",
|
|
21
|
+
"scope": {
|
|
22
|
+
"group": "sdlc",
|
|
23
|
+
"questions": [
|
|
24
|
+
{
|
|
25
|
+
"key": "USE",
|
|
26
|
+
"label": "What is the software for?",
|
|
27
|
+
"default": "business",
|
|
28
|
+
"hint": "Software for one's own use can be built by hand; an organisation that runs or ships it needs a repeatable way to build, release and deploy.",
|
|
29
|
+
"options": [
|
|
30
|
+
{
|
|
31
|
+
"value": "personal",
|
|
32
|
+
"label": "our own or home use",
|
|
33
|
+
"description": "A hobby project or a tool for oneself or a household; nobody else depends on it."
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"value": "business",
|
|
37
|
+
"label": "a system an organisation runs",
|
|
38
|
+
"description": "A company or public body runs it for its staff or customers (an internal tool, an online shop, a booking system)."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"value": "product",
|
|
42
|
+
"label": "a product we ship to others",
|
|
43
|
+
"description": "Software sold or handed to customers who install or run it themselves, or offered to many organisations."
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"key": "TEAM",
|
|
49
|
+
"label": "Who builds it?",
|
|
50
|
+
"default": "small",
|
|
51
|
+
"hint": "Review, a Definition of Done and delivery metrics need more than one or two people.",
|
|
52
|
+
"options": [
|
|
53
|
+
{
|
|
54
|
+
"value": "small",
|
|
55
|
+
"label": "one or two people",
|
|
56
|
+
"description": "One or two developers."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"value": "team",
|
|
60
|
+
"label": "a team",
|
|
61
|
+
"description": "A team of its own."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"value": "teams",
|
|
65
|
+
"label": "several teams",
|
|
66
|
+
"description": "Several teams contributing to it."
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"when": [
|
|
72
|
+
{
|
|
73
|
+
"TEAM": [
|
|
74
|
+
"team",
|
|
75
|
+
"teams"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
21
80
|
},
|
|
22
81
|
"sources": [
|
|
23
82
|
{
|
|
@@ -119,7 +178,13 @@
|
|
|
119
178
|
"label": "a line in the weekly report only",
|
|
120
179
|
"description": "The miss and how many weeks it has lasted are shown in the weekly report; nothing else starts by itself. Pick it while the targets are new and the team is still learning its baseline, or when another forum decides the work; the decision records that a missed target obliges nobody."
|
|
121
180
|
}
|
|
122
|
-
]
|
|
181
|
+
],
|
|
182
|
+
"scopeWhen": {
|
|
183
|
+
"TEAM": [
|
|
184
|
+
"team",
|
|
185
|
+
"teams"
|
|
186
|
+
]
|
|
187
|
+
}
|
|
123
188
|
},
|
|
124
189
|
{
|
|
125
190
|
"key": "WINDOW_DAYS",
|
|
@@ -211,6 +276,11 @@
|
|
|
211
276
|
"hubWhen": {
|
|
212
277
|
"SOURCE": [
|
|
213
278
|
"script"
|
|
279
|
+
],
|
|
280
|
+
"RESPONSE": [
|
|
281
|
+
"retro",
|
|
282
|
+
"reserve",
|
|
283
|
+
"report"
|
|
214
284
|
]
|
|
215
285
|
}
|
|
216
286
|
},
|
|
@@ -243,6 +313,11 @@
|
|
|
243
313
|
"SOURCE": [
|
|
244
314
|
"script",
|
|
245
315
|
"platform"
|
|
316
|
+
],
|
|
317
|
+
"RESPONSE": [
|
|
318
|
+
"retro",
|
|
319
|
+
"reserve",
|
|
320
|
+
"report"
|
|
246
321
|
]
|
|
247
322
|
}
|
|
248
323
|
},
|
|
@@ -258,6 +333,11 @@
|
|
|
258
333
|
"hubWhen": {
|
|
259
334
|
"SOURCE": [
|
|
260
335
|
"script"
|
|
336
|
+
],
|
|
337
|
+
"RESPONSE": [
|
|
338
|
+
"retro",
|
|
339
|
+
"reserve",
|
|
340
|
+
"report"
|
|
261
341
|
]
|
|
262
342
|
}
|
|
263
343
|
},
|
|
@@ -273,6 +353,11 @@
|
|
|
273
353
|
"hubWhen": {
|
|
274
354
|
"SOURCE": [
|
|
275
355
|
"platform"
|
|
356
|
+
],
|
|
357
|
+
"RESPONSE": [
|
|
358
|
+
"retro",
|
|
359
|
+
"reserve",
|
|
360
|
+
"report"
|
|
276
361
|
]
|
|
277
362
|
}
|
|
278
363
|
},
|
|
@@ -390,6 +475,11 @@
|
|
|
390
475
|
"hubWhen": {
|
|
391
476
|
"SOURCE": [
|
|
392
477
|
"script"
|
|
478
|
+
],
|
|
479
|
+
"RESPONSE": [
|
|
480
|
+
"retro",
|
|
481
|
+
"reserve",
|
|
482
|
+
"report"
|
|
393
483
|
]
|
|
394
484
|
}
|
|
395
485
|
},
|
|
@@ -422,6 +512,11 @@
|
|
|
422
512
|
"SOURCE": [
|
|
423
513
|
"script",
|
|
424
514
|
"platform"
|
|
515
|
+
],
|
|
516
|
+
"RESPONSE": [
|
|
517
|
+
"retro",
|
|
518
|
+
"reserve",
|
|
519
|
+
"report"
|
|
425
520
|
]
|
|
426
521
|
}
|
|
427
522
|
},
|
|
@@ -437,6 +532,11 @@
|
|
|
437
532
|
"hubWhen": {
|
|
438
533
|
"SOURCE": [
|
|
439
534
|
"script"
|
|
535
|
+
],
|
|
536
|
+
"RESPONSE": [
|
|
537
|
+
"retro",
|
|
538
|
+
"reserve",
|
|
539
|
+
"report"
|
|
440
540
|
]
|
|
441
541
|
}
|
|
442
542
|
},
|
|
@@ -452,6 +552,11 @@
|
|
|
452
552
|
"hubWhen": {
|
|
453
553
|
"SOURCE": [
|
|
454
554
|
"platform"
|
|
555
|
+
],
|
|
556
|
+
"RESPONSE": [
|
|
557
|
+
"retro",
|
|
558
|
+
"reserve",
|
|
559
|
+
"report"
|
|
455
560
|
]
|
|
456
561
|
}
|
|
457
562
|
},
|
|
@@ -547,7 +652,7 @@
|
|
|
547
652
|
"status": "accepted",
|
|
548
653
|
"date": "",
|
|
549
654
|
"context": "This element is changed and deployed week after week, and the team wants to know whether it is getting faster and safer at it, not to guess. The forces: what is not measured is argued from anecdote, while a metric turned into a goal gets gamed (DORA warns of Goodhart's law): counting deployments rewards splitting them, counting failures rewards not calling them failures; throughput and instability have to be read together, because either can be bought with the other; the metrics mean something for one application or service, and blended across teams they hide more than they show; the definitions decide the numbers (what is a deployment, when a change starts, what is a failure, when it is recovered) and tools disagree on them; a team that deploys a few times a month has too few events for a rate to mean much; and a number nobody acts on is decoration. How a release rolls out, how fast it rolls back and how often the element releases are decided in the Deployment pack; the availability objective and the error budget in the Availability pack; the time for repaying technical debt in the Technical debt pack; who responds to an incident, and how, is the incident process.",
|
|
550
|
-
"decision": "Our own job computes the five DORA software delivery metrics for {{SCOPE}} from the GitHub Deployments API, every Monday over the last {{WINDOW_DAYS}} days (scripts/delivery-flow.mjs and scripts/delivery-failures.mjs, run by scripts/delivery-metrics.sh in a scheduled GitHub Actions workflow that keeps reports/ as an artifact for 90 days). Definitions: a deployment is a GitHub deployment to environment production whose payload names the service and team and that has a success status, posted once the new version serves all production traffic; a rollout that never got there is not a deployment (the Deployment pack's rollback handles it). A change starts at the committer date of its commit on the main branch (with squash merges, the merge) and ends at the success status of the first production deployment that brings it. A deployment failed when it needed immediate intervention (a rollback, a hotfix, or a feature or setting switched off because of it) and carries a failure status posted after its success status: rollback and hotfix deploy jobs post it on the deployment they repair, the incident process posts it for any other intervention. It recovered at that failure status, so recovery time runs from going live to recovery and includes the time to notice. A deployment is rework when its kind is hotfix or rollback. Targets: at least {{DEPLOYS_PER_WEEK}} deployments a week; median change lead time at most {{LEAD_TIME_HOURS}} hours; change fail rate at most {{CHANGE_FAIL_PCT}}%; median failed deployment recovery time at most {{RECOVERY_HOURS}} hours; deployment rework rate at most {{REWORK_PCT}}%. The targets are the team's own, set from its baseline, not DORA's performance clusters.
|
|
655
|
+
"decision": "Our own job computes the five DORA software delivery metrics for {{SCOPE}} from the GitHub Deployments API, every Monday over the last {{WINDOW_DAYS}} days (scripts/delivery-flow.mjs and scripts/delivery-failures.mjs, run by scripts/delivery-metrics.sh in a scheduled GitHub Actions workflow that keeps reports/ as an artifact for 90 days). Definitions: a deployment is a GitHub deployment to environment production whose payload names the service and team and that has a success status, posted once the new version serves all production traffic; a rollout that never got there is not a deployment (the Deployment pack's rollback handles it). A change starts at the committer date of its commit on the main branch (with squash merges, the merge) and ends at the success status of the first production deployment that brings it. A deployment failed when it needed immediate intervention (a rollback, a hotfix, or a feature or setting switched off because of it) and carries a failure status posted after its success status: rollback and hotfix deploy jobs post it on the deployment they repair, the incident process posts it for any other intervention. It recovered at that failure status, so recovery time runs from going live to recovery and includes the time to notice. A deployment is rework when its kind is hotfix or rollback. Targets: at least {{DEPLOYS_PER_WEEK}} deployments a week; median change lead time at most {{LEAD_TIME_HOURS}} hours; change fail rate at most {{CHANGE_FAIL_PCT}}%; median failed deployment recovery time at most {{RECOVERY_HOURS}} hours; deployment rework rate at most {{REWORK_PCT}}%. The targets are the team's own, set from its baseline, not DORA's performance clusters.",
|
|
551
656
|
"consequences": "• The definitions are exactly ours and written down; every figure can be traced to deployments and statuses.\n• The pipeline must record deployments faithfully: a deploy job that skips the record, or posts success before the rollout ends, distorts every figure; a weekly check catches the first.\n• Failures that need no deployment to fix (a flag switched off) count only if the incident process remembers to mark them.\n• Recovery time includes the time to notice, so a failure found days later shows as a long recovery; that is intended.\n• GitHub deletes deployment statuses after 90 days, so the window and the streak have to fit in 90 days, and longer history lives only in the kept reports.\n• About fifty lines of script to keep, and API calls in proportion to the number of deployments.",
|
|
552
657
|
"alternatives": "1. A delivery-insights platform: dashboards without a script, but the vendor's definitions and a licence.\n2. A quarterly review without measurement: no tooling at all, but estimates instead of figures.\n3. Google's Four Keys project: archived by its owners in 2024, so no longer a base to build on.",
|
|
553
658
|
"hubWhen": {
|
|
@@ -566,7 +671,7 @@
|
|
|
566
671
|
"status": "accepted",
|
|
567
672
|
"date": "",
|
|
568
673
|
"context": "This element is changed and deployed week after week, and the team wants to know whether it is getting faster and safer at it, not to guess. The forces: what is not measured is argued from anecdote, while a metric turned into a goal gets gamed (DORA warns of Goodhart's law): counting deployments rewards splitting them, counting failures rewards not calling them failures; throughput and instability have to be read together, because either can be bought with the other; the metrics mean something for one application or service, and blended across teams they hide more than they show; the definitions decide the numbers (what is a deployment, when a change starts, what is a failure, when it is recovered) and tools disagree on them; a team that deploys a few times a month has too few events for a rate to mean much; and a number nobody acts on is decoration. How a release rolls out, how fast it rolls back and how often the element releases are decided in the Deployment pack; the availability objective and the error budget in the Availability pack; the time for repaying technical debt in the Technical debt pack; who responds to an incident, and how, is the incident process.",
|
|
569
|
-
"decision": "A delivery-insights platform computes the DORA metrics for {{SCOPE}}: GitLab's DORA metrics (GitLab Ultimate) when the code is on GitLab, for one element per project or for a team per group; otherwise the platform the organisation runs (LinearB, Swarmia, DX or Sleuth), fed with the pipeline's production deployments and the incidents. We take the platform's definitions and record where they differ from DORA's guide: GitLab counts successful deployments to environments of the production tier, starts lead time when the merge request is merged rather than at the commit, counts a failure as a GitLab incident and recovery as the time the incident was open, and reports no deployment rework rate. Every deploy job declares its environment's tier. A weekly job reads the figures over the last {{WINDOW_DAYS}} days from the platform's API and compares them with the targets: at least {{DEPLOYS_PER_WEEK}} deployments a week; median change lead time at most {{LEAD_TIME_HOURS}} hours; change fail rate at most {{CHANGE_FAIL_PCT}}%; median recovery time at most {{RECOVERY_HOURS}} hours; and, where the platform reports it, deployment rework rate at most {{REWORK_PCT}}%. The targets are the team's own, not DORA's performance clusters.
|
|
674
|
+
"decision": "A delivery-insights platform computes the DORA metrics for {{SCOPE}}: GitLab's DORA metrics (GitLab Ultimate) when the code is on GitLab, for one element per project or for a team per group; otherwise the platform the organisation runs (LinearB, Swarmia, DX or Sleuth), fed with the pipeline's production deployments and the incidents. We take the platform's definitions and record where they differ from DORA's guide: GitLab counts successful deployments to environments of the production tier, starts lead time when the merge request is merged rather than at the commit, counts a failure as a GitLab incident and recovery as the time the incident was open, and reports no deployment rework rate. Every deploy job declares its environment's tier. A weekly job reads the figures over the last {{WINDOW_DAYS}} days from the platform's API and compares them with the targets: at least {{DEPLOYS_PER_WEEK}} deployments a week; median change lead time at most {{LEAD_TIME_HOURS}} hours; change fail rate at most {{CHANGE_FAIL_PCT}}%; median recovery time at most {{RECOVERY_HOURS}} hours; and, where the platform reports it, deployment rework rate at most {{REWORK_PCT}}%. The targets are the team's own, not DORA's performance clusters.",
|
|
570
675
|
"consequences": "• Dashboards, history and drill-down without a script of our own; several teams see their figures the same way.\n• The definitions are the vendor's: GitLab's lead time leaves out the time before the merge, and its failure figures are only as good as the incidents opened in GitLab.\n• A licence (GitLab Ultimate, or the platform's per-developer price) and one more system with access to the code.\n• Platforms tempt managers to compare teams and people; the figures stay at the decided unit and never per person.\n• The deployment rework rate is missing where the platform does not report it.",
|
|
571
676
|
"alternatives": "1. Our own job over the GitHub deployment records: exact definitions and no licence, but a script to keep.\n2. A quarterly review without measurement: no tooling, but estimates instead of figures.",
|
|
572
677
|
"hubWhen": {
|
|
@@ -585,7 +690,7 @@
|
|
|
585
690
|
"status": "accepted",
|
|
586
691
|
"date": "",
|
|
587
692
|
"context": "This element is changed and deployed week after week, and the team wants to know whether it is getting faster and safer at it, not to guess. The forces: what is not measured is argued from anecdote, while a metric turned into a goal gets gamed (DORA warns of Goodhart's law): counting deployments rewards splitting them, counting failures rewards not calling them failures; throughput and instability have to be read together, because either can be bought with the other; the metrics mean something for one application or service, and blended across teams they hide more than they show; the definitions decide the numbers (what is a deployment, when a change starts, what is a failure, when it is recovered) and tools disagree on them; a team that deploys a few times a month has too few events for a rate to mean much; and a number nobody acts on is decoration. How a release rolls out, how fast it rolls back and how often the element releases are decided in the Deployment pack; the availability objective and the error budget in the Availability pack; the time for repaying technical debt in the Technical debt pack; who responds to an incident, and how, is the incident process.",
|
|
588
|
-
"decision": "Delivery performance of {{SCOPE}} is not measured by a tool. Within 14 days after each quarter the team holds a review that estimates, from its records and memory, the deployments a week, the change lead time from commit to production, the change fail rate (deployments that needed immediate intervention), the failed deployment recovery time and the deployment rework rate (deployments that were hotfixes or rollbacks), and compares each with its target: at least {{DEPLOYS_PER_WEEK}} deployments a week; lead time at most {{LEAD_TIME_HOURS}} hours; change fail rate at most {{CHANGE_FAIL_PCT}}%; recovery at most {{RECOVERY_HOURS}} hours; rework at most {{REWORK_PCT}}%. The review is kept in docs/delivery-reviews/<year>-Q<n>.md, one section per figure with an Answer: and a Target: line, and an Actions section.
|
|
693
|
+
"decision": "Delivery performance of {{SCOPE}} is not measured by a tool. Within 14 days after each quarter the team holds a review that estimates, from its records and memory, the deployments a week, the change lead time from commit to production, the change fail rate (deployments that needed immediate intervention), the failed deployment recovery time and the deployment rework rate (deployments that were hotfixes or rollbacks), and compares each with its target: at least {{DEPLOYS_PER_WEEK}} deployments a week; lead time at most {{LEAD_TIME_HOURS}} hours; change fail rate at most {{CHANGE_FAIL_PCT}}%; recovery at most {{RECOVERY_HOURS}} hours; rework at most {{REWORK_PCT}}%. The review is kept in docs/delivery-reviews/<year>-Q<n>.md, one section per figure with an Answer: and a Target: line, and an Actions section. We revisit this decision when the team deploys more than once a week.",
|
|
589
694
|
"consequences": "• No tooling and no recording discipline in the pipeline; an hour a quarter.\n• The figures are estimates: memory flatters, and a slow drift goes unnoticed for up to three months.\n• Nothing checks a target between reviews; a bad month is seen at the end of the quarter.\n• The same five questions keep the team ready to measure later without changing what it talks about.",
|
|
590
695
|
"alternatives": "1. Our own job over the GitHub deployment records: real figures every week, once the pipeline records deployments.\n2. A delivery-insights platform: figures without a script, at a licence cost.\n3. No review at all: delivery performance becomes a matter of impression.",
|
|
591
696
|
"hubWhen": {
|
|
@@ -627,6 +732,11 @@
|
|
|
627
732
|
"hubWhen": {
|
|
628
733
|
"SOURCE": [
|
|
629
734
|
"script"
|
|
735
|
+
],
|
|
736
|
+
"RESPONSE": [
|
|
737
|
+
"retro",
|
|
738
|
+
"reserve",
|
|
739
|
+
"report"
|
|
630
740
|
]
|
|
631
741
|
}
|
|
632
742
|
},
|
|
@@ -663,6 +773,11 @@
|
|
|
663
773
|
"hubWhen": {
|
|
664
774
|
"SOURCE": [
|
|
665
775
|
"script"
|
|
776
|
+
],
|
|
777
|
+
"RESPONSE": [
|
|
778
|
+
"retro",
|
|
779
|
+
"reserve",
|
|
780
|
+
"report"
|
|
666
781
|
]
|
|
667
782
|
}
|
|
668
783
|
},
|
|
@@ -699,6 +814,11 @@
|
|
|
699
814
|
"hubWhen": {
|
|
700
815
|
"SOURCE": [
|
|
701
816
|
"platform"
|
|
817
|
+
],
|
|
818
|
+
"RESPONSE": [
|
|
819
|
+
"retro",
|
|
820
|
+
"reserve",
|
|
821
|
+
"report"
|
|
702
822
|
]
|
|
703
823
|
}
|
|
704
824
|
},
|
|
@@ -718,6 +838,11 @@
|
|
|
718
838
|
"SOURCE": [
|
|
719
839
|
"script",
|
|
720
840
|
"platform"
|
|
841
|
+
],
|
|
842
|
+
"RESPONSE": [
|
|
843
|
+
"retro",
|
|
844
|
+
"reserve",
|
|
845
|
+
"report"
|
|
721
846
|
]
|
|
722
847
|
}
|
|
723
848
|
},
|