@radicaltools/mcp 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +148 -2
  3. package/dist/chunk-OGN3UW2D.js +2594 -0
  4. package/dist/elkLayout-S62RLGTO.js +8 -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 +19422 -0
  134. package/package.json +48 -4
@@ -0,0 +1,52 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-dr-drill-success",
4
+ "category": "fitness-function",
5
+ "name": "Disaster Recovery Drill",
6
+ "description": "Periodically executes a real failover to the secondary region and measures actual recovery time and data loss against the declared targets, instead of trusting the runbook was never tested.",
7
+ "tags": [
8
+ "process",
9
+ "disaster-recovery",
10
+ "resilience",
11
+ "operations"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "DRILLS_PER_YEAR",
17
+ "label": "Drills per year",
18
+ "hint": "2",
19
+ "type": "number",
20
+ "defaultValue": "2"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "req-disaster-recovery",
25
+ "adr-multi-region"
26
+ ]
27
+ },
28
+ "nodes": [
29
+ {
30
+ "id": "ff-dr-drill-success-1",
31
+ "type": "fitness-fn",
32
+ "label": "Disaster Recovery Drill",
33
+ "x": 0,
34
+ "y": 0,
35
+ "width": 260,
36
+ "height": 52,
37
+ "collapsed": false,
38
+ "description": "Periodically executes a real failover to the secondary region and measures actual recovery time and data loss against the declared targets, instead of trusting the runbook was never tested.",
39
+ "category": "process",
40
+ "threshold": "Failover completes within the declared RTO and measured data loss stays within the declared RPO, verified at least {{DRILLS_PER_YEAR}} times a year",
41
+ "templateParams": [
42
+ {
43
+ "key": "DRILLS_PER_YEAR",
44
+ "label": "Drills per year",
45
+ "hint": "2",
46
+ "type": "number",
47
+ "defaultValue": "2"
48
+ }
49
+ ]
50
+ }
51
+ ]
52
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-duplication-guard",
4
+ "category": "fitness-function",
5
+ "name": "Duplication Guard",
6
+ "description": "Limits how much of the codebase is near-duplicate logic. High duplication is the earliest structural signal that a shared abstraction is missing, and it multiplies the cost of every future bug fix by however many copies exist.",
7
+ "tags": [
8
+ "structural",
9
+ "duplication",
10
+ "code-quality",
11
+ "reusability"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "MAX_DUPLICATION_PCT",
17
+ "label": "Max duplicated lines (%)",
18
+ "hint": "3",
19
+ "type": "number",
20
+ "defaultValue": "3"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "ff-coupling-guard",
25
+ "ff-dependency-rules",
26
+ "req-code-complexity"
27
+ ]
28
+ },
29
+ "nodes": [
30
+ {
31
+ "id": "ff-duplication-guard-1",
32
+ "type": "fitness-fn",
33
+ "label": "Duplication Guard",
34
+ "x": 0,
35
+ "y": 0,
36
+ "width": 260,
37
+ "height": 52,
38
+ "collapsed": false,
39
+ "description": "Limits how much of the codebase is near-duplicate logic. High duplication is the earliest structural signal that a shared abstraction is missing, and it multiplies the cost of every future bug fix by however many copies exist.",
40
+ "category": "structural",
41
+ "threshold": "No more than {{MAX_DUPLICATION_PCT}}% of lines flagged as duplicated across the codebase",
42
+ "templateParams": [
43
+ {
44
+ "key": "MAX_DUPLICATION_PCT",
45
+ "label": "Max duplicated lines (%)",
46
+ "hint": "3",
47
+ "type": "number",
48
+ "defaultValue": "3"
49
+ }
50
+ ]
51
+ }
52
+ ]
53
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-error-budget",
4
+ "category": "fitness-function",
5
+ "name": "Error Budget Burn Rate",
6
+ "description": "Tracks how fast an SLO's error budget is being consumed and freezes risky releases when it burns too fast. The core SRE feedback loop between reliability and delivery speed.",
7
+ "tags": [
8
+ "operational",
9
+ "sre",
10
+ "slo",
11
+ "reliability"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "FAST_BURN_RATE",
17
+ "label": "Fast-burn alert multiplier (1 h window)",
18
+ "hint": "14.4",
19
+ "type": "number",
20
+ "defaultValue": "14.4"
21
+ },
22
+ {
23
+ "key": "SLOW_BURN_RATE",
24
+ "label": "Slow-burn alert multiplier (6 h window)",
25
+ "hint": "6",
26
+ "type": "number",
27
+ "defaultValue": "6"
28
+ },
29
+ {
30
+ "key": "FREEZE_REMAINING_PCT",
31
+ "label": "Freeze releases below remaining budget (%)",
32
+ "hint": "20",
33
+ "type": "number",
34
+ "defaultValue": "20"
35
+ }
36
+ ],
37
+ "hubRefs": [
38
+ "req-availability",
39
+ "req-error-rate",
40
+ "req-alerting"
41
+ ]
42
+ },
43
+ "nodes": [
44
+ {
45
+ "id": "ff-error-budget-1",
46
+ "type": "fitness-fn",
47
+ "label": "Error Budget Burn Rate",
48
+ "description": "Computes burn rate = (observed error ratio) / (1 − SLO) over two windows. A fast burn of {{FAST_BURN_RATE}}× over 1 h pages immediately; a slow burn of {{SLOW_BURN_RATE}}× over 6 h opens a ticket. Remaining budget for the 30-day window gates the release pipeline.",
49
+ "x": 0,
50
+ "y": 0,
51
+ "width": 180,
52
+ "height": 52,
53
+ "collapsed": false,
54
+ "category": "operational",
55
+ "threshold": "Burn rate < {{FAST_BURN_RATE}}× (1 h) and < {{SLOW_BURN_RATE}}× (6 h); releases blocked when remaining 30-day budget < {{FREEZE_REMAINING_PCT}}%"
56
+ }
57
+ ],
58
+ "relations": []
59
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-fail-safe-verification",
4
+ "category": "fitness-function",
5
+ "name": "Fail-Safe Verification",
6
+ "description": "Runs the system against a suite of deliberately low-confidence and ambiguous inputs and confirms it falls back to the safe default and hands off, rather than proceeding on a guess.",
7
+ "tags": [
8
+ "operational",
9
+ "safety",
10
+ "ai",
11
+ "testing"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "hubRefs": [
15
+ "req-fail-safe-default",
16
+ "req-ai-groundedness"
17
+ ]
18
+ },
19
+ "nodes": [
20
+ {
21
+ "id": "ff-fail-safe-verification-1",
22
+ "type": "fitness-fn",
23
+ "label": "Fail-Safe Verification",
24
+ "x": 0,
25
+ "y": 0,
26
+ "width": 260,
27
+ "height": 52,
28
+ "collapsed": false,
29
+ "description": "Runs the system against a suite of deliberately low-confidence and ambiguous inputs and confirms it falls back to the safe default and hands off, rather than proceeding on a guess.",
30
+ "category": "operational",
31
+ "threshold": "100% of the low-confidence/ambiguous test suite triggers the fail-safe fallback, not a guessed action"
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-infra-drift",
4
+ "category": "fitness-function",
5
+ "name": "Infrastructure Drift Detection",
6
+ "description": "Detects live infrastructure that no longer matches the infrastructure-as-code definition, i.e. changes made outside the pipeline.",
7
+ "tags": [
8
+ "operational",
9
+ "infrastructure",
10
+ "iac",
11
+ "devops"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "hubRefs": [
15
+ "req-iac"
16
+ ]
17
+ },
18
+ "nodes": [
19
+ {
20
+ "id": "ff-infra-drift-1",
21
+ "type": "fitness-fn",
22
+ "label": "Infrastructure Drift Detection",
23
+ "description": "Runs a read-only plan (e.g. terraform plan -detailed-exitcode) for every stack on a schedule and after each apply. Any planned change on an unchanged codebase is drift; the diff is attached to an alert and, for production, an incident ticket.",
24
+ "x": 0,
25
+ "y": 0,
26
+ "width": 180,
27
+ "height": 52,
28
+ "collapsed": false,
29
+ "category": "operational",
30
+ "threshold": "0 resources drifted from the committed state in production stacks"
31
+ }
32
+ ],
33
+ "relations": []
34
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-latency-slo",
4
+ "category": "fitness-function",
5
+ "name": "Latency SLO Guard",
6
+ "description": "Continuously compares tail latency against the SLO and fails the check when the budget is breached. The verification side of an API response-time requirement.",
7
+ "tags": [
8
+ "operational",
9
+ "performance",
10
+ "slo",
11
+ "latency"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "LATENCY_PERCENTILE",
17
+ "label": "Percentile",
18
+ "hint": "p95",
19
+ "defaultValue": "p95"
20
+ },
21
+ {
22
+ "key": "LATENCY_THRESHOLD_MS",
23
+ "label": "Threshold (ms)",
24
+ "hint": "300",
25
+ "type": "number",
26
+ "defaultValue": "300"
27
+ },
28
+ {
29
+ "key": "EVAL_WINDOW_MINUTES",
30
+ "label": "Evaluation window (min)",
31
+ "hint": "5",
32
+ "type": "number",
33
+ "defaultValue": "5"
34
+ }
35
+ ],
36
+ "hubRefs": [
37
+ "req-api-response-time",
38
+ "ff-error-budget",
39
+ "pattern-bulkhead",
40
+ "ff-capacity-load-test"
41
+ ]
42
+ },
43
+ "nodes": [
44
+ {
45
+ "id": "ff-latency-slo-1",
46
+ "type": "fitness-fn",
47
+ "label": "Latency SLO Guard",
48
+ "description": "Queries the metrics backend for {{LATENCY_PERCENTILE}} request latency over a rolling {{EVAL_WINDOW_MINUTES}}-minute window, per endpoint group. Runs as a recording rule in production and as a synthetic load check in the pre-production gate.",
49
+ "x": 0,
50
+ "y": 0,
51
+ "width": 180,
52
+ "height": 52,
53
+ "collapsed": false,
54
+ "category": "operational",
55
+ "threshold": "{{LATENCY_PERCENTILE}} latency ≤ {{LATENCY_THRESHOLD_MS}} ms over every {{EVAL_WINDOW_MINUTES}}-minute window"
56
+ }
57
+ ],
58
+ "relations": []
59
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-lead-time",
4
+ "category": "fitness-function",
5
+ "name": "Lead Time for Changes",
6
+ "description": "Time from commit to running in production. One of the four DORA metrics; the shorter it is, the faster the feedback loop.",
7
+ "tags": [
8
+ "process",
9
+ "dora",
10
+ "delivery",
11
+ "devops"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "MAX_LEAD_TIME_HOURS",
17
+ "label": "Max median lead time (h)",
18
+ "hint": "24",
19
+ "type": "number",
20
+ "defaultValue": "24"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "ff-deploy-frequency",
25
+ "req-ci-pipeline-time"
26
+ ]
27
+ },
28
+ "nodes": [
29
+ {
30
+ "id": "ff-lead-time-1",
31
+ "type": "fitness-fn",
32
+ "label": "Lead Time for Changes",
33
+ "description": "For each production deployment, takes the commit timestamps of the included changes and computes the median commit-to-deploy interval. Sourced from the VCS and CD system; reported weekly.",
34
+ "x": 0,
35
+ "y": 0,
36
+ "width": 180,
37
+ "height": 52,
38
+ "collapsed": false,
39
+ "category": "process",
40
+ "threshold": "Median lead time ≤ {{MAX_LEAD_TIME_HOURS}} h (4-week rolling)"
41
+ }
42
+ ],
43
+ "relations": []
44
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-ledger-balance-integrity",
4
+ "category": "fitness-function",
5
+ "name": "Ledger Balance Integrity Check",
6
+ "description": "Continuously verifies that every journal entry's debits equal its credits, and that projected account balances match a full replay of the journal from genesis — flagging any drift immediately rather than at the next audit.",
7
+ "tags": [
8
+ "fintech",
9
+ "ledger",
10
+ "structural",
11
+ "correctness"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "CHECK_INTERVAL_MIN",
17
+ "label": "Integrity check interval (minutes)",
18
+ "hint": "5",
19
+ "type": "number",
20
+ "defaultValue": "5"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "pattern-event-sourced-ledger",
25
+ "req-ledger-immutability",
26
+ "req-data-integrity"
27
+ ]
28
+ },
29
+ "nodes": [
30
+ {
31
+ "id": "ff-ledger-balance-integrity-1",
32
+ "type": "fitness-fn",
33
+ "label": "Ledger Balance Integrity Check",
34
+ "description": "Sums debits and credits on every posted entry — must net to zero — and periodically replays the entire journal from genesis into a shadow balance set, diffing it against the live projection.",
35
+ "x": 0,
36
+ "y": 0,
37
+ "width": 180,
38
+ "height": 52,
39
+ "collapsed": false,
40
+ "category": "structural",
41
+ "threshold": "0 unbalanced entries at post time; 0 drift between live and replayed balances, checked every {{CHECK_INTERVAL_MIN}} minutes"
42
+ }
43
+ ],
44
+ "relations": []
45
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-license-compliance",
4
+ "category": "fitness-function",
5
+ "name": "License Compliance",
6
+ "description": "Ensures third-party dependencies carry licences compatible with the product's distribution model.",
7
+ "tags": [
8
+ "structural",
9
+ "compliance",
10
+ "supply-chain",
11
+ "legal"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "DENIED_LICENSES",
17
+ "label": "Denied licence identifiers",
18
+ "hint": "GPL-3.0, AGPL-3.0, SSPL-1.0",
19
+ "defaultValue": "GPL-3.0, AGPL-3.0, SSPL-1.0"
20
+ }
21
+ ],
22
+ "hubRefs": [
23
+ "req-vulnerability-scanning",
24
+ "ff-security-scan"
25
+ ]
26
+ },
27
+ "nodes": [
28
+ {
29
+ "id": "ff-license-compliance-1",
30
+ "type": "fitness-fn",
31
+ "label": "License Compliance",
32
+ "description": "Generates an SBOM (CycloneDX/SPDX) at build time and evaluates every component licence against an allow/deny list. Unknown licences are treated as denied until reviewed.",
33
+ "x": 0,
34
+ "y": 0,
35
+ "width": 180,
36
+ "height": 52,
37
+ "collapsed": false,
38
+ "category": "structural",
39
+ "threshold": "0 dependencies licensed under {{DENIED_LICENSES}} or with an unidentified licence"
40
+ }
41
+ ],
42
+ "relations": []
43
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-mttr",
4
+ "category": "fitness-function",
5
+ "name": "Time to Restore Service",
6
+ "description": "How long it takes to recover from a production failure. One of the four DORA metrics; measures the effectiveness of observability, runbooks and rollback.",
7
+ "tags": [
8
+ "process",
9
+ "dora",
10
+ "reliability",
11
+ "incident-management"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "MAX_MTTR_HOURS",
17
+ "label": "Max median time to restore (h)",
18
+ "hint": "1",
19
+ "type": "number",
20
+ "defaultValue": "1"
21
+ }
22
+ ],
23
+ "hubRefs": [
24
+ "ff-change-failure-rate",
25
+ "req-alerting",
26
+ "req-zero-downtime-deploy"
27
+ ]
28
+ },
29
+ "nodes": [
30
+ {
31
+ "id": "ff-mttr-1",
32
+ "type": "fitness-fn",
33
+ "label": "Time to Restore Service",
34
+ "description": "From the incident tool: time between incident detection (first alert or report) and service restoration for user-impacting incidents, median per month. Excludes post-incident review time.",
35
+ "x": 0,
36
+ "y": 0,
37
+ "width": 180,
38
+ "height": 52,
39
+ "collapsed": false,
40
+ "category": "process",
41
+ "threshold": "Median time to restore ≤ {{MAX_MTTR_HOURS}} h"
42
+ }
43
+ ],
44
+ "relations": []
45
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-noisy-neighbor-guard",
4
+ "category": "fitness-function",
5
+ "name": "Noisy Neighbour Guard",
6
+ "description": "Continuously measures each tenant's or workload's share of shared infrastructure resources and fails the check when one occupant sustains disproportionate consumption long enough to risk degrading its neighbours.",
7
+ "tags": [
8
+ "operational",
9
+ "multi-tenancy",
10
+ "co-existence",
11
+ "capacity"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "MAX_SHARE_PCT",
17
+ "label": "Max sustained share of a shared pool (%)",
18
+ "hint": "20",
19
+ "type": "number",
20
+ "defaultValue": "20"
21
+ },
22
+ {
23
+ "key": "SUSTAINED_MINUTES",
24
+ "label": "Sustained duration before it counts (minutes)",
25
+ "hint": "5",
26
+ "type": "number",
27
+ "defaultValue": "5"
28
+ }
29
+ ],
30
+ "hubRefs": [
31
+ "req-resource-isolation",
32
+ "adr-multi-tenancy-strategy"
33
+ ]
34
+ },
35
+ "nodes": [
36
+ {
37
+ "id": "ff-noisy-neighbor-guard-1",
38
+ "type": "fitness-fn",
39
+ "label": "Noisy Neighbour Guard",
40
+ "x": 0,
41
+ "y": 0,
42
+ "width": 260,
43
+ "height": 52,
44
+ "collapsed": false,
45
+ "description": "Continuously measures each tenant's or workload's share of shared infrastructure resources and fails the check when one occupant sustains disproportionate consumption long enough to risk degrading its neighbours.",
46
+ "category": "operational",
47
+ "threshold": "No single tenant or workload sustains more than {{MAX_SHARE_PCT}}% of a shared resource pool for longer than {{SUSTAINED_MINUTES}} minutes",
48
+ "templateParams": [
49
+ {
50
+ "key": "MAX_SHARE_PCT",
51
+ "label": "Max sustained share of a shared pool (%)",
52
+ "hint": "20",
53
+ "type": "number",
54
+ "defaultValue": "20"
55
+ },
56
+ {
57
+ "key": "SUSTAINED_MINUTES",
58
+ "label": "Sustained duration before it counts (minutes)",
59
+ "hint": "5",
60
+ "type": "number",
61
+ "defaultValue": "5"
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-sast-scan",
4
+ "category": "fitness-function",
5
+ "name": "Static Application Security Testing (SAST)",
6
+ "description": "Scans source code on every change for injection flaws, XSS, hardcoded secrets and other code-level weaknesses by tracing data flow from untrusted input to dangerous sinks — the code-level counterpart to dependency vulnerability scanning.",
7
+ "tags": [
8
+ "structural",
9
+ "security",
10
+ "sast",
11
+ "owasp"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "hubRefs": [
15
+ "req-input-validation",
16
+ "ff-security-scan",
17
+ "req-secrets-management"
18
+ ]
19
+ },
20
+ "nodes": [
21
+ {
22
+ "id": "ff-sast-scan-1",
23
+ "type": "fitness-fn",
24
+ "label": "Static Application Security Testing (SAST)",
25
+ "x": 0,
26
+ "y": 0,
27
+ "width": 260,
28
+ "height": 52,
29
+ "collapsed": false,
30
+ "description": "Scans source code on every change for injection flaws, XSS, hardcoded secrets and other code-level weaknesses by tracing data flow from untrusted input to dangerous sinks — the code-level counterpart to dependency vulnerability scanning.",
31
+ "category": "structural",
32
+ "threshold": "Zero unresolved high/critical-severity findings; new findings block merge, existing findings tracked with an owner and a due date"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "hub": {
3
+ "id": "ff-scale-out-verification",
4
+ "category": "fitness-function",
5
+ "name": "Scale-Out Verification",
6
+ "description": "Periodically drives synthetic load past the scale-out trigger and confirms autoscaling actually adds capacity and stabilises within the declared time, instead of assuming the policy still works.",
7
+ "tags": [
8
+ "operational",
9
+ "scalability",
10
+ "elasticity",
11
+ "load-testing"
12
+ ],
13
+ "requiredMetamodel": "c4-ddd-governance-builtin",
14
+ "templateParams": [
15
+ {
16
+ "key": "SCALE_OUT_SECONDS",
17
+ "label": "Max time to add capacity (s)",
18
+ "hint": "120",
19
+ "type": "number",
20
+ "defaultValue": "120"
21
+ },
22
+ {
23
+ "key": "STABILISE_SECONDS",
24
+ "label": "Max time for latency to recover (s)",
25
+ "hint": "60",
26
+ "type": "number",
27
+ "defaultValue": "60"
28
+ }
29
+ ],
30
+ "hubRefs": [
31
+ "req-autoscaling",
32
+ "req-resource-headroom"
33
+ ]
34
+ },
35
+ "nodes": [
36
+ {
37
+ "id": "ff-scale-out-verification-1",
38
+ "type": "fitness-fn",
39
+ "label": "Scale-Out Verification",
40
+ "x": 0,
41
+ "y": 0,
42
+ "width": 260,
43
+ "height": 52,
44
+ "collapsed": false,
45
+ "description": "Periodically drives synthetic load past the scale-out trigger and confirms autoscaling actually adds capacity and stabilises within the declared time, instead of assuming the policy still works.",
46
+ "category": "operational",
47
+ "threshold": "Additional capacity comes online within {{SCALE_OUT_SECONDS}}s of crossing the scale-out trigger, and latency returns within its SLO within {{STABILISE_SECONDS}}s after that",
48
+ "templateParams": [
49
+ {
50
+ "key": "SCALE_OUT_SECONDS",
51
+ "label": "Max time to add capacity (s)",
52
+ "hint": "120",
53
+ "type": "number",
54
+ "defaultValue": "120"
55
+ },
56
+ {
57
+ "key": "STABILISE_SECONDS",
58
+ "label": "Max time for latency to recover (s)",
59
+ "hint": "60",
60
+ "type": "number",
61
+ "defaultValue": "60"
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ }