@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,1560 @@
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": "operability"
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, REL10 fault isolation, 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
+ "title": "PostgreSQL documentation: Continuous Archiving and Point-in-Time Recovery",
45
+ "url": "https://www.postgresql.org/docs/current/continuous-archiving.html"
46
+ }
47
+ ],
48
+ "templateParams": [
49
+ {
50
+ "key": "METHOD",
51
+ "title": "Copies",
52
+ "label": "How is the store copied?",
53
+ "hint": "The method decides the recovery point: how much committed data may be lost. Pick the cheapest one that meets the RPO below.",
54
+ "defaultValue": "pitr",
55
+ "options": [
56
+ {
57
+ "value": "sync",
58
+ "label": "synchronous replication",
59
+ "description": "Every write is acknowledged only once a second zone or region has it, so a lost store loses no acknowledged write; backups with their own RPO still cover mistakes and attacks, since replication copies them. Pick it for payments, ledgers, anything a customer was told is saved and cannot be redone."
60
+ },
61
+ {
62
+ "value": "pitr",
63
+ "label": "continuous backup with point-in-time recovery",
64
+ "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."
65
+ },
66
+ {
67
+ "value": "snapshot",
68
+ "label": "scheduled snapshots",
69
+ "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."
70
+ },
71
+ {
72
+ "value": "rebuild",
73
+ "label": "rebuilt from its sources",
74
+ "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; the copy location and region questions are then moot."
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "key": "COPIES",
80
+ "title": "Copy location",
81
+ "label": "Where are the copies kept?",
82
+ "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. Only when the store is copied (not with rebuilt from its sources).",
83
+ "defaultValue": "vault",
84
+ "options": [
85
+ {
86
+ "value": "vault",
87
+ "label": "a locked vault in another account and region",
88
+ "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."
89
+ },
90
+ {
91
+ "value": "region",
92
+ "label": "another region of the same account",
93
+ "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."
94
+ },
95
+ {
96
+ "value": "offline",
97
+ "label": "offline media at a second site",
98
+ "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."
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ "key": "DR",
104
+ "title": "Region outage",
105
+ "label": "What happens when the whole region or site is lost?",
106
+ "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. Only when the store is copied (not with rebuilt from its sources).",
107
+ "defaultValue": "restore",
108
+ "options": [
109
+ {
110
+ "value": "restore",
111
+ "label": "backup and restore in a second region",
112
+ "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."
113
+ },
114
+ {
115
+ "value": "standby",
116
+ "label": "a warm standby in a second region",
117
+ "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."
118
+ },
119
+ {
120
+ "value": "single",
121
+ "label": "one region across zones",
122
+ "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)."
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "key": "DRILL",
128
+ "title": "Restore drill",
129
+ "label": "How is recovery proven?",
130
+ "hint": "Recovery that is not exercised fails when it is needed: an expired credential, a missing step, a restore slower than anyone thought.",
131
+ "defaultValue": "auto",
132
+ "options": [
133
+ {
134
+ "value": "auto",
135
+ "label": "an automated restore test every week",
136
+ "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."
137
+ },
138
+ {
139
+ "value": "manual",
140
+ "label": "a restore drill by the team every quarter",
141
+ "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."
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "key": "RPO_MINUTES",
147
+ "label": "How many minutes of committed data may a restore from a copy lose (RPO)? (with synchronous replication this is for the backups that cover mistakes; a lost store loses no acknowledged write)",
148
+ "defaultValue": "15",
149
+ "type": "number"
150
+ },
151
+ {
152
+ "key": "RTO_MINUTES",
153
+ "label": "How many minutes may the store be down after a loss in its region (RTO)?",
154
+ "defaultValue": "60",
155
+ "type": "number"
156
+ },
157
+ {
158
+ "key": "REGION_RTO_HOURS",
159
+ "label": "How many hours may the store be down after a loss of the whole region? (backup and restore in a second region only)",
160
+ "defaultValue": "24",
161
+ "type": "number"
162
+ },
163
+ {
164
+ "key": "RETAIN_DAYS",
165
+ "label": "For how many days are copies kept?",
166
+ "defaultValue": "35",
167
+ "type": "number"
168
+ }
169
+ ]
170
+ },
171
+ "nodes": [
172
+ {
173
+ "id": "need",
174
+ "type": "need",
175
+ "label": "Data survives a disaster",
176
+ "x": 0,
177
+ "y": 0,
178
+ "kind": "brief",
179
+ "source": "Hub concern pack: Backup and recovery",
180
+ "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. The snippets assume the application under src/ (src/projection for a derived store, src/stores for data access), the recovery scripts under ops/ and the drill records under docs/drills."
181
+ },
182
+ {
183
+ "id": "req-sync",
184
+ "type": "requirement",
185
+ "label": "Writes stored twice",
186
+ "x": 260,
187
+ "y": 0,
188
+ "ears_type": "ubiquitous",
189
+ "action": "acknowledge a write only after it is durable in two availability zones or regions, so that losing one loses no acknowledged write",
190
+ "rationale": "No loss on a store failure is reachable only with synchronous replication; asynchronous replicas lose what was in flight (AWS DR whitepaper, multi-site strategies; PostgreSQL synchronous_commit).",
191
+ "hubWhen": {
192
+ "METHOD": [
193
+ "sync"
194
+ ]
195
+ }
196
+ },
197
+ {
198
+ "id": "req-pitr",
199
+ "type": "requirement",
200
+ "label": "Point-in-time restore",
201
+ "x": 260,
202
+ "y": 130,
203
+ "ears_type": "ubiquitous",
204
+ "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",
205
+ "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).",
206
+ "hubWhen": {
207
+ "METHOD": [
208
+ "pitr"
209
+ ]
210
+ }
211
+ },
212
+ {
213
+ "id": "req-snapshot",
214
+ "type": "requirement",
215
+ "label": "Snapshots on schedule",
216
+ "x": 260,
217
+ "y": 260,
218
+ "ears_type": "ubiquitous",
219
+ "action": "take an application-consistent snapshot at least every {{RPO_MINUTES}} minutes and keep each for {{RETAIN_DAYS}} days",
220
+ "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).",
221
+ "hubWhen": {
222
+ "METHOD": [
223
+ "snapshot"
224
+ ]
225
+ }
226
+ },
227
+ {
228
+ "id": "req-recover",
229
+ "type": "requirement",
230
+ "label": "Back within the limit",
231
+ "x": 260,
232
+ "y": 390,
233
+ "ears_type": "event-driven",
234
+ "trigger": "the store is lost, or a mistake or an attack destroys or corrupts its data",
235
+ "action": "restore service from its copies within {{RTO_MINUTES}} minutes, losing no more than {{RPO_MINUTES}} minutes of committed writes",
236
+ "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.",
237
+ "hubWhen": {
238
+ "METHOD": [
239
+ "sync",
240
+ "pitr",
241
+ "snapshot"
242
+ ]
243
+ }
244
+ },
245
+ {
246
+ "id": "req-copy-alert",
247
+ "type": "requirement",
248
+ "label": "Failed copies noticed",
249
+ "x": 260,
250
+ "y": 520,
251
+ "ears_type": "unwanted-behaviour",
252
+ "unwanted_condition": "a backup, a log archive or replication fails, or the newest copy is older than {{RPO_MINUTES}} minutes",
253
+ "action": "page the on-call engineer within 15 minutes",
254
+ "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).",
255
+ "hubWhen": {
256
+ "METHOD": [
257
+ "sync",
258
+ "pitr",
259
+ "snapshot"
260
+ ]
261
+ }
262
+ },
263
+ {
264
+ "id": "req-copies-vault",
265
+ "type": "requirement",
266
+ "label": "Copies locked away",
267
+ "x": 260,
268
+ "y": 650,
269
+ "ears_type": "ubiquitous",
270
+ "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",
271
+ "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).",
272
+ "hubWhen": {
273
+ "METHOD": [
274
+ "sync",
275
+ "pitr",
276
+ "snapshot"
277
+ ],
278
+ "COPIES": [
279
+ "vault"
280
+ ]
281
+ }
282
+ },
283
+ {
284
+ "id": "req-copies-region",
285
+ "type": "requirement",
286
+ "label": "Copies in another region",
287
+ "x": 260,
288
+ "y": 780,
289
+ "ears_type": "ubiquitous",
290
+ "action": "copy every backup to a second region in the same backup rule that takes it, keep the copy {{RETAIN_DAYS}} days with deletion protection, and alert the on-call engineer within 5 minutes of any copy being deleted",
291
+ "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.",
292
+ "hubWhen": {
293
+ "METHOD": [
294
+ "sync",
295
+ "pitr",
296
+ "snapshot"
297
+ ],
298
+ "COPIES": [
299
+ "region"
300
+ ]
301
+ }
302
+ },
303
+ {
304
+ "id": "req-copies-offline",
305
+ "type": "requirement",
306
+ "label": "Offline copy at a second site",
307
+ "x": 260,
308
+ "y": 910,
309
+ "ears_type": "ubiquitous",
310
+ "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",
311
+ "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.",
312
+ "hubWhen": {
313
+ "METHOD": [
314
+ "sync",
315
+ "pitr",
316
+ "snapshot"
317
+ ],
318
+ "COPIES": [
319
+ "offline"
320
+ ]
321
+ }
322
+ },
323
+ {
324
+ "id": "req-dr-restore",
325
+ "type": "requirement",
326
+ "label": "Restored in a second region",
327
+ "x": 260,
328
+ "y": 1040,
329
+ "ears_type": "event-driven",
330
+ "trigger": "the primary region or site becomes unavailable",
331
+ "action": "recreate the infrastructure from code in the second region and restore the store there from its copies, within {{REGION_RTO_HOURS}} hours, as the service level agreement states",
332
+ "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.",
333
+ "hubWhen": {
334
+ "METHOD": [
335
+ "sync",
336
+ "pitr",
337
+ "snapshot"
338
+ ],
339
+ "DR": [
340
+ "restore"
341
+ ]
342
+ }
343
+ },
344
+ {
345
+ "id": "req-dr-standby",
346
+ "type": "requirement",
347
+ "label": "Standby takes over",
348
+ "x": 260,
349
+ "y": 1170,
350
+ "ears_type": "event-driven",
351
+ "trigger": "the primary region or site becomes unavailable",
352
+ "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",
353
+ "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.",
354
+ "hubWhen": {
355
+ "METHOD": [
356
+ "sync",
357
+ "pitr",
358
+ "snapshot"
359
+ ],
360
+ "DR": [
361
+ "standby"
362
+ ]
363
+ }
364
+ },
365
+ {
366
+ "id": "req-dr-single",
367
+ "type": "requirement",
368
+ "label": "Zone loss survived",
369
+ "x": 260,
370
+ "y": 1300,
371
+ "ears_type": "state-driven",
372
+ "precondition": "one availability zone of the store's region is unavailable",
373
+ "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",
374
+ "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).",
375
+ "hubWhen": {
376
+ "METHOD": [
377
+ "sync",
378
+ "pitr",
379
+ "snapshot"
380
+ ],
381
+ "DR": [
382
+ "single"
383
+ ]
384
+ }
385
+ },
386
+ {
387
+ "id": "req-rebuild",
388
+ "type": "requirement",
389
+ "label": "Rebuilt from sources",
390
+ "x": 260,
391
+ "y": 1430,
392
+ "ears_type": "event-driven",
393
+ "trigger": "the store is lost or found corrupted",
394
+ "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",
395
+ "rationale": "Data that can be reproduced from sources needs no backup if it can be reproduced in time (AWS REL09-BP01).",
396
+ "hubWhen": {
397
+ "METHOD": [
398
+ "rebuild"
399
+ ]
400
+ }
401
+ },
402
+ {
403
+ "id": "req-derived",
404
+ "type": "requirement",
405
+ "label": "Nothing only here",
406
+ "x": 260,
407
+ "y": 1560,
408
+ "ears_type": "unwanted-behaviour",
409
+ "unwanted_condition": "code other than the rebuild or projection process tries to write to the store",
410
+ "action": "refuse the write, so that nothing exists only in the store",
411
+ "rationale": "A rebuilt store loses whatever was written to it first; keeping it derived is what makes having no backup safe.",
412
+ "hubWhen": {
413
+ "METHOD": [
414
+ "rebuild"
415
+ ]
416
+ }
417
+ },
418
+ {
419
+ "id": "req-drill-auto",
420
+ "type": "requirement",
421
+ "label": "Weekly automated restore",
422
+ "x": 260,
423
+ "y": 1690,
424
+ "ears_type": "event-driven",
425
+ "trigger": "a week has passed since the last restore test",
426
+ "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",
427
+ "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).",
428
+ "hubWhen": {
429
+ "DRILL": [
430
+ "auto"
431
+ ]
432
+ }
433
+ },
434
+ {
435
+ "id": "req-drill-manual",
436
+ "type": "requirement",
437
+ "label": "Quarterly restore drill",
438
+ "x": 260,
439
+ "y": 1820,
440
+ "ears_type": "event-driven",
441
+ "trigger": "a quarter has passed since the last restore drill",
442
+ "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",
443
+ "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).",
444
+ "hubWhen": {
445
+ "DRILL": [
446
+ "manual"
447
+ ]
448
+ }
449
+ },
450
+ {
451
+ "id": "sc-sync",
452
+ "type": "scenario",
453
+ "label": "Primary lost, nothing lost",
454
+ "x": 520,
455
+ "y": 0,
456
+ "given": "writes acknowledged to clients under load",
457
+ "when": "the primary is stopped without warning",
458
+ "then": "every acknowledged write is on the promoted replica",
459
+ "hubWhen": {
460
+ "METHOD": [
461
+ "sync"
462
+ ]
463
+ }
464
+ },
465
+ {
466
+ "id": "sc-pitr",
467
+ "type": "scenario",
468
+ "label": "Restored to the minute",
469
+ "x": 520,
470
+ "y": 130,
471
+ "given": "a table deleted by mistake at a known time",
472
+ "when": "the store is restored to one minute before",
473
+ "then": "the table is back with its data, and no more than {{RPO_MINUTES}} minutes of other changes are missing",
474
+ "hubWhen": {
475
+ "METHOD": [
476
+ "pitr"
477
+ ]
478
+ }
479
+ },
480
+ {
481
+ "id": "sc-snapshot",
482
+ "type": "scenario",
483
+ "label": "Last snapshot restores",
484
+ "x": 520,
485
+ "y": 260,
486
+ "given": "the newest snapshot",
487
+ "when": "it is restored into a clean environment",
488
+ "then": "the store holds the data of no more than {{RPO_MINUTES}} minutes before the snapshot ran",
489
+ "hubWhen": {
490
+ "METHOD": [
491
+ "snapshot"
492
+ ]
493
+ }
494
+ },
495
+ {
496
+ "id": "sc-recover",
497
+ "type": "scenario",
498
+ "label": "Store restored in time",
499
+ "x": 520,
500
+ "y": 390,
501
+ "given": "the store in a test environment with known data",
502
+ "when": "it is destroyed and restored from its copies",
503
+ "then": "service is back within {{RTO_MINUTES}} minutes and no more than {{RPO_MINUTES}} minutes of writes are missing",
504
+ "hubWhen": {
505
+ "METHOD": [
506
+ "sync",
507
+ "pitr",
508
+ "snapshot"
509
+ ]
510
+ }
511
+ },
512
+ {
513
+ "id": "sc-copy-alert",
514
+ "type": "scenario",
515
+ "label": "Stale copy pages",
516
+ "x": 520,
517
+ "y": 520,
518
+ "given": "a backup job whose credentials have expired",
519
+ "when": "the newest copy grows older than {{RPO_MINUTES}} minutes",
520
+ "then": "the on-call engineer is paged within 15 minutes",
521
+ "hubWhen": {
522
+ "METHOD": [
523
+ "sync",
524
+ "pitr",
525
+ "snapshot"
526
+ ]
527
+ }
528
+ },
529
+ {
530
+ "id": "sc-copies-vault",
531
+ "type": "scenario",
532
+ "label": "Copies out of reach",
533
+ "x": 520,
534
+ "y": 650,
535
+ "given": "the store's account fully taken over",
536
+ "when": "the attacker tries to delete or overwrite the copies",
537
+ "then": "every attempt is refused until the copies expire after {{RETAIN_DAYS}} days",
538
+ "hubWhen": {
539
+ "METHOD": [
540
+ "sync",
541
+ "pitr",
542
+ "snapshot"
543
+ ],
544
+ "COPIES": [
545
+ "vault"
546
+ ]
547
+ }
548
+ },
549
+ {
550
+ "id": "sc-copies-region",
551
+ "type": "scenario",
552
+ "label": "Deleted copy noticed",
553
+ "x": 520,
554
+ "y": 780,
555
+ "given": "copies in the second region",
556
+ "when": "someone deletes one",
557
+ "then": "the on-call engineer is alerted within 5 minutes",
558
+ "hubWhen": {
559
+ "METHOD": [
560
+ "sync",
561
+ "pitr",
562
+ "snapshot"
563
+ ],
564
+ "COPIES": [
565
+ "region"
566
+ ]
567
+ }
568
+ },
569
+ {
570
+ "id": "sc-copies-offline",
571
+ "type": "scenario",
572
+ "label": "Air-gapped copy restores",
573
+ "x": 520,
574
+ "y": 910,
575
+ "given": "the newest offline copy, brought back from the second site",
576
+ "when": "it is restored into an isolated environment",
577
+ "then": "the store holds the data of its day",
578
+ "hubWhen": {
579
+ "METHOD": [
580
+ "sync",
581
+ "pitr",
582
+ "snapshot"
583
+ ],
584
+ "COPIES": [
585
+ "offline"
586
+ ]
587
+ }
588
+ },
589
+ {
590
+ "id": "sc-dr-restore",
591
+ "type": "scenario",
592
+ "label": "Region rebuilt",
593
+ "x": 520,
594
+ "y": 1040,
595
+ "given": "the primary region marked unavailable in a test",
596
+ "when": "the recovery runbook is started",
597
+ "then": "the store serves from the second region within {{REGION_RTO_HOURS}} hours",
598
+ "hubWhen": {
599
+ "METHOD": [
600
+ "sync",
601
+ "pitr",
602
+ "snapshot"
603
+ ],
604
+ "DR": [
605
+ "restore"
606
+ ]
607
+ }
608
+ },
609
+ {
610
+ "id": "sc-dr-standby",
611
+ "type": "scenario",
612
+ "label": "Region failover",
613
+ "x": 520,
614
+ "y": 1170,
615
+ "given": "the standby replicating with a lag under {{RPO_MINUTES}} minutes",
616
+ "when": "the primary region is cut off in a failover test",
617
+ "then": "the standby serves within {{RTO_MINUTES}} minutes",
618
+ "hubWhen": {
619
+ "METHOD": [
620
+ "sync",
621
+ "pitr",
622
+ "snapshot"
623
+ ],
624
+ "DR": [
625
+ "standby"
626
+ ]
627
+ }
628
+ },
629
+ {
630
+ "id": "sc-dr-single",
631
+ "type": "scenario",
632
+ "label": "Zone lost",
633
+ "x": 520,
634
+ "y": 1300,
635
+ "given": "the store across two zones",
636
+ "when": "one zone is cut off in a test",
637
+ "then": "it serves from the other within {{RTO_MINUTES}} minutes",
638
+ "hubWhen": {
639
+ "METHOD": [
640
+ "sync",
641
+ "pitr",
642
+ "snapshot"
643
+ ],
644
+ "DR": [
645
+ "single"
646
+ ]
647
+ }
648
+ },
649
+ {
650
+ "id": "sc-rebuild",
651
+ "type": "scenario",
652
+ "label": "Projection rebuilt",
653
+ "x": 520,
654
+ "y": 1430,
655
+ "given": "the store emptied in a test environment",
656
+ "when": "the rebuild runs",
657
+ "then": "within {{RTO_MINUTES}} minutes it holds what the sources say",
658
+ "hubWhen": {
659
+ "METHOD": [
660
+ "rebuild"
661
+ ]
662
+ }
663
+ },
664
+ {
665
+ "id": "sc-derived",
666
+ "type": "scenario",
667
+ "label": "Direct write refused",
668
+ "x": 520,
669
+ "y": 1560,
670
+ "given": "the store's database role",
671
+ "when": "a service other than the projector writes to it",
672
+ "then": "the write is refused",
673
+ "hubWhen": {
674
+ "METHOD": [
675
+ "rebuild"
676
+ ]
677
+ }
678
+ },
679
+ {
680
+ "id": "sc-drill-auto",
681
+ "type": "scenario",
682
+ "label": "Weekly restore passes",
683
+ "x": 520,
684
+ "y": 1690,
685
+ "given": "the scheduled restore test",
686
+ "when": "it runs",
687
+ "then": "the restored store passes the data checks within {{RTO_MINUTES}} minutes, or the owner is alerted",
688
+ "hubWhen": {
689
+ "DRILL": [
690
+ "auto"
691
+ ]
692
+ }
693
+ },
694
+ {
695
+ "id": "sc-drill-manual",
696
+ "type": "scenario",
697
+ "label": "Drill recorded",
698
+ "x": 520,
699
+ "y": 1820,
700
+ "given": "the runbook and an engineer who did not write it",
701
+ "when": "the quarterly drill is run",
702
+ "then": "the drill record shows the time taken against {{RTO_MINUTES}} minutes, the data age, and the runbook fixes",
703
+ "hubWhen": {
704
+ "DRILL": [
705
+ "manual"
706
+ ]
707
+ }
708
+ },
709
+ {
710
+ "id": "adr-sync",
711
+ "type": "adr",
712
+ "label": "Synchronous replication and backups",
713
+ "x": 780,
714
+ "y": 0,
715
+ "concern": "backup-recovery",
716
+ "status": "accepted",
717
+ "date": "",
718
+ "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.",
719
+ "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). A lost store loses no acknowledged write. Replication copies mistakes, so continuous backups with point-in-time recovery cover them, with a recovery point of {{RPO_MINUTES}} minutes, kept {{RETAIN_DAYS}} days in {{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.",
720
+ "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 loss comes with a long RTO.",
721
+ "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.",
722
+ "hubWhen": {
723
+ "METHOD": [
724
+ "sync"
725
+ ]
726
+ }
727
+ },
728
+ {
729
+ "id": "adr-pitr",
730
+ "type": "adr",
731
+ "label": "Point-in-time recovery",
732
+ "x": 780,
733
+ "y": 130,
734
+ "concern": "backup-recovery",
735
+ "status": "accepted",
736
+ "date": "",
737
+ "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.",
738
+ "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 in {{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.",
739
+ "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.",
740
+ "alternatives": "1. Synchronous replication: no loss, slower and dearer writes, and still needs backups.\n2. Scheduled snapshots: simpler, hours of loss.",
741
+ "hubWhen": {
742
+ "METHOD": [
743
+ "pitr"
744
+ ]
745
+ }
746
+ },
747
+ {
748
+ "id": "adr-snapshot",
749
+ "type": "adr",
750
+ "label": "Scheduled snapshots",
751
+ "x": 780,
752
+ "y": 260,
753
+ "concern": "backup-recovery",
754
+ "status": "accepted",
755
+ "date": "",
756
+ "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.",
757
+ "decision": "The store is snapshotted at least every {{RPO_MINUTES}} minutes and each snapshot is kept {{RETAIN_DAYS}} days in {{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.",
758
+ "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.",
759
+ "alternatives": "1. Point-in-time recovery: minutes of loss for little more.\n2. Synchronous replication: no loss, far dearer.",
760
+ "hubWhen": {
761
+ "METHOD": [
762
+ "snapshot"
763
+ ]
764
+ }
765
+ },
766
+ {
767
+ "id": "adr-rebuild",
768
+ "type": "adr",
769
+ "label": "Rebuilt, not backed up",
770
+ "x": 780,
771
+ "y": 390,
772
+ "concern": "backup-recovery",
773
+ "status": "accepted",
774
+ "date": "",
775
+ "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.",
776
+ "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, so where copies would be kept and how a region loss is recovered are decided by the sources, not here. 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}}.",
777
+ "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.",
778
+ "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.",
779
+ "hubWhen": {
780
+ "METHOD": [
781
+ "rebuild"
782
+ ]
783
+ }
784
+ },
785
+ {
786
+ "id": "adr-vault",
787
+ "type": "adr",
788
+ "label": "Copies in a locked vault",
789
+ "x": 780,
790
+ "y": 520,
791
+ "concern": "backup-recovery",
792
+ "status": "accepted",
793
+ "date": "",
794
+ "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.",
795
+ "decision": "Copies go to a backup vault in a separate account and region (AWS Backup with a vault in the backup account under Vault Lock in compliance mode; Azure Backup with an immutable vault and multi-user authorization; a bucket with Object Lock for pgBackRest), locked for {{RETAIN_DAYS}} days and encrypted with a key held in that account. The source account can write copies and read them back; it cannot delete or shorten them, and neither can anyone in the backup account before they expire. Every backup rule of the source account copies to the vault.",
796
+ "consequences": "• Ransomware or a stolen administrator credential in the source account cannot reach the copies.\n• A second account to run, with its own access, billing and key.\n• The lock is final: a copy taken by mistake with sensitive data stays {{RETAIN_DAYS}} days.\n• Cross-account, cross-region copy traffic costs per gigabyte.",
797
+ "alternatives": "1. Another region of the same account: cheaper, no second account, but an administrator can delete the copies.\n2. Offline media at a second site: an air gap, with human steps on every copy and restore.",
798
+ "hubWhen": {
799
+ "METHOD": [
800
+ "sync",
801
+ "pitr",
802
+ "snapshot"
803
+ ],
804
+ "COPIES": [
805
+ "vault"
806
+ ]
807
+ }
808
+ },
809
+ {
810
+ "id": "adr-region",
811
+ "type": "adr",
812
+ "label": "Copies in another region",
813
+ "x": 780,
814
+ "y": 650,
815
+ "concern": "backup-recovery",
816
+ "status": "accepted",
817
+ "date": "",
818
+ "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.",
819
+ "decision": "Every backup rule copies its recovery points to a vault in a second region of the same account, kept {{RETAIN_DAYS}} days; the vault's access policy denies deletion to everyone but the backup role, and an EventBridge rule on DeleteRecoveryPoint pages the on-call engineer. A separate account is the next step, planned when the first security review asks for it.",
820
+ "consequences": "• A region loss leaves the copies intact.\n• An attacker with administrator rights can still delete them: the alert is the control, and someone has to answer it.\n• No second account to run.",
821
+ "alternatives": "1. A locked vault in another account and region: survives a stolen administrator credential.\n2. Offline media at a second site: an air gap, with human steps.",
822
+ "hubWhen": {
823
+ "METHOD": [
824
+ "sync",
825
+ "pitr",
826
+ "snapshot"
827
+ ],
828
+ "COPIES": [
829
+ "region"
830
+ ]
831
+ }
832
+ },
833
+ {
834
+ "id": "adr-offline",
835
+ "type": "adr",
836
+ "label": "Offline copies at a second site",
837
+ "x": 780,
838
+ "y": 780,
839
+ "concern": "backup-recovery",
840
+ "status": "accepted",
841
+ "date": "",
842
+ "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.",
843
+ "decision": "At least every 24 hours a copy is written to media that are disconnected after writing (LTO tape or removable disks, or an object-storage bucket whose credentials exist only on the backup host and are rotated after each run) and kept at a second site under separate administration for {{RETAIN_DAYS}} days. The job verifies the media before ejecting them and pushes its success time to the monitoring.",
844
+ "consequences": "• Nothing on the network can reach the copies.\n• A restore starts with transport: the RTO includes bringing the media back.\n• Media, a safe and a courier are an operational routine that needs an owner.",
845
+ "alternatives": "1. A locked vault in another account and region: the same protection without physical handling, on a cloud.\n2. Another region of the same account: cheapest, weakest.",
846
+ "hubWhen": {
847
+ "METHOD": [
848
+ "sync",
849
+ "pitr",
850
+ "snapshot"
851
+ ],
852
+ "COPIES": [
853
+ "offline"
854
+ ]
855
+ }
856
+ },
857
+ {
858
+ "id": "adr-dr-restore",
859
+ "type": "adr",
860
+ "label": "Region loss recovered by restore",
861
+ "x": 780,
862
+ "y": 910,
863
+ "concern": "backup-recovery",
864
+ "status": "accepted",
865
+ "date": "",
866
+ "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.",
867
+ "decision": "When the primary region is lost, the infrastructure is recreated from code in the second region and the store restored there from its copies, within {{REGION_RTO_HOURS}} hours; the service level agreement states that figure. The pipeline can target the second region without changes, the copies are already there, and the runbook names who decides to fail over.",
868
+ "consequences": "• Costs little more than the copies: nothing runs in the second region until it is needed.\n• Hours of downtime on a region loss, and the data since the last copy is lost.\n• The restore has to be rehearsed in the second region, not only in the primary.",
869
+ "alternatives": "1. A warm standby in a second region: minutes instead of hours, at the cost of a running replica.\n2. One region across zones: no region recovery, written into the agreement.",
870
+ "hubWhen": {
871
+ "METHOD": [
872
+ "sync",
873
+ "pitr",
874
+ "snapshot"
875
+ ],
876
+ "DR": [
877
+ "restore"
878
+ ]
879
+ }
880
+ },
881
+ {
882
+ "id": "adr-dr-standby",
883
+ "type": "adr",
884
+ "label": "Region loss recovered by a warm standby",
885
+ "x": 780,
886
+ "y": 1040,
887
+ "concern": "backup-recovery",
888
+ "status": "accepted",
889
+ "date": "",
890
+ "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.",
891
+ "decision": "A replica of the store runs in a second region all the time (Aurora Global Database, cross-region read replicas, PostgreSQL streaming replication), with the rest of the system deployed there at minimal size; on a region loss the replica is promoted and the system scaled up, within {{RTO_MINUTES}} minutes. Replication lag is watched against {{RPO_MINUTES}} minutes. Failover is a runbook step with one decision maker; failback is planned, not improvised.",
892
+ "consequences": "• A region loss is recovered in minutes, with at most the replication lag lost.\n• About double the database cost and part of the compute, all the time.\n• Two regions to deploy to and keep in step; a failover drill is required to trust it.",
893
+ "alternatives": "1. Backup and restore in a second region: hours instead of minutes, far cheaper.\n2. Active-active across regions: no failover at all, but a different data model (conflicts, global tables).",
894
+ "hubWhen": {
895
+ "METHOD": [
896
+ "sync",
897
+ "pitr",
898
+ "snapshot"
899
+ ],
900
+ "DR": [
901
+ "standby"
902
+ ]
903
+ }
904
+ },
905
+ {
906
+ "id": "adr-dr-single",
907
+ "type": "adr",
908
+ "label": "One region, zone redundant",
909
+ "x": 780,
910
+ "y": 1170,
911
+ "concern": "backup-recovery",
912
+ "status": "accepted",
913
+ "date": "",
914
+ "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.",
915
+ "decision": "The store runs across availability zones of one region (Multi-AZ instances or a cluster with instances in at least two zones) and survives a zone loss within {{RTO_MINUTES}} minutes; a loss of the whole region is waited out, and the service level agreement says so. The copies still leave the region, so a restore elsewhere stays possible when the outage lasts.",
916
+ "consequences": "• The common failures (a host, a zone) are covered at the cost of the standby instance.\n• A region outage is downtime for its whole duration: the business has accepted that in writing.\n• Nothing to keep in step across regions.",
917
+ "alternatives": "1. Backup and restore in a second region: a way back within hours for little more.\n2. A warm standby in a second region: minutes, at double the database cost.",
918
+ "hubWhen": {
919
+ "METHOD": [
920
+ "sync",
921
+ "pitr",
922
+ "snapshot"
923
+ ],
924
+ "DR": [
925
+ "single"
926
+ ]
927
+ }
928
+ },
929
+ {
930
+ "id": "adr-drill-auto",
931
+ "type": "adr",
932
+ "label": "Recovery proven by an automated weekly restore",
933
+ "x": 780,
934
+ "y": 1300,
935
+ "concern": "backup-recovery",
936
+ "status": "accepted",
937
+ "date": "",
938
+ "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.",
939
+ "decision": "Every week a scheduled pipeline restores the latest copy (or rebuilds the store from its sources) into a throwaway environment, checks row counts, the newest timestamp and a sample of records, measures the time against {{RTO_MINUTES}} minutes and tears the environment down; a failure or a slow restore alerts the owner. AWS Backup restore testing does the same for stores it backs up.",
940
+ "consequences": "• The restore is known to work every week, with its real duration.\n• A throwaway environment every week costs compute and a pipeline to maintain.\n• The automated restore does not exercise the people: a yearly drill by hand is still worth running.",
941
+ "alternatives": "1. A quarterly drill by the team: exercises the runbook and the people, four times a year instead of fifty-two.\n2. No drill: the backups are a hope.",
942
+ "hubWhen": {
943
+ "DRILL": [
944
+ "auto"
945
+ ]
946
+ }
947
+ },
948
+ {
949
+ "id": "adr-drill-manual",
950
+ "type": "adr",
951
+ "label": "Recovery proven by a quarterly drill",
952
+ "x": 780,
953
+ "y": 1430,
954
+ "concern": "backup-recovery",
955
+ "status": "accepted",
956
+ "date": "",
957
+ "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.",
958
+ "decision": "Every quarter an engineer who did not write the runbook restores (or rebuilds) the store into a clean environment by following it, records the time taken and the age of the data in docs/drills, and the runbook is corrected within 14 days. A scheduled job fails when the newest record is older than 92 days or its restore took longer than {{RTO_MINUTES}} minutes.",
959
+ "consequences": "• The runbook and the people are exercised, and the steps only the author knew get written down.\n• A quarter is a long time: a credential that expires in between is found on the day.\n• Half a day of an engineer every quarter.",
960
+ "alternatives": "1. An automated restore test every week: fifty-two proofs a year, without the people.\n2. Both: the weekly test for the mechanism, a yearly drill for the runbook.",
961
+ "hubWhen": {
962
+ "DRILL": [
963
+ "manual"
964
+ ]
965
+ }
966
+ },
967
+ {
968
+ "id": "ff-sync",
969
+ "type": "fitness-fn",
970
+ "label": "Synchronous standby attached",
971
+ "x": 1040,
972
+ "y": 0,
973
+ "characteristic": "reliability",
974
+ "scope": "atomic",
975
+ "cadence": "continual",
976
+ "invocation": "automated",
977
+ "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\nThreshold: At least 1 standby in sync or quorum state at every moment; a page after 1 minute without one\n\nTool: Prometheus with sql_exporter (PostgreSQL; for a managed service, its own replication metric, such as AuroraReplicaLag)\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```",
978
+ "hubWhen": {
979
+ "METHOD": [
980
+ "sync"
981
+ ]
982
+ }
983
+ },
984
+ {
985
+ "id": "ff-rpo",
986
+ "type": "fitness-fn",
987
+ "label": "Newest copy within the RPO",
988
+ "x": 1040,
989
+ "y": 130,
990
+ "characteristic": "reliability",
991
+ "scope": "atomic",
992
+ "cadence": "continual",
993
+ "invocation": "automated",
994
+ "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\nThreshold: The newest recoverable copy is never older than {{RPO_MINUTES}} minutes for more than 5 minutes\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```",
995
+ "hubWhen": {
996
+ "METHOD": [
997
+ "sync",
998
+ "pitr",
999
+ "snapshot"
1000
+ ]
1001
+ }
1002
+ },
1003
+ {
1004
+ "id": "ff-vault-copy",
1005
+ "type": "fitness-fn",
1006
+ "label": "Every backup copies to the vault",
1007
+ "x": 1040,
1008
+ "y": 260,
1009
+ "characteristic": "reliability",
1010
+ "scope": "atomic",
1011
+ "cadence": "triggered",
1012
+ "trigger": "pull-request",
1013
+ "invocation": "automated",
1014
+ "description": "In CI the source account's Terraform plan (terraform show -json) is checked: every backup rule must have a copy action whose destination vault ARN names the backup account (a plan variable) and a region other than the primary. A destination that is unknown at plan time fails too: reference the vault by a variable or data source so the plan can be checked.\n\nThreshold: Every backup rule in the source account copies to a vault whose ARN names the backup account and another region; 0 rules without, 0 copy destinations unknown at plan time\n\nTool: Conftest on the Terraform plan of the source account (AWS Backup; for Azure Backup check the vault's cross-region restore and the backup policy's vault)\n\n```rego\npackage main\n\nimport rego.v1\n\nbackup_account := input.variables.backup_account_id.value\nprimary_region := input.variables.primary_region.value\n\ncopies_to_vault(rule) if {\n\tsome c in rule.copy_action\n\tparts := split(c.destination_vault_arn, \":\")\n\tparts[4] == backup_account\n\tparts[3] != primary_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\tnot copies_to_vault(rule)\n\tmsg := sprintf(\"%s rule %s does not copy to the locked vault in account %s outside %s (an unknown destination counts: pass the vault ARN as a variable)\", [r.address, rule.rule_name, backup_account, primary_region])\n}\n```",
1015
+ "hubWhen": {
1016
+ "METHOD": [
1017
+ "sync",
1018
+ "pitr",
1019
+ "snapshot"
1020
+ ],
1021
+ "COPIES": [
1022
+ "vault"
1023
+ ]
1024
+ }
1025
+ },
1026
+ {
1027
+ "id": "ff-vault-lock",
1028
+ "type": "fitness-fn",
1029
+ "label": "The vault is locked",
1030
+ "x": 1040,
1031
+ "y": 390,
1032
+ "characteristic": "reliability",
1033
+ "scope": "atomic",
1034
+ "cadence": "triggered",
1035
+ "trigger": "pull-request",
1036
+ "invocation": "automated",
1037
+ "description": "In CI the backup account's Terraform plan is checked: a vault lock must exist with changeable_for_days set (without it the lock is governance mode, which an administrator can lift) and a minimum retention of at least {{RETAIN_DAYS}} days.\n\nThreshold: The backup account's vault has a compliance-mode lock with a minimum retention of at least {{RETAIN_DAYS}} days; 0 vaults without\n\nTool: Conftest on the Terraform plan of the backup account (AWS Backup Vault Lock; for Azure Backup check the vault's immutability setting is locked)\n\n```rego\npackage main\n\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\tsome l in locks\n\tnot l.change.after.min_retention_days\n\tmsg := sprintf(\"%s sets no minimum retention\", [l.address])\n}\n\ndeny contains msg if {\n\tsome l in locks\n\tl.change.after.min_retention_days < {{RETAIN_DAYS}}\n\tmsg := sprintf(\"%s locks copies for fewer than {{RETAIN_DAYS}} days\", [l.address])\n}\n\ndeny contains msg if {\n\tsome l in locks\n\tnot l.change.after.changeable_for_days\n\tmsg := sprintf(\"%s is not in compliance mode (set changeable_for_days)\", [l.address])\n}\n```",
1038
+ "hubWhen": {
1039
+ "METHOD": [
1040
+ "sync",
1041
+ "pitr",
1042
+ "snapshot"
1043
+ ],
1044
+ "COPIES": [
1045
+ "vault"
1046
+ ]
1047
+ }
1048
+ },
1049
+ {
1050
+ "id": "ff-copy-region",
1051
+ "type": "fitness-fn",
1052
+ "label": "Copies leave the region and deletions page",
1053
+ "x": 1040,
1054
+ "y": 520,
1055
+ "characteristic": "reliability",
1056
+ "scope": "atomic",
1057
+ "cadence": "triggered",
1058
+ "trigger": "pull-request",
1059
+ "invocation": "automated",
1060
+ "description": "In CI the Terraform plan is checked: every backup rule must copy to a vault whose ARN names another region (an unknown destination fails: reference the vault by a variable or data source), and an EventBridge rule must match DeleteRecoveryPoint calls from CloudTrail, which is what pages within 5 minutes of a deletion.\n\nThreshold: 0 backup rules without a copy to a vault outside the primary region; 1 or more EventBridge rules on DeleteRecoveryPoint with a target\n\nTool: Conftest on the Terraform plan (AWS Backup and EventBridge; on Azure check the backup policy's secondary region and an activity log alert on recovery point deletion)\n\n```rego\npackage main\n\nimport rego.v1\n\nprimary := input.variables.primary_region.value\n\ncopies_elsewhere(rule) if {\n\tsome c in rule.copy_action\n\tsplit(c.destination_vault_arn, \":\")[3] != primary\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\tnot copies_elsewhere(rule)\n\tmsg := sprintf(\"%s rule %s keeps its copies in %s, or its destination is unknown at plan time\", [r.address, rule.rule_name, primary])\n}\n\ndeletion_rules := [r |\n\tsome r in input.resource_changes\n\tr.type == \"aws_cloudwatch_event_rule\"\n\tcontains(r.change.after.event_pattern, \"DeleteRecoveryPoint\")\n]\n\ndeny contains \"no EventBridge rule pages on DeleteRecoveryPoint\" if count(deletion_rules) == 0\n```",
1061
+ "hubWhen": {
1062
+ "METHOD": [
1063
+ "sync",
1064
+ "pitr",
1065
+ "snapshot"
1066
+ ],
1067
+ "COPIES": [
1068
+ "region"
1069
+ ]
1070
+ }
1071
+ },
1072
+ {
1073
+ "id": "ff-offline",
1074
+ "type": "fitness-fn",
1075
+ "label": "Offline copy fresh",
1076
+ "x": 1040,
1077
+ "y": 650,
1078
+ "characteristic": "reliability",
1079
+ "scope": "atomic",
1080
+ "cadence": "continual",
1081
+ "invocation": "automated",
1082
+ "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\nThreshold: The newest offline copy, written and disconnected, is never older than 26 hours\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```",
1083
+ "hubWhen": {
1084
+ "METHOD": [
1085
+ "sync",
1086
+ "pitr",
1087
+ "snapshot"
1088
+ ],
1089
+ "COPIES": [
1090
+ "offline"
1091
+ ]
1092
+ }
1093
+ },
1094
+ {
1095
+ "id": "ff-dr-policy-restore",
1096
+ "type": "fitness-fn",
1097
+ "label": "Region restore assessed",
1098
+ "x": 1040,
1099
+ "y": 780,
1100
+ "characteristic": "reliability",
1101
+ "scope": "holistic",
1102
+ "cadence": "triggered",
1103
+ "trigger": "release",
1104
+ "invocation": "automated",
1105
+ "description": "A resiliency policy states the objectives (created once); each release starts an assessment of the application version, waits for it and fails the pipeline unless it says the policy is met. On Azure, a test failover with Azure Site Recovery plays the same part; on Google Cloud, a scripted restore into the second region timed against the objective.\n\nThreshold: The resiliency assessment of the latest release meets the policy: RPO {{RPO_MINUTES}} minutes and RTO {{RTO_MINUTES}} minutes for zone, hardware and software disruptions, RTO {{REGION_RTO_HOURS}} hours for a region disruption\n\nTool: AWS Resilience Hub (AWS CLI, in the release pipeline)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nRPO=$(( {{RPO_MINUTES}} * 60 )); RTO=$(( {{RTO_MINUTES}} * 60 )); REGION_RTO=$(( {{REGION_RTO_HOURS}} * 3600 ))\n\n# once, when the policy is created (not in every run):\n# aws 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\\\":$REGION_RTO}}\"\n\n# every release: APP_ARN and APP_VERSION come from the pipeline\nARN=$(aws resiliencehub start-app-assessment --app-arn \"$APP_ARN\" --app-version \"$APP_VERSION\" \\\n --assessment-name \"release-$APP_VERSION\" --query assessment.assessmentArn --output text)\nuntil [ \"$(aws resiliencehub describe-app-assessment --assessment-arn \"$ARN\" --query assessment.assessmentStatus --output text)\" != \"InProgress\" ]; do sleep 30; done\nSTATUS=$(aws resiliencehub describe-app-assessment --assessment-arn \"$ARN\" --query assessment.complianceStatus --output text)\ntest \"$STATUS\" = \"PolicyMet\" || { echo \"recovery objectives not met: $STATUS\"; exit 1; }\n```",
1106
+ "hubWhen": {
1107
+ "METHOD": [
1108
+ "sync",
1109
+ "pitr",
1110
+ "snapshot"
1111
+ ],
1112
+ "DR": [
1113
+ "restore"
1114
+ ]
1115
+ }
1116
+ },
1117
+ {
1118
+ "id": "ff-dr-policy-standby",
1119
+ "type": "fitness-fn",
1120
+ "label": "Region failover assessed",
1121
+ "x": 1040,
1122
+ "y": 910,
1123
+ "characteristic": "reliability",
1124
+ "scope": "holistic",
1125
+ "cadence": "triggered",
1126
+ "trigger": "release",
1127
+ "invocation": "automated",
1128
+ "description": "A resiliency policy states the objectives (created once); each release starts an assessment of the application version, waits for it and fails the pipeline unless it says the policy is met. On Azure, a test failover with Azure Site Recovery plays the same part.\n\nThreshold: The resiliency assessment of the latest release meets the policy: RPO {{RPO_MINUTES}} minutes and RTO {{RTO_MINUTES}} minutes for zone, hardware, software and region disruptions\n\nTool: AWS Resilience Hub (AWS CLI, in the release pipeline)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nRPO=$(( {{RPO_MINUTES}} * 60 )); RTO=$(( {{RTO_MINUTES}} * 60 ))\n\n# once, when the policy is created (not in every run):\n# aws 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# every release: APP_ARN and APP_VERSION come from the pipeline\nARN=$(aws resiliencehub start-app-assessment --app-arn \"$APP_ARN\" --app-version \"$APP_VERSION\" \\\n --assessment-name \"release-$APP_VERSION\" --query assessment.assessmentArn --output text)\nuntil [ \"$(aws resiliencehub describe-app-assessment --assessment-arn \"$ARN\" --query assessment.assessmentStatus --output text)\" != \"InProgress\" ]; do sleep 30; done\nSTATUS=$(aws resiliencehub describe-app-assessment --assessment-arn \"$ARN\" --query assessment.complianceStatus --output text)\ntest \"$STATUS\" = \"PolicyMet\" || { echo \"recovery objectives not met: $STATUS\"; exit 1; }\n```",
1129
+ "hubWhen": {
1130
+ "METHOD": [
1131
+ "sync",
1132
+ "pitr",
1133
+ "snapshot"
1134
+ ],
1135
+ "DR": [
1136
+ "standby"
1137
+ ]
1138
+ }
1139
+ },
1140
+ {
1141
+ "id": "ff-standby-lag",
1142
+ "type": "fitness-fn",
1143
+ "label": "Standby lag within the RPO",
1144
+ "x": 1040,
1145
+ "y": 1040,
1146
+ "characteristic": "reliability",
1147
+ "scope": "atomic",
1148
+ "cadence": "continual",
1149
+ "invocation": "automated",
1150
+ "description": "The PostgreSQL exporter on the standby reports its replication lag; Prometheus pages when it passes the RPO, since that is the data a region failover would lose.\n\nThreshold: The standby's replication lag is above {{RPO_MINUTES}} minutes for no more than 5 minutes\n\nTool: Prometheus with postgres_exporter (pg_replication_lag_seconds; for Aurora Global Database, the AuroraGlobalDBReplicationLag CloudWatch metric)\n\n```yaml\ngroups:\n - name: backup-recovery\n rules:\n - alert: StandbyLagAboveRpo\n expr: pg_replication_lag_seconds{role=\"standby\"} > {{RPO_MINUTES}} * 60\n for: 5m\n labels: { severity: page }\n annotations:\n summary: 'The standby {{ $labels.instance }} lags more than {{RPO_MINUTES}} minutes behind'\n```",
1151
+ "hubWhen": {
1152
+ "METHOD": [
1153
+ "sync",
1154
+ "pitr",
1155
+ "snapshot"
1156
+ ],
1157
+ "DR": [
1158
+ "standby"
1159
+ ]
1160
+ }
1161
+ },
1162
+ {
1163
+ "id": "ff-zones",
1164
+ "type": "fitness-fn",
1165
+ "label": "Store spans zones",
1166
+ "x": 1040,
1167
+ "y": 1170,
1168
+ "characteristic": "reliability",
1169
+ "scope": "atomic",
1170
+ "cadence": "triggered",
1171
+ "trigger": "pull-request",
1172
+ "invocation": "automated",
1173
+ "description": "In CI the Terraform plan is checked: every database instance must run Multi-AZ and every cluster across at least two zones, since a zone loss is the failure this decision promises to survive.\n\nThreshold: 0 database instances in the Terraform plan without Multi-AZ, 0 clusters with fewer than 2 availability zones\n\nTool: Conftest on the Terraform plan (AWS RDS and Aurora; for Azure check high_availability.mode = ZoneRedundant on the flexible server, for Cloud SQL availability_type = REGIONAL)\n\n```rego\npackage main\n\nimport rego.v1\n\ndeny contains msg if {\n\tsome r in input.resource_changes\n\tr.type == \"aws_db_instance\"\n\tnot r.change.after.multi_az\n\tmsg := sprintf(\"%s runs in one availability zone\", [r.address])\n}\n\ndeny contains msg if {\n\tsome r in input.resource_changes\n\tr.type == \"aws_rds_cluster\"\n\tcount(object.get(r.change.after, \"availability_zones\", [])) < 2\n\tmsg := sprintf(\"%s names fewer than two availability zones\", [r.address])\n}\n```",
1174
+ "hubWhen": {
1175
+ "METHOD": [
1176
+ "sync",
1177
+ "pitr",
1178
+ "snapshot"
1179
+ ],
1180
+ "DR": [
1181
+ "single"
1182
+ ]
1183
+ }
1184
+ },
1185
+ {
1186
+ "id": "ff-derived",
1187
+ "type": "fitness-fn",
1188
+ "label": "Only the projector writes",
1189
+ "x": 1040,
1190
+ "y": 1300,
1191
+ "characteristic": "reliability",
1192
+ "scope": "atomic",
1193
+ "cadence": "triggered",
1194
+ "trigger": "pull-request",
1195
+ "invocation": "automated",
1196
+ "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\nThreshold: 0 modules outside the projection that import the store's write client\n\nTool: dependency-cruiser (or the equivalent for your stack: ArchUnit, NetArchTest, a RuboCop custom cop)\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```",
1197
+ "hubWhen": {
1198
+ "METHOD": [
1199
+ "rebuild"
1200
+ ]
1201
+ }
1202
+ },
1203
+ {
1204
+ "id": "ff-drill-auto",
1205
+ "type": "fitness-fn",
1206
+ "label": "Weekly restore test",
1207
+ "x": 1040,
1208
+ "y": 1430,
1209
+ "characteristic": "reliability",
1210
+ "scope": "holistic",
1211
+ "cadence": "triggered",
1212
+ "trigger": "weekly",
1213
+ "invocation": "automated",
1214
+ "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\nThreshold: 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\n\nTool: GitHub Actions (scheduled workflow); the same three scripts run from any scheduler\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.2.2 # pin by commit SHA in your repository\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```",
1215
+ "hubWhen": {
1216
+ "DRILL": [
1217
+ "auto"
1218
+ ]
1219
+ }
1220
+ },
1221
+ {
1222
+ "id": "ff-drill-manual",
1223
+ "type": "fitness-fn",
1224
+ "label": "Quarterly drill on record",
1225
+ "x": 1040,
1226
+ "y": 1560,
1227
+ "characteristic": "reliability",
1228
+ "scope": "holistic",
1229
+ "cadence": "temporal",
1230
+ "every": "90d",
1231
+ "invocation": "manual",
1232
+ "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\nThreshold: The newest drill record is at most 92 days old and its restore took no more than {{RTO_MINUTES}} minutes\n\nTool: GitHub Actions (scheduled workflow); the same script runs from any scheduler\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.2.2 # pin by commit SHA in your repository\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```",
1233
+ "hubWhen": {
1234
+ "DRILL": [
1235
+ "manual"
1236
+ ]
1237
+ }
1238
+ }
1239
+ ],
1240
+ "relations": [
1241
+ {
1242
+ "id": "req-sync--derives--need",
1243
+ "sourceId": "req-sync",
1244
+ "targetId": "need",
1245
+ "relationType": "derives"
1246
+ },
1247
+ {
1248
+ "id": "req-pitr--derives--need",
1249
+ "sourceId": "req-pitr",
1250
+ "targetId": "need",
1251
+ "relationType": "derives"
1252
+ },
1253
+ {
1254
+ "id": "req-snapshot--derives--need",
1255
+ "sourceId": "req-snapshot",
1256
+ "targetId": "need",
1257
+ "relationType": "derives"
1258
+ },
1259
+ {
1260
+ "id": "req-recover--derives--need",
1261
+ "sourceId": "req-recover",
1262
+ "targetId": "need",
1263
+ "relationType": "derives"
1264
+ },
1265
+ {
1266
+ "id": "req-copy-alert--derives--need",
1267
+ "sourceId": "req-copy-alert",
1268
+ "targetId": "need",
1269
+ "relationType": "derives"
1270
+ },
1271
+ {
1272
+ "id": "req-copies-vault--derives--need",
1273
+ "sourceId": "req-copies-vault",
1274
+ "targetId": "need",
1275
+ "relationType": "derives"
1276
+ },
1277
+ {
1278
+ "id": "req-copies-region--derives--need",
1279
+ "sourceId": "req-copies-region",
1280
+ "targetId": "need",
1281
+ "relationType": "derives"
1282
+ },
1283
+ {
1284
+ "id": "req-copies-offline--derives--need",
1285
+ "sourceId": "req-copies-offline",
1286
+ "targetId": "need",
1287
+ "relationType": "derives"
1288
+ },
1289
+ {
1290
+ "id": "req-dr-restore--derives--need",
1291
+ "sourceId": "req-dr-restore",
1292
+ "targetId": "need",
1293
+ "relationType": "derives"
1294
+ },
1295
+ {
1296
+ "id": "req-dr-standby--derives--need",
1297
+ "sourceId": "req-dr-standby",
1298
+ "targetId": "need",
1299
+ "relationType": "derives"
1300
+ },
1301
+ {
1302
+ "id": "req-dr-single--derives--need",
1303
+ "sourceId": "req-dr-single",
1304
+ "targetId": "need",
1305
+ "relationType": "derives"
1306
+ },
1307
+ {
1308
+ "id": "req-rebuild--derives--need",
1309
+ "sourceId": "req-rebuild",
1310
+ "targetId": "need",
1311
+ "relationType": "derives"
1312
+ },
1313
+ {
1314
+ "id": "req-derived--derives--need",
1315
+ "sourceId": "req-derived",
1316
+ "targetId": "need",
1317
+ "relationType": "derives"
1318
+ },
1319
+ {
1320
+ "id": "req-drill-auto--derives--need",
1321
+ "sourceId": "req-drill-auto",
1322
+ "targetId": "need",
1323
+ "relationType": "derives"
1324
+ },
1325
+ {
1326
+ "id": "req-drill-manual--derives--need",
1327
+ "sourceId": "req-drill-manual",
1328
+ "targetId": "need",
1329
+ "relationType": "derives"
1330
+ },
1331
+ {
1332
+ "id": "sc-sync--verifies--req-sync",
1333
+ "sourceId": "sc-sync",
1334
+ "targetId": "req-sync",
1335
+ "relationType": "verifies"
1336
+ },
1337
+ {
1338
+ "id": "sc-pitr--verifies--req-pitr",
1339
+ "sourceId": "sc-pitr",
1340
+ "targetId": "req-pitr",
1341
+ "relationType": "verifies"
1342
+ },
1343
+ {
1344
+ "id": "sc-snapshot--verifies--req-snapshot",
1345
+ "sourceId": "sc-snapshot",
1346
+ "targetId": "req-snapshot",
1347
+ "relationType": "verifies"
1348
+ },
1349
+ {
1350
+ "id": "sc-recover--verifies--req-recover",
1351
+ "sourceId": "sc-recover",
1352
+ "targetId": "req-recover",
1353
+ "relationType": "verifies"
1354
+ },
1355
+ {
1356
+ "id": "sc-copy-alert--verifies--req-copy-alert",
1357
+ "sourceId": "sc-copy-alert",
1358
+ "targetId": "req-copy-alert",
1359
+ "relationType": "verifies"
1360
+ },
1361
+ {
1362
+ "id": "sc-copies-vault--verifies--req-copies-vault",
1363
+ "sourceId": "sc-copies-vault",
1364
+ "targetId": "req-copies-vault",
1365
+ "relationType": "verifies"
1366
+ },
1367
+ {
1368
+ "id": "sc-copies-region--verifies--req-copies-region",
1369
+ "sourceId": "sc-copies-region",
1370
+ "targetId": "req-copies-region",
1371
+ "relationType": "verifies"
1372
+ },
1373
+ {
1374
+ "id": "sc-copies-offline--verifies--req-copies-offline",
1375
+ "sourceId": "sc-copies-offline",
1376
+ "targetId": "req-copies-offline",
1377
+ "relationType": "verifies"
1378
+ },
1379
+ {
1380
+ "id": "sc-dr-restore--verifies--req-dr-restore",
1381
+ "sourceId": "sc-dr-restore",
1382
+ "targetId": "req-dr-restore",
1383
+ "relationType": "verifies"
1384
+ },
1385
+ {
1386
+ "id": "sc-dr-standby--verifies--req-dr-standby",
1387
+ "sourceId": "sc-dr-standby",
1388
+ "targetId": "req-dr-standby",
1389
+ "relationType": "verifies"
1390
+ },
1391
+ {
1392
+ "id": "sc-dr-single--verifies--req-dr-single",
1393
+ "sourceId": "sc-dr-single",
1394
+ "targetId": "req-dr-single",
1395
+ "relationType": "verifies"
1396
+ },
1397
+ {
1398
+ "id": "sc-rebuild--verifies--req-rebuild",
1399
+ "sourceId": "sc-rebuild",
1400
+ "targetId": "req-rebuild",
1401
+ "relationType": "verifies"
1402
+ },
1403
+ {
1404
+ "id": "sc-derived--verifies--req-derived",
1405
+ "sourceId": "sc-derived",
1406
+ "targetId": "req-derived",
1407
+ "relationType": "verifies"
1408
+ },
1409
+ {
1410
+ "id": "sc-drill-auto--verifies--req-drill-auto",
1411
+ "sourceId": "sc-drill-auto",
1412
+ "targetId": "req-drill-auto",
1413
+ "relationType": "verifies"
1414
+ },
1415
+ {
1416
+ "id": "sc-drill-manual--verifies--req-drill-manual",
1417
+ "sourceId": "sc-drill-manual",
1418
+ "targetId": "req-drill-manual",
1419
+ "relationType": "verifies"
1420
+ },
1421
+ {
1422
+ "id": "ff-sync--implements--adr-sync",
1423
+ "sourceId": "ff-sync",
1424
+ "targetId": "adr-sync",
1425
+ "relationType": "implements"
1426
+ },
1427
+ {
1428
+ "id": "ff-rpo--implements--adr-sync",
1429
+ "sourceId": "ff-rpo",
1430
+ "targetId": "adr-sync",
1431
+ "relationType": "implements"
1432
+ },
1433
+ {
1434
+ "id": "ff-rpo--implements--adr-pitr",
1435
+ "sourceId": "ff-rpo",
1436
+ "targetId": "adr-pitr",
1437
+ "relationType": "implements"
1438
+ },
1439
+ {
1440
+ "id": "ff-rpo--implements--adr-snapshot",
1441
+ "sourceId": "ff-rpo",
1442
+ "targetId": "adr-snapshot",
1443
+ "relationType": "implements"
1444
+ },
1445
+ {
1446
+ "id": "ff-vault-copy--implements--adr-vault",
1447
+ "sourceId": "ff-vault-copy",
1448
+ "targetId": "adr-vault",
1449
+ "relationType": "implements"
1450
+ },
1451
+ {
1452
+ "id": "ff-vault-lock--implements--adr-vault",
1453
+ "sourceId": "ff-vault-lock",
1454
+ "targetId": "adr-vault",
1455
+ "relationType": "implements"
1456
+ },
1457
+ {
1458
+ "id": "ff-copy-region--implements--adr-region",
1459
+ "sourceId": "ff-copy-region",
1460
+ "targetId": "adr-region",
1461
+ "relationType": "implements"
1462
+ },
1463
+ {
1464
+ "id": "ff-offline--implements--adr-offline",
1465
+ "sourceId": "ff-offline",
1466
+ "targetId": "adr-offline",
1467
+ "relationType": "implements"
1468
+ },
1469
+ {
1470
+ "id": "ff-dr-policy-restore--implements--adr-dr-restore",
1471
+ "sourceId": "ff-dr-policy-restore",
1472
+ "targetId": "adr-dr-restore",
1473
+ "relationType": "implements"
1474
+ },
1475
+ {
1476
+ "id": "ff-dr-policy-standby--implements--adr-dr-standby",
1477
+ "sourceId": "ff-dr-policy-standby",
1478
+ "targetId": "adr-dr-standby",
1479
+ "relationType": "implements"
1480
+ },
1481
+ {
1482
+ "id": "ff-standby-lag--implements--adr-dr-standby",
1483
+ "sourceId": "ff-standby-lag",
1484
+ "targetId": "adr-dr-standby",
1485
+ "relationType": "implements"
1486
+ },
1487
+ {
1488
+ "id": "ff-zones--implements--adr-dr-single",
1489
+ "sourceId": "ff-zones",
1490
+ "targetId": "adr-dr-single",
1491
+ "relationType": "implements"
1492
+ },
1493
+ {
1494
+ "id": "ff-derived--implements--adr-rebuild",
1495
+ "sourceId": "ff-derived",
1496
+ "targetId": "adr-rebuild",
1497
+ "relationType": "implements"
1498
+ },
1499
+ {
1500
+ "id": "ff-drill-auto--implements--adr-sync",
1501
+ "sourceId": "ff-drill-auto",
1502
+ "targetId": "adr-sync",
1503
+ "relationType": "implements"
1504
+ },
1505
+ {
1506
+ "id": "ff-drill-auto--implements--adr-pitr",
1507
+ "sourceId": "ff-drill-auto",
1508
+ "targetId": "adr-pitr",
1509
+ "relationType": "implements"
1510
+ },
1511
+ {
1512
+ "id": "ff-drill-auto--implements--adr-snapshot",
1513
+ "sourceId": "ff-drill-auto",
1514
+ "targetId": "adr-snapshot",
1515
+ "relationType": "implements"
1516
+ },
1517
+ {
1518
+ "id": "ff-drill-auto--implements--adr-rebuild",
1519
+ "sourceId": "ff-drill-auto",
1520
+ "targetId": "adr-rebuild",
1521
+ "relationType": "implements"
1522
+ },
1523
+ {
1524
+ "id": "ff-drill-auto--implements--adr-drill-auto",
1525
+ "sourceId": "ff-drill-auto",
1526
+ "targetId": "adr-drill-auto",
1527
+ "relationType": "implements"
1528
+ },
1529
+ {
1530
+ "id": "ff-drill-manual--implements--adr-sync",
1531
+ "sourceId": "ff-drill-manual",
1532
+ "targetId": "adr-sync",
1533
+ "relationType": "implements"
1534
+ },
1535
+ {
1536
+ "id": "ff-drill-manual--implements--adr-pitr",
1537
+ "sourceId": "ff-drill-manual",
1538
+ "targetId": "adr-pitr",
1539
+ "relationType": "implements"
1540
+ },
1541
+ {
1542
+ "id": "ff-drill-manual--implements--adr-snapshot",
1543
+ "sourceId": "ff-drill-manual",
1544
+ "targetId": "adr-snapshot",
1545
+ "relationType": "implements"
1546
+ },
1547
+ {
1548
+ "id": "ff-drill-manual--implements--adr-rebuild",
1549
+ "sourceId": "ff-drill-manual",
1550
+ "targetId": "adr-rebuild",
1551
+ "relationType": "implements"
1552
+ },
1553
+ {
1554
+ "id": "ff-drill-manual--implements--adr-drill-manual",
1555
+ "sourceId": "ff-drill-manual",
1556
+ "targetId": "adr-drill-manual",
1557
+ "relationType": "implements"
1558
+ }
1559
+ ]
1560
+ }