@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,51 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-api-response-time",
4
+ "category": "requirement",
5
+ "name": "API Response Time",
6
+ "description": "Latency budget for synchronous API calls under normal load, expressed as a percentile target with a hard tail ceiling.",
7
+ "tags": [
8
+ "performance",
9
+ "latency",
10
+ "api"
11
+ ],
12
+ "requiredMetamodel": "c4-ddd-governance-builtin",
13
+ "templateParams": [
14
+ {
15
+ "key": "P95_MS",
16
+ "label": "p95 response time (ms)",
17
+ "hint": "300",
18
+ "type": "number",
19
+ "defaultValue": "300"
20
+ },
21
+ {
22
+ "key": "P99_MS",
23
+ "label": "p99 ceiling (ms)",
24
+ "hint": "1000",
25
+ "type": "number",
26
+ "defaultValue": "1000"
27
+ }
28
+ ],
29
+ "hubRefs": [
30
+ "ff-latency-slo",
31
+ "req-db-query-response"
32
+ ]
33
+ },
34
+ "nodes": [
35
+ {
36
+ "id": "req-api-response-time-1",
37
+ "type": "requirement",
38
+ "label": "API Response Time",
39
+ "x": 0,
40
+ "y": 0,
41
+ "width": 200,
42
+ "height": 80,
43
+ "collapsed": false,
44
+ "ears_type": "state-driven",
45
+ "precondition": "the system is serving normal production traffic",
46
+ "action": "respond to API requests within {{P95_MS}} ms at the 95th percentile and never exceed {{P99_MS}} ms at the 99th percentile, measured at the service boundary",
47
+ "rationale": "Downstream callers size their own timeouts and retry budgets around this figure; a percentile target with a tail ceiling prevents a small fraction of slow requests from cascading into upstream failures."
48
+ }
49
+ ],
50
+ "relations": []
51
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-api-standard",
4
+ "category": "requirement",
5
+ "name": "API-First Contract",
6
+ "description": "Every capability is available through a documented, versioned API described by a machine-readable specification.",
7
+ "tags": [
8
+ "principle",
9
+ "interoperability",
10
+ "api",
11
+ "openapi",
12
+ "documentation"
13
+ ],
14
+ "requiredMetamodel": "c4-ddd-governance-builtin",
15
+ "templateParams": [
16
+ {
17
+ "key": "API_SPEC_FORMAT",
18
+ "label": "Specification format",
19
+ "hint": "OpenAPI 3.1",
20
+ "defaultValue": "OpenAPI 3.1"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "ff-api-contract",
25
+ "req-backward-compatibility",
26
+ "adr-api-versioning"
27
+ ]
28
+ },
29
+ "nodes": [
30
+ {
31
+ "id": "req-api-standard-1",
32
+ "type": "requirement",
33
+ "label": "API-First Contract",
34
+ "x": 0,
35
+ "y": 0,
36
+ "width": 200,
37
+ "height": 80,
38
+ "collapsed": false,
39
+ "ears_type": "ubiquitous",
40
+ "action": "expose every user-facing and state-changing operation through an API described by a {{API_SPEC_FORMAT}} specification that is version-controlled with the service, covers all endpoints with schemas, error codes and examples, and is published with each release",
41
+ "rationale": "A complete, machine-readable contract enables client generation, contract testing and automation, and prevents the UI from becoming the only way to use the system."
42
+ }
43
+ ],
44
+ "relations": []
45
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-audit-logging",
4
+ "category": "requirement",
5
+ "name": "Audit Trail",
6
+ "description": "Every state-changing operation is recorded in a tamper-evident audit log with who, what and when.",
7
+ "tags": [
8
+ "security",
9
+ "compliance",
10
+ "audit",
11
+ "logging"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "AUDIT_RETENTION_MONTHS",
17
+ "label": "Audit log retention (months)",
18
+ "hint": "24",
19
+ "type": "number",
20
+ "defaultValue": "24"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "req-centralised-logging"
25
+ ]
26
+ },
27
+ "nodes": [
28
+ {
29
+ "id": "req-audit-logging-1",
30
+ "type": "requirement",
31
+ "label": "Audit Trail",
32
+ "x": 0,
33
+ "y": 0,
34
+ "width": 200,
35
+ "height": 80,
36
+ "collapsed": false,
37
+ "ears_type": "ubiquitous",
38
+ "action": "record every state-changing operation with timestamp, actor identity, action, affected resource and before/after values in an append-only audit log retained for {{AUDIT_RETENTION_MONTHS}} months",
39
+ "rationale": "Regulations such as SOX and PCI DSS require a reconstructable history of changes, and incident response depends on the same trail."
40
+ }
41
+ ],
42
+ "relations": []
43
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-auth-response-time",
4
+ "category": "requirement",
5
+ "name": "Authentication Latency",
6
+ "description": "Latency budget for the login and token-issuance flow.",
7
+ "tags": [
8
+ "performance",
9
+ "authentication",
10
+ "latency",
11
+ "ux"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "AUTH_P95_MS",
17
+ "label": "p95 authentication latency (ms)",
18
+ "hint": "1500",
19
+ "type": "number",
20
+ "defaultValue": "1500"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "req-auth",
25
+ "adr-auth-strategy"
26
+ ]
27
+ },
28
+ "nodes": [
29
+ {
30
+ "id": "req-auth-response-time-1",
31
+ "type": "requirement",
32
+ "label": "Authentication Latency",
33
+ "x": 0,
34
+ "y": 0,
35
+ "width": 200,
36
+ "height": 80,
37
+ "collapsed": false,
38
+ "ears_type": "event-driven",
39
+ "trigger": "a user submits credentials or a client presents a token for verification",
40
+ "action": "complete credential validation and token issuance within {{AUTH_P95_MS}} ms at the 95th percentile, including any calls to external identity providers",
41
+ "rationale": "Login is on the critical path of every session and is the first impression of system responsiveness; slow authentication inflates abandonment before the product is even seen."
42
+ }
43
+ ],
44
+ "relations": []
45
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-auth",
4
+ "category": "requirement",
5
+ "name": "API Authentication",
6
+ "description": "Every API request is authenticated with a standard protocol before any processing takes place.",
7
+ "tags": [
8
+ "security",
9
+ "authentication",
10
+ "api"
11
+ ],
12
+ "requiredMetamodel": "c4-ddd-governance-builtin",
13
+ "templateParams": [
14
+ {
15
+ "key": "AUTH_PROTOCOL",
16
+ "label": "Authentication protocol",
17
+ "hint": "OAuth 2.0 / OIDC",
18
+ "defaultValue": "OAuth 2.0 / OIDC"
19
+ }
20
+ ],
21
+ "hubRefs": [
22
+ "adr-auth-strategy",
23
+ "pattern-api-gateway",
24
+ "req-auth-response-time"
25
+ ]
26
+ },
27
+ "nodes": [
28
+ {
29
+ "id": "req-auth-1",
30
+ "type": "requirement",
31
+ "label": "API Authentication",
32
+ "x": 0,
33
+ "y": 0,
34
+ "width": 200,
35
+ "height": 80,
36
+ "collapsed": false,
37
+ "ears_type": "ubiquitous",
38
+ "action": "authenticate every API request using {{AUTH_PROTOCOL}} and reject unauthenticated or expired credentials with HTTP 401 before executing any business logic",
39
+ "rationale": "Authentication at the boundary is the precondition for every other access-control decision; a single unauthenticated endpoint undermines the whole model."
40
+ }
41
+ ],
42
+ "relations": []
43
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-autoscaling",
4
+ "category": "requirement",
5
+ "name": "Automatic Scale-Out",
6
+ "description": "Horizontal scaling that reacts to load without operator intervention, bounded by a cost ceiling.",
7
+ "tags": [
8
+ "scalability",
9
+ "elasticity",
10
+ "cloud"
11
+ ],
12
+ "requiredMetamodel": "c4-ddd-governance-builtin",
13
+ "templateParams": [
14
+ {
15
+ "key": "SCALE_TRIGGER_CPU_PCT",
16
+ "label": "Scale-out trigger (avg CPU %)",
17
+ "hint": "60",
18
+ "type": "number",
19
+ "defaultValue": "60"
20
+ },
21
+ {
22
+ "key": "SCALE_OUT_SECONDS",
23
+ "label": "Time to add capacity (s)",
24
+ "hint": "120",
25
+ "type": "number",
26
+ "defaultValue": "120"
27
+ },
28
+ {
29
+ "key": "MAX_INSTANCES",
30
+ "label": "Maximum instance count",
31
+ "hint": "20",
32
+ "type": "number",
33
+ "defaultValue": "20"
34
+ }
35
+ ],
36
+ "hubRefs": [
37
+ "req-resource-headroom",
38
+ "req-throughput",
39
+ "req-resource-isolation",
40
+ "ff-scale-out-verification",
41
+ "req-fast-startup-graceful-shutdown"
42
+ ]
43
+ },
44
+ "nodes": [
45
+ {
46
+ "id": "req-autoscaling-1",
47
+ "type": "requirement",
48
+ "label": "Automatic Scale-Out",
49
+ "x": 0,
50
+ "y": 0,
51
+ "width": 200,
52
+ "height": 80,
53
+ "collapsed": false,
54
+ "ears_type": "complex",
55
+ "trigger": "average CPU utilisation exceeds {{SCALE_TRIGGER_CPU_PCT}}% for two consecutive minutes",
56
+ "precondition": "fewer than {{MAX_INSTANCES}} instances are running",
57
+ "action": "add compute instances so that new capacity is serving traffic within {{SCALE_OUT_SECONDS}} seconds, and scale back in when load subsides",
58
+ "rationale": "Manual scaling is too slow for traffic spikes and too expensive to leave permanently provisioned; an upper bound keeps a misbehaving client from turning into an unbounded bill."
59
+ }
60
+ ],
61
+ "relations": []
62
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-availability",
4
+ "category": "requirement",
5
+ "name": "Service Availability",
6
+ "description": "Uptime target measured over a fixed window. Typical tiers: 99.0% for internal tools, 99.9% for customer-facing services, 99.99% for revenue- or safety-critical paths.",
7
+ "tags": [
8
+ "availability",
9
+ "reliability",
10
+ "sla",
11
+ "slo"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "AVAILABILITY_TARGET",
17
+ "label": "Availability target (%)",
18
+ "hint": "99.9",
19
+ "defaultValue": "99.9"
20
+ },
21
+ {
22
+ "key": "MEASUREMENT_WINDOW",
23
+ "label": "Measurement window",
24
+ "hint": "calendar month",
25
+ "defaultValue": "calendar month"
26
+ }
27
+ ],
28
+ "hubRefs": [
29
+ "ff-error-budget",
30
+ "req-disaster-recovery",
31
+ "req-zero-downtime-deploy"
32
+ ]
33
+ },
34
+ "nodes": [
35
+ {
36
+ "id": "req-availability-1",
37
+ "type": "requirement",
38
+ "label": "Service Availability",
39
+ "x": 0,
40
+ "y": 0,
41
+ "width": 200,
42
+ "height": 80,
43
+ "collapsed": false,
44
+ "ears_type": "ubiquitous",
45
+ "action": "be available for at least {{AVAILABILITY_TARGET}}% of each {{MEASUREMENT_WINDOW}}, where \"available\" means successfully serving requests within the agreed response-time targets",
46
+ "rationale": "An explicit target sizes the error budget, drives redundancy decisions and gives release policy an objective gate; each additional nine roughly multiplies infrastructure and process cost."
47
+ }
48
+ ],
49
+ "relations": []
50
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-backward-compatibility",
4
+ "category": "requirement",
5
+ "name": "API Backward Compatibility",
6
+ "description": "Published APIs never break existing clients without a versioned transition period.",
7
+ "tags": [
8
+ "principle",
9
+ "interoperability",
10
+ "api",
11
+ "versioning"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "DEPRECATION_MONTHS",
17
+ "label": "Minimum deprecation period (months)",
18
+ "hint": "6",
19
+ "type": "number",
20
+ "defaultValue": "6"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "ff-api-contract",
25
+ "adr-api-versioning",
26
+ "req-api-standard"
27
+ ]
28
+ },
29
+ "nodes": [
30
+ {
31
+ "id": "req-backward-compatibility-1",
32
+ "type": "requirement",
33
+ "label": "API Backward Compatibility",
34
+ "x": 0,
35
+ "y": 0,
36
+ "width": 200,
37
+ "height": 80,
38
+ "collapsed": false,
39
+ "ears_type": "unwanted-behaviour",
40
+ "unwanted_condition": "a change would remove a field, alter a type or change the semantics of a published endpoint",
41
+ "action": "publish the change under a new major version, keep the previous version fully operational for at least {{DEPRECATION_MONTHS}} months, and announce the deprecation via response headers and the changelog",
42
+ "rationale": "Partners upgrade on their own schedule; a breaking change without a transition period converts a release into an incident for every integrator."
43
+ }
44
+ ],
45
+ "relations": []
46
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-batch-job-completion",
4
+ "category": "requirement",
5
+ "name": "Batch Job Completion",
6
+ "description": "Reliability target for scheduled and batch workloads, with retries for transient errors and a dead-letter path for the rest.",
7
+ "tags": [
8
+ "reliability",
9
+ "batch",
10
+ "scheduling"
11
+ ],
12
+ "requiredMetamodel": "c4-ddd-governance-builtin",
13
+ "templateParams": [
14
+ {
15
+ "key": "MIN_SUCCESS_PCT",
16
+ "label": "Successful runs per month (%)",
17
+ "hint": "99.5",
18
+ "type": "number",
19
+ "defaultValue": "99.5"
20
+ },
21
+ {
22
+ "key": "MAX_RETRIES",
23
+ "label": "Automatic retries per job",
24
+ "hint": "3",
25
+ "type": "number",
26
+ "defaultValue": "3"
27
+ }
28
+ ],
29
+ "hubRefs": [
30
+ "req-idempotency",
31
+ "req-error-rate"
32
+ ]
33
+ },
34
+ "nodes": [
35
+ {
36
+ "id": "req-batch-job-completion-1",
37
+ "type": "requirement",
38
+ "label": "Batch Job Completion",
39
+ "x": 0,
40
+ "y": 0,
41
+ "width": 200,
42
+ "height": 80,
43
+ "collapsed": false,
44
+ "ears_type": "ubiquitous",
45
+ "action": "complete at least {{MIN_SUCCESS_PCT}}% of scheduled job runs successfully each month, retrying transient failures up to {{MAX_RETRIES}} times with exponential back-off and routing persistent failures to a dead-letter queue with an alert",
46
+ "rationale": "Batch pipelines fail silently unless success is measured; bounded retries absorb infrastructure hiccups while the dead-letter path keeps genuine faults visible."
47
+ }
48
+ ],
49
+ "relations": []
50
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-carbon-efficiency",
4
+ "category": "requirement",
5
+ "name": "Compute Carbon Efficiency",
6
+ "description": "Ceiling on estimated carbon emissions per unit of useful work, tracked alongside cost so sustainability is a deliberate engineering trade-off, not an afterthought.",
7
+ "tags": [
8
+ "sustainability",
9
+ "carbon",
10
+ "cost",
11
+ "well-architected",
12
+ "cloud"
13
+ ],
14
+ "requiredMetamodel": "c4-ddd-governance-builtin",
15
+ "templateParams": [
16
+ {
17
+ "key": "WORK_UNIT",
18
+ "label": "Unit of work",
19
+ "hint": "1,000 requests",
20
+ "defaultValue": "1,000 requests"
21
+ },
22
+ {
23
+ "key": "MAX_CARBON_PER_UNIT",
24
+ "label": "Max carbon per unit",
25
+ "hint": "10 gCO2e",
26
+ "defaultValue": "10 gCO2e"
27
+ }
28
+ ],
29
+ "hubRefs": [
30
+ "ff-carbon-footprint-guard",
31
+ "req-resource-efficiency",
32
+ "ff-cost-efficiency-guard"
33
+ ]
34
+ },
35
+ "nodes": [
36
+ {
37
+ "id": "req-carbon-efficiency-1",
38
+ "type": "requirement",
39
+ "label": "Compute Carbon Efficiency",
40
+ "x": 0,
41
+ "y": 0,
42
+ "width": 260,
43
+ "height": 80,
44
+ "collapsed": false,
45
+ "ears_type": "ubiquitous",
46
+ "action": "keep estimated carbon emissions per {{WORK_UNIT}} at or below {{MAX_CARBON_PER_UNIT}}, tracked via the cloud provider's carbon/energy reporting tools and reviewed quarterly",
47
+ "rationale": "Carbon efficiency and cost efficiency are usually the same lever — right-sizing, higher utilisation, newer hardware, managed/serverless services — so tracking it is cheap once cost efficiency is already tracked, and it is increasingly a procurement requirement in enterprise and public-sector RFPs.",
48
+ "templateParams": [
49
+ {
50
+ "key": "WORK_UNIT",
51
+ "label": "Unit of work",
52
+ "hint": "1,000 requests",
53
+ "defaultValue": "1,000 requests"
54
+ },
55
+ {
56
+ "key": "MAX_CARBON_PER_UNIT",
57
+ "label": "Max carbon per unit",
58
+ "hint": "10 gCO2e",
59
+ "defaultValue": "10 gCO2e"
60
+ }
61
+ ]
62
+ }
63
+ ]
64
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-centralised-logging",
4
+ "category": "requirement",
5
+ "name": "Structured Centralised Logging",
6
+ "description": "All services emit structured logs with correlation identifiers into one queryable store.",
7
+ "tags": [
8
+ "principle",
9
+ "observability",
10
+ "logging",
11
+ "operations"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "LOG_RETENTION_DAYS",
17
+ "label": "Log retention (days)",
18
+ "hint": "30",
19
+ "type": "number",
20
+ "defaultValue": "30"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "adr-observability",
25
+ "req-distributed-tracing",
26
+ "req-audit-logging"
27
+ ]
28
+ },
29
+ "nodes": [
30
+ {
31
+ "id": "req-centralised-logging-1",
32
+ "type": "requirement",
33
+ "label": "Structured Centralised Logging",
34
+ "x": 0,
35
+ "y": 0,
36
+ "width": 200,
37
+ "height": 80,
38
+ "collapsed": false,
39
+ "ears_type": "ubiquitous",
40
+ "action": "emit logs as structured JSON with timestamp, severity, service, version and trace/correlation identifiers, shipped to a central store that is searchable for at least {{LOG_RETENTION_DAYS}} days",
41
+ "rationale": "Diagnosing a cross-service incident requires joining logs by correlation id in one place; logs scattered across hosts in free text cannot be queried under time pressure."
42
+ }
43
+ ],
44
+ "relations": []
45
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-ci-pipeline-time",
4
+ "category": "requirement",
5
+ "name": "CI Feedback Time",
6
+ "description": "The pipeline gives developers a verdict fast enough to keep them in flow.",
7
+ "tags": [
8
+ "maintainability",
9
+ "ci-cd",
10
+ "developer-experience"
11
+ ],
12
+ "requiredMetamodel": "c4-ddd-governance-builtin",
13
+ "templateParams": [
14
+ {
15
+ "key": "MAX_PIPELINE_MINUTES",
16
+ "label": "Max pipeline duration (min)",
17
+ "hint": "10",
18
+ "type": "number",
19
+ "defaultValue": "10"
20
+ }
21
+ ],
22
+ "hubRefs": [
23
+ "ff-lead-time"
24
+ ]
25
+ },
26
+ "nodes": [
27
+ {
28
+ "id": "req-ci-pipeline-time-1",
29
+ "type": "requirement",
30
+ "label": "CI Feedback Time",
31
+ "x": 0,
32
+ "y": 0,
33
+ "width": 200,
34
+ "height": 80,
35
+ "collapsed": false,
36
+ "ears_type": "event-driven",
37
+ "trigger": "a developer pushes a commit to a branch",
38
+ "action": "complete build, static analysis, unit and integration tests and security scanning within {{MAX_PIPELINE_MINUTES}} minutes, parallelising or tiering slower suites as needed",
39
+ "rationale": "Slow pipelines push developers to batch commits and context-switch away, which delays feedback on regressions and inflates the size of every change."
40
+ }
41
+ ],
42
+ "relations": []
43
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "hub": {
3
+ "id": "req-code-complexity",
4
+ "category": "requirement",
5
+ "name": "Code Complexity Limit",
6
+ "description": "A ceiling on per-function cyclomatic complexity, enforced by static analysis.",
7
+ "tags": [
8
+ "maintainability",
9
+ "code-quality",
10
+ "static-analysis"
11
+ ],
12
+ "requiredMetamodel": "c4-ddd-governance-builtin",
13
+ "templateParams": [
14
+ {
15
+ "key": "MAX_COMPLEXITY",
16
+ "label": "Max cyclomatic complexity per function",
17
+ "hint": "10",
18
+ "type": "number",
19
+ "defaultValue": "10"
20
+ }
21
+ ],
22
+ "hubRefs": [
23
+ "ff-dependency-rules",
24
+ "ff-duplication-guard"
25
+ ]
26
+ },
27
+ "nodes": [
28
+ {
29
+ "id": "req-code-complexity-1",
30
+ "type": "requirement",
31
+ "label": "Code Complexity Limit",
32
+ "x": 0,
33
+ "y": 0,
34
+ "width": 200,
35
+ "height": 80,
36
+ "collapsed": false,
37
+ "ears_type": "ubiquitous",
38
+ "action": "keep cyclomatic complexity below {{MAX_COMPLEXITY}} for every function, failing the build on new violations and tracking existing ones as technical debt",
39
+ "rationale": "Highly branched functions need disproportionately many test cases and are where defects concentrate; a hard limit forces decomposition while the code is still fresh."
40
+ }
41
+ ],
42
+ "relations": []
43
+ }