@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.
- package/LICENSE +21 -0
- package/README.md +148 -2
- package/dist/chunk-OGN3UW2D.js +2594 -0
- package/dist/elkLayout-S62RLGTO.js +8 -0
- package/dist/hub-catalogue/adr/adr-api-versioning.radical +53 -0
- package/dist/hub-catalogue/adr/adr-auth-strategy.radical +53 -0
- package/dist/hub-catalogue/adr/adr-caching-strategy.radical +59 -0
- package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +40 -0
- package/dist/hub-catalogue/adr/adr-data-store.radical +47 -0
- package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +53 -0
- package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +53 -0
- package/dist/hub-catalogue/adr/adr-integration-style.radical +50 -0
- package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +38 -0
- package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +40 -0
- package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +39 -0
- package/dist/hub-catalogue/adr/adr-multi-region.radical +60 -0
- package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +41 -0
- package/dist/hub-catalogue/adr/adr-observability.radical +59 -0
- package/dist/hub-catalogue/adr/adr-realtime-transport.radical +38 -0
- package/dist/hub-catalogue/adr/adr-tech-stack.radical +45 -0
- package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +40 -0
- package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +1641 -0
- package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +1428 -0
- package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +1989 -0
- package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +1701 -0
- package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +1792 -0
- package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +1421 -0
- package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +1713 -0
- package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +34 -0
- package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +52 -0
- package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +36 -0
- package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +67 -0
- package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +62 -0
- package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +53 -0
- package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +64 -0
- package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +51 -0
- package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +43 -0
- package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +37 -0
- package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +46 -0
- package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +52 -0
- package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +53 -0
- package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +59 -0
- package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +34 -0
- package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +34 -0
- package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +59 -0
- package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +44 -0
- package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +43 -0
- package/dist/hub-catalogue/fitness-function/ff-mttr.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +66 -0
- package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +35 -0
- package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +66 -0
- package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +66 -0
- package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +45 -0
- package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +43 -0
- package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +57 -0
- package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +88 -0
- package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +168 -0
- package/dist/hub-catalogue/pattern/pattern-bff.radical +179 -0
- package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +114 -0
- package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +219 -0
- package/dist/hub-catalogue/pattern/pattern-cqrs.radical +195 -0
- package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +200 -0
- package/dist/hub-catalogue/pattern/pattern-event-driven.radical +210 -0
- package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +211 -0
- package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +196 -0
- package/dist/hub-catalogue/pattern/pattern-microservices.radical +262 -0
- package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +213 -0
- package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +114 -0
- package/dist/hub-catalogue/pattern/pattern-saga.radical +208 -0
- package/dist/hub-catalogue/pattern/pattern-sidecar.radical +123 -0
- package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +227 -0
- package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +209 -0
- package/dist/hub-catalogue/requirement/req-accessibility.radical +48 -0
- package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +51 -0
- package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +45 -0
- package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +46 -0
- package/dist/hub-catalogue/requirement/req-alerting.radical +52 -0
- package/dist/hub-catalogue/requirement/req-api-response-time.radical +51 -0
- package/dist/hub-catalogue/requirement/req-api-standard.radical +45 -0
- package/dist/hub-catalogue/requirement/req-audit-logging.radical +43 -0
- package/dist/hub-catalogue/requirement/req-auth-response-time.radical +45 -0
- package/dist/hub-catalogue/requirement/req-auth.radical +43 -0
- package/dist/hub-catalogue/requirement/req-autoscaling.radical +62 -0
- package/dist/hub-catalogue/requirement/req-availability.radical +50 -0
- package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +46 -0
- package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +50 -0
- package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +64 -0
- package/dist/hub-catalogue/requirement/req-centralised-logging.radical +45 -0
- package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +43 -0
- package/dist/hub-catalogue/requirement/req-code-complexity.radical +43 -0
- package/dist/hub-catalogue/requirement/req-config-propagation.radical +45 -0
- package/dist/hub-catalogue/requirement/req-data-integrity.radical +35 -0
- package/dist/hub-catalogue/requirement/req-data-retention.radical +44 -0
- package/dist/hub-catalogue/requirement/req-db-query-response.radical +44 -0
- package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +59 -0
- package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +45 -0
- package/dist/hub-catalogue/requirement/req-encryption.radical +49 -0
- package/dist/hub-catalogue/requirement/req-error-rate.radical +45 -0
- package/dist/hub-catalogue/requirement/req-error-recovery.radical +34 -0
- package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +37 -0
- package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +55 -0
- package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +69 -0
- package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +44 -0
- package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +39 -0
- package/dist/hub-catalogue/requirement/req-health-checks.radical +43 -0
- package/dist/hub-catalogue/requirement/req-iac.radical +36 -0
- package/dist/hub-catalogue/requirement/req-idempotency.radical +47 -0
- package/dist/hub-catalogue/requirement/req-input-validation.radical +37 -0
- package/dist/hub-catalogue/requirement/req-least-privilege.radical +47 -0
- package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +38 -0
- package/dist/hub-catalogue/requirement/req-mfa.radical +36 -0
- package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +42 -0
- package/dist/hub-catalogue/requirement/req-onboarding-time.radical +42 -0
- package/dist/hub-catalogue/requirement/req-page-load-time.radical +59 -0
- package/dist/hub-catalogue/requirement/req-payout-latency.radical +46 -0
- package/dist/hub-catalogue/requirement/req-presence-latency.radical +46 -0
- package/dist/hub-catalogue/requirement/req-rate-limiting.radical +45 -0
- package/dist/hub-catalogue/requirement/req-report-generation.radical +44 -0
- package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +64 -0
- package/dist/hub-catalogue/requirement/req-resource-headroom.radical +53 -0
- package/dist/hub-catalogue/requirement/req-resource-isolation.radical +37 -0
- package/dist/hub-catalogue/requirement/req-search-response-time.radical +44 -0
- package/dist/hub-catalogue/requirement/req-secrets-management.radical +45 -0
- package/dist/hub-catalogue/requirement/req-task-success-rate.radical +42 -0
- package/dist/hub-catalogue/requirement/req-test-coverage.radical +42 -0
- package/dist/hub-catalogue/requirement/req-throughput.radical +55 -0
- package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +52 -0
- package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +39 -0
- package/dist/index.js +19422 -0
- package/package.json +48 -4
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-accessibility-scan",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Accessibility Scan",
|
|
6
|
+
"description": "Automated WCAG checks on every build so that regressions in contrast, labelling and keyboard access are caught before release.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"process",
|
|
9
|
+
"accessibility",
|
|
10
|
+
"wcag",
|
|
11
|
+
"quality"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"hubRefs": [
|
|
15
|
+
"req-accessibility"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"nodes": [
|
|
19
|
+
{
|
|
20
|
+
"id": "ff-accessibility-scan-1",
|
|
21
|
+
"type": "fitness-fn",
|
|
22
|
+
"label": "Accessibility Scan",
|
|
23
|
+
"description": "Runs an accessibility engine (axe-core, Pa11y) against component stories and key end-to-end journeys in CI. Automated checks find roughly a third of WCAG issues, so the gate is complemented by a scheduled manual screen-reader review.",
|
|
24
|
+
"x": 0,
|
|
25
|
+
"y": 0,
|
|
26
|
+
"width": 180,
|
|
27
|
+
"height": 52,
|
|
28
|
+
"collapsed": false,
|
|
29
|
+
"category": "process",
|
|
30
|
+
"threshold": "0 critical or serious automated WCAG violations on scanned pages and components"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"relations": []
|
|
34
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-ai-eval-gate",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "AI Evaluation Gate",
|
|
6
|
+
"description": "Runs the model or prompt change against a curated evaluation set and blocks the release when quality metrics regress.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"process",
|
|
9
|
+
"ai",
|
|
10
|
+
"llm",
|
|
11
|
+
"quality"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "MIN_GROUNDEDNESS_PCT",
|
|
17
|
+
"label": "Minimum groundedness (%)",
|
|
18
|
+
"hint": "95",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "95"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "MAX_REGRESSION_PCT",
|
|
24
|
+
"label": "Max allowed drop vs baseline (pp)",
|
|
25
|
+
"hint": "1",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"defaultValue": "1"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"hubRefs": [
|
|
31
|
+
"req-ai-groundedness",
|
|
32
|
+
"req-ai-autonomous-resolution",
|
|
33
|
+
"req-ml-extraction-accuracy"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"nodes": [
|
|
37
|
+
{
|
|
38
|
+
"id": "ff-ai-eval-gate-1",
|
|
39
|
+
"type": "fitness-fn",
|
|
40
|
+
"label": "AI Evaluation Gate",
|
|
41
|
+
"description": "Executes the evaluation dataset (golden answers plus adversarial and out-of-scope prompts) against the candidate model, prompt and retrieval configuration; scores groundedness, task accuracy and refusal correctness with deterministic checks and an LLM judge calibrated against human labels.",
|
|
42
|
+
"x": 0,
|
|
43
|
+
"y": 0,
|
|
44
|
+
"width": 180,
|
|
45
|
+
"height": 52,
|
|
46
|
+
"collapsed": false,
|
|
47
|
+
"category": "process",
|
|
48
|
+
"threshold": "Groundedness ≥ {{MIN_GROUNDEDNESS_PCT}}% and no metric more than {{MAX_REGRESSION_PCT}} pp below the current production baseline"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"relations": []
|
|
52
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-api-contract",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "API Contract Compliance",
|
|
6
|
+
"description": "Checks the running implementation and the published specification against each other and against the previous version, so breaking changes are caught before consumers see them.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"structural",
|
|
9
|
+
"api",
|
|
10
|
+
"compatibility",
|
|
11
|
+
"openapi"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"hubRefs": [
|
|
15
|
+
"req-api-standard",
|
|
16
|
+
"req-backward-compatibility",
|
|
17
|
+
"adr-api-versioning"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"nodes": [
|
|
21
|
+
{
|
|
22
|
+
"id": "ff-api-contract-1",
|
|
23
|
+
"type": "fitness-fn",
|
|
24
|
+
"label": "API Contract Compliance",
|
|
25
|
+
"description": "Diffs the new OpenAPI document against the last released one (e.g. oasdiff, openapi-diff) and classifies changes as breaking or non-breaking; then runs contract tests generated from the spec against the built service. Consumer-driven contracts (Pact) can be added for internal APIs.",
|
|
26
|
+
"x": 0,
|
|
27
|
+
"y": 0,
|
|
28
|
+
"width": 180,
|
|
29
|
+
"height": 52,
|
|
30
|
+
"collapsed": false,
|
|
31
|
+
"category": "structural",
|
|
32
|
+
"threshold": "0 breaking changes within a major version; implementation passes 100% of spec-derived contract tests"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"relations": []
|
|
36
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-capacity-load-test",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Capacity Load Test",
|
|
6
|
+
"description": "Periodically replays production-shaped traffic at the target peak load and confirms the system holds its latency and error-rate targets without operator intervention.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"operational",
|
|
9
|
+
"performance",
|
|
10
|
+
"capacity",
|
|
11
|
+
"load-testing"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "MIN_TPS",
|
|
17
|
+
"label": "Sustained transactions per second",
|
|
18
|
+
"hint": "1000",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "1000"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "TEST_DURATION_MINUTES",
|
|
24
|
+
"label": "Test duration (minutes)",
|
|
25
|
+
"hint": "30",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"defaultValue": "30"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"hubRefs": [
|
|
31
|
+
"req-throughput",
|
|
32
|
+
"req-resource-headroom",
|
|
33
|
+
"ff-latency-slo"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"nodes": [
|
|
37
|
+
{
|
|
38
|
+
"id": "ff-capacity-load-test-1",
|
|
39
|
+
"type": "fitness-fn",
|
|
40
|
+
"label": "Capacity Load Test",
|
|
41
|
+
"x": 0,
|
|
42
|
+
"y": 0,
|
|
43
|
+
"width": 260,
|
|
44
|
+
"height": 52,
|
|
45
|
+
"collapsed": false,
|
|
46
|
+
"description": "Periodically replays production-shaped traffic at the target peak load and confirms the system holds its latency and error-rate targets without operator intervention.",
|
|
47
|
+
"category": "operational",
|
|
48
|
+
"threshold": "Sustains {{MIN_TPS}} transactions/second for {{TEST_DURATION_MINUTES}} minutes with p95 latency and error rate within their SLOs",
|
|
49
|
+
"templateParams": [
|
|
50
|
+
{
|
|
51
|
+
"key": "MIN_TPS",
|
|
52
|
+
"label": "Sustained transactions per second",
|
|
53
|
+
"hint": "1000",
|
|
54
|
+
"type": "number",
|
|
55
|
+
"defaultValue": "1000"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "TEST_DURATION_MINUTES",
|
|
59
|
+
"label": "Test duration (minutes)",
|
|
60
|
+
"hint": "30",
|
|
61
|
+
"type": "number",
|
|
62
|
+
"defaultValue": "30"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-carbon-footprint-guard",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Carbon Footprint Guard",
|
|
6
|
+
"description": "Tracks estimated carbon emissions per unit of useful work using the cloud provider's carbon reporting tools and flags the trend when it moves the wrong way, the same way a cost dashboard would.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"holistic",
|
|
9
|
+
"sustainability",
|
|
10
|
+
"carbon",
|
|
11
|
+
"cloud"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "WORK_UNIT",
|
|
17
|
+
"label": "Unit of work",
|
|
18
|
+
"hint": "1,000 requests",
|
|
19
|
+
"defaultValue": "1,000 requests"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "MAX_CARBON_PER_UNIT",
|
|
23
|
+
"label": "Max carbon per unit",
|
|
24
|
+
"hint": "10 gCO2e",
|
|
25
|
+
"defaultValue": "10 gCO2e"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"hubRefs": [
|
|
29
|
+
"req-carbon-efficiency",
|
|
30
|
+
"ff-cost-efficiency-guard"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"nodes": [
|
|
34
|
+
{
|
|
35
|
+
"id": "ff-carbon-footprint-guard-1",
|
|
36
|
+
"type": "fitness-fn",
|
|
37
|
+
"label": "Carbon Footprint Guard",
|
|
38
|
+
"x": 0,
|
|
39
|
+
"y": 0,
|
|
40
|
+
"width": 260,
|
|
41
|
+
"height": 52,
|
|
42
|
+
"collapsed": false,
|
|
43
|
+
"description": "Tracks estimated carbon emissions per unit of useful work using the cloud provider's carbon reporting tools and flags the trend when it moves the wrong way, the same way a cost dashboard would.",
|
|
44
|
+
"category": "holistic",
|
|
45
|
+
"threshold": "Estimated carbon per {{WORK_UNIT}} stays at or below {{MAX_CARBON_PER_UNIT}} on a trailing quarterly average, or the trend is flat or declining",
|
|
46
|
+
"templateParams": [
|
|
47
|
+
{
|
|
48
|
+
"key": "WORK_UNIT",
|
|
49
|
+
"label": "Unit of work",
|
|
50
|
+
"hint": "1,000 requests",
|
|
51
|
+
"defaultValue": "1,000 requests"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"key": "MAX_CARBON_PER_UNIT",
|
|
55
|
+
"label": "Max carbon per unit",
|
|
56
|
+
"hint": "10 gCO2e",
|
|
57
|
+
"defaultValue": "10 gCO2e"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-change-failure-rate",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Change Failure Rate",
|
|
6
|
+
"description": "Share of production deployments that cause a degradation requiring a fix, rollback or hotfix. One of the four DORA metrics; the quality counterweight to speed.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"process",
|
|
9
|
+
"dora",
|
|
10
|
+
"reliability",
|
|
11
|
+
"delivery"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "MAX_CFR_PCT",
|
|
17
|
+
"label": "Max change failure rate (%)",
|
|
18
|
+
"hint": "15",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "15"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"hubRefs": [
|
|
24
|
+
"ff-deploy-frequency",
|
|
25
|
+
"ff-mttr",
|
|
26
|
+
"adr-deployment-strategy"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"nodes": [
|
|
30
|
+
{
|
|
31
|
+
"id": "ff-change-failure-rate-1",
|
|
32
|
+
"type": "fitness-fn",
|
|
33
|
+
"label": "Change Failure Rate",
|
|
34
|
+
"description": "Links incidents and rollbacks to the deployment that introduced them (deployment markers in the incident tool, or automatic rollback events in CD) and divides by total deployments. Reported monthly per service.",
|
|
35
|
+
"x": 0,
|
|
36
|
+
"y": 0,
|
|
37
|
+
"width": 180,
|
|
38
|
+
"height": 52,
|
|
39
|
+
"collapsed": false,
|
|
40
|
+
"category": "process",
|
|
41
|
+
"threshold": "Change failure rate ≤ {{MAX_CFR_PCT}}% (rolling 30 days)"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"relations": []
|
|
45
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-chaos-resilience-test",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Chaos Resilience Test",
|
|
6
|
+
"description": "Deliberately injects failures — killed instances, network latency, dependency outages — into a controlled environment and verifies the system degrades gracefully instead of cascading.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"operational",
|
|
9
|
+
"resilience",
|
|
10
|
+
"chaos-engineering",
|
|
11
|
+
"fault-tolerance"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "MIN_SCENARIOS_PASSED_PCT",
|
|
17
|
+
"label": "Min fault scenarios passed (%)",
|
|
18
|
+
"hint": "100",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "100"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"hubRefs": [
|
|
24
|
+
"req-graceful-degradation",
|
|
25
|
+
"pattern-circuit-breaker",
|
|
26
|
+
"pattern-bulkhead"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"nodes": [
|
|
30
|
+
{
|
|
31
|
+
"id": "ff-chaos-resilience-test-1",
|
|
32
|
+
"type": "fitness-fn",
|
|
33
|
+
"label": "Chaos Resilience Test",
|
|
34
|
+
"x": 0,
|
|
35
|
+
"y": 0,
|
|
36
|
+
"width": 260,
|
|
37
|
+
"height": 52,
|
|
38
|
+
"collapsed": false,
|
|
39
|
+
"description": "Deliberately injects failures — killed instances, network latency, dependency outages — into a controlled environment and verifies the system degrades gracefully instead of cascading.",
|
|
40
|
+
"category": "operational",
|
|
41
|
+
"threshold": "{{MIN_SCENARIOS_PASSED_PCT}}% of the fault-injection suite completes with core functionality still available and no cascading failure beyond the targeted component",
|
|
42
|
+
"templateParams": [
|
|
43
|
+
{
|
|
44
|
+
"key": "MIN_SCENARIOS_PASSED_PCT",
|
|
45
|
+
"label": "Min fault scenarios passed (%)",
|
|
46
|
+
"hint": "100",
|
|
47
|
+
"type": "number",
|
|
48
|
+
"defaultValue": "100"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-cost-efficiency-guard",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Cost Efficiency Guard",
|
|
6
|
+
"description": "Tracks infrastructure spend per unit of useful work and fails the check when the trailing trend crosses the budget, catching cost creep before it reaches the monthly bill.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"holistic",
|
|
9
|
+
"cost",
|
|
10
|
+
"cloud",
|
|
11
|
+
"finops"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "COST_UNIT",
|
|
17
|
+
"label": "Unit of work",
|
|
18
|
+
"hint": "1,000 requests",
|
|
19
|
+
"defaultValue": "1,000 requests"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "MAX_COST_PER_UNIT",
|
|
23
|
+
"label": "Max cost per unit",
|
|
24
|
+
"hint": "$0.05",
|
|
25
|
+
"defaultValue": "$0.05"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"hubRefs": [
|
|
29
|
+
"req-resource-efficiency",
|
|
30
|
+
"req-throughput",
|
|
31
|
+
"ff-carbon-footprint-guard",
|
|
32
|
+
"req-carbon-efficiency"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"nodes": [
|
|
36
|
+
{
|
|
37
|
+
"id": "ff-cost-efficiency-guard-1",
|
|
38
|
+
"type": "fitness-fn",
|
|
39
|
+
"label": "Cost Efficiency Guard",
|
|
40
|
+
"x": 0,
|
|
41
|
+
"y": 0,
|
|
42
|
+
"width": 260,
|
|
43
|
+
"height": 52,
|
|
44
|
+
"collapsed": false,
|
|
45
|
+
"description": "Tracks infrastructure spend per unit of useful work and fails the check when the trailing trend crosses the budget, catching cost creep before it reaches the monthly bill.",
|
|
46
|
+
"category": "holistic",
|
|
47
|
+
"threshold": "Cost per {{COST_UNIT}} stays at or below {{MAX_COST_PER_UNIT}} on a 7-day trailing average",
|
|
48
|
+
"templateParams": [
|
|
49
|
+
{
|
|
50
|
+
"key": "COST_UNIT",
|
|
51
|
+
"label": "Unit of work",
|
|
52
|
+
"hint": "1,000 requests",
|
|
53
|
+
"defaultValue": "1,000 requests"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"key": "MAX_COST_PER_UNIT",
|
|
57
|
+
"label": "Max cost per unit",
|
|
58
|
+
"hint": "$0.05",
|
|
59
|
+
"defaultValue": "$0.05"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-coupling-guard",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Coupling Guard",
|
|
6
|
+
"description": "Limits how many other modules or services any single one depends on. High fan-out is the earliest structural signal of a change-amplifying design.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"structural",
|
|
9
|
+
"coupling",
|
|
10
|
+
"modularity",
|
|
11
|
+
"architecture"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "MAX_FAN_OUT",
|
|
17
|
+
"label": "Max outgoing dependencies per module",
|
|
18
|
+
"hint": "6",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "6"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"hubRefs": [
|
|
24
|
+
"ff-dependency-rules",
|
|
25
|
+
"pattern-hexagonal",
|
|
26
|
+
"ff-duplication-guard"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"nodes": [
|
|
30
|
+
{
|
|
31
|
+
"id": "ff-coupling-guard-1",
|
|
32
|
+
"type": "fitness-fn",
|
|
33
|
+
"label": "Coupling Guard",
|
|
34
|
+
"description": "Builds the dependency graph from source (imports/packages) and from deployment manifests (service-to-service calls), then reports efferent coupling per module. New violations fail the build; existing ones are tracked as a debt trend.",
|
|
35
|
+
"x": 0,
|
|
36
|
+
"y": 0,
|
|
37
|
+
"width": 180,
|
|
38
|
+
"height": 52,
|
|
39
|
+
"collapsed": false,
|
|
40
|
+
"category": "structural",
|
|
41
|
+
"threshold": "Efferent coupling ≤ {{MAX_FAN_OUT}} for every module and service"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"relations": []
|
|
45
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-data-integrity-check",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Data Integrity Audit",
|
|
6
|
+
"description": "Periodically scans for referential-integrity violations, orphaned records and checksum mismatches that application-level constraints alone don't catch, especially across service or database boundaries.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"structural",
|
|
9
|
+
"data-integrity",
|
|
10
|
+
"correctness"
|
|
11
|
+
],
|
|
12
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
13
|
+
"templateParams": [
|
|
14
|
+
{
|
|
15
|
+
"key": "MAX_AGE_HOURS",
|
|
16
|
+
"label": "Max age before a violation must be resolved (h)",
|
|
17
|
+
"hint": "24",
|
|
18
|
+
"type": "number",
|
|
19
|
+
"defaultValue": "24"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"hubRefs": [
|
|
23
|
+
"req-data-integrity",
|
|
24
|
+
"adr-data-consistency-model"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"nodes": [
|
|
28
|
+
{
|
|
29
|
+
"id": "ff-data-integrity-check-1",
|
|
30
|
+
"type": "fitness-fn",
|
|
31
|
+
"label": "Data Integrity Audit",
|
|
32
|
+
"x": 0,
|
|
33
|
+
"y": 0,
|
|
34
|
+
"width": 260,
|
|
35
|
+
"height": 52,
|
|
36
|
+
"collapsed": false,
|
|
37
|
+
"description": "Periodically scans for referential-integrity violations, orphaned records and checksum mismatches that application-level constraints alone don't catch, especially across service or database boundaries.",
|
|
38
|
+
"category": "structural",
|
|
39
|
+
"threshold": "Zero unresolved referential-integrity violations older than {{MAX_AGE_HOURS}} hours",
|
|
40
|
+
"templateParams": [
|
|
41
|
+
{
|
|
42
|
+
"key": "MAX_AGE_HOURS",
|
|
43
|
+
"label": "Max age before a violation must be resolved (h)",
|
|
44
|
+
"hint": "24",
|
|
45
|
+
"type": "number",
|
|
46
|
+
"defaultValue": "24"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-data-residency",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Data Residency Check",
|
|
6
|
+
"description": "Verifies that personal data is stored and processed only in approved regions, catching drift in cloud configuration before an auditor does.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"holistic",
|
|
9
|
+
"compliance",
|
|
10
|
+
"privacy",
|
|
11
|
+
"gdpr"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "APPROVED_REGIONS",
|
|
17
|
+
"label": "Approved regions",
|
|
18
|
+
"hint": "eu-west-1, eu-central-1",
|
|
19
|
+
"defaultValue": "eu-west-1, eu-central-1"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"hubRefs": [
|
|
23
|
+
"req-encryption",
|
|
24
|
+
"req-data-retention"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"nodes": [
|
|
28
|
+
{
|
|
29
|
+
"id": "ff-data-residency-1",
|
|
30
|
+
"type": "fitness-fn",
|
|
31
|
+
"label": "Data Residency Check",
|
|
32
|
+
"description": "Inventories storage resources tagged as holding personal data (databases, buckets, backups, search indexes, logging sinks) via the cloud API and compares their region and replication targets with the approved list. Runs against IaC plans before apply and against live accounts daily.",
|
|
33
|
+
"x": 0,
|
|
34
|
+
"y": 0,
|
|
35
|
+
"width": 180,
|
|
36
|
+
"height": 52,
|
|
37
|
+
"collapsed": false,
|
|
38
|
+
"category": "holistic",
|
|
39
|
+
"threshold": "All resources tagged data-class=personal located and replicated only in {{APPROVED_REGIONS}}"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"relations": []
|
|
43
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-dependency-rules",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Dependency Rules",
|
|
6
|
+
"description": "Enforces the intended layering and module boundaries: no cycles, no shortcuts from outer layers into the domain, no cross-context imports.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"structural",
|
|
9
|
+
"architecture",
|
|
10
|
+
"layering",
|
|
11
|
+
"modularity"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"hubRefs": [
|
|
15
|
+
"pattern-hexagonal",
|
|
16
|
+
"req-code-complexity",
|
|
17
|
+
"ff-coupling-guard",
|
|
18
|
+
"ff-duplication-guard"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"nodes": [
|
|
22
|
+
{
|
|
23
|
+
"id": "ff-dependency-rules-1",
|
|
24
|
+
"type": "fitness-fn",
|
|
25
|
+
"label": "Dependency Rules",
|
|
26
|
+
"description": "Codifies the architecture as executable rules (ArchUnit, dependency-cruiser, NetArchTest, eslint-plugin-boundaries): allowed layer-to-layer dependencies, forbidden packages per layer and a zero-cycle constraint. Runs with the unit tests on every commit.",
|
|
27
|
+
"x": 0,
|
|
28
|
+
"y": 0,
|
|
29
|
+
"width": 180,
|
|
30
|
+
"height": 52,
|
|
31
|
+
"collapsed": false,
|
|
32
|
+
"category": "structural",
|
|
33
|
+
"threshold": "0 dependency cycles and 0 violations of the declared layer and module rules"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"relations": []
|
|
37
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "ff-deploy-frequency",
|
|
4
|
+
"category": "fitness-function",
|
|
5
|
+
"name": "Deployment Frequency",
|
|
6
|
+
"description": "How often changes reach production. One of the four DORA delivery metrics; low frequency usually means large, risky batches.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"process",
|
|
9
|
+
"dora",
|
|
10
|
+
"delivery",
|
|
11
|
+
"devops"
|
|
12
|
+
],
|
|
13
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
14
|
+
"templateParams": [
|
|
15
|
+
{
|
|
16
|
+
"key": "MIN_DEPLOYS_PER_WEEK",
|
|
17
|
+
"label": "Minimum production deployments per week",
|
|
18
|
+
"hint": "5",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"defaultValue": "5"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"hubRefs": [
|
|
24
|
+
"ff-lead-time",
|
|
25
|
+
"ff-change-failure-rate",
|
|
26
|
+
"ff-mttr",
|
|
27
|
+
"req-zero-downtime-deploy"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"nodes": [
|
|
31
|
+
{
|
|
32
|
+
"id": "ff-deploy-frequency-1",
|
|
33
|
+
"type": "fitness-fn",
|
|
34
|
+
"label": "Deployment Frequency",
|
|
35
|
+
"description": "Counts successful production deployments per service from the CD system or deployment markers, reported weekly. Elite performers deploy on demand (multiple times per day); the threshold sets the floor for this team.",
|
|
36
|
+
"x": 0,
|
|
37
|
+
"y": 0,
|
|
38
|
+
"width": 180,
|
|
39
|
+
"height": 52,
|
|
40
|
+
"collapsed": false,
|
|
41
|
+
"category": "process",
|
|
42
|
+
"threshold": "≥ {{MIN_DEPLOYS_PER_WEEK}} production deployments per service per week (4-week rolling median)"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"relations": []
|
|
46
|
+
}
|