@radicaltools/mcp 0.2.0 → 0.3.0

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 (159) hide show
  1. package/README.md +41 -23
  2. package/dist/{chunk-OGN3UW2D.js → chunk-Z7THA3L5.js} +670 -64
  3. package/dist/{elkLayout-S62RLGTO.js → elkLayout-TAUBPPVN.js} +1 -1
  4. package/dist/hub-catalogue/concern/concern-api-evolution.radical +935 -0
  5. package/dist/hub-catalogue/concern/concern-architecture-style.radical +1112 -0
  6. package/dist/hub-catalogue/concern/concern-authentication.radical +685 -0
  7. package/dist/hub-catalogue/concern/concern-authorization.radical +1464 -0
  8. package/dist/hub-catalogue/concern/concern-availability.radical +804 -0
  9. package/dist/hub-catalogue/concern/concern-backend-stack.radical +1118 -0
  10. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1304 -0
  11. package/dist/hub-catalogue/concern/concern-capacity.radical +802 -0
  12. package/dist/hub-catalogue/concern/concern-communication-style.radical +1202 -0
  13. package/dist/hub-catalogue/concern/concern-data-consistency.radical +1081 -0
  14. package/dist/hub-catalogue/concern/concern-data-store.radical +960 -0
  15. package/dist/hub-catalogue/concern/concern-decomposition.radical +1143 -0
  16. package/dist/hub-catalogue/concern/concern-deployment.radical +952 -0
  17. package/dist/hub-catalogue/concern/concern-encryption.radical +1055 -0
  18. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1340 -0
  19. package/dist/hub-catalogue/concern/concern-infrastructure.radical +1151 -0
  20. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1079 -0
  21. package/dist/hub-catalogue/concern/concern-messaging.radical +940 -0
  22. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +864 -0
  23. package/dist/hub-catalogue/concern/concern-observability.radical +1048 -0
  24. package/dist/hub-catalogue/concern/concern-personal-data.radical +1434 -0
  25. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1153 -0
  26. package/dist/hub-catalogue/concern/concern-secrets.radical +1026 -0
  27. package/dist/hub-catalogue/concern/concern-supply-chain.radical +1312 -0
  28. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1306 -0
  29. package/dist/hub-catalogue/concern/concern-test-strategy.radical +1193 -0
  30. package/dist/index.js +9440 -3854
  31. package/package.json +1 -1
  32. package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
  33. package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
  34. package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
  35. package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
  36. package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
  37. package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
  38. package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
  39. package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
  40. package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
  41. package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
  42. package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
  43. package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
  44. package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
  45. package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
  46. package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
  47. package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
  48. package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
  49. package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
  50. package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
  51. package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
  52. package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
  53. package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
  54. package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
  55. package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
  56. package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
  57. package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
  58. package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
  59. package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
  60. package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
  61. package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
  62. package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
  63. package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
  64. package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
  65. package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
  66. package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
  67. package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
  68. package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
  69. package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
  70. package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
  71. package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
  72. package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
  73. package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
  74. package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
  75. package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
  76. package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
  77. package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
  78. package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
  79. package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
  80. package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
  81. package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
  82. package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
  83. package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
  84. package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
  85. package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
  86. package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
  87. package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
  88. package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
  89. package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
  90. package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
  91. package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
  92. package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
  93. package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
  94. package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
  95. package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
  96. package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
  97. package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
  98. package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
  99. package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
  100. package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
  101. package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
  102. package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
  103. package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
  104. package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
  105. package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
  106. package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
  107. package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
  108. package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
  109. package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
  110. package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
  111. package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
  112. package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
  113. package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
  114. package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
  115. package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
  116. package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
  117. package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
  118. package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
  119. package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
  120. package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
  121. package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
  122. package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
  123. package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
  124. package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
  125. package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
  126. package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
  127. package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
  128. package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
  129. package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
  130. package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
  131. package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
  132. package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
  133. package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
  134. package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
  135. package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
  136. package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
  137. package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
  138. package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
  139. package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
  140. package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
  141. package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
  142. package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
  143. package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
  144. package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
  145. package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
  146. package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
  147. package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
  148. package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
  149. package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
  150. package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
  151. package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
  152. package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
  153. package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
  154. package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
  155. package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
  156. package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
  157. package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
  158. package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
  159. package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
@@ -0,0 +1,1304 @@
1
+ {
2
+ "hub": {
3
+ "id": "concern-backup-recovery",
4
+ "category": "concern",
5
+ "name": "Backup and recovery",
6
+ "description": "When a store is lost: how much data may go with it, how fast it comes back, where the copies are kept, and the drill that proves it.",
7
+ "tags": [
8
+ "reliability",
9
+ "backup",
10
+ "disaster-recovery",
11
+ "rpo",
12
+ "rto",
13
+ "ransomware"
14
+ ],
15
+ "requiredMetamodel": "c4-ddd-governance-builtin",
16
+ "concern": {
17
+ "id": "backup-recovery",
18
+ "trigger": "LIST NODES WHERE type = \"database\" AND external != true",
19
+ "why": "these stores hold what may not be recomputable, so how much may be lost, how fast it comes back and where the copies are kept has to be decided.",
20
+ "group": "data"
21
+ },
22
+ "sources": [
23
+ {
24
+ "title": "Google SRE book, chapter 26: Data Integrity: What You Read Is What You Wrote",
25
+ "url": "https://sre.google/sre-book/data-integrity/"
26
+ },
27
+ {
28
+ "title": "AWS whitepaper: Disaster Recovery of Workloads on AWS: Recovery in the Cloud",
29
+ "url": "https://docs.aws.amazon.com/whitepapers/latest/disaster-recovery-workloads-on-aws/disaster-recovery-workloads-on-aws.html"
30
+ },
31
+ {
32
+ "title": "AWS Well-Architected Framework, Reliability Pillar (REL09 back up data, REL13 plan for disaster recovery)",
33
+ "url": "https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/welcome.html"
34
+ },
35
+ {
36
+ "title": "Azure Well-Architected Framework: Develop a disaster recovery plan",
37
+ "url": "https://learn.microsoft.com/en-us/azure/well-architected/reliability/disaster-recovery"
38
+ },
39
+ {
40
+ "title": "CISA #StopRansomware Guide (offline, immutable backups)",
41
+ "url": "https://www.cisa.gov/stopransomware/ransomware-guide"
42
+ }
43
+ ],
44
+ "templateParams": [
45
+ {
46
+ "key": "METHOD",
47
+ "title": "Copies",
48
+ "label": "How is the store copied?",
49
+ "hint": "The method decides the recovery point: how much committed data may be lost. Pick the cheapest one that meets the RPO below.",
50
+ "defaultValue": "pitr",
51
+ "options": [
52
+ {
53
+ "value": "sync",
54
+ "label": "synchronous replication",
55
+ "description": "Every write is acknowledged only once a second zone or region has it, and backups still cover mistakes. Pick it when the RPO is 0: payments, ledgers, anything a customer was told is saved and cannot be redone."
56
+ },
57
+ {
58
+ "value": "pitr",
59
+ "label": "continuous backup with point-in-time recovery",
60
+ "description": "The write-ahead log is archived continuously, so the store restores to any second of the retention period. Pick it when a few minutes of loss is acceptable, which suits most transactional stores; managed databases offer it built in."
61
+ },
62
+ {
63
+ "value": "snapshot",
64
+ "label": "scheduled snapshots",
65
+ "description": "A consistent snapshot every few hours or every night. Pick it when the RPO is hours or more and the lost changes can be redone or re-imported, as for back-office or reference data."
66
+ },
67
+ {
68
+ "value": "rebuild",
69
+ "label": "rebuilt from its sources",
70
+ "description": "A cache, search index, read model or projection that can be rebuilt from the stores or event log it is derived from. Pick it only when nothing is written to it first and the rebuild fits in the RTO."
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ "key": "COPIES",
76
+ "title": "Copy location",
77
+ "label": "Where are the copies kept?",
78
+ "hint": "A copy that the same credentials can delete, or that sits in the same region, is lost together with the store; the 3-2-1 rule asks for three copies on two kinds of media, one of them off-site.",
79
+ "defaultValue": "vault",
80
+ "options": [
81
+ {
82
+ "value": "vault",
83
+ "label": "in another account and region, locked",
84
+ "description": "Copies go to a backup vault in a separate account and region, under a compliance-mode lock (write once, read many) that nobody can lift before they expire. Pick it for any production store on a cloud: it is what survives ransomware and a stolen administrator credential."
85
+ },
86
+ {
87
+ "value": "region",
88
+ "label": "in another region of the same account",
89
+ "description": "Copies go to a second region with deletion protection and an alert on every deletion. Pick it when a separate account is not possible yet and the risk accepted is an attacker with administrator rights."
90
+ },
91
+ {
92
+ "value": "offline",
93
+ "label": "offline at a second site",
94
+ "description": "A copy on tape or removable disks, disconnected after writing and kept at a second site under separate administration. Pick it for on-premises systems, or as the third copy where regulation demands an air gap."
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "key": "DR",
100
+ "title": "Region outage",
101
+ "label": "What happens when the whole region or site is lost?",
102
+ "hint": "The disaster recovery strategy decides the RTO for the worst case: from hours (backup and restore) to minutes (warm standby). Its cost rises in the same order.",
103
+ "defaultValue": "restore",
104
+ "options": [
105
+ {
106
+ "value": "restore",
107
+ "label": "backup and restore in a second region",
108
+ "description": "Infrastructure is recreated from code and the store restored from its copies in a second region. Pick it when an RTO of hours for a region loss is acceptable; it costs little more than the copies."
109
+ },
110
+ {
111
+ "value": "standby",
112
+ "label": "a warm standby in a second region",
113
+ "description": "A replica runs in the second region all the time, with the rest of the system scaled down beside it, and is promoted on failover. Pick it when a region loss must be recovered within minutes to an hour."
114
+ },
115
+ {
116
+ "value": "single",
117
+ "label": "one region, across zones",
118
+ "description": "The store survives the loss of a zone, but a region outage is waited out. Pick it when the business accepts that, and it is written down where customers can see it (the service level agreement)."
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ "key": "DRILL",
124
+ "title": "Restore drill",
125
+ "label": "How is recovery proven?",
126
+ "hint": "Recovery that is not exercised fails when it is needed: an expired credential, a missing step, a restore slower than anyone thought.",
127
+ "defaultValue": "auto",
128
+ "options": [
129
+ {
130
+ "value": "auto",
131
+ "label": "an automated restore test every week",
132
+ "description": "A scheduled pipeline restores (or rebuilds) the latest copy into an isolated environment, checks the data and measures the time. Pick it when the restore can be scripted end to end, which managed databases and pgBackRest allow."
133
+ },
134
+ {
135
+ "value": "manual",
136
+ "label": "a restore drill by the team every quarter",
137
+ "description": "People follow the runbook to restore into a clean environment, record the time and fix the runbook. Pick it when the restore needs human steps (tapes, approvals, a second site), or as the first step before automating."
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "key": "RPO_MINUTES",
143
+ "label": "How many minutes of committed data may be lost (RPO)?",
144
+ "defaultValue": "15",
145
+ "type": "number"
146
+ },
147
+ {
148
+ "key": "RTO_MINUTES",
149
+ "label": "How many minutes may the store be down after a loss (RTO)?",
150
+ "defaultValue": "60",
151
+ "type": "number"
152
+ },
153
+ {
154
+ "key": "RETAIN_DAYS",
155
+ "label": "For how many days are copies kept?",
156
+ "defaultValue": "35",
157
+ "type": "number"
158
+ }
159
+ ]
160
+ },
161
+ "nodes": [
162
+ {
163
+ "id": "need",
164
+ "type": "need",
165
+ "label": "Data survives a disaster",
166
+ "x": 0,
167
+ "y": 0,
168
+ "kind": "brief",
169
+ "source": "Hub concern pack: Backup and recovery",
170
+ "description": "Stores get lost: a broken disk, a deleted table, a bad migration, ransomware, a region down. How much data may be lost, how fast the system is back, whether the copies survive the same attack, and whether they actually restore are decisions that are usually tested only on the day they are needed."
171
+ },
172
+ {
173
+ "id": "req-sync",
174
+ "type": "requirement",
175
+ "label": "Writes stored twice",
176
+ "x": 260,
177
+ "y": 0,
178
+ "ears_type": "ubiquitous",
179
+ "action": "acknowledge a write only after it is durable in two availability zones or regions, so that losing one loses no acknowledged write",
180
+ "rationale": "An RPO of zero is reachable only with synchronous replication; asynchronous replicas lose what was in flight (AWS DR whitepaper, multi-site strategies; PostgreSQL synchronous_commit).",
181
+ "hubWhen": {
182
+ "METHOD": [
183
+ "sync"
184
+ ]
185
+ }
186
+ },
187
+ {
188
+ "id": "req-pitr",
189
+ "type": "requirement",
190
+ "label": "Point-in-time restore",
191
+ "x": 260,
192
+ "y": 130,
193
+ "ears_type": "ubiquitous",
194
+ "action": "archive the write-ahead log continuously so the store restores to any second of the last {{RETAIN_DAYS}} days, with the newest archived change never more than {{RPO_MINUTES}} minutes old",
195
+ "rationale": "Continuous archiving bounds the loss to the archive delay and gives a way back from a mistake made an hour ago (PostgreSQL docs, Continuous Archiving and Point-in-Time Recovery; AWS REL09-BP03).",
196
+ "hubWhen": {
197
+ "METHOD": [
198
+ "pitr"
199
+ ]
200
+ }
201
+ },
202
+ {
203
+ "id": "req-snapshot",
204
+ "type": "requirement",
205
+ "label": "Snapshots on schedule",
206
+ "x": 260,
207
+ "y": 260,
208
+ "ears_type": "ubiquitous",
209
+ "action": "take an application-consistent snapshot at least every {{RPO_MINUTES}} minutes and keep each for {{RETAIN_DAYS}} days",
210
+ "rationale": "The snapshot interval is the recovery point; the retention is the time to notice a silent corruption before the last good copy expires (Google SRE book, ch. 26; AWS REL09-BP03).",
211
+ "hubWhen": {
212
+ "METHOD": [
213
+ "snapshot"
214
+ ]
215
+ }
216
+ },
217
+ {
218
+ "id": "req-recover",
219
+ "type": "requirement",
220
+ "label": "Back within the limit",
221
+ "x": 260,
222
+ "y": 390,
223
+ "ears_type": "event-driven",
224
+ "trigger": "the store is lost, or a mistake or an attack destroys or corrupts its data",
225
+ "action": "restore service from its copies within {{RTO_MINUTES}} minutes, losing no more than {{RPO_MINUTES}} minutes of committed writes",
226
+ "rationale": "RTO and RPO are the recovery objectives the business sets for downtime and data loss (AWS REL13-BP01); replication alone does not undo a mistaken delete, which needs a copy from before it.",
227
+ "hubWhen": {
228
+ "METHOD": [
229
+ "sync",
230
+ "pitr",
231
+ "snapshot"
232
+ ]
233
+ }
234
+ },
235
+ {
236
+ "id": "req-copy-alert",
237
+ "type": "requirement",
238
+ "label": "Failed copies noticed",
239
+ "x": 260,
240
+ "y": 520,
241
+ "ears_type": "unwanted-behaviour",
242
+ "unwanted_condition": "a backup, a log archive or replication fails, or the newest copy is older than {{RPO_MINUTES}} minutes",
243
+ "action": "page the on-call engineer within 15 minutes",
244
+ "rationale": "Backups fail silently for months unless their age is watched; the age of the newest copy is the RPO actually held (Google SRE book, ch. 26).",
245
+ "hubWhen": {
246
+ "METHOD": [
247
+ "sync",
248
+ "pitr",
249
+ "snapshot"
250
+ ]
251
+ }
252
+ },
253
+ {
254
+ "id": "req-copies-vault",
255
+ "type": "requirement",
256
+ "label": "Copies locked away",
257
+ "x": 260,
258
+ "y": 650,
259
+ "ears_type": "ubiquitous",
260
+ "action": "keep the copies in a separate account and region, under a compliance-mode lock that prevents deleting or changing them for {{RETAIN_DAYS}} days, encrypted with a key held in that account",
261
+ "rationale": "Ransomware and stolen administrator credentials reach every copy that the same identity can delete; a write-once lock in another account is the off-site copy of the 3-2-1 rule (CISA #StopRansomware Guide; AWS REL09-BP02).",
262
+ "hubWhen": {
263
+ "METHOD": [
264
+ "sync",
265
+ "pitr",
266
+ "snapshot"
267
+ ],
268
+ "COPIES": [
269
+ "vault"
270
+ ]
271
+ }
272
+ },
273
+ {
274
+ "id": "req-copies-region",
275
+ "type": "requirement",
276
+ "label": "Copies in another region",
277
+ "x": 260,
278
+ "y": 780,
279
+ "ears_type": "ubiquitous",
280
+ "action": "copy every backup to a second region within 60 minutes of taking it, keep it {{RETAIN_DAYS}} days with deletion protection, and alert the on-call engineer within 5 minutes of any copy being deleted",
281
+ "rationale": "A copy in the same region goes down with it (AWS DR whitepaper, backup and restore); deletion protection and an alert are what is left when the account is shared.",
282
+ "hubWhen": {
283
+ "METHOD": [
284
+ "sync",
285
+ "pitr",
286
+ "snapshot"
287
+ ],
288
+ "COPIES": [
289
+ "region"
290
+ ]
291
+ }
292
+ },
293
+ {
294
+ "id": "req-copies-offline",
295
+ "type": "requirement",
296
+ "label": "Offline copy at a second site",
297
+ "x": 260,
298
+ "y": 910,
299
+ "ears_type": "ubiquitous",
300
+ "action": "write a copy at least every 24 hours to media that are disconnected after writing and kept at a second site under separate administration, and keep each for {{RETAIN_DAYS}} days",
301
+ "rationale": "An air-gapped copy cannot be reached by an attacker on the network (CISA #StopRansomware Guide: maintain offline, encrypted backups); the 3-2-1 rule asks for one copy off-site.",
302
+ "hubWhen": {
303
+ "METHOD": [
304
+ "sync",
305
+ "pitr",
306
+ "snapshot"
307
+ ],
308
+ "COPIES": [
309
+ "offline"
310
+ ]
311
+ }
312
+ },
313
+ {
314
+ "id": "req-dr-restore",
315
+ "type": "requirement",
316
+ "label": "Restored in a second region",
317
+ "x": 260,
318
+ "y": 1040,
319
+ "ears_type": "event-driven",
320
+ "trigger": "the primary region or site becomes unavailable",
321
+ "action": "recreate the infrastructure from code in the second region and restore the store there from its copies, within the region RTO the service level agreement states (at most 24 hours)",
322
+ "rationale": "Backup and restore is the cheapest disaster recovery strategy, with an RTO of hours (AWS DR whitepaper, REL13-BP02); it works only if the infrastructure is code.",
323
+ "hubWhen": {
324
+ "METHOD": [
325
+ "sync",
326
+ "pitr",
327
+ "snapshot"
328
+ ],
329
+ "DR": [
330
+ "restore"
331
+ ]
332
+ }
333
+ },
334
+ {
335
+ "id": "req-dr-standby",
336
+ "type": "requirement",
337
+ "label": "Standby takes over",
338
+ "x": 260,
339
+ "y": 1170,
340
+ "ears_type": "event-driven",
341
+ "trigger": "the primary region or site becomes unavailable",
342
+ "action": "promote the standby in the second region and serve from it within {{RTO_MINUTES}} minutes, its replication lag kept under {{RPO_MINUTES}} minutes while both are healthy",
343
+ "rationale": "A warm standby brings the region RTO down to minutes (AWS DR whitepaper, pilot light and warm standby; REL13-BP02); replication lag is the RPO of a region loss.",
344
+ "hubWhen": {
345
+ "METHOD": [
346
+ "sync",
347
+ "pitr",
348
+ "snapshot"
349
+ ],
350
+ "DR": [
351
+ "standby"
352
+ ]
353
+ }
354
+ },
355
+ {
356
+ "id": "req-dr-single",
357
+ "type": "requirement",
358
+ "label": "Zone loss survived",
359
+ "x": 260,
360
+ "y": 1300,
361
+ "ears_type": "state-driven",
362
+ "precondition": "while one availability zone of the store's region is unavailable",
363
+ "action": "keep serving from the other zones within {{RTO_MINUTES}} minutes, and state in the service level agreement that a loss of the whole region is waited out",
364
+ "rationale": "A single region with zone redundancy covers the common failures; a region outage is then an accepted risk, which customers must be told (Azure Well-Architected, disaster recovery; AWS REL10).",
365
+ "hubWhen": {
366
+ "METHOD": [
367
+ "sync",
368
+ "pitr",
369
+ "snapshot"
370
+ ],
371
+ "DR": [
372
+ "single"
373
+ ]
374
+ }
375
+ },
376
+ {
377
+ "id": "req-rebuild",
378
+ "type": "requirement",
379
+ "label": "Rebuilt from sources",
380
+ "x": 260,
381
+ "y": 1430,
382
+ "ears_type": "event-driven",
383
+ "trigger": "the store is lost or found corrupted",
384
+ "action": "rebuild it from its sources, in this or a second region, within {{RTO_MINUTES}} minutes, and serve nothing from it until the rebuild has caught up with the sources",
385
+ "rationale": "Data that can be reproduced from sources needs no backup if it can be reproduced in time (AWS REL09-BP01).",
386
+ "hubWhen": {
387
+ "METHOD": [
388
+ "rebuild"
389
+ ]
390
+ }
391
+ },
392
+ {
393
+ "id": "req-derived",
394
+ "type": "requirement",
395
+ "label": "Nothing only here",
396
+ "x": 260,
397
+ "y": 1560,
398
+ "ears_type": "unwanted-behaviour",
399
+ "unwanted_condition": "code other than the rebuild or projection process tries to write to the store",
400
+ "action": "refuse the write, so that nothing exists only in the store",
401
+ "rationale": "A rebuilt store loses whatever was written to it first; keeping it derived is what makes having no backup safe.",
402
+ "hubWhen": {
403
+ "METHOD": [
404
+ "rebuild"
405
+ ]
406
+ }
407
+ },
408
+ {
409
+ "id": "req-drill-auto",
410
+ "type": "requirement",
411
+ "label": "Weekly automated restore",
412
+ "x": 260,
413
+ "y": 1690,
414
+ "ears_type": "event-driven",
415
+ "trigger": "a week has passed since the last restore test",
416
+ "action": "restore or rebuild the latest copy automatically into an isolated environment, check row counts, the newest timestamp and a sample of records, and alert the owner when it fails or takes longer than {{RTO_MINUTES}} minutes",
417
+ "rationale": "Nobody wants backups, they want restores: only a restore that is exercised is known to work (Google SRE book, ch. 26; AWS REL09-BP04 periodic recovery).",
418
+ "hubWhen": {
419
+ "DRILL": [
420
+ "auto"
421
+ ]
422
+ }
423
+ },
424
+ {
425
+ "id": "req-drill-manual",
426
+ "type": "requirement",
427
+ "label": "Quarterly restore drill",
428
+ "x": 260,
429
+ "y": 1820,
430
+ "ears_type": "event-driven",
431
+ "trigger": "a quarter has passed since the last restore drill",
432
+ "action": "have someone other than the runbook's author restore or rebuild the store into a clean environment by following the runbook, record the time taken and the age of the data, and correct the runbook within 14 days",
433
+ "rationale": "A drill by someone who did not write the runbook finds the steps only its author knows (Google SRE book, ch. 26; AWS REL13-BP03 test disaster recovery).",
434
+ "hubWhen": {
435
+ "DRILL": [
436
+ "manual"
437
+ ]
438
+ }
439
+ },
440
+ {
441
+ "id": "sc-sync",
442
+ "type": "scenario",
443
+ "label": "Primary lost, nothing lost",
444
+ "x": 520,
445
+ "y": 0,
446
+ "given": "writes acknowledged to clients under load",
447
+ "when": "the primary is stopped without warning",
448
+ "then": "every acknowledged write is on the promoted replica",
449
+ "hubWhen": {
450
+ "METHOD": [
451
+ "sync"
452
+ ]
453
+ }
454
+ },
455
+ {
456
+ "id": "sc-pitr",
457
+ "type": "scenario",
458
+ "label": "Restored to the minute",
459
+ "x": 520,
460
+ "y": 130,
461
+ "given": "a table deleted by mistake at a known time",
462
+ "when": "the store is restored to one minute before",
463
+ "then": "the table is back with its data, and no more than {{RPO_MINUTES}} minutes of other changes are missing",
464
+ "hubWhen": {
465
+ "METHOD": [
466
+ "pitr"
467
+ ]
468
+ }
469
+ },
470
+ {
471
+ "id": "sc-snapshot",
472
+ "type": "scenario",
473
+ "label": "Last snapshot restores",
474
+ "x": 520,
475
+ "y": 260,
476
+ "given": "the newest snapshot",
477
+ "when": "it is restored into a clean environment",
478
+ "then": "the store holds the data of no more than {{RPO_MINUTES}} minutes before the snapshot ran",
479
+ "hubWhen": {
480
+ "METHOD": [
481
+ "snapshot"
482
+ ]
483
+ }
484
+ },
485
+ {
486
+ "id": "sc-recover",
487
+ "type": "scenario",
488
+ "label": "Store restored in time",
489
+ "x": 520,
490
+ "y": 390,
491
+ "given": "the store in a test environment with known data",
492
+ "when": "it is destroyed and restored from its copies",
493
+ "then": "service is back within {{RTO_MINUTES}} minutes and no more than {{RPO_MINUTES}} minutes of writes are missing",
494
+ "hubWhen": {
495
+ "METHOD": [
496
+ "sync",
497
+ "pitr",
498
+ "snapshot"
499
+ ]
500
+ }
501
+ },
502
+ {
503
+ "id": "sc-copy-alert",
504
+ "type": "scenario",
505
+ "label": "Stale copy pages",
506
+ "x": 520,
507
+ "y": 520,
508
+ "given": "a backup job whose credentials have expired",
509
+ "when": "the newest copy grows older than {{RPO_MINUTES}} minutes",
510
+ "then": "the on-call engineer is paged within 15 minutes",
511
+ "hubWhen": {
512
+ "METHOD": [
513
+ "sync",
514
+ "pitr",
515
+ "snapshot"
516
+ ]
517
+ }
518
+ },
519
+ {
520
+ "id": "sc-copies-vault",
521
+ "type": "scenario",
522
+ "label": "Copies out of reach",
523
+ "x": 520,
524
+ "y": 650,
525
+ "given": "the store's account fully taken over",
526
+ "when": "the attacker tries to delete or overwrite the copies",
527
+ "then": "every attempt is refused until the copies expire after {{RETAIN_DAYS}} days",
528
+ "hubWhen": {
529
+ "METHOD": [
530
+ "sync",
531
+ "pitr",
532
+ "snapshot"
533
+ ],
534
+ "COPIES": [
535
+ "vault"
536
+ ]
537
+ }
538
+ },
539
+ {
540
+ "id": "sc-copies-region",
541
+ "type": "scenario",
542
+ "label": "Deleted copy noticed",
543
+ "x": 520,
544
+ "y": 780,
545
+ "given": "copies in the second region",
546
+ "when": "someone deletes one",
547
+ "then": "the on-call engineer is alerted within 5 minutes",
548
+ "hubWhen": {
549
+ "METHOD": [
550
+ "sync",
551
+ "pitr",
552
+ "snapshot"
553
+ ],
554
+ "COPIES": [
555
+ "region"
556
+ ]
557
+ }
558
+ },
559
+ {
560
+ "id": "sc-copies-offline",
561
+ "type": "scenario",
562
+ "label": "Air-gapped copy restores",
563
+ "x": 520,
564
+ "y": 910,
565
+ "given": "the newest offline copy, brought back from the second site",
566
+ "when": "it is restored into an isolated environment",
567
+ "then": "the store holds the data of its day",
568
+ "hubWhen": {
569
+ "METHOD": [
570
+ "sync",
571
+ "pitr",
572
+ "snapshot"
573
+ ],
574
+ "COPIES": [
575
+ "offline"
576
+ ]
577
+ }
578
+ },
579
+ {
580
+ "id": "sc-dr-restore",
581
+ "type": "scenario",
582
+ "label": "Region rebuilt",
583
+ "x": 520,
584
+ "y": 1040,
585
+ "given": "the primary region marked unavailable in a test",
586
+ "when": "the recovery runbook is started",
587
+ "then": "the store serves from the second region within the stated region RTO",
588
+ "hubWhen": {
589
+ "METHOD": [
590
+ "sync",
591
+ "pitr",
592
+ "snapshot"
593
+ ],
594
+ "DR": [
595
+ "restore"
596
+ ]
597
+ }
598
+ },
599
+ {
600
+ "id": "sc-dr-standby",
601
+ "type": "scenario",
602
+ "label": "Region failover",
603
+ "x": 520,
604
+ "y": 1170,
605
+ "given": "the standby replicating with a lag under {{RPO_MINUTES}} minutes",
606
+ "when": "the primary region is cut off in a failover test",
607
+ "then": "the standby serves within {{RTO_MINUTES}} minutes",
608
+ "hubWhen": {
609
+ "METHOD": [
610
+ "sync",
611
+ "pitr",
612
+ "snapshot"
613
+ ],
614
+ "DR": [
615
+ "standby"
616
+ ]
617
+ }
618
+ },
619
+ {
620
+ "id": "sc-dr-single",
621
+ "type": "scenario",
622
+ "label": "Zone lost",
623
+ "x": 520,
624
+ "y": 1300,
625
+ "given": "the store across two zones",
626
+ "when": "one zone is cut off in a test",
627
+ "then": "it serves from the other within {{RTO_MINUTES}} minutes",
628
+ "hubWhen": {
629
+ "METHOD": [
630
+ "sync",
631
+ "pitr",
632
+ "snapshot"
633
+ ],
634
+ "DR": [
635
+ "single"
636
+ ]
637
+ }
638
+ },
639
+ {
640
+ "id": "sc-rebuild",
641
+ "type": "scenario",
642
+ "label": "Projection rebuilt",
643
+ "x": 520,
644
+ "y": 1430,
645
+ "given": "the store emptied in a test environment",
646
+ "when": "the rebuild runs",
647
+ "then": "within {{RTO_MINUTES}} minutes it holds what the sources say",
648
+ "hubWhen": {
649
+ "METHOD": [
650
+ "rebuild"
651
+ ]
652
+ }
653
+ },
654
+ {
655
+ "id": "sc-derived",
656
+ "type": "scenario",
657
+ "label": "Direct write refused",
658
+ "x": 520,
659
+ "y": 1560,
660
+ "given": "the store's database role",
661
+ "when": "a service other than the projector writes to it",
662
+ "then": "the write is refused",
663
+ "hubWhen": {
664
+ "METHOD": [
665
+ "rebuild"
666
+ ]
667
+ }
668
+ },
669
+ {
670
+ "id": "sc-drill-auto",
671
+ "type": "scenario",
672
+ "label": "Weekly restore passes",
673
+ "x": 520,
674
+ "y": 1690,
675
+ "given": "the scheduled restore test",
676
+ "when": "it runs",
677
+ "then": "the restored store passes the data checks within {{RTO_MINUTES}} minutes, or the owner is alerted",
678
+ "hubWhen": {
679
+ "DRILL": [
680
+ "auto"
681
+ ]
682
+ }
683
+ },
684
+ {
685
+ "id": "sc-drill-manual",
686
+ "type": "scenario",
687
+ "label": "Drill recorded",
688
+ "x": 520,
689
+ "y": 1820,
690
+ "given": "the runbook and an engineer who did not write it",
691
+ "when": "the quarterly drill is run",
692
+ "then": "the drill record shows the time taken against {{RTO_MINUTES}} minutes, the data age, and the runbook fixes",
693
+ "hubWhen": {
694
+ "DRILL": [
695
+ "manual"
696
+ ]
697
+ }
698
+ },
699
+ {
700
+ "id": "adr-sync",
701
+ "type": "adr",
702
+ "label": "Synchronous replication and backups",
703
+ "x": 780,
704
+ "y": 0,
705
+ "concern": "backup-recovery",
706
+ "status": "accepted",
707
+ "date": "",
708
+ "context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
709
+ "decision": "Writes are replicated synchronously and acknowledged only when a second zone or region has them: PostgreSQL with synchronous_standby_names and synchronous_commit = on (managed by Patroni or CloudNativePG), or a managed service that does it (Amazon Aurora, Azure SQL Business Critical, Cloud SQL high availability; Spanner or CockroachDB across regions). Replication copies mistakes, so continuous backups with point-in-time recovery cover them, kept {{RETAIN_DAYS}} days {{COPIES}}. Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. Choose a managed service unless the database must run on premises; choose cross-region synchronous replication only when the added latency of every write (tens of milliseconds) is acceptable.",
710
+ "consequences": "• No acknowledged write is lost when a zone (or region) is.\n• Every write waits for the second copy: higher latency, and writes stop if no synchronous standby is available.\n• Twice the database cost, plus the backups that still guard against mistakes.\n• Failover must be automatic and tested, or the zero RPO comes with a long RTO.",
711
+ "alternatives": "1. Continuous backup with point-in-time recovery: minutes of loss, cheaper and faster writes.\n2. Asynchronous replication: fast writes, but what was in flight is lost on failover.\n3. Scheduled snapshots: hours of loss.",
712
+ "hubWhen": {
713
+ "METHOD": [
714
+ "sync"
715
+ ]
716
+ }
717
+ },
718
+ {
719
+ "id": "adr-pitr",
720
+ "type": "adr",
721
+ "label": "Point-in-time recovery",
722
+ "x": 780,
723
+ "y": 130,
724
+ "concern": "backup-recovery",
725
+ "status": "accepted",
726
+ "date": "",
727
+ "context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
728
+ "decision": "The store archives its write-ahead log continuously and restores to any second of the last {{RETAIN_DAYS}} days, the newest archived change no older than {{RPO_MINUTES}} minutes: the managed service's point-in-time recovery (Amazon RDS and Aurora automated backups, Azure Database for PostgreSQL, Cloud SQL, MongoDB Atlas continuous backup), or pgBackRest or WAL-G to object storage for self-managed PostgreSQL. Copies are kept {{COPIES}}. Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. Choose the managed service's own feature when there is one; pgBackRest when you run PostgreSQL yourself and need parallel restore and verification.",
729
+ "consequences": "• At most {{RPO_MINUTES}} minutes of loss, and a way back from a mistake to the second before it.\n• Cheap: most managed databases include it.\n• Restoring a large store replays a lot of log: the restore time must be measured, not assumed, against {{RTO_MINUTES}} minutes.\n• Copies to another account or region are a separate step the managed feature does not always do.",
730
+ "alternatives": "1. Synchronous replication: no loss, slower and dearer writes, and still needs backups.\n2. Scheduled snapshots: simpler, hours of loss.",
731
+ "hubWhen": {
732
+ "METHOD": [
733
+ "pitr"
734
+ ]
735
+ }
736
+ },
737
+ {
738
+ "id": "adr-snapshot",
739
+ "type": "adr",
740
+ "label": "Scheduled snapshots",
741
+ "x": 780,
742
+ "y": 260,
743
+ "concern": "backup-recovery",
744
+ "status": "accepted",
745
+ "date": "",
746
+ "context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
747
+ "decision": "The store is snapshotted at least every {{RPO_MINUTES}} minutes and each snapshot is kept {{RETAIN_DAYS}} days, {{COPIES}}: AWS Backup or Azure Backup plans for managed stores and volumes, Velero for Kubernetes volumes, pg_dump or mysqldump for small databases. Snapshots are taken application-consistent (quiesced or from the database's own tool). Region loss: {{DR}}. Service comes back within {{RTO_MINUTES}} minutes. Proven by {{DRILL}}. The changes since the last snapshot are lost and must be redone or re-imported; the owner of the data agrees to that.",
748
+ "consequences": "• Simple and cheap to run.\n• Up to {{RPO_MINUTES}} minutes of changes is lost: the business must be able to redo them.\n• Crash-consistent volume snapshots of a running database may not restore: consistency must be checked in the drill.",
749
+ "alternatives": "1. Point-in-time recovery: minutes of loss for little more.\n2. Synchronous replication: no loss, far dearer.",
750
+ "hubWhen": {
751
+ "METHOD": [
752
+ "snapshot"
753
+ ]
754
+ }
755
+ },
756
+ {
757
+ "id": "adr-rebuild",
758
+ "type": "adr",
759
+ "label": "Rebuilt, not backed up",
760
+ "x": 780,
761
+ "y": 390,
762
+ "concern": "backup-recovery",
763
+ "status": "accepted",
764
+ "date": "",
765
+ "context": "This store keeps data that the system cannot work without. The forces: stores are lost to broken disks, bad deployments, mistaken deletes, ransomware and region outages, and replication copies the mistakes as faithfully as the data; the less data may be lost (the recovery point objective, RPO) and the faster it must be back (the recovery time objective, RTO), the more every write and every month costs; copies in the same account and region go down, or get encrypted, together with the store; and a backup that has never been restored is a hope, not a copy.",
766
+ "decision": "The store holds only what is derived from its sources (a cache, a search index such as Elasticsearch or OpenSearch, a read model fed from an event log kept long enough to replay); it has no backups. Only the projection process may write to it, which its database role enforces. When it is lost it is rebuilt within {{RTO_MINUTES}} minutes by replaying the sources; the sources themselves are backed up under their own decision. Proven by {{DRILL}}.",
767
+ "consequences": "• No backups to keep or lock.\n• Anything written only here would be lost: the store must stay derived.\n• Rebuild time grows with the sources: when it nears {{RTO_MINUTES}} minutes, snapshot the store as well or rebuild in parallel.\n• While it rebuilds, what depends on it is degraded or down.",
768
+ "alternatives": "1. Back it up anyway: a faster recovery when the rebuild cannot meet the time.\n2. Keep a warm second copy: instant recovery, double the cost.",
769
+ "hubWhen": {
770
+ "METHOD": [
771
+ "rebuild"
772
+ ]
773
+ }
774
+ },
775
+ {
776
+ "id": "ff-sync",
777
+ "type": "fitness-fn",
778
+ "label": "Synchronous standby attached",
779
+ "x": 1040,
780
+ "y": 0,
781
+ "category": "operational",
782
+ "threshold": "At least 1 standby in sync or quorum state at every moment; a page after 1 minute without one",
783
+ "description": "The database exporter counts the standbys replicating synchronously; Prometheus pages when there is none, because writes then either stop or lose their second copy.\n\nTool: Prometheus with sql_exporter\n\n```yaml\n# sql_exporter collector\ncollector_name: replication\nmetrics:\n - metric_name: pg_sync_standbys\n type: gauge\n help: 'Standbys replicating synchronously'\n values: [n]\n query: |\n SELECT count(*) AS n FROM pg_stat_replication WHERE sync_state IN ('sync', 'quorum')\n---\n# Prometheus alerting rule\ngroups:\n - name: backup-recovery\n rules:\n - alert: NoSynchronousStandby\n expr: pg_sync_standbys < 1\n for: 1m\n labels: { severity: page }\n```",
784
+ "hubWhen": {
785
+ "METHOD": [
786
+ "sync"
787
+ ]
788
+ }
789
+ },
790
+ {
791
+ "id": "ff-rpo",
792
+ "type": "fitness-fn",
793
+ "label": "Newest copy within the RPO",
794
+ "x": 1040,
795
+ "y": 130,
796
+ "category": "operational",
797
+ "threshold": "The newest recoverable copy is never older than {{RPO_MINUTES}} minutes for more than 5 minutes",
798
+ "description": "The backup job pushes the time of its last success (for point-in-time recovery, the exporter reports the last archived log segment); Prometheus pages when the newest copy is older than the RPO, which also catches a job that silently stopped.\n\nTool: Prometheus (Pushgateway for backup jobs)\n\n```yaml\ngroups:\n - name: backup-recovery\n rules:\n - alert: RecoveryPointTooOld\n # backup_last_success_timestamp_seconds: pushed by the backup job, or\n # pg_stat_archiver.last_archived_time exported for point-in-time recovery\n expr: time() - backup_last_success_timestamp_seconds{store=\"orders\"} > {{RPO_MINUTES}} * 60\n for: 5m\n labels: { severity: page }\n annotations:\n summary: 'The newest copy of {{ $labels.store }} is older than {{RPO_MINUTES}} minutes'\n```",
799
+ "hubWhen": {
800
+ "METHOD": [
801
+ "sync",
802
+ "pitr",
803
+ "snapshot"
804
+ ]
805
+ }
806
+ },
807
+ {
808
+ "id": "ff-vault",
809
+ "type": "fitness-fn",
810
+ "label": "Copies locked in another account",
811
+ "x": 1040,
812
+ "y": 260,
813
+ "category": "structural",
814
+ "threshold": "Every backup plan copies to a vault under a compliance-mode lock of at least {{RETAIN_DAYS}} days; 0 plans without a copy",
815
+ "description": "In CI the Terraform plan (terraform show -json) is checked: a vault lock must exist in compliance mode with the retention, and every backup rule must copy to the vault in the other account.\n\nTool: Open Policy Agent (conftest) on the Terraform plan\n\n```rego\npackage main\nimport rego.v1\n\nlocks := [r | some r in input.resource_changes; r.type == \"aws_backup_vault_lock_configuration\"]\n\ndeny contains \"no backup vault is locked (AWS Backup Vault Lock)\" if count(locks) == 0\n\ndeny contains msg if {\n some l in locks\n l.change.after.min_retention_days < {{RETAIN_DAYS}}\n msg := sprintf(\"%s locks copies for fewer than {{RETAIN_DAYS}} days\", [l.address])\n}\n\ndeny contains msg if {\n some l in locks\n not l.change.after.changeable_for_days # without it the lock is governance mode, which an administrator can lift\n msg := sprintf(\"%s is not in compliance mode\", [l.address])\n}\n\ndeny contains msg if {\n some r in input.resource_changes\n r.type == \"aws_backup_plan\"\n some rule in r.change.after.rule\n count(rule.copy_action) == 0\n msg := sprintf(\"%s rule %s copies nothing to the locked vault\", [r.address, rule.rule_name])\n}\n```",
816
+ "hubWhen": {
817
+ "METHOD": [
818
+ "sync",
819
+ "pitr",
820
+ "snapshot"
821
+ ],
822
+ "COPIES": [
823
+ "vault"
824
+ ]
825
+ }
826
+ },
827
+ {
828
+ "id": "ff-copy-region",
829
+ "type": "fitness-fn",
830
+ "label": "Copies leave the region",
831
+ "x": 1040,
832
+ "y": 390,
833
+ "category": "structural",
834
+ "threshold": "0 backup rules without a copy to a vault outside the primary region",
835
+ "description": "In CI the Terraform plan is checked: every backup rule must copy to a vault whose ARN names another region. Deletions of copies are alerted by an EventBridge rule on the backup vault events, set up beside it.\n\nTool: Open Policy Agent (conftest) on the Terraform plan\n\n```rego\npackage main\nimport rego.v1\n\nprimary := \"eu-central-1\"\n\ncopies_elsewhere(rule) if {\n some c in rule.copy_action\n not contains(c.destination_vault_arn, sprintf(\":%s:\", [primary]))\n}\n\ndeny contains msg if {\n some r in input.resource_changes\n r.type == \"aws_backup_plan\"\n some rule in r.change.after.rule\n not copies_elsewhere(rule)\n msg := sprintf(\"%s rule %s keeps its copies in %s\", [r.address, rule.rule_name, primary])\n}\n```",
836
+ "hubWhen": {
837
+ "METHOD": [
838
+ "sync",
839
+ "pitr",
840
+ "snapshot"
841
+ ],
842
+ "COPIES": [
843
+ "region"
844
+ ]
845
+ }
846
+ },
847
+ {
848
+ "id": "ff-offline",
849
+ "type": "fitness-fn",
850
+ "label": "Offline copy fresh",
851
+ "x": 1040,
852
+ "y": 520,
853
+ "category": "process",
854
+ "threshold": "The newest offline copy, written and disconnected, is never older than 26 hours",
855
+ "description": "The job that writes the offline copy pushes its success time after the media are verified and ejected; Prometheus alerts when it is older than a day and a margin.\n\nTool: Prometheus (Pushgateway)\n\n```yaml\ngroups:\n - name: backup-recovery\n rules:\n - alert: OfflineCopyTooOld\n expr: time() - offline_copy_last_success_timestamp_seconds{store=\"orders\"} > 26 * 3600\n for: 15m\n labels: { severity: ticket }\n annotations:\n summary: 'No verified offline copy of {{ $labels.store }} in the last 26 hours'\n```",
856
+ "hubWhen": {
857
+ "METHOD": [
858
+ "sync",
859
+ "pitr",
860
+ "snapshot"
861
+ ],
862
+ "COPIES": [
863
+ "offline"
864
+ ]
865
+ }
866
+ },
867
+ {
868
+ "id": "ff-dr-policy",
869
+ "type": "fitness-fn",
870
+ "label": "Region recovery assessed",
871
+ "x": 1040,
872
+ "y": 650,
873
+ "category": "operational",
874
+ "threshold": "The resiliency assessment of the latest release meets the policy (RPO {{RPO_MINUTES}} minutes, RTO {{RTO_MINUTES}} minutes) for zone, hardware, software and region disruptions",
875
+ "description": "A resiliency policy states the objectives; each release is assessed against it and the pipeline fails unless the assessment says the policy is met. On Azure, a test failover with Azure Site Recovery plays the same part.\n\nTool: AWS Resilience Hub (AWS CLI)\n\n```sh\nRPO=$(( {{RPO_MINUTES}} * 60 )); RTO=$(( {{RTO_MINUTES}} * 60 ))\naws resiliencehub create-resiliency-policy --policy-name orders-store --tier Critical \\\n --policy \"{\\\"AZ\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO},\\\"Hardware\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO},\\\"Software\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO},\\\"Region\\\":{\\\"rpoInSecs\\\":$RPO,\\\"rtoInSecs\\\":$RTO}}\"\n\n# in the release pipeline, after the assessment of the new version has finished:\nSTATUS=$(aws resiliencehub describe-app-assessment --assessment-arn \"$ASSESSMENT_ARN\" \\\n --query 'assessment.complianceStatus' --output text)\ntest \"$STATUS\" = \"PolicyMet\" || { echo \"recovery objectives not met: $STATUS\"; exit 1; }\n```",
876
+ "hubWhen": {
877
+ "METHOD": [
878
+ "sync",
879
+ "pitr",
880
+ "snapshot"
881
+ ],
882
+ "DR": [
883
+ "restore",
884
+ "standby"
885
+ ]
886
+ }
887
+ },
888
+ {
889
+ "id": "ff-zones",
890
+ "type": "fitness-fn",
891
+ "label": "Store spans zones",
892
+ "x": 1040,
893
+ "y": 780,
894
+ "category": "structural",
895
+ "threshold": "0 database instances in the Terraform plan without Multi-AZ",
896
+ "description": "In CI the Terraform plan is checked: every database instance must run across availability zones, since a zone loss is the failure this decision promises to survive.\n\nTool: Open Policy Agent (conftest) on the Terraform plan\n\n```rego\npackage main\nimport rego.v1\n\ndeny contains msg if {\n some r in input.resource_changes\n r.type == \"aws_db_instance\"\n not r.change.after.multi_az\n msg := sprintf(\"%s runs in one availability zone\", [r.address])\n}\n```",
897
+ "hubWhen": {
898
+ "METHOD": [
899
+ "sync",
900
+ "pitr",
901
+ "snapshot"
902
+ ],
903
+ "DR": [
904
+ "single"
905
+ ]
906
+ }
907
+ },
908
+ {
909
+ "id": "ff-derived",
910
+ "type": "fitness-fn",
911
+ "label": "Only the projector writes",
912
+ "x": 1040,
913
+ "y": 910,
914
+ "category": "structural",
915
+ "threshold": "0 modules outside the projection that import the store's write client",
916
+ "description": "A dependency rule fails the build when code outside the projection imports the store's client, which would let something be written that the rebuild cannot bring back. The store's database role grants writes to the projector only.\n\nTool: dependency-cruiser\n\n```js\n// .dependency-cruiser.cjs\nmodule.exports = {\n forbidden: [{\n name: 'store-is-derived',\n comment: 'ADR Rebuilt, not backed up: only the projection writes to the store',\n severity: 'error',\n from: { pathNot: '^src/projection/' },\n to: { path: '^src/stores/search/writer' },\n }],\n}\n```",
917
+ "hubWhen": {
918
+ "METHOD": [
919
+ "rebuild"
920
+ ]
921
+ }
922
+ },
923
+ {
924
+ "id": "ff-drill-auto",
925
+ "type": "fitness-fn",
926
+ "label": "Weekly restore test",
927
+ "x": 1040,
928
+ "y": 1040,
929
+ "category": "operational",
930
+ "threshold": "A restore (or rebuild) into an isolated environment every week, passing the data checks within {{RTO_MINUTES}} minutes, with data no older than {{RPO_MINUTES}} minutes",
931
+ "description": "A scheduled workflow restores the latest copy (or rebuilds from the sources) into a throwaway environment, runs the data checks and tears it down; the job's timeout is the RTO, so a slow restore fails it. AWS Backup restore testing can do the same for stores it backs up.\n\nTool: GitHub Actions (scheduled workflow)\n\n```yaml\n# .github/workflows/restore-drill.yml\nname: restore-drill\non:\n schedule: [{ cron: '0 3 * * 1' }] # every Monday, 03:00 UTC\n workflow_dispatch: {}\njobs:\n restore:\n runs-on: ubuntu-latest\n timeout-minutes: {{RTO_MINUTES}}\n steps:\n - uses: actions/checkout@v4\n - name: Restore the latest copy into a clean environment\n run: ./ops/recover.sh --target \"drill-$GITHUB_RUN_ID\" --latest\n - name: Check row counts, newest timestamp and a sample of records\n run: ./ops/verify.sh --target \"drill-$GITHUB_RUN_ID\" --max-age-minutes {{RPO_MINUTES}}\n - name: Tear down\n if: always()\n run: ./ops/teardown.sh \"drill-$GITHUB_RUN_ID\"\n```",
932
+ "hubWhen": {
933
+ "DRILL": [
934
+ "auto"
935
+ ]
936
+ }
937
+ },
938
+ {
939
+ "id": "ff-drill-manual",
940
+ "type": "fitness-fn",
941
+ "label": "Quarterly drill on record",
942
+ "x": 1040,
943
+ "y": 1170,
944
+ "category": "process",
945
+ "threshold": "The newest drill record is at most 92 days old and its restore took no more than {{RTO_MINUTES}} minutes",
946
+ "description": "Each drill is recorded as docs/drills/YYYY-MM-DD.md with a \"minutes:\" line; a daily scheduled job fails, and notifies the owner, when the newest record is too old or too slow.\n\nTool: GitHub Actions (scheduled workflow)\n\n```yaml\n# .github/workflows/drill-overdue.yml\nname: drill-overdue\non:\n schedule: [{ cron: '0 7 * * *' }]\njobs:\n check:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - run: |\n latest=$(ls docs/drills/*.md | sort | tail -n 1)\n age=$(( ( $(date +%s) - $(date -d \"$(basename \"$latest\" .md)\" +%s) ) / 86400 ))\n minutes=$(grep -m1 '^minutes:' \"$latest\" | awk '{print $2}')\n echo \"last drill $latest: $age days ago, $minutes minutes\"\n test \"$age\" -le 92 && test \"$minutes\" -le {{RTO_MINUTES}}\n```",
947
+ "hubWhen": {
948
+ "DRILL": [
949
+ "manual"
950
+ ]
951
+ }
952
+ }
953
+ ],
954
+ "relations": [
955
+ {
956
+ "id": "req-sync--derives--need",
957
+ "sourceId": "req-sync",
958
+ "targetId": "need",
959
+ "relationType": "derives"
960
+ },
961
+ {
962
+ "id": "req-pitr--derives--need",
963
+ "sourceId": "req-pitr",
964
+ "targetId": "need",
965
+ "relationType": "derives"
966
+ },
967
+ {
968
+ "id": "req-snapshot--derives--need",
969
+ "sourceId": "req-snapshot",
970
+ "targetId": "need",
971
+ "relationType": "derives"
972
+ },
973
+ {
974
+ "id": "req-recover--derives--need",
975
+ "sourceId": "req-recover",
976
+ "targetId": "need",
977
+ "relationType": "derives"
978
+ },
979
+ {
980
+ "id": "req-copy-alert--derives--need",
981
+ "sourceId": "req-copy-alert",
982
+ "targetId": "need",
983
+ "relationType": "derives"
984
+ },
985
+ {
986
+ "id": "req-copies-vault--derives--need",
987
+ "sourceId": "req-copies-vault",
988
+ "targetId": "need",
989
+ "relationType": "derives"
990
+ },
991
+ {
992
+ "id": "req-copies-region--derives--need",
993
+ "sourceId": "req-copies-region",
994
+ "targetId": "need",
995
+ "relationType": "derives"
996
+ },
997
+ {
998
+ "id": "req-copies-offline--derives--need",
999
+ "sourceId": "req-copies-offline",
1000
+ "targetId": "need",
1001
+ "relationType": "derives"
1002
+ },
1003
+ {
1004
+ "id": "req-dr-restore--derives--need",
1005
+ "sourceId": "req-dr-restore",
1006
+ "targetId": "need",
1007
+ "relationType": "derives"
1008
+ },
1009
+ {
1010
+ "id": "req-dr-standby--derives--need",
1011
+ "sourceId": "req-dr-standby",
1012
+ "targetId": "need",
1013
+ "relationType": "derives"
1014
+ },
1015
+ {
1016
+ "id": "req-dr-single--derives--need",
1017
+ "sourceId": "req-dr-single",
1018
+ "targetId": "need",
1019
+ "relationType": "derives"
1020
+ },
1021
+ {
1022
+ "id": "req-rebuild--derives--need",
1023
+ "sourceId": "req-rebuild",
1024
+ "targetId": "need",
1025
+ "relationType": "derives"
1026
+ },
1027
+ {
1028
+ "id": "req-derived--derives--need",
1029
+ "sourceId": "req-derived",
1030
+ "targetId": "need",
1031
+ "relationType": "derives"
1032
+ },
1033
+ {
1034
+ "id": "req-drill-auto--derives--need",
1035
+ "sourceId": "req-drill-auto",
1036
+ "targetId": "need",
1037
+ "relationType": "derives"
1038
+ },
1039
+ {
1040
+ "id": "req-drill-manual--derives--need",
1041
+ "sourceId": "req-drill-manual",
1042
+ "targetId": "need",
1043
+ "relationType": "derives"
1044
+ },
1045
+ {
1046
+ "id": "sc-sync--verifies--req-sync",
1047
+ "sourceId": "sc-sync",
1048
+ "targetId": "req-sync",
1049
+ "relationType": "verifies"
1050
+ },
1051
+ {
1052
+ "id": "sc-pitr--verifies--req-pitr",
1053
+ "sourceId": "sc-pitr",
1054
+ "targetId": "req-pitr",
1055
+ "relationType": "verifies"
1056
+ },
1057
+ {
1058
+ "id": "sc-snapshot--verifies--req-snapshot",
1059
+ "sourceId": "sc-snapshot",
1060
+ "targetId": "req-snapshot",
1061
+ "relationType": "verifies"
1062
+ },
1063
+ {
1064
+ "id": "sc-recover--verifies--req-recover",
1065
+ "sourceId": "sc-recover",
1066
+ "targetId": "req-recover",
1067
+ "relationType": "verifies"
1068
+ },
1069
+ {
1070
+ "id": "sc-copy-alert--verifies--req-copy-alert",
1071
+ "sourceId": "sc-copy-alert",
1072
+ "targetId": "req-copy-alert",
1073
+ "relationType": "verifies"
1074
+ },
1075
+ {
1076
+ "id": "sc-copies-vault--verifies--req-copies-vault",
1077
+ "sourceId": "sc-copies-vault",
1078
+ "targetId": "req-copies-vault",
1079
+ "relationType": "verifies"
1080
+ },
1081
+ {
1082
+ "id": "sc-copies-region--verifies--req-copies-region",
1083
+ "sourceId": "sc-copies-region",
1084
+ "targetId": "req-copies-region",
1085
+ "relationType": "verifies"
1086
+ },
1087
+ {
1088
+ "id": "sc-copies-offline--verifies--req-copies-offline",
1089
+ "sourceId": "sc-copies-offline",
1090
+ "targetId": "req-copies-offline",
1091
+ "relationType": "verifies"
1092
+ },
1093
+ {
1094
+ "id": "sc-dr-restore--verifies--req-dr-restore",
1095
+ "sourceId": "sc-dr-restore",
1096
+ "targetId": "req-dr-restore",
1097
+ "relationType": "verifies"
1098
+ },
1099
+ {
1100
+ "id": "sc-dr-standby--verifies--req-dr-standby",
1101
+ "sourceId": "sc-dr-standby",
1102
+ "targetId": "req-dr-standby",
1103
+ "relationType": "verifies"
1104
+ },
1105
+ {
1106
+ "id": "sc-dr-single--verifies--req-dr-single",
1107
+ "sourceId": "sc-dr-single",
1108
+ "targetId": "req-dr-single",
1109
+ "relationType": "verifies"
1110
+ },
1111
+ {
1112
+ "id": "sc-rebuild--verifies--req-rebuild",
1113
+ "sourceId": "sc-rebuild",
1114
+ "targetId": "req-rebuild",
1115
+ "relationType": "verifies"
1116
+ },
1117
+ {
1118
+ "id": "sc-derived--verifies--req-derived",
1119
+ "sourceId": "sc-derived",
1120
+ "targetId": "req-derived",
1121
+ "relationType": "verifies"
1122
+ },
1123
+ {
1124
+ "id": "sc-drill-auto--verifies--req-drill-auto",
1125
+ "sourceId": "sc-drill-auto",
1126
+ "targetId": "req-drill-auto",
1127
+ "relationType": "verifies"
1128
+ },
1129
+ {
1130
+ "id": "sc-drill-manual--verifies--req-drill-manual",
1131
+ "sourceId": "sc-drill-manual",
1132
+ "targetId": "req-drill-manual",
1133
+ "relationType": "verifies"
1134
+ },
1135
+ {
1136
+ "id": "ff-sync--implements--adr-sync",
1137
+ "sourceId": "ff-sync",
1138
+ "targetId": "adr-sync",
1139
+ "relationType": "implements"
1140
+ },
1141
+ {
1142
+ "id": "ff-rpo--implements--adr-sync",
1143
+ "sourceId": "ff-rpo",
1144
+ "targetId": "adr-sync",
1145
+ "relationType": "implements"
1146
+ },
1147
+ {
1148
+ "id": "ff-rpo--implements--adr-pitr",
1149
+ "sourceId": "ff-rpo",
1150
+ "targetId": "adr-pitr",
1151
+ "relationType": "implements"
1152
+ },
1153
+ {
1154
+ "id": "ff-rpo--implements--adr-snapshot",
1155
+ "sourceId": "ff-rpo",
1156
+ "targetId": "adr-snapshot",
1157
+ "relationType": "implements"
1158
+ },
1159
+ {
1160
+ "id": "ff-vault--implements--adr-sync",
1161
+ "sourceId": "ff-vault",
1162
+ "targetId": "adr-sync",
1163
+ "relationType": "implements"
1164
+ },
1165
+ {
1166
+ "id": "ff-vault--implements--adr-pitr",
1167
+ "sourceId": "ff-vault",
1168
+ "targetId": "adr-pitr",
1169
+ "relationType": "implements"
1170
+ },
1171
+ {
1172
+ "id": "ff-vault--implements--adr-snapshot",
1173
+ "sourceId": "ff-vault",
1174
+ "targetId": "adr-snapshot",
1175
+ "relationType": "implements"
1176
+ },
1177
+ {
1178
+ "id": "ff-copy-region--implements--adr-sync",
1179
+ "sourceId": "ff-copy-region",
1180
+ "targetId": "adr-sync",
1181
+ "relationType": "implements"
1182
+ },
1183
+ {
1184
+ "id": "ff-copy-region--implements--adr-pitr",
1185
+ "sourceId": "ff-copy-region",
1186
+ "targetId": "adr-pitr",
1187
+ "relationType": "implements"
1188
+ },
1189
+ {
1190
+ "id": "ff-copy-region--implements--adr-snapshot",
1191
+ "sourceId": "ff-copy-region",
1192
+ "targetId": "adr-snapshot",
1193
+ "relationType": "implements"
1194
+ },
1195
+ {
1196
+ "id": "ff-offline--implements--adr-sync",
1197
+ "sourceId": "ff-offline",
1198
+ "targetId": "adr-sync",
1199
+ "relationType": "implements"
1200
+ },
1201
+ {
1202
+ "id": "ff-offline--implements--adr-pitr",
1203
+ "sourceId": "ff-offline",
1204
+ "targetId": "adr-pitr",
1205
+ "relationType": "implements"
1206
+ },
1207
+ {
1208
+ "id": "ff-offline--implements--adr-snapshot",
1209
+ "sourceId": "ff-offline",
1210
+ "targetId": "adr-snapshot",
1211
+ "relationType": "implements"
1212
+ },
1213
+ {
1214
+ "id": "ff-dr-policy--implements--adr-sync",
1215
+ "sourceId": "ff-dr-policy",
1216
+ "targetId": "adr-sync",
1217
+ "relationType": "implements"
1218
+ },
1219
+ {
1220
+ "id": "ff-dr-policy--implements--adr-pitr",
1221
+ "sourceId": "ff-dr-policy",
1222
+ "targetId": "adr-pitr",
1223
+ "relationType": "implements"
1224
+ },
1225
+ {
1226
+ "id": "ff-dr-policy--implements--adr-snapshot",
1227
+ "sourceId": "ff-dr-policy",
1228
+ "targetId": "adr-snapshot",
1229
+ "relationType": "implements"
1230
+ },
1231
+ {
1232
+ "id": "ff-zones--implements--adr-sync",
1233
+ "sourceId": "ff-zones",
1234
+ "targetId": "adr-sync",
1235
+ "relationType": "implements"
1236
+ },
1237
+ {
1238
+ "id": "ff-zones--implements--adr-pitr",
1239
+ "sourceId": "ff-zones",
1240
+ "targetId": "adr-pitr",
1241
+ "relationType": "implements"
1242
+ },
1243
+ {
1244
+ "id": "ff-zones--implements--adr-snapshot",
1245
+ "sourceId": "ff-zones",
1246
+ "targetId": "adr-snapshot",
1247
+ "relationType": "implements"
1248
+ },
1249
+ {
1250
+ "id": "ff-derived--implements--adr-rebuild",
1251
+ "sourceId": "ff-derived",
1252
+ "targetId": "adr-rebuild",
1253
+ "relationType": "implements"
1254
+ },
1255
+ {
1256
+ "id": "ff-drill-auto--implements--adr-sync",
1257
+ "sourceId": "ff-drill-auto",
1258
+ "targetId": "adr-sync",
1259
+ "relationType": "implements"
1260
+ },
1261
+ {
1262
+ "id": "ff-drill-auto--implements--adr-pitr",
1263
+ "sourceId": "ff-drill-auto",
1264
+ "targetId": "adr-pitr",
1265
+ "relationType": "implements"
1266
+ },
1267
+ {
1268
+ "id": "ff-drill-auto--implements--adr-snapshot",
1269
+ "sourceId": "ff-drill-auto",
1270
+ "targetId": "adr-snapshot",
1271
+ "relationType": "implements"
1272
+ },
1273
+ {
1274
+ "id": "ff-drill-auto--implements--adr-rebuild",
1275
+ "sourceId": "ff-drill-auto",
1276
+ "targetId": "adr-rebuild",
1277
+ "relationType": "implements"
1278
+ },
1279
+ {
1280
+ "id": "ff-drill-manual--implements--adr-sync",
1281
+ "sourceId": "ff-drill-manual",
1282
+ "targetId": "adr-sync",
1283
+ "relationType": "implements"
1284
+ },
1285
+ {
1286
+ "id": "ff-drill-manual--implements--adr-pitr",
1287
+ "sourceId": "ff-drill-manual",
1288
+ "targetId": "adr-pitr",
1289
+ "relationType": "implements"
1290
+ },
1291
+ {
1292
+ "id": "ff-drill-manual--implements--adr-snapshot",
1293
+ "sourceId": "ff-drill-manual",
1294
+ "targetId": "adr-snapshot",
1295
+ "relationType": "implements"
1296
+ },
1297
+ {
1298
+ "id": "ff-drill-manual--implements--adr-rebuild",
1299
+ "sourceId": "ff-drill-manual",
1300
+ "targetId": "adr-rebuild",
1301
+ "relationType": "implements"
1302
+ }
1303
+ ]
1304
+ }