@radicaltools/mcp 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -23
- package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
- package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
- package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
- package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
- package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
- package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
- package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
- package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
- package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
- package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
- package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
- package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
- package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
- package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
- package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
- package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
- package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
- package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
- package/dist/index.js +10321 -3964
- package/package.json +1 -1
- package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
- package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
- package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
- package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
- package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
- package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
- package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
- package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
- package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
- package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
- package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
- package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
- package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
- package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
- package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
- package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
- package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
- package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
- package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
- package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
- package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
- package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
- package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
- package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
- package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
- package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
- package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
- package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
- package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
- package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
- package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
- package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
- package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
- package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
- package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
- package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
- package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
- package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
- package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
- package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
- package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
- package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
- package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
- package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
- package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
- package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
- package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
- package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
- package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
- package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
- package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
- package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
- package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
- package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
- package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
- package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
- package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
- package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
- package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
- package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
- package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
- package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
- package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
- package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
- package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
- package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
- package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
- package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
- package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
- package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
- package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
- package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
- package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
- package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
- package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
- package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
- package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
- package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
- package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
- package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
- package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
- package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
- package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
- package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
- package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
- package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
- package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
- package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
- package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
- package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
- package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
- package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
- package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
- package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
- package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
|
@@ -0,0 +1,1037 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-backend-stack",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Backend stack",
|
|
6
|
+
"description": "The language, runtime and framework a server-side service is built on, why, the version policy that keeps it on supported releases, and the footprint it is held to when performance decides.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"technology",
|
|
9
|
+
"backend",
|
|
10
|
+
"runtime",
|
|
11
|
+
"language",
|
|
12
|
+
"framework",
|
|
13
|
+
"end of life",
|
|
14
|
+
"version policy",
|
|
15
|
+
"footprint"
|
|
16
|
+
],
|
|
17
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
18
|
+
"concern": {
|
|
19
|
+
"id": "backend-stack",
|
|
20
|
+
"trigger": "LIST NODES WHERE type = \"container\" AND external != true",
|
|
21
|
+
"why": "these are server-side services, so what they are built on and how they are kept on supported versions has to be decided.",
|
|
22
|
+
"group": "technology"
|
|
23
|
+
},
|
|
24
|
+
"sources": [
|
|
25
|
+
{
|
|
26
|
+
"title": "endoflife.date: end-of-life dates and support lifecycles",
|
|
27
|
+
"url": "https://endoflife.date/"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"title": "Thoughtworks Technology Radar",
|
|
31
|
+
"url": "https://www.thoughtworks.com/radar"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"title": "ISO/IEC 25010, Maintainability, Flexibility and Performance efficiency",
|
|
35
|
+
"url": "https://iso25000.com/index.php/en/iso-25000-standards/iso-25010"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"title": "OpenSSF Scorecard",
|
|
39
|
+
"url": "https://github.com/ossf/scorecard"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"title": "deps.dev API v3 (Open Source Insights)",
|
|
43
|
+
"url": "https://docs.deps.dev/api/v3/"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"title": "OWASP Top 10 2021, A06 Vulnerable and Outdated Components",
|
|
47
|
+
"url": "https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components/"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"title": "Ford, Parsons, Kua, Sadalage: Building Evolutionary Architectures, 2nd ed.",
|
|
51
|
+
"url": "https://www.oreilly.com/library/view/building-evolutionary-architectures/9781492097532/"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"templateParams": [
|
|
55
|
+
{
|
|
56
|
+
"key": "RUNTIME",
|
|
57
|
+
"title": "Runtime",
|
|
58
|
+
"label": "What is the service built on?",
|
|
59
|
+
"hint": "The runtime brings the language, the framework, the libraries and the people who can work on it. Changing it later means rewriting the service.",
|
|
60
|
+
"defaultValue": "jvm",
|
|
61
|
+
"options": [
|
|
62
|
+
{
|
|
63
|
+
"value": "jvm",
|
|
64
|
+
"label": "the JVM (Java or Kotlin, Spring Boot)",
|
|
65
|
+
"description": "Mature, fast after warm-up, the widest choice of enterprise libraries and drivers. Pick it for long-lived business services, when the team knows Java or Kotlin, or integrations need JVM-only SDKs."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"value": "dotnet",
|
|
69
|
+
"label": ".NET (C#, ASP.NET Core)",
|
|
70
|
+
"description": "Fast, one vendor-backed stack from language to web framework and ORM. Pick it when the team knows C#, the organisation runs Microsoft tooling or Azure, or desktop and server share code."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"value": "node",
|
|
74
|
+
"label": "Node.js (TypeScript, NestJS or Fastify)",
|
|
75
|
+
"description": "One language with the web front end, quick to start, very large package ecosystem. Pick it for web back ends, BFFs and I/O-bound APIs, when the team writes TypeScript in the front end too."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"value": "go",
|
|
79
|
+
"label": "Go",
|
|
80
|
+
"description": "Small static binaries, fast start-up, low memory, simple concurrency. Pick it for infrastructure-like services, high-throughput network services and CLIs, when a small standard library is enough. Go has no LTS releases: not with the LTS-only version policy."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"value": "python",
|
|
84
|
+
"label": "Python (FastAPI or Django)",
|
|
85
|
+
"description": "The data and machine-learning ecosystem, quick to write. Pick it when the service serves models or data pipelines, or the team are data people; CPU-heavy request handling is not its strength. Python has no LTS releases: not with the LTS-only version policy."
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "CRITERION",
|
|
91
|
+
"title": "Deciding factor",
|
|
92
|
+
"label": "What weighs most in the choice?",
|
|
93
|
+
"hint": "Every stack can do most things; the criterion that decides adds the requirement that keeps the choice honest.",
|
|
94
|
+
"defaultValue": "skills",
|
|
95
|
+
"options": [
|
|
96
|
+
{
|
|
97
|
+
"value": "skills",
|
|
98
|
+
"label": "the team's skills",
|
|
99
|
+
"description": "The team already knows the stack well. Pick it in most cases: a known stack is faster and safer than a better one nobody knows."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"value": "ecosystem",
|
|
103
|
+
"label": "the ecosystem",
|
|
104
|
+
"description": "The libraries, SDKs and drivers the service needs exist and are maintained in this stack. Pick it when integrations (a payment SDK, a data or ML library) decide what is practical."
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"value": "performance",
|
|
108
|
+
"label": "performance",
|
|
109
|
+
"description": "Memory and start-up time drive cost or scaling. Pick it only when load or cost figures show it matters, and hold the stack to the footprint numbers asked below."
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"key": "UPGRADE",
|
|
115
|
+
"title": "Version policy",
|
|
116
|
+
"label": "Which versions of the runtime and framework may run?",
|
|
117
|
+
"hint": "Unsupported versions get no security fixes; versions far behind make each upgrade a project. Go and Python have no LTS releases: with them, pick the latest or the previous major.",
|
|
118
|
+
"defaultValue": "lts",
|
|
119
|
+
"options": [
|
|
120
|
+
{
|
|
121
|
+
"value": "lts",
|
|
122
|
+
"label": "supported LTS releases only",
|
|
123
|
+
"description": "Only long-term-support releases, each new LTS adopted within 6 months. Pick it for business systems that value stability and upgrade a few times a year. Not with Go or Python, which have no LTS releases."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"value": "n1",
|
|
127
|
+
"label": "the latest or the previous major",
|
|
128
|
+
"description": "Never more than one release cycle behind the latest, LTS or not. Pick it when the stack has no LTS for what you use (Go, Python, most frameworks) or you want new features sooner."
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"value": "latest",
|
|
132
|
+
"label": "the latest release within 30 days",
|
|
133
|
+
"description": "Each new release cycle of the runtime and framework is adopted within 30 days. Pick it for small services with a strong test suite and automated updates."
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"key": "EOL_DAYS",
|
|
139
|
+
"label": "How many days before end of support must a version be replaced?",
|
|
140
|
+
"defaultValue": "180",
|
|
141
|
+
"type": "number"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"key": "MEMORY_MB",
|
|
145
|
+
"label": "How much memory may one instance use at peak (MB)? Held to when performance is the deciding factor",
|
|
146
|
+
"defaultValue": "512",
|
|
147
|
+
"type": "number"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"key": "STARTUP_SECONDS",
|
|
151
|
+
"label": "Within how many seconds must a new instance be ready for traffic? Held to when performance is the deciding factor",
|
|
152
|
+
"defaultValue": "10",
|
|
153
|
+
"type": "number"
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"nodes": [
|
|
158
|
+
{
|
|
159
|
+
"id": "need",
|
|
160
|
+
"type": "need",
|
|
161
|
+
"label": "Services built to last",
|
|
162
|
+
"x": 0,
|
|
163
|
+
"y": 0,
|
|
164
|
+
"kind": "brief",
|
|
165
|
+
"source": "Hub concern pack: Backend stack",
|
|
166
|
+
"description": "The service has to be built on a language, runtime and framework the team can work in well, that have the libraries it needs, that fit the footprint the hosting pays for, and that keep receiving security fixes for as long as the service runs. The choice must be written down with its reasons, and keeping it current must be routine work, not a project every few years. The checks assume one service per repository, with its Dockerfile and build manifest at the root, a versions.txt listing the endoflife.date products and cycles in use, and team.txt with the owning team's e-mail addresses next to CODEOWNERS."
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"id": "req-one-stack",
|
|
170
|
+
"type": "requirement",
|
|
171
|
+
"label": "Built on the chosen stack",
|
|
172
|
+
"x": 260,
|
|
173
|
+
"y": 0,
|
|
174
|
+
"ears_type": "ubiquitous",
|
|
175
|
+
"action": "build the service on {{RUNTIME}}, using another runtime or main framework only after a new decision record supersedes this one",
|
|
176
|
+
"rationale": "Each extra stack multiplies the skills, pipelines, base images and patching a team must keep up (Thoughtworks Technology Radar on polyglot sprawl; ISO 25010 maintainability)."
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": "req-eol",
|
|
180
|
+
"type": "requirement",
|
|
181
|
+
"label": "Supported versions only",
|
|
182
|
+
"x": 260,
|
|
183
|
+
"y": 130,
|
|
184
|
+
"ears_type": "ubiquitous",
|
|
185
|
+
"action": "run only runtime, framework and base image versions under vendor support, replacing each at least {{EOL_DAYS}} days before its end of support",
|
|
186
|
+
"rationale": "After end of support no security fixes come; the lead time leaves room to upgrade without a rush (endoflife.date; OWASP Top 10 A06 Vulnerable and Outdated Components)."
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"id": "req-lts",
|
|
190
|
+
"type": "requirement",
|
|
191
|
+
"label": "New LTS adopted",
|
|
192
|
+
"x": 260,
|
|
193
|
+
"y": 260,
|
|
194
|
+
"ears_type": "event-driven",
|
|
195
|
+
"trigger": "a new long-term-support release of the runtime or main framework is published",
|
|
196
|
+
"action": "move the service to it within 6 months, and run no non-LTS release in production",
|
|
197
|
+
"rationale": "Moving from one LTS to the next while the old one is supported keeps every upgrade one step long (endoflife.date support lifecycles).",
|
|
198
|
+
"hubWhen": {
|
|
199
|
+
"UPGRADE": [
|
|
200
|
+
"lts"
|
|
201
|
+
]
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "req-n1",
|
|
206
|
+
"type": "requirement",
|
|
207
|
+
"label": "At most one release behind",
|
|
208
|
+
"x": 260,
|
|
209
|
+
"y": 390,
|
|
210
|
+
"ears_type": "ubiquitous",
|
|
211
|
+
"action": "run the latest or the previous release cycle of the runtime and the main framework, never older",
|
|
212
|
+
"rationale": "Most projects support only the last one or two release cycles (Go: the two latest releases); staying within them keeps fixes coming and upgrades short (endoflife.date).",
|
|
213
|
+
"hubWhen": {
|
|
214
|
+
"UPGRADE": [
|
|
215
|
+
"n1"
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"id": "req-latest",
|
|
221
|
+
"type": "requirement",
|
|
222
|
+
"label": "Latest release adopted",
|
|
223
|
+
"x": 260,
|
|
224
|
+
"y": 520,
|
|
225
|
+
"ears_type": "event-driven",
|
|
226
|
+
"trigger": "a new release cycle of the runtime or main framework is published",
|
|
227
|
+
"action": "move the service to it within 30 days",
|
|
228
|
+
"rationale": "Small, frequent upgrades are cheaper than large rare ones, and new security hardening arrives sooner (Building Evolutionary Architectures, incremental change).",
|
|
229
|
+
"hubWhen": {
|
|
230
|
+
"UPGRADE": [
|
|
231
|
+
"latest"
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"id": "req-skills",
|
|
237
|
+
"type": "requirement",
|
|
238
|
+
"label": "Enough people know it",
|
|
239
|
+
"x": 260,
|
|
240
|
+
"y": 650,
|
|
241
|
+
"ears_type": "ubiquitous",
|
|
242
|
+
"action": "keep at least two engineers in the owning team who have merged production changes to the service on {{RUNTIME}} in the last 12 months",
|
|
243
|
+
"rationale": "A stack chosen for the team's skills is only as safe as the number of people who have them (bus factor).",
|
|
244
|
+
"hubWhen": {
|
|
245
|
+
"CRITERION": [
|
|
246
|
+
"skills"
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"id": "req-maintained",
|
|
252
|
+
"type": "requirement",
|
|
253
|
+
"label": "Dependencies are maintained",
|
|
254
|
+
"x": 260,
|
|
255
|
+
"y": 780,
|
|
256
|
+
"ears_type": "event-driven",
|
|
257
|
+
"trigger": "a change adds a direct dependency",
|
|
258
|
+
"action": "accept it only when it had a release in the last 12 months and an OpenSSF Scorecard score of at least 5, or a reviewer records why it is still acceptable",
|
|
259
|
+
"rationale": "An ecosystem is worth what its maintained libraries are worth; an abandoned dependency becomes your code to maintain (OpenSSF Scorecard: Maintained check; deps.dev).",
|
|
260
|
+
"hubWhen": {
|
|
261
|
+
"CRITERION": [
|
|
262
|
+
"ecosystem"
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": "req-footprint",
|
|
268
|
+
"type": "requirement",
|
|
269
|
+
"label": "Small and quick to start",
|
|
270
|
+
"x": 260,
|
|
271
|
+
"y": 910,
|
|
272
|
+
"ears_type": "state-driven",
|
|
273
|
+
"precondition": "the service runs under the load test decided in the Capacity and scaling pack",
|
|
274
|
+
"action": "use at most {{MEMORY_MB}} MB of memory per instance, and have a new instance ready for traffic within {{STARTUP_SECONDS}} seconds of its start",
|
|
275
|
+
"rationale": "A stack chosen for performance has to be held to the numbers that justified it: memory sets the cost per instance, start-up time how fast it scales out (ISO 25010 performance efficiency: resource utilisation).",
|
|
276
|
+
"hubWhen": {
|
|
277
|
+
"CRITERION": [
|
|
278
|
+
"performance"
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "sc-one-stack",
|
|
284
|
+
"type": "scenario",
|
|
285
|
+
"label": "Other runtime refused",
|
|
286
|
+
"x": 520,
|
|
287
|
+
"y": 0,
|
|
288
|
+
"given": "the service's build files and container images",
|
|
289
|
+
"when": "a change brings a base image or a build manifest of another runtime",
|
|
290
|
+
"then": "the stack check fails until the manifest is listed in .stack-exceptions with the decision record that allows it"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"id": "sc-eol",
|
|
294
|
+
"type": "scenario",
|
|
295
|
+
"label": "End of support ahead",
|
|
296
|
+
"x": 520,
|
|
297
|
+
"y": 130,
|
|
298
|
+
"given": "a runtime version whose end of support is less than {{EOL_DAYS}} days away",
|
|
299
|
+
"when": "the version check runs",
|
|
300
|
+
"then": "it fails naming the version and its end-of-support date"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"id": "sc-lts",
|
|
304
|
+
"type": "scenario",
|
|
305
|
+
"label": "LTS upgrade on time",
|
|
306
|
+
"x": 520,
|
|
307
|
+
"y": 260,
|
|
308
|
+
"given": "a new LTS release of the runtime",
|
|
309
|
+
"when": "6 months have passed since its release",
|
|
310
|
+
"then": "the service runs on it in production, and the version check fails otherwise",
|
|
311
|
+
"hubWhen": {
|
|
312
|
+
"UPGRADE": [
|
|
313
|
+
"lts"
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"id": "sc-n1",
|
|
319
|
+
"type": "scenario",
|
|
320
|
+
"label": "Two releases behind refused",
|
|
321
|
+
"x": 520,
|
|
322
|
+
"y": 390,
|
|
323
|
+
"given": "a framework whose latest release cycle is N",
|
|
324
|
+
"when": "the service still runs on N-2",
|
|
325
|
+
"then": "the version check fails",
|
|
326
|
+
"hubWhen": {
|
|
327
|
+
"UPGRADE": [
|
|
328
|
+
"n1"
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"id": "sc-latest",
|
|
334
|
+
"type": "scenario",
|
|
335
|
+
"label": "Release adopted in 30 days",
|
|
336
|
+
"x": 520,
|
|
337
|
+
"y": 520,
|
|
338
|
+
"given": "a new release cycle of the main framework",
|
|
339
|
+
"when": "30 days have passed",
|
|
340
|
+
"then": "the service runs on it in production, and the version check fails otherwise",
|
|
341
|
+
"hubWhen": {
|
|
342
|
+
"UPGRADE": [
|
|
343
|
+
"latest"
|
|
344
|
+
]
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"id": "sc-skills",
|
|
349
|
+
"type": "scenario",
|
|
350
|
+
"label": "Two people can ship",
|
|
351
|
+
"x": 520,
|
|
352
|
+
"y": 650,
|
|
353
|
+
"given": "the owning team's members and the service's history",
|
|
354
|
+
"when": "the authors of the last 12 months are counted",
|
|
355
|
+
"then": "at least two members of the team merged production changes to the service",
|
|
356
|
+
"hubWhen": {
|
|
357
|
+
"CRITERION": [
|
|
358
|
+
"skills"
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"id": "sc-maintained",
|
|
364
|
+
"type": "scenario",
|
|
365
|
+
"label": "Abandoned library flagged",
|
|
366
|
+
"x": 520,
|
|
367
|
+
"y": 780,
|
|
368
|
+
"given": "a pull request adding a library without a release for two years",
|
|
369
|
+
"when": "the dependency check runs",
|
|
370
|
+
"then": "it fails and the pull request cannot merge without the dependency-exception label and the reviewer's reason",
|
|
371
|
+
"hubWhen": {
|
|
372
|
+
"CRITERION": [
|
|
373
|
+
"ecosystem"
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"id": "sc-footprint",
|
|
379
|
+
"type": "scenario",
|
|
380
|
+
"label": "Instance stays within footprint",
|
|
381
|
+
"x": 520,
|
|
382
|
+
"y": 910,
|
|
383
|
+
"given": "a release candidate's image",
|
|
384
|
+
"when": "one instance is started under a {{MEMORY_MB}} MB limit and the load test runs against it",
|
|
385
|
+
"then": "it is ready within {{STARTUP_SECONDS}} seconds, is not killed for memory, and its peak memory stays under {{MEMORY_MB}} MB",
|
|
386
|
+
"hubWhen": {
|
|
387
|
+
"CRITERION": [
|
|
388
|
+
"performance"
|
|
389
|
+
]
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"id": "adr-jvm",
|
|
394
|
+
"type": "adr",
|
|
395
|
+
"label": "Built on the JVM",
|
|
396
|
+
"x": 780,
|
|
397
|
+
"y": 0,
|
|
398
|
+
"concern": "backend-stack",
|
|
399
|
+
"status": "accepted",
|
|
400
|
+
"date": "",
|
|
401
|
+
"context": "This element is a server-side service, and the runtime, language and main framework it is written in will outlive most of the people who chose them. The forces: the team's skills decide how fast and how safely it can work, and hiring follows the choice; the ecosystem decides which libraries, drivers and SDKs exist and are maintained; runtimes and frameworks reach end of support on published dates, after which security fixes stop; performance (memory, start-up time) matters where load or cost is high and rarely elsewhere; every dependency added is code someone else maintains, at their pace; and upgrades put off for years turn into rewrites.",
|
|
402
|
+
"decision": "The service runs on the JVM: Java (or Kotlin where the team prefers it) on a JDK release the version policy allows, from a supported distribution (Eclipse Temurin, Amazon Corretto or Microsoft Build of OpenJDK), with Spring Boot as the framework, built with Gradle or Maven. Deciding factor: {{CRITERION}}. Version policy: {{UPGRADE}}; each version replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (eclipse-temurin, spring-boot). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing Java or Kotlin: Kotlin for null safety and concise domain code when the team knows it; Java when more people need to read it. Choosing Spring Boot or Quarkus: Spring Boot for the widest ecosystem; Quarkus (or Spring with GraalVM native image) when start-up time and memory matter, e.g. scale-to-zero.",
|
|
403
|
+
"consequences": "• The widest choice of enterprise libraries, drivers and SDKs, and many people who know it.\n• Higher memory use and slower start than Go or .NET native AOT, unless native images are used.\n• Spring Boot's major versions follow the JDK baseline; framework and JDK upgrades are planned together.\n• A new JDK every six months and an LTS every two years: the version policy sets whether that is one upgrade a year or one every two.",
|
|
404
|
+
"alternatives": "1. .NET: similar maturity and performance, a single vendor stack.\n2. Go: smaller and faster to start, fewer enterprise libraries.\n3. Node.js (TypeScript): one language with the front end, weaker for CPU-heavy work.",
|
|
405
|
+
"hubWhen": {
|
|
406
|
+
"RUNTIME": [
|
|
407
|
+
"jvm"
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"id": "adr-dotnet",
|
|
413
|
+
"type": "adr",
|
|
414
|
+
"label": "Built on .NET",
|
|
415
|
+
"x": 780,
|
|
416
|
+
"y": 130,
|
|
417
|
+
"concern": "backend-stack",
|
|
418
|
+
"status": "accepted",
|
|
419
|
+
"date": "",
|
|
420
|
+
"context": "This element is a server-side service, and the runtime, language and main framework it is written in will outlive most of the people who chose them. The forces: the team's skills decide how fast and how safely it can work, and hiring follows the choice; the ecosystem decides which libraries, drivers and SDKs exist and are maintained; runtimes and frameworks reach end of support on published dates, after which security fixes stop; performance (memory, start-up time) matters where load or cost is high and rarely elsewhere; every dependency added is code someone else maintains, at their pace; and upgrades put off for years turn into rewrites.",
|
|
421
|
+
"decision": "The service runs on .NET with C#, on a release the version policy allows (an LTS every two years, supported three years; an STS in between, supported two), with ASP.NET Core (minimal APIs or controllers) and Entity Framework Core or Dapper for data access. Deciding factor: {{CRITERION}}. Version policy: {{UPGRADE}}; each version replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (dotnet). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing EF Core or Dapper: EF Core for domain models and migrations; Dapper where queries are hand-tuned. Native AOT only when start-up time matters and every library used supports trimming.",
|
|
422
|
+
"consequences": "• One coherent stack (language, web framework, ORM, test tooling) maintained by one vendor, with good performance.\n• A release every November: the version policy decides whether every one is adopted or only the LTS ones, every two years.\n• Fewer open-source libraries than the JVM or Node.js for some niches.\n• Strong fit with Azure and Microsoft identity; runs equally on Linux containers.",
|
|
423
|
+
"alternatives": "1. The JVM with Spring Boot: the widest ecosystem.\n2. Go: smaller and simpler, fewer abstractions.\n3. Node.js (TypeScript): shares the language with the front end.",
|
|
424
|
+
"hubWhen": {
|
|
425
|
+
"RUNTIME": [
|
|
426
|
+
"dotnet"
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"id": "adr-node",
|
|
432
|
+
"type": "adr",
|
|
433
|
+
"label": "Built on Node.js",
|
|
434
|
+
"x": 780,
|
|
435
|
+
"y": 260,
|
|
436
|
+
"concern": "backend-stack",
|
|
437
|
+
"status": "accepted",
|
|
438
|
+
"date": "",
|
|
439
|
+
"context": "This element is a server-side service, and the runtime, language and main framework it is written in will outlive most of the people who chose them. The forces: the team's skills decide how fast and how safely it can work, and hiring follows the choice; the ecosystem decides which libraries, drivers and SDKs exist and are maintained; runtimes and frameworks reach end of support on published dates, after which security fixes stop; performance (memory, start-up time) matters where load or cost is high and rarely elsewhere; every dependency added is code someone else maintains, at their pace; and upgrades put off for years turn into rewrites.",
|
|
440
|
+
"decision": "The service runs on Node.js, on a release line the version policy allows (the even-numbered majors become LTS lines), written in TypeScript in strict mode, with Fastify or NestJS as the framework (Express only for small services). Deciding factor: {{CRITERION}}. Version policy: {{UPGRADE}}; the version is pinned in .nvmrc and the base image, replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (nodejs). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing Fastify or NestJS: Fastify for lean APIs and speed; NestJS when the team wants modules and dependency injection in a larger codebase.",
|
|
441
|
+
"consequences": "• One language across the front end and back end; types can be shared through generated contracts.\n• Very large package ecosystem, of very uneven quality: dependencies need review and updates more often than elsewhere.\n• Single-threaded event loop: excellent for I/O-bound APIs, poor for CPU-heavy work, which goes to worker threads or another service.\n• A new major every six months and an LTS line every year, each supported about 30 months: the version policy sets the upgrade rhythm.",
|
|
442
|
+
"alternatives": "1. Go: better for CPU-bound and high-throughput services, a separate language from the front end.\n2. The JVM or .NET: more structure and performance for large business domains.\n3. Deno or Bun: modern runtimes with built-in tooling, younger ecosystems and support policies.",
|
|
443
|
+
"hubWhen": {
|
|
444
|
+
"RUNTIME": [
|
|
445
|
+
"node"
|
|
446
|
+
]
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"id": "adr-go",
|
|
451
|
+
"type": "adr",
|
|
452
|
+
"label": "Built on Go",
|
|
453
|
+
"x": 780,
|
|
454
|
+
"y": 390,
|
|
455
|
+
"concern": "backend-stack",
|
|
456
|
+
"status": "accepted",
|
|
457
|
+
"date": "",
|
|
458
|
+
"context": "This element is a server-side service, and the runtime, language and main framework it is written in will outlive most of the people who chose them. The forces: the team's skills decide how fast and how safely it can work, and hiring follows the choice; the ecosystem decides which libraries, drivers and SDKs exist and are maintained; runtimes and frameworks reach end of support on published dates, after which security fixes stop; performance (memory, start-up time) matters where load or cost is high and rarely elsewhere; every dependency added is code someone else maintains, at their pace; and upgrades put off for years turn into rewrites.",
|
|
459
|
+
"decision": "The service is written in Go, on a release the version policy allows (the Go team supports the two latest releases), using the standard library's net/http with a thin router (chi or the standard ServeMux) rather than a large framework, sqlc or pgx for data access, and distroless or scratch base images. Deciding factor: {{CRITERION}}. Version policy: {{UPGRADE}}; the toolchain is pinned in go.mod, replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (go). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack.",
|
|
460
|
+
"consequences": "• Small static binaries, start-up in milliseconds, low memory: cheap to run and to scale.\n• Each Go release is supported for about a year, so the toolchain is upgraded every six to twelve months; the Go 1 compatibility promise makes that routine.\n• Fewer high-level libraries (ORMs, enterprise SDKs); more code written by hand.\n• Simple language, fast to learn; less expressive for rich domain models.",
|
|
461
|
+
"alternatives": "1. The JVM or .NET: richer frameworks for large business domains, heavier to run.\n2. Rust: more control and safety, slower to write and to learn.\n3. Node.js (TypeScript): one language with the front end, weaker under CPU load.",
|
|
462
|
+
"hubWhen": {
|
|
463
|
+
"RUNTIME": [
|
|
464
|
+
"go"
|
|
465
|
+
]
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"id": "adr-python",
|
|
470
|
+
"type": "adr",
|
|
471
|
+
"label": "Built on Python",
|
|
472
|
+
"x": 780,
|
|
473
|
+
"y": 520,
|
|
474
|
+
"concern": "backend-stack",
|
|
475
|
+
"status": "accepted",
|
|
476
|
+
"date": "",
|
|
477
|
+
"context": "This element is a server-side service, and the runtime, language and main framework it is written in will outlive most of the people who chose them. The forces: the team's skills decide how fast and how safely it can work, and hiring follows the choice; the ecosystem decides which libraries, drivers and SDKs exist and are maintained; runtimes and frameworks reach end of support on published dates, after which security fixes stop; performance (memory, start-up time) matters where load or cost is high and rarely elsewhere; every dependency added is code someone else maintains, at their pace; and upgrades put off for years turn into rewrites.",
|
|
478
|
+
"decision": "The service is written in Python on a 3.x release the version policy allows (each supported five years, a new one every October), with FastAPI (async APIs, Pydantic models) or Django (data-heavy apps with an admin), type-checked with mypy or pyright and linted with Ruff, dependencies locked with uv or Poetry. Deciding factor: {{CRITERION}}. Version policy: {{UPGRADE}}; the version is pinned in pyproject.toml and the base image, replaced at least {{EOL_DAYS}} days before its end of support, tracked through endoflife.date (python, django). Footprint budget, held to when performance decides: at most {{MEMORY_MB}} MB per instance at peak, ready within {{STARTUP_SECONDS}} seconds. Dependency updates: as decided in the Dependency hygiene pack. Vulnerable dependencies: as decided in the Software supply chain pack. Latency and load: as decided in the Capacity and scaling pack. Choosing FastAPI or Django: FastAPI for APIs and model serving; Django when the service owns a relational data model and needs an admin and its migrations.",
|
|
479
|
+
"consequences": "• Direct access to the data and machine-learning ecosystem (NumPy, pandas, PyTorch, scikit-learn).\n• Slower and more memory-hungry per request than the JVM, .NET or Go; CPU-heavy work goes to native libraries or worker processes.\n• Dynamic typing needs type checking in the build to keep a large codebase safe to change.\n• A new release every October, each supported five years: the version policy sets how many are skipped.",
|
|
480
|
+
"alternatives": "1. Go or the JVM for the request-handling service, with Python only where models run.\n2. Node.js (TypeScript): faster for I/O-bound APIs, weaker data ecosystem.\n3. Notebooks deployed as services: quick, but neither testable nor maintainable.",
|
|
481
|
+
"hubWhen": {
|
|
482
|
+
"RUNTIME": [
|
|
483
|
+
"python"
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"id": "ff-only-jvm",
|
|
489
|
+
"type": "fitness-fn",
|
|
490
|
+
"label": "Only the JVM",
|
|
491
|
+
"x": 1040,
|
|
492
|
+
"y": 0,
|
|
493
|
+
"characteristic": "maintainability",
|
|
494
|
+
"scope": "atomic",
|
|
495
|
+
"cadence": "triggered",
|
|
496
|
+
"trigger": "pull-request",
|
|
497
|
+
"invocation": "automated",
|
|
498
|
+
"description": "A job in every build reads the final stage of each Dockerfile (a stage alias is resolved to its image) and lists the build manifests in the repository; it fails on a final image that is not a JVM image or on a manifest of another runtime (*.csproj, *package.json, *go.mod, *pyproject.toml, *requirements.txt). A manifest a decision record allows is listed in .stack-exceptions with that record's id. Runs on Linux (git, awk, GNU grep).\n\nThreshold: 100% of Dockerfiles end in a stage FROM a JVM image; 0 build manifests of another runtime outside .stack-exceptions\n\nTool: git with awk and grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# Only the JVM: the final-stage base images and the build manifests of the repository\nset -euo pipefail\nAPPROVED='^(eclipse-temurin|amazoncorretto|mcr\\.microsoft\\.com/openjdk/jdk|gcr\\.io/distroless/java[0-9]*(-debian[0-9]+)?)(:|@|$)'\nFOREIGN=('*.csproj' '*package.json' '*go.mod' '*pyproject.toml' '*requirements.txt')\nfail=0\nfor df in $(git ls-files -- '*Dockerfile*'); do\n final=$(awk 'toupper($1)==\"FROM\" { img=\"\"; for (i=2;i<=NF;i++) if ($i !~ /^--/) { img=$i; break }\n if (img in alias) img=alias[img]\n for (i=2;i<=NF;i++) if (toupper($i)==\"AS\") alias[$(i+1)]=img\n final=img } END { print final }' \"$df\")\n [[ \"$final\" =~ $APPROVED ]] || { echo \"::error file=$df::final stage FROM $final is not a JVM image (ADR Built on the JVM)\"; fail=1; }\ndone\nforeign=$(git ls-files -- \"${FOREIGN[@]}\" | grep -vxFf <(cat .stack-exceptions 2>/dev/null) || true)\n[ -z \"$foreign\" ] || { echo \"::error::build manifests of another runtime: $(tr '\\n' ' ' <<<\"$foreign\")\"; fail=1; }\nexit $fail\n```",
|
|
499
|
+
"hubWhen": {
|
|
500
|
+
"RUNTIME": [
|
|
501
|
+
"jvm"
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"id": "ff-only-dotnet",
|
|
507
|
+
"type": "fitness-fn",
|
|
508
|
+
"label": "Only .NET",
|
|
509
|
+
"x": 1040,
|
|
510
|
+
"y": 130,
|
|
511
|
+
"characteristic": "maintainability",
|
|
512
|
+
"scope": "atomic",
|
|
513
|
+
"cadence": "triggered",
|
|
514
|
+
"trigger": "pull-request",
|
|
515
|
+
"invocation": "automated",
|
|
516
|
+
"description": "A job in every build reads the final stage of each Dockerfile (a stage alias is resolved to its image) and lists the build manifests in the repository; it fails on a final image that is not a .NET image or on a manifest of another runtime (*pom.xml, *build.gradle*, *package.json, *go.mod, *pyproject.toml, *requirements.txt). A manifest a decision record allows is listed in .stack-exceptions with that record's id. Runs on Linux (git, awk, GNU grep).\n\nThreshold: 100% of Dockerfiles end in a stage FROM a .NET image; 0 build manifests of another runtime outside .stack-exceptions\n\nTool: git with awk and grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# Only .NET: the final-stage base images and the build manifests of the repository\nset -euo pipefail\nAPPROVED='^(mcr\\.microsoft\\.com/dotnet/(aspnet|runtime|runtime-deps))(:|@|$)'\nFOREIGN=('*pom.xml' '*build.gradle*' '*package.json' '*go.mod' '*pyproject.toml' '*requirements.txt')\nfail=0\nfor df in $(git ls-files -- '*Dockerfile*'); do\n final=$(awk 'toupper($1)==\"FROM\" { img=\"\"; for (i=2;i<=NF;i++) if ($i !~ /^--/) { img=$i; break }\n if (img in alias) img=alias[img]\n for (i=2;i<=NF;i++) if (toupper($i)==\"AS\") alias[$(i+1)]=img\n final=img } END { print final }' \"$df\")\n [[ \"$final\" =~ $APPROVED ]] || { echo \"::error file=$df::final stage FROM $final is not a .NET image (ADR Built on .NET)\"; fail=1; }\ndone\nforeign=$(git ls-files -- \"${FOREIGN[@]}\" | grep -vxFf <(cat .stack-exceptions 2>/dev/null) || true)\n[ -z \"$foreign\" ] || { echo \"::error::build manifests of another runtime: $(tr '\\n' ' ' <<<\"$foreign\")\"; fail=1; }\nexit $fail\n```",
|
|
517
|
+
"hubWhen": {
|
|
518
|
+
"RUNTIME": [
|
|
519
|
+
"dotnet"
|
|
520
|
+
]
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"id": "ff-only-node",
|
|
525
|
+
"type": "fitness-fn",
|
|
526
|
+
"label": "Only Node.js",
|
|
527
|
+
"x": 1040,
|
|
528
|
+
"y": 260,
|
|
529
|
+
"characteristic": "maintainability",
|
|
530
|
+
"scope": "atomic",
|
|
531
|
+
"cadence": "triggered",
|
|
532
|
+
"trigger": "pull-request",
|
|
533
|
+
"invocation": "automated",
|
|
534
|
+
"description": "A job in every build reads the final stage of each Dockerfile (a stage alias is resolved to its image) and lists the build manifests in the repository; it fails on a final image that is not a Node.js image or on a manifest of another runtime (*pom.xml, *build.gradle*, *.csproj, *go.mod, *pyproject.toml, *requirements.txt). A manifest a decision record allows is listed in .stack-exceptions with that record's id. Runs on Linux (git, awk, GNU grep).\n\nThreshold: 100% of Dockerfiles end in a stage FROM a Node.js image; 0 build manifests of another runtime outside .stack-exceptions\n\nTool: git with awk and grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# Only Node.js: the final-stage base images and the build manifests of the repository\nset -euo pipefail\nAPPROVED='^(node|cgr\\.dev/chainguard/node|gcr\\.io/distroless/nodejs[0-9]*(-debian[0-9]+)?)(:|@|$)'\nFOREIGN=('*pom.xml' '*build.gradle*' '*.csproj' '*go.mod' '*pyproject.toml' '*requirements.txt')\nfail=0\nfor df in $(git ls-files -- '*Dockerfile*'); do\n final=$(awk 'toupper($1)==\"FROM\" { img=\"\"; for (i=2;i<=NF;i++) if ($i !~ /^--/) { img=$i; break }\n if (img in alias) img=alias[img]\n for (i=2;i<=NF;i++) if (toupper($i)==\"AS\") alias[$(i+1)]=img\n final=img } END { print final }' \"$df\")\n [[ \"$final\" =~ $APPROVED ]] || { echo \"::error file=$df::final stage FROM $final is not a Node.js image (ADR Built on Node.js)\"; fail=1; }\ndone\nforeign=$(git ls-files -- \"${FOREIGN[@]}\" | grep -vxFf <(cat .stack-exceptions 2>/dev/null) || true)\n[ -z \"$foreign\" ] || { echo \"::error::build manifests of another runtime: $(tr '\\n' ' ' <<<\"$foreign\")\"; fail=1; }\nexit $fail\n```",
|
|
535
|
+
"hubWhen": {
|
|
536
|
+
"RUNTIME": [
|
|
537
|
+
"node"
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"id": "ff-only-go",
|
|
543
|
+
"type": "fitness-fn",
|
|
544
|
+
"label": "Only Go",
|
|
545
|
+
"x": 1040,
|
|
546
|
+
"y": 390,
|
|
547
|
+
"characteristic": "maintainability",
|
|
548
|
+
"scope": "atomic",
|
|
549
|
+
"cadence": "triggered",
|
|
550
|
+
"trigger": "pull-request",
|
|
551
|
+
"invocation": "automated",
|
|
552
|
+
"description": "A job in every build reads the final stage of each Dockerfile (a stage alias is resolved to its image) and lists the build manifests in the repository; it fails on a final image that is not a Go image or on a manifest of another runtime (*pom.xml, *build.gradle*, *.csproj, *package.json, *pyproject.toml, *requirements.txt). A manifest a decision record allows is listed in .stack-exceptions with that record's id. Runs on Linux (git, awk, GNU grep).\n\nThreshold: 100% of Dockerfiles end in a stage FROM a Go image; 0 build manifests of another runtime outside .stack-exceptions\n\nTool: git with awk and grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# Only Go: the final-stage base images and the build manifests of the repository\nset -euo pipefail\nAPPROVED='^(scratch|gcr\\.io/distroless/(static|base)(-debian[0-9]+)?|cgr\\.dev/chainguard/static|alpine)(:|@|$)'\nFOREIGN=('*pom.xml' '*build.gradle*' '*.csproj' '*package.json' '*pyproject.toml' '*requirements.txt')\nfail=0\nfor df in $(git ls-files -- '*Dockerfile*'); do\n final=$(awk 'toupper($1)==\"FROM\" { img=\"\"; for (i=2;i<=NF;i++) if ($i !~ /^--/) { img=$i; break }\n if (img in alias) img=alias[img]\n for (i=2;i<=NF;i++) if (toupper($i)==\"AS\") alias[$(i+1)]=img\n final=img } END { print final }' \"$df\")\n [[ \"$final\" =~ $APPROVED ]] || { echo \"::error file=$df::final stage FROM $final is not a Go image (ADR Built on Go)\"; fail=1; }\ndone\nforeign=$(git ls-files -- \"${FOREIGN[@]}\" | grep -vxFf <(cat .stack-exceptions 2>/dev/null) || true)\n[ -z \"$foreign\" ] || { echo \"::error::build manifests of another runtime: $(tr '\\n' ' ' <<<\"$foreign\")\"; fail=1; }\nexit $fail\n```",
|
|
553
|
+
"hubWhen": {
|
|
554
|
+
"RUNTIME": [
|
|
555
|
+
"go"
|
|
556
|
+
]
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"id": "ff-only-python",
|
|
561
|
+
"type": "fitness-fn",
|
|
562
|
+
"label": "Only Python",
|
|
563
|
+
"x": 1040,
|
|
564
|
+
"y": 520,
|
|
565
|
+
"characteristic": "maintainability",
|
|
566
|
+
"scope": "atomic",
|
|
567
|
+
"cadence": "triggered",
|
|
568
|
+
"trigger": "pull-request",
|
|
569
|
+
"invocation": "automated",
|
|
570
|
+
"description": "A job in every build reads the final stage of each Dockerfile (a stage alias is resolved to its image) and lists the build manifests in the repository; it fails on a final image that is not a Python image or on a manifest of another runtime (*pom.xml, *build.gradle*, *.csproj, *package.json, *go.mod). A manifest a decision record allows is listed in .stack-exceptions with that record's id. Runs on Linux (git, awk, GNU grep).\n\nThreshold: 100% of Dockerfiles end in a stage FROM a Python image; 0 build manifests of another runtime outside .stack-exceptions\n\nTool: git with awk and grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# Only Python: the final-stage base images and the build manifests of the repository\nset -euo pipefail\nAPPROVED='^(python|cgr\\.dev/chainguard/python|gcr\\.io/distroless/python3(-debian[0-9]+)?)(:|@|$)'\nFOREIGN=('*pom.xml' '*build.gradle*' '*.csproj' '*package.json' '*go.mod')\nfail=0\nfor df in $(git ls-files -- '*Dockerfile*'); do\n final=$(awk 'toupper($1)==\"FROM\" { img=\"\"; for (i=2;i<=NF;i++) if ($i !~ /^--/) { img=$i; break }\n if (img in alias) img=alias[img]\n for (i=2;i<=NF;i++) if (toupper($i)==\"AS\") alias[$(i+1)]=img\n final=img } END { print final }' \"$df\")\n [[ \"$final\" =~ $APPROVED ]] || { echo \"::error file=$df::final stage FROM $final is not a Python image (ADR Built on Python)\"; fail=1; }\ndone\nforeign=$(git ls-files -- \"${FOREIGN[@]}\" | grep -vxFf <(cat .stack-exceptions 2>/dev/null) || true)\n[ -z \"$foreign\" ] || { echo \"::error::build manifests of another runtime: $(tr '\\n' ' ' <<<\"$foreign\")\"; fail=1; }\nexit $fail\n```",
|
|
571
|
+
"hubWhen": {
|
|
572
|
+
"RUNTIME": [
|
|
573
|
+
"python"
|
|
574
|
+
]
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"id": "ff-eol",
|
|
579
|
+
"type": "fitness-fn",
|
|
580
|
+
"label": "No version near end of support",
|
|
581
|
+
"x": 1040,
|
|
582
|
+
"y": 650,
|
|
583
|
+
"characteristic": "maintainability",
|
|
584
|
+
"scope": "atomic",
|
|
585
|
+
"cadence": "triggered",
|
|
586
|
+
"trigger": "nightly",
|
|
587
|
+
"invocation": "automated",
|
|
588
|
+
"description": "A scheduled job and every build look up each product and cycle listed in versions.txt on endoflife.date and fail when its end of support is less than {{EOL_DAYS}} days away. versions.txt is kept next to the build files and changed in the same pull request as .nvmrc, go.mod, pom.xml, global.json or pyproject.toml. Runs on Linux (GNU date).\n\nThreshold: 0 runtime, framework or base image versions within {{EOL_DAYS}} days of their end of support\n\nTool: endoflife.date API (curl and jq)\n\n```bash\n#!/usr/bin/env bash\n# versions.txt: \"<endoflife.date product> <cycle>\" per line, e.g. \"nodejs 24\", \"spring-boot 3.5\", \"python 3.13\"\n# runs on Linux (GNU date); curl and jq\nset -euo pipefail\nfail=0\nwhile read -r product cycle; do\n eol=$(curl -fsS \"https://endoflife.date/api/${product}/${cycle}.json\" | jq -r '.eol')\n [ \"$eol\" = \"false\" ] && continue\n if [ \"$eol\" = \"true\" ] || [ \"$(date -d \"$eol\" +%s)\" -lt $(( $(date +%s) + {{EOL_DAYS}} * 86400 )) ]; then\n echo \"::error::$product $cycle reaches end of support on $eol\"; fail=1\n fi\ndone < versions.txt\nexit $fail\n```"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"id": "ff-upgrade-lts",
|
|
592
|
+
"type": "fitness-fn",
|
|
593
|
+
"label": "On a current LTS",
|
|
594
|
+
"x": 1040,
|
|
595
|
+
"y": 780,
|
|
596
|
+
"characteristic": "maintainability",
|
|
597
|
+
"scope": "atomic",
|
|
598
|
+
"cadence": "triggered",
|
|
599
|
+
"trigger": "nightly",
|
|
600
|
+
"invocation": "automated",
|
|
601
|
+
"description": "A scheduled job reads every product's cycles from endoflife.date: the cycle in use must be marked LTS (already, not from a future date), and the newest LTS cycle must be the one in use or younger than six months. Go and Python have no LTS cycles, so the check fails for them: pick another version policy. Runs on Linux (GNU date).\n\nThreshold: Every cycle in versions.txt is an LTS cycle, and is the newest LTS cycle unless that one was released less than 180 days ago\n\nTool: endoflife.date API (curl and jq)\n\n```bash\n#!/usr/bin/env bash\n# versions.txt: \"<endoflife.date product> <cycle>\" per line, e.g. \"nodejs 24\", \"spring-boot 3.5\", \"python 3.13\"\n# runs on Linux (GNU date); curl and jq\nset -euo pipefail\nfail=0\nwhile read -r product cycle; do\n all=$(curl -fsS \"https://endoflife.date/api/${product}.json\")\n today=$(date +%F)\n jq -e --arg c \"$cycle\" --arg today \"$today\" \\\n '.[] | select((.cycle|tostring) == $c) | .lts == true or ((.lts|type) == \"string\" and .lts <= $today)' <<<\"$all\" >/dev/null \\\n || { echo \"::error::$product $cycle is not an LTS cycle\"; fail=1; continue; }\n read -r newest released < <(jq -r --arg today \"$today\" \\\n '[.[] | select(.lts == true or ((.lts|type) == \"string\" and .lts <= $today))][0] | \"\\(.cycle) \\(.releaseDate)\"' <<<\"$all\")\n if [ \"$newest\" != \"$cycle\" ] && [ \"$(date -d \"$released\" +%s)\" -lt \"$(date -d '180 days ago' +%s)\" ]; then\n echo \"::error::$product $cycle: LTS $newest has been out since $released (6 months allowed)\"; fail=1\n fi\ndone < versions.txt\nexit $fail\n```",
|
|
602
|
+
"hubWhen": {
|
|
603
|
+
"UPGRADE": [
|
|
604
|
+
"lts"
|
|
605
|
+
]
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"id": "ff-upgrade-n1",
|
|
610
|
+
"type": "fitness-fn",
|
|
611
|
+
"label": "At most one cycle behind",
|
|
612
|
+
"x": 1040,
|
|
613
|
+
"y": 910,
|
|
614
|
+
"characteristic": "maintainability",
|
|
615
|
+
"scope": "atomic",
|
|
616
|
+
"cadence": "triggered",
|
|
617
|
+
"trigger": "nightly",
|
|
618
|
+
"invocation": "automated",
|
|
619
|
+
"description": "A scheduled job reads every product's cycles from endoflife.date (newest first) and fails when the cycle in use is not among the first two.\n\nThreshold: Every cycle in versions.txt is the newest or the second-newest cycle endoflife.date lists for its product\n\nTool: endoflife.date API (curl and jq)\n\n```bash\n#!/usr/bin/env bash\n# versions.txt: \"<endoflife.date product> <cycle>\" per line, e.g. \"nodejs 24\", \"spring-boot 3.5\", \"python 3.13\"\n# runs on Linux (GNU date); curl and jq\nset -euo pipefail\nfail=0\nwhile read -r product cycle; do\n idx=$(curl -fsS \"https://endoflife.date/api/${product}.json\" | jq --arg c \"$cycle\" 'map(.cycle|tostring) | index($c)')\n if [ \"$idx\" = null ] || [ \"$idx\" -gt 1 ]; then\n echo \"::error::$product $cycle is more than one release cycle behind the latest\"; fail=1\n fi\ndone < versions.txt\nexit $fail\n```",
|
|
620
|
+
"hubWhen": {
|
|
621
|
+
"UPGRADE": [
|
|
622
|
+
"n1"
|
|
623
|
+
]
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"id": "ff-upgrade-latest",
|
|
628
|
+
"type": "fitness-fn",
|
|
629
|
+
"label": "On the latest cycle",
|
|
630
|
+
"x": 1040,
|
|
631
|
+
"y": 1040,
|
|
632
|
+
"characteristic": "maintainability",
|
|
633
|
+
"scope": "atomic",
|
|
634
|
+
"cadence": "triggered",
|
|
635
|
+
"trigger": "nightly",
|
|
636
|
+
"invocation": "automated",
|
|
637
|
+
"description": "A scheduled job reads every product's newest cycle and its release date from endoflife.date and fails when the cycle in use is older and the newest has been out for 30 days or more. Runs on Linux (GNU date).\n\nThreshold: Every cycle in versions.txt is the newest cycle endoflife.date lists for its product, unless that one was released less than 30 days ago\n\nTool: endoflife.date API (curl and jq)\n\n```bash\n#!/usr/bin/env bash\n# versions.txt: \"<endoflife.date product> <cycle>\" per line, e.g. \"nodejs 24\", \"spring-boot 3.5\", \"python 3.13\"\n# runs on Linux (GNU date); curl and jq\nset -euo pipefail\nfail=0\nwhile read -r product cycle; do\n read -r newest released < <(curl -fsS \"https://endoflife.date/api/${product}.json\" | jq -r '.[0] | \"\\(.cycle) \\(.releaseDate)\"')\n if [ \"$newest\" != \"$cycle\" ] && [ \"$(date -d \"$released\" +%s)\" -lt \"$(date -d '30 days ago' +%s)\" ]; then\n echo \"::error::$product $cycle: $newest released on $released (30 days allowed)\"; fail=1\n fi\ndone < versions.txt\nexit $fail\n```",
|
|
638
|
+
"hubWhen": {
|
|
639
|
+
"UPGRADE": [
|
|
640
|
+
"latest"
|
|
641
|
+
]
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"id": "ff-skills",
|
|
646
|
+
"type": "fitness-fn",
|
|
647
|
+
"label": "Two of the team ship",
|
|
648
|
+
"x": 1040,
|
|
649
|
+
"y": 1170,
|
|
650
|
+
"characteristic": "maintainability",
|
|
651
|
+
"scope": "atomic",
|
|
652
|
+
"cadence": "triggered",
|
|
653
|
+
"trigger": "weekly",
|
|
654
|
+
"invocation": "automated",
|
|
655
|
+
"description": "A scheduled job counts the distinct authors of the last 12 months of commits on the service's path and keeps those whose e-mail address is in team.txt, the owning team's list kept next to CODEOWNERS; fewer than two fails. Needs the full history (fetch-depth 0).\n\nThreshold: At least 2 members of the owning team (team.txt) authored non-merge commits to the service in the last 12 months\n\nTool: git log (scheduled job)\n\n```bash\n#!/usr/bin/env bash\n# team.txt: one e-mail address of the owning team per line, kept next to CODEOWNERS\nset -euo pipefail\nn=$(git log --since='12 months ago' --no-merges --format=%ae -- . | sort -u | grep -cxFf team.txt || true)\n[ \"$n\" -ge 2 ] || { echo \"::error::only $n of the owning team merged a change to the service in 12 months (2 needed)\"; exit 1; }\n```",
|
|
656
|
+
"hubWhen": {
|
|
657
|
+
"CRITERION": [
|
|
658
|
+
"skills"
|
|
659
|
+
]
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"id": "ff-dep-review",
|
|
664
|
+
"type": "fitness-fn",
|
|
665
|
+
"label": "New dependencies maintained",
|
|
666
|
+
"x": 1040,
|
|
667
|
+
"y": 1300,
|
|
668
|
+
"characteristic": "maintainability",
|
|
669
|
+
"scope": "atomic",
|
|
670
|
+
"cadence": "triggered",
|
|
671
|
+
"trigger": "pull-request",
|
|
672
|
+
"invocation": "automated",
|
|
673
|
+
"description": "The pipeline runs the script for each direct dependency the pull request adds to the manifest (name from the manifest diff): deps.dev gives the package's newest publication date and its source repository's Scorecard, for npm, PyPI, Maven, Go and NuGet alike. A failing dependency passes only with the label dependency-exception, which the reviewer adds with the reason in the review. Runs on Linux (GNU date).\n\nThreshold: Every direct dependency a pull request adds had a release within 365 days and has an OpenSSF Scorecard of at least 5, or the pull request carries the label dependency-exception\n\nTool: deps.dev API (curl and jq) with the GitHub CLI\n\n```bash\n#!/usr/bin/env bash\n# check-dependency.sh <system> <package>: system is npm, pypi, maven (group:artifact), go or nuget\nset -euo pipefail\nsystem=$1; name=$(jq -rn --arg n \"$2\" '$n | @uri')\npkg=$(curl -fsS \"https://api.deps.dev/v3/systems/${system}/packages/${name}\")\nnewest=$(jq -r '[.versions[].publishedAt] | max' <<<\"$pkg\")\nversion=$(jq -r '.versions[] | select(.isDefault) | .versionKey.version' <<<\"$pkg\")\nproject=$(curl -fsS \"https://api.deps.dev/v3/systems/${system}/packages/${name}/versions/${version}\" \\\n | jq -r '[.relatedProjects[] | select(.relationType == \"SOURCE_REPO\")][0].projectKey.id // empty')\nscore=0\n[ -z \"$project\" ] || score=$(curl -fsS \"https://api.deps.dev/v3/projects/$(jq -rn --arg p \"$project\" '$p | @uri')\" | jq -r '.scorecard.overallScore // 0')\nfail=0\n[ \"$(date -d \"$newest\" +%s)\" -ge \"$(date -d '365 days ago' +%s)\" ] || { echo \"::error::$2: newest release $newest, more than 12 months ago\"; fail=1; }\n[ \"$(jq -n \"$score >= 5\")\" = true ] || { echo \"::error::$2: OpenSSF Scorecard $score (5 needed; project: ${project:-unknown})\"; fail=1; }\nif [ \"$fail\" = 1 ] && gh pr view \"$PR_NUMBER\" --json labels -q '.labels[].name' | grep -qx dependency-exception; then\n echo \"accepted: the pull request carries dependency-exception with the reviewer's reason\"; fail=0\nfi\nexit $fail\n```",
|
|
674
|
+
"hubWhen": {
|
|
675
|
+
"CRITERION": [
|
|
676
|
+
"ecosystem"
|
|
677
|
+
]
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"id": "ff-footprint",
|
|
682
|
+
"type": "fitness-fn",
|
|
683
|
+
"label": "Footprint within budget",
|
|
684
|
+
"x": 1040,
|
|
685
|
+
"y": 1430,
|
|
686
|
+
"characteristic": "performance-efficiency",
|
|
687
|
+
"scope": "atomic",
|
|
688
|
+
"cadence": "triggered",
|
|
689
|
+
"trigger": "release",
|
|
690
|
+
"invocation": "automated",
|
|
691
|
+
"description": "For each release candidate the job starts one instance of the image under a hard memory limit of {{MEMORY_MB}} MB, polls its readiness endpoint until it answers (failing past {{STARTUP_SECONDS}} seconds), runs the load test the Capacity and scaling pack decided against it, then reads the container's peak memory from cgroup v2 (memory.peak) and whether it was killed for memory. Runs on a Linux host with cgroup v2 (kernel 5.19 or newer).\n\nThreshold: A new instance answers its readiness probe within {{STARTUP_SECONDS}} seconds; under the load test its peak memory stays at or under {{MEMORY_MB}} MB and it is not killed for memory\n\nTool: Docker with curl and jq (release pipeline)\n\n```bash\n#!/usr/bin/env bash\n# IMAGE: the release candidate; LOAD_TEST: the k6 command of the Capacity and scaling pack, run against localhost:8080\nset -euo pipefail\nc=$(docker run -d --memory={{MEMORY_MB}}m -p 8080:8080 \"$IMAGE\")\ntrap 'docker rm -f \"$c\" >/dev/null' EXIT\nstart=$(date +%s)\nuntil curl -fsS localhost:8080/health/ready >/dev/null 2>&1; do\n sleep 1\n [ $(( $(date +%s) - start )) -lt {{STARTUP_SECONDS}} ] || { echo \"not ready within {{STARTUP_SECONDS}} s\"; exit 1; }\ndone\necho \"ready after $(( $(date +%s) - start )) s\"\nbash -c \"$LOAD_TEST\"\npeak=$(docker exec \"$c\" cat /sys/fs/cgroup/memory.peak)\noom=$(docker inspect \"$c\" | jq -r '.[0].State.OOMKilled')\n[ \"$oom\" = false ] && [ \"$peak\" -le $(( {{MEMORY_MB}} * 1024 * 1024 )) ] \\\n || { echo \"peak $(( peak / 1024 / 1024 )) MB of {{MEMORY_MB}} MB, killed for memory: $oom\"; exit 1; }\n```",
|
|
692
|
+
"hubWhen": {
|
|
693
|
+
"CRITERION": [
|
|
694
|
+
"performance"
|
|
695
|
+
]
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
],
|
|
699
|
+
"relations": [
|
|
700
|
+
{
|
|
701
|
+
"id": "req-one-stack--derives--need",
|
|
702
|
+
"sourceId": "req-one-stack",
|
|
703
|
+
"targetId": "need",
|
|
704
|
+
"relationType": "derives"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"id": "req-eol--derives--need",
|
|
708
|
+
"sourceId": "req-eol",
|
|
709
|
+
"targetId": "need",
|
|
710
|
+
"relationType": "derives"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"id": "req-lts--derives--need",
|
|
714
|
+
"sourceId": "req-lts",
|
|
715
|
+
"targetId": "need",
|
|
716
|
+
"relationType": "derives"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"id": "req-n1--derives--need",
|
|
720
|
+
"sourceId": "req-n1",
|
|
721
|
+
"targetId": "need",
|
|
722
|
+
"relationType": "derives"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"id": "req-latest--derives--need",
|
|
726
|
+
"sourceId": "req-latest",
|
|
727
|
+
"targetId": "need",
|
|
728
|
+
"relationType": "derives"
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"id": "req-skills--derives--need",
|
|
732
|
+
"sourceId": "req-skills",
|
|
733
|
+
"targetId": "need",
|
|
734
|
+
"relationType": "derives"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"id": "req-maintained--derives--need",
|
|
738
|
+
"sourceId": "req-maintained",
|
|
739
|
+
"targetId": "need",
|
|
740
|
+
"relationType": "derives"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"id": "req-footprint--derives--need",
|
|
744
|
+
"sourceId": "req-footprint",
|
|
745
|
+
"targetId": "need",
|
|
746
|
+
"relationType": "derives"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"id": "sc-one-stack--verifies--req-one-stack",
|
|
750
|
+
"sourceId": "sc-one-stack",
|
|
751
|
+
"targetId": "req-one-stack",
|
|
752
|
+
"relationType": "verifies"
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"id": "sc-eol--verifies--req-eol",
|
|
756
|
+
"sourceId": "sc-eol",
|
|
757
|
+
"targetId": "req-eol",
|
|
758
|
+
"relationType": "verifies"
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"id": "sc-lts--verifies--req-lts",
|
|
762
|
+
"sourceId": "sc-lts",
|
|
763
|
+
"targetId": "req-lts",
|
|
764
|
+
"relationType": "verifies"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"id": "sc-n1--verifies--req-n1",
|
|
768
|
+
"sourceId": "sc-n1",
|
|
769
|
+
"targetId": "req-n1",
|
|
770
|
+
"relationType": "verifies"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"id": "sc-latest--verifies--req-latest",
|
|
774
|
+
"sourceId": "sc-latest",
|
|
775
|
+
"targetId": "req-latest",
|
|
776
|
+
"relationType": "verifies"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"id": "sc-skills--verifies--req-skills",
|
|
780
|
+
"sourceId": "sc-skills",
|
|
781
|
+
"targetId": "req-skills",
|
|
782
|
+
"relationType": "verifies"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"id": "sc-maintained--verifies--req-maintained",
|
|
786
|
+
"sourceId": "sc-maintained",
|
|
787
|
+
"targetId": "req-maintained",
|
|
788
|
+
"relationType": "verifies"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"id": "sc-footprint--verifies--req-footprint",
|
|
792
|
+
"sourceId": "sc-footprint",
|
|
793
|
+
"targetId": "req-footprint",
|
|
794
|
+
"relationType": "verifies"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"id": "ff-only-jvm--implements--adr-jvm",
|
|
798
|
+
"sourceId": "ff-only-jvm",
|
|
799
|
+
"targetId": "adr-jvm",
|
|
800
|
+
"relationType": "implements"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"id": "ff-only-dotnet--implements--adr-dotnet",
|
|
804
|
+
"sourceId": "ff-only-dotnet",
|
|
805
|
+
"targetId": "adr-dotnet",
|
|
806
|
+
"relationType": "implements"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"id": "ff-only-node--implements--adr-node",
|
|
810
|
+
"sourceId": "ff-only-node",
|
|
811
|
+
"targetId": "adr-node",
|
|
812
|
+
"relationType": "implements"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"id": "ff-only-go--implements--adr-go",
|
|
816
|
+
"sourceId": "ff-only-go",
|
|
817
|
+
"targetId": "adr-go",
|
|
818
|
+
"relationType": "implements"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"id": "ff-only-python--implements--adr-python",
|
|
822
|
+
"sourceId": "ff-only-python",
|
|
823
|
+
"targetId": "adr-python",
|
|
824
|
+
"relationType": "implements"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"id": "ff-eol--implements--adr-jvm",
|
|
828
|
+
"sourceId": "ff-eol",
|
|
829
|
+
"targetId": "adr-jvm",
|
|
830
|
+
"relationType": "implements"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"id": "ff-eol--implements--adr-dotnet",
|
|
834
|
+
"sourceId": "ff-eol",
|
|
835
|
+
"targetId": "adr-dotnet",
|
|
836
|
+
"relationType": "implements"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"id": "ff-eol--implements--adr-node",
|
|
840
|
+
"sourceId": "ff-eol",
|
|
841
|
+
"targetId": "adr-node",
|
|
842
|
+
"relationType": "implements"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"id": "ff-eol--implements--adr-go",
|
|
846
|
+
"sourceId": "ff-eol",
|
|
847
|
+
"targetId": "adr-go",
|
|
848
|
+
"relationType": "implements"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"id": "ff-eol--implements--adr-python",
|
|
852
|
+
"sourceId": "ff-eol",
|
|
853
|
+
"targetId": "adr-python",
|
|
854
|
+
"relationType": "implements"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"id": "ff-upgrade-lts--implements--adr-jvm",
|
|
858
|
+
"sourceId": "ff-upgrade-lts",
|
|
859
|
+
"targetId": "adr-jvm",
|
|
860
|
+
"relationType": "implements"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"id": "ff-upgrade-lts--implements--adr-dotnet",
|
|
864
|
+
"sourceId": "ff-upgrade-lts",
|
|
865
|
+
"targetId": "adr-dotnet",
|
|
866
|
+
"relationType": "implements"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"id": "ff-upgrade-lts--implements--adr-node",
|
|
870
|
+
"sourceId": "ff-upgrade-lts",
|
|
871
|
+
"targetId": "adr-node",
|
|
872
|
+
"relationType": "implements"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"id": "ff-upgrade-lts--implements--adr-go",
|
|
876
|
+
"sourceId": "ff-upgrade-lts",
|
|
877
|
+
"targetId": "adr-go",
|
|
878
|
+
"relationType": "implements"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"id": "ff-upgrade-lts--implements--adr-python",
|
|
882
|
+
"sourceId": "ff-upgrade-lts",
|
|
883
|
+
"targetId": "adr-python",
|
|
884
|
+
"relationType": "implements"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"id": "ff-upgrade-n1--implements--adr-jvm",
|
|
888
|
+
"sourceId": "ff-upgrade-n1",
|
|
889
|
+
"targetId": "adr-jvm",
|
|
890
|
+
"relationType": "implements"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"id": "ff-upgrade-n1--implements--adr-dotnet",
|
|
894
|
+
"sourceId": "ff-upgrade-n1",
|
|
895
|
+
"targetId": "adr-dotnet",
|
|
896
|
+
"relationType": "implements"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"id": "ff-upgrade-n1--implements--adr-node",
|
|
900
|
+
"sourceId": "ff-upgrade-n1",
|
|
901
|
+
"targetId": "adr-node",
|
|
902
|
+
"relationType": "implements"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"id": "ff-upgrade-n1--implements--adr-go",
|
|
906
|
+
"sourceId": "ff-upgrade-n1",
|
|
907
|
+
"targetId": "adr-go",
|
|
908
|
+
"relationType": "implements"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"id": "ff-upgrade-n1--implements--adr-python",
|
|
912
|
+
"sourceId": "ff-upgrade-n1",
|
|
913
|
+
"targetId": "adr-python",
|
|
914
|
+
"relationType": "implements"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"id": "ff-upgrade-latest--implements--adr-jvm",
|
|
918
|
+
"sourceId": "ff-upgrade-latest",
|
|
919
|
+
"targetId": "adr-jvm",
|
|
920
|
+
"relationType": "implements"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"id": "ff-upgrade-latest--implements--adr-dotnet",
|
|
924
|
+
"sourceId": "ff-upgrade-latest",
|
|
925
|
+
"targetId": "adr-dotnet",
|
|
926
|
+
"relationType": "implements"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"id": "ff-upgrade-latest--implements--adr-node",
|
|
930
|
+
"sourceId": "ff-upgrade-latest",
|
|
931
|
+
"targetId": "adr-node",
|
|
932
|
+
"relationType": "implements"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"id": "ff-upgrade-latest--implements--adr-go",
|
|
936
|
+
"sourceId": "ff-upgrade-latest",
|
|
937
|
+
"targetId": "adr-go",
|
|
938
|
+
"relationType": "implements"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"id": "ff-upgrade-latest--implements--adr-python",
|
|
942
|
+
"sourceId": "ff-upgrade-latest",
|
|
943
|
+
"targetId": "adr-python",
|
|
944
|
+
"relationType": "implements"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"id": "ff-skills--implements--adr-jvm",
|
|
948
|
+
"sourceId": "ff-skills",
|
|
949
|
+
"targetId": "adr-jvm",
|
|
950
|
+
"relationType": "implements"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"id": "ff-skills--implements--adr-dotnet",
|
|
954
|
+
"sourceId": "ff-skills",
|
|
955
|
+
"targetId": "adr-dotnet",
|
|
956
|
+
"relationType": "implements"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"id": "ff-skills--implements--adr-node",
|
|
960
|
+
"sourceId": "ff-skills",
|
|
961
|
+
"targetId": "adr-node",
|
|
962
|
+
"relationType": "implements"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"id": "ff-skills--implements--adr-go",
|
|
966
|
+
"sourceId": "ff-skills",
|
|
967
|
+
"targetId": "adr-go",
|
|
968
|
+
"relationType": "implements"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"id": "ff-skills--implements--adr-python",
|
|
972
|
+
"sourceId": "ff-skills",
|
|
973
|
+
"targetId": "adr-python",
|
|
974
|
+
"relationType": "implements"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"id": "ff-dep-review--implements--adr-jvm",
|
|
978
|
+
"sourceId": "ff-dep-review",
|
|
979
|
+
"targetId": "adr-jvm",
|
|
980
|
+
"relationType": "implements"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"id": "ff-dep-review--implements--adr-dotnet",
|
|
984
|
+
"sourceId": "ff-dep-review",
|
|
985
|
+
"targetId": "adr-dotnet",
|
|
986
|
+
"relationType": "implements"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"id": "ff-dep-review--implements--adr-node",
|
|
990
|
+
"sourceId": "ff-dep-review",
|
|
991
|
+
"targetId": "adr-node",
|
|
992
|
+
"relationType": "implements"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"id": "ff-dep-review--implements--adr-go",
|
|
996
|
+
"sourceId": "ff-dep-review",
|
|
997
|
+
"targetId": "adr-go",
|
|
998
|
+
"relationType": "implements"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"id": "ff-dep-review--implements--adr-python",
|
|
1002
|
+
"sourceId": "ff-dep-review",
|
|
1003
|
+
"targetId": "adr-python",
|
|
1004
|
+
"relationType": "implements"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"id": "ff-footprint--implements--adr-jvm",
|
|
1008
|
+
"sourceId": "ff-footprint",
|
|
1009
|
+
"targetId": "adr-jvm",
|
|
1010
|
+
"relationType": "implements"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"id": "ff-footprint--implements--adr-dotnet",
|
|
1014
|
+
"sourceId": "ff-footprint",
|
|
1015
|
+
"targetId": "adr-dotnet",
|
|
1016
|
+
"relationType": "implements"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"id": "ff-footprint--implements--adr-node",
|
|
1020
|
+
"sourceId": "ff-footprint",
|
|
1021
|
+
"targetId": "adr-node",
|
|
1022
|
+
"relationType": "implements"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"id": "ff-footprint--implements--adr-go",
|
|
1026
|
+
"sourceId": "ff-footprint",
|
|
1027
|
+
"targetId": "adr-go",
|
|
1028
|
+
"relationType": "implements"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"id": "ff-footprint--implements--adr-python",
|
|
1032
|
+
"sourceId": "ff-footprint",
|
|
1033
|
+
"targetId": "adr-python",
|
|
1034
|
+
"relationType": "implements"
|
|
1035
|
+
}
|
|
1036
|
+
]
|
|
1037
|
+
}
|