@radicaltools/mcp 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +52 -26
  2. package/dist/chunk-Z7THA3L5.js +3200 -0
  3. package/dist/elkLayout-TAUBPPVN.js +8 -0
  4. package/dist/hub-catalogue/concern/concern-api-evolution.radical +935 -0
  5. package/dist/hub-catalogue/concern/concern-architecture-style.radical +1112 -0
  6. package/dist/hub-catalogue/concern/concern-authentication.radical +685 -0
  7. package/dist/hub-catalogue/concern/concern-authorization.radical +1464 -0
  8. package/dist/hub-catalogue/concern/concern-availability.radical +804 -0
  9. package/dist/hub-catalogue/concern/concern-backend-stack.radical +1118 -0
  10. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1304 -0
  11. package/dist/hub-catalogue/concern/concern-capacity.radical +802 -0
  12. package/dist/hub-catalogue/concern/concern-communication-style.radical +1202 -0
  13. package/dist/hub-catalogue/concern/concern-data-consistency.radical +1081 -0
  14. package/dist/hub-catalogue/concern/concern-data-store.radical +960 -0
  15. package/dist/hub-catalogue/concern/concern-decomposition.radical +1143 -0
  16. package/dist/hub-catalogue/concern/concern-deployment.radical +952 -0
  17. package/dist/hub-catalogue/concern/concern-encryption.radical +1055 -0
  18. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1340 -0
  19. package/dist/hub-catalogue/concern/concern-infrastructure.radical +1151 -0
  20. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1079 -0
  21. package/dist/hub-catalogue/concern/concern-messaging.radical +940 -0
  22. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +864 -0
  23. package/dist/hub-catalogue/concern/concern-observability.radical +1048 -0
  24. package/dist/hub-catalogue/concern/concern-personal-data.radical +1434 -0
  25. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1153 -0
  26. package/dist/hub-catalogue/concern/concern-secrets.radical +1026 -0
  27. package/dist/hub-catalogue/concern/concern-supply-chain.radical +1312 -0
  28. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1306 -0
  29. package/dist/hub-catalogue/concern/concern-test-strategy.radical +1193 -0
  30. package/dist/index.js +22690 -6064
  31. package/package.json +1 -1
  32. package/dist/chunk-KI4NVSTU.js +0 -1763
  33. package/dist/elkLayout-WC6AXWOG.js +0 -185
  34. package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
  35. package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
  36. package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
  37. package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
  38. package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
  39. package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
  40. package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
  41. package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
  42. package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
  43. package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
  44. package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
  45. package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
  46. package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
  47. package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
  48. package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
  49. package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
  50. package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
  51. package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
  52. package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
  53. package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
  54. package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
  55. package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
  56. package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
  57. package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
  58. package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
  59. package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
  60. package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
  61. package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
  62. package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
  63. package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
  64. package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
  65. package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
  66. package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
  67. package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
  68. package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
  69. package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
  70. package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
  71. package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
  72. package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
  73. package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
  74. package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
  75. package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
  76. package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
  77. package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
  78. package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
  79. package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
  80. package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
  81. package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
  82. package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
  83. package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
  84. package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
  85. package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
  86. package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
  87. package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
  88. package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
  89. package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
  90. package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
  91. package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
  92. package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
  93. package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
  94. package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
  95. package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
  96. package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
  97. package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
  98. package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
  99. package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
  100. package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
  101. package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
  102. package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
  103. package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
  104. package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
  105. package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
  106. package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
  107. package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
  108. package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
  109. package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
  110. package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
  111. package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
  112. package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
  113. package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
  114. package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
  115. package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
  116. package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
  117. package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
  118. package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
  119. package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
  120. package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
  121. package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
  122. package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
  123. package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
  124. package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
  125. package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
  126. package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
  127. package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
  128. package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
  129. package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
  130. package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
  131. package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
  132. package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
  133. package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
  134. package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
  135. package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
  136. package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
  137. package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
  138. package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
  139. package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
  140. package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
  141. package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
  142. package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
  143. package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
  144. package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
  145. package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
  146. package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
  147. package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
  148. package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
  149. package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
  150. package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
  151. package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
  152. package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
  153. package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
  154. package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
  155. package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
  156. package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
  157. package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
  158. package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
  159. package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
  160. package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
  161. package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
@@ -0,0 +1,1079 @@
1
+ {
2
+ "hub": {
3
+ "id": "concern-integration-resilience",
4
+ "category": "concern",
5
+ "name": "Integration resilience",
6
+ "description": "Calls to systems outside your control: how long to wait, when and how to try again, how not to do anything twice, when to stop calling, and what the user gets while the other side is down.",
7
+ "tags": [
8
+ "reliability",
9
+ "integration",
10
+ "timeouts",
11
+ "retries",
12
+ "backoff",
13
+ "idempotency",
14
+ "circuit-breaker",
15
+ "resilience4j",
16
+ "polly"
17
+ ],
18
+ "requiredMetamodel": "c4-ddd-governance-builtin",
19
+ "concern": {
20
+ "id": "integration-resilience",
21
+ "trigger": "LIST RELATIONS WHERE source.external != true AND target.external = true AND (source.type = \"system\" OR source.type = \"container\" OR source.type = \"webapp\" OR source.type = \"component\")",
22
+ "applyTo": "source",
23
+ "why": "these elements call systems outside your control, so what happens when those are slow, down or answer twice has to be decided.",
24
+ "group": "integration"
25
+ },
26
+ "sources": [
27
+ {
28
+ "title": "AWS Builders' Library, Timeouts, retries, and backoff with jitter",
29
+ "url": "https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/"
30
+ },
31
+ {
32
+ "title": "AWS Builders' Library, Making retries safe with idempotent APIs",
33
+ "url": "https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/"
34
+ },
35
+ {
36
+ "title": "RFC 9110, HTTP Semantics (9.2 safe and idempotent methods, 10.2.3 Retry-After)",
37
+ "url": "https://www.rfc-editor.org/rfc/rfc9110"
38
+ },
39
+ {
40
+ "title": "microservices.io, Circuit Breaker",
41
+ "url": "https://microservices.io/patterns/reliability/circuit-breaker.html"
42
+ },
43
+ {
44
+ "title": "IETF draft, The Idempotency-Key HTTP Header Field",
45
+ "url": "https://datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header/"
46
+ },
47
+ {
48
+ "title": "Azure Architecture Center, Circuit Breaker pattern",
49
+ "url": "https://learn.microsoft.com/en-us/azure/architecture/patterns/circuit-breaker"
50
+ }
51
+ ],
52
+ "templateParams": [
53
+ {
54
+ "key": "FAILURE",
55
+ "title": "When it is down",
56
+ "label": "What happens to the user's action while the outside system is down?",
57
+ "hint": "Every outside system is down sometimes. This also decides whether the call is made while the user waits (fail, degrade) or later from a queue (defer).",
58
+ "defaultValue": "fail",
59
+ "options": [
60
+ {
61
+ "value": "fail",
62
+ "label": "it fails fast and clearly",
63
+ "description": "The call is made while the user waits; when the system is down the action is refused at once as temporary, with nothing half done, and the user tries again later. Pick it when the action is worthless without the answer (a payment authorisation, a live price) and a later retry by the user is acceptable."
64
+ },
65
+ {
66
+ "value": "degrade",
67
+ "label": "it goes on with less",
68
+ "description": "The call is made while the user waits; when the system is down the answer comes from a recent cache or a default, marked incomplete. Pick it for reads whose outside part is nice to have or changes slowly: recommendations, shipping estimates, exchange rates, an address check."
69
+ },
70
+ {
71
+ "value": "defer",
72
+ "label": "it is accepted and completed later",
73
+ "description": "The action is stored and the call is made from a queue, so the user does not wait for the outside system; it completes once the system is back and the user is told. Pick it for actions that must not be lost but need not finish now: sending to a partner, booking, e-mail, invoicing."
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "key": "PROTECTION",
79
+ "title": "Where",
80
+ "label": "Where do timeouts, retries and circuit breakers live?",
81
+ "hint": "In the code they can see the call (is it safe to repeat? what is the fallback?); in the mesh they are the same for every service and language.",
82
+ "defaultValue": "library",
83
+ "options": [
84
+ {
85
+ "value": "library",
86
+ "label": "a resilience library in the code",
87
+ "description": "One client per outside system wraps its calls in the library's pipeline: Resilience4j (JVM), Polly or Microsoft.Extensions.Http.Resilience (.NET), cockatiel (Node.js), failsafe-go. Pick it when calls need fallbacks or idempotency logic, or there is no service mesh."
88
+ },
89
+ {
90
+ "value": "mesh",
91
+ "label": "the service mesh, in configuration",
92
+ "description": "Timeouts, retries and outlier detection (the mesh's circuit breaker) are set per outside host in Istio or Linkerd configuration, the same for every language. Pick it when a mesh already carries all traffic on Kubernetes and many services in several languages call the same outside systems; fallbacks stay in the code."
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "key": "IDEMPOTENCY",
98
+ "title": "Repeats",
99
+ "label": "How is a repeated call kept from doing something twice?",
100
+ "hint": "A timeout does not say whether the other side did the work. What the outside system offers decides how a retry stays safe.",
101
+ "defaultValue": "keys",
102
+ "options": [
103
+ {
104
+ "value": "keys",
105
+ "label": "idempotency keys",
106
+ "description": "Every call that changes something carries an Idempotency-Key the outside system remembers, so a repeat returns the first result (Stripe, Adyen, PayPal and most payment APIs). Pick it when the outside system accepts such a key."
107
+ },
108
+ {
109
+ "value": "lookup",
110
+ "label": "a lookup before each retry",
111
+ "description": "Every change carries our own reference; after a timeout the client asks the outside system whether a change with that reference exists before trying again. Pick it when the outside system takes no idempotency key but can be queried by a reference you send."
112
+ },
113
+ {
114
+ "value": "readonly",
115
+ "label": "only reads, nothing to repeat",
116
+ "description": "The element only reads from outside systems (GET and other safe methods), so every call may be retried. Pick it when no call changes anything outside; a call that does needs this decision revisited."
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "key": "TIMEOUT_MS",
122
+ "label": "After how many milliseconds does one call give up?",
123
+ "defaultValue": "2000",
124
+ "type": "number"
125
+ },
126
+ {
127
+ "key": "RETRIES",
128
+ "label": "How many times at most is a failed call retried?",
129
+ "defaultValue": "3",
130
+ "type": "number"
131
+ },
132
+ {
133
+ "key": "BACKOFF_MS",
134
+ "label": "What is the first retry delay (milliseconds), doubled each time?",
135
+ "defaultValue": "200",
136
+ "type": "number"
137
+ },
138
+ {
139
+ "key": "BREAKER_PERCENT",
140
+ "label": "Above what percentage of failed calls does the circuit open?",
141
+ "defaultValue": "50",
142
+ "type": "number"
143
+ },
144
+ {
145
+ "key": "DEADLINE_MS",
146
+ "label": "How long at most does a waiting user wait, retries included (milliseconds)?",
147
+ "defaultValue": "5000",
148
+ "type": "number"
149
+ },
150
+ {
151
+ "key": "STALE_MINUTES",
152
+ "label": "How old may a cached answer be when shown instead (minutes)?",
153
+ "defaultValue": "60",
154
+ "type": "number"
155
+ },
156
+ {
157
+ "key": "DEFER_HOURS",
158
+ "label": "Within how many hours must a deferred action complete?",
159
+ "defaultValue": "24",
160
+ "type": "number"
161
+ }
162
+ ]
163
+ },
164
+ "nodes": [
165
+ {
166
+ "id": "need",
167
+ "type": "need",
168
+ "label": "Outages outside stay outside",
169
+ "x": 0,
170
+ "y": 0,
171
+ "kind": "brief",
172
+ "source": "Hub concern pack: Integration resilience",
173
+ "description": "The system depends on systems it does not run: payment, e-mail, maps, partners. They are slow or down at times, and their answers get lost on the way. Without decisions, one slow partner holds every thread, retries make a charge twice or pile onto a system that is already struggling, and users see errors, or wait without end, for something that could have waited or come from a cache."
174
+ },
175
+ {
176
+ "id": "req-timeout",
177
+ "type": "requirement",
178
+ "label": "Calls time out",
179
+ "x": 260,
180
+ "y": 0,
181
+ "ears_type": "ubiquitous",
182
+ "action": "give every call to an outside system a connect timeout of at most 1000 ms and a total timeout of {{TIMEOUT_MS}} ms, and make no call without them",
183
+ "rationale": "A call without a timeout turns the other side's outage into ours: threads and connections wait until nothing is left (AWS Builders' Library, Timeouts, retries and backoff with jitter)."
184
+ },
185
+ {
186
+ "id": "req-retry",
187
+ "type": "requirement",
188
+ "label": "Transient failures retried",
189
+ "x": 260,
190
+ "y": 130,
191
+ "ears_type": "unwanted-behaviour",
192
+ "unwanted_condition": "a call to an outside system times out, has its connection refused or reset, or is answered 429, 502, 503 or 504",
193
+ "action": "retry it at most {{RETRIES}} times with exponential backoff and full jitter starting at {{BACKOFF_MS}} ms, wait at least as long as a Retry-After header asks, and never retry any other 4xx answer",
194
+ "rationale": "Most failures are brief, so a retry often succeeds; jitter keeps every instance from retrying at the same moment, and a 4xx other than 408 and 429 will fail the same way again (AWS Builders' Library; RFC 9110 10.2.3)."
195
+ },
196
+ {
197
+ "id": "req-breaker",
198
+ "type": "requirement",
199
+ "label": "Failing systems left alone",
200
+ "x": 260,
201
+ "y": 260,
202
+ "ears_type": "unwanted-behaviour",
203
+ "unwanted_condition": "more than {{BREAKER_PERCENT}} % of at least 20 calls to one outside system within 30 seconds fail or time out",
204
+ "action": "stop calling it for 30 seconds (open the circuit), treat each call in that time as if the system were down, then let 3 trial calls through and resume only when they succeed",
205
+ "rationale": "Calling a system that is down wastes the caller's time and keeps the other side down; the breaker fails at once and probes for recovery (microservices.io, Circuit Breaker; Azure Architecture Center)."
206
+ },
207
+ {
208
+ "id": "req-fail",
209
+ "type": "requirement",
210
+ "label": "Outage refused cleanly",
211
+ "x": 260,
212
+ "y": 390,
213
+ "ears_type": "unwanted-behaviour",
214
+ "unwanted_condition": "an action needs an outside system that is down or whose circuit is open",
215
+ "action": "refuse the action within {{DEADLINE_MS}} ms, retries included, with an answer that says it is temporary (503 with Retry-After for an API), and leave nothing half done",
216
+ "rationale": "A clear refusal in bounded time beats a spinner and a half-done action; Retry-After tells callers when to come back (RFC 9110 15.6.4).",
217
+ "hubWhen": {
218
+ "FAILURE": [
219
+ "fail"
220
+ ]
221
+ }
222
+ },
223
+ {
224
+ "id": "req-degrade",
225
+ "type": "requirement",
226
+ "label": "Answers with less",
227
+ "x": 260,
228
+ "y": 520,
229
+ "ears_type": "unwanted-behaviour",
230
+ "unwanted_condition": "an outside system an answer uses is down or its circuit is open",
231
+ "action": "answer within {{DEADLINE_MS}} ms from data cached no more than {{STALE_MINUTES}} minutes ago, or from a default when there is none, and mark the answer as incomplete",
232
+ "rationale": "Most of the value survives without the outside part; marking it keeps a stale or default value from being taken as current.",
233
+ "hubWhen": {
234
+ "FAILURE": [
235
+ "degrade"
236
+ ]
237
+ }
238
+ },
239
+ {
240
+ "id": "req-degrade-writes",
241
+ "type": "requirement",
242
+ "label": "Changes still refused",
243
+ "x": 260,
244
+ "y": 650,
245
+ "ears_type": "unwanted-behaviour",
246
+ "unwanted_condition": "an action that changes something needs an outside system that is down",
247
+ "action": "refuse it within {{DEADLINE_MS}} ms as temporary, leaving nothing half done, rather than completing it from cached data",
248
+ "rationale": "A cache can stand in for a read, never for a change the other side has to make.",
249
+ "hubWhen": {
250
+ "FAILURE": [
251
+ "degrade"
252
+ ]
253
+ }
254
+ },
255
+ {
256
+ "id": "req-defer",
257
+ "type": "requirement",
258
+ "label": "Accepted, completed later",
259
+ "x": 260,
260
+ "y": 780,
261
+ "ears_type": "event-driven",
262
+ "trigger": "a user starts an action that needs an outside system",
263
+ "action": "store the action durably before answering, answer within {{DEADLINE_MS}} ms with a reference to follow it by (202 for an API), and make the call from a queue, telling the user when it completes",
264
+ "rationale": "The user's intent is kept whatever the outside system does; the queue absorbs its outages and its slowness.",
265
+ "hubWhen": {
266
+ "FAILURE": [
267
+ "defer"
268
+ ]
269
+ }
270
+ },
271
+ {
272
+ "id": "req-defer-expire",
273
+ "type": "requirement",
274
+ "label": "Stuck work surfaced",
275
+ "x": 260,
276
+ "y": 910,
277
+ "ears_type": "unwanted-behaviour",
278
+ "unwanted_condition": "a deferred action has not completed within {{DEFER_HOURS}} hours",
279
+ "action": "stop retrying it, move it to a dead-letter queue, tell the user it did not complete, and alert the owner of the integration",
280
+ "rationale": "Deferred work that retries for ever hides an outage and a promise broken to the user (Enterprise Integration Patterns, Dead Letter Channel).",
281
+ "hubWhen": {
282
+ "FAILURE": [
283
+ "defer"
284
+ ]
285
+ }
286
+ },
287
+ {
288
+ "id": "req-idem-key",
289
+ "type": "requirement",
290
+ "label": "Repeats carry one key",
291
+ "x": 260,
292
+ "y": 1040,
293
+ "ears_type": "ubiquitous",
294
+ "action": "send an Idempotency-Key with every call that changes something in an outside system: one key per intended change, the same on every retry of it, stored with the change for at least 24 hours",
295
+ "rationale": "A timeout does not say whether the other side acted; the key makes the retry return the first result instead of acting again (IETF Idempotency-Key header draft; AWS Builders' Library, Making retries safe).",
296
+ "hubWhen": {
297
+ "IDEMPOTENCY": [
298
+ "keys"
299
+ ]
300
+ }
301
+ },
302
+ {
303
+ "id": "req-idem-lookup",
304
+ "type": "requirement",
305
+ "label": "Look up before repeating",
306
+ "x": 260,
307
+ "y": 1170,
308
+ "ears_type": "unwanted-behaviour",
309
+ "unwanted_condition": "a call that changes something in an outside system times out or its answer is lost",
310
+ "action": "look the change up there by the reference we sent with it, and repeat the call only when no change with that reference exists",
311
+ "rationale": "Without an idempotency key, asking is the only way to know whether a lost call took effect (AWS Builders' Library, Making retries safe).",
312
+ "hubWhen": {
313
+ "IDEMPOTENCY": [
314
+ "lookup"
315
+ ]
316
+ }
317
+ },
318
+ {
319
+ "id": "req-readonly",
320
+ "type": "requirement",
321
+ "label": "Only safe calls",
322
+ "x": 260,
323
+ "y": 1300,
324
+ "ears_type": "ubiquitous",
325
+ "action": "call outside systems only with safe methods (GET, HEAD, OPTIONS, or the read-only operations of the API), so that every call may be retried",
326
+ "rationale": "Safe methods change nothing on the other side, so retries need no protection (RFC 9110 9.2.1).",
327
+ "hubWhen": {
328
+ "IDEMPOTENCY": [
329
+ "readonly"
330
+ ]
331
+ }
332
+ },
333
+ {
334
+ "id": "req-library",
335
+ "type": "requirement",
336
+ "label": "One guarded client",
337
+ "x": 260,
338
+ "y": 1430,
339
+ "ears_type": "ubiquitous",
340
+ "action": "make every call to an outside system through one client per system that applies its timeout, retries and circuit breaker, so that no other code calls it directly",
341
+ "rationale": "Rules applied call by call are forgotten on the next call; one guarded client per system makes them hold everywhere.",
342
+ "hubWhen": {
343
+ "PROTECTION": [
344
+ "library"
345
+ ]
346
+ }
347
+ },
348
+ {
349
+ "id": "req-mesh",
350
+ "type": "requirement",
351
+ "label": "Guarded by the mesh",
352
+ "x": 260,
353
+ "y": 1560,
354
+ "ears_type": "ubiquitous",
355
+ "action": "route every call to an outside system through the mesh, with a timeout, retries and outlier detection configured for its host in the repository, and allow no egress to a host without them",
356
+ "rationale": "In the mesh, the rules are the same for every language and visible in one place; a host without them is an unguarded call.",
357
+ "hubWhen": {
358
+ "PROTECTION": [
359
+ "mesh"
360
+ ]
361
+ }
362
+ },
363
+ {
364
+ "id": "sc-timeout",
365
+ "type": "scenario",
366
+ "label": "Slow partner cut off",
367
+ "x": 520,
368
+ "y": 0,
369
+ "given": "an outside system that answers after a minute",
370
+ "when": "it is called",
371
+ "then": "the call gives up after {{TIMEOUT_MS}} ms and the thread is free again"
372
+ },
373
+ {
374
+ "id": "sc-retry",
375
+ "type": "scenario",
376
+ "label": "Brief failure absorbed",
377
+ "x": 520,
378
+ "y": 130,
379
+ "given": "an outside system that answers 503 once and then 200",
380
+ "when": "it is called, and then a system that always answers 503, and one that answers 400",
381
+ "then": "the first call succeeds on its first retry; the second gives up after {{RETRIES}} retries with unequal delays; the third is not retried"
382
+ },
383
+ {
384
+ "id": "sc-breaker",
385
+ "type": "scenario",
386
+ "label": "Calls paused",
387
+ "x": 520,
388
+ "y": 260,
389
+ "given": "an outside system that fails every call",
390
+ "when": "20 calls have failed within 30 seconds and more are made",
391
+ "then": "the further calls fail at once without reaching it, and after 30 seconds 3 trial calls do"
392
+ },
393
+ {
394
+ "id": "sc-fail",
395
+ "type": "scenario",
396
+ "label": "Clean refusal",
397
+ "x": 520,
398
+ "y": 390,
399
+ "given": "the outside system down",
400
+ "when": "the user starts an action that needs it",
401
+ "then": "within {{DEADLINE_MS}} ms the action is refused as temporary and nothing has changed",
402
+ "hubWhen": {
403
+ "FAILURE": [
404
+ "fail"
405
+ ]
406
+ }
407
+ },
408
+ {
409
+ "id": "sc-degrade",
410
+ "type": "scenario",
411
+ "label": "Partial answer",
412
+ "x": 520,
413
+ "y": 520,
414
+ "given": "the outside system down and its answer cached 10 minutes ago",
415
+ "when": "the user opens a page that uses it",
416
+ "then": "the page shows within {{DEADLINE_MS}} ms with the cached part marked as not current",
417
+ "hubWhen": {
418
+ "FAILURE": [
419
+ "degrade"
420
+ ]
421
+ }
422
+ },
423
+ {
424
+ "id": "sc-degrade-writes",
425
+ "type": "scenario",
426
+ "label": "No change from cache",
427
+ "x": 520,
428
+ "y": 650,
429
+ "given": "the outside system down",
430
+ "when": "the user starts an action that changes something there",
431
+ "then": "it is refused as temporary and nothing has changed on either side",
432
+ "hubWhen": {
433
+ "FAILURE": [
434
+ "degrade"
435
+ ]
436
+ }
437
+ },
438
+ {
439
+ "id": "sc-defer",
440
+ "type": "scenario",
441
+ "label": "Done once it is back",
442
+ "x": 520,
443
+ "y": 780,
444
+ "given": "the outside system down",
445
+ "when": "the user starts an action that needs it, and the system comes back an hour later",
446
+ "then": "the action is accepted with a reference at once, completes after the system is back, and the user is told",
447
+ "hubWhen": {
448
+ "FAILURE": [
449
+ "defer"
450
+ ]
451
+ }
452
+ },
453
+ {
454
+ "id": "sc-defer-expire",
455
+ "type": "scenario",
456
+ "label": "Gives up visibly",
457
+ "x": 520,
458
+ "y": 910,
459
+ "given": "an outside system down for longer than {{DEFER_HOURS}} hours",
460
+ "when": "a deferred action has waited {{DEFER_HOURS}} hours",
461
+ "then": "it is in the dead-letter queue, the user is told, and the owner is alerted",
462
+ "hubWhen": {
463
+ "FAILURE": [
464
+ "defer"
465
+ ]
466
+ }
467
+ },
468
+ {
469
+ "id": "sc-idem-key",
470
+ "type": "scenario",
471
+ "label": "Charge made once",
472
+ "x": 520,
473
+ "y": 1040,
474
+ "given": "a payment call whose answer is lost",
475
+ "when": "it is retried",
476
+ "then": "the retry carries the same key, and the customer is charged once",
477
+ "hubWhen": {
478
+ "IDEMPOTENCY": [
479
+ "keys"
480
+ ]
481
+ }
482
+ },
483
+ {
484
+ "id": "sc-idem-lookup",
485
+ "type": "scenario",
486
+ "label": "Lost answer not repeated",
487
+ "x": 520,
488
+ "y": 1170,
489
+ "given": "a booking call that took effect but whose answer was lost",
490
+ "when": "the client recovers from the timeout",
491
+ "then": "it finds the booking by our reference and does not book again",
492
+ "hubWhen": {
493
+ "IDEMPOTENCY": [
494
+ "lookup"
495
+ ]
496
+ }
497
+ },
498
+ {
499
+ "id": "sc-readonly",
500
+ "type": "scenario",
501
+ "label": "Reads only",
502
+ "x": 520,
503
+ "y": 1300,
504
+ "given": "every client of an outside system in the code",
505
+ "when": "the calls they make are listed",
506
+ "then": "each uses a safe method",
507
+ "hubWhen": {
508
+ "IDEMPOTENCY": [
509
+ "readonly"
510
+ ]
511
+ }
512
+ },
513
+ {
514
+ "id": "sc-library",
515
+ "type": "scenario",
516
+ "label": "Direct call refused",
517
+ "x": 520,
518
+ "y": 1430,
519
+ "given": "the code base",
520
+ "when": "a module outside the integration clients opens an HTTP connection to an outside host",
521
+ "then": "the architecture check fails the build",
522
+ "hubWhen": {
523
+ "PROTECTION": [
524
+ "library"
525
+ ]
526
+ }
527
+ },
528
+ {
529
+ "id": "sc-mesh",
530
+ "type": "scenario",
531
+ "label": "Unguarded host refused",
532
+ "x": 520,
533
+ "y": 1560,
534
+ "given": "the mesh configuration in the repository",
535
+ "when": "an outside host is added without a timeout, retries or outlier detection",
536
+ "then": "the configuration check fails the pull request",
537
+ "hubWhen": {
538
+ "PROTECTION": [
539
+ "mesh"
540
+ ]
541
+ }
542
+ },
543
+ {
544
+ "id": "adr-fail",
545
+ "type": "adr",
546
+ "label": "Outside outages fail fast",
547
+ "x": 780,
548
+ "y": 0,
549
+ "concern": "integration-resilience",
550
+ "status": "accepted",
551
+ "date": "",
552
+ "context": "This element calls systems it does not run: payment, e-mail, maps, partners. The forces: they are slow or down at times, and a call without a timeout holds a thread or a connection until everything behind it stops; most failures are brief, so a retry often succeeds, but retries sent at once by every instance turn a hiccup into an overload (the thundering herd); a timeout does not say whether the other side did the work, so retrying a call that changes something can do it twice; calling a system that is down wastes time and keeps it down; and the user has to be told something true and useful while it is down.",
553
+ "decision": "Calls to outside systems are made while the user waits. Each gives up after {{TIMEOUT_MS}} ms; transient failures are retried at most {{RETRIES}} times with exponential backoff and full jitter from {{BACKOFF_MS}} ms, within a deadline of {{DEADLINE_MS}} ms for the whole action; a circuit breaker per outside system opens above {{BREAKER_PERCENT}} % failures. Repeated calls: {{IDEMPOTENCY}}. While a system is down or its circuit open, an action that needs it is refused at once as temporary (503 with Retry-After), with nothing half done. Choose it over degrading when the action is worthless without the answer.",
554
+ "consequences": "• Outages are short and visible to the user; nothing is left half done.\n• The user has to come back and try again; some will not.\n• The deadline bounds how long anyone waits, so retries are few by design.",
555
+ "alternatives": "1. Go on with less from a cache or defaults: more available for reads, more code, stale data.\n2. Accept and complete later from a queue: nothing refused, but the user waits for the result.\n3. No timeouts or breakers: simplest, until one slow partner stops everything.",
556
+ "hubWhen": {
557
+ "FAILURE": [
558
+ "fail"
559
+ ]
560
+ }
561
+ },
562
+ {
563
+ "id": "adr-degrade",
564
+ "type": "adr",
565
+ "label": "Outside outages degrade gracefully",
566
+ "x": 780,
567
+ "y": 130,
568
+ "concern": "integration-resilience",
569
+ "status": "accepted",
570
+ "date": "",
571
+ "context": "This element calls systems it does not run: payment, e-mail, maps, partners. The forces: they are slow or down at times, and a call without a timeout holds a thread or a connection until everything behind it stops; most failures are brief, so a retry often succeeds, but retries sent at once by every instance turn a hiccup into an overload (the thundering herd); a timeout does not say whether the other side did the work, so retrying a call that changes something can do it twice; calling a system that is down wastes time and keeps it down; and the user has to be told something true and useful while it is down.",
572
+ "decision": "Calls to outside systems are made while the user waits. Each gives up after {{TIMEOUT_MS}} ms; transient failures are retried at most {{RETRIES}} times with exponential backoff and full jitter from {{BACKOFF_MS}} ms, within a deadline of {{DEADLINE_MS}} ms; a circuit breaker per outside system opens above {{BREAKER_PERCENT}} % failures. Repeated calls: {{IDEMPOTENCY}}. Every read has a fallback: the last good answer, cached for up to {{STALE_MINUTES}} minutes (Redis, Caffeine, or the HTTP cache with stale-if-error), or a default; the answer is marked incomplete. Changes that need the outside system are refused as temporary. Choose it for reads whose outside part is nice to have or changes slowly.",
573
+ "consequences": "• Users keep working through outages, with a visible note that part of the answer is not current.\n• Every read call needs a fallback, written and tested; a cache to size and expire.\n• Stale data must be safe to show for {{STALE_MINUTES}} minutes; prices and stock rarely are.",
574
+ "alternatives": "1. Fail fast: simpler, less available.\n2. Accept and complete later: for actions rather than reads.\n3. Prefetch everything into our own store: always available, but a copy to keep in sync.",
575
+ "hubWhen": {
576
+ "FAILURE": [
577
+ "degrade"
578
+ ]
579
+ }
580
+ },
581
+ {
582
+ "id": "adr-defer",
583
+ "type": "adr",
584
+ "label": "Outside work completed later",
585
+ "x": 780,
586
+ "y": 260,
587
+ "concern": "integration-resilience",
588
+ "status": "accepted",
589
+ "date": "",
590
+ "context": "This element calls systems it does not run: payment, e-mail, maps, partners. The forces: they are slow or down at times, and a call without a timeout holds a thread or a connection until everything behind it stops; most failures are brief, so a retry often succeeds, but retries sent at once by every instance turn a hiccup into an overload (the thundering herd); a timeout does not say whether the other side did the work, so retrying a call that changes something can do it twice; calling a system that is down wastes time and keeps it down; and the user has to be told something true and useful while it is down.",
591
+ "decision": "Actions that need an outside system are stored durably (an outbox or a job table in the same transaction as the action) and answered at once with a reference; a worker makes the call from a queue (the broker in use, or a job runner such as Hangfire, Sidekiq, BullMQ or Temporal). Each call gives up after {{TIMEOUT_MS}} ms; transient failures are retried at once at most {{RETRIES}} times with exponential backoff and full jitter from {{BACKOFF_MS}} ms, then again with backoff capped at 15 minutes until {{DEFER_HOURS}} hours have passed, when the action goes to a dead-letter queue, the user is told and the owner alerted. A circuit breaker per outside system opens above {{BREAKER_PERCENT}} % failures and pauses the worker. Repeated calls: {{IDEMPOTENCY}}.",
592
+ "consequences": "• No action is lost to an outage, and the user never waits on the outside system.\n• The user learns the outcome later: the interface must show work in progress and notify.\n• A queue and workers to run and watch, with a dead-letter path and an owner for it.",
593
+ "alternatives": "1. Fail fast while the user waits: simpler, but the action is lost when the system is down.\n2. Go on with less: for reads, not for actions that must happen.\n3. A workflow engine (Temporal, AWS Step Functions) for multi-step integrations: durable retries and timers built in, one more platform.",
594
+ "hubWhen": {
595
+ "FAILURE": [
596
+ "defer"
597
+ ]
598
+ }
599
+ },
600
+ {
601
+ "id": "adr-library",
602
+ "type": "adr",
603
+ "label": "Resilience in a library per client",
604
+ "x": 780,
605
+ "y": 390,
606
+ "concern": "integration-resilience",
607
+ "status": "accepted",
608
+ "date": "",
609
+ "context": "This element calls systems it does not run: payment, e-mail, maps, partners. The forces: they are slow or down at times, and a call without a timeout holds a thread or a connection until everything behind it stops; most failures are brief, so a retry often succeeds, but retries sent at once by every instance turn a hiccup into an overload (the thundering herd); a timeout does not say whether the other side did the work, so retrying a call that changes something can do it twice; calling a system that is down wastes time and keeps it down; and the user has to be told something true and useful while it is down.",
610
+ "decision": "Each outside system has one client in the code, the only code that calls it, and every call goes through the resilience pipeline of the stack's library: Resilience4j (TimeLimiter, Retry with exponential random backoff, CircuitBreaker, Bulkhead) on the JVM, Microsoft.Extensions.Http.Resilience (Polly v8) in .NET, cockatiel in Node.js, failsafe-go in Go. Settings come from configuration per outside system: timeout {{TIMEOUT_MS}} ms, at most {{RETRIES}} retries from {{BACKOFF_MS}} ms, circuit open above {{BREAKER_PERCENT}} %. The client knows which calls are safe to repeat and holds the fallback. The library's metrics (calls, retries, breaker state) are exported. Choose a library when calls need fallbacks or idempotency logic, or there is no mesh.",
611
+ "consequences": "• The rules sit next to the call, which knows whether it may be repeated and what to do instead.\n• One library per language: each stack configures and tests it on its own.\n• A client per outside system is code to keep; an architecture rule keeps others from bypassing it.",
612
+ "alternatives": "1. The service mesh: the same rules for every language in configuration, but blind to idempotency and fallbacks.\n2. An API gateway for outgoing calls: one place for all, one more hop and owner.\n3. Hand-written retry loops: no dependency, and every one slightly different.",
613
+ "hubWhen": {
614
+ "PROTECTION": [
615
+ "library"
616
+ ]
617
+ }
618
+ },
619
+ {
620
+ "id": "adr-mesh",
621
+ "type": "adr",
622
+ "label": "Resilience in the service mesh",
623
+ "x": 780,
624
+ "y": 520,
625
+ "concern": "integration-resilience",
626
+ "status": "accepted",
627
+ "date": "",
628
+ "context": "This element calls systems it does not run: payment, e-mail, maps, partners. The forces: they are slow or down at times, and a call without a timeout holds a thread or a connection until everything behind it stops; most failures are brief, so a retry often succeeds, but retries sent at once by every instance turn a hiccup into an overload (the thundering herd); a timeout does not say whether the other side did the work, so retrying a call that changes something can do it twice; calling a system that is down wastes time and keeps it down; and the user has to be told something true and useful while it is down.",
629
+ "decision": "Every outside host is declared to the mesh (Istio ServiceEntry, or Linkerd with an egress policy) and gets, in configuration kept in the repository: a timeout of {{TIMEOUT_MS}} ms, at most {{RETRIES}} retries on connect-failure, refused-stream, reset and 503 (and on other failures only for safe methods), and outlier detection that ejects the host for 30 seconds after consecutive 5xx (the mesh's circuit breaker). Egress to hosts not declared is blocked (outboundTrafficPolicy REGISTRY_ONLY). The code keeps what the mesh cannot know: idempotency ({{IDEMPOTENCY}}) and fallbacks. Choose the mesh when it already carries all traffic and many services in several languages call the same outside systems.",
630
+ "consequences": "• The same rules for every service and language, changed without a release.\n• The mesh retries without knowing whether a call is safe to repeat: retries on other failures stay limited to safe methods, and the code still sends idempotency protection.\n• Jitter and retry budgets are the mesh's (Envoy), not tuned per call.\n• Debugging spans the application and the sidecar.",
631
+ "alternatives": "1. A resilience library in each client: aware of idempotency and fallbacks, one per language.\n2. An egress gateway only: one place to watch, but a shared bottleneck.",
632
+ "hubWhen": {
633
+ "PROTECTION": [
634
+ "mesh"
635
+ ]
636
+ }
637
+ },
638
+ {
639
+ "id": "ff-timeout",
640
+ "type": "fitness-fn",
641
+ "label": "Slow calls cut off",
642
+ "x": 1040,
643
+ "y": 0,
644
+ "category": "operational",
645
+ "threshold": "With 10 s of latency injected on each outside system, every call gives up within {{TIMEOUT_MS}} ms + 10 % per try, and no user action waits longer than {{DEADLINE_MS}} ms",
646
+ "description": "An integration test puts a Toxiproxy proxy in front of each outside system (or its sandbox stub), adds a latency toxic far above the timeout, and measures how long each call and each user action takes.\n\nTool: Toxiproxy (Testcontainers module) with Vitest\n\n```ts\nimport { ToxiProxyContainer } from '@testcontainers/toxiproxy'\n\nit('gives up on a slow partner in time', async () => {\n const toxiproxy = await new ToxiProxyContainer('ghcr.io/shopify/toxiproxy:2.9.0').start()\n const proxy = await toxiproxy.createProxy({ name: 'partner', upstream: 'partner-stub:8080' })\n await proxy.instance.addToxic({ type: 'latency', name: 'slow', stream: 'downstream', toxicity: 1, attributes: { latency: 10_000 } })\n const client = partnerClient('http://' + proxy.host + ':' + proxy.port) // the production client and settings\n\n const started = Date.now()\n await expect(client.getQuote(SAMPLE)).rejects.toThrow()\n expect(Date.now() - started).toBeLessThan({{DEADLINE_MS}})\n})\n```"
647
+ },
648
+ {
649
+ "id": "ff-retry",
650
+ "type": "fitness-fn",
651
+ "label": "Retries bounded and jittered",
652
+ "x": 1040,
653
+ "y": 130,
654
+ "category": "structural",
655
+ "threshold": "Against a stub that always answers 503: exactly {{RETRIES}} + 1 attempts, delays not all equal; against 400: exactly 1 attempt",
656
+ "description": "A test points the production client at a WireMock stub that always fails, counts the requests it received and their spacing, and repeats with an answer that must not be retried.\n\nTool: WireMock (JUnit 5 extension; WireMock.Net or the WireMock container for other stacks)\n\n```java\n@WireMockTest\nclass PartnerRetryTest {\n static final int RETRIES = {{RETRIES}};\n\n @Test\n void retriesTransientFailuresAFewTimesWithJitter(WireMockRuntimeInfo wm) {\n stubFor(get(urlPathEqualTo(\"/quotes\")).willReturn(serviceUnavailable()));\n var client = PartnerClient.create(wm.getHttpBaseUrl()); // production settings\n assertThrows(PartnerUnavailableException.class, () -> client.quote(SAMPLE));\n var requests = findAll(getRequestedFor(urlPathEqualTo(\"/quotes\")));\n assertEquals(RETRIES + 1, requests.size());\n var gaps = IntStream.range(1, requests.size())\n .mapToObj(i -> requests.get(i).getLoggedDate().getTime() - requests.get(i - 1).getLoggedDate().getTime())\n .distinct().count();\n assertTrue(gaps > 1, \"delays are jittered\");\n }\n\n @Test\n void doesNotRetryAClientError(WireMockRuntimeInfo wm) {\n stubFor(get(urlPathEqualTo(\"/quotes\")).willReturn(badRequest()));\n assertThrows(PartnerRejectedException.class, () -> PartnerClient.create(wm.getHttpBaseUrl()).quote(SAMPLE));\n verify(exactly(1), getRequestedFor(urlPathEqualTo(\"/quotes\")));\n }\n}\n```"
657
+ },
658
+ {
659
+ "id": "ff-breaker",
660
+ "type": "fitness-fn",
661
+ "label": "Circuit opens and recovers",
662
+ "x": 1040,
663
+ "y": 260,
664
+ "category": "operational",
665
+ "threshold": "After 20 failing calls within 30 s, 0 of the next 50 calls reach the outside system; after 30 s at most 3 trial calls do, and calls resume when they succeed",
666
+ "description": "A black-box test against a running instance (with its library or its sidecar) points the outside host at a WireMock stub that fails, drives calls through the instance, and counts what reaches the stub before, during and after the open period.\n\nTool: WireMock container with Testcontainers (JUnit 5)\n\n```java\n@Test\nvoid circuitOpensThenProbes() throws Exception {\n wiremock.stubFor(get(anyUrl()).willReturn(serviceUnavailable()));\n for (int i = 0; i < 20; i++) app.get(\"/quote\"); // calls through the instance under test\n wiremock.resetRequests();\n for (int i = 0; i < 50; i++) app.get(\"/quote\");\n assertEquals(0, wiremock.findAll(getRequestedFor(anyUrl())).size(), \"circuit is open\");\n\n wiremock.stubFor(get(anyUrl()).willReturn(ok(\"{}\")));\n Thread.sleep(30_000);\n app.get(\"/quote\");\n assertEquals(200, app.get(\"/quote\").statusCode(), \"circuit closed after successful trials\");\n}\n```"
667
+ },
668
+ {
669
+ "id": "ff-fail",
670
+ "type": "fitness-fn",
671
+ "label": "Outage drill: refused cleanly",
672
+ "x": 1040,
673
+ "y": 390,
674
+ "category": "operational",
675
+ "threshold": "With each outside system down, every user action that needs it answers 503 with Retry-After within {{DEADLINE_MS}} ms, and 0 records are changed",
676
+ "description": "An integration test cuts each outside system off with Toxiproxy, runs the actions that need it, and checks the answer, its time and that the database is unchanged.\n\nTool: Toxiproxy (Testcontainers module) with Vitest and supertest\n\n```ts\nit('refuses an action cleanly while the partner is down', async () => {\n await partnerProxy.setEnabled(false) // Toxiproxy: the partner is unreachable\n const before = await snapshot(db)\n const started = Date.now()\n const res = await request(app).post('/orders').send(SAMPLE_ORDER)\n expect(res.status).toBe(503)\n expect(res.headers['retry-after']).toBeDefined()\n expect(Date.now() - started).toBeLessThan({{DEADLINE_MS}})\n expect(await snapshot(db)).toEqual(before)\n})\n```",
677
+ "hubWhen": {
678
+ "FAILURE": [
679
+ "fail"
680
+ ]
681
+ }
682
+ },
683
+ {
684
+ "id": "ff-degrade",
685
+ "type": "fitness-fn",
686
+ "label": "Outage drill: answers with less",
687
+ "x": 1040,
688
+ "y": 520,
689
+ "category": "operational",
690
+ "threshold": "With each outside system down, every read that uses it answers within {{DEADLINE_MS}} ms from data at most {{STALE_MINUTES}} minutes old or a default, marked incomplete; 0 errors",
691
+ "description": "An integration test warms the cache, cuts the outside system off with Toxiproxy, and checks that reads still answer, in time and marked incomplete, while changes are refused.\n\nTool: Toxiproxy (Testcontainers module) with Vitest and supertest\n\n```ts\nit('answers from the cache, marked, while the partner is down', async () => {\n await request(app).get('/products/42').expect(200) // warms the cache\n await partnerProxy.setEnabled(false)\n const started = Date.now()\n const res = await request(app).get('/products/42').expect(200)\n expect(Date.now() - started).toBeLessThan({{DEADLINE_MS}})\n expect(res.body.incomplete).toEqual(['shippingEstimate'])\n expect(res.body.shippingEstimate.asOfMinutesAgo).toBeLessThanOrEqual({{STALE_MINUTES}})\n await request(app).post('/products/42/reserve').expect(503)\n})\n```",
692
+ "hubWhen": {
693
+ "FAILURE": [
694
+ "degrade"
695
+ ]
696
+ }
697
+ },
698
+ {
699
+ "id": "ff-defer",
700
+ "type": "fitness-fn",
701
+ "label": "Outage drill: completed later",
702
+ "x": 1040,
703
+ "y": 650,
704
+ "category": "operational",
705
+ "threshold": "With the outside system down, every action is accepted with 202 within {{DEADLINE_MS}} ms and completes after it is back; 0 actions lost; an action older than {{DEFER_HOURS}} h is in the dead-letter queue",
706
+ "description": "An integration test cuts the outside system off, starts actions, restarts the worker, brings the system back and waits for completion; a second test advances the clock past the deadline and expects the dead letter and the notices.\n\nTool: Toxiproxy (Testcontainers module) with Vitest (fake timers for the deadline)\n\n```ts\nit('keeps the action and completes it once the partner is back', async () => {\n await partnerProxy.setEnabled(false)\n const res = await request(app).post('/bookings').send(SAMPLE_BOOKING).expect(202)\n await restartWorker()\n await partnerProxy.setEnabled(true)\n await waitFor(async () => (await request(app).get(res.body.statusUrl)).body.state === 'completed')\n expect(await partnerStub.bookings()).toHaveLength(1)\n})\n```",
707
+ "hubWhen": {
708
+ "FAILURE": [
709
+ "defer"
710
+ ]
711
+ }
712
+ },
713
+ {
714
+ "id": "ff-idem-key",
715
+ "type": "fitness-fn",
716
+ "label": "Retries reuse the key",
717
+ "x": 1040,
718
+ "y": 780,
719
+ "category": "structural",
720
+ "threshold": "Every retried call that changes something carries the same Idempotency-Key as its first attempt; 0 changing calls without a key",
721
+ "description": "A test makes the stub time out on the first attempt of each changing call and checks that all attempts carry one and the same Idempotency-Key.\n\nTool: WireMock (JUnit 5 extension)\n\n```java\n@Test\nvoid retriesCarryTheSameKey(WireMockRuntimeInfo wm) {\n stubFor(post(\"/payments\").inScenario(\"lost\").whenScenarioStateIs(STARTED)\n .willReturn(ok().withFixedDelay({{TIMEOUT_MS}} * 2)).willSetStateTo(\"answered\"));\n stubFor(post(\"/payments\").inScenario(\"lost\").whenScenarioStateIs(\"answered\").willReturn(ok(\"{}\")));\n PartnerClient.create(wm.getHttpBaseUrl()).pay(SAMPLE_PAYMENT);\n var keys = findAll(postRequestedFor(urlEqualTo(\"/payments\"))).stream()\n .map(r -> r.getHeader(\"Idempotency-Key\")).distinct().toList();\n assertEquals(1, keys.size());\n assertNotNull(keys.get(0));\n}\n```",
722
+ "hubWhen": {
723
+ "IDEMPOTENCY": [
724
+ "keys"
725
+ ]
726
+ }
727
+ },
728
+ {
729
+ "id": "ff-idem-lookup",
730
+ "type": "fitness-fn",
731
+ "label": "Lookup before repeat",
732
+ "x": 1040,
733
+ "y": 910,
734
+ "category": "structural",
735
+ "threshold": "After a lost answer to a changing call, the client looks the change up by its reference and repeats it 0 times when it exists",
736
+ "description": "A test makes the stub take the change but time out, and checks that the client asks for the reference and sends the change only once.\n\nTool: WireMock (JUnit 5 extension)\n\n```java\n@Test\nvoid looksUpInsteadOfRepeating(WireMockRuntimeInfo wm) {\n stubFor(post(\"/bookings\").willReturn(created().withFixedDelay({{TIMEOUT_MS}} * 2)));\n stubFor(get(urlPathEqualTo(\"/bookings\")).withQueryParam(\"reference\", matching(\".+\"))\n .willReturn(okJson(\"[{\\\"id\\\":\\\"b-1\\\"}]\")));\n var booking = PartnerClient.create(wm.getHttpBaseUrl()).book(SAMPLE_BOOKING);\n assertEquals(\"b-1\", booking.id());\n verify(exactly(1), postRequestedFor(urlEqualTo(\"/bookings\")));\n verify(exactly(1), getRequestedFor(urlPathEqualTo(\"/bookings\")));\n}\n```",
737
+ "hubWhen": {
738
+ "IDEMPOTENCY": [
739
+ "lookup"
740
+ ]
741
+ }
742
+ },
743
+ {
744
+ "id": "ff-readonly",
745
+ "type": "fitness-fn",
746
+ "label": "Clients only read",
747
+ "x": 1040,
748
+ "y": 1040,
749
+ "category": "structural",
750
+ "threshold": "0 calls with POST, PUT, PATCH or DELETE in the clients of outside systems",
751
+ "description": "A Semgrep rule over the integration clients fails the build on a call with a method that changes something, which would mean this decision has to be revisited.\n\nTool: Semgrep\n\n```yaml\nrules:\n- id: outside-clients-only-read\n message: Outside systems are only read (ADR on integration resilience); a changing call needs idempotency protection first\n severity: ERROR\n languages: [typescript]\n paths: { include: ['src/integrations/'] }\n pattern-either:\n - pattern: $HTTP.post(...)\n - pattern: $HTTP.put(...)\n - pattern: $HTTP.patch(...)\n - pattern: $HTTP.delete(...)\n - pattern: 'fetch($URL, { ..., method: \"$M\", ... })'\n```",
752
+ "hubWhen": {
753
+ "IDEMPOTENCY": [
754
+ "readonly"
755
+ ]
756
+ }
757
+ },
758
+ {
759
+ "id": "ff-library",
760
+ "type": "fitness-fn",
761
+ "label": "No unguarded outside calls",
762
+ "x": 1040,
763
+ "y": 1170,
764
+ "category": "structural",
765
+ "threshold": "0 classes outside the integration clients use an HTTP client; every client method is guarded by a retry and a circuit breaker",
766
+ "description": "ArchUnit rules fail the build when code outside the integration package uses an HTTP client, or when a public method of an integration client lacks the Resilience4j annotations (NetArchTest does the same in .NET, dependency-cruiser in TypeScript).\n\nTool: ArchUnit\n\n```java\n@AnalyzeClasses(packages = \"com.acme.shop\")\nclass OutsideCallsArchTest {\n @ArchTest\n static final ArchRule onlyClientsCallOut = noClasses()\n .that().resideOutsideOfPackage(\"..integration..\")\n .should().dependOnClassesThat().resideInAnyPackage(\"org.springframework.web.client..\", \"java.net.http..\", \"okhttp3..\");\n\n @ArchTest\n static final ArchRule clientsAreGuarded = methods()\n .that().areDeclaredInClassesThat().resideInAPackage(\"..integration..\")\n .and().arePublic()\n .should().beAnnotatedWith(io.github.resilience4j.circuitbreaker.annotation.CircuitBreaker.class)\n .andShould().beAnnotatedWith(io.github.resilience4j.retry.annotation.Retry.class);\n}\n```",
767
+ "hubWhen": {
768
+ "PROTECTION": [
769
+ "library"
770
+ ]
771
+ }
772
+ },
773
+ {
774
+ "id": "ff-mesh",
775
+ "type": "fitness-fn",
776
+ "label": "Every outside host guarded",
777
+ "x": 1040,
778
+ "y": 1300,
779
+ "category": "structural",
780
+ "threshold": "Every ServiceEntry host has a VirtualService with a timeout and at most {{RETRIES}} retry attempts, and a DestinationRule with outlier detection; 0 hosts without",
781
+ "description": "A Conftest policy runs over the mesh manifests in the repository in each pull request and fails on an outside host that lacks any of the three.\n\nTool: Conftest (Open Policy Agent)\n\n```rego\n# conftest test --combine mesh/\npackage mesh.egress\n\nimport rego.v1\n\ndocs := [f.contents | some f in input]\n\nhosts contains h if { some e in docs; e.kind == \"ServiceEntry\"; some h in e.spec.hosts }\n\nguarded_vs(h) if {\n some v in docs; v.kind == \"VirtualService\"; h in v.spec.hosts\n some r in v.spec.http; r.timeout; r.retries.attempts <= {{RETRIES}}\n}\n\nguarded_dr(h) if {\n some d in docs; d.kind == \"DestinationRule\"; d.spec.host == h\n d.spec.trafficPolicy.outlierDetection\n}\n\ndeny contains msg if { some h in hosts; not guarded_vs(h); msg := sprintf(\"%s: no VirtualService with a timeout and bounded retries\", [h]) }\ndeny contains msg if { some h in hosts; not guarded_dr(h); msg := sprintf(\"%s: no DestinationRule with outlierDetection\", [h]) }\n```",
782
+ "hubWhen": {
783
+ "PROTECTION": [
784
+ "mesh"
785
+ ]
786
+ }
787
+ }
788
+ ],
789
+ "relations": [
790
+ {
791
+ "id": "req-timeout--derives--need",
792
+ "sourceId": "req-timeout",
793
+ "targetId": "need",
794
+ "relationType": "derives"
795
+ },
796
+ {
797
+ "id": "req-retry--derives--need",
798
+ "sourceId": "req-retry",
799
+ "targetId": "need",
800
+ "relationType": "derives"
801
+ },
802
+ {
803
+ "id": "req-breaker--derives--need",
804
+ "sourceId": "req-breaker",
805
+ "targetId": "need",
806
+ "relationType": "derives"
807
+ },
808
+ {
809
+ "id": "req-fail--derives--need",
810
+ "sourceId": "req-fail",
811
+ "targetId": "need",
812
+ "relationType": "derives"
813
+ },
814
+ {
815
+ "id": "req-degrade--derives--need",
816
+ "sourceId": "req-degrade",
817
+ "targetId": "need",
818
+ "relationType": "derives"
819
+ },
820
+ {
821
+ "id": "req-degrade-writes--derives--need",
822
+ "sourceId": "req-degrade-writes",
823
+ "targetId": "need",
824
+ "relationType": "derives"
825
+ },
826
+ {
827
+ "id": "req-defer--derives--need",
828
+ "sourceId": "req-defer",
829
+ "targetId": "need",
830
+ "relationType": "derives"
831
+ },
832
+ {
833
+ "id": "req-defer-expire--derives--need",
834
+ "sourceId": "req-defer-expire",
835
+ "targetId": "need",
836
+ "relationType": "derives"
837
+ },
838
+ {
839
+ "id": "req-idem-key--derives--need",
840
+ "sourceId": "req-idem-key",
841
+ "targetId": "need",
842
+ "relationType": "derives"
843
+ },
844
+ {
845
+ "id": "req-idem-lookup--derives--need",
846
+ "sourceId": "req-idem-lookup",
847
+ "targetId": "need",
848
+ "relationType": "derives"
849
+ },
850
+ {
851
+ "id": "req-readonly--derives--need",
852
+ "sourceId": "req-readonly",
853
+ "targetId": "need",
854
+ "relationType": "derives"
855
+ },
856
+ {
857
+ "id": "req-library--derives--need",
858
+ "sourceId": "req-library",
859
+ "targetId": "need",
860
+ "relationType": "derives"
861
+ },
862
+ {
863
+ "id": "req-mesh--derives--need",
864
+ "sourceId": "req-mesh",
865
+ "targetId": "need",
866
+ "relationType": "derives"
867
+ },
868
+ {
869
+ "id": "sc-timeout--verifies--req-timeout",
870
+ "sourceId": "sc-timeout",
871
+ "targetId": "req-timeout",
872
+ "relationType": "verifies"
873
+ },
874
+ {
875
+ "id": "sc-retry--verifies--req-retry",
876
+ "sourceId": "sc-retry",
877
+ "targetId": "req-retry",
878
+ "relationType": "verifies"
879
+ },
880
+ {
881
+ "id": "sc-breaker--verifies--req-breaker",
882
+ "sourceId": "sc-breaker",
883
+ "targetId": "req-breaker",
884
+ "relationType": "verifies"
885
+ },
886
+ {
887
+ "id": "sc-fail--verifies--req-fail",
888
+ "sourceId": "sc-fail",
889
+ "targetId": "req-fail",
890
+ "relationType": "verifies"
891
+ },
892
+ {
893
+ "id": "sc-degrade--verifies--req-degrade",
894
+ "sourceId": "sc-degrade",
895
+ "targetId": "req-degrade",
896
+ "relationType": "verifies"
897
+ },
898
+ {
899
+ "id": "sc-degrade-writes--verifies--req-degrade-writes",
900
+ "sourceId": "sc-degrade-writes",
901
+ "targetId": "req-degrade-writes",
902
+ "relationType": "verifies"
903
+ },
904
+ {
905
+ "id": "sc-defer--verifies--req-defer",
906
+ "sourceId": "sc-defer",
907
+ "targetId": "req-defer",
908
+ "relationType": "verifies"
909
+ },
910
+ {
911
+ "id": "sc-defer-expire--verifies--req-defer-expire",
912
+ "sourceId": "sc-defer-expire",
913
+ "targetId": "req-defer-expire",
914
+ "relationType": "verifies"
915
+ },
916
+ {
917
+ "id": "sc-idem-key--verifies--req-idem-key",
918
+ "sourceId": "sc-idem-key",
919
+ "targetId": "req-idem-key",
920
+ "relationType": "verifies"
921
+ },
922
+ {
923
+ "id": "sc-idem-lookup--verifies--req-idem-lookup",
924
+ "sourceId": "sc-idem-lookup",
925
+ "targetId": "req-idem-lookup",
926
+ "relationType": "verifies"
927
+ },
928
+ {
929
+ "id": "sc-readonly--verifies--req-readonly",
930
+ "sourceId": "sc-readonly",
931
+ "targetId": "req-readonly",
932
+ "relationType": "verifies"
933
+ },
934
+ {
935
+ "id": "sc-library--verifies--req-library",
936
+ "sourceId": "sc-library",
937
+ "targetId": "req-library",
938
+ "relationType": "verifies"
939
+ },
940
+ {
941
+ "id": "sc-mesh--verifies--req-mesh",
942
+ "sourceId": "sc-mesh",
943
+ "targetId": "req-mesh",
944
+ "relationType": "verifies"
945
+ },
946
+ {
947
+ "id": "ff-timeout--implements--adr-fail",
948
+ "sourceId": "ff-timeout",
949
+ "targetId": "adr-fail",
950
+ "relationType": "implements"
951
+ },
952
+ {
953
+ "id": "ff-timeout--implements--adr-degrade",
954
+ "sourceId": "ff-timeout",
955
+ "targetId": "adr-degrade",
956
+ "relationType": "implements"
957
+ },
958
+ {
959
+ "id": "ff-timeout--implements--adr-defer",
960
+ "sourceId": "ff-timeout",
961
+ "targetId": "adr-defer",
962
+ "relationType": "implements"
963
+ },
964
+ {
965
+ "id": "ff-retry--implements--adr-fail",
966
+ "sourceId": "ff-retry",
967
+ "targetId": "adr-fail",
968
+ "relationType": "implements"
969
+ },
970
+ {
971
+ "id": "ff-retry--implements--adr-degrade",
972
+ "sourceId": "ff-retry",
973
+ "targetId": "adr-degrade",
974
+ "relationType": "implements"
975
+ },
976
+ {
977
+ "id": "ff-retry--implements--adr-defer",
978
+ "sourceId": "ff-retry",
979
+ "targetId": "adr-defer",
980
+ "relationType": "implements"
981
+ },
982
+ {
983
+ "id": "ff-breaker--implements--adr-library",
984
+ "sourceId": "ff-breaker",
985
+ "targetId": "adr-library",
986
+ "relationType": "implements"
987
+ },
988
+ {
989
+ "id": "ff-breaker--implements--adr-mesh",
990
+ "sourceId": "ff-breaker",
991
+ "targetId": "adr-mesh",
992
+ "relationType": "implements"
993
+ },
994
+ {
995
+ "id": "ff-fail--implements--adr-fail",
996
+ "sourceId": "ff-fail",
997
+ "targetId": "adr-fail",
998
+ "relationType": "implements"
999
+ },
1000
+ {
1001
+ "id": "ff-degrade--implements--adr-degrade",
1002
+ "sourceId": "ff-degrade",
1003
+ "targetId": "adr-degrade",
1004
+ "relationType": "implements"
1005
+ },
1006
+ {
1007
+ "id": "ff-defer--implements--adr-defer",
1008
+ "sourceId": "ff-defer",
1009
+ "targetId": "adr-defer",
1010
+ "relationType": "implements"
1011
+ },
1012
+ {
1013
+ "id": "ff-idem-key--implements--adr-fail",
1014
+ "sourceId": "ff-idem-key",
1015
+ "targetId": "adr-fail",
1016
+ "relationType": "implements"
1017
+ },
1018
+ {
1019
+ "id": "ff-idem-key--implements--adr-degrade",
1020
+ "sourceId": "ff-idem-key",
1021
+ "targetId": "adr-degrade",
1022
+ "relationType": "implements"
1023
+ },
1024
+ {
1025
+ "id": "ff-idem-key--implements--adr-defer",
1026
+ "sourceId": "ff-idem-key",
1027
+ "targetId": "adr-defer",
1028
+ "relationType": "implements"
1029
+ },
1030
+ {
1031
+ "id": "ff-idem-lookup--implements--adr-fail",
1032
+ "sourceId": "ff-idem-lookup",
1033
+ "targetId": "adr-fail",
1034
+ "relationType": "implements"
1035
+ },
1036
+ {
1037
+ "id": "ff-idem-lookup--implements--adr-degrade",
1038
+ "sourceId": "ff-idem-lookup",
1039
+ "targetId": "adr-degrade",
1040
+ "relationType": "implements"
1041
+ },
1042
+ {
1043
+ "id": "ff-idem-lookup--implements--adr-defer",
1044
+ "sourceId": "ff-idem-lookup",
1045
+ "targetId": "adr-defer",
1046
+ "relationType": "implements"
1047
+ },
1048
+ {
1049
+ "id": "ff-readonly--implements--adr-fail",
1050
+ "sourceId": "ff-readonly",
1051
+ "targetId": "adr-fail",
1052
+ "relationType": "implements"
1053
+ },
1054
+ {
1055
+ "id": "ff-readonly--implements--adr-degrade",
1056
+ "sourceId": "ff-readonly",
1057
+ "targetId": "adr-degrade",
1058
+ "relationType": "implements"
1059
+ },
1060
+ {
1061
+ "id": "ff-readonly--implements--adr-defer",
1062
+ "sourceId": "ff-readonly",
1063
+ "targetId": "adr-defer",
1064
+ "relationType": "implements"
1065
+ },
1066
+ {
1067
+ "id": "ff-library--implements--adr-library",
1068
+ "sourceId": "ff-library",
1069
+ "targetId": "adr-library",
1070
+ "relationType": "implements"
1071
+ },
1072
+ {
1073
+ "id": "ff-mesh--implements--adr-mesh",
1074
+ "sourceId": "ff-mesh",
1075
+ "targetId": "adr-mesh",
1076
+ "relationType": "implements"
1077
+ }
1078
+ ]
1079
+ }