@radicaltools/cli 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +353 -33
  2. package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
  3. package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
  4. package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
  5. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
  6. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
  7. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
  8. package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
  9. package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
  10. package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
  11. package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
  12. package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
  13. package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
  14. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
  15. package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
  16. package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
  17. package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
  18. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
  19. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
  20. package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
  21. package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
  22. package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
  23. package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
  24. package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
  25. package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
  26. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
  27. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
  28. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
  29. package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
  30. package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
  31. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
  32. package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
  33. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
  34. package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
  35. package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
  36. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
  37. package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
  38. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
  39. package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
  40. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
  41. package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
  42. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
  43. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
  44. package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
  45. package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
  46. package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
  47. package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
  48. package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
  49. package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
  50. package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
  51. package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
  52. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
  53. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
  54. package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
  55. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
  56. package/dist/index.js +12712 -7144
  57. package/package.json +5 -3
@@ -0,0 +1,1321 @@
1
+ {
2
+ "hub": {
3
+ "id": "concern-eu-dora",
4
+ "category": "concern",
5
+ "name": "EU DORA (Digital Operational Resilience Act)",
6
+ "description": "Whether and how the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554) applies to the system, and what it then asks of the system and its team: classifying ICT-related incidents and reporting the major ones to the competent authority on time, a register of the ICT third-party services the system calls, resilience testing and threat-led penetration testing, and the contract clauses an ICT provider offers. Not the DORA delivery metrics, which are the Delivery metrics pack. The snippets are Node 20 scripts with js-yaml, jq and bash.",
7
+ "tags": [
8
+ "compliance",
9
+ "dora",
10
+ "operational resilience",
11
+ "incident reporting",
12
+ "third-party risk",
13
+ "financial services"
14
+ ],
15
+ "requiredMetamodel": "c4-ddd-governance-builtin",
16
+ "concern": {
17
+ "id": "eu-dora",
18
+ "trigger": "LIST NODES WHERE type = \"system\" AND external != true",
19
+ "why": "the organisation running this system may be a financial entity or an ICT provider to one, so whether and how the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554) applies to it has to be decided.",
20
+ "group": "compliance"
21
+ },
22
+ "sources": [
23
+ {
24
+ "title": "Regulation (EU) 2022/2554 on digital operational resilience for the financial sector (DORA)",
25
+ "url": "https://eur-lex.europa.eu/eli/reg/2022/2554/oj"
26
+ },
27
+ {
28
+ "title": "Commission Delegated Regulation (EU) 2024/1774: ICT risk management tools, methods, processes and policies, and the simplified ICT risk management framework",
29
+ "url": "https://eur-lex.europa.eu/eli/reg_del/2024/1774/oj"
30
+ },
31
+ {
32
+ "title": "Commission Delegated Regulation (EU) 2024/1772: criteria for classifying ICT-related incidents and materiality thresholds for major incidents",
33
+ "url": "https://eur-lex.europa.eu/eli/reg_del/2024/1772/oj"
34
+ },
35
+ {
36
+ "title": "Commission Delegated Regulation (EU) 2025/301: content and time limits for the initial notification and the intermediate and final reports on major ICT-related incidents",
37
+ "url": "https://eur-lex.europa.eu/eli/reg_del/2025/301/oj"
38
+ },
39
+ {
40
+ "title": "Commission Implementing Regulation (EU) 2025/302: standard forms, templates and procedures for reporting major ICT-related incidents",
41
+ "url": "https://eur-lex.europa.eu/eli/reg_impl/2025/302/oj"
42
+ },
43
+ {
44
+ "title": "Commission Implementing Regulation (EU) 2024/2956: standard templates for the register of information",
45
+ "url": "https://eur-lex.europa.eu/eli/reg_impl/2024/2956/oj"
46
+ },
47
+ {
48
+ "title": "Commission Delegated Regulation (EU) 2025/1190: threat-led penetration testing",
49
+ "url": "https://eur-lex.europa.eu/eli/reg_del/2025/1190/oj"
50
+ },
51
+ {
52
+ "title": "EBA: Digital Operational Resilience Act",
53
+ "url": "https://www.eba.europa.eu/activities/direct-supervision-and-oversight/digital-operational-resilience-act"
54
+ },
55
+ {
56
+ "title": "ESMA: Digital Operational Resilience Act (DORA)",
57
+ "url": "https://www.esma.europa.eu/esmas-activities/digital-finance-and-innovation/digital-operational-resilience-act-dora"
58
+ },
59
+ {
60
+ "title": "EIOPA: Digital Operational Resilience Act (DORA)",
61
+ "url": "https://www.eiopa.europa.eu/digital-operational-resilience-act-dora_en"
62
+ },
63
+ {
64
+ "title": "The text of DORA by article (digital-operational-resilience-act.com)",
65
+ "url": "https://www.digital-operational-resilience-act.com/"
66
+ }
67
+ ],
68
+ "templateParams": [
69
+ {
70
+ "key": "SCOPE",
71
+ "title": "Scope",
72
+ "label": "How does the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554) apply to the organisation running this system?",
73
+ "hint": "DORA binds the financial entities of Art. 2(1)(a) to (t) (banks, payment and e-money institutions, investment firms, insurers, crypto-asset service providers and the others listed) and reaches ICT third-party service providers through their clients' contracts. Art. 2(3) excludes some, and Art. 16(1) gives a few a simplified framework. The answer is the compliance officer's reading, not the team's; it decides everything that follows.",
74
+ "defaultValue": "full",
75
+ "options": [
76
+ {
77
+ "value": "full",
78
+ "label": "a financial entity under the full framework",
79
+ "description": "A financial entity of Art. 2(1)(a) to (t) that is not among those of Art. 16(1): Articles 5 to 15 and Title II of Delegated Regulation (EU) 2024/1774 apply, with incident reporting, the register of information, yearly resilience testing and, if named, threat-led penetration testing. Pick it when the organisation holds such a licence and is not small and non-interconnected or exempted. A microenterprise (Art. 3(60)) picks it too; DORA exempts it from the yearly test (Art. 24(6)) and has it test by a risk-based plan (Art. 25(3)), so the yearly test here is more than it needs."
80
+ },
81
+ {
82
+ "value": "simplified",
83
+ "label": "a financial entity under the simplified framework (Art. 16)",
84
+ "description": "Small and non-interconnected investment firms, payment and e-money institutions exempted under their directives, the exempted credit institutions of Art. 16(1), and small institutions for occupational retirement provision: Articles 5 to 15 give way to Art. 16 and Title III of Delegated Regulation (EU) 2024/1774, while incident reporting, the register and testing still apply and threat-led penetration testing does not (Art. 26(1)). Pick it when the compliance officer has confirmed the entity is one of those Art. 16(1) lists."
85
+ },
86
+ {
87
+ "value": "provider",
88
+ "label": "an ICT third-party service provider to financial entities",
89
+ "description": "The organisation provides ICT services (Art. 3(21)) to financial entities and is not one itself: DORA reaches it through its clients' contracts (Art. 30), and the ESAs may designate it critical (Art. 31), which puts it under a Lead Overseer. Pick it when financial entities use this system as an ICT service."
90
+ },
91
+ {
92
+ "value": "none",
93
+ "label": "outside DORA",
94
+ "description": "Not a financial entity of Art. 2(1)(a) to (t), or excluded by Art. 2(3), and providing no ICT services to financial entities. Pick it when that is the compliance officer's conclusion; the decision records the basis, and a review on a fixed cycle keeps it true when the business changes."
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "key": "TLPT",
100
+ "title": "TLPT",
101
+ "label": "Has the competent authority named the entity for threat-led penetration testing?",
102
+ "hint": "Competent authorities identify the financial entities that must carry out threat-led penetration testing (TLPT) at least every 3 years (Art. 26(1) and (8)), by the criteria of Delegated Regulation (EU) 2025/1190. Only for a financial entity under the full framework: entities under Art. 16(1) and microenterprises are excluded, and a provider takes part in its clients' tests through their contracts.",
103
+ "defaultValue": "not-named",
104
+ "options": [
105
+ {
106
+ "value": "named",
107
+ "label": "named for threat-led penetration testing",
108
+ "description": "The authority has told the entity it must carry out TLPT. Pick it when that notice has arrived; tests on live production, attestations and remediation plans follow."
109
+ },
110
+ {
111
+ "value": "not-named",
112
+ "label": "not named for threat-led penetration testing",
113
+ "description": "No such notice has arrived; the yearly resilience tests are the testing DORA asks for. Pick it until the authority names the entity; the decision records it so a later notice supersedes it."
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "key": "REPORTING",
119
+ "title": "Reporting",
120
+ "label": "Who files the reports on major ICT-related incidents with the authority?",
121
+ "hint": "The initial notification is due within 4 hours of classifying an incident as major and no later than 24 hours after becoming aware of it (Delegated Regulation (EU) 2025/301, Art. 5); credit institutions, central counterparties and trading venue operators, among others, get no weekend extension for it (Art. 5(5)). The filing may be outsourced, but the entity stays fully responsible (DORA Art. 19(5)). Only for a financial entity.",
122
+ "defaultValue": "runbook",
123
+ "options": [
124
+ {
125
+ "value": "runbook",
126
+ "label": "our own on-call filers with a runbook",
127
+ "description": "A rota of people who can file through the authority's reporting channel at any hour, a runbook with the thresholds, deadlines and forms, and a yearly dry run. Pick it when the organisation already runs on-call around the clock, or wants the reports in its own hands."
128
+ },
129
+ {
130
+ "value": "outsourced",
131
+ "label": "a reporting service provider (Art. 19(5))",
132
+ "description": "A third party files the reports under a contract that holds it to the deadlines; the on-call engineer classifies and hands over. Pick it when no one in-house can file within 4 hours at any hour, or a group company files for the whole group."
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ "key": "REGISTER",
138
+ "title": "Register",
139
+ "label": "Where is the register of information kept?",
140
+ "hint": "Art. 28(3) asks for a register of every contractual arrangement for ICT services, reported to the authority at least yearly on the templates of Implementing Regulation (EU) 2024/2956 (as xBRL-CSV, per the ESAs' reporting package). Either way, the external systems in the architecture model are the check that nothing the system calls is missing. Only for a financial entity.",
141
+ "defaultValue": "model",
142
+ "options": [
143
+ {
144
+ "value": "model",
145
+ "label": "a register file in the repository, checked against the model",
146
+ "description": "compliance/dora/register.yaml holds one entry per ICT third-party service, named by the external system's label in the architecture model, and the build fails when the system calls an external system without one. Pick it when this system holds most of the entity's ICT arrangements and engineers keep them current."
147
+ },
148
+ {
149
+ "value": "grc",
150
+ "label": "a GRC tool, reconciled with the model",
151
+ "description": "The register lives in the organisation's GRC or third-party risk tool, which produces the report for the authority; a nightly CSV export is compared with the model's external systems. Pick it when procurement and compliance already keep the contracts of the whole entity there."
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "key": "AUTHORITY",
157
+ "label": "Which competent authority receives the incident reports and the register (for example BaFin, the Central Bank of Ireland, KNF)? (a financial entity only)",
158
+ "defaultValue": "the competent authority"
159
+ },
160
+ {
161
+ "key": "CLASSIFY_HOURS",
162
+ "label": "Within how many hours of becoming aware of an ICT-related incident is it classified? Keep it well under 24: a major one must be notified no later than 24 hours after becoming aware (a financial entity only)",
163
+ "defaultValue": "4",
164
+ "type": "number"
165
+ },
166
+ {
167
+ "key": "TEST_MONTHS",
168
+ "label": "How many months may pass between resilience tests of a system supporting critical or important functions (at most 12)? (a financial entity only)",
169
+ "defaultValue": "12",
170
+ "type": "number"
171
+ },
172
+ {
173
+ "key": "TLPT_MONTHS",
174
+ "label": "How many months may pass between threat-led penetration tests (36, unless the authority sets another frequency)? (named for threat-led penetration testing only)",
175
+ "defaultValue": "36",
176
+ "type": "number"
177
+ },
178
+ {
179
+ "key": "SCOPE_REVIEW_MONTHS",
180
+ "label": "How many months may pass before the DORA scope decision is reviewed again?",
181
+ "defaultValue": "12",
182
+ "type": "number"
183
+ },
184
+ {
185
+ "key": "CLIENT_NOTICE_HOURS",
186
+ "label": "Within how many hours of detecting an incident on a service they use are financial-entity clients told, as the contracts set? (an ICT third-party service provider only)",
187
+ "defaultValue": "4",
188
+ "type": "number"
189
+ }
190
+ ]
191
+ },
192
+ "nodes": [
193
+ {
194
+ "id": "need",
195
+ "type": "need",
196
+ "label": "Operational resilience the supervisor can verify",
197
+ "x": 0,
198
+ "y": 0,
199
+ "kind": "brief",
200
+ "source": "Hub concern pack: EU DORA (Digital Operational Resilience Act)",
201
+ "description": "The organisation that runs this system may be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), as a financial entity or as an ICT provider to one. Where it is, the team must classify ICT-related incidents and report the major ones to the competent authority within hours, keep a register of the ICT services the system buys, test the system on a regulatory cycle and hold contracts that say what DORA requires, and it must be able to show all of it at any time. This pack describes what the system and its team do and how they prove it; it is not legal advice, and whether and how DORA applies is for the organisation's compliance officer and legal counsel to decide. The snippets assume the records under compliance/dora/ (scope.yaml, register.yaml or subcontractors.yaml, resilience-tests.yaml), the runbook at docs/dora/incident-reporting.md, the contract addendum at contracts/dora-addendum.md, the architecture model as a Radical Markdown folder under architecture/, the incident tool's export at reports/incidents.json, and the checks under tools/dora/ (Node 20 with js-yaml and csv-parse, jq)."
202
+ },
203
+ {
204
+ "id": "req-scope",
205
+ "type": "requirement",
206
+ "label": "DORA scope recorded and reviewed",
207
+ "x": 260,
208
+ "y": 0,
209
+ "ears_type": "ubiquitous",
210
+ "action": "keep the decision on how the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554) applies to the organisation running it in compliance/dora/scope.yaml, with the scope, its basis in the articles of the Regulation, who reviewed it and when, and review it at least every {{SCOPE_REVIEW_MONTHS}} months and whenever the organisation gains a licence, a financial-entity client or a designation",
211
+ "rationale": "Who DORA binds follows from the licences listed in Art. 2(1), the exclusions of Art. 2(3), the simplified framework of Art. 16(1) and the designation of critical ICT providers under Art. 31; each can change with the business, and a scope nobody wrote down cannot be reviewed."
212
+ },
213
+ {
214
+ "id": "req-classify",
215
+ "type": "requirement",
216
+ "label": "ICT incidents classified",
217
+ "x": 260,
218
+ "y": 130,
219
+ "ears_type": "event-driven",
220
+ "trigger": "an ICT-related incident is detected or reported",
221
+ "action": "record it in the incident tool and classify it against the criteria of DORA Art. 18(1) and the materiality thresholds of Delegated Regulation (EU) 2024/1772 within {{CLASSIFY_HOURS}} hours of becoming aware of it, recording which thresholds were met and whether it is major",
222
+ "rationale": "DORA Art. 17 asks for a process that records and classifies every ICT-related incident and Art. 18(1) names the criteria; Delegated Regulation (EU) 2024/1772 Art. 8 makes an incident major when it affects critical services and either meets the threshold for malicious unauthorised access (Art. 9(5)(b)) or two other thresholds. The reporting clock starts at awareness, so a late classification eats the time to report.",
223
+ "hubWhen": {
224
+ "SCOPE": [
225
+ "full",
226
+ "simplified"
227
+ ]
228
+ }
229
+ },
230
+ {
231
+ "id": "req-report",
232
+ "type": "requirement",
233
+ "label": "Major incidents reported on time",
234
+ "x": 260,
235
+ "y": 260,
236
+ "ears_type": "event-driven",
237
+ "trigger": "an ICT-related incident is classified as major",
238
+ "action": "send {{AUTHORITY}} the initial notification within 4 hours of the classification and no later than 24 hours after becoming aware of the incident (within 4 hours of a classification made later than that), an intermediate report within 72 hours of the initial notification and an updated one once regular activities are recovered, and the final report within one month of the latest intermediate report, on the templates of Implementing Regulation (EU) 2025/302",
239
+ "rationale": "DORA Art. 19(1) and (4) require the three reports; Delegated Regulation (EU) 2025/301 Art. 5 sets their time limits, with an extension to noon of the next working day for deadlines on weekends and bank holidays that does not cover the first two reports of credit institutions, central counterparties and trading venue operators (Art. 5(4) and (5)). Holding to the deadlines without the extension is always on time.",
240
+ "hubWhen": {
241
+ "SCOPE": [
242
+ "full",
243
+ "simplified"
244
+ ]
245
+ }
246
+ },
247
+ {
248
+ "id": "req-runbook",
249
+ "type": "requirement",
250
+ "label": "Reporting runbook ready",
251
+ "x": 260,
252
+ "y": 390,
253
+ "ears_type": "ubiquitous",
254
+ "action": "keep a runbook at docs/dora/incident-reporting.md that names {{AUTHORITY}}, its reporting channel, the classification criteria and thresholds, the three deadlines, the report templates and who files at any hour, so that whoever is on call can file without asking anyone",
255
+ "rationale": "DORA Art. 17(3) asks for roles and responsibilities and communication plans in the incident process, and Art. 19(5) leaves the entity fully responsible even when filing is outsourced; at 03:00 the runbook is what the person on call has.",
256
+ "hubWhen": {
257
+ "SCOPE": [
258
+ "full",
259
+ "simplified"
260
+ ]
261
+ }
262
+ },
263
+ {
264
+ "id": "req-clients",
265
+ "type": "requirement",
266
+ "label": "Clients told of major incidents",
267
+ "x": 260,
268
+ "y": 520,
269
+ "ears_type": "event-driven",
270
+ "trigger": "a major ICT-related incident has an impact on the financial interests of clients",
271
+ "action": "inform those clients without undue delay of the measures taken to limit its adverse effects, and record when they were informed",
272
+ "rationale": "DORA Art. 19(3) requires it as soon as the entity becomes aware of the incident; the record is how the entity shows it did.",
273
+ "hubWhen": {
274
+ "SCOPE": [
275
+ "full",
276
+ "simplified"
277
+ ]
278
+ }
279
+ },
280
+ {
281
+ "id": "req-register",
282
+ "type": "requirement",
283
+ "label": "Every ICT service in the register",
284
+ "x": 260,
285
+ "y": 650,
286
+ "ears_type": "ubiquitous",
287
+ "action": "keep a register-of-information entry for every ICT third-party service the system uses, that is every external system the system or its parts call in the architecture model, with the contractual arrangement reference, the provider's LEI or EUID, the type of ICT service (S01 to S19 of Annex III of Implementing Regulation (EU) 2024/2956), the function it supports, whether that function is critical or important, and the countries where the service is provided and its data kept",
288
+ "rationale": "DORA Art. 28(3) requires a register of all contractual arrangements for ICT services, distinguishing those that support critical or important functions; Implementing Regulation (EU) 2024/2956 keys it by the arrangement reference, the provider's identifier, the function and the type of ICT service, and Art. 30(2)(b) asks for the locations. An integration added in code is a new arrangement the register must show.",
289
+ "hubWhen": {
290
+ "SCOPE": [
291
+ "full",
292
+ "simplified"
293
+ ]
294
+ }
295
+ },
296
+ {
297
+ "id": "req-critical-contracts",
298
+ "type": "requirement",
299
+ "label": "Critical services under full contracts",
300
+ "x": 260,
301
+ "y": 780,
302
+ "ears_type": "ubiquitous",
303
+ "action": "hold, for every ICT third-party service that supports a critical or important function, a contract with the clauses of DORA Art. 30(3) (service levels with quantitative targets, notice and reporting obligations, business continuity testing, participation in TLPT, audit and inspection rights, an exit strategy with a transition period) and an exit plan named in its register entry",
304
+ "rationale": "DORA Art. 30(3) lists the extra clauses for services supporting critical or important functions and Art. 28(8) requires documented exit strategies for them; the register entry is where an engineer sees that a service is critical.",
305
+ "hubWhen": {
306
+ "SCOPE": [
307
+ "full",
308
+ "simplified"
309
+ ]
310
+ }
311
+ },
312
+ {
313
+ "id": "req-register-submit",
314
+ "type": "requirement",
315
+ "label": "Register submitted to the authority",
316
+ "x": 260,
317
+ "y": 910,
318
+ "ears_type": "event-driven",
319
+ "trigger": "the competent authority's yearly reporting date for the register comes, or the authority asks for the register",
320
+ "action": "submit the register to {{AUTHORITY}} in the format it requires, and inform it in good time of any planned arrangement for ICT services supporting a critical or important function",
321
+ "rationale": "DORA Art. 28(3) requires reporting at least yearly, making the full register available on request, and informing the authority of planned arrangements for critical or important functions.",
322
+ "unchecked": "The compliance officer submits the register on the authority's yearly reporting date and tells it of planned arrangements for critical or important functions; the authority's acknowledgement is the evidence, and no build can see it.",
323
+ "hubWhen": {
324
+ "SCOPE": [
325
+ "full",
326
+ "simplified"
327
+ ]
328
+ }
329
+ },
330
+ {
331
+ "id": "req-testing",
332
+ "type": "requirement",
333
+ "label": "Critical systems tested on the cycle",
334
+ "x": 260,
335
+ "y": 1040,
336
+ "ears_type": "ubiquitous",
337
+ "action": "test every ICT system and application supporting critical or important functions at least every {{TEST_MONTHS}} months under a digital operational resilience testing programme, by testers independent of its team, with tests of the kinds DORA Art. 25(1) lists chosen by risk, record each test in compliance/dora/resilience-tests.yaml, and fix each finding by the date its priority sets",
338
+ "rationale": "DORA Art. 24(6) requires tests at least yearly of all ICT systems and applications supporting critical or important functions, Art. 24(4) independent testers, internal or external, Art. 24(5) procedures to prioritise and remedy what the tests reveal, and Art. 25(1) lists the kinds of test.",
339
+ "hubWhen": {
340
+ "SCOPE": [
341
+ "full",
342
+ "simplified"
343
+ ]
344
+ }
345
+ },
346
+ {
347
+ "id": "req-tlpt",
348
+ "type": "requirement",
349
+ "label": "Threat-led penetration test on the cycle",
350
+ "x": 260,
351
+ "y": 1170,
352
+ "ears_type": "ubiquitous",
353
+ "action": "carry out threat-led penetration testing at least every {{TLPT_MONTHS}} months on the live production systems supporting several or all critical or important functions, under Delegated Regulation (EU) 2025/1190, with testers meeting DORA Art. 27 and the ICT third-party providers of those functions taking part, and notify {{AUTHORITY}} of the attestation each test ends with",
354
+ "rationale": "DORA Art. 26(1) requires TLPT at least every 3 years of the entities the authority identifies, Art. 26(2) on live production systems supporting critical or important functions, Art. 26(3) with their ICT providers taking part, and Art. 26(7) an attestation the entity notifies; Art. 27 sets the testers' requirements.",
355
+ "hubWhen": {
356
+ "SCOPE": [
357
+ "full"
358
+ ],
359
+ "TLPT": [
360
+ "named"
361
+ ]
362
+ }
363
+ },
364
+ {
365
+ "id": "req-provider-notice",
366
+ "type": "requirement",
367
+ "label": "Clients told of incidents on their service",
368
+ "x": 260,
369
+ "y": 1300,
370
+ "ears_type": "event-driven",
371
+ "trigger": "an ICT-related incident affects a service that financial-entity clients use",
372
+ "action": "tell the affected clients within {{CLIENT_NOTICE_HOURS}} hours of detecting it, with the number of their clients affected, the duration and downtime, data losses, the Member States affected and the economic impact, so that they can classify it under Delegated Regulation (EU) 2024/1772",
373
+ "rationale": "DORA Art. 30(2)(f) obliges the provider to assist its clients when an ICT incident related to its service occurs; the clients need these facts for the criteria of Art. 18(1) and must notify a major incident within 4 hours of classifying it.",
374
+ "hubWhen": {
375
+ "SCOPE": [
376
+ "provider"
377
+ ]
378
+ }
379
+ },
380
+ {
381
+ "id": "req-subcontractors",
382
+ "type": "requirement",
383
+ "label": "Subcontractors known to clients",
384
+ "x": 260,
385
+ "y": 1430,
386
+ "ears_type": "ubiquitous",
387
+ "action": "keep a list of the ICT subcontractors the service relies on, that is every external system it calls in the architecture model, with the legal entity, the services, the locations of data and the client-facing functions each supports, and give it to clients when it changes",
388
+ "rationale": "DORA Art. 30(2)(a) and (b) put the conditions for subcontracting and the locations of services and data into the clients' contracts, and Implementing Regulation (EU) 2024/2956 Art. 2 has clients rank the providers in their supply chain; both need the provider's list.",
389
+ "hubWhen": {
390
+ "SCOPE": [
391
+ "provider"
392
+ ]
393
+ }
394
+ },
395
+ {
396
+ "id": "req-provider-contract",
397
+ "type": "requirement",
398
+ "label": "Contract addendum covers DORA",
399
+ "x": 260,
400
+ "y": 1560,
401
+ "ears_type": "ubiquitous",
402
+ "action": "offer financial-entity clients a contract addendum with a section for each clause DORA Art. 30(2) requires and, for services supporting their critical or important functions, each clause of Art. 30(3)",
403
+ "rationale": "DORA Art. 30 lists what the clients' contracts must hold; one addendum kept with the service is one promise to keep instead of one per client.",
404
+ "hubWhen": {
405
+ "SCOPE": [
406
+ "provider"
407
+ ]
408
+ }
409
+ },
410
+ {
411
+ "id": "sc-scope",
412
+ "type": "scenario",
413
+ "label": "Scope record kept current",
414
+ "x": 520,
415
+ "y": 0,
416
+ "given": "compliance/dora/scope.yaml",
417
+ "when": "the build runs",
418
+ "then": "it fails when the scope, its basis, the reviewer or the review date is missing, or the review is older than {{SCOPE_REVIEW_MONTHS}} months"
419
+ },
420
+ {
421
+ "id": "sc-classify",
422
+ "type": "scenario",
423
+ "label": "Incident classified in time",
424
+ "x": 520,
425
+ "y": 130,
426
+ "given": "an ICT-related incident the entity became aware of",
427
+ "when": "{{CLASSIFY_HOURS}} hours have passed",
428
+ "then": "the incident record holds a classification, the thresholds met and whether it is major, or the daily check reports it as classified late",
429
+ "hubWhen": {
430
+ "SCOPE": [
431
+ "full",
432
+ "simplified"
433
+ ]
434
+ }
435
+ },
436
+ {
437
+ "id": "sc-report",
438
+ "type": "scenario",
439
+ "label": "Major incident reported on time",
440
+ "x": 520,
441
+ "y": 260,
442
+ "given": "an incident classified as major 2 hours after the entity became aware of it",
443
+ "when": "the reports are filed",
444
+ "then": "the initial notification is filed within 4 hours of the classification, the intermediate report within 72 hours of the initial notification, and the final report within one month of the latest intermediate report",
445
+ "hubWhen": {
446
+ "SCOPE": [
447
+ "full",
448
+ "simplified"
449
+ ]
450
+ }
451
+ },
452
+ {
453
+ "id": "sc-runbook",
454
+ "type": "scenario",
455
+ "label": "Runbook names what the filer needs",
456
+ "x": 520,
457
+ "y": 390,
458
+ "given": "the runbook",
459
+ "when": "the build runs",
460
+ "then": "it fails unless the runbook names {{AUTHORITY}}, the regulations, the 4-hour, 24-hour, 72-hour and one-month deadlines and has sections on classification, the reporting channel and who files",
461
+ "hubWhen": {
462
+ "SCOPE": [
463
+ "full",
464
+ "simplified"
465
+ ]
466
+ }
467
+ },
468
+ {
469
+ "id": "sc-clients",
470
+ "type": "scenario",
471
+ "label": "Affected clients informed",
472
+ "x": 520,
473
+ "y": 520,
474
+ "given": "a major incident that affected clients' payments",
475
+ "when": "the incident record is checked",
476
+ "then": "it holds the time the clients were informed, or the daily check reports it",
477
+ "hubWhen": {
478
+ "SCOPE": [
479
+ "full",
480
+ "simplified"
481
+ ]
482
+ }
483
+ },
484
+ {
485
+ "id": "sc-register",
486
+ "type": "scenario",
487
+ "label": "New integration needs an entry",
488
+ "x": 520,
489
+ "y": 650,
490
+ "given": "a change that adds a call from the system to an external system in the architecture model",
491
+ "when": "the build runs",
492
+ "then": "it fails until the register has an entry for that external system with every field filled",
493
+ "hubWhen": {
494
+ "SCOPE": [
495
+ "full",
496
+ "simplified"
497
+ ]
498
+ }
499
+ },
500
+ {
501
+ "id": "sc-critical-contracts",
502
+ "type": "scenario",
503
+ "label": "Critical service without exit plan refused",
504
+ "x": 520,
505
+ "y": 780,
506
+ "given": "a register entry marked critical",
507
+ "when": "it has no exit plan or no Art. 30(3) clauses",
508
+ "then": "the register check fails naming the entry",
509
+ "hubWhen": {
510
+ "SCOPE": [
511
+ "full",
512
+ "simplified"
513
+ ]
514
+ }
515
+ },
516
+ {
517
+ "id": "sc-register-submit",
518
+ "type": "scenario",
519
+ "label": "Register submitted on the reporting date",
520
+ "x": 520,
521
+ "y": 910,
522
+ "given": "the authority's reporting date for the register",
523
+ "when": "it arrives",
524
+ "then": "the register has been submitted and the authority's acknowledgement is kept with it",
525
+ "hubWhen": {
526
+ "SCOPE": [
527
+ "full",
528
+ "simplified"
529
+ ]
530
+ }
531
+ },
532
+ {
533
+ "id": "sc-testing",
534
+ "type": "scenario",
535
+ "label": "Overdue test fails the check",
536
+ "x": 520,
537
+ "y": 1040,
538
+ "given": "a system supporting a critical function whose last test is {{TEST_MONTHS}} months and a day old",
539
+ "when": "the check runs",
540
+ "then": "it fails naming the system, and it also fails on any finding open past its due date",
541
+ "hubWhen": {
542
+ "SCOPE": [
543
+ "full",
544
+ "simplified"
545
+ ]
546
+ }
547
+ },
548
+ {
549
+ "id": "sc-tlpt",
550
+ "type": "scenario",
551
+ "label": "TLPT overdue",
552
+ "x": 520,
553
+ "y": 1170,
554
+ "given": "a last threat-led penetration test that ended {{TLPT_MONTHS}} months and a day ago",
555
+ "when": "the check runs",
556
+ "then": "it fails, and it also fails when the last test has no attestation",
557
+ "hubWhen": {
558
+ "SCOPE": [
559
+ "full"
560
+ ],
561
+ "TLPT": [
562
+ "named"
563
+ ]
564
+ }
565
+ },
566
+ {
567
+ "id": "sc-provider-notice",
568
+ "type": "scenario",
569
+ "label": "Clients told with the facts",
570
+ "x": 520,
571
+ "y": 1300,
572
+ "given": "an incident on a service financial-entity clients use",
573
+ "when": "{{CLIENT_NOTICE_HOURS}} hours have passed since detection",
574
+ "then": "the clients have been told, and the notice carries clients affected, duration, downtime, data losses, Member States and economic impact",
575
+ "hubWhen": {
576
+ "SCOPE": [
577
+ "provider"
578
+ ]
579
+ }
580
+ },
581
+ {
582
+ "id": "sc-subcontractors",
583
+ "type": "scenario",
584
+ "label": "New subcontractor listed",
585
+ "x": 520,
586
+ "y": 1430,
587
+ "given": "a change that adds a call from the service to an external system in the architecture model",
588
+ "when": "the build runs",
589
+ "then": "it fails until the subcontractor list has an entry for it with legal entity, services, data locations and functions",
590
+ "hubWhen": {
591
+ "SCOPE": [
592
+ "provider"
593
+ ]
594
+ }
595
+ },
596
+ {
597
+ "id": "sc-provider-contract",
598
+ "type": "scenario",
599
+ "label": "Addendum complete",
600
+ "x": 520,
601
+ "y": 1560,
602
+ "given": "contracts/dora-addendum.md",
603
+ "when": "the build runs",
604
+ "then": "it fails when a clause of Art. 30(2) or 30(3) has no section",
605
+ "hubWhen": {
606
+ "SCOPE": [
607
+ "provider"
608
+ ]
609
+ }
610
+ },
611
+ {
612
+ "id": "adr-full",
613
+ "type": "adr",
614
+ "label": "DORA applies in full",
615
+ "x": 780,
616
+ "y": 0,
617
+ "concern": "eu-dora",
618
+ "status": "accepted",
619
+ "date": "",
620
+ "context": "The organisation that runs this system may be a financial entity, or may sell ICT services to financial entities, and so be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), which applies since 17 January 2025. The forces: whether and how DORA applies is a legal reading of the organisation's licences and clients, and a wrong reading is found by the supervisor, not by the team; a major ICT-related incident has to reach the competent authority within hours of being classified, at night and at weekends, and the clock starts when the entity becomes aware of the incident, not when someone finds the runbook; the register of information has to list every ICT service bought, and every new integration in the code is a new entry that procurement may never hear of; resilience tests and threat-led penetration tests run on a regulatory cycle, not when the team has time; and the contracts with ICT providers must say what DORA requires, which engineers rarely read. The DORA delivery metrics (deployment frequency and the others) share only the name; they are the Delivery metrics pack.",
621
+ "decision": "The organisation running this system is a financial entity under the full framework of the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), applying since 17 January 2025; its ICT risk management follows DORA Articles 5 to 15 and Title II of Delegated Regulation (EU) 2024/1774, kept by the compliance function. For this system: ICT-related incidents are recorded in the incident tool (incident.io, PagerDuty or Jira Service Management, with custom fields for the criteria of Delegated Regulation (EU) 2024/1772) and classified within {{CLASSIFY_HOURS}} hours; major ones are reported to {{AUTHORITY}} on the templates of Implementing Regulation (EU) 2025/302 within the time limits of Delegated Regulation (EU) 2025/301, filed by {{REPORTING}}. The register of information: {{REGISTER}}. Systems supporting critical or important functions are tested at least every {{TEST_MONTHS}} months; the entity is {{TLPT}}. What other packs decide is only referred to here: change management, segregation of duties and emergency changes in the Definition of Done and change approval pack; backups and restore drills in Backup and recovery; availability targets in Availability; monitoring and paging in Observability; dependencies and the SBOM in Software supply chain; encryption in Encryption; audit records in Audit trail.",
622
+ "consequences": "• Every major incident costs three reports, the first within hours, day or night: someone able to file must always be reachable.\n• A new integration in a pull request needs a contract reference before it merges, which slows down trying a new SaaS.\n• Yearly resilience tests and their remediation dates become part of the plan, with independent testers to pay for.\n• The records live in the repository beside the code, so the supervisor's questions are answered from the same source the engineers change.\n• The legal reading stays with the compliance officer; the pack covers only what the system and its team must show.",
623
+ "alternatives": "1. The simplified framework of Art. 16: less ICT risk management to document, but only for the entities Art. 16(1) lists.\n2. DORA as a yearly compliance project outside engineering: cheaper day to day, but the register and the runbook drift from the system between audits.",
624
+ "hubWhen": {
625
+ "SCOPE": [
626
+ "full"
627
+ ]
628
+ }
629
+ },
630
+ {
631
+ "id": "adr-simplified",
632
+ "type": "adr",
633
+ "label": "DORA applies with the simplified framework",
634
+ "x": 780,
635
+ "y": 130,
636
+ "concern": "eu-dora",
637
+ "status": "accepted",
638
+ "date": "",
639
+ "context": "The organisation that runs this system may be a financial entity, or may sell ICT services to financial entities, and so be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), which applies since 17 January 2025. The forces: whether and how DORA applies is a legal reading of the organisation's licences and clients, and a wrong reading is found by the supervisor, not by the team; a major ICT-related incident has to reach the competent authority within hours of being classified, at night and at weekends, and the clock starts when the entity becomes aware of the incident, not when someone finds the runbook; the register of information has to list every ICT service bought, and every new integration in the code is a new entry that procurement may never hear of; resilience tests and threat-led penetration tests run on a regulatory cycle, not when the team has time; and the contracts with ICT providers must say what DORA requires, which engineers rarely read. The DORA delivery metrics (deployment frequency and the others) share only the name; they are the Delivery metrics pack.",
640
+ "decision": "The organisation running this system is a financial entity under the simplified ICT risk management framework of the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), applying since 17 January 2025: Art. 16 and Title III of Delegated Regulation (EU) 2024/1774 replace Articles 5 to 15, kept by the compliance function. Incident reporting, the register of information and resilience testing apply as to any financial entity, and threat-led penetration testing does not (Art. 26(1)). For this system: ICT-related incidents are recorded in the incident tool (incident.io, PagerDuty or Jira Service Management, with custom fields for the criteria of Delegated Regulation (EU) 2024/1772) and classified within {{CLASSIFY_HOURS}} hours; major ones are reported to {{AUTHORITY}} on the templates of Implementing Regulation (EU) 2025/302 within the time limits of Delegated Regulation (EU) 2025/301, filed by {{REPORTING}}. The register of information: {{REGISTER}}. Systems supporting critical or important functions are tested at least every {{TEST_MONTHS}} months. What other packs decide is only referred to here: change management, segregation of duties and emergency changes in the Definition of Done and change approval pack; backups and restore drills in Backup and recovery; availability targets in Availability; monitoring and paging in Observability; dependencies and the SBOM in Software supply chain; encryption in Encryption; audit records in Audit trail.",
641
+ "consequences": "• Less to document for ICT risk management, but the same incident deadlines as the largest bank.\n• A new integration in a pull request needs a contract reference before it merges.\n• No threat-led penetration testing; yearly resilience tests still need independent testers.\n• Growth or a change of licence can end the simplified framework: the scope review has to catch it.",
642
+ "alternatives": "1. The full framework anyway: more documentation than DORA asks, a head start if the entity grows out of Art. 16(1).\n2. Treating a small entity as out of scope: Art. 16 eases the framework, it does not remove reporting, the register or testing.",
643
+ "hubWhen": {
644
+ "SCOPE": [
645
+ "simplified"
646
+ ]
647
+ }
648
+ },
649
+ {
650
+ "id": "adr-provider",
651
+ "type": "adr",
652
+ "label": "DORA reaches us through our clients",
653
+ "x": 780,
654
+ "y": 260,
655
+ "concern": "eu-dora",
656
+ "status": "accepted",
657
+ "date": "",
658
+ "context": "The organisation that runs this system may be a financial entity, or may sell ICT services to financial entities, and so be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), which applies since 17 January 2025. The forces: whether and how DORA applies is a legal reading of the organisation's licences and clients, and a wrong reading is found by the supervisor, not by the team; a major ICT-related incident has to reach the competent authority within hours of being classified, at night and at weekends, and the clock starts when the entity becomes aware of the incident, not when someone finds the runbook; the register of information has to list every ICT service bought, and every new integration in the code is a new entry that procurement may never hear of; resilience tests and threat-led penetration tests run on a regulatory cycle, not when the team has time; and the contracts with ICT providers must say what DORA requires, which engineers rarely read. The DORA delivery metrics (deployment frequency and the others) share only the name; they are the Delivery metrics pack.",
659
+ "decision": "The organisation provides ICT services to financial entities and is not one itself: the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554) reaches it through its clients' contracts (Art. 30) until the ESAs designate it critical under Art. 31, which puts it under a Lead Overseer and supersedes this decision. The team offers a DORA addendum at contracts/dora-addendum.md with each clause of Art. 30(2) and (3); keeps the list of its ICT subcontractors at compliance/dora/subcontractors.yaml, checked against the external systems in the architecture model, for the clients' registers; tells affected clients of an incident within {{CLIENT_NOTICE_HOURS}} hours with the facts they need to classify it; and takes part in their threat-led penetration tests where a contract for a critical or important function asks. What other packs decide is only referred to here: change management, segregation of duties and emergency changes in the Definition of Done and change approval pack; backups and restore drills in Backup and recovery; availability targets in Availability; monitoring and paging in Observability; dependencies and the SBOM in Software supply chain; encryption in Encryption; audit records in Audit trail.",
660
+ "consequences": "• Clients, their auditors and their authorities may inspect and audit the service (Art. 30(3)(e)), which needs a prepared evidence room.\n• An incident notice within {{CLIENT_NOTICE_HOURS}} hours needs someone on call who can write it, at any hour.\n• Adding or changing a subcontractor becomes a notice to clients, not a purely technical change.\n• One addendum for all clients keeps one set of promises; clients with stronger demands still negotiate.\n• Designation as critical would bring direct oversight; this decision is superseded the day the ESAs designate the provider.",
661
+ "alternatives": "1. Negotiating DORA clauses client by client: no standard to maintain, and as many different promises as clients.\n2. Treating DORA as the clients' problem: their contracts still bind the provider, and a provider that cannot show the clauses loses regulated clients.",
662
+ "hubWhen": {
663
+ "SCOPE": [
664
+ "provider"
665
+ ]
666
+ }
667
+ },
668
+ {
669
+ "id": "adr-none",
670
+ "type": "adr",
671
+ "label": "Outside DORA",
672
+ "x": 780,
673
+ "y": 390,
674
+ "concern": "eu-dora",
675
+ "status": "accepted",
676
+ "date": "",
677
+ "context": "The organisation that runs this system may be a financial entity, or may sell ICT services to financial entities, and so be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), which applies since 17 January 2025. The forces: whether and how DORA applies is a legal reading of the organisation's licences and clients, and a wrong reading is found by the supervisor, not by the team; a major ICT-related incident has to reach the competent authority within hours of being classified, at night and at weekends, and the clock starts when the entity becomes aware of the incident, not when someone finds the runbook; the register of information has to list every ICT service bought, and every new integration in the code is a new entry that procurement may never hear of; resilience tests and threat-led penetration tests run on a regulatory cycle, not when the team has time; and the contracts with ICT providers must say what DORA requires, which engineers rarely read. The DORA delivery metrics (deployment frequency and the others) share only the name; they are the Delivery metrics pack. Here the compliance officer has concluded that none of it applies to the organisation.",
678
+ "decision": "The EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554) does not apply to the organisation running this system: it is not a financial entity of Art. 2(1)(a) to (t), or is excluded by Art. 2(3), and provides no ICT services to financial entities. compliance/dora/scope.yaml records the basis and who reviewed it; the record is reviewed at least every {{SCOPE_REVIEW_MONTHS}} months, and applying for a financial licence or signing a financial-entity client supersedes this decision.",
679
+ "consequences": "• No incident reports, register or resilience-testing cycle are owed under DORA.\n• A new client in the financial sector can bring DORA in through its contract overnight; sales must tell the compliance officer.\n• The scope record and its review are the only cost, and the only evidence if anyone asks.",
680
+ "alternatives": "1. Following DORA voluntarily: good practice for incident handling and supplier lists, at a cost nobody requires.\n2. Recording nothing: cheaper today, and no basis to point to when a client or an authority asks.",
681
+ "hubWhen": {
682
+ "SCOPE": [
683
+ "none"
684
+ ]
685
+ }
686
+ },
687
+ {
688
+ "id": "adr-tlpt",
689
+ "type": "adr",
690
+ "label": "Threat-led penetration testing on the authority's cycle",
691
+ "x": 780,
692
+ "y": 520,
693
+ "concern": "eu-dora",
694
+ "status": "accepted",
695
+ "date": "",
696
+ "context": "The organisation that runs this system may be a financial entity, or may sell ICT services to financial entities, and so be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), which applies since 17 January 2025. The forces: whether and how DORA applies is a legal reading of the organisation's licences and clients, and a wrong reading is found by the supervisor, not by the team; a major ICT-related incident has to reach the competent authority within hours of being classified, at night and at weekends, and the clock starts when the entity becomes aware of the incident, not when someone finds the runbook; the register of information has to list every ICT service bought, and every new integration in the code is a new entry that procurement may never hear of; resilience tests and threat-led penetration tests run on a regulatory cycle, not when the team has time; and the contracts with ICT providers must say what DORA requires, which engineers rarely read. The DORA delivery metrics (deployment frequency and the others) share only the name; they are the Delivery metrics pack.",
697
+ "decision": "The competent authority has named the entity for threat-led penetration testing: at least every {{TLPT_MONTHS}} months a test covering the critical or important functions it names runs on the live production systems supporting them, following Delegated Regulation (EU) 2025/1190 (built on the TIBER-EU framework), with threat intelligence from outside the entity and testers meeting Art. 27 (internal testers only with the authority's approval, Art. 27(2)); the ICT third-party providers of those functions take part, as their contracts require (Art. 30(3)(d)). The end date of the last test, its attestation and the functions it covered are kept in compliance/dora/scope.yaml under tlpt, and the remediation plan is tracked with the resilience-test findings.",
698
+ "consequences": "• A test takes months of preparation with a threat-intelligence provider and a red team, and a budget to match.\n• Live production is attacked on purpose: the test needs a control team and a way to stop it.\n• Findings and the remediation plan go to the authority (Art. 26(6)), so they are fixed on a schedule the authority sees.",
699
+ "alternatives": "1. Ordinary yearly penetration tests only: they do not meet Art. 26 once the entity is named.\n2. Internal testers only: possible solely with the authority's approval and external threat intelligence (Art. 27(2)).",
700
+ "hubWhen": {
701
+ "SCOPE": [
702
+ "full"
703
+ ],
704
+ "TLPT": [
705
+ "named"
706
+ ]
707
+ }
708
+ },
709
+ {
710
+ "id": "adr-no-tlpt",
711
+ "type": "adr",
712
+ "label": "Not named for threat-led penetration testing",
713
+ "x": 780,
714
+ "y": 650,
715
+ "concern": "eu-dora",
716
+ "status": "accepted",
717
+ "date": "",
718
+ "context": "The organisation that runs this system may be a financial entity, or may sell ICT services to financial entities, and so be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), which applies since 17 January 2025. The forces: whether and how DORA applies is a legal reading of the organisation's licences and clients, and a wrong reading is found by the supervisor, not by the team; a major ICT-related incident has to reach the competent authority within hours of being classified, at night and at weekends, and the clock starts when the entity becomes aware of the incident, not when someone finds the runbook; the register of information has to list every ICT service bought, and every new integration in the code is a new entry that procurement may never hear of; resilience tests and threat-led penetration tests run on a regulatory cycle, not when the team has time; and the contracts with ICT providers must say what DORA requires, which engineers rarely read. The DORA delivery metrics (deployment frequency and the others) share only the name; they are the Delivery metrics pack.",
719
+ "decision": "The competent authority has not named the entity for threat-led penetration testing (Art. 26(8)); the resilience tests every {{TEST_MONTHS}} months are the testing DORA asks for. A notice from {{AUTHORITY}} naming the entity supersedes this decision, and the first test is then planned with the authority.",
720
+ "consequences": "• No red-team test on production and no attestation to keep.\n• A notice from the authority starts a project of months: the scope review should ask whether one is likely.",
721
+ "alternatives": "1. A voluntary TIBER-style test: realistic assurance, at a cost DORA does not ask for.\n2. Waiting without a record: the notice then finds no owner.",
722
+ "hubWhen": {
723
+ "SCOPE": [
724
+ "full"
725
+ ],
726
+ "TLPT": [
727
+ "not-named"
728
+ ]
729
+ }
730
+ },
731
+ {
732
+ "id": "adr-report-runbook",
733
+ "type": "adr",
734
+ "label": "Major incidents filed by our own on-call",
735
+ "x": 780,
736
+ "y": 780,
737
+ "concern": "eu-dora",
738
+ "status": "accepted",
739
+ "date": "",
740
+ "context": "The organisation that runs this system may be a financial entity, or may sell ICT services to financial entities, and so be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), which applies since 17 January 2025. The forces: whether and how DORA applies is a legal reading of the organisation's licences and clients, and a wrong reading is found by the supervisor, not by the team; a major ICT-related incident has to reach the competent authority within hours of being classified, at night and at weekends, and the clock starts when the entity becomes aware of the incident, not when someone finds the runbook; the register of information has to list every ICT service bought, and every new integration in the code is a new entry that procurement may never hear of; resilience tests and threat-led penetration tests run on a regulatory cycle, not when the team has time; and the contracts with ICT providers must say what DORA requires, which engineers rarely read. The DORA delivery metrics (deployment frequency and the others) share only the name; they are the Delivery metrics pack.",
741
+ "decision": "At least two people trained to file with {{AUTHORITY}} are on the on-call rota around the clock, paged as the Observability pack decides; the runbook docs/dora/incident-reporting.md names the authority, its reporting channel, the thresholds of Delegated Regulation (EU) 2024/1772, the deadlines of Delegated Regulation (EU) 2025/301 and the templates of Implementing Regulation (EU) 2025/302. The on-call engineer classifies within {{CLASSIFY_HOURS}} hours of awareness and the filer submits. Once a year the filers fill the templates in a dry run from a past incident.",
742
+ "consequences": "• The reports stay in the hands of the people who know the incident.\n• Two trained filers on every rota is a real cost for a small team.\n• The dry run is the only practice; a real major incident may be the first filing.",
743
+ "alternatives": "1. A reporting service provider: filing at any hour bought in, with a hand-over to get right in the first hours.\n2. The compliance officer files alone: one person between the entity and a missed deadline.",
744
+ "hubWhen": {
745
+ "SCOPE": [
746
+ "full",
747
+ "simplified"
748
+ ],
749
+ "REPORTING": [
750
+ "runbook"
751
+ ]
752
+ }
753
+ },
754
+ {
755
+ "id": "adr-report-outsourced",
756
+ "type": "adr",
757
+ "label": "Major incidents filed by a reporting provider",
758
+ "x": 780,
759
+ "y": 910,
760
+ "concern": "eu-dora",
761
+ "status": "accepted",
762
+ "date": "",
763
+ "context": "The organisation that runs this system may be a financial entity, or may sell ICT services to financial entities, and so be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), which applies since 17 January 2025. The forces: whether and how DORA applies is a legal reading of the organisation's licences and clients, and a wrong reading is found by the supervisor, not by the team; a major ICT-related incident has to reach the competent authority within hours of being classified, at night and at weekends, and the clock starts when the entity becomes aware of the incident, not when someone finds the runbook; the register of information has to list every ICT service bought, and every new integration in the code is a new entry that procurement may never hear of; resilience tests and threat-led penetration tests run on a regulatory cycle, not when the team has time; and the contracts with ICT providers must say what DORA requires, which engineers rarely read. The DORA delivery metrics (deployment frequency and the others) share only the name; they are the Delivery metrics pack.",
764
+ "decision": "A reporting service provider files the reports with {{AUTHORITY}} under DORA Art. 19(5), under a contract that binds it to the time limits of Delegated Regulation (EU) 2025/301 at any hour and names who at the provider receives the hand-over. The on-call engineer classifies within {{CLASSIFY_HOURS}} hours of awareness and hands over through the channel in the runbook docs/dora/incident-reporting.md, which also names the authority, the thresholds and the deadlines. The entity stays fully responsible for the reports.",
765
+ "consequences": "• Filing at any hour without training filers in-house.\n• The hand-over is the weak point: facts lost or late in it are the entity's fault, not the provider's.\n• The provider is itself an ICT third-party service and needs a register entry.",
766
+ "alternatives": "1. Our own on-call filers: no hand-over, at the cost of training and rotas.\n2. A group company files for the whole group: one team, as long as it is reachable at any hour.",
767
+ "hubWhen": {
768
+ "SCOPE": [
769
+ "full",
770
+ "simplified"
771
+ ],
772
+ "REPORTING": [
773
+ "outsourced"
774
+ ]
775
+ }
776
+ },
777
+ {
778
+ "id": "adr-register-model",
779
+ "type": "adr",
780
+ "label": "Register of information beside the model",
781
+ "x": 780,
782
+ "y": 1040,
783
+ "concern": "eu-dora",
784
+ "status": "accepted",
785
+ "date": "",
786
+ "context": "The organisation that runs this system may be a financial entity, or may sell ICT services to financial entities, and so be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), which applies since 17 January 2025. The forces: whether and how DORA applies is a legal reading of the organisation's licences and clients, and a wrong reading is found by the supervisor, not by the team; a major ICT-related incident has to reach the competent authority within hours of being classified, at night and at weekends, and the clock starts when the entity becomes aware of the incident, not when someone finds the runbook; the register of information has to list every ICT service bought, and every new integration in the code is a new entry that procurement may never hear of; resilience tests and threat-led penetration tests run on a regulatory cycle, not when the team has time; and the contracts with ICT providers must say what DORA requires, which engineers rarely read. The DORA delivery metrics (deployment frequency and the others) share only the name; they are the Delivery metrics pack.",
787
+ "decision": "The register entries for this system are kept in compliance/dora/register.yaml, one per ICT third-party service, named by the external system's label in the architecture model, with the fields the register templates of Implementing Regulation (EU) 2024/2956 key on (arrangement reference, provider LEI or EUID, function, type of ICT service S01 to S19) plus criticality, data locations and, for critical or important functions, the exit plan and the Art. 30(3) clauses. Every pull request runs a script that fails when the system calls an external system with no complete entry. The compliance officer builds the yearly xBRL-CSV report for {{AUTHORITY}} from this file.",
788
+ "consequences": "• A new integration cannot merge without its register entry: engineers and procurement meet in the pull request.\n• The file holds contract data in the code repository; who may read it follows the repository's access.\n• The report for the authority is built from a file, so a conversion step to the ESAs' format is still needed.",
789
+ "alternatives": "1. A GRC tool reconciled with the model: one register for the whole entity, with an export to keep in step.\n2. A spreadsheet kept by procurement: no link to what the code calls, found incomplete at the yearly report.",
790
+ "hubWhen": {
791
+ "SCOPE": [
792
+ "full",
793
+ "simplified"
794
+ ],
795
+ "REGISTER": [
796
+ "model"
797
+ ]
798
+ }
799
+ },
800
+ {
801
+ "id": "adr-register-grc",
802
+ "type": "adr",
803
+ "label": "Register of information in a GRC tool",
804
+ "x": 780,
805
+ "y": 1170,
806
+ "concern": "eu-dora",
807
+ "status": "accepted",
808
+ "date": "",
809
+ "context": "The organisation that runs this system may be a financial entity, or may sell ICT services to financial entities, and so be bound by the EU Digital Operational Resilience Act (DORA, Regulation (EU) 2022/2554), which applies since 17 January 2025. The forces: whether and how DORA applies is a legal reading of the organisation's licences and clients, and a wrong reading is found by the supervisor, not by the team; a major ICT-related incident has to reach the competent authority within hours of being classified, at night and at weekends, and the clock starts when the entity becomes aware of the incident, not when someone finds the runbook; the register of information has to list every ICT service bought, and every new integration in the code is a new entry that procurement may never hear of; resilience tests and threat-led penetration tests run on a regulatory cycle, not when the team has time; and the contracts with ICT providers must say what DORA requires, which engineers rarely read. The DORA delivery metrics (deployment frequency and the others) share only the name; they are the Delivery metrics pack.",
810
+ "decision": "The register of information lives in the organisation's GRC or third-party risk tool, which produces the yearly report for {{AUTHORITY}}. A nightly job exports the register to reports/register-export.csv (columns provider, contract_reference, provider_id, ict_service_type, function_id, critical, data_locations, exit_plan, clauses_art_30_3, with provider holding the external system's label in the architecture model) and a script fails when the system calls an external system the export does not cover completely.",
811
+ "consequences": "• One register for the whole entity, kept by the people who own the contracts.\n• Engineers find out about a missing entry from a red nightly job, not before the merge.\n• The export's columns are a contract between the GRC tool and the check; a renamed column breaks it.",
812
+ "alternatives": "1. A register file in the repository: checked before the merge, but only for the systems whose repositories hold one.\n2. No reconciliation with the model: the register lists what procurement bought, not what the code calls.",
813
+ "hubWhen": {
814
+ "SCOPE": [
815
+ "full",
816
+ "simplified"
817
+ ],
818
+ "REGISTER": [
819
+ "grc"
820
+ ]
821
+ }
822
+ },
823
+ {
824
+ "id": "ff-scope",
825
+ "type": "fitness-fn",
826
+ "label": "DORA scope record current",
827
+ "x": 1040,
828
+ "y": 0,
829
+ "characteristic": "other",
830
+ "scope": "atomic",
831
+ "cadence": "temporal",
832
+ "every": "365d",
833
+ "invocation": "manual",
834
+ "description": "A script run in CI on every pull request and monthly on a schedule reads the scope record and fails when a field is missing or the last review is older than {{SCOPE_REVIEW_MONTHS}} months, so a stale scope shows up before the supervisor asks.\n\nThreshold: compliance/dora/scope.yaml has a scope, a basis, a reviewer and a review date at most {{SCOPE_REVIEW_MONTHS}} months old\n\nTool: Node 20 with js-yaml, in a CI step\n\n```js\n// tools/dora/scope-check.mjs — node tools/dora/scope-check.mjs compliance/dora/scope.yaml\nimport { readFileSync } from 'node:fs'\nimport yaml from 'js-yaml'\n\nconst MONTH_MS = 30.44 * 86_400_000\nconst scope = yaml.load(readFileSync(process.argv[2], 'utf8'), { schema: yaml.JSON_SCHEMA }) ?? {}\nconst problems = ['scope', 'basis', 'reviewed', 'reviewed_by'].filter((k) => !scope[k]).map((k) => `no ${k}`)\nconst age = (Date.now() - new Date(scope.reviewed).getTime()) / MONTH_MS\nif (!(age <= {{SCOPE_REVIEW_MONTHS}})) problems.push(`last reviewed ${scope.reviewed}: more than {{SCOPE_REVIEW_MONTHS}} months ago`)\nif (problems.length) { console.error(`compliance/dora/scope.yaml: ${problems.join('; ')}`); process.exit(1) }\n```"
835
+ },
836
+ {
837
+ "id": "ff-runbook",
838
+ "type": "fitness-fn",
839
+ "label": "Reporting runbook names authority and deadlines",
840
+ "x": 1040,
841
+ "y": 130,
842
+ "characteristic": "reliability",
843
+ "scope": "atomic",
844
+ "cadence": "triggered",
845
+ "trigger": "pull-request",
846
+ "invocation": "automated",
847
+ "description": "A CI step searches the runbook for the phrases a filer needs and for its three sections; a runbook that loses a deadline or the name of the authority in an edit fails the pull request.\n\nThreshold: docs/dora/incident-reporting.md names {{AUTHORITY}}, the three regulations, the 4-hour, 24-hour, 72-hour and one-month deadlines and clients, and has sections Classification, Reporting channel and Who files\n\nTool: bash with grep, in a CI step\n\n```bash\n# CI: the incident reporting runbook names the authority, the classification rules, the deadlines and who files\nset -euo pipefail\nrunbook=docs/dora/incident-reporting.md\nmissing=0\nfor phrase in '{{AUTHORITY}}' 'Delegated Regulation (EU) 2024/1772' 'Delegated Regulation (EU) 2025/301' 'Implementing Regulation (EU) 2025/302' \\\n 'initial notification' '4 hours' '24 hours' 'intermediate report' '72 hours' 'final report' 'one month' 'clients'; do\n grep -qiF -- \"$phrase\" \"$runbook\" || { echo \"$runbook does not name: $phrase\"; missing=1; }\ndone\nfor section in 'Classification' 'Reporting channel' 'Who files'; do\n grep -qiE \"^#+ +$section\" \"$runbook\" || { echo \"$runbook has no section: $section\"; missing=1; }\ndone\nexit \"$missing\"\n```",
848
+ "hubWhen": {
849
+ "SCOPE": [
850
+ "full",
851
+ "simplified"
852
+ ]
853
+ }
854
+ },
855
+ {
856
+ "id": "ff-deadlines",
857
+ "type": "fitness-fn",
858
+ "label": "Incidents classified and reported on time",
859
+ "x": 1040,
860
+ "y": 260,
861
+ "characteristic": "reliability",
862
+ "scope": "atomic",
863
+ "cadence": "triggered",
864
+ "trigger": "nightly",
865
+ "invocation": "automated",
866
+ "description": "A daily CI job reads the incident tool's export (reports/incidents.json: id, major, aware_at, classified_at, initial_at, intermediate_at as a list, final_at, clients_affected, clients_informed_at; ISO 8601 UTC, null when not yet done) and computes each time limit of Delegated Regulation (EU) 2025/301 Art. 5(1) and (2); a report not yet filed counts as late once its time limit has passed. The weekend and bank-holiday extension of Art. 5(4) is not applied, so the check is stricter than the rule; a month is a calendar month as jq's mktime normalises it (31 January plus one month is 3 March).\n\nThreshold: 0 incidents classified later than {{CLASSIFY_HOURS}} hours after awareness; 0 major incidents with an initial notification, first intermediate report or final report past its time limit, or with affected clients and no time they were informed\n\nTool: jq 1.7 in a bash CI step, over the export of incident.io, PagerDuty or Jira Service Management\n\n```bash\n# CI, daily: reports/incidents.json is the incident tool's export (ISO 8601 UTC times, null when not yet done)\nset -euo pipefail\nlate=$(jq -r --argjson classify_h {{CLASSIFY_HOURS}} '\n def t: if . == null then null else sub(\"\\\\.[0-9]+\"; \"\") | fromdateiso8601 end;\n def late($due; $at): if $at == null then now > $due else $at > $due end;\n .[] | . as $i | (.aware_at | t) as $aware | (.classified_at | t) as $cls | (.initial_at | t) as $init\n | ((.intermediate_at // []) | map(t)) as $mids\n | [ (select(late($aware + $classify_h * 3600; $cls)) | \"classified late\"),\n (select(.major) | (if $cls - $aware > 86400 then $cls + 14400 else ([$cls + 14400, $aware + 86400] | min) end) as $due\n | select(late($due; $init)) | \"initial notification late\"),\n (select(.major and $init != null) | select(late($init + 259200; $mids[0])) | \"intermediate report late\"),\n (select(.major and ($mids | length) > 0) | select(late($mids | max | gmtime | .[1] += 1 | mktime; .final_at | t)) | \"final report late\"),\n (select(.major and .clients_affected and .clients_informed_at == null) | \"clients not informed\") ]\n | select(length > 0) | \"\\($i.id): \\(join(\", \"))\"' reports/incidents.json)\n[ -z \"$late\" ] || { echo \"$late\"; exit 1; }\n```",
867
+ "hubWhen": {
868
+ "SCOPE": [
869
+ "full",
870
+ "simplified"
871
+ ]
872
+ }
873
+ },
874
+ {
875
+ "id": "ff-register-model",
876
+ "type": "fitness-fn",
877
+ "label": "Every called external system in the register file",
878
+ "x": 1040,
879
+ "y": 390,
880
+ "characteristic": "other",
881
+ "scope": "atomic",
882
+ "cadence": "triggered",
883
+ "trigger": "pull-request",
884
+ "invocation": "automated",
885
+ "description": "A script on every pull request reads the architecture model folder (nodes/**/*.md with YAML front matter, a folder's _index.md being the parent of the files beside it, and relations.json), finds each system an internal system or one of its parts calls with an interacts relation and that is marked external, and looks up its entry by label in compliance/dora/register.yaml. An entry looks like: { provider: Partner, contract_reference: CTR-2025-014, provider_id: <LEI or EUID>, ict_service_type: S19, function_id: F-PAYMENTS, critical: true, data_locations: [DE, IE], exit_plan: docs/dora/exit/partner.md, clauses_art_30_3: [service levels, notice periods, business continuity testing, TLPT participation, audit rights, exit transition period] }.\n\nThreshold: 0 external systems called by an internal system in the architecture model without a register entry; 0 entries missing contract_reference, provider_id, function_id, data_locations, a true or false critical, or an ict_service_type of S01 to S19; 0 critical entries without exit_plan and clauses_art_30_3\n\nTool: Node 20 with js-yaml, in a CI step\n\n```js\n// tools/dora/register-check.mjs — node tools/dora/register-check.mjs architecture compliance/dora/register.yaml\nimport { readFileSync, readdirSync } from 'node:fs'\nimport { dirname, join } from 'node:path'\nimport yaml from 'js-yaml'\n\nconst [model, registerFile] = process.argv.slice(2)\nconst nodes = new Map(), folders = new Map()\nfor (const file of readdirSync(join(model, 'nodes'), { recursive: true }).filter((f) => f.endsWith('.md'))) {\n const front = yaml.load(readFileSync(join(model, 'nodes', file), 'utf8').split(/^---$/m)[1])\n const index = file.endsWith('_index.md')\n nodes.set(front.id, { ...front, folder: index ? dirname(dirname(file)) : dirname(file) })\n if (index) folders.set(dirname(file), front.id)\n}\nconst systemOf = (id) => { for (let n = nodes.get(id); n; n = nodes.get(folders.get(n.folder))) if (n.type === 'system') return n }\nconst called = new Set(JSON.parse(readFileSync(join(model, 'relations.json'), 'utf8')).filter((r) => r.relationType === 'interacts')\n .map((r) => [systemOf(r.sourceId), systemOf(r.targetId)]).filter(([s, t]) => s && !s.external && t?.external).map(([, t]) => t.label))\nconst register = new Map((yaml.load(readFileSync(registerFile, 'utf8')) ?? []).map((e) => [e.provider, e]))\nconst problems = [...called].flatMap((label) => {\n const e = register.get(label)\n if (!e) return [`${label}: called in the model, no register entry`]\n const keys = ['contract_reference', 'provider_id', 'function_id', 'data_locations', ...(e.critical ? ['exit_plan', 'clauses_art_30_3'] : [])]\n return [...keys.filter((k) => !e[k]?.length), ...(typeof e.critical === 'boolean' ? [] : ['critical: true or false']),\n ...(/^S(0[1-9]|1\\d)$/.test(e.ict_service_type) ? [] : ['ict_service_type: S01 to S19'])].map((k) => `${label}: no ${k}`)\n})\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```",
886
+ "hubWhen": {
887
+ "SCOPE": [
888
+ "full",
889
+ "simplified"
890
+ ],
891
+ "REGISTER": [
892
+ "model"
893
+ ]
894
+ }
895
+ },
896
+ {
897
+ "id": "ff-register-grc",
898
+ "type": "fitness-fn",
899
+ "label": "Every called external system in the GRC register",
900
+ "x": 1040,
901
+ "y": 520,
902
+ "characteristic": "other",
903
+ "scope": "atomic",
904
+ "cadence": "triggered",
905
+ "trigger": "nightly",
906
+ "invocation": "automated",
907
+ "description": "A nightly job exports the register from the GRC tool to reports/register-export.csv with the columns the decision names, then a script reads the architecture model folder (nodes/**/*.md with YAML front matter, _index.md for a folder's own node, relations.json), finds each external system an internal system calls, and fails when the export has no complete row for it.\n\nThreshold: 0 external systems called by an internal system in the architecture model missing from the register export; 0 rows with an empty contract_reference, provider_id, ict_service_type, function_id or data_locations; 0 critical rows with an empty exit_plan or clauses_art_30_3\n\nTool: Node 20 with js-yaml and csv-parse 5, in a scheduled CI job after the GRC tool's CSV export\n\n```js\n// tools/dora/register-grc-check.mjs — node tools/dora/register-grc-check.mjs architecture reports/register-export.csv\nimport { readFileSync, readdirSync } from 'node:fs'\nimport { dirname, join } from 'node:path'\nimport yaml from 'js-yaml'\nimport { parse } from 'csv-parse/sync'\nconst [model, exportFile] = process.argv.slice(2)\nconst nodes = new Map(), folders = new Map()\nfor (const file of readdirSync(join(model, 'nodes'), { recursive: true }).filter((f) => f.endsWith('.md'))) {\n const front = yaml.load(readFileSync(join(model, 'nodes', file), 'utf8').split(/^---$/m)[1])\n const index = file.endsWith('_index.md')\n nodes.set(front.id, { ...front, folder: index ? dirname(dirname(file)) : dirname(file) })\n if (index) folders.set(dirname(file), front.id)\n}\nconst systemOf = (id) => { for (let n = nodes.get(id); n; n = nodes.get(folders.get(n.folder))) if (n.type === 'system') return n }\nconst called = new Set(JSON.parse(readFileSync(join(model, 'relations.json'), 'utf8')).filter((r) => r.relationType === 'interacts')\n .map((r) => [systemOf(r.sourceId), systemOf(r.targetId)]).filter(([s, t]) => s && !s.external && t?.external).map(([, t]) => t.label))\nconst rows = new Map(parse(readFileSync(exportFile, 'utf8'), { columns: true, skip_empty_lines: true }).map((r) => [r.provider, r]))\nconst problems = [...called].flatMap((label) => {\n const r = rows.get(label)\n if (!r) return [`${label}: called in the model, not in the GRC tool's register`]\n const critical = r.critical === 'true'\n return ['contract_reference', 'provider_id', 'ict_service_type', 'function_id', 'data_locations', ...(critical ? ['exit_plan', 'clauses_art_30_3'] : [])]\n .filter((k) => !r[k]?.trim()).map((k) => `${label}: ${k} empty in the register`)\n})\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```",
908
+ "hubWhen": {
909
+ "SCOPE": [
910
+ "full",
911
+ "simplified"
912
+ ],
913
+ "REGISTER": [
914
+ "grc"
915
+ ]
916
+ }
917
+ },
918
+ {
919
+ "id": "ff-tests",
920
+ "type": "fitness-fn",
921
+ "label": "Resilience tests on the cycle, findings fixed",
922
+ "x": 1040,
923
+ "y": 650,
924
+ "characteristic": "reliability",
925
+ "scope": "holistic",
926
+ "cadence": "temporal",
927
+ "every": "365d",
928
+ "invocation": "manual",
929
+ "description": "A monthly CI job reads compliance/dora/resilience-tests.yaml, one item per system named by its label in the architecture model: { system: Shop, critical: true, tests: [{ date: 2026-05-12, types: [vulnerability scans, scenario-based tests, penetration testing], tester: external, findings: [{ id: RT-12, priority: high, due: 2026-07-12, closed: 2026-07-01 }] }] }. It fails on an overdue test, a test that names no types or tester, and a finding open past its due date.\n\nThreshold: 0 systems marked critical without a test in the last {{TEST_MONTHS}} months; 0 tests without types and tester; 0 findings open past their due date\n\nTool: Node 20 with js-yaml, in a scheduled CI job\n\n```js\n// tools/dora/tests-check.mjs — node tools/dora/tests-check.mjs compliance/dora/resilience-tests.yaml\nimport { readFileSync } from 'node:fs'\nimport yaml from 'js-yaml'\n\nconst MONTH_MS = 30.44 * 86_400_000\nconst systems = yaml.load(readFileSync(process.argv[2], 'utf8'), { schema: yaml.JSON_SCHEMA }) ?? []\nconst problems = systems.flatMap((s) => {\n const tests = s.tests ?? []\n const last = Math.max(0, ...tests.map((t) => new Date(t.date).getTime()))\n return [\n ...(s.critical && (Date.now() - last) / MONTH_MS > {{TEST_MONTHS}} ? [`${s.system}: no resilience test in the last {{TEST_MONTHS}} months`] : []),\n ...tests.filter((t) => !t.types?.length || !t.tester).map((t) => `${s.system}: test of ${t.date} names no types or tester`),\n ...tests.flatMap((t) => t.findings ?? []).filter((f) => !f.closed && new Date(f.due) < new Date())\n .map((f) => `${s.system}: finding ${f.id} (${f.priority}) open past ${f.due}`),\n ]\n})\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```",
930
+ "hubWhen": {
931
+ "SCOPE": [
932
+ "full",
933
+ "simplified"
934
+ ]
935
+ }
936
+ },
937
+ {
938
+ "id": "ff-tlpt",
939
+ "type": "fitness-fn",
940
+ "label": "Threat-led penetration test not overdue",
941
+ "x": 1040,
942
+ "y": 780,
943
+ "characteristic": "security",
944
+ "scope": "holistic",
945
+ "cadence": "temporal",
946
+ "every": "1095d",
947
+ "invocation": "manual",
948
+ "description": "A monthly CI job reads the tlpt block of compliance/dora/scope.yaml ({ last_test_end: 2025-11-20, attestation: 2026-02-03, functions: [payments, card issuing] }) and fails when the test is overdue, has no attestation, or names no functions.\n\nThreshold: The last threat-led penetration test ended at most {{TLPT_MONTHS}} months ago, has an attestation date, and names the functions it covered\n\nTool: Node 20 with js-yaml, in a scheduled CI job\n\n```js\n// tools/dora/tlpt-check.mjs — node tools/dora/tlpt-check.mjs compliance/dora/scope.yaml\nimport { readFileSync } from 'node:fs'\nimport yaml from 'js-yaml'\n\nconst MONTH_MS = 30.44 * 86_400_000\nconst { tlpt } = yaml.load(readFileSync(process.argv[2], 'utf8'), { schema: yaml.JSON_SCHEMA }) ?? {}\nconst problems = []\nif (!tlpt?.functions?.length) problems.push('no critical or important functions named for the test')\nconst age = (Date.now() - new Date(tlpt?.last_test_end).getTime()) / MONTH_MS\nif (!(age <= {{TLPT_MONTHS}})) problems.push(`last TLPT ended ${tlpt?.last_test_end ?? 'never'}: more than {{TLPT_MONTHS}} months ago`)\nif (tlpt?.last_test_end && !tlpt.attestation) problems.push('no attestation from the authority for the last TLPT')\nif (problems.length) { console.error(`TLPT: ${problems.join('; ')}`); process.exit(1) }\n```",
949
+ "hubWhen": {
950
+ "SCOPE": [
951
+ "full"
952
+ ],
953
+ "TLPT": [
954
+ "named"
955
+ ]
956
+ }
957
+ },
958
+ {
959
+ "id": "ff-client-notice",
960
+ "type": "fitness-fn",
961
+ "label": "Clients told in time with the facts",
962
+ "x": 1040,
963
+ "y": 910,
964
+ "characteristic": "reliability",
965
+ "scope": "atomic",
966
+ "cadence": "triggered",
967
+ "trigger": "nightly",
968
+ "invocation": "automated",
969
+ "description": "A daily CI job reads the incident tool's export (reports/incidents.json: id, client_impact, detected_at, clients_notified_at, and the notice sent as an object) and fails on a late notice or one that lacks a fact the clients need for their own classification.\n\nThreshold: 0 incidents on a client-facing service where clients were told later than {{CLIENT_NOTICE_HOURS}} hours after detection, or not yet told past that; 0 notices missing clients_affected, duration_minutes, downtime_minutes, data_losses, member_states or economic_impact_eur\n\nTool: jq 1.7 in a bash CI step, over the export of incident.io, PagerDuty or Jira Service Management\n\n```bash\n# CI, daily: reports/incidents.json is the incident tool's export; client_impact marks an incident on a service financial-entity clients use\nset -euo pipefail\nlate=$(jq -r --argjson hours {{CLIENT_NOTICE_HOURS}} '\n def t: sub(\"\\\\.[0-9]+\"; \"\") | fromdateiso8601;\n .[] | select(.client_impact) | . as $i | ($i.detected_at | t + $hours * 3600) as $due\n | [ (select(if $i.clients_notified_at == null then now > $due else ($i.clients_notified_at | t) > $due end) | \"clients told late\"),\n (([\"clients_affected\", \"duration_minutes\", \"downtime_minutes\", \"data_losses\", \"member_states\", \"economic_impact_eur\"]\n - ($i.notice // {} | keys)) | select(length > 0) | \"notice lacks \\(join(\", \"))\") ]\n | select(length > 0) | \"\\($i.id): \\(join(\"; \"))\"' reports/incidents.json)\n[ -z \"$late\" ] || { echo \"$late\"; exit 1; }\n```",
970
+ "hubWhen": {
971
+ "SCOPE": [
972
+ "provider"
973
+ ]
974
+ }
975
+ },
976
+ {
977
+ "id": "ff-subcontractors",
978
+ "type": "fitness-fn",
979
+ "label": "Every called external system on the subcontractor list",
980
+ "x": 1040,
981
+ "y": 1040,
982
+ "characteristic": "other",
983
+ "scope": "atomic",
984
+ "cadence": "triggered",
985
+ "trigger": "pull-request",
986
+ "invocation": "automated",
987
+ "description": "A script on every pull request reads the architecture model folder (nodes/**/*.md with YAML front matter, _index.md for a folder's own node, relations.json), finds each external system an internal system calls, and looks it up by label in the subcontractor list: { provider: Partner, legal_entity: Partner Payments GmbH, services: [card payment authorisation], data_locations: [DE], supports: [order checkout] }.\n\nThreshold: 0 external systems called by an internal system in the architecture model without an entry in compliance/dora/subcontractors.yaml; 0 entries missing legal_entity, services, data_locations or supports\n\nTool: Node 20 with js-yaml, in a CI step\n\n```js\n// tools/dora/subcontractors-check.mjs — node tools/dora/subcontractors-check.mjs architecture compliance/dora/subcontractors.yaml\nimport { readFileSync, readdirSync } from 'node:fs'\nimport { dirname, join } from 'node:path'\nimport yaml from 'js-yaml'\n\nconst [model, listFile] = process.argv.slice(2)\nconst nodes = new Map(), folders = new Map()\nfor (const file of readdirSync(join(model, 'nodes'), { recursive: true }).filter((f) => f.endsWith('.md'))) {\n const front = yaml.load(readFileSync(join(model, 'nodes', file), 'utf8').split(/^---$/m)[1])\n const index = file.endsWith('_index.md')\n nodes.set(front.id, { ...front, folder: index ? dirname(dirname(file)) : dirname(file) })\n if (index) folders.set(dirname(file), front.id)\n}\nconst systemOf = (id) => { for (let n = nodes.get(id); n; n = nodes.get(folders.get(n.folder))) if (n.type === 'system') return n }\nconst called = new Set(JSON.parse(readFileSync(join(model, 'relations.json'), 'utf8')).filter((r) => r.relationType === 'interacts')\n .map((r) => [systemOf(r.sourceId), systemOf(r.targetId)]).filter(([s, t]) => s && !s.external && t?.external).map(([, t]) => t.label))\nconst listed = new Map((yaml.load(readFileSync(listFile, 'utf8')) ?? []).map((s) => [s.provider, s]))\nconst problems = [...called].flatMap((label) => {\n const s = listed.get(label)\n if (!s) return [`${label}: called in the model, not on the subcontractor list given to clients`]\n return ['legal_entity', 'services', 'data_locations', 'supports'].filter((k) => !s[k]?.length).map((k) => `${label}: no ${k}`)\n})\nif (problems.length) { console.error(problems.join('\\n')); process.exit(1) }\n```",
988
+ "hubWhen": {
989
+ "SCOPE": [
990
+ "provider"
991
+ ]
992
+ }
993
+ },
994
+ {
995
+ "id": "ff-addendum",
996
+ "type": "fitness-fn",
997
+ "label": "Contract addendum has every DORA clause",
998
+ "x": 1040,
999
+ "y": 1170,
1000
+ "characteristic": "other",
1001
+ "scope": "atomic",
1002
+ "cadence": "triggered",
1003
+ "trigger": "pull-request",
1004
+ "invocation": "automated",
1005
+ "description": "A CI step looks for a heading per clause in the addendum offered to clients: the nine of Art. 30(2) and, for critical or important functions, notice and reporting, business continuity, TLPT, audit and exit of Art. 30(3) (its service levels share the Service levels section). A clause dropped in an edit fails the pull request.\n\nThreshold: contracts/dora-addendum.md has a heading for each of the 14 clauses of DORA Art. 30(2) and 30(3) it checks\n\nTool: bash with grep, in a CI step\n\n```bash\n# CI: the DORA addendum offered to financial-entity clients has a section for each clause of Art. 30(2) and 30(3)\nset -euo pipefail\naddendum=contracts/dora-addendum.md\nmissing=0\nwhile IFS= read -r clause; do\n grep -qiE \"^#+ +.*$clause\" \"$addendum\" || { echo \"$addendum has no section on: $clause\"; missing=1; }\ndone <<'CLAUSES'\nDescription of services and subcontracting\nLocations of services and data\nData availability, authenticity, integrity and confidentiality\nAccess to, recovery and return of data\nService levels\nAssistance with ICT incidents\nCooperation with authorities\nTermination rights\nSecurity awareness and training\nNotice and reporting obligations\nBusiness continuity\nThreat-led penetration testing\nAudit and inspection rights\nExit strategy and transition period\nCLAUSES\nexit \"$missing\"\n```",
1006
+ "hubWhen": {
1007
+ "SCOPE": [
1008
+ "provider"
1009
+ ]
1010
+ }
1011
+ }
1012
+ ],
1013
+ "relations": [
1014
+ {
1015
+ "id": "req-scope--derives--need",
1016
+ "sourceId": "req-scope",
1017
+ "targetId": "need",
1018
+ "relationType": "derives"
1019
+ },
1020
+ {
1021
+ "id": "req-classify--derives--need",
1022
+ "sourceId": "req-classify",
1023
+ "targetId": "need",
1024
+ "relationType": "derives"
1025
+ },
1026
+ {
1027
+ "id": "req-report--derives--need",
1028
+ "sourceId": "req-report",
1029
+ "targetId": "need",
1030
+ "relationType": "derives"
1031
+ },
1032
+ {
1033
+ "id": "req-runbook--derives--need",
1034
+ "sourceId": "req-runbook",
1035
+ "targetId": "need",
1036
+ "relationType": "derives"
1037
+ },
1038
+ {
1039
+ "id": "req-clients--derives--need",
1040
+ "sourceId": "req-clients",
1041
+ "targetId": "need",
1042
+ "relationType": "derives"
1043
+ },
1044
+ {
1045
+ "id": "req-register--derives--need",
1046
+ "sourceId": "req-register",
1047
+ "targetId": "need",
1048
+ "relationType": "derives"
1049
+ },
1050
+ {
1051
+ "id": "req-critical-contracts--derives--need",
1052
+ "sourceId": "req-critical-contracts",
1053
+ "targetId": "need",
1054
+ "relationType": "derives"
1055
+ },
1056
+ {
1057
+ "id": "req-register-submit--derives--need",
1058
+ "sourceId": "req-register-submit",
1059
+ "targetId": "need",
1060
+ "relationType": "derives"
1061
+ },
1062
+ {
1063
+ "id": "req-testing--derives--need",
1064
+ "sourceId": "req-testing",
1065
+ "targetId": "need",
1066
+ "relationType": "derives"
1067
+ },
1068
+ {
1069
+ "id": "req-tlpt--derives--need",
1070
+ "sourceId": "req-tlpt",
1071
+ "targetId": "need",
1072
+ "relationType": "derives"
1073
+ },
1074
+ {
1075
+ "id": "req-provider-notice--derives--need",
1076
+ "sourceId": "req-provider-notice",
1077
+ "targetId": "need",
1078
+ "relationType": "derives"
1079
+ },
1080
+ {
1081
+ "id": "req-subcontractors--derives--need",
1082
+ "sourceId": "req-subcontractors",
1083
+ "targetId": "need",
1084
+ "relationType": "derives"
1085
+ },
1086
+ {
1087
+ "id": "req-provider-contract--derives--need",
1088
+ "sourceId": "req-provider-contract",
1089
+ "targetId": "need",
1090
+ "relationType": "derives"
1091
+ },
1092
+ {
1093
+ "id": "sc-scope--verifies--req-scope",
1094
+ "sourceId": "sc-scope",
1095
+ "targetId": "req-scope",
1096
+ "relationType": "verifies"
1097
+ },
1098
+ {
1099
+ "id": "sc-classify--verifies--req-classify",
1100
+ "sourceId": "sc-classify",
1101
+ "targetId": "req-classify",
1102
+ "relationType": "verifies"
1103
+ },
1104
+ {
1105
+ "id": "sc-report--verifies--req-report",
1106
+ "sourceId": "sc-report",
1107
+ "targetId": "req-report",
1108
+ "relationType": "verifies"
1109
+ },
1110
+ {
1111
+ "id": "sc-runbook--verifies--req-runbook",
1112
+ "sourceId": "sc-runbook",
1113
+ "targetId": "req-runbook",
1114
+ "relationType": "verifies"
1115
+ },
1116
+ {
1117
+ "id": "sc-clients--verifies--req-clients",
1118
+ "sourceId": "sc-clients",
1119
+ "targetId": "req-clients",
1120
+ "relationType": "verifies"
1121
+ },
1122
+ {
1123
+ "id": "sc-register--verifies--req-register",
1124
+ "sourceId": "sc-register",
1125
+ "targetId": "req-register",
1126
+ "relationType": "verifies"
1127
+ },
1128
+ {
1129
+ "id": "sc-critical-contracts--verifies--req-critical-contracts",
1130
+ "sourceId": "sc-critical-contracts",
1131
+ "targetId": "req-critical-contracts",
1132
+ "relationType": "verifies"
1133
+ },
1134
+ {
1135
+ "id": "sc-register-submit--verifies--req-register-submit",
1136
+ "sourceId": "sc-register-submit",
1137
+ "targetId": "req-register-submit",
1138
+ "relationType": "verifies"
1139
+ },
1140
+ {
1141
+ "id": "sc-testing--verifies--req-testing",
1142
+ "sourceId": "sc-testing",
1143
+ "targetId": "req-testing",
1144
+ "relationType": "verifies"
1145
+ },
1146
+ {
1147
+ "id": "sc-tlpt--verifies--req-tlpt",
1148
+ "sourceId": "sc-tlpt",
1149
+ "targetId": "req-tlpt",
1150
+ "relationType": "verifies"
1151
+ },
1152
+ {
1153
+ "id": "sc-provider-notice--verifies--req-provider-notice",
1154
+ "sourceId": "sc-provider-notice",
1155
+ "targetId": "req-provider-notice",
1156
+ "relationType": "verifies"
1157
+ },
1158
+ {
1159
+ "id": "sc-subcontractors--verifies--req-subcontractors",
1160
+ "sourceId": "sc-subcontractors",
1161
+ "targetId": "req-subcontractors",
1162
+ "relationType": "verifies"
1163
+ },
1164
+ {
1165
+ "id": "sc-provider-contract--verifies--req-provider-contract",
1166
+ "sourceId": "sc-provider-contract",
1167
+ "targetId": "req-provider-contract",
1168
+ "relationType": "verifies"
1169
+ },
1170
+ {
1171
+ "id": "ff-scope--implements--adr-full",
1172
+ "sourceId": "ff-scope",
1173
+ "targetId": "adr-full",
1174
+ "relationType": "implements"
1175
+ },
1176
+ {
1177
+ "id": "ff-scope--implements--adr-simplified",
1178
+ "sourceId": "ff-scope",
1179
+ "targetId": "adr-simplified",
1180
+ "relationType": "implements"
1181
+ },
1182
+ {
1183
+ "id": "ff-scope--implements--adr-provider",
1184
+ "sourceId": "ff-scope",
1185
+ "targetId": "adr-provider",
1186
+ "relationType": "implements"
1187
+ },
1188
+ {
1189
+ "id": "ff-scope--implements--adr-none",
1190
+ "sourceId": "ff-scope",
1191
+ "targetId": "adr-none",
1192
+ "relationType": "implements"
1193
+ },
1194
+ {
1195
+ "id": "ff-runbook--implements--adr-full",
1196
+ "sourceId": "ff-runbook",
1197
+ "targetId": "adr-full",
1198
+ "relationType": "implements"
1199
+ },
1200
+ {
1201
+ "id": "ff-runbook--implements--adr-simplified",
1202
+ "sourceId": "ff-runbook",
1203
+ "targetId": "adr-simplified",
1204
+ "relationType": "implements"
1205
+ },
1206
+ {
1207
+ "id": "ff-runbook--implements--adr-report-runbook",
1208
+ "sourceId": "ff-runbook",
1209
+ "targetId": "adr-report-runbook",
1210
+ "relationType": "implements"
1211
+ },
1212
+ {
1213
+ "id": "ff-runbook--implements--adr-report-outsourced",
1214
+ "sourceId": "ff-runbook",
1215
+ "targetId": "adr-report-outsourced",
1216
+ "relationType": "implements"
1217
+ },
1218
+ {
1219
+ "id": "ff-deadlines--implements--adr-full",
1220
+ "sourceId": "ff-deadlines",
1221
+ "targetId": "adr-full",
1222
+ "relationType": "implements"
1223
+ },
1224
+ {
1225
+ "id": "ff-deadlines--implements--adr-simplified",
1226
+ "sourceId": "ff-deadlines",
1227
+ "targetId": "adr-simplified",
1228
+ "relationType": "implements"
1229
+ },
1230
+ {
1231
+ "id": "ff-deadlines--implements--adr-report-runbook",
1232
+ "sourceId": "ff-deadlines",
1233
+ "targetId": "adr-report-runbook",
1234
+ "relationType": "implements"
1235
+ },
1236
+ {
1237
+ "id": "ff-deadlines--implements--adr-report-outsourced",
1238
+ "sourceId": "ff-deadlines",
1239
+ "targetId": "adr-report-outsourced",
1240
+ "relationType": "implements"
1241
+ },
1242
+ {
1243
+ "id": "ff-register-model--implements--adr-full",
1244
+ "sourceId": "ff-register-model",
1245
+ "targetId": "adr-full",
1246
+ "relationType": "implements"
1247
+ },
1248
+ {
1249
+ "id": "ff-register-model--implements--adr-simplified",
1250
+ "sourceId": "ff-register-model",
1251
+ "targetId": "adr-simplified",
1252
+ "relationType": "implements"
1253
+ },
1254
+ {
1255
+ "id": "ff-register-model--implements--adr-register-model",
1256
+ "sourceId": "ff-register-model",
1257
+ "targetId": "adr-register-model",
1258
+ "relationType": "implements"
1259
+ },
1260
+ {
1261
+ "id": "ff-register-grc--implements--adr-full",
1262
+ "sourceId": "ff-register-grc",
1263
+ "targetId": "adr-full",
1264
+ "relationType": "implements"
1265
+ },
1266
+ {
1267
+ "id": "ff-register-grc--implements--adr-simplified",
1268
+ "sourceId": "ff-register-grc",
1269
+ "targetId": "adr-simplified",
1270
+ "relationType": "implements"
1271
+ },
1272
+ {
1273
+ "id": "ff-register-grc--implements--adr-register-grc",
1274
+ "sourceId": "ff-register-grc",
1275
+ "targetId": "adr-register-grc",
1276
+ "relationType": "implements"
1277
+ },
1278
+ {
1279
+ "id": "ff-tests--implements--adr-full",
1280
+ "sourceId": "ff-tests",
1281
+ "targetId": "adr-full",
1282
+ "relationType": "implements"
1283
+ },
1284
+ {
1285
+ "id": "ff-tests--implements--adr-simplified",
1286
+ "sourceId": "ff-tests",
1287
+ "targetId": "adr-simplified",
1288
+ "relationType": "implements"
1289
+ },
1290
+ {
1291
+ "id": "ff-tests--implements--adr-no-tlpt",
1292
+ "sourceId": "ff-tests",
1293
+ "targetId": "adr-no-tlpt",
1294
+ "relationType": "implements"
1295
+ },
1296
+ {
1297
+ "id": "ff-tlpt--implements--adr-tlpt",
1298
+ "sourceId": "ff-tlpt",
1299
+ "targetId": "adr-tlpt",
1300
+ "relationType": "implements"
1301
+ },
1302
+ {
1303
+ "id": "ff-client-notice--implements--adr-provider",
1304
+ "sourceId": "ff-client-notice",
1305
+ "targetId": "adr-provider",
1306
+ "relationType": "implements"
1307
+ },
1308
+ {
1309
+ "id": "ff-subcontractors--implements--adr-provider",
1310
+ "sourceId": "ff-subcontractors",
1311
+ "targetId": "adr-provider",
1312
+ "relationType": "implements"
1313
+ },
1314
+ {
1315
+ "id": "ff-addendum--implements--adr-provider",
1316
+ "sourceId": "ff-addendum",
1317
+ "targetId": "adr-provider",
1318
+ "relationType": "implements"
1319
+ }
1320
+ ]
1321
+ }