@radicaltools/mcp 0.0.0-stage → 0.1.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 (134) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +140 -2
  3. package/dist/chunk-KI4NVSTU.js +1763 -0
  4. package/dist/elkLayout-WC6AXWOG.js +185 -0
  5. package/dist/hub-catalogue/adr/adr-api-versioning.radical +53 -0
  6. package/dist/hub-catalogue/adr/adr-auth-strategy.radical +53 -0
  7. package/dist/hub-catalogue/adr/adr-caching-strategy.radical +59 -0
  8. package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +40 -0
  9. package/dist/hub-catalogue/adr/adr-data-store.radical +47 -0
  10. package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +53 -0
  11. package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +53 -0
  12. package/dist/hub-catalogue/adr/adr-integration-style.radical +50 -0
  13. package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +38 -0
  14. package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +40 -0
  15. package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +39 -0
  16. package/dist/hub-catalogue/adr/adr-multi-region.radical +60 -0
  17. package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +41 -0
  18. package/dist/hub-catalogue/adr/adr-observability.radical +59 -0
  19. package/dist/hub-catalogue/adr/adr-realtime-transport.radical +38 -0
  20. package/dist/hub-catalogue/adr/adr-tech-stack.radical +45 -0
  21. package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +40 -0
  22. package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +1641 -0
  23. package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +1428 -0
  24. package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +1989 -0
  25. package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +1701 -0
  26. package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +1792 -0
  27. package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +1421 -0
  28. package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +1713 -0
  29. package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +34 -0
  30. package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +52 -0
  31. package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +36 -0
  32. package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +67 -0
  33. package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +62 -0
  34. package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +45 -0
  35. package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +53 -0
  36. package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +64 -0
  37. package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +45 -0
  38. package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +51 -0
  39. package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +43 -0
  40. package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +37 -0
  41. package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +46 -0
  42. package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +52 -0
  43. package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +53 -0
  44. package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +59 -0
  45. package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +34 -0
  46. package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +34 -0
  47. package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +59 -0
  48. package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +44 -0
  49. package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +45 -0
  50. package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +43 -0
  51. package/dist/hub-catalogue/fitness-function/ff-mttr.radical +45 -0
  52. package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +66 -0
  53. package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +35 -0
  54. package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +66 -0
  55. package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +45 -0
  56. package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +66 -0
  57. package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +45 -0
  58. package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +43 -0
  59. package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +57 -0
  60. package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +88 -0
  61. package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +168 -0
  62. package/dist/hub-catalogue/pattern/pattern-bff.radical +179 -0
  63. package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +114 -0
  64. package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +219 -0
  65. package/dist/hub-catalogue/pattern/pattern-cqrs.radical +195 -0
  66. package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +200 -0
  67. package/dist/hub-catalogue/pattern/pattern-event-driven.radical +210 -0
  68. package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +211 -0
  69. package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +196 -0
  70. package/dist/hub-catalogue/pattern/pattern-microservices.radical +262 -0
  71. package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +213 -0
  72. package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +114 -0
  73. package/dist/hub-catalogue/pattern/pattern-saga.radical +208 -0
  74. package/dist/hub-catalogue/pattern/pattern-sidecar.radical +123 -0
  75. package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +227 -0
  76. package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +209 -0
  77. package/dist/hub-catalogue/requirement/req-accessibility.radical +48 -0
  78. package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +51 -0
  79. package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +45 -0
  80. package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +46 -0
  81. package/dist/hub-catalogue/requirement/req-alerting.radical +52 -0
  82. package/dist/hub-catalogue/requirement/req-api-response-time.radical +51 -0
  83. package/dist/hub-catalogue/requirement/req-api-standard.radical +45 -0
  84. package/dist/hub-catalogue/requirement/req-audit-logging.radical +43 -0
  85. package/dist/hub-catalogue/requirement/req-auth-response-time.radical +45 -0
  86. package/dist/hub-catalogue/requirement/req-auth.radical +43 -0
  87. package/dist/hub-catalogue/requirement/req-autoscaling.radical +62 -0
  88. package/dist/hub-catalogue/requirement/req-availability.radical +50 -0
  89. package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +46 -0
  90. package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +50 -0
  91. package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +64 -0
  92. package/dist/hub-catalogue/requirement/req-centralised-logging.radical +45 -0
  93. package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +43 -0
  94. package/dist/hub-catalogue/requirement/req-code-complexity.radical +43 -0
  95. package/dist/hub-catalogue/requirement/req-config-propagation.radical +45 -0
  96. package/dist/hub-catalogue/requirement/req-data-integrity.radical +35 -0
  97. package/dist/hub-catalogue/requirement/req-data-retention.radical +44 -0
  98. package/dist/hub-catalogue/requirement/req-db-query-response.radical +44 -0
  99. package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +59 -0
  100. package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +45 -0
  101. package/dist/hub-catalogue/requirement/req-encryption.radical +49 -0
  102. package/dist/hub-catalogue/requirement/req-error-rate.radical +45 -0
  103. package/dist/hub-catalogue/requirement/req-error-recovery.radical +34 -0
  104. package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +37 -0
  105. package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +55 -0
  106. package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +69 -0
  107. package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +44 -0
  108. package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +39 -0
  109. package/dist/hub-catalogue/requirement/req-health-checks.radical +43 -0
  110. package/dist/hub-catalogue/requirement/req-iac.radical +36 -0
  111. package/dist/hub-catalogue/requirement/req-idempotency.radical +47 -0
  112. package/dist/hub-catalogue/requirement/req-input-validation.radical +37 -0
  113. package/dist/hub-catalogue/requirement/req-least-privilege.radical +47 -0
  114. package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +38 -0
  115. package/dist/hub-catalogue/requirement/req-mfa.radical +36 -0
  116. package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +42 -0
  117. package/dist/hub-catalogue/requirement/req-onboarding-time.radical +42 -0
  118. package/dist/hub-catalogue/requirement/req-page-load-time.radical +59 -0
  119. package/dist/hub-catalogue/requirement/req-payout-latency.radical +46 -0
  120. package/dist/hub-catalogue/requirement/req-presence-latency.radical +46 -0
  121. package/dist/hub-catalogue/requirement/req-rate-limiting.radical +45 -0
  122. package/dist/hub-catalogue/requirement/req-report-generation.radical +44 -0
  123. package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +64 -0
  124. package/dist/hub-catalogue/requirement/req-resource-headroom.radical +53 -0
  125. package/dist/hub-catalogue/requirement/req-resource-isolation.radical +37 -0
  126. package/dist/hub-catalogue/requirement/req-search-response-time.radical +44 -0
  127. package/dist/hub-catalogue/requirement/req-secrets-management.radical +45 -0
  128. package/dist/hub-catalogue/requirement/req-task-success-rate.radical +42 -0
  129. package/dist/hub-catalogue/requirement/req-test-coverage.radical +42 -0
  130. package/dist/hub-catalogue/requirement/req-throughput.radical +55 -0
  131. package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +52 -0
  132. package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +39 -0
  133. package/dist/index.js +8382 -0
  134. package/package.json +48 -4
@@ -0,0 +1,227 @@
1
+ {
2
+ "hub": {
3
+ "id": "pattern-strangler-fig",
4
+ "category": "pattern",
5
+ "name": "Strangler Fig Migration",
6
+ "description": "A routing facade sits in front of the legacy system; capabilities are rebuilt one at a time behind it and traffic is switched over per route, until the legacy system serves nothing and can be retired.",
7
+ "tags": [
8
+ "migration",
9
+ "legacy",
10
+ "modernisation",
11
+ "incremental"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "hubRefs": [
15
+ "pattern-api-gateway",
16
+ "req-backward-compatibility",
17
+ "adr-integration-style",
18
+ "ff-coupling-guard",
19
+ "pattern-anti-corruption-layer"
20
+ ]
21
+ },
22
+ "nodes": [
23
+ {
24
+ "id": "user",
25
+ "type": "person",
26
+ "label": "User",
27
+ "description": "Notices no difference during the migration.",
28
+ "x": 0,
29
+ "y": 0,
30
+ "width": 150,
31
+ "height": 170,
32
+ "collapsed": false
33
+ },
34
+ {
35
+ "id": "platform",
36
+ "type": "system",
37
+ "label": "Target Platform",
38
+ "description": "New services grow route by route behind the facade.",
39
+ "x": 0,
40
+ "y": 270,
41
+ "width": 1270,
42
+ "height": 340,
43
+ "collapsed": false
44
+ },
45
+ {
46
+ "id": "facade",
47
+ "type": "container",
48
+ "label": "Routing Facade",
49
+ "description": "Routes each path to legacy or new implementation by configuration; supports shadow traffic and percentage roll-out per route.",
50
+ "technology": "Envoy / NGINX",
51
+ "parentId": "platform",
52
+ "x": 30,
53
+ "y": 110,
54
+ "width": 300,
55
+ "height": 200,
56
+ "collapsed": false
57
+ },
58
+ {
59
+ "id": "customers",
60
+ "type": "container",
61
+ "label": "Customer Service",
62
+ "description": "First capability migrated. Owns customer data going forward.",
63
+ "technology": "Go",
64
+ "parentId": "platform",
65
+ "x": 370,
66
+ "y": 110,
67
+ "width": 300,
68
+ "height": 200,
69
+ "collapsed": false
70
+ },
71
+ {
72
+ "id": "customers-db",
73
+ "type": "database",
74
+ "label": "Customer DB",
75
+ "description": "New store; seeded by a one-off migration, kept in sync until cut-over.",
76
+ "technology": "PostgreSQL",
77
+ "parentId": "platform",
78
+ "x": 710,
79
+ "y": 110,
80
+ "width": 190,
81
+ "height": 130,
82
+ "collapsed": false
83
+ },
84
+ {
85
+ "id": "sync",
86
+ "type": "container",
87
+ "label": "Legacy Sync",
88
+ "description": "Anti-corruption layer: translates legacy records and keeps both stores consistent during the transition.",
89
+ "technology": "Go worker",
90
+ "parentId": "platform",
91
+ "x": 940,
92
+ "y": 110,
93
+ "width": 300,
94
+ "height": 200,
95
+ "collapsed": false
96
+ },
97
+ {
98
+ "id": "legacy",
99
+ "type": "system",
100
+ "label": "Legacy Monolith",
101
+ "description": "Still serves every capability not yet migrated.",
102
+ "external": true,
103
+ "x": 1350,
104
+ "y": 270,
105
+ "width": 590,
106
+ "height": 340,
107
+ "collapsed": false
108
+ },
109
+ {
110
+ "id": "monolith",
111
+ "type": "container",
112
+ "label": "Monolith Application",
113
+ "description": "Shrinks as routes move to the new platform.",
114
+ "technology": "Java EE",
115
+ "parentId": "legacy",
116
+ "x": 30,
117
+ "y": 110,
118
+ "width": 300,
119
+ "height": 200,
120
+ "collapsed": false
121
+ },
122
+ {
123
+ "id": "legacy-db",
124
+ "type": "database",
125
+ "label": "Shared Legacy DB",
126
+ "description": "Single schema used by all legacy modules.",
127
+ "technology": "Oracle",
128
+ "parentId": "legacy",
129
+ "x": 370,
130
+ "y": 110,
131
+ "width": 190,
132
+ "height": 130,
133
+ "collapsed": false
134
+ }
135
+ ],
136
+ "relations": [
137
+ {
138
+ "id": "user--facade",
139
+ "sourceId": "user",
140
+ "targetId": "facade",
141
+ "label": "Uses the application",
142
+ "technology": "HTTPS"
143
+ },
144
+ {
145
+ "id": "facade--monolith",
146
+ "sourceId": "facade",
147
+ "targetId": "monolith",
148
+ "label": "Routes not-yet-migrated paths",
149
+ "technology": "HTTP"
150
+ },
151
+ {
152
+ "id": "facade--customers",
153
+ "sourceId": "facade",
154
+ "targetId": "customers",
155
+ "label": "Routes /customers/**",
156
+ "technology": "HTTP"
157
+ },
158
+ {
159
+ "id": "customers--customers-db",
160
+ "sourceId": "customers",
161
+ "targetId": "customers-db",
162
+ "label": "Reads / writes",
163
+ "technology": "SQL"
164
+ },
165
+ {
166
+ "id": "monolith--legacy-db",
167
+ "sourceId": "monolith",
168
+ "targetId": "legacy-db",
169
+ "label": "Reads / writes",
170
+ "technology": "JDBC"
171
+ },
172
+ {
173
+ "id": "sync--legacy-db",
174
+ "sourceId": "sync",
175
+ "targetId": "legacy-db",
176
+ "label": "Reads legacy customer records",
177
+ "technology": "JDBC / CDC"
178
+ },
179
+ {
180
+ "id": "sync--customers-db",
181
+ "sourceId": "sync",
182
+ "targetId": "customers-db",
183
+ "label": "Writes translated records",
184
+ "technology": "SQL"
185
+ }
186
+ ],
187
+ "sequences": [
188
+ {
189
+ "id": "pattern-strangler-fig-seq",
190
+ "name": "Migrate the customer capability",
191
+ "relationIds": [
192
+ "user--facade",
193
+ "sync--legacy-db",
194
+ "sync--customers-db",
195
+ "facade--customers",
196
+ "facade--monolith"
197
+ ],
198
+ "stepDescriptions": [
199
+ "All traffic already enters through the facade.",
200
+ "Customer data is extracted from the legacy schema.",
201
+ "Data is translated into the new model and kept in sync.",
202
+ "/customers/** is switched to the new service, gradually by percentage.",
203
+ "Everything else still goes to the monolith — until the next capability moves."
204
+ ]
205
+ }
206
+ ],
207
+ "views": [
208
+ {
209
+ "id": "pattern-strangler-fig-flow",
210
+ "name": "Migrate the customer capability",
211
+ "kind": "dynamic",
212
+ "sequenceId": "pattern-strangler-fig-seq",
213
+ "nodeIds": [
214
+ "user",
215
+ "platform",
216
+ "facade",
217
+ "customers",
218
+ "customers-db",
219
+ "sync",
220
+ "legacy",
221
+ "monolith",
222
+ "legacy-db"
223
+ ],
224
+ "positions": {}
225
+ }
226
+ ]
227
+ }
@@ -0,0 +1,209 @@
1
+ {
2
+ "hub": {
3
+ "id": "pattern-transactional-outbox",
4
+ "category": "pattern",
5
+ "name": "Transactional Outbox",
6
+ "description": "Guarantees that a state change and the event announcing it are either both persisted or neither: the event is written to an outbox table in the same transaction and relayed to the bus afterwards.",
7
+ "tags": [
8
+ "event-driven",
9
+ "consistency",
10
+ "messaging",
11
+ "reliability",
12
+ "cdc"
13
+ ],
14
+ "requiredMetamodel": "c4-ddd-governance-builtin",
15
+ "hubRefs": [
16
+ "req-idempotency",
17
+ "pattern-event-driven",
18
+ "adr-integration-style",
19
+ "pattern-saga"
20
+ ]
21
+ },
22
+ "nodes": [
23
+ {
24
+ "id": "customer",
25
+ "type": "person",
26
+ "label": "Customer",
27
+ "description": "Places orders.",
28
+ "x": 0,
29
+ "y": 0,
30
+ "width": 150,
31
+ "height": 170,
32
+ "collapsed": false
33
+ },
34
+ {
35
+ "id": "platform",
36
+ "type": "system",
37
+ "label": "Order Platform",
38
+ "description": "Producer with outbox relay and an idempotent consumer.",
39
+ "x": 0,
40
+ "y": 270,
41
+ "width": 1040,
42
+ "height": 580,
43
+ "collapsed": false
44
+ },
45
+ {
46
+ "id": "orders",
47
+ "type": "container",
48
+ "label": "Order Service",
49
+ "description": "Writes the order and the OrderPlaced event row in one local transaction. Never talks to the broker directly.",
50
+ "technology": "Java / Spring Boot",
51
+ "parentId": "platform",
52
+ "x": 30,
53
+ "y": 110,
54
+ "width": 300,
55
+ "height": 200,
56
+ "collapsed": false
57
+ },
58
+ {
59
+ "id": "orders-db",
60
+ "type": "database",
61
+ "label": "Orders DB",
62
+ "description": "Orders table plus outbox table (event id, type, payload, created_at, published_at).",
63
+ "technology": "PostgreSQL",
64
+ "parentId": "platform",
65
+ "x": 370,
66
+ "y": 110,
67
+ "width": 190,
68
+ "height": 130,
69
+ "collapsed": false
70
+ },
71
+ {
72
+ "id": "relay",
73
+ "type": "container",
74
+ "label": "Outbox Relay",
75
+ "description": "Tails the outbox (CDC or polling), publishes each row exactly once in order, marks it published. Retries on broker failure.",
76
+ "technology": "Debezium / custom poller",
77
+ "parentId": "platform",
78
+ "x": 710,
79
+ "y": 110,
80
+ "width": 300,
81
+ "height": 200,
82
+ "collapsed": false
83
+ },
84
+ {
85
+ "id": "bus",
86
+ "type": "queue",
87
+ "label": "Event Bus",
88
+ "description": "Durable event log.",
89
+ "technology": "Apache Kafka",
90
+ "parentId": "platform",
91
+ "x": 30,
92
+ "y": 350,
93
+ "width": 220,
94
+ "height": 95,
95
+ "collapsed": false
96
+ },
97
+ {
98
+ "id": "inventory",
99
+ "type": "container",
100
+ "label": "Inventory Service",
101
+ "description": "Consumes OrderPlaced. Deduplicates by event id before reserving stock.",
102
+ "technology": "Go",
103
+ "parentId": "platform",
104
+ "x": 370,
105
+ "y": 350,
106
+ "width": 300,
107
+ "height": 200,
108
+ "collapsed": false
109
+ },
110
+ {
111
+ "id": "inventory-db",
112
+ "type": "database",
113
+ "label": "Inventory DB",
114
+ "description": "Stock levels plus processed-event ids.",
115
+ "technology": "PostgreSQL",
116
+ "parentId": "platform",
117
+ "x": 710,
118
+ "y": 350,
119
+ "width": 190,
120
+ "height": 130,
121
+ "collapsed": false
122
+ }
123
+ ],
124
+ "relations": [
125
+ {
126
+ "id": "customer--orders",
127
+ "sourceId": "customer",
128
+ "targetId": "orders",
129
+ "label": "Places order",
130
+ "technology": "HTTPS / JSON"
131
+ },
132
+ {
133
+ "id": "orders--orders-db",
134
+ "sourceId": "orders",
135
+ "targetId": "orders-db",
136
+ "label": "INSERT order + INSERT outbox row (one transaction)",
137
+ "technology": "SQL"
138
+ },
139
+ {
140
+ "id": "relay--orders-db",
141
+ "sourceId": "relay",
142
+ "targetId": "orders-db",
143
+ "label": "Reads unpublished outbox rows",
144
+ "technology": "Logical replication / SELECT … FOR UPDATE SKIP LOCKED"
145
+ },
146
+ {
147
+ "id": "relay--bus",
148
+ "sourceId": "relay",
149
+ "targetId": "bus",
150
+ "label": "Publishes OrderPlaced",
151
+ "technology": "Avro, key = orderId"
152
+ },
153
+ {
154
+ "id": "bus--inventory",
155
+ "sourceId": "bus",
156
+ "targetId": "inventory",
157
+ "label": "Delivers OrderPlaced (at-least-once)",
158
+ "technology": "Consumer group"
159
+ },
160
+ {
161
+ "id": "inventory--inventory-db",
162
+ "sourceId": "inventory",
163
+ "targetId": "inventory-db",
164
+ "label": "Reserves stock if event id not yet processed",
165
+ "technology": "SQL"
166
+ }
167
+ ],
168
+ "sequences": [
169
+ {
170
+ "id": "pattern-transactional-outbox-seq",
171
+ "name": "Place order",
172
+ "relationIds": [
173
+ "customer--orders",
174
+ "orders--orders-db",
175
+ "relay--orders-db",
176
+ "relay--bus",
177
+ "bus--inventory",
178
+ "inventory--inventory-db"
179
+ ],
180
+ "stepDescriptions": [
181
+ "Customer submits the order.",
182
+ "Order row and OrderPlaced outbox row are committed atomically.",
183
+ "Relay picks up the new outbox row.",
184
+ "Event is published; the row is marked as published.",
185
+ "Consumer receives the event, possibly more than once.",
186
+ "Stock is reserved only if the event id is new."
187
+ ]
188
+ }
189
+ ],
190
+ "views": [
191
+ {
192
+ "id": "pattern-transactional-outbox-flow",
193
+ "name": "Place order",
194
+ "kind": "dynamic",
195
+ "sequenceId": "pattern-transactional-outbox-seq",
196
+ "nodeIds": [
197
+ "customer",
198
+ "platform",
199
+ "orders",
200
+ "orders-db",
201
+ "relay",
202
+ "bus",
203
+ "inventory",
204
+ "inventory-db"
205
+ ],
206
+ "positions": {}
207
+ }
208
+ ]
209
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-accessibility",
4
+ "category": "requirement",
5
+ "name": "Accessibility Conformance",
6
+ "description": "User interfaces conform to WCAG so the product is usable with assistive technology.",
7
+ "tags": [
8
+ "usability",
9
+ "accessibility",
10
+ "wcag",
11
+ "compliance"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "WCAG_VERSION",
17
+ "label": "WCAG version",
18
+ "hint": "2.2",
19
+ "defaultValue": "2.2"
20
+ },
21
+ {
22
+ "key": "WCAG_LEVEL",
23
+ "label": "Conformance level",
24
+ "hint": "AA",
25
+ "defaultValue": "AA"
26
+ }
27
+ ],
28
+ "hubRefs": [
29
+ "ff-accessibility-scan"
30
+ ]
31
+ },
32
+ "nodes": [
33
+ {
34
+ "id": "req-accessibility-1",
35
+ "type": "requirement",
36
+ "label": "Accessibility Conformance",
37
+ "x": 0,
38
+ "y": 0,
39
+ "width": 200,
40
+ "height": 80,
41
+ "collapsed": false,
42
+ "ears_type": "ubiquitous",
43
+ "action": "conform to WCAG {{WCAG_VERSION}} Level {{WCAG_LEVEL}} on all user-facing pages and components, verified by automated checks in the pipeline and periodic manual testing with screen readers",
44
+ "rationale": "Accessibility is a legal requirement in many jurisdictions (EU Accessibility Act, ADA, Section 508) and the same practices improve usability for everyone."
45
+ }
46
+ ],
47
+ "relations": []
48
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-ai-autonomous-resolution",
4
+ "category": "requirement",
5
+ "name": "AI Autonomous Resolution Rate",
6
+ "description": "Share of routine inquiries an AI agent resolves end to end without human escalation.",
7
+ "tags": [
8
+ "ai",
9
+ "agentic-ai",
10
+ "automation"
11
+ ],
12
+ "requiredMetamodel": "c4-ddd-governance-builtin",
13
+ "templateParams": [
14
+ {
15
+ "key": "MIN_RESOLUTION_PCT",
16
+ "label": "Autonomous resolution rate (%)",
17
+ "hint": "70",
18
+ "type": "number",
19
+ "defaultValue": "70"
20
+ },
21
+ {
22
+ "key": "MEASUREMENT_WINDOW_DAYS",
23
+ "label": "Rolling measurement window (days)",
24
+ "hint": "30",
25
+ "type": "number",
26
+ "defaultValue": "30"
27
+ }
28
+ ],
29
+ "hubRefs": [
30
+ "req-ai-human-handoff",
31
+ "ff-ai-eval-gate",
32
+ "req-fail-safe-default"
33
+ ]
34
+ },
35
+ "nodes": [
36
+ {
37
+ "id": "req-ai-autonomous-resolution-1",
38
+ "type": "requirement",
39
+ "label": "AI Autonomous Resolution Rate",
40
+ "x": 0,
41
+ "y": 0,
42
+ "width": 200,
43
+ "height": 80,
44
+ "collapsed": false,
45
+ "ears_type": "ubiquitous",
46
+ "action": "resolve at least {{MIN_RESOLUTION_PCT}}% of routine inquiries without human escalation over a rolling {{MEASUREMENT_WINDOW_DAYS}}-day window, counting only cases the user confirmed as resolved",
47
+ "rationale": "Below a certain resolution rate the cost of reviewing and correcting escalations exceeds the savings; measuring it with user confirmation keeps the metric honest."
48
+ }
49
+ ],
50
+ "relations": []
51
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-ai-groundedness",
4
+ "category": "requirement",
5
+ "name": "Grounded AI Responses",
6
+ "description": "Factual claims made by an AI assistant are backed by retrieved sources and measured for groundedness.",
7
+ "tags": [
8
+ "ai",
9
+ "llm",
10
+ "rag",
11
+ "trustworthiness"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "GROUNDEDNESS_MIN_PCT",
17
+ "label": "Minimum groundedness score (%)",
18
+ "hint": "95",
19
+ "type": "number",
20
+ "defaultValue": "95"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "req-ai-human-handoff",
25
+ "ff-ai-eval-gate",
26
+ "ff-fail-safe-verification"
27
+ ]
28
+ },
29
+ "nodes": [
30
+ {
31
+ "id": "req-ai-groundedness-1",
32
+ "type": "requirement",
33
+ "label": "Grounded AI Responses",
34
+ "x": 0,
35
+ "y": 0,
36
+ "width": 200,
37
+ "height": 80,
38
+ "collapsed": false,
39
+ "ears_type": "ubiquitous",
40
+ "action": "cite the retrieved document or governed data source for every factual claim, refuse to answer when no supporting source is retrieved, and maintain a groundedness score of at least {{GROUNDEDNESS_MIN_PCT}}% on the evaluation set",
41
+ "rationale": "Language models produce fluent but unsupported statements; retrieval grounding and continuous evaluation reduce that risk to a measurable level and make the residual errors traceable."
42
+ }
43
+ ],
44
+ "relations": []
45
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-ai-human-handoff",
4
+ "category": "requirement",
5
+ "name": "AI Human Hand-off",
6
+ "description": "An AI agent escalates to a person when it is unsure, when the user asks, or when the action is irreversible.",
7
+ "tags": [
8
+ "ai",
9
+ "agentic-ai",
10
+ "safety",
11
+ "ux"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "CONFIDENCE_THRESHOLD_PCT",
17
+ "label": "Minimum confidence to act (%)",
18
+ "hint": "80",
19
+ "type": "number",
20
+ "defaultValue": "80"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "req-ai-groundedness",
25
+ "req-ai-autonomous-resolution",
26
+ "req-fail-safe-default"
27
+ ]
28
+ },
29
+ "nodes": [
30
+ {
31
+ "id": "req-ai-human-handoff-1",
32
+ "type": "requirement",
33
+ "label": "AI Human Hand-off",
34
+ "x": 0,
35
+ "y": 0,
36
+ "width": 200,
37
+ "height": 80,
38
+ "collapsed": false,
39
+ "ears_type": "event-driven",
40
+ "trigger": "the agent's confidence falls below {{CONFIDENCE_THRESHOLD_PCT}}%, the user asks for a human, or the next action is irreversible or above the agent's authorisation limit",
41
+ "action": "hand the conversation to a human operator with the full context and proposed action, and take no irreversible action until the operator confirms",
42
+ "rationale": "Autonomy without an escalation path fails loudly on exactly the cases that matter; a designed hand-off keeps the human in control of high-stakes decisions."
43
+ }
44
+ ],
45
+ "relations": []
46
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-alerting",
4
+ "category": "requirement",
5
+ "name": "Actionable Alerting",
6
+ "description": "Threatened SLOs page the on-call engineer early, reliably and with the context needed to act.",
7
+ "tags": [
8
+ "observability",
9
+ "alerting",
10
+ "sre",
11
+ "operations"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "BURN_RATE_ALERT",
17
+ "label": "Error-budget burn rate that pages",
18
+ "hint": "2",
19
+ "type": "number",
20
+ "defaultValue": "2"
21
+ },
22
+ {
23
+ "key": "ALERT_DELIVERY_SECONDS",
24
+ "label": "Max detection-to-page delay (s)",
25
+ "hint": "60",
26
+ "type": "number",
27
+ "defaultValue": "60"
28
+ }
29
+ ],
30
+ "hubRefs": [
31
+ "ff-error-budget",
32
+ "req-availability"
33
+ ]
34
+ },
35
+ "nodes": [
36
+ {
37
+ "id": "req-alerting-1",
38
+ "type": "requirement",
39
+ "label": "Actionable Alerting",
40
+ "x": 0,
41
+ "y": 0,
42
+ "width": 200,
43
+ "height": 80,
44
+ "collapsed": false,
45
+ "ears_type": "event-driven",
46
+ "trigger": "an SLO is consuming its error budget at more than {{BURN_RATE_ALERT}}× the sustainable rate",
47
+ "action": "page the on-call engineer within {{ALERT_DELIVERY_SECONDS}} seconds with the affected SLO, current burn rate and links to the dashboard and runbook, and verify the paging path with a periodic end-to-end drill",
48
+ "rationale": "Alerting on symptoms (budget burn) rather than causes keeps pages rare and meaningful, and a tested delivery path guards against the alert that never arrives."
49
+ }
50
+ ],
51
+ "relations": []
52
+ }