@radicaltools/mcp 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/README.md +41 -23
  2. package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
  3. package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
  4. package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
  5. package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
  6. package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
  7. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
  8. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
  9. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
  10. package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
  11. package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
  12. package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
  13. package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
  14. package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
  15. package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
  16. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
  17. package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
  18. package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
  19. package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
  20. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
  21. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
  22. package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
  23. package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
  24. package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
  25. package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
  26. package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
  27. package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
  28. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
  29. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
  30. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
  31. package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
  32. package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
  33. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
  34. package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
  35. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
  36. package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
  37. package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
  38. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
  39. package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
  40. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
  41. package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
  42. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
  43. package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
  44. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
  45. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
  46. package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
  47. package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
  48. package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
  49. package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
  50. package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
  51. package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
  52. package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
  53. package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
  54. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
  55. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
  56. package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
  57. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
  58. package/dist/index.js +10321 -3964
  59. package/package.json +1 -1
  60. package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
  61. package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
  62. package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
  63. package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
  64. package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
  65. package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
  66. package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
  67. package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
  68. package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
  69. package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
  70. package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
  71. package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
  72. package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
  73. package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
  74. package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
  75. package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
  76. package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
  77. package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
  78. package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
  79. package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
  80. package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
  81. package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
  82. package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
  83. package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
  84. package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
  85. package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
  86. package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
  87. package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
  88. package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
  89. package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
  90. package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
  91. package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
  92. package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
  93. package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
  94. package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
  95. package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
  96. package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
  97. package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
  98. package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
  99. package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
  100. package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
  101. package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
  102. package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
  103. package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
  104. package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
  105. package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
  106. package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
  107. package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
  108. package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
  109. package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
  110. package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
  111. package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
  112. package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
  113. package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
  114. package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
  115. package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
  116. package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
  117. package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
  118. package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
  119. package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
  120. package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
  121. package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
  122. package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
  123. package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
  124. package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
  125. package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
  126. package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
  127. package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
  128. package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
  129. package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
  130. package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
  131. package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
  132. package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
  133. package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
  134. package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
  135. package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
  136. package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
  137. package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
  138. package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
  139. package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
  140. package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
  141. package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
  142. package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
  143. package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
  144. package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
  145. package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
  146. package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
  147. package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
  148. package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
  149. package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
  150. package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
  151. package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
  152. package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
  153. package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
  154. package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
  155. package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
  156. package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
  157. package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
  158. package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
  159. package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
  160. package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
  161. package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
  162. package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
  163. package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
  164. package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
  165. package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
  166. package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
  167. package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
  168. package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
  169. package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
  170. package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
  171. package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
  172. package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
  173. package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
  174. package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
  175. package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
  176. package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
  177. package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
  178. package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
  179. package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
  180. package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
  181. package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
  182. package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
  183. package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
  184. package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
  185. package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
  186. package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
  187. package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
@@ -1,45 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-config-propagation",
4
- "category": "requirement",
5
- "name": "Configuration Propagation",
6
- "description": "Runtime configuration and feature-flag changes take effect across the fleet quickly and observably.",
7
- "tags": [
8
- "principle",
9
- "operations",
10
- "configuration",
11
- "feature-flags"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "CONFIG_PROPAGATION_SECONDS",
17
- "label": "Max propagation time (s)",
18
- "hint": "60",
19
- "type": "number",
20
- "defaultValue": "60"
21
- }
22
- ],
23
- "hubRefs": [
24
- "req-zero-downtime-deploy",
25
- "req-iac"
26
- ]
27
- },
28
- "nodes": [
29
- {
30
- "id": "req-config-propagation-1",
31
- "type": "requirement",
32
- "label": "Configuration Propagation",
33
- "x": 0,
34
- "y": 0,
35
- "width": 200,
36
- "height": 80,
37
- "collapsed": false,
38
- "ears_type": "event-driven",
39
- "trigger": "an operator changes a runtime configuration value or feature flag",
40
- "action": "apply the change on every running instance within {{CONFIG_PROPAGATION_SECONDS}} seconds without a restart, and expose per-instance configuration version so lag can be monitored",
41
- "rationale": "Kill switches, rate limits and circuit-breaker thresholds are only useful during an incident if they take effect faster than the incident escalates."
42
- }
43
- ],
44
- "relations": []
45
- }
@@ -1,35 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-data-integrity",
4
- "category": "requirement",
5
- "name": "Referential Data Integrity",
6
- "description": "No orphaned or inconsistent records across entity relationships, whether enforced by the database or the application.",
7
- "tags": [
8
- "principle",
9
- "reliability",
10
- "correctness",
11
- "data-integrity"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "hubRefs": [
15
- "adr-multi-tenancy-strategy",
16
- "ff-data-integrity-check"
17
- ]
18
- },
19
- "nodes": [
20
- {
21
- "id": "req-data-integrity-1",
22
- "type": "requirement",
23
- "label": "Referential Data Integrity",
24
- "x": 0,
25
- "y": 0,
26
- "width": 200,
27
- "height": 80,
28
- "collapsed": false,
29
- "ears_type": "ubiquitous",
30
- "action": "enforce referential integrity for every cross-entity relationship, rejecting operations that would leave dangling references and reconciling cross-service references with a scheduled consistency check",
31
- "rationale": "Orphaned records surface later as wrong totals, failed reports and compliance findings, and are far more expensive to repair than to prevent."
32
- }
33
- ],
34
- "relations": []
35
- }
@@ -1,44 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-data-retention",
4
- "category": "requirement",
5
- "name": "Data Retention Limit",
6
- "description": "Personal and transactional data is kept only as long as needed and then archived or deleted.",
7
- "tags": [
8
- "privacy",
9
- "compliance",
10
- "data-lifecycle"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "templateParams": [
14
- {
15
- "key": "RETENTION_DAYS",
16
- "label": "Retention period (days)",
17
- "hint": "365",
18
- "type": "number",
19
- "defaultValue": "365"
20
- }
21
- ],
22
- "hubRefs": [
23
- "req-gdpr-erasure",
24
- "req-audit-logging"
25
- ]
26
- },
27
- "nodes": [
28
- {
29
- "id": "req-data-retention-1",
30
- "type": "requirement",
31
- "label": "Data Retention Limit",
32
- "x": 0,
33
- "y": 0,
34
- "width": 200,
35
- "height": 80,
36
- "collapsed": false,
37
- "ears_type": "event-driven",
38
- "trigger": "a record passes {{RETENTION_DAYS}} days since its last business use",
39
- "action": "move the record to cold storage or delete it according to its data classification, and log the disposal in the audit trail",
40
- "rationale": "Storage minimisation is both a legal obligation under GDPR and a practical one: data you no longer hold cannot be breached, subpoenaed or slow your queries down."
41
- }
42
- ],
43
- "relations": []
44
- }
@@ -1,44 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-db-query-response",
4
- "category": "requirement",
5
- "name": "Database Query Latency",
6
- "description": "Latency budget for transactional (OLTP) database queries, which usually dominate API response time.",
7
- "tags": [
8
- "performance",
9
- "database",
10
- "latency"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "templateParams": [
14
- {
15
- "key": "DB_P95_MS",
16
- "label": "p95 query latency (ms)",
17
- "hint": "50",
18
- "type": "number",
19
- "defaultValue": "50"
20
- }
21
- ],
22
- "hubRefs": [
23
- "req-api-response-time",
24
- "req-report-generation"
25
- ]
26
- },
27
- "nodes": [
28
- {
29
- "id": "req-db-query-response-1",
30
- "type": "requirement",
31
- "label": "Database Query Latency",
32
- "x": 0,
33
- "y": 0,
34
- "width": 200,
35
- "height": 80,
36
- "collapsed": false,
37
- "ears_type": "state-driven",
38
- "precondition": "the database holds a production-sized dataset and serves normal transactional load",
39
- "action": "execute transactional queries within {{DB_P95_MS}} ms at the 95th percentile, with slow-query logging enabled for anything above the threshold",
40
- "rationale": "A request typically issues several queries, so the database budget must be a small fraction of the API budget to leave room for serialisation, network and business logic."
41
- }
42
- ],
43
- "relations": []
44
- }
@@ -1,59 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-disaster-recovery",
4
- "category": "requirement",
5
- "name": "Regional Failover",
6
- "description": "Recovery objectives when an entire region or availability zone becomes unavailable.",
7
- "tags": [
8
- "availability",
9
- "disaster-recovery",
10
- "resilience"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "templateParams": [
14
- {
15
- "key": "OUTAGE_THRESHOLD_SECONDS",
16
- "label": "Outage detection threshold (s)",
17
- "hint": "60",
18
- "type": "number",
19
- "defaultValue": "60"
20
- },
21
- {
22
- "key": "RTO_MINUTES",
23
- "label": "Recovery Time Objective (min)",
24
- "hint": "15",
25
- "type": "number",
26
- "defaultValue": "15"
27
- },
28
- {
29
- "key": "RPO_MINUTES",
30
- "label": "Recovery Point Objective (min)",
31
- "hint": "5",
32
- "type": "number",
33
- "defaultValue": "5"
34
- }
35
- ],
36
- "hubRefs": [
37
- "adr-multi-region",
38
- "req-availability",
39
- "ff-dr-drill-success"
40
- ]
41
- },
42
- "nodes": [
43
- {
44
- "id": "req-disaster-recovery-1",
45
- "type": "requirement",
46
- "label": "Regional Failover",
47
- "x": 0,
48
- "y": 0,
49
- "width": 200,
50
- "height": 80,
51
- "collapsed": false,
52
- "ears_type": "event-driven",
53
- "trigger": "the primary region has been unreachable for more than {{OUTAGE_THRESHOLD_SECONDS}} seconds",
54
- "action": "fail over to the secondary region and resume service within {{RTO_MINUTES}} minutes, losing no more than {{RPO_MINUTES}} minutes of committed data",
55
- "rationale": "RTO and RPO are the two numbers that decide the replication topology and the price of the DR setup; stating them up front avoids discovering the gap during an outage."
56
- }
57
- ],
58
- "relations": []
59
- }
@@ -1,45 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-distributed-tracing",
4
- "category": "requirement",
5
- "name": "Distributed Tracing",
6
- "description": "Trace context is propagated across every service, queue and job boundary so any request can be followed end to end.",
7
- "tags": [
8
- "principle",
9
- "observability",
10
- "tracing",
11
- "operations"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "TRACE_SAMPLING_PCT",
17
- "label": "Baseline trace sampling (%)",
18
- "hint": "10",
19
- "type": "number",
20
- "defaultValue": "10"
21
- }
22
- ],
23
- "hubRefs": [
24
- "adr-observability",
25
- "req-centralised-logging",
26
- "pattern-sidecar"
27
- ]
28
- },
29
- "nodes": [
30
- {
31
- "id": "req-distributed-tracing-1",
32
- "type": "requirement",
33
- "label": "Distributed Tracing",
34
- "x": 0,
35
- "y": 0,
36
- "width": 200,
37
- "height": 80,
38
- "collapsed": false,
39
- "ears_type": "ubiquitous",
40
- "action": "propagate W3C Trace Context headers across all synchronous calls, message headers and scheduled jobs, sample at least {{TRACE_SAMPLING_PCT}}% of requests and always retain traces for errors and slow requests",
41
- "rationale": "Latency and errors in a distributed system are emergent; without end-to-end traces the slowest hop and the failing dependency can only be guessed at."
42
- }
43
- ],
44
- "relations": []
45
- }
@@ -1,49 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-encryption",
4
- "category": "requirement",
5
- "name": "Encryption at Rest and in Transit",
6
- "description": "Personal and confidential data is encrypted wherever it is stored and whenever it crosses a network.",
7
- "tags": [
8
- "security",
9
- "encryption",
10
- "privacy",
11
- "compliance"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "ENCRYPTION_ALGORITHM",
17
- "label": "At-rest cipher",
18
- "hint": "AES-256",
19
- "defaultValue": "AES-256"
20
- },
21
- {
22
- "key": "MIN_TLS_VERSION",
23
- "label": "Minimum TLS version",
24
- "hint": "TLS 1.2",
25
- "defaultValue": "TLS 1.2"
26
- }
27
- ],
28
- "hubRefs": [
29
- "req-secrets-management",
30
- "ff-data-residency"
31
- ]
32
- },
33
- "nodes": [
34
- {
35
- "id": "req-encryption-1",
36
- "type": "requirement",
37
- "label": "Encryption at Rest and in Transit",
38
- "x": 0,
39
- "y": 0,
40
- "width": 200,
41
- "height": 80,
42
- "collapsed": false,
43
- "ears_type": "ubiquitous",
44
- "action": "encrypt personal and confidential data at rest with {{ENCRYPTION_ALGORITHM}} using managed keys, and encrypt all network traffic with {{MIN_TLS_VERSION}} or higher, refusing plaintext connections",
45
- "rationale": "Encryption is the baseline control expected by GDPR, PCI DSS and HIPAA alike, and it turns a lost disk, backup or network capture from a breach into a non-incident."
46
- }
47
- ],
48
- "relations": []
49
- }
@@ -1,45 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-error-rate",
4
- "category": "requirement",
5
- "name": "Request Error Rate",
6
- "description": "Ceiling on server-side failures across all business transactions; the reliability counterpart to the availability target.",
7
- "tags": [
8
- "reliability",
9
- "correctness",
10
- "slo"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "templateParams": [
14
- {
15
- "key": "MAX_ERROR_RATE_PCT",
16
- "label": "Max server-side error rate (%)",
17
- "hint": "0.1",
18
- "type": "number",
19
- "defaultValue": "0.1"
20
- }
21
- ],
22
- "hubRefs": [
23
- "ff-error-budget",
24
- "req-availability",
25
- "req-error-recovery",
26
- "req-batch-job-completion"
27
- ]
28
- },
29
- "nodes": [
30
- {
31
- "id": "req-error-rate-1",
32
- "type": "requirement",
33
- "label": "Request Error Rate",
34
- "x": 0,
35
- "y": 0,
36
- "width": 200,
37
- "height": 80,
38
- "collapsed": false,
39
- "ears_type": "ubiquitous",
40
- "action": "keep the share of requests failing with a server-side error (HTTP 5xx or equivalent) below {{MAX_ERROR_RATE_PCT}}% over any rolling 24-hour window",
41
- "rationale": "Availability alone hides a service that is up but wrong; an explicit error-rate SLO catches partial failures and regressions that never take the service down."
42
- }
43
- ],
44
- "relations": []
45
- }
@@ -1,34 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-error-recovery",
4
- "category": "requirement",
5
- "name": "Recoverable Error Messages",
6
- "description": "Every user-facing error explains what happened and offers a way forward.",
7
- "tags": [
8
- "usability",
9
- "error-handling",
10
- "ux"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "hubRefs": [
14
- "req-graceful-degradation",
15
- "req-error-rate"
16
- ]
17
- },
18
- "nodes": [
19
- {
20
- "id": "req-error-recovery-1",
21
- "type": "requirement",
22
- "label": "Recoverable Error Messages",
23
- "x": 0,
24
- "y": 0,
25
- "width": 200,
26
- "height": 80,
27
- "collapsed": false,
28
- "ears_type": "ubiquitous",
29
- "action": "show a human-readable message for every error state that names the problem, preserves the user's input and offers a specific next step, while logging the technical detail under a reference id shown to the user",
30
- "rationale": "Dead-end errors are where users give up and support tickets start; a reference id connects the two so the team can find the cause without asking the user to reproduce it."
31
- }
32
- ],
33
- "relations": []
34
- }
@@ -1,37 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-event-schema-compatibility",
4
- "category": "requirement",
5
- "name": "Event Schema Compatibility",
6
- "description": "Published event schemas evolve without breaking existing consumers.",
7
- "tags": [
8
- "principle",
9
- "interoperability",
10
- "messaging",
11
- "schema",
12
- "event-driven"
13
- ],
14
- "requiredMetamodel": "c4-ddd-governance-builtin",
15
- "hubRefs": [
16
- "pattern-event-driven",
17
- "adr-event-schema-evolution"
18
- ]
19
- },
20
- "nodes": [
21
- {
22
- "id": "req-event-schema-compatibility-1",
23
- "type": "requirement",
24
- "label": "Event Schema Compatibility",
25
- "x": 0,
26
- "y": 0,
27
- "width": 200,
28
- "height": 80,
29
- "collapsed": false,
30
- "ears_type": "unwanted-behaviour",
31
- "unwanted_condition": "a producer attempts to publish an event whose schema is not backward compatible with the registered version",
32
- "action": "reject the change in the build pipeline and at the schema registry, requiring a new event type or major version instead of an in-place breaking change",
33
- "rationale": "Consumers of an event stream are often unknown to the producer; compatibility enforced by tooling is the only reliable protection against silently breaking them."
34
- }
35
- ],
36
- "relations": []
37
- }
@@ -1,55 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-fail-safe-default",
4
- "category": "requirement",
5
- "name": "Fail-Safe Default Behaviour",
6
- "description": "When the system cannot determine a safe or correct outcome with sufficient confidence, it defaults to the least harmful, most reversible action and escalates to a human — instead of guessing or proceeding blindly.",
7
- "tags": [
8
- "principle",
9
- "safety",
10
- "ai",
11
- "fail-safe",
12
- "reliability"
13
- ],
14
- "requiredMetamodel": "c4-ddd-governance-builtin",
15
- "templateParams": [
16
- {
17
- "key": "MIN_CONFIDENCE_PCT",
18
- "label": "Minimum confidence to act (%)",
19
- "hint": "85",
20
- "type": "number",
21
- "defaultValue": "85"
22
- }
23
- ],
24
- "hubRefs": [
25
- "ff-fail-safe-verification",
26
- "req-ai-human-handoff",
27
- "req-ai-autonomous-resolution"
28
- ]
29
- },
30
- "nodes": [
31
- {
32
- "id": "req-fail-safe-default-1",
33
- "type": "requirement",
34
- "label": "Fail-Safe Default Behaviour",
35
- "x": 0,
36
- "y": 0,
37
- "width": 260,
38
- "height": 80,
39
- "collapsed": false,
40
- "ears_type": "unwanted-behaviour",
41
- "unwanted_condition": "an automated decision (an AI action, a payment, an irreversible write) cannot be made with confidence above {{MIN_CONFIDENCE_PCT}}%",
42
- "action": "take the least harmful, most reversible fallback action available and hand off to a human instead of proceeding on a low-confidence guess",
43
- "rationale": "An autonomous system that always acts on its best guess will eventually act confidently on a wrong guess; a system that recognises its own uncertainty and defaults to safety is what keeps a rare bad call from becoming an incident.",
44
- "templateParams": [
45
- {
46
- "key": "MIN_CONFIDENCE_PCT",
47
- "label": "Minimum confidence to act (%)",
48
- "hint": "85",
49
- "type": "number",
50
- "defaultValue": "85"
51
- }
52
- ]
53
- }
54
- ]
55
- }
@@ -1,69 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-fast-startup-graceful-shutdown",
4
- "category": "requirement",
5
- "name": "Fast Startup & Graceful Shutdown",
6
- "description": "Processes start in a few seconds and, on SIGTERM, stop accepting new work, finish in-flight requests, then exit — instead of dying mid-request or blocking a rolling deploy.",
7
- "tags": [
8
- "disposability",
9
- "kubernetes",
10
- "deployment",
11
- "resilience",
12
- "twelve-factor"
13
- ],
14
- "requiredMetamodel": "c4-ddd-governance-builtin",
15
- "templateParams": [
16
- {
17
- "key": "DRAIN_TIMEOUT_SECONDS",
18
- "label": "Graceful shutdown drain timeout (s)",
19
- "hint": "30",
20
- "type": "number",
21
- "defaultValue": "30"
22
- },
23
- {
24
- "key": "STARTUP_SECONDS",
25
- "label": "Max time to become ready (s)",
26
- "hint": "10",
27
- "type": "number",
28
- "defaultValue": "10"
29
- }
30
- ],
31
- "hubRefs": [
32
- "ff-startup-shutdown-check",
33
- "req-zero-downtime-deploy",
34
- "req-autoscaling"
35
- ]
36
- },
37
- "nodes": [
38
- {
39
- "id": "req-fast-startup-graceful-shutdown-1",
40
- "type": "requirement",
41
- "label": "Fast Startup & Graceful Shutdown",
42
- "x": 0,
43
- "y": 0,
44
- "width": 260,
45
- "height": 80,
46
- "collapsed": false,
47
- "ears_type": "event-driven",
48
- "trigger": "the process receives SIGTERM (rolling deploy, scale-in, node drain)",
49
- "action": "stop accepting new work immediately, allow in-flight requests up to {{DRAIN_TIMEOUT_SECONDS}} seconds to finish, then exit cleanly — and be ready to serve traffic within {{STARTUP_SECONDS}} seconds of being started",
50
- "rationale": "Kubernetes and every autoscaler assume a process that handles SIGTERM and becomes ready quickly; get either wrong and rolling deploys drop requests, and scale-out can't add capacity fast enough to matter.",
51
- "templateParams": [
52
- {
53
- "key": "DRAIN_TIMEOUT_SECONDS",
54
- "label": "Graceful shutdown drain timeout (s)",
55
- "hint": "30",
56
- "type": "number",
57
- "defaultValue": "30"
58
- },
59
- {
60
- "key": "STARTUP_SECONDS",
61
- "label": "Max time to become ready (s)",
62
- "hint": "10",
63
- "type": "number",
64
- "defaultValue": "10"
65
- }
66
- ]
67
- }
68
- ]
69
- }
@@ -1,44 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-gdpr-erasure",
4
- "category": "requirement",
5
- "name": "Right to Erasure",
6
- "description": "A verified data subject request removes the person's data from all systems within the statutory deadline.",
7
- "tags": [
8
- "privacy",
9
- "gdpr",
10
- "compliance"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "templateParams": [
14
- {
15
- "key": "ERASURE_DAYS",
16
- "label": "Erasure completion deadline (days)",
17
- "hint": "30",
18
- "type": "number",
19
- "defaultValue": "30"
20
- }
21
- ],
22
- "hubRefs": [
23
- "req-data-retention",
24
- "req-audit-logging"
25
- ]
26
- },
27
- "nodes": [
28
- {
29
- "id": "req-gdpr-erasure-1",
30
- "type": "requirement",
31
- "label": "Right to Erasure",
32
- "x": 0,
33
- "y": 0,
34
- "width": 200,
35
- "height": 80,
36
- "collapsed": false,
37
- "ears_type": "event-driven",
38
- "trigger": "a verified data subject requests erasure of their personal data",
39
- "action": "delete or irreversibly anonymise the subject's personal data in all primary stores, replicas, search indexes and analytics datasets within {{ERASURE_DAYS}} days, and confirm completion to the requester",
40
- "rationale": "GDPR Article 17 sets a hard deadline and applies to every copy of the data; without a designed erasure path the request becomes a manual hunt across systems."
41
- }
42
- ],
43
- "relations": []
44
- }
@@ -1,39 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-graceful-degradation",
4
- "category": "requirement",
5
- "name": "Graceful Degradation",
6
- "description": "Core functionality keeps working when a non-critical dependency fails, instead of the whole page or request failing.",
7
- "tags": [
8
- "principle",
9
- "availability",
10
- "resilience",
11
- "fault-tolerance"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "hubRefs": [
15
- "pattern-circuit-breaker",
16
- "adr-integration-style",
17
- "req-error-recovery",
18
- "pattern-bulkhead",
19
- "ff-chaos-resilience-test"
20
- ]
21
- },
22
- "nodes": [
23
- {
24
- "id": "req-graceful-degradation-1",
25
- "type": "requirement",
26
- "label": "Graceful Degradation",
27
- "x": 0,
28
- "y": 0,
29
- "width": 200,
30
- "height": 80,
31
- "collapsed": false,
32
- "ears_type": "event-driven",
33
- "trigger": "a non-critical downstream service or third-party dependency becomes unavailable or exceeds its timeout",
34
- "action": "continue serving the core workflow using cached data, defaults or a reduced feature set, and show a clear status notice instead of an error",
35
- "rationale": "In a distributed system partial failure is the normal state; without explicit fallbacks every optional dependency becomes a single point of failure for the whole product."
36
- }
37
- ],
38
- "relations": []
39
- }