@radicaltools/mcp 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 (187) hide show
  1. package/README.md +41 -23
  2. package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
  3. package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
  4. package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
  5. package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
  6. package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
  7. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
  8. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
  9. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
  10. package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
  11. package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
  12. package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
  13. package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
  14. package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
  15. package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
  16. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
  17. package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
  18. package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
  19. package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
  20. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
  21. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
  22. package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
  23. package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
  24. package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
  25. package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
  26. package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
  27. package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
  28. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
  29. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
  30. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
  31. package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
  32. package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
  33. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
  34. package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
  35. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
  36. package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
  37. package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
  38. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
  39. package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
  40. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
  41. package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
  42. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
  43. package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
  44. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
  45. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
  46. package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
  47. package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
  48. package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
  49. package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
  50. package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
  51. package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
  52. package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
  53. package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
  54. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
  55. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
  56. package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
  57. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
  58. package/dist/index.js +10321 -3964
  59. package/package.json +1 -1
  60. package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
  61. package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
  62. package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
  63. package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
  64. package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
  65. package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
  66. package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
  67. package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
  68. package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
  69. package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
  70. package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
  71. package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
  72. package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
  73. package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
  74. package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
  75. package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
  76. package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
  77. package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
  78. package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
  79. package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
  80. package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
  81. package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
  82. package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
  83. package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
  84. package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
  85. package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
  86. package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
  87. package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
  88. package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
  89. package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
  90. package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
  91. package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
  92. package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
  93. package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
  94. package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
  95. package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
  96. package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
  97. package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
  98. package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
  99. package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
  100. package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
  101. package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
  102. package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
  103. package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
  104. package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
  105. package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
  106. package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
  107. package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
  108. package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
  109. package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
  110. package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
  111. package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
  112. package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
  113. package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
  114. package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
  115. package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
  116. package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
  117. package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
  118. package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
  119. package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
  120. package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
  121. package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
  122. package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
  123. package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
  124. package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
  125. package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
  126. package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
  127. package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
  128. package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
  129. package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
  130. package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
  131. package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
  132. package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
  133. package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
  134. package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
  135. package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
  136. package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
  137. package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
  138. package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
  139. package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
  140. package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
  141. package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
  142. package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
  143. package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
  144. package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
  145. package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
  146. package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
  147. package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
  148. package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
  149. package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
  150. package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
  151. package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
  152. package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
  153. package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
  154. package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
  155. package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
  156. package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
  157. package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
  158. package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
  159. package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
  160. package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
  161. package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
  162. package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
  163. package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
  164. package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
  165. package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
  166. package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
  167. package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
  168. package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
  169. package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
  170. package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
  171. package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
  172. package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
  173. package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
  174. package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
  175. package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
  176. package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
  177. package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
  178. package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
  179. package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
  180. package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
  181. package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
  182. package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
  183. package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
  184. package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
  185. package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
  186. package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
  187. package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
@@ -0,0 +1,1949 @@
1
+ {
2
+ "hub": {
3
+ "id": "concern-personal-data",
4
+ "category": "concern",
5
+ "name": "Personal data",
6
+ "description": "Data about people in the stores: on what basis it is kept, for how long, where it may go, and how a person gets it or has it erased.",
7
+ "tags": [
8
+ "privacy",
9
+ "gdpr",
10
+ "personal-data",
11
+ "retention",
12
+ "erasure",
13
+ "compliance"
14
+ ],
15
+ "requiredMetamodel": "c4-ddd-governance-builtin",
16
+ "concern": {
17
+ "id": "personal-data",
18
+ "trigger": "LIST NODES WHERE type = \"database\" AND external != true",
19
+ "why": "these stores keep data, and whether any of it is about people decides on what basis it is kept, for how long, where it may go and how it is erased.",
20
+ "group": "compliance"
21
+ },
22
+ "sources": [
23
+ {
24
+ "title": "Regulation (EU) 2016/679, General Data Protection Regulation (GDPR)",
25
+ "url": "https://eur-lex.europa.eu/eli/reg/2016/679/oj"
26
+ },
27
+ {
28
+ "title": "EDPB guidelines, recommendations and best practices (consent, data subject rights, transfers)",
29
+ "url": "https://www.edpb.europa.eu/our-work-tools/general-guidance/guidelines-recommendations-best-practices_en"
30
+ },
31
+ {
32
+ "title": "EDPB Guidelines 9/2022 on personal data breach notification under GDPR",
33
+ "url": "https://www.edpb.europa.eu/system/files/2023-04/edpb_guidelines_202209_personal_data_breach_notification_v2.0_en.pdf"
34
+ },
35
+ {
36
+ "title": "ICO, UK GDPR guidance and resources",
37
+ "url": "https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/"
38
+ },
39
+ {
40
+ "title": "Article 29 Working Party, Opinion 05/2014 on Anonymisation Techniques",
41
+ "url": "https://ec.europa.eu/justice/article-29/documentation/opinion-recommendation/files/2014/wp216_en.pdf"
42
+ },
43
+ {
44
+ "title": "CJEU C-311/18 (Schrems II)",
45
+ "url": "https://curia.europa.eu/juris/liste.jsf?num=C-311/18"
46
+ }
47
+ ],
48
+ "templateParams": [
49
+ {
50
+ "key": "PERSONAL",
51
+ "title": "Personal data",
52
+ "label": "Does it keep data about people?",
53
+ "hint": "Names, e-mail and IP addresses, device and customer ids, and anything else that can be tied to a person count (GDPR Art. 4(1)); so do log lines that carry them. With no, the other questions and details are moot.",
54
+ "defaultValue": "yes",
55
+ "options": [
56
+ {
57
+ "value": "yes",
58
+ "label": "data about people",
59
+ "description": "Any field, log line or event that identifies a person directly or with other data the organisation holds. Pick it when the store keeps accounts, customers, employees, addresses, IPs or user ids; retention, rights, location and security become requirements."
60
+ },
61
+ {
62
+ "value": "no",
63
+ "label": "nothing that identifies a person",
64
+ "description": "Only data about things: products, prices, telemetry without user or device ids. Pick it only when no column, log line or event can be tied to a person; the decision records it and a scan keeps it true."
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "key": "SPECIAL",
70
+ "title": "Special categories",
71
+ "label": "Does it keep health, biometric or other special-category data?",
72
+ "hint": "GDPR Art. 9 forbids processing health, genetic, biometric, ethnic, religious, political, trade-union and sex-life data unless one of its exceptions applies, and a large-scale use needs a data protection impact assessment (Art. 35). Only when it keeps data about people.",
73
+ "defaultValue": "no",
74
+ "options": [
75
+ {
76
+ "value": "no",
77
+ "label": "no special categories",
78
+ "description": "None of the Art. 9 categories and no criminal records (Art. 10). Pick it for ordinary customer, order and account data; the decision records it so a health or biometric field is not added on the quiet."
79
+ },
80
+ {
81
+ "value": "yes",
82
+ "label": "special-category data",
83
+ "description": "Health or fitness readings, diagnoses, biometrics used to identify, genetic data, beliefs, ethnicity or sexual orientation, even inferred. Pick it whenever such a field exists or can be derived; it adds field-level encryption, read logging and an impact assessment."
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "key": "REGION",
89
+ "title": "Location",
90
+ "label": "Where may the personal data be kept and processed?",
91
+ "hint": "Chapter V of the GDPR allows a transfer outside the EU/EEA only to a country with an adequacy decision or under safeguards such as standard contractual clauses; backups, logs, support tools and every processor count. Only when it keeps data about people.",
92
+ "defaultValue": "eu",
93
+ "options": [
94
+ {
95
+ "value": "eu",
96
+ "label": "the EU/EEA only",
97
+ "description": "Stores, backups, logs and every processor stay in EU/EEA regions. Pick it when customers or contracts demand it, for public-sector or health data, or simply to need no transfer mechanism at all."
98
+ },
99
+ {
100
+ "value": "adequate",
101
+ "label": "the EU/EEA and countries with an adequacy decision",
102
+ "description": "Also the UK, Switzerland, Japan, Canada, the US (certified under the Data Privacy Framework) and the other countries the Commission has found adequate (Art. 45). Pick it when a processor you need runs there and nowhere else."
103
+ },
104
+ {
105
+ "value": "any",
106
+ "label": "any country under standard contractual clauses",
107
+ "description": "Transfers to any country with the Commission's standard contractual clauses and a transfer impact assessment per processor (Art. 46, EDPB Recommendations 01/2020); adequate countries need neither. Pick it when global processors or follow-the-sun support are needed and someone owns the assessments."
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "key": "ERASURE",
113
+ "title": "Erasure",
114
+ "label": "How is a person's data erased?",
115
+ "hint": "Erasure (Art. 17) and retention (Art. 5(1)(e)) have to reach every copy: replicas, caches, logs, exports and backups that cannot be edited. Only when it keeps data about people.",
116
+ "defaultValue": "delete",
117
+ "options": [
118
+ {
119
+ "value": "delete",
120
+ "label": "deletion",
121
+ "description": "Rows and documents are deleted where they live; backups age out and a restore re-applies the erasures made since it was taken. Pick it when the stores are few and known, and backups are kept for weeks rather than years."
122
+ },
123
+ {
124
+ "value": "anonymise",
125
+ "label": "anonymisation in place",
126
+ "description": "Identifiers are replaced or generalised so the records no longer relate to anyone, and the records stay for statistics and accounting. Pick it when the business needs the history (orders, revenue) after the person is gone."
127
+ },
128
+ {
129
+ "value": "crypto",
130
+ "label": "crypto-shredding",
131
+ "description": "Each person's fields are encrypted with a key of their own; destroying the key erases them in every store, log and backup at once. Pick it when the data spreads to backups, event streams or archives you cannot edit, and you can run a key management service."
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ "key": "BASIS",
137
+ "title": "Lawful basis",
138
+ "label": "On what lawful basis is most of it processed?",
139
+ "hint": "Every purpose needs one of the six bases of Art. 6(1), and the basis decides which rights apply and what has to be recorded: consent must be provable and as easy to withdraw as to give; legitimate interests can be objected to. Only when it keeps data about people.",
140
+ "defaultValue": "contract",
141
+ "options": [
142
+ {
143
+ "value": "contract",
144
+ "label": "contract or legal obligation",
145
+ "description": "Data needed to deliver what the person signed up for, or that the law requires you to keep (Art. 6(1)(b), (c)). Pick it for accounts, orders, invoices; purpose limitation is what must be enforced."
146
+ },
147
+ {
148
+ "value": "consent",
149
+ "label": "consent recorded per purpose",
150
+ "description": "The person opted in to a purpose such as marketing or personalisation (Art. 6(1)(a), Art. 7). Pick it when the processing is optional for the service; each consent is recorded and its withdrawal stops the processing."
151
+ },
152
+ {
153
+ "value": "legitimate",
154
+ "label": "legitimate interests",
155
+ "description": "Processing the person would reasonably expect, such as fraud prevention or analytics on their use, after a balancing test (Art. 6(1)(f)). Pick it when consent does not fit and you have documented the test; objections (Art. 21) must be honoured."
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "key": "RETENTION_MONTHS",
161
+ "label": "After how many months unused is personal data erased? (data about people only)",
162
+ "defaultValue": "24",
163
+ "type": "number"
164
+ },
165
+ {
166
+ "key": "REQUEST_DAYS",
167
+ "label": "Within how many days is an access or erasure request answered (at most 30)? (data about people only)",
168
+ "defaultValue": "30",
169
+ "type": "number"
170
+ },
171
+ {
172
+ "key": "BACKUP_DAYS",
173
+ "label": "For how many days are backups kept? (data about people only)",
174
+ "defaultValue": "35",
175
+ "type": "number"
176
+ },
177
+ {
178
+ "key": "PROCESSOR_NOTICE_HOURS",
179
+ "label": "Within how many hours must a processor tell you of a breach? (data about people only)",
180
+ "defaultValue": "24",
181
+ "type": "number"
182
+ }
183
+ ]
184
+ },
185
+ "nodes": [
186
+ {
187
+ "id": "need",
188
+ "type": "need",
189
+ "label": "People's data handled lawfully",
190
+ "x": 0,
191
+ "y": 0,
192
+ "kind": "brief",
193
+ "source": "Hub concern pack: Personal data",
194
+ "description": "The system keeps data about people. Data protection law and the people themselves expect it to be processed only for a stated purpose on a lawful basis, kept no longer than needed, kept where the law allows, protected against leaks, handed over when a person asks and erased when they ask, every copy included. The organisation also has to be able to show, at any time, what it keeps, why, where and for how long. The snippets assume the application under src/ (src/privacy the erasure, consents and exclusions, src/crypto the envelope layer), the tests under tests/ with their fixtures in tests/privacy, and the records under docs/ (record-of-processing.json, dpia/, and breaches/ with runbook.md and register.json) and processors.yaml."
195
+ },
196
+ {
197
+ "id": "req-record",
198
+ "type": "requirement",
199
+ "label": "Record of processing",
200
+ "x": 260,
201
+ "y": 0,
202
+ "ears_type": "ubiquitous",
203
+ "action": "keep a record of processing that names, for every store and field holding personal data, its purpose, lawful basis, retention period, recipients and location, and update it in the same change that adds or alters such a field",
204
+ "rationale": "The controller has to keep a record of processing activities (GDPR Art. 30) and be able to show compliance (Art. 5(2)); a record updated in the same change cannot drift from the schema.",
205
+ "hubWhen": {
206
+ "PERSONAL": [
207
+ "yes"
208
+ ]
209
+ }
210
+ },
211
+ {
212
+ "id": "req-retain",
213
+ "type": "requirement",
214
+ "label": "Unused data expires",
215
+ "x": 260,
216
+ "y": 130,
217
+ "ears_type": "event-driven",
218
+ "trigger": "personal data has not been used for {{RETENTION_MONTHS}} months and no legal obligation requires keeping it",
219
+ "action": "erase it by {{ERASURE}} within 7 days, in every store, cache and export",
220
+ "rationale": "Storage limitation (GDPR Art. 5(1)(e)) and data minimisation (Art. 5(1)(c)): data not kept cannot leak, and a fixed period is what the record of processing can state.",
221
+ "hubWhen": {
222
+ "PERSONAL": [
223
+ "yes"
224
+ ]
225
+ }
226
+ },
227
+ {
228
+ "id": "req-access",
229
+ "type": "requirement",
230
+ "label": "Own data on request",
231
+ "x": 260,
232
+ "y": 260,
233
+ "ears_type": "event-driven",
234
+ "trigger": "a person whose identity has been verified asks for the data kept about them",
235
+ "action": "deliver all of it from every store, as JSON, within {{REQUEST_DAYS}} days, together with the purposes, recipients, retention periods and source of each part",
236
+ "rationale": "The right of access (GDPR Art. 15) and the right to data portability in a structured, commonly used, machine-readable format (Art. 20), both within one month (Art. 12(3)).",
237
+ "hubWhen": {
238
+ "PERSONAL": [
239
+ "yes"
240
+ ]
241
+ }
242
+ },
243
+ {
244
+ "id": "req-erase",
245
+ "type": "requirement",
246
+ "label": "Erasure on request",
247
+ "x": 260,
248
+ "y": 390,
249
+ "ears_type": "event-driven",
250
+ "trigger": "a verified person's erasure request is accepted",
251
+ "action": "erase their data by {{ERASURE}} in every store, replica, cache, log and export within {{REQUEST_DAYS}} days, keep only what a legal obligation requires, tell every recipient it was disclosed to, and confirm to the person",
252
+ "rationale": "The right to erasure (GDPR Art. 17) within one month (Art. 12(3)), passed on to the recipients (Art. 19); records the law requires (invoices) are an exception of Art. 17(3)(b).",
253
+ "hubWhen": {
254
+ "PERSONAL": [
255
+ "yes"
256
+ ]
257
+ }
258
+ },
259
+ {
260
+ "id": "req-backups",
261
+ "type": "requirement",
262
+ "label": "Erasures survive restores",
263
+ "x": 260,
264
+ "y": 520,
265
+ "ears_type": "unwanted-behaviour",
266
+ "unwanted_condition": "a backup taken before an erasure is restored",
267
+ "action": "re-apply every erasure recorded since the backup was taken before the restored store serves a request, and let backups expire after {{BACKUP_DAYS}} days",
268
+ "rationale": "Backups cannot be edited, so they are put \"beyond use\" until they expire (ICO, right to erasure); a restore must not bring erased people back (GDPR Art. 17).",
269
+ "hubWhen": {
270
+ "PERSONAL": [
271
+ "yes"
272
+ ],
273
+ "ERASURE": [
274
+ "delete",
275
+ "anonymise"
276
+ ]
277
+ }
278
+ },
279
+ {
280
+ "id": "req-anonymise",
281
+ "type": "requirement",
282
+ "label": "Anonymised for good",
283
+ "x": 260,
284
+ "y": 650,
285
+ "ears_type": "ubiquitous",
286
+ "action": "replace direct identifiers with random values without keeping any mapping, and generalise the remaining quasi-identifiers (birth date, postcode, gender) until every combination of them occurs in at least 5 records",
287
+ "rationale": "Anonymous data is outside the GDPR only when the person can no longer be identified by any reasonably likely means (Recital 26); pseudonymised data with a key is still personal (Art. 4(5)). k-anonymity of 5 is a common floor (Article 29 Working Party, Opinion 05/2014 on anonymisation techniques).",
288
+ "hubWhen": {
289
+ "PERSONAL": [
290
+ "yes"
291
+ ],
292
+ "ERASURE": [
293
+ "anonymise"
294
+ ]
295
+ }
296
+ },
297
+ {
298
+ "id": "req-shred",
299
+ "type": "requirement",
300
+ "label": "Erasure by key destruction",
301
+ "x": 260,
302
+ "y": 780,
303
+ "ears_type": "event-driven",
304
+ "trigger": "a person's erasure request is accepted, or their data passes its retention period",
305
+ "action": "destroy the person's data key within 24 hours, and its copies in key backups within {{BACKUP_DAYS}} days, so that their fields in every store, event, log and backup can no longer be decrypted",
306
+ "rationale": "Encrypted data whose key no longer exists cannot be read by anyone, which reaches backups and event streams that cannot be edited (GDPR Art. 17, ICO on erasure of backups).",
307
+ "hubWhen": {
308
+ "PERSONAL": [
309
+ "yes"
310
+ ],
311
+ "ERASURE": [
312
+ "crypto"
313
+ ]
314
+ }
315
+ },
316
+ {
317
+ "id": "req-protect",
318
+ "type": "requirement",
319
+ "label": "Protected in transit and by role",
320
+ "x": 260,
321
+ "y": 910,
322
+ "ears_type": "ubiquitous",
323
+ "action": "accept connections carrying personal data only with TLS 1.2 or later, encrypt it at rest with the keys decided in the Encryption pack, give staff access to it only through roles that need it, and review those roles every 6 months",
324
+ "rationale": "Security of processing (GDPR Art. 32(1)(a), (b)) and integrity and confidentiality (Art. 5(1)(f)); encryption also decides whether a breach must be told to the people affected (Art. 34(3)(a)).",
325
+ "hubWhen": {
326
+ "PERSONAL": [
327
+ "yes"
328
+ ]
329
+ }
330
+ },
331
+ {
332
+ "id": "req-breach",
333
+ "type": "requirement",
334
+ "label": "Breaches notified in time",
335
+ "x": 260,
336
+ "y": 1040,
337
+ "ears_type": "event-driven",
338
+ "trigger": "the organisation becomes aware of a breach of personal data",
339
+ "action": "assess whether it is unlikely to result in a risk to people and, unless it is, notify the supervisory authority named in the breach runbook without undue delay and within 72 hours of becoming aware of it, or with the reasons for the delay when that is not feasible, describing the nature of the breach with the categories and approximate numbers of people and records, the data protection officer's contact, the likely consequences and the measures taken or proposed, and sending what is not yet known in later phases",
340
+ "rationale": "GDPR Art. 33(1) sets the deadline, its exception for a breach unlikely to result in a risk, and the reasons a later notification must carry; Art. 33(3) the content; Art. 33(4) allows the content in phases without undue further delay.",
341
+ "hubWhen": {
342
+ "PERSONAL": [
343
+ "yes"
344
+ ]
345
+ }
346
+ },
347
+ {
348
+ "id": "req-breach-register",
349
+ "type": "requirement",
350
+ "label": "Every breach documented",
351
+ "x": 260,
352
+ "y": 1170,
353
+ "ears_type": "ubiquitous",
354
+ "action": "document every breach of personal data in the breach register, notified or not, with the time of becoming aware of it, the facts, the effects, the remedial action, the risk assessment and the decision on notifying with its reason, and reconcile the register with the security incidents at least every 3 months",
355
+ "rationale": "GDPR Art. 33(5): the controller documents any breach, with its facts, effects and remedial action, so that the supervisory authority can verify compliance with Art. 33; a breach that was not notified is the one whose reasoning it will ask for.",
356
+ "hubWhen": {
357
+ "PERSONAL": [
358
+ "yes"
359
+ ]
360
+ }
361
+ },
362
+ {
363
+ "id": "req-breach-people",
364
+ "type": "requirement",
365
+ "label": "People told of a high-risk breach",
366
+ "x": 260,
367
+ "y": 1300,
368
+ "ears_type": "event-driven",
369
+ "trigger": "a breach of personal data is assessed as likely to result in a high risk to people",
370
+ "action": "tell the people affected without undue delay, in clear and plain language, the nature of the breach, the data protection officer's contact, the likely consequences and the measures taken or proposed, and record the time in the breach register, unless the register records the exception of GDPR Art. 34(3) that applies: the data was unintelligible to anyone not authorised, later measures make the high risk no longer likely, or telling each person would take disproportionate effort and a public notice is made instead",
371
+ "rationale": "GDPR Art. 34(1) and (2) require telling the people affected by a high-risk breach, with the content of Art. 33(3)(b) to (d); Art. 34(3) lists the three exceptions, and Art. 34(4) lets the authority require it later, so the exception relied on is written down.",
372
+ "hubWhen": {
373
+ "PERSONAL": [
374
+ "yes"
375
+ ]
376
+ }
377
+ },
378
+ {
379
+ "id": "req-breach-processor",
380
+ "type": "requirement",
381
+ "label": "Processors report breaches",
382
+ "x": 260,
383
+ "y": 1430,
384
+ "ears_type": "ubiquitous",
385
+ "action": "bind every processor in the processor register by contract to tell the controller of a breach of personal data within {{PROCESSOR_NOTICE_HOURS}} hours of becoming aware of it, with what it knows of the content of GDPR Art. 33(3), and record that time in the register",
386
+ "rationale": "A processor must notify the controller without undue delay after becoming aware of a breach (GDPR Art. 33(2)) and assist it with its own notifications (Art. 28(3)(f)); EDPB Guidelines 9/2022 hold the controller aware once its processor has told it, so a fixed time in the contract keeps most of the 72 hours for the controller.",
387
+ "hubWhen": {
388
+ "PERSONAL": [
389
+ "yes"
390
+ ]
391
+ }
392
+ },
393
+ {
394
+ "id": "req-region-eu",
395
+ "type": "requirement",
396
+ "label": "Kept in the EU/EEA",
397
+ "x": 260,
398
+ "y": 1560,
399
+ "ears_type": "ubiquitous",
400
+ "action": "store and process personal data only in EU/EEA regions, with backups, logs, support tools and every processor included",
401
+ "rationale": "No transfer outside the EU/EEA, so none of the conditions of GDPR Chapter V (Art. 44-49) has to be met or proven.",
402
+ "hubWhen": {
403
+ "PERSONAL": [
404
+ "yes"
405
+ ],
406
+ "REGION": [
407
+ "eu"
408
+ ]
409
+ }
410
+ },
411
+ {
412
+ "id": "req-region-adequate",
413
+ "type": "requirement",
414
+ "label": "Only to adequate countries",
415
+ "x": 260,
416
+ "y": 1690,
417
+ "ears_type": "ubiquitous",
418
+ "action": "transfer personal data outside the EU/EEA only to countries covered by an adequacy decision of the European Commission, and list every processor with its country in the processor register",
419
+ "rationale": "A transfer on the basis of an adequacy decision needs no further authorisation (GDPR Art. 45(1)); the register is part of the record of processing (Art. 30(1)(e)).",
420
+ "hubWhen": {
421
+ "PERSONAL": [
422
+ "yes"
423
+ ],
424
+ "REGION": [
425
+ "adequate"
426
+ ]
427
+ }
428
+ },
429
+ {
430
+ "id": "req-region-scc",
431
+ "type": "requirement",
432
+ "label": "Transfers under safeguards",
433
+ "x": 260,
434
+ "y": 1820,
435
+ "ears_type": "event-driven",
436
+ "trigger": "personal data is to be sent to a processor in a country outside the EU/EEA without an adequacy decision",
437
+ "action": "sign the Commission's standard contractual clauses and complete a transfer impact assessment before the first transfer, record both in the processor register, and review the assessment every 12 months",
438
+ "rationale": "Without an adequacy decision a transfer needs appropriate safeguards (GDPR Art. 46(2)(c)) and an assessment of the destination's law (CJEU C-311/18 Schrems II, EDPB Recommendations 01/2020).",
439
+ "hubWhen": {
440
+ "PERSONAL": [
441
+ "yes"
442
+ ],
443
+ "REGION": [
444
+ "any"
445
+ ]
446
+ }
447
+ },
448
+ {
449
+ "id": "req-special",
450
+ "type": "requirement",
451
+ "label": "Special categories guarded",
452
+ "x": 260,
453
+ "y": 1950,
454
+ "ears_type": "ubiquitous",
455
+ "action": "process special-category data only under an Art. 9(2) condition recorded per person, encrypt those fields at field level with keys only the services that need them can use, and log every read with the reader, the time and the purpose, keeping the log 12 months",
456
+ "rationale": "Special categories may be processed only under an exception of GDPR Art. 9(2), most often explicit consent; field-level encryption and read logs are the appropriate measures of Art. 32 for data whose leak harms most.",
457
+ "hubWhen": {
458
+ "PERSONAL": [
459
+ "yes"
460
+ ],
461
+ "SPECIAL": [
462
+ "yes"
463
+ ]
464
+ }
465
+ },
466
+ {
467
+ "id": "req-dpia",
468
+ "type": "requirement",
469
+ "label": "Impact assessed first",
470
+ "x": 260,
471
+ "y": 2080,
472
+ "ears_type": "event-driven",
473
+ "trigger": "a change adds a new purpose, store or recipient for special-category data",
474
+ "action": "complete and approve a data protection impact assessment, with the data protection officer's advice, before the change is deployed",
475
+ "rationale": "Large-scale processing of special categories requires a DPIA before it starts (GDPR Art. 35(1), (3)(b)), with the DPO consulted (Art. 35(2)).",
476
+ "hubWhen": {
477
+ "PERSONAL": [
478
+ "yes"
479
+ ],
480
+ "SPECIAL": [
481
+ "yes"
482
+ ]
483
+ }
484
+ },
485
+ {
486
+ "id": "req-purpose",
487
+ "type": "requirement",
488
+ "label": "Used only for its purpose",
489
+ "x": 260,
490
+ "y": 2210,
491
+ "ears_type": "unwanted-behaviour",
492
+ "unwanted_condition": "a service the record of processing does not list for a field's purpose tries to read it",
493
+ "action": "refuse the read through the database role or API it uses, and log the attempt",
494
+ "rationale": "Data collected for a contract may not be reused for unrelated purposes (purpose limitation, GDPR Art. 5(1)(b), Art. 6(1)(b), (4)); access rights enforce what the record states.",
495
+ "hubWhen": {
496
+ "PERSONAL": [
497
+ "yes"
498
+ ],
499
+ "BASIS": [
500
+ "contract"
501
+ ]
502
+ }
503
+ },
504
+ {
505
+ "id": "req-consent",
506
+ "type": "requirement",
507
+ "label": "Consent provable and revocable",
508
+ "x": 260,
509
+ "y": 2340,
510
+ "ears_type": "event-driven",
511
+ "trigger": "a person gives or withdraws consent for a purpose",
512
+ "action": "record it with the purpose, the version of the wording shown, the time and the channel, and on withdrawal stop processing for that purpose within 24 hours, with withdrawing taking no more steps than giving",
513
+ "rationale": "The controller must be able to demonstrate consent (GDPR Art. 7(1)), and withdrawing it must be as easy as giving it (Art. 7(3); EDPB Guidelines 05/2020 on consent).",
514
+ "hubWhen": {
515
+ "PERSONAL": [
516
+ "yes"
517
+ ],
518
+ "BASIS": [
519
+ "consent"
520
+ ]
521
+ }
522
+ },
523
+ {
524
+ "id": "req-objection",
525
+ "type": "requirement",
526
+ "label": "Objections honoured",
527
+ "x": 260,
528
+ "y": 2470,
529
+ "ears_type": "event-driven",
530
+ "trigger": "a person objects to processing based on legitimate interests",
531
+ "action": "stop that processing for them within 7 days unless a documented compelling ground overrides it, and stop direct marketing at once without exception",
532
+ "rationale": "The right to object (GDPR Art. 21(1)), absolute for direct marketing (Art. 21(2), (3)); legitimate interests need a documented balancing test (Art. 6(1)(f)).",
533
+ "hubWhen": {
534
+ "PERSONAL": [
535
+ "yes"
536
+ ],
537
+ "BASIS": [
538
+ "legitimate"
539
+ ]
540
+ }
541
+ },
542
+ {
543
+ "id": "req-none",
544
+ "type": "requirement",
545
+ "label": "No personal data kept",
546
+ "x": 260,
547
+ "y": 2600,
548
+ "ears_type": "ubiquitous",
549
+ "action": "keep no data that identifies a person, directly or with other data the organisation holds, in its stores, events or logs",
550
+ "rationale": "Recorded as a requirement and scanned for, the absence of personal data is checked rather than assumed (GDPR Art. 4(1), Recital 26).",
551
+ "hubWhen": {
552
+ "PERSONAL": [
553
+ "no"
554
+ ]
555
+ }
556
+ },
557
+ {
558
+ "id": "sc-record",
559
+ "type": "scenario",
560
+ "label": "New field recorded",
561
+ "x": 520,
562
+ "y": 0,
563
+ "given": "a migration that adds a column with personal data",
564
+ "when": "the change is built",
565
+ "then": "it fails unless the record of processing names the column with purpose, basis, retention, recipients and location",
566
+ "hubWhen": {
567
+ "PERSONAL": [
568
+ "yes"
569
+ ]
570
+ }
571
+ },
572
+ {
573
+ "id": "sc-retain",
574
+ "type": "scenario",
575
+ "label": "Old data expires",
576
+ "x": 520,
577
+ "y": 130,
578
+ "given": "an account unused for {{RETENTION_MONTHS}} months and another used last week",
579
+ "when": "the retention job runs",
580
+ "then": "within 7 days nothing identifies the first in any store; the second is untouched",
581
+ "hubWhen": {
582
+ "PERSONAL": [
583
+ "yes"
584
+ ]
585
+ }
586
+ },
587
+ {
588
+ "id": "sc-access",
589
+ "type": "scenario",
590
+ "label": "Data handed over",
591
+ "x": 520,
592
+ "y": 260,
593
+ "given": "a verified person with an account, orders and support tickets",
594
+ "when": "they ask for their data",
595
+ "then": "within {{REQUEST_DAYS}} days they receive one JSON file holding all of it, with purposes, recipients and retention periods",
596
+ "hubWhen": {
597
+ "PERSONAL": [
598
+ "yes"
599
+ ]
600
+ }
601
+ },
602
+ {
603
+ "id": "sc-erase",
604
+ "type": "scenario",
605
+ "label": "Person erased",
606
+ "x": 520,
607
+ "y": 390,
608
+ "given": "a person with an account, orders, log entries and a copy at a processor",
609
+ "when": "their erasure request is accepted",
610
+ "then": "within {{REQUEST_DAYS}} days nothing identifies them in any store, log or export, the processor is told, invoices remain, and the person is told",
611
+ "hubWhen": {
612
+ "PERSONAL": [
613
+ "yes"
614
+ ]
615
+ }
616
+ },
617
+ {
618
+ "id": "sc-backups",
619
+ "type": "scenario",
620
+ "label": "Restore keeps erasures",
621
+ "x": 520,
622
+ "y": 520,
623
+ "given": "a backup taken before a person was erased",
624
+ "when": "the backup is restored",
625
+ "then": "the person is erased again before the store serves its first request",
626
+ "hubWhen": {
627
+ "PERSONAL": [
628
+ "yes"
629
+ ],
630
+ "ERASURE": [
631
+ "delete",
632
+ "anonymise"
633
+ ]
634
+ }
635
+ },
636
+ {
637
+ "id": "sc-anonymise",
638
+ "type": "scenario",
639
+ "label": "No one singled out",
640
+ "x": 520,
641
+ "y": 650,
642
+ "given": "the anonymised records of erased people",
643
+ "when": "they are grouped by birth year, postcode prefix and gender",
644
+ "then": "no group holds fewer than 5 records and no table maps them back",
645
+ "hubWhen": {
646
+ "PERSONAL": [
647
+ "yes"
648
+ ],
649
+ "ERASURE": [
650
+ "anonymise"
651
+ ]
652
+ }
653
+ },
654
+ {
655
+ "id": "sc-shred",
656
+ "type": "scenario",
657
+ "label": "Key destroyed",
658
+ "x": 520,
659
+ "y": 780,
660
+ "given": "a person whose fields are in the store, an event stream and last night's backup",
661
+ "when": "their erasure is accepted and 24 hours pass",
662
+ "then": "their key is gone and decrypting any of those copies fails",
663
+ "hubWhen": {
664
+ "PERSONAL": [
665
+ "yes"
666
+ ],
667
+ "ERASURE": [
668
+ "crypto"
669
+ ]
670
+ }
671
+ },
672
+ {
673
+ "id": "sc-protect",
674
+ "type": "scenario",
675
+ "label": "Guarded everywhere",
676
+ "x": 520,
677
+ "y": 910,
678
+ "given": "the store and the roles with read access to personal tables",
679
+ "when": "its connection settings and the role reviews are listed",
680
+ "then": "connections below TLS 1.2 are refused, and every role with access was reviewed in the last 6 months",
681
+ "hubWhen": {
682
+ "PERSONAL": [
683
+ "yes"
684
+ ]
685
+ }
686
+ },
687
+ {
688
+ "id": "sc-breach",
689
+ "type": "scenario",
690
+ "label": "Breach notified in time",
691
+ "x": 520,
692
+ "y": 1040,
693
+ "given": "a log export with the e-mail addresses of 4,000 customers found on a public bucket at 09:00 on Monday and assessed as a risk to people",
694
+ "when": "the breach lead follows the runbook",
695
+ "then": "the authority is notified by 09:00 on Thursday with the nature, the numbers, the data protection officer's contact, the consequences and the measures, a missing fact follows in a later phase, and the register holds the times",
696
+ "hubWhen": {
697
+ "PERSONAL": [
698
+ "yes"
699
+ ]
700
+ }
701
+ },
702
+ {
703
+ "id": "sc-breach-register",
704
+ "type": "scenario",
705
+ "label": "Unnotified breach documented",
706
+ "x": 520,
707
+ "y": 1170,
708
+ "given": "an e-mail with one customer's order sent to the wrong customer and assessed as unlikely to result in a risk",
709
+ "when": "the register is checked",
710
+ "then": "it holds the breach with its facts, effects, remedy, the assessment and the reason it was not notified, and its last reconciliation is less than 3 months old",
711
+ "hubWhen": {
712
+ "PERSONAL": [
713
+ "yes"
714
+ ]
715
+ }
716
+ },
717
+ {
718
+ "id": "sc-breach-people",
719
+ "type": "scenario",
720
+ "label": "Customers told",
721
+ "x": 520,
722
+ "y": 1300,
723
+ "given": "a breach exposing customers' passwords hashed with a broken algorithm, assessed as high risk",
724
+ "when": "the assessment is made",
725
+ "then": "the affected customers are told by e-mail in plain language what happened, whom to contact, what may follow and what to do, and the register holds the time they were told",
726
+ "hubWhen": {
727
+ "PERSONAL": [
728
+ "yes"
729
+ ]
730
+ }
731
+ },
732
+ {
733
+ "id": "sc-breach-processor",
734
+ "type": "scenario",
735
+ "label": "Slow processor found",
736
+ "x": 520,
737
+ "y": 1430,
738
+ "given": "the processor register with a mail provider whose contract allows 72 hours to report a breach",
739
+ "when": "the breach readiness check runs",
740
+ "then": "it fails and names the mail provider, since its notice exceeds {{PROCESSOR_NOTICE_HOURS}} hours",
741
+ "hubWhen": {
742
+ "PERSONAL": [
743
+ "yes"
744
+ ]
745
+ }
746
+ },
747
+ {
748
+ "id": "sc-region-eu",
749
+ "type": "scenario",
750
+ "label": "Nothing leaves the EU",
751
+ "x": 520,
752
+ "y": 1560,
753
+ "given": "the deployment, its backups and every processor in the register",
754
+ "when": "their regions and countries are listed",
755
+ "then": "all are in the EU/EEA",
756
+ "hubWhen": {
757
+ "PERSONAL": [
758
+ "yes"
759
+ ],
760
+ "REGION": [
761
+ "eu"
762
+ ]
763
+ }
764
+ },
765
+ {
766
+ "id": "sc-region-adequate",
767
+ "type": "scenario",
768
+ "label": "Only adequate countries",
769
+ "x": 520,
770
+ "y": 1690,
771
+ "given": "the processor register",
772
+ "when": "it is checked against the Commission's adequacy list",
773
+ "then": "every processor outside the EU/EEA is in a country on that list",
774
+ "hubWhen": {
775
+ "PERSONAL": [
776
+ "yes"
777
+ ],
778
+ "REGION": [
779
+ "adequate"
780
+ ]
781
+ }
782
+ },
783
+ {
784
+ "id": "sc-region-scc",
785
+ "type": "scenario",
786
+ "label": "Transfer safeguarded",
787
+ "x": 520,
788
+ "y": 1820,
789
+ "given": "a new support tool hosted outside the EU/EEA and adequate countries",
790
+ "when": "it is to receive customer data",
791
+ "then": "no data is sent before its clauses and impact assessment are in the processor register",
792
+ "hubWhen": {
793
+ "PERSONAL": [
794
+ "yes"
795
+ ],
796
+ "REGION": [
797
+ "any"
798
+ ]
799
+ }
800
+ },
801
+ {
802
+ "id": "sc-special",
803
+ "type": "scenario",
804
+ "label": "Health field guarded",
805
+ "x": 520,
806
+ "y": 1950,
807
+ "given": "a record with a diagnosis",
808
+ "when": "a service without the key and then a clinician's service read it",
809
+ "then": "the first gets only ciphertext; the second reads it and the read is logged with reader, time and purpose",
810
+ "hubWhen": {
811
+ "PERSONAL": [
812
+ "yes"
813
+ ],
814
+ "SPECIAL": [
815
+ "yes"
816
+ ]
817
+ }
818
+ },
819
+ {
820
+ "id": "sc-dpia",
821
+ "type": "scenario",
822
+ "label": "No DPIA, no deploy",
823
+ "x": 520,
824
+ "y": 2080,
825
+ "given": "a change that sends health data to a new analytics store",
826
+ "when": "it is to be deployed",
827
+ "then": "the deployment waits until its DPIA is approved",
828
+ "hubWhen": {
829
+ "PERSONAL": [
830
+ "yes"
831
+ ],
832
+ "SPECIAL": [
833
+ "yes"
834
+ ]
835
+ }
836
+ },
837
+ {
838
+ "id": "sc-purpose",
839
+ "type": "scenario",
840
+ "label": "Other purpose refused",
841
+ "x": 520,
842
+ "y": 2210,
843
+ "given": "the marketing service, which the record does not list for order addresses",
844
+ "when": "it queries the order addresses",
845
+ "then": "the query is refused and logged",
846
+ "hubWhen": {
847
+ "PERSONAL": [
848
+ "yes"
849
+ ],
850
+ "BASIS": [
851
+ "contract"
852
+ ]
853
+ }
854
+ },
855
+ {
856
+ "id": "sc-consent",
857
+ "type": "scenario",
858
+ "label": "Consent withdrawn",
859
+ "x": 520,
860
+ "y": 2340,
861
+ "given": "a person who consented to personalised offers with wording version 3",
862
+ "when": "they withdraw it in one click",
863
+ "then": "the record shows both events with version and channel, and no offer is personalised for them after 24 hours",
864
+ "hubWhen": {
865
+ "PERSONAL": [
866
+ "yes"
867
+ ],
868
+ "BASIS": [
869
+ "consent"
870
+ ]
871
+ }
872
+ },
873
+ {
874
+ "id": "sc-objection",
875
+ "type": "scenario",
876
+ "label": "Objection honoured",
877
+ "x": 520,
878
+ "y": 2470,
879
+ "given": "a person included in usage analytics and marketing e-mails",
880
+ "when": "they object",
881
+ "then": "marketing stops at once and analytics excludes them within 7 days",
882
+ "hubWhen": {
883
+ "PERSONAL": [
884
+ "yes"
885
+ ],
886
+ "BASIS": [
887
+ "legitimate"
888
+ ]
889
+ }
890
+ },
891
+ {
892
+ "id": "sc-none",
893
+ "type": "scenario",
894
+ "label": "Nothing personal stored",
895
+ "x": 520,
896
+ "y": 2600,
897
+ "given": "the store's schema, a sample of its rows and a day of logs",
898
+ "when": "they are scanned for personal data",
899
+ "then": "nothing is found",
900
+ "hubWhen": {
901
+ "PERSONAL": [
902
+ "no"
903
+ ]
904
+ }
905
+ },
906
+ {
907
+ "id": "adr-delete",
908
+ "type": "adr",
909
+ "label": "Personal data erased by deletion",
910
+ "x": 780,
911
+ "y": 0,
912
+ "concern": "personal-data",
913
+ "status": "accepted",
914
+ "date": "",
915
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)).",
916
+ "decision": "Personal data is kept only in the stores and fields the record of processing names, each field classified in the schema (a column comment or a data-catalogue tag in OpenMetadata or DataHub). Lawful basis: {{BASIS}}. Location: {{REGION}}. Special categories: {{SPECIAL}}. Erasure is deletion: one erasure routine knows every store; it publishes a PersonErased event that each owning service handles by deleting the person's rows (ON DELETE CASCADE where the schema allows), replacing them with a tombstone where invoices must stay. Logs carry user ids rather than names or addresses and are kept no longer than {{REQUEST_DAYS}} days in the log store (Loki or OpenSearch retention), so that logs expire before any erasure deadline and need no editing. Backups expire after {{BACKUP_DAYS}} days and a restore replays the erasure ledger before serving. Unused data is erased after {{RETENTION_MONTHS}} months by a daily job. Choose deletion over crypto-shredding when the copies are few and known and backups are short-lived. A breach of personal data is assessed and notified as this decision says, whatever incident it arrives through: the breach lead named in docs/breaches/runbook.md decides, on the data protection officer's advice, whether it is unlikely to result in a risk to people; unless it is, the supervisory authority named in the runbook is notified without undue delay and within 72 hours of becoming aware of it, with the content of GDPR Art. 33(3), in phases when facts are still missing; the people affected are told without undue delay when the risk is high, unless an exception of Art. 34(3) applies; and every breach, notified or not, is documented in docs/breaches/register.json with its facts, effects, remedy and the reason for each decision. Every processor is bound by contract to tell the controller of a breach within {{PROCESSOR_NOTICE_HOURS}} hours, as processors.yaml records.",
917
+ "consequences": "• Erasure is simple to understand and to prove: the rows are gone.\n• Every new store, cache or export must join the erasure routine, or it leaks the people erased.\n• Erased people live on in backups for up to {{BACKUP_DAYS}} days; the erasure ledger is what keeps them from coming back on a restore.\n• Records the business needs later (revenue per month) must be aggregated before the deletion.",
918
+ "alternatives": "1. Anonymisation in place: keeps the history for statistics, but anonymisation must hold against re-identification.\n2. Crypto-shredding: reaches backups and streams at once, at the cost of a key per person and a key service on every read.\n3. Handling requests by hand: slow, error-prone and hard to prove.",
919
+ "hubWhen": {
920
+ "PERSONAL": [
921
+ "yes"
922
+ ],
923
+ "ERASURE": [
924
+ "delete"
925
+ ]
926
+ }
927
+ },
928
+ {
929
+ "id": "adr-anonymise",
930
+ "type": "adr",
931
+ "label": "Personal data erased by anonymisation",
932
+ "x": 780,
933
+ "y": 130,
934
+ "concern": "personal-data",
935
+ "status": "accepted",
936
+ "date": "",
937
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)).",
938
+ "decision": "Personal data is kept only in the stores and fields the record of processing names, each field classified in the schema (a column comment or a data-catalogue tag in OpenMetadata or DataHub). Lawful basis: {{BASIS}}. Location: {{REGION}}. Special categories: {{SPECIAL}}. Erasure is anonymisation in place: direct identifiers (name, e-mail, phone, address, IP, external ids) are overwritten with random values and no mapping is kept, the row keeps its internal id and an anonymised_at timestamp; quasi-identifiers are generalised (birth date to year, postcode to its first two characters) until every combination occurs at least 5 times, which a dbt test checks; free-text fields are cleared. Logs carry user ids only and are kept no longer than {{REQUEST_DAYS}} days, so that they expire before any erasure deadline and need no editing. Backups expire after {{BACKUP_DAYS}} days and a restore replays the erasure ledger before serving. Unused data is anonymised after {{RETENTION_MONTHS}} months by a daily job. Use ARX or sdcMicro to measure re-identification risk when the quasi-identifiers change. Choose anonymisation when orders, revenue or usage history must outlive the person. A breach of personal data is assessed and notified as this decision says, whatever incident it arrives through: the breach lead named in docs/breaches/runbook.md decides, on the data protection officer's advice, whether it is unlikely to result in a risk to people; unless it is, the supervisory authority named in the runbook is notified without undue delay and within 72 hours of becoming aware of it, with the content of GDPR Art. 33(3), in phases when facts are still missing; the people affected are told without undue delay when the risk is high, unless an exception of Art. 34(3) applies; and every breach, notified or not, is documented in docs/breaches/register.json with its facts, effects, remedy and the reason for each decision. Every processor is bound by contract to tell the controller of a breach within {{PROCESSOR_NOTICE_HOURS}} hours, as processors.yaml records.",
939
+ "consequences": "• History stays usable for reporting and accounting without anyone in it.\n• Anonymisation that can be undone is pseudonymisation and still personal data: the k-anonymity check and the removal of free text are not optional.\n• Each new column must be classified as identifier, quasi-identifier or neither, or anonymisation misses it.\n• Backups still hold the original records until they expire after {{BACKUP_DAYS}} days.",
940
+ "alternatives": "1. Deletion in every store: simplest to prove, loses the history.\n2. Crypto-shredding: reaches backups at once, but the records become unreadable rather than anonymous.\n3. Pseudonymisation with a kept key: reversible, so it erases nothing (GDPR Art. 4(5)).",
941
+ "hubWhen": {
942
+ "PERSONAL": [
943
+ "yes"
944
+ ],
945
+ "ERASURE": [
946
+ "anonymise"
947
+ ]
948
+ }
949
+ },
950
+ {
951
+ "id": "adr-crypto",
952
+ "type": "adr",
953
+ "label": "Personal data erased by crypto-shredding",
954
+ "x": 780,
955
+ "y": 260,
956
+ "concern": "personal-data",
957
+ "status": "accepted",
958
+ "date": "",
959
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)).",
960
+ "decision": "Personal data is kept only in the stores and fields the record of processing names, each field classified in the schema. Lawful basis: {{BASIS}}. Location: {{REGION}}. Special categories: {{SPECIAL}}. Every personal field is encrypted in the application with a data key of its own per person (envelope encryption, AES-256-GCM), the data keys kept wrapped in a key table and wrapped by one key in a key management service: AWS KMS, Google Cloud KMS or Azure Key Vault on that cloud, HashiCorp Vault (Transit) on premises or across clouds; libraries such as AWS Encryption SDK or Google Tink do the envelope work. Erasure deletes the person's wrapped data key from the key table within 24 hours, which makes their fields in every store, event, log and backup unreadable; backups of the key table expire after {{BACKUP_DAYS}} days. Unused data is shredded the same way after {{RETENTION_MONTHS}} months. Searchable fields (e-mail for sign-in) are kept as keyed hashes (HMAC) next to the ciphertext. A breach of personal data is assessed and notified as this decision says, whatever incident it arrives through: the breach lead named in docs/breaches/runbook.md decides, on the data protection officer's advice, whether it is unlikely to result in a risk to people; unless it is, the supervisory authority named in the runbook is notified without undue delay and within 72 hours of becoming aware of it, with the content of GDPR Art. 33(3), in phases when facts are still missing; the people affected are told without undue delay when the risk is high, unless an exception of Art. 34(3) applies; and every breach, notified or not, is documented in docs/breaches/register.json with its facts, effects, remedy and the reason for each decision. Every processor is bound by contract to tell the controller of a breach within {{PROCESSOR_NOTICE_HOURS}} hours, as processors.yaml records.",
961
+ "consequences": "• One key deletion erases a person everywhere, immutable backups and event streams included.\n• Every read of a personal field decrypts: a key cache and the key service's availability are on the hot path.\n• Searching, sorting and joining on encrypted fields is not possible; keyed hashes cover exact matches only.\n• A lost key table loses everyone's data: it needs its own backup and recovery, and its backups must expire within {{BACKUP_DAYS}} days for the erasure to hold.",
962
+ "alternatives": "1. Deletion in every store: no key service, but backups and streams keep the person until they expire.\n2. Anonymisation in place: keeps readable history, but must hold against re-identification.\n3. One key per store (transparent disk encryption): protects against stolen disks, erases no one.",
963
+ "hubWhen": {
964
+ "PERSONAL": [
965
+ "yes"
966
+ ],
967
+ "ERASURE": [
968
+ "crypto"
969
+ ]
970
+ }
971
+ },
972
+ {
973
+ "id": "adr-basis-contract",
974
+ "type": "adr",
975
+ "label": "Processed for the contract",
976
+ "x": 780,
977
+ "y": 390,
978
+ "concern": "personal-data",
979
+ "status": "accepted",
980
+ "date": "",
981
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)).",
982
+ "decision": "Most personal data is processed because the person's contract or a legal obligation needs it (GDPR Art. 6(1)(b), (c)): accounts, orders, invoices, support. Purpose limitation is enforced by access: each field's purposes are in the record of processing, and only the services and roles listed for a purpose can read the field, by database role or API scope; an attempt from elsewhere is refused and logged. Marketing or analytics beyond the contract needs its own basis and its own entry in the record.",
983
+ "consequences": "• No consent to collect or prove, and no objection right for the core processing.\n• Every secondary use (marketing, profiling, analytics beyond the service) needs a separate basis and a review.\n• The record of processing becomes the access list: a new consumer of a field is a change to the record first.",
984
+ "alternatives": "1. Consent recorded per purpose: needed for the optional uses, too heavy for the core service.\n2. Legitimate interests: fits analytics and fraud prevention, with a balancing test to keep.",
985
+ "hubWhen": {
986
+ "PERSONAL": [
987
+ "yes"
988
+ ],
989
+ "BASIS": [
990
+ "contract"
991
+ ]
992
+ }
993
+ },
994
+ {
995
+ "id": "adr-basis-consent",
996
+ "type": "adr",
997
+ "label": "Processed on recorded consent",
998
+ "x": 780,
999
+ "y": 520,
1000
+ "concern": "personal-data",
1001
+ "status": "accepted",
1002
+ "date": "",
1003
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)).",
1004
+ "decision": "Most personal data is processed on consent (GDPR Art. 6(1)(a), Art. 7): a consent record per person and purpose holds the version of the wording shown, the time, the channel and the withdrawal, if any. Every processing job for a consented purpose reads the record first and skips people without a current consent; a withdrawal takes effect within 24 hours and is one step, offered wherever the consent was given. Wording versions are kept with the code so that any record can be shown with the text the person saw.",
1005
+ "consequences": "• The person decides, and the proof is in the record, which an auditor can read.\n• Data processing stops when consent is withdrawn: features that depend on it degrade, and the product has to cope.\n• Consent banners and records are work to build and keep current; a change of wording is a new version to record.\n• Consent given under pressure or bundled with the service is invalid: the processing then has no basis at all.",
1006
+ "alternatives": "1. Contract or legal obligation: no consent to collect, but only for what the service itself needs.\n2. Legitimate interests: no consent either, but a balancing test and the right to object.",
1007
+ "hubWhen": {
1008
+ "PERSONAL": [
1009
+ "yes"
1010
+ ],
1011
+ "BASIS": [
1012
+ "consent"
1013
+ ]
1014
+ }
1015
+ },
1016
+ {
1017
+ "id": "adr-basis-legitimate",
1018
+ "type": "adr",
1019
+ "label": "Processed on legitimate interests",
1020
+ "x": 780,
1021
+ "y": 650,
1022
+ "concern": "personal-data",
1023
+ "status": "accepted",
1024
+ "date": "",
1025
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)).",
1026
+ "decision": "Most personal data is processed on legitimate interests (GDPR Art. 6(1)(f)): fraud prevention, security, analytics of how the service is used. For each such purpose a balancing test (the interest, its necessity, the person's reasonable expectations and the safeguards) is written down in the record of processing and reviewed every 12 months. An objection stops the processing for that person within 7 days unless a documented compelling ground overrides it; direct marketing stops at once. An exclusion list is consulted by every job for these purposes.",
1027
+ "consequences": "• No consent to collect for processing people would expect anyway.\n• Each purpose carries a written balancing test to maintain, which a supervisory authority may ask for.\n• The right to object has to work: an exclusion list every job honours, and a way to object as easy as unsubscribing.\n• Marketing by e-mail still needs consent under ePrivacy rules in most countries: this basis does not cover it.",
1028
+ "alternatives": "1. Consent recorded per purpose: stronger for the person, weaker uptake and more to build.\n2. Contract or legal obligation: only for what the service itself needs.",
1029
+ "hubWhen": {
1030
+ "PERSONAL": [
1031
+ "yes"
1032
+ ],
1033
+ "BASIS": [
1034
+ "legitimate"
1035
+ ]
1036
+ }
1037
+ },
1038
+ {
1039
+ "id": "adr-region-eu",
1040
+ "type": "adr",
1041
+ "label": "Kept in the EU/EEA only",
1042
+ "x": 780,
1043
+ "y": 780,
1044
+ "concern": "personal-data",
1045
+ "status": "accepted",
1046
+ "date": "",
1047
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)).",
1048
+ "decision": "Personal data is stored and processed in EU/EEA regions only: the cloud provider's EU regions for stores, backups and logs, and processors (support, mail, analytics, monitoring) that process in the EU/EEA under contract. The processor register lists each with its country; the infrastructure code pins the regions, and a policy check refuses a provider or backup copy outside the allowed list.",
1049
+ "consequences": "• No transfer mechanism to maintain: Chapter V does not apply.\n• Some processors are ruled out, and follow-the-sun support from outside the EU has to work without personal data.\n• A new region or processor is a change to the register and the policy, not a quiet configuration edit.",
1050
+ "alternatives": "1. The EU/EEA and adequate countries: a wider choice of processors, with the adequacy list to follow.\n2. Any country under standard contractual clauses: the widest choice, with a transfer impact assessment per processor to own.",
1051
+ "hubWhen": {
1052
+ "PERSONAL": [
1053
+ "yes"
1054
+ ],
1055
+ "REGION": [
1056
+ "eu"
1057
+ ]
1058
+ }
1059
+ },
1060
+ {
1061
+ "id": "adr-region-adequate",
1062
+ "type": "adr",
1063
+ "label": "Kept in the EU/EEA and adequate countries",
1064
+ "x": 780,
1065
+ "y": 910,
1066
+ "concern": "personal-data",
1067
+ "status": "accepted",
1068
+ "date": "",
1069
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)).",
1070
+ "decision": "Personal data may be stored and processed in EU/EEA regions and transferred to processors in countries the European Commission has found adequate (GDPR Art. 45): the UK, Switzerland, Japan, Canada, the Republic of Korea and the others on the Commission's list, and the US only for processors certified under the Data Privacy Framework. The processor register lists each processor with its country and, for the US, its certification; a policy check in CI refuses any other.",
1071
+ "consequences": "• A wider choice of processors with no clauses to sign and no assessment to write.\n• The adequacy list changes (a decision can be withdrawn, as Schrems II did for Privacy Shield): someone owns keeping the list current and has a plan for a withdrawal.\n• US processors must stay certified: the certification is checked when the register is reviewed.",
1072
+ "alternatives": "1. The EU/EEA only: nothing to follow, fewer processors.\n2. Any country under standard contractual clauses: every processor allowed, at the cost of an assessment each.",
1073
+ "hubWhen": {
1074
+ "PERSONAL": [
1075
+ "yes"
1076
+ ],
1077
+ "REGION": [
1078
+ "adequate"
1079
+ ]
1080
+ }
1081
+ },
1082
+ {
1083
+ "id": "adr-region-any",
1084
+ "type": "adr",
1085
+ "label": "Transfers under standard contractual clauses",
1086
+ "x": 780,
1087
+ "y": 1040,
1088
+ "concern": "personal-data",
1089
+ "status": "accepted",
1090
+ "date": "",
1091
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)).",
1092
+ "decision": "Personal data may be transferred to processors in any country. Inside the EU/EEA and adequate countries nothing more is needed; for every other processor the Commission's standard contractual clauses (2021/914) are signed and a transfer impact assessment of the destination's law and the safeguards (encryption with keys held in the EU, pseudonymisation) is written before the first transfer and reviewed every 12 months. The processor register carries the dates of both, and a policy check in CI refuses a processor without them.",
1093
+ "consequences": "• Any processor can be used, including global support and analytics tools.\n• A transfer impact assessment per processor is legal work to own and to refresh yearly; a negative one blocks the processor.\n• Supplementary measures (keys in the EU) shape the architecture of what the processor may see.",
1094
+ "alternatives": "1. The EU/EEA and adequate countries: no assessments, fewer processors.\n2. The EU/EEA only: nothing to maintain, the fewest processors.",
1095
+ "hubWhen": {
1096
+ "PERSONAL": [
1097
+ "yes"
1098
+ ],
1099
+ "REGION": [
1100
+ "any"
1101
+ ]
1102
+ }
1103
+ },
1104
+ {
1105
+ "id": "adr-special",
1106
+ "type": "adr",
1107
+ "label": "Special categories encrypted and logged",
1108
+ "x": 780,
1109
+ "y": 1170,
1110
+ "concern": "personal-data",
1111
+ "status": "accepted",
1112
+ "date": "",
1113
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)). Here the store keeps special-category data (GDPR Art. 9), whose leak harms most and whose processing is forbidden unless an exception applies.",
1114
+ "decision": "Special-category fields are kept in their own tables or documents, encrypted at field level (pgcrypto or application-side envelope encryption with keys in the key management service) with keys only the services named in the record of processing may use. Each person's Art. 9(2) condition, usually explicit consent, is recorded with its date. Every read of these fields is logged with reader, time and purpose (pgAudit object audit logging through the auditor role for direct database access, the service's own audit log otherwise) and the log is kept 12 months. A data protection impact assessment is approved before any new purpose, store or recipient, and the change that brings one links it in the record of processing.",
1115
+ "consequences": "• A leak of the main tables or a backup does not expose the special categories.\n• Analytics on these fields needs its own approved purpose and key, which slows ad-hoc analysis on purpose.\n• Read logs grow with use and are themselves personal data with a 12-month retention.\n• The DPIA becomes a release gate for changes that touch these fields.",
1116
+ "alternatives": "1. Treat them like other personal data: simpler, but falls short of Art. 9 and Art. 32 for the data whose leak harms most.\n2. A separate system for special categories only: the strongest separation, but a second system to run and integrate.",
1117
+ "hubWhen": {
1118
+ "PERSONAL": [
1119
+ "yes"
1120
+ ],
1121
+ "SPECIAL": [
1122
+ "yes"
1123
+ ]
1124
+ }
1125
+ },
1126
+ {
1127
+ "id": "adr-no-special",
1128
+ "type": "adr",
1129
+ "label": "No special categories kept",
1130
+ "x": 780,
1131
+ "y": 1300,
1132
+ "concern": "personal-data",
1133
+ "status": "accepted",
1134
+ "date": "",
1135
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)).",
1136
+ "decision": "The store keeps no special-category data (GDPR Art. 9) and no criminal-record data (Art. 10): no health, genetic, biometric, ethnic, religious, political, trade-union or sex-life field, and none that lets one be inferred. A field that would hold one needs this decision superseded and a data protection impact assessment first; the classification check on every column is where it would show up.",
1137
+ "consequences": "• No field-level encryption, read logging or impact assessment to run here.\n• Free-text fields are the risk: a support note can hold a diagnosis, so the scan covers them.\n• The first special-category field is a decision and an assessment, not a migration.",
1138
+ "alternatives": "1. Special categories guarded: encryption, read logs and a DPIA, when such a field is needed.\n2. A separate system for special categories, keeping this store ordinary.",
1139
+ "hubWhen": {
1140
+ "PERSONAL": [
1141
+ "yes"
1142
+ ],
1143
+ "SPECIAL": [
1144
+ "no"
1145
+ ]
1146
+ }
1147
+ },
1148
+ {
1149
+ "id": "adr-no-personal",
1150
+ "type": "adr",
1151
+ "label": "No personal data kept",
1152
+ "x": 780,
1153
+ "y": 1430,
1154
+ "concern": "personal-data",
1155
+ "status": "accepted",
1156
+ "date": "",
1157
+ "context": "This store keeps data, and some of it may be about people. The forces: data protection law (GDPR) limits why personal data may be processed, for how long it is kept and where it may go, and gives people the rights to get, take away and erase it, each within one month; copies multiply (replicas, backups, logs, exports, analytics, processors) and every one of them has to follow; health, biometric and other special categories carry a higher bar; a breach has to be assessed, and most often notified to the authority, within 72 hours of becoming aware of it, when the facts are still unclear; erasing must not break the records others still need (invoices, the audit trail); and the controller has to be able to prove all of it (accountability, Art. 5(2)). Here the store keeps no data about people.",
1158
+ "decision": "The store keeps no data that identifies a person, directly or with other data the organisation holds; its events and logs carry none either (no user, device or session ids, no IP addresses). A scan with Microsoft Presidio of the schema, a sample of rows and a day of logs keeps it true. A feature that needs personal data needs this decision superseded first.",
1159
+ "consequences": "• No retention, erasure, access or transfer obligations here.\n• Logs and analytics lose the user dimension: per-user debugging and funnels need a store that takes on the obligations.\n• A personal field added by accident fails the scan rather than staying unnoticed.",
1160
+ "alternatives": "1. Keep personal data with limits, when a feature needs it: superseding this decision with the personal-data pack.\n2. Pseudonymous ids only: still personal data under GDPR Art. 4(5), so it would not lift the obligations.",
1161
+ "hubWhen": {
1162
+ "PERSONAL": [
1163
+ "no"
1164
+ ]
1165
+ }
1166
+ },
1167
+ {
1168
+ "id": "ff-retention",
1169
+ "type": "fitness-fn",
1170
+ "label": "Retention and requests on time",
1171
+ "x": 1040,
1172
+ "y": 0,
1173
+ "characteristic": "security",
1174
+ "scope": "atomic",
1175
+ "cadence": "triggered",
1176
+ "trigger": "nightly",
1177
+ "invocation": "automated",
1178
+ "description": "A daily data test returns the records past retention and its 7-day grace, and the access and erasure requests past their deadline; any row fails it and alerts the data owner.\n\nThreshold: 0 personal records unused for more than {{RETENTION_MONTHS}} months plus the 7-day grace, and 0 access or erasure requests open for more than {{REQUEST_DAYS}} days\n\nTool: dbt (a singular data test, run daily by the scheduler)\n\n```sql\n-- tests/personal_data_on_time.sql: every row returned is a failure\nselect 'past retention' as problem, cast(customer_id as text) as id\nfrom {{ ref('customers') }}\nwhere last_used_at < now() - interval '{{RETENTION_MONTHS}} months' - interval '7 days'\n and erased_at is null\n and legal_hold is not true\nunion all\nselect 'erasure overdue', cast(request_id as text)\nfrom {{ ref('erasure_requests') }}\nwhere completed_at is null\n and accepted_at < now() - interval '{{REQUEST_DAYS}} days'\nunion all\nselect 'access request overdue', cast(request_id as text)\nfrom {{ ref('access_requests') }}\nwhere delivered_at is null\n and verified_at < now() - interval '{{REQUEST_DAYS}} days'\n```",
1179
+ "hubWhen": {
1180
+ "PERSONAL": [
1181
+ "yes"
1182
+ ]
1183
+ }
1184
+ },
1185
+ {
1186
+ "id": "ff-record",
1187
+ "type": "fitness-fn",
1188
+ "label": "Every field classified and recorded",
1189
+ "x": 1040,
1190
+ "y": 130,
1191
+ "characteristic": "security",
1192
+ "scope": "atomic",
1193
+ "cadence": "triggered",
1194
+ "trigger": "pull-request",
1195
+ "invocation": "automated",
1196
+ "description": "In CI, after the migrations run against an empty database, a script lists the columns without a classification and checks every personal or special column against docs/record-of-processing.json; a new column fails the build until it is classified, and a personal one until the record names it with all five facts.\n\nThreshold: 0 columns in the migrated schema without a classification (personal, special or not-personal) in their comment; 0 personal or special columns absent from the record of processing or without purpose, basis, retention, recipients and location there\n\nTool: psql and jq in the CI pipeline, against the migrated schema\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nunclassified=$(psql \"$DATABASE_URL\" -Atc \"\n select c.table_name || '.' || c.column_name\n from information_schema.columns c\n join pg_class t on t.relname = c.table_name\n join pg_namespace n on n.oid = t.relnamespace and n.nspname = c.table_schema\n left join pg_description d on d.objoid = t.oid and d.objsubid = c.ordinal_position\n where c.table_schema = 'public'\n and coalesce(d.description, '') !~ '^(personal|special|not-personal)( |:|$)'\")\n[ -z \"$unclassified\" ] || { echo \"unclassified columns:\"; echo \"$unclassified\"; exit 1; }\nmissing=0\nfor col in $(psql \"$DATABASE_URL\" -Atc \"\n select c.table_name || '.' || c.column_name\n from information_schema.columns c\n join pg_class t on t.relname = c.table_name\n join pg_namespace n on n.oid = t.relnamespace and n.nspname = c.table_schema\n join pg_description d on d.objoid = t.oid and d.objsubid = c.ordinal_position\n where c.table_schema = 'public' and d.description ~ '^(personal|special)( |:|$)'\"); do\n jq -e --arg c \"$col\" '.fields[] | select(.column == $c) | .purpose and .basis and .retention and .recipients and .location' \\\n docs/record-of-processing.json > /dev/null || { echo \"$col is not in the record of processing with all five facts\"; missing=$((missing+1)); }\ndone\nexit $missing\n```",
1197
+ "hubWhen": {
1198
+ "PERSONAL": [
1199
+ "yes"
1200
+ ]
1201
+ }
1202
+ },
1203
+ {
1204
+ "id": "ff-pii-scan",
1205
+ "type": "fitness-fn",
1206
+ "label": "Personal data where declared",
1207
+ "x": 1040,
1208
+ "y": 260,
1209
+ "characteristic": "security",
1210
+ "scope": "holistic",
1211
+ "cadence": "triggered",
1212
+ "trigger": "nightly",
1213
+ "invocation": "automated",
1214
+ "description": "A nightly job exports a day of logs and a sample of rows from the fields not classified as personal and scans them for e-mail addresses, phone numbers, IP addresses, card numbers and IBANs; it reports the place and kind of each finding, never the value. Names (PERSON) are left out of the free-text scan because the recogniser flags product and place names at this threshold; they are scanned only in structured fields.\n\nThreshold: 0 e-mail addresses, phone numbers, IP addresses, card numbers or IBANs with a score of 0.6 or more in a day of logs and a sample of rows outside the fields classified as personal\n\nTool: Microsoft Presidio (presidio-analyzer)\n\n```python\n# scan.py <file>: exits 1 when the file holds personal data\nimport sys\nfrom presidio_analyzer import AnalyzerEngine\n\nENTITIES = [\"EMAIL_ADDRESS\", \"PHONE_NUMBER\", \"IP_ADDRESS\", \"CREDIT_CARD\", \"IBAN_CODE\"]\nanalyzer = AnalyzerEngine()\nfound = 0\nwith open(sys.argv[1], encoding=\"utf-8\") as f:\n for n, line in enumerate(f, 1):\n for r in analyzer.analyze(text=line, entities=ENTITIES, language=\"en\", score_threshold=0.6):\n print(f\"{sys.argv[1]}:{n}: {r.entity_type}\") # never print the value\n found += 1\nsys.exit(1 if found else 0)\n```"
1215
+ },
1216
+ {
1217
+ "id": "ff-erasure",
1218
+ "type": "fitness-fn",
1219
+ "label": "Erasure reaches every store",
1220
+ "x": 1040,
1221
+ "y": 390,
1222
+ "characteristic": "functional-suitability",
1223
+ "scope": "atomic",
1224
+ "cadence": "triggered",
1225
+ "trigger": "pull-request",
1226
+ "invocation": "automated",
1227
+ "description": "An integration test seeds one person with unique identifiers across every store the record of processing names, runs the erasure routine, searches each store by the identifiers and reads the row by its internal id (gone under deletion; present with every identifier overwritten under anonymisation, so identifiersOf returns [] in both cases); it then restores a backup taken before the erasure and checks again after the ledger replay.\n\nThreshold: 0 stores where an erased person's identifiers (e-mail, name, phone) are found after the erasure routine, 0 identifiers left on the person's row by id, and 0 after a restore of an older backup\n\nTool: Vitest with Testcontainers (PostgreSQL and the other stores of the deployment)\n\n```ts\nimport { erasure } from '../src/privacy/erasure'\nimport { stores } from './privacy/stores' // every store of the record of processing: findByIdentifiers, identifiersOf\nimport { seedEverywhere, takeBackup, restore } from './privacy/fixtures'\n\nit('erases a person from every store, and keeps them erased after a restore', async () => {\n const email = `erase-${crypto.randomUUID()}@example.test`\n const person = await seedEverywhere({ email, name: `Erase ${crypto.randomUUID()}`, phone: '+48600000000' })\n const backup = await takeBackup()\n await erasure.run(person.id)\n for (const store of stores) {\n expect(await store.findByIdentifiers(person)).toEqual([]) // by e-mail, name and phone\n expect(await store.identifiersOf(person.id)).toEqual([]) // row gone, or kept with no identifier left\n }\n await restore(backup) // replays the erasure ledger before serving\n for (const store of stores) {\n expect(await store.findByIdentifiers(person)).toEqual([])\n expect(await store.identifiersOf(person.id)).toEqual([])\n }\n})\n```",
1228
+ "hubWhen": {
1229
+ "PERSONAL": [
1230
+ "yes"
1231
+ ],
1232
+ "ERASURE": [
1233
+ "delete",
1234
+ "anonymise"
1235
+ ]
1236
+ }
1237
+ },
1238
+ {
1239
+ "id": "ff-k-anonymity",
1240
+ "type": "fitness-fn",
1241
+ "label": "Anonymised records not singled out",
1242
+ "x": 1040,
1243
+ "y": 520,
1244
+ "characteristic": "security",
1245
+ "scope": "atomic",
1246
+ "cadence": "triggered",
1247
+ "trigger": "nightly",
1248
+ "invocation": "automated",
1249
+ "description": "A daily data test groups the anonymised records by their quasi-identifiers and returns every group smaller than 5, and every anonymised row whose free text was not cleared.\n\nThreshold: Every combination of quasi-identifiers among anonymised records occurs in at least 5 records (k ≥ 5); 0 anonymised rows with a non-empty free-text field\n\nTool: dbt (a singular data test)\n\n```sql\n-- tests/anonymised_k5.sql: every row returned singles people out\nselect 'group of ' || count(*) as problem, birth_year || ' ' || postcode_prefix || ' ' || gender as who\nfrom {{ ref('customers') }}\nwhere anonymised_at is not null\ngroup by birth_year, postcode_prefix, gender\nhaving count(*) < 5\nunion all\nselect 'free text kept', cast(customer_id as text)\nfrom {{ ref('customers') }}\nwhere anonymised_at is not null\n and coalesce(notes, '') <> ''\n```",
1250
+ "hubWhen": {
1251
+ "PERSONAL": [
1252
+ "yes"
1253
+ ],
1254
+ "ERASURE": [
1255
+ "anonymise"
1256
+ ]
1257
+ }
1258
+ },
1259
+ {
1260
+ "id": "ff-shred",
1261
+ "type": "fitness-fn",
1262
+ "label": "Shredded data unreadable",
1263
+ "x": 1040,
1264
+ "y": 650,
1265
+ "characteristic": "security",
1266
+ "scope": "atomic",
1267
+ "cadence": "triggered",
1268
+ "trigger": "pull-request",
1269
+ "invocation": "automated",
1270
+ "description": "An integration test writes a person's fields through the envelope layer, copies the ciphertext as a backup would, erases the person, and expects the key table to hold no data key for them, the key table's backup retention to be at most {{BACKUP_DAYS}} days, and every decryption of the copies to fail; the wrapping key in the key service stays, since it wraps everyone's data keys.\n\nThreshold: After an erasure, the person's wrapped data key is gone from the key table, its backup copies expire within {{BACKUP_DAYS}} days, and 0 of the person's encrypted fields decrypt in the store, the event stream or a copy taken before\n\nTool: Vitest with LocalStack (AWS KMS) or a Vault dev server behind the application's envelope layer\n\n```ts\nimport { envelope } from '../src/crypto/envelope' // encryptFor(personId, fields), decryptFields(ciphertext)\nimport { dataKeys } from '../src/crypto/dataKeys' // the key table: wrapped data key per person, with its backup retention\nimport { erasure } from '../src/privacy/erasure'\nimport { store, events, createPerson } from './privacy/fixtures'\n\nit('makes every copy of an erased person unreadable', async () => {\n const person = await createPerson({ email: 'shred@example.test' })\n const copies = [await store.rawFields(person.id), await events.rawFields(person.id)] // ciphertext, as backups hold it\n expect(await dataKeys.find(person.id)).toBeDefined()\n await erasure.run(person.id)\n expect(await dataKeys.find(person.id)).toBeUndefined()\n expect(dataKeys.backupRetentionDays).toBeLessThanOrEqual({{BACKUP_DAYS}})\n envelope.dropCachedKeys()\n for (const fields of copies) await expect(envelope.decryptFields(fields)).rejects.toThrow()\n})\n```",
1271
+ "hubWhen": {
1272
+ "PERSONAL": [
1273
+ "yes"
1274
+ ],
1275
+ "ERASURE": [
1276
+ "crypto"
1277
+ ]
1278
+ }
1279
+ },
1280
+ {
1281
+ "id": "ff-protect",
1282
+ "type": "fitness-fn",
1283
+ "label": "TLS floor and reviewed roles",
1284
+ "x": 1040,
1285
+ "y": 780,
1286
+ "characteristic": "security",
1287
+ "scope": "atomic",
1288
+ "cadence": "triggered",
1289
+ "trigger": "pull-request",
1290
+ "invocation": "automated",
1291
+ "description": "A database test run in CI against the migrated database checks the server's minimum TLS version, and joins the roles with SELECT on personal tables (the ones with a column commented personal or special) with the role_reviews table the access owner fills in; any role not reviewed in 6 months fails it.\n\nThreshold: The database refuses TLS below 1.2 (ssl_min_protocol_version TLSv1.2 or higher); 0 roles with SELECT on a table holding personal data whose last review is older than 6 months\n\nTool: pgTAP (run with pg_prove); for a managed database the TLS floor is a parameter-group check with the provider's CLI\n\n```sql\nBEGIN;\nSELECT plan(2);\n\nSELECT ok(current_setting('ssl_min_protocol_version') IN ('TLSv1.2', 'TLSv1.3'), 'connections below TLS 1.2 are refused');\n\nSELECT is_empty($$\n SELECT DISTINCT g.grantee\n FROM information_schema.role_table_grants g\n JOIN information_schema.columns c ON c.table_schema = g.table_schema AND c.table_name = g.table_name\n JOIN pg_class t ON t.relname = c.table_name\n JOIN pg_namespace n ON n.oid = t.relnamespace AND n.nspname = c.table_schema\n JOIN pg_description d ON d.objoid = t.oid AND d.objsubid = c.ordinal_position\n LEFT JOIN role_reviews r ON r.role_name = g.grantee\n WHERE g.privilege_type = 'SELECT'\n AND d.description ~ '^(personal|special)( |:|$)'\n AND (r.reviewed_at IS NULL OR r.reviewed_at < now() - interval '6 months')\n$$, 'every role reading personal data was reviewed in the last 6 months');\n\nSELECT * FROM finish();\nROLLBACK;\n```",
1292
+ "hubWhen": {
1293
+ "PERSONAL": [
1294
+ "yes"
1295
+ ]
1296
+ }
1297
+ },
1298
+ {
1299
+ "id": "ff-breach-register",
1300
+ "type": "fitness-fn",
1301
+ "label": "Every breach documented and notified in time",
1302
+ "x": 1040,
1303
+ "y": 910,
1304
+ "characteristic": "security",
1305
+ "scope": "atomic",
1306
+ "cadence": "triggered",
1307
+ "trigger": "nightly",
1308
+ "invocation": "automated",
1309
+ "description": "A daily CI job reads docs/breaches/register.json, the breach register kept in the repository (categories and numbers, never the people's data): reconciled_at, and per breach id, aware_at, facts, effects, remedy, risk (unlikely, risk or high), not_notified_reason, notifications (one entry per phase: at, nature, dpo_contact, consequences, measures), delay_reason, people_told_at and art34_exception; times are in UTC (2026-09-07T09:00:00Z). When the breaches are kept as incidents in the incident tool the Incident management pack decides, the job first exports them to this shape. It fails on any gap and prints the breach ids, never their contents.\n\nThreshold: 0 breaches in the register without an awareness time, facts, effects, remedy and a risk assessment; 0 assessed unlikely without the reason not to notify; 0 others not notified 72 hours after awareness, or first notified later without the reasons for the delay, or whose notification phases together lack the nature, the data protection officer's contact, the consequences or the measures; 0 high-risk ones without the time people were told or an Art. 34(3) exception; the last reconciliation with the security incidents at most 92 days old\n\nTool: jq 1.7 in a daily CI job (bash)\n\n```bash\n#!/usr/bin/env bash\n# daily CI: docs/breaches/register.json documents every breach and its notification (GDPR Art. 33, 34); times in UTC\nset -euo pipefail\nproblems=$(jq -r --argjson now \"$(date -u +%s)\" '\n def t: (. // \"1970-01-01T00:00:00Z\") | sub(\"\\\\.[0-9]+\"; \"\") | fromdateiso8601;\n def text(k): (.[k] // \"\" | tostring | length) > 0;\n (select($now - (.reconciled_at | t) > 92 * 86400) | \"not reconciled with the security incidents for 92 days\"),\n (.breaches[] | .id as $id | (.notifications // []) as $n |\n ([\"aware_at\", \"facts\", \"effects\", \"remedy\"][] as $k | select(text($k) | not) | \"\\($id): no \\($k)\"),\n (select(.risk | IN(\"unlikely\", \"risk\", \"high\") | not) | \"\\($id): risk is not assessed as unlikely, risk or high\"),\n (select(.risk == \"unlikely\" and (text(\"not_notified_reason\") | not)) | \"\\($id): not notified, and no reason\"),\n (select((.risk == \"risk\" or .risk == \"high\") and ($n | length) == 0 and $now - (.aware_at | t) > 72 * 3600) | \"\\($id): not notified 72 hours after awareness\"),\n (select(($n | length) > 0 and ($n[0].at | t) - (.aware_at | t) > 72 * 3600 and (text(\"delay_reason\") | not)) | \"\\($id): notified after 72 hours without the reasons for the delay\"),\n (select(($n | length) > 0) | [\"nature\", \"dpo_contact\", \"consequences\", \"measures\"][] as $k | select([$n[] | has($k)] | any | not) | \"\\($id): no phase of the notification gives \\($k)\"),\n (select(.risk == \"high\" and (text(\"people_told_at\") or text(\"art34_exception\") | not)) | \"\\($id): high risk, people not told and no Art. 34(3) exception\")\n )' docs/breaches/register.json)\n[ -z \"$problems\" ] || { echo \"$problems\"; exit 1; }\n```",
1310
+ "hubWhen": {
1311
+ "PERSONAL": [
1312
+ "yes"
1313
+ ]
1314
+ }
1315
+ },
1316
+ {
1317
+ "id": "ff-breach-runbook",
1318
+ "type": "fitness-fn",
1319
+ "label": "Breach runbook and processor notice ready",
1320
+ "x": 1040,
1321
+ "y": 1040,
1322
+ "characteristic": "security",
1323
+ "scope": "atomic",
1324
+ "cadence": "triggered",
1325
+ "trigger": "pull-request",
1326
+ "invocation": "automated",
1327
+ "description": "A CI step on every change fails when the breach runbook stops naming the supervisory authority with its notification link, the person who decides whether to notify, the 72 hours or any of the four parts of the notification of GDPR Art. 33(3), or when a processor in processors.yaml, the processor register, has no breach_notice_hours from its contract or a longer one than allowed.\n\nThreshold: docs/breaches/runbook.md has the lines Supervisory authority: (with a link) and Decides:, and names the 72 hours, the nature of the breach, the data protection officer, the likely consequences and the measures; 0 processors in processors.yaml without breach_notice_hours or with more than {{PROCESSOR_NOTICE_HOURS}} hours\n\nTool: bash with grep and yq (mikefarah yq v4) in a CI step\n\n```bash\n#!/usr/bin/env bash\n# CI, on every change: the breach runbook says whom to notify, by when, with what and who decides; processors report in time\nset -euo pipefail\nf=docs/breaches/runbook.md\nproblems=0\nneed() { grep -Eqi \"$1\" \"$f\" || { echo \"$f: $2\"; problems=$((problems + 1)); }; }\nneed '^Supervisory authority: .*https://' 'no line \"Supervisory authority:\" with its name and notification link'\nneed '^Decides: +[^ ]' 'no line \"Decides:\" naming who decides whether to notify'\nneed '72 hours' 'does not say the authority is notified within 72 hours of becoming aware'\nneed 'nature of the breach' 'does not ask for the nature of the breach (categories and numbers of people and records)'\nneed 'data protection officer' 'does not give the contact of the data protection officer'\nneed 'likely consequences' 'does not ask for the likely consequences'\nneed 'measures' 'does not ask for the measures taken or proposed'\nlate=$(yq '.processors[] | select((.breach_notice_hours // 1000) > {{PROCESSOR_NOTICE_HOURS}}) | .name' processors.yaml)\n[ -z \"$late\" ] || { echo \"processors.yaml: no breach notice within {{PROCESSOR_NOTICE_HOURS}} hours: $late\"; problems=$((problems + 1)); }\nexit $problems\n```",
1328
+ "hubWhen": {
1329
+ "PERSONAL": [
1330
+ "yes"
1331
+ ]
1332
+ }
1333
+ },
1334
+ {
1335
+ "id": "ff-region",
1336
+ "type": "fitness-fn",
1337
+ "label": "Deployed in EU regions",
1338
+ "x": 1040,
1339
+ "y": 1170,
1340
+ "characteristic": "security",
1341
+ "scope": "atomic",
1342
+ "cadence": "triggered",
1343
+ "trigger": "pull-request",
1344
+ "invocation": "automated",
1345
+ "description": "In CI the Terraform plan (terraform show -json) is checked by a policy that fails on any provider or backup copy destination outside the allowed EU regions (the region is read from the vault ARN, so eu-west-2, London, is refused); the same run checks processors.yaml, the processor register, against the EEA country list.\n\nThreshold: 0 providers, backup copies or processors outside EU/EEA regions in the infrastructure plan and the processor register\n\nTool: Conftest (on the Terraform plan and on processors.yaml)\n\n```rego\npackage main\n\nimport rego.v1\n\neu_regions := {\"eu-central-1\", \"eu-central-2\", \"eu-west-1\", \"eu-west-3\", \"eu-north-1\", \"eu-south-1\", \"eu-south-2\"}\neea := {\"AT\", \"BE\", \"BG\", \"HR\", \"CY\", \"CZ\", \"DK\", \"EE\", \"FI\", \"FR\", \"DE\", \"GR\", \"HU\", \"IE\", \"IT\", \"LV\", \"LT\", \"LU\", \"MT\", \"NL\", \"PL\", \"PT\", \"RO\", \"SK\", \"SI\", \"ES\", \"SE\", \"IS\", \"LI\", \"NO\"}\n\ndeny contains msg if {\n\tsome name, p in input.configuration.provider_config\n\tp.name == \"aws\"\n\tregion := p.expressions.region.constant_value\n\tnot region in eu_regions\n\tmsg := sprintf(\"provider %s deploys to %s, outside the EU\", [name, region])\n}\n\ndeny contains msg if {\n\tsome r in input.resource_changes\n\tr.type == \"aws_backup_plan\"\n\tsome rule in r.change.after.rule\n\tsome copy in rule.copy_action\n\tregion := split(copy.destination_vault_arn, \":\")[3]\n\tnot region in eu_regions\n\tmsg := sprintf(\"backup plan %s copies to %s, outside the EU\", [r.address, region])\n}\n\ndeny contains msg if {\n\tsome p in input.processors\n\tnot p.country in eea\n\tmsg := sprintf(\"processor %s is in %s, outside the EU/EEA\", [p.name, p.country])\n}\n```",
1346
+ "hubWhen": {
1347
+ "PERSONAL": [
1348
+ "yes"
1349
+ ],
1350
+ "REGION": [
1351
+ "eu"
1352
+ ]
1353
+ }
1354
+ },
1355
+ {
1356
+ "id": "ff-adequacy",
1357
+ "type": "fitness-fn",
1358
+ "label": "Processors in adequate countries",
1359
+ "x": 1040,
1360
+ "y": 1300,
1361
+ "characteristic": "security",
1362
+ "scope": "atomic",
1363
+ "cadence": "triggered",
1364
+ "trigger": "pull-request",
1365
+ "invocation": "automated",
1366
+ "description": "In CI a policy checks processors.yaml, the processor register kept in the repository, against the EU/EEA and the adequacy list; the list is updated when the Commission adopts or withdraws a decision.\n\nThreshold: 0 processors in the register outside the EU/EEA and the countries with an adequacy decision; 0 US processors without Data Privacy Framework certification\n\nTool: Conftest (on processors.yaml)\n\n```rego\npackage main\n\nimport rego.v1\n\neea := {\"AT\", \"BE\", \"BG\", \"HR\", \"CY\", \"CZ\", \"DK\", \"EE\", \"FI\", \"FR\", \"DE\", \"GR\", \"HU\", \"IE\", \"IT\", \"LV\", \"LT\", \"LU\", \"MT\", \"NL\", \"PL\", \"PT\", \"RO\", \"SK\", \"SI\", \"ES\", \"SE\", \"IS\", \"LI\", \"NO\"}\n# Adequacy decisions (GDPR Art. 45); US only for companies certified under the Data Privacy Framework\nadequate := {\"AD\", \"AR\", \"CA\", \"FO\", \"GG\", \"IL\", \"IM\", \"JP\", \"JE\", \"NZ\", \"KR\", \"CH\", \"GB\", \"UY\", \"US\"}\n\ndeny contains msg if {\n\tsome p in input.processors\n\tnot p.country in eea\n\tnot p.country in adequate\n\tmsg := sprintf(\"processor %s is in %s, which has no adequacy decision\", [p.name, p.country])\n}\n\ndeny contains msg if {\n\tsome p in input.processors\n\tp.country == \"US\"\n\tnot p.dpf_certified\n\tmsg := sprintf(\"processor %s is in the US but not certified under the Data Privacy Framework\", [p.name])\n}\n```",
1367
+ "hubWhen": {
1368
+ "PERSONAL": [
1369
+ "yes"
1370
+ ],
1371
+ "REGION": [
1372
+ "adequate"
1373
+ ]
1374
+ }
1375
+ },
1376
+ {
1377
+ "id": "ff-scc",
1378
+ "type": "fitness-fn",
1379
+ "label": "Transfers have clauses and assessment",
1380
+ "x": 1040,
1381
+ "y": 1430,
1382
+ "characteristic": "security",
1383
+ "scope": "atomic",
1384
+ "cadence": "triggered",
1385
+ "trigger": "pull-request",
1386
+ "invocation": "automated",
1387
+ "description": "In CI a policy checks processors.yaml, the processor register: every processor outside the EU/EEA and the adequate countries needs the date its clauses were signed and the date of its transfer impact assessment, not older than 12 months; a missing date fails as much as an old one.\n\nThreshold: 0 processors outside the EU/EEA and adequate countries without a signing date for the standard contractual clauses and a transfer impact assessment reviewed in the last 12 months\n\nTool: Conftest (on processors.yaml)\n\n```rego\npackage main\n\nimport rego.v1\n\neea := {\"AT\", \"BE\", \"BG\", \"HR\", \"CY\", \"CZ\", \"DK\", \"EE\", \"FI\", \"FR\", \"DE\", \"GR\", \"HU\", \"IE\", \"IT\", \"LV\", \"LT\", \"LU\", \"MT\", \"NL\", \"PL\", \"PT\", \"RO\", \"SK\", \"SI\", \"ES\", \"SE\", \"IS\", \"LI\", \"NO\"}\nadequate := {\"AD\", \"AR\", \"CA\", \"FO\", \"GG\", \"IL\", \"IM\", \"JP\", \"JE\", \"NZ\", \"KR\", \"CH\", \"GB\", \"UY\", \"US\"}\nyear_ns := 365 * 24 * 60 * 60 * 1000000000\n\nneeds_safeguards(p) if {\n\tnot p.country in eea\n\tnot p.country in adequate\n}\n\ndeny contains msg if {\n\tsome p in input.processors\n\tneeds_safeguards(p)\n\tnot p.scc_signed\n\tmsg := sprintf(\"processor %s in %s has no standard contractual clauses\", [p.name, p.country])\n}\n\ndeny contains msg if {\n\tsome p in input.processors\n\tneeds_safeguards(p)\n\tnot p.tia_reviewed\n\tmsg := sprintf(\"processor %s in %s has no transfer impact assessment\", [p.name, p.country])\n}\n\ndeny contains msg if {\n\tsome p in input.processors\n\tneeds_safeguards(p)\n\ttime.now_ns() - time.parse_rfc3339_ns(sprintf(\"%sT00:00:00Z\", [p.tia_reviewed])) > year_ns\n\tmsg := sprintf(\"processor %s: transfer impact assessment older than 12 months\", [p.name])\n}\n```",
1388
+ "hubWhen": {
1389
+ "PERSONAL": [
1390
+ "yes"
1391
+ ],
1392
+ "REGION": [
1393
+ "any"
1394
+ ]
1395
+ }
1396
+ },
1397
+ {
1398
+ "id": "ff-special",
1399
+ "type": "fitness-fn",
1400
+ "label": "Special fields encrypted and read-logged",
1401
+ "x": 1040,
1402
+ "y": 1560,
1403
+ "characteristic": "security",
1404
+ "scope": "atomic",
1405
+ "cadence": "triggered",
1406
+ "trigger": "pull-request",
1407
+ "invocation": "automated",
1408
+ "description": "A database test run in CI after the migrations asserts that each special-category column holds ciphertext, that only the listed roles have SELECT on its table, that pgaudit.role names the auditor role, and that the auditor role holds SELECT on the table, which is what makes pgAudit log every read of it.\n\nThreshold: Every column classified as special category is stored as ciphertext (bytea), 0 roles outside the record of processing may read it, and pgAudit object logging through the auditor role covers its table\n\nTool: pgTAP (run with pg_prove) with the pgAudit extension\n\n```sql\nBEGIN;\nSELECT plan(5);\nSELECT col_type_is('health', 'conditions', 'diagnosis', 'bytea', 'diagnosis is stored encrypted');\nSELECT table_privs_are('health', 'conditions', 'care_service', ARRAY['SELECT', 'INSERT', 'UPDATE']);\nSELECT table_privs_are('health', 'conditions', 'reporting', ARRAY[]::text[], 'reporting cannot read diagnoses');\nSELECT is(current_setting('pgaudit.role', true), 'auditor', 'pgAudit object logging goes through the auditor role');\nSELECT table_privs_are('health', 'conditions', 'auditor', ARRAY['SELECT'], 'reads of diagnoses are logged');\nSELECT * FROM finish();\nROLLBACK;\n```",
1409
+ "hubWhen": {
1410
+ "PERSONAL": [
1411
+ "yes"
1412
+ ],
1413
+ "SPECIAL": [
1414
+ "yes"
1415
+ ]
1416
+ }
1417
+ },
1418
+ {
1419
+ "id": "ff-dpia-gate",
1420
+ "type": "fitness-fn",
1421
+ "label": "No DPIA, no deploy",
1422
+ "x": 1040,
1423
+ "y": 1690,
1424
+ "characteristic": "security",
1425
+ "scope": "atomic",
1426
+ "cadence": "triggered",
1427
+ "trigger": "release",
1428
+ "invocation": "automated",
1429
+ "description": "A release gate reads docs/record-of-processing.json: every entry marked special must link a DPIA file under docs/dpia whose front matter says status: approved; the release stops on any that does not.\n\nThreshold: 0 purposes, stores or recipients of special-category data in the record of processing without an approved impact assessment linked\n\nTool: jq and grep in the release pipeline (bash)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nfailed=0\nfor entry in $(jq -r '.processing[] | select(.special == true) | \"\\(.purpose)|\\(.dpia // \"\")\"' docs/record-of-processing.json); do\n purpose=${entry%%|*}; dpia=${entry#*|}\n if [ -z \"$dpia\" ] || [ ! -f \"docs/dpia/$dpia\" ]; then echo \"$purpose: no DPIA linked\"; failed=1; continue; fi\n grep -q '^status: approved$' \"docs/dpia/$dpia\" || { echo \"$purpose: $dpia is not approved\"; failed=1; }\ndone\nexit $failed\n```",
1430
+ "hubWhen": {
1431
+ "PERSONAL": [
1432
+ "yes"
1433
+ ],
1434
+ "SPECIAL": [
1435
+ "yes"
1436
+ ]
1437
+ }
1438
+ },
1439
+ {
1440
+ "id": "ff-purpose-roles",
1441
+ "type": "fitness-fn",
1442
+ "label": "Purpose enforced by role",
1443
+ "x": 1040,
1444
+ "y": 1820,
1445
+ "characteristic": "security",
1446
+ "scope": "atomic",
1447
+ "cadence": "triggered",
1448
+ "trigger": "pull-request",
1449
+ "invocation": "automated",
1450
+ "description": "A database test run in CI after the migrations compares the SELECT grants on personal tables with the recipients of docs/record-of-processing.json, loaded into a temporary table by the pipeline, and fails on any grant the record does not explain.\n\nThreshold: Every service role has SELECT on a personal table only when the record of processing lists it for a purpose of that table; 0 grants beyond the record\n\nTool: pgTAP (run with pg_prove); the pipeline loads the record into record_recipients(table_name, role_name) first\n\n```sql\nBEGIN;\nSELECT plan(1);\n\nSELECT is_empty($$\n SELECT g.grantee, g.table_name\n FROM information_schema.role_table_grants g\n JOIN information_schema.columns c ON c.table_schema = g.table_schema AND c.table_name = g.table_name\n JOIN pg_class t ON t.relname = c.table_name\n JOIN pg_namespace n ON n.oid = t.relnamespace AND n.nspname = c.table_schema\n JOIN pg_description d ON d.objoid = t.oid AND d.objsubid = c.ordinal_position\n LEFT JOIN record_recipients r ON r.table_name = g.table_name AND r.role_name = g.grantee\n WHERE g.privilege_type = 'SELECT'\n AND d.description ~ '^(personal|special)( |:|$)'\n AND g.grantee NOT IN ('postgres', 'migrator')\n AND r.role_name IS NULL\n$$, 'no role reads personal data beyond the record of processing');\n\nSELECT * FROM finish();\nROLLBACK;\n```",
1451
+ "hubWhen": {
1452
+ "PERSONAL": [
1453
+ "yes"
1454
+ ],
1455
+ "BASIS": [
1456
+ "contract"
1457
+ ]
1458
+ }
1459
+ },
1460
+ {
1461
+ "id": "ff-consent",
1462
+ "type": "fitness-fn",
1463
+ "label": "Consent recorded and honoured",
1464
+ "x": 1040,
1465
+ "y": 1950,
1466
+ "characteristic": "functional-suitability",
1467
+ "scope": "atomic",
1468
+ "cadence": "triggered",
1469
+ "trigger": "pull-request",
1470
+ "invocation": "automated",
1471
+ "description": "An integration test gives consent for personalised offers as a person, withdraws it with one request, reads both records back, and runs the personalisation job to check that the person is skipped.\n\nThreshold: Giving and withdrawing consent each produce 1 record with purpose, wording version, time and channel; withdrawal takes 1 request; after it the purpose's job skips the person\n\nTool: Vitest with supertest\n\n```ts\nimport request from 'supertest'\nimport { app } from '../src/app'\nimport { consents } from '../src/privacy/consents'\nimport { personalisation } from '../src/marketing/personalisation'\nimport { createPerson, tokenFor } from './privacy/fixtures'\n\nit('records consent and its withdrawal, and stops the processing', async () => {\n const person = await createPerson({ email: 'consent@example.test' })\n await request(app).post('/me/consents').send({ purpose: 'personalised-offers', wordingVersion: 3 }).set('Authorization', `Bearer ${await tokenFor(person)}`).expect(201)\n await request(app).delete('/me/consents/personalised-offers').set('Authorization', `Bearer ${await tokenFor(person)}`).expect(204)\n const records = await consents.history(person.id, 'personalised-offers')\n expect(records).toHaveLength(2)\n for (const r of records) expect(r).toMatchObject({ purpose: 'personalised-offers', wordingVersion: 3, at: expect.any(Date), channel: 'web' })\n expect(records.map((r) => r.event)).toEqual(['given', 'withdrawn'])\n expect(await personalisation.run({ personIds: [person.id] })).toMatchObject({ processed: [], skipped: [person.id] })\n})\n```",
1472
+ "hubWhen": {
1473
+ "PERSONAL": [
1474
+ "yes"
1475
+ ],
1476
+ "BASIS": [
1477
+ "consent"
1478
+ ]
1479
+ }
1480
+ },
1481
+ {
1482
+ "id": "ff-objection",
1483
+ "type": "fitness-fn",
1484
+ "label": "Objections honoured",
1485
+ "x": 1040,
1486
+ "y": 2080,
1487
+ "characteristic": "functional-suitability",
1488
+ "scope": "atomic",
1489
+ "cadence": "triggered",
1490
+ "trigger": "pull-request",
1491
+ "invocation": "automated",
1492
+ "description": "An integration test objects as a person, sends a marketing campaign and runs the analytics job, and checks that neither touched the person and that the exclusion list holds the objection with its date.\n\nThreshold: After an objection, 0 marketing messages to the person and 0 analytics rows for them from the next job run on; the objection is on the exclusion list with its date\n\nTool: Vitest with supertest, the mail sender captured by the test harness\n\n```ts\nimport request from 'supertest'\nimport { app } from '../src/app'\nimport { exclusions } from '../src/privacy/exclusions'\nimport { campaigns } from '../src/marketing/campaigns'\nimport { usageAnalytics } from '../src/analytics/usage'\nimport { createPerson, tokenFor, mails } from './privacy/fixtures'\n\nit('stops marketing at once and analytics from the next run', async () => {\n const person = await createPerson({ email: 'object@example.test' })\n await request(app).post('/me/objections').send({ purposes: ['marketing', 'usage-analytics'] }).set('Authorization', `Bearer ${await tokenFor(person)}`).expect(201)\n expect(await exclusions.find(person.id)).toMatchObject({ purposes: ['marketing', 'usage-analytics'], objectedAt: expect.any(Date) })\n await campaigns.send('autumn-offers')\n expect(await mails.sentTo(person.email)).toEqual([])\n await usageAnalytics.run()\n expect(await usageAnalytics.rowsFor(person.id)).toEqual([])\n})\n```",
1493
+ "hubWhen": {
1494
+ "PERSONAL": [
1495
+ "yes"
1496
+ ],
1497
+ "BASIS": [
1498
+ "legitimate"
1499
+ ]
1500
+ }
1501
+ }
1502
+ ],
1503
+ "relations": [
1504
+ {
1505
+ "id": "req-record--derives--need",
1506
+ "sourceId": "req-record",
1507
+ "targetId": "need",
1508
+ "relationType": "derives"
1509
+ },
1510
+ {
1511
+ "id": "req-retain--derives--need",
1512
+ "sourceId": "req-retain",
1513
+ "targetId": "need",
1514
+ "relationType": "derives"
1515
+ },
1516
+ {
1517
+ "id": "req-access--derives--need",
1518
+ "sourceId": "req-access",
1519
+ "targetId": "need",
1520
+ "relationType": "derives"
1521
+ },
1522
+ {
1523
+ "id": "req-erase--derives--need",
1524
+ "sourceId": "req-erase",
1525
+ "targetId": "need",
1526
+ "relationType": "derives"
1527
+ },
1528
+ {
1529
+ "id": "req-backups--derives--need",
1530
+ "sourceId": "req-backups",
1531
+ "targetId": "need",
1532
+ "relationType": "derives"
1533
+ },
1534
+ {
1535
+ "id": "req-anonymise--derives--need",
1536
+ "sourceId": "req-anonymise",
1537
+ "targetId": "need",
1538
+ "relationType": "derives"
1539
+ },
1540
+ {
1541
+ "id": "req-shred--derives--need",
1542
+ "sourceId": "req-shred",
1543
+ "targetId": "need",
1544
+ "relationType": "derives"
1545
+ },
1546
+ {
1547
+ "id": "req-protect--derives--need",
1548
+ "sourceId": "req-protect",
1549
+ "targetId": "need",
1550
+ "relationType": "derives"
1551
+ },
1552
+ {
1553
+ "id": "req-breach--derives--need",
1554
+ "sourceId": "req-breach",
1555
+ "targetId": "need",
1556
+ "relationType": "derives"
1557
+ },
1558
+ {
1559
+ "id": "req-breach-register--derives--need",
1560
+ "sourceId": "req-breach-register",
1561
+ "targetId": "need",
1562
+ "relationType": "derives"
1563
+ },
1564
+ {
1565
+ "id": "req-breach-people--derives--need",
1566
+ "sourceId": "req-breach-people",
1567
+ "targetId": "need",
1568
+ "relationType": "derives"
1569
+ },
1570
+ {
1571
+ "id": "req-breach-processor--derives--need",
1572
+ "sourceId": "req-breach-processor",
1573
+ "targetId": "need",
1574
+ "relationType": "derives"
1575
+ },
1576
+ {
1577
+ "id": "req-region-eu--derives--need",
1578
+ "sourceId": "req-region-eu",
1579
+ "targetId": "need",
1580
+ "relationType": "derives"
1581
+ },
1582
+ {
1583
+ "id": "req-region-adequate--derives--need",
1584
+ "sourceId": "req-region-adequate",
1585
+ "targetId": "need",
1586
+ "relationType": "derives"
1587
+ },
1588
+ {
1589
+ "id": "req-region-scc--derives--need",
1590
+ "sourceId": "req-region-scc",
1591
+ "targetId": "need",
1592
+ "relationType": "derives"
1593
+ },
1594
+ {
1595
+ "id": "req-special--derives--need",
1596
+ "sourceId": "req-special",
1597
+ "targetId": "need",
1598
+ "relationType": "derives"
1599
+ },
1600
+ {
1601
+ "id": "req-dpia--derives--need",
1602
+ "sourceId": "req-dpia",
1603
+ "targetId": "need",
1604
+ "relationType": "derives"
1605
+ },
1606
+ {
1607
+ "id": "req-purpose--derives--need",
1608
+ "sourceId": "req-purpose",
1609
+ "targetId": "need",
1610
+ "relationType": "derives"
1611
+ },
1612
+ {
1613
+ "id": "req-consent--derives--need",
1614
+ "sourceId": "req-consent",
1615
+ "targetId": "need",
1616
+ "relationType": "derives"
1617
+ },
1618
+ {
1619
+ "id": "req-objection--derives--need",
1620
+ "sourceId": "req-objection",
1621
+ "targetId": "need",
1622
+ "relationType": "derives"
1623
+ },
1624
+ {
1625
+ "id": "req-none--derives--need",
1626
+ "sourceId": "req-none",
1627
+ "targetId": "need",
1628
+ "relationType": "derives"
1629
+ },
1630
+ {
1631
+ "id": "sc-record--verifies--req-record",
1632
+ "sourceId": "sc-record",
1633
+ "targetId": "req-record",
1634
+ "relationType": "verifies"
1635
+ },
1636
+ {
1637
+ "id": "sc-retain--verifies--req-retain",
1638
+ "sourceId": "sc-retain",
1639
+ "targetId": "req-retain",
1640
+ "relationType": "verifies"
1641
+ },
1642
+ {
1643
+ "id": "sc-access--verifies--req-access",
1644
+ "sourceId": "sc-access",
1645
+ "targetId": "req-access",
1646
+ "relationType": "verifies"
1647
+ },
1648
+ {
1649
+ "id": "sc-erase--verifies--req-erase",
1650
+ "sourceId": "sc-erase",
1651
+ "targetId": "req-erase",
1652
+ "relationType": "verifies"
1653
+ },
1654
+ {
1655
+ "id": "sc-backups--verifies--req-backups",
1656
+ "sourceId": "sc-backups",
1657
+ "targetId": "req-backups",
1658
+ "relationType": "verifies"
1659
+ },
1660
+ {
1661
+ "id": "sc-anonymise--verifies--req-anonymise",
1662
+ "sourceId": "sc-anonymise",
1663
+ "targetId": "req-anonymise",
1664
+ "relationType": "verifies"
1665
+ },
1666
+ {
1667
+ "id": "sc-shred--verifies--req-shred",
1668
+ "sourceId": "sc-shred",
1669
+ "targetId": "req-shred",
1670
+ "relationType": "verifies"
1671
+ },
1672
+ {
1673
+ "id": "sc-protect--verifies--req-protect",
1674
+ "sourceId": "sc-protect",
1675
+ "targetId": "req-protect",
1676
+ "relationType": "verifies"
1677
+ },
1678
+ {
1679
+ "id": "sc-breach--verifies--req-breach",
1680
+ "sourceId": "sc-breach",
1681
+ "targetId": "req-breach",
1682
+ "relationType": "verifies"
1683
+ },
1684
+ {
1685
+ "id": "sc-breach-register--verifies--req-breach-register",
1686
+ "sourceId": "sc-breach-register",
1687
+ "targetId": "req-breach-register",
1688
+ "relationType": "verifies"
1689
+ },
1690
+ {
1691
+ "id": "sc-breach-people--verifies--req-breach-people",
1692
+ "sourceId": "sc-breach-people",
1693
+ "targetId": "req-breach-people",
1694
+ "relationType": "verifies"
1695
+ },
1696
+ {
1697
+ "id": "sc-breach-processor--verifies--req-breach-processor",
1698
+ "sourceId": "sc-breach-processor",
1699
+ "targetId": "req-breach-processor",
1700
+ "relationType": "verifies"
1701
+ },
1702
+ {
1703
+ "id": "sc-region-eu--verifies--req-region-eu",
1704
+ "sourceId": "sc-region-eu",
1705
+ "targetId": "req-region-eu",
1706
+ "relationType": "verifies"
1707
+ },
1708
+ {
1709
+ "id": "sc-region-adequate--verifies--req-region-adequate",
1710
+ "sourceId": "sc-region-adequate",
1711
+ "targetId": "req-region-adequate",
1712
+ "relationType": "verifies"
1713
+ },
1714
+ {
1715
+ "id": "sc-region-scc--verifies--req-region-scc",
1716
+ "sourceId": "sc-region-scc",
1717
+ "targetId": "req-region-scc",
1718
+ "relationType": "verifies"
1719
+ },
1720
+ {
1721
+ "id": "sc-special--verifies--req-special",
1722
+ "sourceId": "sc-special",
1723
+ "targetId": "req-special",
1724
+ "relationType": "verifies"
1725
+ },
1726
+ {
1727
+ "id": "sc-dpia--verifies--req-dpia",
1728
+ "sourceId": "sc-dpia",
1729
+ "targetId": "req-dpia",
1730
+ "relationType": "verifies"
1731
+ },
1732
+ {
1733
+ "id": "sc-purpose--verifies--req-purpose",
1734
+ "sourceId": "sc-purpose",
1735
+ "targetId": "req-purpose",
1736
+ "relationType": "verifies"
1737
+ },
1738
+ {
1739
+ "id": "sc-consent--verifies--req-consent",
1740
+ "sourceId": "sc-consent",
1741
+ "targetId": "req-consent",
1742
+ "relationType": "verifies"
1743
+ },
1744
+ {
1745
+ "id": "sc-objection--verifies--req-objection",
1746
+ "sourceId": "sc-objection",
1747
+ "targetId": "req-objection",
1748
+ "relationType": "verifies"
1749
+ },
1750
+ {
1751
+ "id": "sc-none--verifies--req-none",
1752
+ "sourceId": "sc-none",
1753
+ "targetId": "req-none",
1754
+ "relationType": "verifies"
1755
+ },
1756
+ {
1757
+ "id": "ff-retention--implements--adr-delete",
1758
+ "sourceId": "ff-retention",
1759
+ "targetId": "adr-delete",
1760
+ "relationType": "implements"
1761
+ },
1762
+ {
1763
+ "id": "ff-retention--implements--adr-anonymise",
1764
+ "sourceId": "ff-retention",
1765
+ "targetId": "adr-anonymise",
1766
+ "relationType": "implements"
1767
+ },
1768
+ {
1769
+ "id": "ff-retention--implements--adr-crypto",
1770
+ "sourceId": "ff-retention",
1771
+ "targetId": "adr-crypto",
1772
+ "relationType": "implements"
1773
+ },
1774
+ {
1775
+ "id": "ff-record--implements--adr-delete",
1776
+ "sourceId": "ff-record",
1777
+ "targetId": "adr-delete",
1778
+ "relationType": "implements"
1779
+ },
1780
+ {
1781
+ "id": "ff-record--implements--adr-anonymise",
1782
+ "sourceId": "ff-record",
1783
+ "targetId": "adr-anonymise",
1784
+ "relationType": "implements"
1785
+ },
1786
+ {
1787
+ "id": "ff-record--implements--adr-crypto",
1788
+ "sourceId": "ff-record",
1789
+ "targetId": "adr-crypto",
1790
+ "relationType": "implements"
1791
+ },
1792
+ {
1793
+ "id": "ff-record--implements--adr-no-special",
1794
+ "sourceId": "ff-record",
1795
+ "targetId": "adr-no-special",
1796
+ "relationType": "implements"
1797
+ },
1798
+ {
1799
+ "id": "ff-pii-scan--implements--adr-delete",
1800
+ "sourceId": "ff-pii-scan",
1801
+ "targetId": "adr-delete",
1802
+ "relationType": "implements"
1803
+ },
1804
+ {
1805
+ "id": "ff-pii-scan--implements--adr-anonymise",
1806
+ "sourceId": "ff-pii-scan",
1807
+ "targetId": "adr-anonymise",
1808
+ "relationType": "implements"
1809
+ },
1810
+ {
1811
+ "id": "ff-pii-scan--implements--adr-crypto",
1812
+ "sourceId": "ff-pii-scan",
1813
+ "targetId": "adr-crypto",
1814
+ "relationType": "implements"
1815
+ },
1816
+ {
1817
+ "id": "ff-pii-scan--implements--adr-no-personal",
1818
+ "sourceId": "ff-pii-scan",
1819
+ "targetId": "adr-no-personal",
1820
+ "relationType": "implements"
1821
+ },
1822
+ {
1823
+ "id": "ff-erasure--implements--adr-delete",
1824
+ "sourceId": "ff-erasure",
1825
+ "targetId": "adr-delete",
1826
+ "relationType": "implements"
1827
+ },
1828
+ {
1829
+ "id": "ff-erasure--implements--adr-anonymise",
1830
+ "sourceId": "ff-erasure",
1831
+ "targetId": "adr-anonymise",
1832
+ "relationType": "implements"
1833
+ },
1834
+ {
1835
+ "id": "ff-k-anonymity--implements--adr-anonymise",
1836
+ "sourceId": "ff-k-anonymity",
1837
+ "targetId": "adr-anonymise",
1838
+ "relationType": "implements"
1839
+ },
1840
+ {
1841
+ "id": "ff-shred--implements--adr-crypto",
1842
+ "sourceId": "ff-shred",
1843
+ "targetId": "adr-crypto",
1844
+ "relationType": "implements"
1845
+ },
1846
+ {
1847
+ "id": "ff-protect--implements--adr-delete",
1848
+ "sourceId": "ff-protect",
1849
+ "targetId": "adr-delete",
1850
+ "relationType": "implements"
1851
+ },
1852
+ {
1853
+ "id": "ff-protect--implements--adr-anonymise",
1854
+ "sourceId": "ff-protect",
1855
+ "targetId": "adr-anonymise",
1856
+ "relationType": "implements"
1857
+ },
1858
+ {
1859
+ "id": "ff-protect--implements--adr-crypto",
1860
+ "sourceId": "ff-protect",
1861
+ "targetId": "adr-crypto",
1862
+ "relationType": "implements"
1863
+ },
1864
+ {
1865
+ "id": "ff-breach-register--implements--adr-delete",
1866
+ "sourceId": "ff-breach-register",
1867
+ "targetId": "adr-delete",
1868
+ "relationType": "implements"
1869
+ },
1870
+ {
1871
+ "id": "ff-breach-register--implements--adr-anonymise",
1872
+ "sourceId": "ff-breach-register",
1873
+ "targetId": "adr-anonymise",
1874
+ "relationType": "implements"
1875
+ },
1876
+ {
1877
+ "id": "ff-breach-register--implements--adr-crypto",
1878
+ "sourceId": "ff-breach-register",
1879
+ "targetId": "adr-crypto",
1880
+ "relationType": "implements"
1881
+ },
1882
+ {
1883
+ "id": "ff-breach-runbook--implements--adr-delete",
1884
+ "sourceId": "ff-breach-runbook",
1885
+ "targetId": "adr-delete",
1886
+ "relationType": "implements"
1887
+ },
1888
+ {
1889
+ "id": "ff-breach-runbook--implements--adr-anonymise",
1890
+ "sourceId": "ff-breach-runbook",
1891
+ "targetId": "adr-anonymise",
1892
+ "relationType": "implements"
1893
+ },
1894
+ {
1895
+ "id": "ff-breach-runbook--implements--adr-crypto",
1896
+ "sourceId": "ff-breach-runbook",
1897
+ "targetId": "adr-crypto",
1898
+ "relationType": "implements"
1899
+ },
1900
+ {
1901
+ "id": "ff-region--implements--adr-region-eu",
1902
+ "sourceId": "ff-region",
1903
+ "targetId": "adr-region-eu",
1904
+ "relationType": "implements"
1905
+ },
1906
+ {
1907
+ "id": "ff-adequacy--implements--adr-region-adequate",
1908
+ "sourceId": "ff-adequacy",
1909
+ "targetId": "adr-region-adequate",
1910
+ "relationType": "implements"
1911
+ },
1912
+ {
1913
+ "id": "ff-scc--implements--adr-region-any",
1914
+ "sourceId": "ff-scc",
1915
+ "targetId": "adr-region-any",
1916
+ "relationType": "implements"
1917
+ },
1918
+ {
1919
+ "id": "ff-special--implements--adr-special",
1920
+ "sourceId": "ff-special",
1921
+ "targetId": "adr-special",
1922
+ "relationType": "implements"
1923
+ },
1924
+ {
1925
+ "id": "ff-dpia-gate--implements--adr-special",
1926
+ "sourceId": "ff-dpia-gate",
1927
+ "targetId": "adr-special",
1928
+ "relationType": "implements"
1929
+ },
1930
+ {
1931
+ "id": "ff-purpose-roles--implements--adr-basis-contract",
1932
+ "sourceId": "ff-purpose-roles",
1933
+ "targetId": "adr-basis-contract",
1934
+ "relationType": "implements"
1935
+ },
1936
+ {
1937
+ "id": "ff-consent--implements--adr-basis-consent",
1938
+ "sourceId": "ff-consent",
1939
+ "targetId": "adr-basis-consent",
1940
+ "relationType": "implements"
1941
+ },
1942
+ {
1943
+ "id": "ff-objection--implements--adr-basis-legitimate",
1944
+ "sourceId": "ff-objection",
1945
+ "targetId": "adr-basis-legitimate",
1946
+ "relationType": "implements"
1947
+ }
1948
+ ]
1949
+ }