@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,1450 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-technical-debt",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Technical debt",
|
|
6
|
+
"description": "Where technical debt is written down so that it can be seen, how much of the team's time repaying it gets, how deprecated code and endpoints are retired (a flag past its rollout is a debt item; its removal is decided in the Deployment and rollback pack), and how a rewrite is decided.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"maintainability",
|
|
9
|
+
"technical debt",
|
|
10
|
+
"deprecation",
|
|
11
|
+
"strangler fig",
|
|
12
|
+
"refactoring"
|
|
13
|
+
],
|
|
14
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
15
|
+
"concern": {
|
|
16
|
+
"id": "technical-debt",
|
|
17
|
+
"trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\") AND external != true",
|
|
18
|
+
"why": "code lives in these elements and accumulates shortcuts, so where that debt is recorded, how it is repaid and how old code is retired has to be decided; one decision usually covers a whole repository and is bound to every element built from it.",
|
|
19
|
+
"group": "coding"
|
|
20
|
+
},
|
|
21
|
+
"sources": [
|
|
22
|
+
{
|
|
23
|
+
"title": "Ward Cunningham: Ward Explains Debt Metaphor (c2.com)",
|
|
24
|
+
"url": "https://wiki.c2.com/?WardExplainsDebtMetaphor"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"title": "Martin Fowler: TechnicalDebt",
|
|
28
|
+
"url": "https://martinfowler.com/bliki/TechnicalDebt.html"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"title": "Martin Fowler: TechnicalDebtQuadrant",
|
|
32
|
+
"url": "https://martinfowler.com/bliki/TechnicalDebtQuadrant.html"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"title": "Martin Fowler: StranglerFigApplication",
|
|
36
|
+
"url": "https://martinfowler.com/bliki/StranglerFigApplication.html"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"title": "Kruchten, Nord, Ozkaya: Technical Debt: From Metaphor to Theory and Practice (IEEE Software, 2012)",
|
|
40
|
+
"url": "https://ieeexplore.ieee.org/document/6336722"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"title": "SonarSource: Metric definitions, technical debt and the SQALE debt ratio",
|
|
44
|
+
"url": "https://docs.sonarsource.com/sonarqube-server/latest/user-guide/code-metrics/metrics-definition/"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Michael Nygard: Documenting Architecture Decisions",
|
|
48
|
+
"url": "https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"title": "RFC 8594, The Sunset HTTP Header Field",
|
|
52
|
+
"url": "https://www.rfc-editor.org/rfc/rfc8594"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"title": "RFC 9745, The Deprecation HTTP Header Field",
|
|
56
|
+
"url": "https://www.rfc-editor.org/rfc/rfc9745"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"title": "Forsgren, Humble, Kim: Accelerate",
|
|
60
|
+
"url": "https://itrevolution.com/product/accelerate/"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"title": "ISO/IEC 25010, Maintainability: modifiability, analysability",
|
|
64
|
+
"url": "https://iso25000.com/index.php/en/iso-25000-standards/iso-25010"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"title": "Joel Spolsky: Things You Should Never Do, Part I",
|
|
68
|
+
"url": "https://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"title": "eslint-plugin-unicorn: expiring-todo-comments",
|
|
72
|
+
"url": "https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/expiring-todo-comments.md"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"templateParams": [
|
|
76
|
+
{
|
|
77
|
+
"key": "REGISTRY",
|
|
78
|
+
"title": "Register",
|
|
79
|
+
"label": "Where is technical debt written down?",
|
|
80
|
+
"hint": "A debt that is only in someone's head is never planned, never repaid and never retired with its owner; the register is the one place planning looks at.",
|
|
81
|
+
"defaultValue": "issues",
|
|
82
|
+
"options": [
|
|
83
|
+
{
|
|
84
|
+
"value": "issues",
|
|
85
|
+
"label": "issues in the tracker, labelled tech-debt",
|
|
86
|
+
"description": "Every debt item is an issue (GitHub Issues, Jira, Linear) with the label tech-debt, an assignee, a cost estimate and a consequence; the code points at it with TODO (KEY-123), and debt is triaged in the same meeting as bugs. Pick it when the team already plans from the tracker and debt should compete for the same backlog on equal terms."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"value": "adrs",
|
|
90
|
+
"label": "decision records in the repository",
|
|
91
|
+
"description": "Debt is recorded as decision records next to the ADRs (docs/debt/NNNN-*.md, copied from a template, with front matter for owner, cost and status) with a consequences section; items too small for a record are TODO (DEBT-NNNN) comments pointing at one. Pick it when the debt is architectural (a wrong boundary, a library to leave, a schema to split) and the reasoning matters more than the ticket, or when the tracker belongs to someone else."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": "tool",
|
|
95
|
+
"label": "a code-analysis platform, no separate list",
|
|
96
|
+
"description": "SonarQube or SonarCloud is the register: each open issue carries its remediation effort, the sum is the debt, the debt ratio is a quality-gate condition and the dashboard is the report; an issue accepted as \"won't fix\" with a reason is tolerated debt. Pick it when most of the debt is in the code itself (duplication, complexity, smells) and nobody will keep a list by hand."
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "BUDGET",
|
|
102
|
+
"title": "Budget",
|
|
103
|
+
"label": "How much of the team's time does repayment get?",
|
|
104
|
+
"hint": "Repayment that is not planned does not happen; a budget turns \"we should\" into a share of every iteration, a window on the calendar or a rule for every change.",
|
|
105
|
+
"defaultValue": "fixed-share",
|
|
106
|
+
"options": [
|
|
107
|
+
{
|
|
108
|
+
"value": "fixed-share",
|
|
109
|
+
"label": "a fixed share of every iteration",
|
|
110
|
+
"description": "A share of each iteration's capacity (20% by default) goes to items from the register, picked by the team, and the share reached is reported at the end. Pick it when the team plans in iterations and the debt is spread across the code rather than in a few large items."
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"value": "windows",
|
|
114
|
+
"label": "repayment windows on the calendar",
|
|
115
|
+
"description": "A number of days a quarter (5 by default) are blocked for repayment only, as a fix-it week or a debt sprint, with the items picked from the register before the window starts. Pick it when the debt comes in large items (a migration, a framework upgrade) that cannot be done in slices beside feature work."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"value": "boy-scout",
|
|
119
|
+
"label": "the boy-scout rule, no budget",
|
|
120
|
+
"description": "Every change leaves the code it touches a little better, and a touched file's lint findings may not grow; debt is repaid in passing and the register shrinks only where people work. Pick it for a small codebase with a steady team and little debt, where a budget would be more ceremony than work."
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"key": "DEPRECATION",
|
|
126
|
+
"title": "Deprecation",
|
|
127
|
+
"label": "What happens to deprecated code and endpoints?",
|
|
128
|
+
"hint": "Deprecated code that stays costs a little in every change and a lot in the one that finally removes it; a date gives removal a sponsor. Feature flags are retired as the Deployment and rollback pack decides.",
|
|
129
|
+
"defaultValue": "sunset",
|
|
130
|
+
"options": [
|
|
131
|
+
{
|
|
132
|
+
"value": "sunset",
|
|
133
|
+
"label": "an enforced sunset date",
|
|
134
|
+
"description": "Everything deprecated (code, endpoints) carries a sunset date at least a grace period ahead (90 days by default) and is removed by it; a check fails the build the day after. Pick it when the team can commit to removal dates, including for endpoints other teams call."
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"value": "tolerated",
|
|
138
|
+
"label": "a marker without a date",
|
|
139
|
+
"description": "Deprecated code is marked with its reason, replacement and register key, no new code may call it, and it is removed only when it blocks a change. Pick it when callers you do not control depend on it and a date you cannot enforce would only be missed."
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"key": "REWRITE",
|
|
145
|
+
"title": "Rewrite",
|
|
146
|
+
"label": "How is a rewrite decided?",
|
|
147
|
+
"hint": "A full rewrite stops delivery for months and recreates the bugs the old code had already fixed; a piece-by-piece replacement keeps the old system in production until each piece is proven.",
|
|
148
|
+
"defaultValue": "strangler",
|
|
149
|
+
"options": [
|
|
150
|
+
{
|
|
151
|
+
"value": "strangler",
|
|
152
|
+
"label": "piece by piece (strangler fig)",
|
|
153
|
+
"description": "A rewrite replaces one piece at a time behind a facade, old and new running side by side with a cut-over and a way back per piece; big-bang rewrites are not done. Pick it by default, and always when the element serves users while it is rewritten."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"value": "big-bang-allowed",
|
|
157
|
+
"label": "a full rewrite with a written case",
|
|
158
|
+
"description": "A full rewrite may be started when a written case with cost, risk, parity criteria and what the old code knows that nobody remembers is accepted by the owners and recorded as an ADR. Pick it when the element is small, its behaviour is fully specified by tests, or it must leave a platform that is going away."
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"key": "AGE",
|
|
164
|
+
"title": "Age limit",
|
|
165
|
+
"label": "Is there a maximum age for a debt item?",
|
|
166
|
+
"hint": "A register that only grows stops being read; an age limit forces a decision on every item: schedule it, or accept the debt in writing and close it.",
|
|
167
|
+
"defaultValue": "max-age",
|
|
168
|
+
"options": [
|
|
169
|
+
{
|
|
170
|
+
"value": "max-age",
|
|
171
|
+
"label": "escalation after a maximum age",
|
|
172
|
+
"description": "A debt item older than the limit (180 days by default) is escalated to the owner's lead and either scheduled into the next iteration or window, or closed with a written decision that the debt is accepted. Pick it when the register has more than a few dozen items or several teams feed it."
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"value": "none",
|
|
176
|
+
"label": "no age limit",
|
|
177
|
+
"description": "Items stay in the register until they are repaid or someone closes them. Pick it for a short register that one team prunes in its triage anyway."
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"key": "DEBT_SHARE_PCT",
|
|
183
|
+
"label": "What share of each iteration goes to debt (%)?",
|
|
184
|
+
"defaultValue": "20",
|
|
185
|
+
"type": "number"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"key": "WINDOW_DAYS_PER_QUARTER",
|
|
189
|
+
"label": "How many days a quarter are a repayment window?",
|
|
190
|
+
"defaultValue": "5",
|
|
191
|
+
"type": "number"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"key": "MAX_DEBT_AGE_DAYS",
|
|
195
|
+
"label": "After how many days is a debt item escalated?",
|
|
196
|
+
"defaultValue": "180",
|
|
197
|
+
"type": "number"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"key": "MAX_DEBT_RATIO_PCT",
|
|
201
|
+
"label": "What technical debt ratio is allowed on new code (%)?",
|
|
202
|
+
"defaultValue": "5",
|
|
203
|
+
"type": "number"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"key": "SUNSET_GRACE_DAYS",
|
|
207
|
+
"label": "How many days of notice does a sunset date give at least?",
|
|
208
|
+
"defaultValue": "90",
|
|
209
|
+
"type": "number"
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"nodes": [
|
|
214
|
+
{
|
|
215
|
+
"id": "need",
|
|
216
|
+
"type": "need",
|
|
217
|
+
"label": "Debt is visible and repaid on purpose",
|
|
218
|
+
"x": 0,
|
|
219
|
+
"y": 0,
|
|
220
|
+
"kind": "brief",
|
|
221
|
+
"source": "Hub concern pack: Technical debt",
|
|
222
|
+
"description": "Every shortcut taken in this element charges interest in each later change that touches it. The team needs the debt written down where planning can see it, with an owner, what repaying costs and what leaving it costs; a known share of its time to repay it; deprecated code and endpoints that actually go away; and a way to decide a rewrite that does not stop delivery for a year. Without this the element gets slower to change every quarter and nobody can say why."
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"id": "req-todo-key",
|
|
226
|
+
"type": "requirement",
|
|
227
|
+
"label": "Every TODO names a debt item",
|
|
228
|
+
"x": 260,
|
|
229
|
+
"y": 0,
|
|
230
|
+
"ears_type": "ubiquitous",
|
|
231
|
+
"action": "allow a TODO, FIXME, HACK or XXX comment only in the form TODO (KEY-123), where KEY-123 is an open item of the register (an issue, or a debt record not marked repaid), and fail lint on a comment without a key and the build on a comment whose item is closed or repaid",
|
|
232
|
+
"rationale": "A TODO without a record is debt only its author knows about; one pointing at a closed item is a repaid debt nobody removed from the code (Fowler, TechnicalDebt; Kruchten et al.: debt items need an identity to be managed).",
|
|
233
|
+
"hubWhen": {
|
|
234
|
+
"REGISTRY": [
|
|
235
|
+
"issues",
|
|
236
|
+
"adrs"
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"id": "req-debt-record",
|
|
242
|
+
"type": "requirement",
|
|
243
|
+
"label": "Debt items carry owner, cost and consequence",
|
|
244
|
+
"x": 260,
|
|
245
|
+
"y": 130,
|
|
246
|
+
"ears_type": "ubiquitous",
|
|
247
|
+
"action": "record for every debt item an owner, an estimate of what repaying it costs (days or remediation effort) and the consequence of leaving it (what gets slower, riskier or impossible), and fail the weekly register check on an item without them",
|
|
248
|
+
"rationale": "Debt is a decision about interest against principal; without cost and consequence there is nothing to decide with, and without an owner nobody brings it to planning (Kruchten, Nord, Ozkaya: a technical debt item; Cunningham)."
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"id": "req-share-reported",
|
|
252
|
+
"type": "requirement",
|
|
253
|
+
"label": "Repayment share is measured",
|
|
254
|
+
"x": 260,
|
|
255
|
+
"y": 260,
|
|
256
|
+
"ears_type": "event-driven",
|
|
257
|
+
"trigger": "an iteration ends",
|
|
258
|
+
"action": "report the share of the pull requests merged in it that repaid debt (labelled tech-debt), with the register's size, where the team and its stakeholders see it",
|
|
259
|
+
"rationale": "What is not measured is the first thing cut; Accelerate links sustained delivery performance to time deliberately spent on the system itself."
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"id": "req-fixed-share",
|
|
263
|
+
"type": "requirement",
|
|
264
|
+
"label": "A share of every iteration",
|
|
265
|
+
"x": 260,
|
|
266
|
+
"y": 390,
|
|
267
|
+
"ears_type": "state-driven",
|
|
268
|
+
"precondition": "an iteration is being planned",
|
|
269
|
+
"action": "reserve at least {{DEBT_SHARE_PCT}}% of its capacity for items from the register, chosen by the team by consequence, and fail the share job at the iteration's end when fewer than {{DEBT_SHARE_PCT}}% of the merged pull requests repaid debt, so that the retrospective explains it",
|
|
270
|
+
"rationale": "Repayment that competes with features item by item loses every time; a fixed share removes the per-item negotiation (Fowler, TechnicalDebt: paying down with every iteration).",
|
|
271
|
+
"hubWhen": {
|
|
272
|
+
"BUDGET": [
|
|
273
|
+
"fixed-share"
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"id": "req-windows",
|
|
279
|
+
"type": "requirement",
|
|
280
|
+
"label": "Repayment windows on the calendar",
|
|
281
|
+
"x": 260,
|
|
282
|
+
"y": 520,
|
|
283
|
+
"ears_type": "event-driven",
|
|
284
|
+
"trigger": "a quarter starts",
|
|
285
|
+
"action": "block at least {{WINDOW_DAYS_PER_QUARTER}} days of the whole team for repayment only, recorded in debt-windows.json with the items picked from the register at least 14 days before the window, and merge no pull request without the tech-debt label during the window",
|
|
286
|
+
"rationale": "Large items (an upgrade, a migration) cannot be sliced beside feature work; a window only works when it is on the calendar before features claim it (Kruchten et al.: debt repayment as planned work).",
|
|
287
|
+
"hubWhen": {
|
|
288
|
+
"BUDGET": [
|
|
289
|
+
"windows"
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"id": "req-boy-scout",
|
|
295
|
+
"type": "requirement",
|
|
296
|
+
"label": "Touched files do not get worse",
|
|
297
|
+
"x": 260,
|
|
298
|
+
"y": 650,
|
|
299
|
+
"ears_type": "unwanted-behaviour",
|
|
300
|
+
"unwanted_condition": "a pull request leaves a file it changed with more lint findings (errors and warnings) than the file had on the base branch",
|
|
301
|
+
"action": "fail the check and block the merge until the touched file has at most as many findings as before",
|
|
302
|
+
"rationale": "Without a budget the only repayment is in passing; the rule makes \"a little better\" checkable instead of hoped for (Fowler, TechnicalDebt; duplication and complexity in new code are the Code quality gate's conditions).",
|
|
303
|
+
"hubWhen": {
|
|
304
|
+
"BUDGET": [
|
|
305
|
+
"boy-scout"
|
|
306
|
+
]
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"id": "req-deprecated-marked",
|
|
311
|
+
"type": "requirement",
|
|
312
|
+
"label": "Deprecated code says why and what instead",
|
|
313
|
+
"x": 260,
|
|
314
|
+
"y": 780,
|
|
315
|
+
"ears_type": "ubiquitous",
|
|
316
|
+
"action": "mark every deprecated function, module and endpoint with the language's deprecation marker (@deprecated, [Obsolete], warnings.deprecated) whose text names the replacement and the register key, and answer deprecated endpoints with a Deprecation header",
|
|
317
|
+
"rationale": "A deprecation without a replacement teaches nothing and is ignored; one with a key can be planned (RFC 9745; ISO 25010 analysability)."
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"id": "req-sunset",
|
|
321
|
+
"type": "requirement",
|
|
322
|
+
"label": "Deprecated things carry a sunset and go",
|
|
323
|
+
"x": 260,
|
|
324
|
+
"y": 910,
|
|
325
|
+
"ears_type": "unwanted-behaviour",
|
|
326
|
+
"unwanted_condition": "a deprecated function, module or endpoint is still in the code after its sunset date, or is deprecated with a sunset less than {{SUNSET_GRACE_DAYS}} days ahead",
|
|
327
|
+
"action": "fail the build naming the item, and for endpoints send the sunset date in a Sunset header beside the Deprecation header from the day of deprecation, so that callers see it coming",
|
|
328
|
+
"rationale": "Removal has no sponsor unless a date forces one; a build that fails after the date is a sponsor that never forgets (RFC 8594; RFC 9745; Kruchten et al.: debt repayment as planned work).",
|
|
329
|
+
"hubWhen": {
|
|
330
|
+
"DEPRECATION": [
|
|
331
|
+
"sunset"
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"id": "req-no-new-callers",
|
|
337
|
+
"type": "requirement",
|
|
338
|
+
"label": "No new callers of deprecated code",
|
|
339
|
+
"x": 260,
|
|
340
|
+
"y": 1040,
|
|
341
|
+
"ears_type": "unwanted-behaviour",
|
|
342
|
+
"unwanted_condition": "new or changed code calls or imports something marked deprecated",
|
|
343
|
+
"action": "fail lint, unless the line carries a disable comment naming the register key under which the call is tolerated",
|
|
344
|
+
"rationale": "Deprecated code can only be removed when its callers stop growing; a named exception keeps the debt visible instead of hidden in a blanket disable (Fowler, StranglerFigApplication: the old code shrinks only if nothing new depends on it)."
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"id": "req-tolerated",
|
|
348
|
+
"type": "requirement",
|
|
349
|
+
"label": "Deprecated code tolerated until it blocks",
|
|
350
|
+
"x": 260,
|
|
351
|
+
"y": 1170,
|
|
352
|
+
"ears_type": "ubiquitous",
|
|
353
|
+
"action": "keep deprecated code without a removal date, with its marker naming the replacement and the register item that stays open, and let no new code call it, so that it is removed in the change it first blocks",
|
|
354
|
+
"rationale": "A date the team cannot enforce is a promise broken on schedule; a marker, an open item and a ban on new callers keep the debt visible and shrinking without one (Fowler, TechnicalDebt; Kruchten et al.).",
|
|
355
|
+
"hubWhen": {
|
|
356
|
+
"DEPRECATION": [
|
|
357
|
+
"tolerated"
|
|
358
|
+
]
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"id": "req-no-new-debt",
|
|
363
|
+
"type": "requirement",
|
|
364
|
+
"label": "New debt comes with its record",
|
|
365
|
+
"x": 260,
|
|
366
|
+
"y": 1300,
|
|
367
|
+
"ears_type": "event-driven",
|
|
368
|
+
"trigger": "a pull request knowingly takes a shortcut: it waives a quality-gate condition, suppresses a warning, skips a test or adds a TODO",
|
|
369
|
+
"action": "carry the register key of a debt item opened in the same pull request, with owner, cost and consequence, so that 0 shortcuts are merged without a record",
|
|
370
|
+
"rationale": "Deliberate debt is sound only when it is written down at the moment it is taken; afterwards nobody remembers it was a loan (Fowler, TechnicalDebtQuadrant: deliberate and prudent). What the gate itself requires is the Code quality gate concern's decision.",
|
|
371
|
+
"unchecked": "the reviewer of each pull request checks that a waived condition, a suppression or a skipped test names a register item opened in the same pull request; no tool can tell a deliberate shortcut from an accident (a TODO without a key is the one case the lint catches)"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"id": "req-strangler",
|
|
375
|
+
"type": "requirement",
|
|
376
|
+
"label": "Rewrites go piece by piece",
|
|
377
|
+
"x": 260,
|
|
378
|
+
"y": 1430,
|
|
379
|
+
"ears_type": "ubiquitous",
|
|
380
|
+
"action": "replace an element or module to be rewritten one piece at a time behind a facade that routes each piece to old or new, keep old and new running side by side with a documented cut-over and a way back per piece, and let no code outside the facade import the legacy module",
|
|
381
|
+
"rationale": "The old system keeps serving while each new piece is proven in production, and a failed piece is routed back instead of rolled back as a whole (Fowler, StranglerFigApplication; Spolsky on what a rewrite forgets).",
|
|
382
|
+
"hubWhen": {
|
|
383
|
+
"REWRITE": [
|
|
384
|
+
"strangler"
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"id": "req-rewrite-case",
|
|
390
|
+
"type": "requirement",
|
|
391
|
+
"label": "A rewrite needs an accepted case",
|
|
392
|
+
"x": 260,
|
|
393
|
+
"y": 1560,
|
|
394
|
+
"ears_type": "event-driven",
|
|
395
|
+
"trigger": "a full rewrite of the element or of one of its modules is proposed",
|
|
396
|
+
"action": "write the case as an ADR of kind rewrite with the cost in person-months, the risks, the parity criteria (which tests and behaviours the new code must match), what the old code handles that no document describes, and a cut-over plan, accepted in writing by at least two owners, and merge no pull request labelled rewrite that does not link an accepted rewrite ADR",
|
|
397
|
+
"rationale": "A rewrite is the costliest way to repay debt and usually recreates the bugs the old code had fixed; a written case makes the gamble explicit before months are spent (Spolsky, Things You Should Never Do; Nygard, Documenting Architecture Decisions).",
|
|
398
|
+
"hubWhen": {
|
|
399
|
+
"REWRITE": [
|
|
400
|
+
"big-bang-allowed"
|
|
401
|
+
]
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": "req-age",
|
|
406
|
+
"type": "requirement",
|
|
407
|
+
"label": "Old debt items get a decision",
|
|
408
|
+
"x": 260,
|
|
409
|
+
"y": 1690,
|
|
410
|
+
"ears_type": "unwanted-behaviour",
|
|
411
|
+
"unwanted_condition": "a debt item has been open for more than {{MAX_DEBT_AGE_DAYS}} days without being marked escalated or accepted-debt",
|
|
412
|
+
"action": "fail the weekly age check naming it, so that within 1 week it is escalated to the owner's lead and either scheduled into the next iteration or window or closed with a written decision that the debt is accepted",
|
|
413
|
+
"rationale": "A register that only grows stops being read; forcing a decision keeps every item either moving or honestly accepted (Kruchten et al.: debt that is never repaid should be declared, not carried).",
|
|
414
|
+
"hubWhen": {
|
|
415
|
+
"AGE": [
|
|
416
|
+
"max-age"
|
|
417
|
+
]
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": "req-tool-ratio",
|
|
422
|
+
"type": "requirement",
|
|
423
|
+
"label": "Debt ratio bounded in the gate",
|
|
424
|
+
"x": 260,
|
|
425
|
+
"y": 1820,
|
|
426
|
+
"ears_type": "ubiquitous",
|
|
427
|
+
"action": "keep the technical debt ratio on new code at or below {{MAX_DEBT_RATIO_PCT}}% as a quality-gate condition, show the overall ratio and total remediation effort on the project dashboard, assign every open issue to an owner, and accept an issue as won't fix only with a written reason",
|
|
428
|
+
"rationale": "With the platform as the register, the ratio is the one number debt is managed by, and an unassigned or silently accepted issue is debt that has left the register (SonarSource, metric definitions: technical debt ratio; SQALE).",
|
|
429
|
+
"hubWhen": {
|
|
430
|
+
"REGISTRY": [
|
|
431
|
+
"tool"
|
|
432
|
+
]
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"id": "sc-todo-key",
|
|
437
|
+
"type": "scenario",
|
|
438
|
+
"label": "Keyless TODO refused",
|
|
439
|
+
"x": 520,
|
|
440
|
+
"y": 0,
|
|
441
|
+
"given": "a pull request with a TODO without a key, a TODO (KEY-123) whose item is open, and a TODO (KEY-99) whose item is closed",
|
|
442
|
+
"when": "lint and the build run",
|
|
443
|
+
"then": "lint names the keyless comment, the build names KEY-99 as closed, and only KEY-123 passes",
|
|
444
|
+
"hubWhen": {
|
|
445
|
+
"REGISTRY": [
|
|
446
|
+
"issues",
|
|
447
|
+
"adrs"
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"id": "sc-debt-record",
|
|
453
|
+
"type": "scenario",
|
|
454
|
+
"label": "Incomplete item flagged",
|
|
455
|
+
"x": 520,
|
|
456
|
+
"y": 130,
|
|
457
|
+
"given": "a new debt item without an owner or a consequence",
|
|
458
|
+
"when": "the weekly register check runs",
|
|
459
|
+
"then": "it fails naming the item, and passes once owner, cost and consequence are filled in"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"id": "sc-share-reported",
|
|
463
|
+
"type": "scenario",
|
|
464
|
+
"label": "Share in the iteration report",
|
|
465
|
+
"x": 520,
|
|
466
|
+
"y": 260,
|
|
467
|
+
"given": "an iteration in which 12 pull requests were merged, 3 of them labelled tech-debt",
|
|
468
|
+
"when": "it ends and the share job runs",
|
|
469
|
+
"then": "the report shows 25% debt work and the number of open items"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"id": "sc-fixed-share",
|
|
473
|
+
"type": "scenario",
|
|
474
|
+
"label": "Share planned and kept",
|
|
475
|
+
"x": 520,
|
|
476
|
+
"y": 390,
|
|
477
|
+
"given": "an iteration with {{DEBT_SHARE_PCT}}% reserved",
|
|
478
|
+
"when": "it closes and the share job runs",
|
|
479
|
+
"then": "at least {{DEBT_SHARE_PCT}}% of the merged pull requests are labelled tech-debt, or the job fails for the retrospective to record why",
|
|
480
|
+
"hubWhen": {
|
|
481
|
+
"BUDGET": [
|
|
482
|
+
"fixed-share"
|
|
483
|
+
]
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"id": "sc-windows",
|
|
488
|
+
"type": "scenario",
|
|
489
|
+
"label": "Window held",
|
|
490
|
+
"x": 520,
|
|
491
|
+
"y": 520,
|
|
492
|
+
"given": "the current quarter",
|
|
493
|
+
"when": "the window test and the window-merge check run",
|
|
494
|
+
"then": "debt-windows.json holds a window of at least {{WINDOW_DAYS_PER_QUARTER}} days for the quarter with items picked 14 days ahead, and no pull request merged during the window lacks the tech-debt label",
|
|
495
|
+
"hubWhen": {
|
|
496
|
+
"BUDGET": [
|
|
497
|
+
"windows"
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"id": "sc-boy-scout",
|
|
503
|
+
"type": "scenario",
|
|
504
|
+
"label": "Findings grew in a touched file",
|
|
505
|
+
"x": 520,
|
|
506
|
+
"y": 650,
|
|
507
|
+
"given": "a file with 4 lint findings",
|
|
508
|
+
"when": "a pull request changes it and leaves 5",
|
|
509
|
+
"then": "the check fails naming the file, and passes once the count is 4 or fewer",
|
|
510
|
+
"hubWhen": {
|
|
511
|
+
"BUDGET": [
|
|
512
|
+
"boy-scout"
|
|
513
|
+
]
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"id": "sc-deprecated-marked",
|
|
518
|
+
"type": "scenario",
|
|
519
|
+
"label": "Marker complete",
|
|
520
|
+
"x": 520,
|
|
521
|
+
"y": 780,
|
|
522
|
+
"given": "a function deprecated in a pull request",
|
|
523
|
+
"when": "the marker check runs",
|
|
524
|
+
"then": "its @deprecated text names a replacement and a register key, and a marker without either fails the check"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"id": "sc-sunset",
|
|
528
|
+
"type": "scenario",
|
|
529
|
+
"label": "Build fails after sunset",
|
|
530
|
+
"x": 520,
|
|
531
|
+
"y": 910,
|
|
532
|
+
"given": "a module marked deprecated with a sunset of 2027-01-31, and a pull request deprecating another with a sunset 10 days ahead",
|
|
533
|
+
"when": "the build runs on 2027-02-01",
|
|
534
|
+
"then": "it fails naming the first module and its sunset, and the pull request fails for a sunset inside the grace period",
|
|
535
|
+
"hubWhen": {
|
|
536
|
+
"DEPRECATION": [
|
|
537
|
+
"sunset"
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"id": "sc-no-new-callers",
|
|
543
|
+
"type": "scenario",
|
|
544
|
+
"label": "New call to deprecated code refused",
|
|
545
|
+
"x": 520,
|
|
546
|
+
"y": 1040,
|
|
547
|
+
"given": "a function marked @deprecated",
|
|
548
|
+
"when": "a pull request adds a call to it without a disable comment, and another with one naming KEY-123",
|
|
549
|
+
"then": "the first fails lint and the second passes"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"id": "sc-tolerated",
|
|
553
|
+
"type": "scenario",
|
|
554
|
+
"label": "Tolerated item stays visible",
|
|
555
|
+
"x": 520,
|
|
556
|
+
"y": 1170,
|
|
557
|
+
"given": "a deprecated function with a marker naming its replacement and key",
|
|
558
|
+
"when": "the marker check and the no-deprecated lint run on a pull request that adds a call to it",
|
|
559
|
+
"then": "the marker passes and the new call fails lint",
|
|
560
|
+
"hubWhen": {
|
|
561
|
+
"DEPRECATION": [
|
|
562
|
+
"tolerated"
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"id": "sc-no-new-debt",
|
|
568
|
+
"type": "scenario",
|
|
569
|
+
"label": "Suppressed warning has a key",
|
|
570
|
+
"x": 520,
|
|
571
|
+
"y": 1300,
|
|
572
|
+
"given": "a pull request that adds a lint-disable comment",
|
|
573
|
+
"when": "it is reviewed",
|
|
574
|
+
"then": "the comment names a register key opened in the same pull request, or the pull request is not approved"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"id": "sc-strangler",
|
|
578
|
+
"type": "scenario",
|
|
579
|
+
"label": "Legacy reached only through the facade",
|
|
580
|
+
"x": 520,
|
|
581
|
+
"y": 1430,
|
|
582
|
+
"given": "a module outside src/legacy and src/facade that imports src/legacy",
|
|
583
|
+
"when": "the dependency rule runs",
|
|
584
|
+
"then": "the build fails naming the module and the import",
|
|
585
|
+
"hubWhen": {
|
|
586
|
+
"REWRITE": [
|
|
587
|
+
"strangler"
|
|
588
|
+
]
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"id": "sc-rewrite-case",
|
|
593
|
+
"type": "scenario",
|
|
594
|
+
"label": "Rewrite without case stopped",
|
|
595
|
+
"x": 520,
|
|
596
|
+
"y": 1560,
|
|
597
|
+
"given": "a pull request labelled rewrite whose description links no accepted rewrite ADR",
|
|
598
|
+
"when": "the rewrite check runs",
|
|
599
|
+
"then": "it fails, and passes once the description links an ADR of kind rewrite with status accepted and two accepting owners",
|
|
600
|
+
"hubWhen": {
|
|
601
|
+
"REWRITE": [
|
|
602
|
+
"big-bang-allowed"
|
|
603
|
+
]
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"id": "sc-age",
|
|
608
|
+
"type": "scenario",
|
|
609
|
+
"label": "Old item escalated",
|
|
610
|
+
"x": 520,
|
|
611
|
+
"y": 1690,
|
|
612
|
+
"given": "a debt item opened {{MAX_DEBT_AGE_DAYS}} days ago plus one",
|
|
613
|
+
"when": "the age check runs",
|
|
614
|
+
"then": "it fails naming the item, and passes once the item is marked escalated, scheduled, or closed as accepted debt",
|
|
615
|
+
"hubWhen": {
|
|
616
|
+
"AGE": [
|
|
617
|
+
"max-age"
|
|
618
|
+
]
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"id": "sc-tool-ratio",
|
|
623
|
+
"type": "scenario",
|
|
624
|
+
"label": "Ratio over the limit fails the gate",
|
|
625
|
+
"x": 520,
|
|
626
|
+
"y": 1820,
|
|
627
|
+
"given": "a pull request whose new code has a debt ratio of {{MAX_DEBT_RATIO_PCT}}% plus 1, and an open issue without an assignee",
|
|
628
|
+
"when": "the analysis and the weekly register check run",
|
|
629
|
+
"then": "the quality gate fails on the debt-ratio condition, and the register check names the unassigned issue",
|
|
630
|
+
"hubWhen": {
|
|
631
|
+
"REGISTRY": [
|
|
632
|
+
"tool"
|
|
633
|
+
]
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"id": "adr-issues",
|
|
638
|
+
"type": "adr",
|
|
639
|
+
"label": "Debt is tracked as issues labelled tech-debt",
|
|
640
|
+
"x": 780,
|
|
641
|
+
"y": 0,
|
|
642
|
+
"concern": "technical-debt",
|
|
643
|
+
"status": "accepted",
|
|
644
|
+
"date": "",
|
|
645
|
+
"context": "Code lives in this element and every deadline leaves a shortcut in it; whether those shortcuts are seen, counted and repaid decides how fast the element can change next year. The forces: debt taken knowingly for a deadline is a sound loan and debt taken unknowingly is a surprise, and both charge interest in every change that touches them (Cunningham's metaphor, Fowler's quadrant); a debt nobody can see is never repaid, while a register nobody prunes becomes a graveyard; time for repayment competes with features in every planning, and a team that gets none slows down without anyone having decided it; deprecated code and endpoints stay because removing them has no sponsor and no date; and a full rewrite looks like freedom from all debt and usually recreates it, two years late (Spolsky). What a change must pass to be merged is decided by the Code quality gate concern and which tests it has by the Test strategy concern; a feature flag past its rollout is a debt item in the register here, but its removal is decided in the Deployment and rollback pack. This decision is about the debt that is already there and the debt taken on purpose. The snippets assume one repository layout: source in src/, tests in test/, decision records in docs/adr and debt records in docs/debt, the pipelines on GitHub Actions with the GitHub CLI, and GitHub Issues, Jira or Linear as the tracker.",
|
|
646
|
+
"decision": "Every debt item is an issue in the tracker (GitHub Issues, Jira or Linear) with the label tech-debt, an assignee as owner, a Cost section with the estimate in days and a Consequence section; an issue form (.github/ISSUE_TEMPLATE/tech-debt.yml with required fields) makes cost and consequence mandatory, and a weekly check fails on an open item without them or without an assignee. Debt is triaged in the same weekly triage as bugs. Code points at an item with TODO (KEY-123): lint fails a TODO without a key and a CI script fails the build on a TODO whose issue is closed. A pull request that repays an item carries the label tech-debt. A feature flag past its rollout is an item like any other; its removal follows the Deployment and rollback pack. Repayment budget: {{BUDGET}}. Deprecated code and endpoints: {{DEPRECATION}}. Rewrites: {{REWRITE}}. Age: {{AGE}}. A shortcut taken knowingly in a pull request (a waived quality-gate condition, a suppressed warning, a skipped test) opens its issue in the same pull request.",
|
|
647
|
+
"consequences": "• Debt competes for the same backlog as features and bugs, on the same board, with the same estimates.\n• The share of debt work per iteration falls out of the tracker and the labelled pull requests for free.\n• A tracker fills with small items quickly; triage must close duplicates and merge siblings or the label becomes noise.\n• Architectural debt gets a ticket-sized description; the reasoning behind it needs an ADR beside the issue.",
|
|
648
|
+
"alternatives": "1. Decision records in the repository: better for architectural debt with reasoning, but invisible to the planning board unless mirrored.\n2. A code-analysis platform as the register: free for debt in the code itself, blind to debt in design, process or missing tests.\n3. A wiki page or spreadsheet: easy to start, outside every workflow, and the first thing to go stale.",
|
|
649
|
+
"hubWhen": {
|
|
650
|
+
"REGISTRY": [
|
|
651
|
+
"issues"
|
|
652
|
+
]
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"id": "adr-adrs",
|
|
657
|
+
"type": "adr",
|
|
658
|
+
"label": "Debt is recorded as decision records",
|
|
659
|
+
"x": 780,
|
|
660
|
+
"y": 130,
|
|
661
|
+
"concern": "technical-debt",
|
|
662
|
+
"status": "accepted",
|
|
663
|
+
"date": "",
|
|
664
|
+
"context": "Code lives in this element and every deadline leaves a shortcut in it; whether those shortcuts are seen, counted and repaid decides how fast the element can change next year. The forces: debt taken knowingly for a deadline is a sound loan and debt taken unknowingly is a surprise, and both charge interest in every change that touches them (Cunningham's metaphor, Fowler's quadrant); a debt nobody can see is never repaid, while a register nobody prunes becomes a graveyard; time for repayment competes with features in every planning, and a team that gets none slows down without anyone having decided it; deprecated code and endpoints stay because removing them has no sponsor and no date; and a full rewrite looks like freedom from all debt and usually recreates it, two years late (Spolsky). What a change must pass to be merged is decided by the Code quality gate concern and which tests it has by the Test strategy concern; a feature flag past its rollout is a debt item in the register here, but its removal is decided in the Deployment and rollback pack. This decision is about the debt that is already there and the debt taken on purpose. The snippets assume one repository layout: source in src/, tests in test/, decision records in docs/adr and debt records in docs/debt, the pipelines on GitHub Actions with the GitHub CLI, and GitHub Issues, Jira or Linear as the tracker.",
|
|
665
|
+
"decision": "Debt is recorded as decision records in the repository, docs/debt/NNNN-title.md, copied from docs/debt/template.md: YAML front matter with owner, cost_days, date, status (open, accepted, repaid) and, where one exists, sunset, then the sections Context, Decision and Consequences, reviewed in the pull request like code. Its number is its key: TODO (DEBT-0042) points at it from the code, lint fails a TODO without a key, a CI script fails the build on a TODO whose record is repaid, and a test over the records fails the build on a missing owner, cost or Consequences section or a sunset in the past. Items too small for a record are TODO comments pointing at the record of the debt they belong to. A pull request that repays a record carries the label tech-debt. A feature flag past its rollout is a record like any other; its removal follows the Deployment and rollback pack. Repayment budget: {{BUDGET}}. Deprecated code and endpoints: {{DEPRECATION}}. Rewrites: {{REWRITE}}. Age: {{AGE}}. A shortcut taken knowingly in a pull request adds or amends a record in the same pull request.",
|
|
666
|
+
"consequences": "• The reasoning travels with the code: a record says why the debt was taken and what repaying it means, which a ticket never does.\n• Records are reviewed, versioned and searchable with the code; no second system.\n• Planning does not see docs/debt unless the team mirrors items into the tracker or reads the register at every planning.\n• Small items are expensive to record, so some go unrecorded; the TODO rule catches those that reach the code.",
|
|
667
|
+
"alternatives": "1. Issues labelled tech-debt: visible in planning, cheaper per item, poorer at reasoning.\n2. A code-analysis platform as the register: measures debt in the code, says nothing about why it is there.\n3. Debt sections inside the architecture ADRs themselves: fewer files, but the debt disappears into decisions nobody reopens.",
|
|
668
|
+
"hubWhen": {
|
|
669
|
+
"REGISTRY": [
|
|
670
|
+
"adrs"
|
|
671
|
+
]
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"id": "adr-tool",
|
|
676
|
+
"type": "adr",
|
|
677
|
+
"label": "Debt is tracked in the code-analysis platform",
|
|
678
|
+
"x": 780,
|
|
679
|
+
"y": 260,
|
|
680
|
+
"concern": "technical-debt",
|
|
681
|
+
"status": "accepted",
|
|
682
|
+
"date": "",
|
|
683
|
+
"context": "Code lives in this element and every deadline leaves a shortcut in it; whether those shortcuts are seen, counted and repaid decides how fast the element can change next year. The forces: debt taken knowingly for a deadline is a sound loan and debt taken unknowingly is a surprise, and both charge interest in every change that touches them (Cunningham's metaphor, Fowler's quadrant); a debt nobody can see is never repaid, while a register nobody prunes becomes a graveyard; time for repayment competes with features in every planning, and a team that gets none slows down without anyone having decided it; deprecated code and endpoints stay because removing them has no sponsor and no date; and a full rewrite looks like freedom from all debt and usually recreates it, two years late (Spolsky). What a change must pass to be merged is decided by the Code quality gate concern and which tests it has by the Test strategy concern; a feature flag past its rollout is a debt item in the register here, but its removal is decided in the Deployment and rollback pack. This decision is about the debt that is already there and the debt taken on purpose. The snippets assume one repository layout: source in src/, tests in test/, decision records in docs/adr and debt records in docs/debt, the pipelines on GitHub Actions with the GitHub CLI, and GitHub Issues, Jira or Linear as the tracker.",
|
|
684
|
+
"decision": "SonarQube (or SonarCloud) is the register: each open issue carries its remediation effort, the sum is the technical debt, and the debt ratio (remediation effort over development cost, SQALE) is a quality-gate condition, at most {{MAX_DEBT_RATIO_PCT}}% on new code; the project dashboard shows the overall ratio and effort and is the report. Every open issue is assigned to an owner, which a weekly check over the issues API enforces; an issue is accepted (won't fix) only with a comment giving the reason, and accepted issues are the tolerated debt. TODO comments are flagged by rule S1135 and counted as debt. A pull request that repays issues carries the label tech-debt. There is no separate list; debt outside the code (a design to change, a missing test suite, a feature flag past its rollout, whose removal follows the Deployment and rollback pack) gets a ticket or ADR only by exception and is linked from a Sonar issue where one exists. Repayment budget: {{BUDGET}}. Deprecated code and endpoints: {{DEPRECATION}}. Rewrites: {{REWRITE}}. Age: {{AGE}}.",
|
|
685
|
+
"consequences": "• Debt in the code is measured without anyone keeping a list, with one number everyone understands.\n• The gate stops new debt from entering while the overall ratio is worked down (Clean as You Code).\n• Design, process and test debt are not code smells; the platform does not see them, so they go unrecorded unless someone makes an exception.\n• Remediation effort is the rule's estimate, not the team's; the ratio is a trend to watch, not a budget to spend.",
|
|
686
|
+
"alternatives": "1. Issues labelled tech-debt: sees every kind of debt, but each item is written by hand.\n2. Decision records in the repository: best for architectural debt, worst for the hundreds of small smells the platform finds.\n3. Both the platform and a tracker: complete, until the two disagree and neither is maintained.",
|
|
687
|
+
"hubWhen": {
|
|
688
|
+
"REGISTRY": [
|
|
689
|
+
"tool"
|
|
690
|
+
]
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"id": "adr-strangler",
|
|
695
|
+
"type": "adr",
|
|
696
|
+
"label": "Rewrites follow the strangler fig",
|
|
697
|
+
"x": 780,
|
|
698
|
+
"y": 390,
|
|
699
|
+
"concern": "technical-debt",
|
|
700
|
+
"status": "accepted",
|
|
701
|
+
"date": "",
|
|
702
|
+
"context": "Code lives in this element and every deadline leaves a shortcut in it; whether those shortcuts are seen, counted and repaid decides how fast the element can change next year. The forces: debt taken knowingly for a deadline is a sound loan and debt taken unknowingly is a surprise, and both charge interest in every change that touches them (Cunningham's metaphor, Fowler's quadrant); a debt nobody can see is never repaid, while a register nobody prunes becomes a graveyard; time for repayment competes with features in every planning, and a team that gets none slows down without anyone having decided it; deprecated code and endpoints stay because removing them has no sponsor and no date; and a full rewrite looks like freedom from all debt and usually recreates it, two years late (Spolsky). What a change must pass to be merged is decided by the Code quality gate concern and which tests it has by the Test strategy concern; a feature flag past its rollout is a debt item in the register here, but its removal is decided in the Deployment and rollback pack. This decision is about the debt that is already there and the debt taken on purpose. The snippets assume one repository layout: source in src/, tests in test/, decision records in docs/adr and debt records in docs/debt, the pipelines on GitHub Actions with the GitHub CLI, and GitHub Issues, Jira or Linear as the tracker. Here the element must keep serving while any part of it is rewritten.",
|
|
703
|
+
"decision": "A rewrite replaces one piece at a time behind a facade: a reverse proxy, API gateway or an in-process routing module that sends each piece's calls to the old or the new implementation (Envoy, NGINX, Spring Cloud Gateway or a feature flag per piece in the code). Old and new run side by side; each piece has a cut-over, a comparison period (shadow traffic or a diff of both answers where the piece allows it) and a way back by routing. New code reaches the old module only through the facade; a dependency rule fails the build on a direct import of src/legacy. A piece is done when the old implementation is deleted. Big-bang rewrites are not done; a proposal for one is an ADR that supersedes this decision.",
|
|
704
|
+
"consequences": "• Delivery continues during the rewrite and every piece is proven in production before the next starts.\n• A failed piece is routed back in minutes; nothing is bet on a single cut-over day.\n• The facade and two implementations cost running and reasoning effort until the last piece is gone; a strangler that stops halfway is the worst of both.\n• Pieces must be found along seams (a bounded context, a route, a table); an element without seams needs them cut first.",
|
|
705
|
+
"alternatives": "1. A full rewrite with a written case: one cut-over, months without delivery, and the old code's undocumented behaviour rediscovered in production.\n2. Refactoring in place without a facade: cheaper when the technology stays; not a rewrite.\n3. Running the new system for new customers only: a strangler by tenant, viable when data need not move.",
|
|
706
|
+
"hubWhen": {
|
|
707
|
+
"REWRITE": [
|
|
708
|
+
"strangler"
|
|
709
|
+
]
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"id": "adr-big-bang",
|
|
714
|
+
"type": "adr",
|
|
715
|
+
"label": "A full rewrite is allowed with an accepted case",
|
|
716
|
+
"x": 780,
|
|
717
|
+
"y": 520,
|
|
718
|
+
"concern": "technical-debt",
|
|
719
|
+
"status": "accepted",
|
|
720
|
+
"date": "",
|
|
721
|
+
"context": "Code lives in this element and every deadline leaves a shortcut in it; whether those shortcuts are seen, counted and repaid decides how fast the element can change next year. The forces: debt taken knowingly for a deadline is a sound loan and debt taken unknowingly is a surprise, and both charge interest in every change that touches them (Cunningham's metaphor, Fowler's quadrant); a debt nobody can see is never repaid, while a register nobody prunes becomes a graveyard; time for repayment competes with features in every planning, and a team that gets none slows down without anyone having decided it; deprecated code and endpoints stay because removing them has no sponsor and no date; and a full rewrite looks like freedom from all debt and usually recreates it, two years late (Spolsky). What a change must pass to be merged is decided by the Code quality gate concern and which tests it has by the Test strategy concern; a feature flag past its rollout is a debt item in the register here, but its removal is decided in the Deployment and rollback pack. This decision is about the debt that is already there and the debt taken on purpose. The snippets assume one repository layout: source in src/, tests in test/, decision records in docs/adr and debt records in docs/debt, the pipelines on GitHub Actions with the GitHub CLI, and GitHub Issues, Jira or Linear as the tracker. Here the element is small or leaving a platform, so a full rewrite is on the table.",
|
|
722
|
+
"decision": "A full rewrite of the element or of a module may be started only after a case written as an ADR with kind: rewrite in its front matter is accepted in writing by at least two owners (accepted_by): cost in person-months, risks, parity criteria (the tests and behaviours the new code must match, run against both), what the old code handles that no document describes, a data migration and a cut-over plan with a rollback. Until the ADR is accepted no rewrite code is merged: a pull request labelled rewrite must link an accepted rewrite ADR. Where the element serves users during the rewrite, the strangler-fig approach is preferred and the case must say why it does not apply.",
|
|
723
|
+
"consequences": "• A rewrite becomes a decision with a price instead of a mood; most proposals do not survive writing the case.\n• When one is accepted, the parity criteria make \"done\" testable.\n• The old system still has to be maintained while the new one is built; the case has to budget for both.\n• Months of a rewrite are months without visible features; stakeholders accept that in the ADR, not after.",
|
|
724
|
+
"alternatives": "1. Strangler fig only: no rewrite stops delivery, but a small element or one leaving its platform pays for a facade it does not need.\n2. No rule: rewrites start on enthusiasm and end on budget.\n3. Rewrite only within fixed windows: bounds the cost but rarely the risk.",
|
|
725
|
+
"hubWhen": {
|
|
726
|
+
"REWRITE": [
|
|
727
|
+
"big-bang-allowed"
|
|
728
|
+
]
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"id": "ff-todo-key",
|
|
733
|
+
"type": "fitness-fn",
|
|
734
|
+
"label": "Every TODO names a key",
|
|
735
|
+
"x": 1040,
|
|
736
|
+
"y": 0,
|
|
737
|
+
"characteristic": "maintainability",
|
|
738
|
+
"scope": "atomic",
|
|
739
|
+
"cadence": "triggered",
|
|
740
|
+
"trigger": "pull-request",
|
|
741
|
+
"invocation": "automated",
|
|
742
|
+
"description": "A script run in lint greps the tracked source files for TODO-like comments and fails on any that does not carry a key in the agreed form, with or without a sunset in brackets before it: TODO (KEY-123): text, or TODO [2027-01-31] (KEY-123): text. A semgrep pattern-regex rule does the same inside semgrep ci.\n\nThreshold: 0 TODO, FIXME, HACK or XXX comments without a register key of the form KEY-123\n\nTool: git grep in a lint step (or semgrep pattern-regex)\n\n```bash\n#!/usr/bin/env bash\n# scripts/check-todos.sh: every TODO/FIXME names a register key, e.g. TODO (SHOP-123): ...\nset -euo pipefail\nbad=$(git grep -nE '\\b(TODO|FIXME|HACK|XXX)\\b' -- ':!node_modules' ':!*.md' ':!scripts/check-todos.sh' \\\n | grep -vE '\\b(TODO|FIXME|HACK|XXX)\\b( *\\[[^]]+\\])? *\\(([A-Z]+-[0-9]+)\\)' || true)\nif [ -n \"$bad\" ]; then\n printf 'TODO without a register key (use TODO (KEY-123): text):\\n%s\\n' \"$bad\"\n exit 1\nfi\n```",
|
|
743
|
+
"hubWhen": {
|
|
744
|
+
"REGISTRY": [
|
|
745
|
+
"issues",
|
|
746
|
+
"adrs"
|
|
747
|
+
]
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"id": "ff-todo-closed",
|
|
752
|
+
"type": "fitness-fn",
|
|
753
|
+
"label": "No TODO points at a closed item",
|
|
754
|
+
"x": 1040,
|
|
755
|
+
"y": 130,
|
|
756
|
+
"characteristic": "maintainability",
|
|
757
|
+
"scope": "atomic",
|
|
758
|
+
"cadence": "triggered",
|
|
759
|
+
"trigger": "pull-request",
|
|
760
|
+
"invocation": "automated",
|
|
761
|
+
"description": "A CI step collects every key from TODO comments and asks the register for the item's state: a DEBT-NNNN key is looked up as docs/debt/NNNN-*.md and its front-matter status must not be repaid; any other key is an issue of the repository (SHOP-123 is issue 123) read with gh and must be open. For Jira, the issue lookup is GET /rest/api/3/issue/KEY?fields=status with curl, as the commented line shows.\n\nThreshold: 0 TODO comments whose issue is closed or whose debt record is marked repaid; the build fails on the first\n\nTool: gh api and grep in a CI step; curl for Jira\n\n```bash\n#!/usr/bin/env bash\n# scripts/check-todo-items.sh: a TODO (SHOP-123) points at an open issue; a TODO (DEBT-0042) at a record not yet repaid\nset -euo pipefail\nREPO=${GITHUB_REPOSITORY:-acme/shop}\nstale=0\nfor key in $(git grep -ohE '\\b(TODO|FIXME|HACK|XXX)\\b[^(]*\\(([A-Z]+-[0-9]+)\\)' -- ':!node_modules' | grep -oE '[A-Z]+-[0-9]+' | sort -u); do\n case \"$key\" in\n DEBT-*)\n record=$(ls docs/debt/\"${key#DEBT-}\"-*.md 2>/dev/null | head -1)\n if [ -z \"$record\" ]; then echo \"TODO ($key): no record docs/debt/${key#DEBT-}-*.md\"; stale=1\n elif grep -qE '^status: *repaid' \"$record\"; then echo \"TODO ($key): record is repaid\"; stale=1; fi;;\n *)\n state=$(gh api \"repos/$REPO/issues/${key##*-}\" --jq .state 2>/dev/null || echo missing)\n # Jira: state=$(curl -sf -u \"$JIRA_USER:$JIRA_TOKEN\" \"$JIRA_URL/rest/api/3/issue/$key?fields=status\" | jq -r .fields.status.statusCategory.key) # \"done\" = closed\n if [ \"$state\" != \"open\" ]; then echo \"TODO ($key): issue is $state\"; stale=1; fi;;\n esac\ndone\nexit $stale\n```",
|
|
762
|
+
"hubWhen": {
|
|
763
|
+
"REGISTRY": [
|
|
764
|
+
"issues",
|
|
765
|
+
"adrs"
|
|
766
|
+
]
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"id": "ff-debt-issues",
|
|
771
|
+
"type": "fitness-fn",
|
|
772
|
+
"label": "Debt issues are complete",
|
|
773
|
+
"x": 1040,
|
|
774
|
+
"y": 260,
|
|
775
|
+
"characteristic": "maintainability",
|
|
776
|
+
"scope": "atomic",
|
|
777
|
+
"cadence": "triggered",
|
|
778
|
+
"trigger": "weekly",
|
|
779
|
+
"invocation": "automated",
|
|
780
|
+
"description": "A weekly job lists the open issues labelled tech-debt and fails on one without an assignee or whose body lacks the Cost or Consequence heading that the issue form writes; the form itself (.github/ISSUE_TEMPLATE/tech-debt.yml with required fields) keeps a new item from being opened without them. With Jira the same is a JQL filter on labels = tech-debt AND assignee is EMPTY, plus the required custom fields.\n\nThreshold: 0 open issues labelled tech-debt without an assignee, a Cost section or a Consequence section\n\nTool: gh issue list in a scheduled job; a JQL filter for Jira\n\n```bash\n#!/usr/bin/env bash\n# scripts/debt-issues.sh: weekly; every open debt item has an owner, a cost and a consequence\nset -euo pipefail\nbad=$(gh issue list --label tech-debt --state open --limit 500 --json number,assignees,body --jq '\n .[] | select((.assignees | length) == 0 or (.body | test(\"### Cost\") | not) or (.body | test(\"### Consequence\") | not))\n | \"#\\(.number)\"')\n[ -z \"$bad\" ] || { echo \"debt items without owner, cost or consequence:\"; echo \"$bad\"; exit 1; }\n# .github/ISSUE_TEMPLATE/tech-debt.yml: labels: [tech-debt]; body: textarea \"Cost\" (required), textarea \"Consequence\" (required)\n```",
|
|
781
|
+
"hubWhen": {
|
|
782
|
+
"REGISTRY": [
|
|
783
|
+
"issues"
|
|
784
|
+
]
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"id": "ff-debt-register",
|
|
789
|
+
"type": "fitness-fn",
|
|
790
|
+
"label": "Debt records are complete and not past sunset",
|
|
791
|
+
"x": 1040,
|
|
792
|
+
"y": 390,
|
|
793
|
+
"characteristic": "maintainability",
|
|
794
|
+
"scope": "atomic",
|
|
795
|
+
"cadence": "triggered",
|
|
796
|
+
"trigger": "pull-request",
|
|
797
|
+
"invocation": "automated",
|
|
798
|
+
"description": "A test in the unit suite parses the front matter of every record in docs/debt (copied from the template there) and fails on a missing owner, date or status, a cost of 0 or none, a missing Consequences heading, or a record not marked repaid whose sunset date has passed. An unquoted date is parsed by gray-matter as a Date object, so the test normalises it.\n\nThreshold: 0 records in docs/debt without owner, cost_days, date, status and a Consequences section; 0 records not marked repaid with a sunset in the past\n\nTool: Vitest with gray-matter; pytest with python-frontmatter for Python\n\n```ts\nimport { readFileSync, readdirSync } from 'node:fs'\nimport matter from 'gray-matter'\nimport { expect, it } from 'vitest'\n\nconst files = readdirSync('docs/debt').filter((f) => /^\\d{4}-.*\\.md$/.test(f))\nconst iso = (v: unknown): string => (v instanceof Date ? v.toISOString().slice(0, 10) : String(v ?? ''))\n\nit.each(files)('%s has an owner, a cost, a date, a status, consequences and a live sunset', (file) => {\n const { data, content } = matter(readFileSync(`docs/debt/${file}`, 'utf8'))\n expect(data.owner, 'owner').toBeTruthy()\n expect(Number(data.cost_days), 'cost_days').toBeGreaterThan(0)\n expect(iso(data.date), 'date').toMatch(/^\\d{4}-\\d{2}-\\d{2}$/)\n expect(['open', 'accepted', 'repaid'], 'status').toContain(data.status)\n expect(content).toMatch(/^## Consequences/m)\n if (data.status !== 'repaid' && data.sunset) expect(Date.parse(iso(data.sunset)), 'sunset has passed').toBeGreaterThan(Date.now())\n})\n```",
|
|
799
|
+
"hubWhen": {
|
|
800
|
+
"REGISTRY": [
|
|
801
|
+
"adrs"
|
|
802
|
+
]
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"id": "ff-debt-ratio",
|
|
807
|
+
"type": "fitness-fn",
|
|
808
|
+
"label": "Debt ratio in the quality gate, every issue owned",
|
|
809
|
+
"x": 1040,
|
|
810
|
+
"y": 520,
|
|
811
|
+
"characteristic": "maintainability",
|
|
812
|
+
"scope": "atomic",
|
|
813
|
+
"cadence": "triggered",
|
|
814
|
+
"trigger": "pull-request",
|
|
815
|
+
"invocation": "automated",
|
|
816
|
+
"description": "The project's quality gate carries the conditions new_sqale_debt_ratio > {{MAX_DEBT_RATIO_PCT}} and new_maintainability_rating > 1 (worse than A) as errors, added once through the API (or in the gate's settings page), and the pipeline waits for the gate with sonar.qualitygate.wait=true so that a failed gate fails the build. A weekly job asks the issues API for open, unresolved issues without an assignee and fails when there are any.\n\nThreshold: Technical debt ratio on new code at most {{MAX_DEBT_RATIO_PCT}}% and maintainability rating A on new code as quality-gate conditions; 0 open issues without an assignee in the weekly check\n\nTool: SonarQube web API (api/qualitygates, api/issues) with curl and jq\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\n# once, for the gate the project uses (gateId from api/qualitygates/list; SonarCloud: the same API under sonarcloud.io with organization=)\ncurl -sf -u \"$SONAR_TOKEN:\" -X POST \"$SONAR_URL/api/qualitygates/create_condition\" \\\n -d gateId=\"$GATE_ID\" -d metric=new_sqale_debt_ratio -d op=GT -d error={{MAX_DEBT_RATIO_PCT}}\ncurl -sf -u \"$SONAR_TOKEN:\" -X POST \"$SONAR_URL/api/qualitygates/create_condition\" \\\n -d gateId=\"$GATE_ID\" -d metric=new_maintainability_rating -d op=GT -d error=1 # worse than A fails\n# sonar-project.properties, so that the pipeline fails when the gate does:\n# sonar.newCode.referenceBranch=main\n# sonar.qualitygate.wait=true\n# weekly: every open issue has an owner\nunassigned=$(curl -sf -u \"$SONAR_TOKEN:\" \"$SONAR_URL/api/issues/search?componentKeys=$PROJECT_KEY&resolved=false&assigned=false&ps=1\" | jq '.total')\n[ \"$unassigned\" -eq 0 ] || { echo \"$unassigned open issues without an owner\"; exit 1; }\n```",
|
|
817
|
+
"hubWhen": {
|
|
818
|
+
"REGISTRY": [
|
|
819
|
+
"tool"
|
|
820
|
+
]
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"id": "ff-debt-share",
|
|
825
|
+
"type": "fitness-fn",
|
|
826
|
+
"label": "Repayment share reported",
|
|
827
|
+
"x": 1040,
|
|
828
|
+
"y": 650,
|
|
829
|
+
"characteristic": "maintainability",
|
|
830
|
+
"scope": "atomic",
|
|
831
|
+
"cadence": "temporal",
|
|
832
|
+
"every": "14d",
|
|
833
|
+
"invocation": "automated",
|
|
834
|
+
"description": "A scheduled job at the end of each iteration counts the pull requests merged since the iteration started and those among them labelled tech-debt (the label every register variant puts on a repayment), prints the share with the number of open items (issues labelled tech-debt, open records in docs/debt, or unresolved Sonar issues, one line each), and, where a fixed share is agreed, fails below it so that the retrospective sees it. With Jira as the tracker the open count comes from JQL: labels = tech-debt AND resolution = Unresolved.\n\nThreshold: The share of pull requests merged in the iteration that carry the label tech-debt is reported with the register's size; with a fixed share, it is at least {{DEBT_SHARE_PCT}}%\n\nTool: gh pr list in a scheduled job (plus the register's own count)\n\n```bash\n#!/usr/bin/env bash\n# scripts/debt-share.sh [iteration-start YYYY-MM-DD]\nset -euo pipefail\nSINCE=${1:-$(date -d '14 days ago' +%F 2>/dev/null || date -v-14d +%F)}\nMIN=\"${DEBT_SHARE_PCT:-0}\" # with a fixed share the job sets DEBT_SHARE_PCT={{DEBT_SHARE_PCT}}; 0 = report only\nall=$(gh pr list --state merged --search \"merged:>=$SINCE\" --limit 500 --json number --jq length)\ndebt=$(gh pr list --state merged --label tech-debt --search \"merged:>=$SINCE\" --limit 500 --json number --jq length)\nopen=$(gh issue list --state open --label tech-debt --limit 500 --json number --jq length) # issues as the register\n# open=$(grep -L '^status: *repaid' docs/debt/[0-9]*.md | wc -l) # records as the register\n# open=$(curl -sf -u \"$SONAR_TOKEN:\" \"$SONAR_URL/api/issues/search?componentKeys=$PROJECT_KEY&resolved=false&ps=1\" | jq .total) # Sonar\nshare=$(( debt * 100 / (all > 0 ? all : 1) ))\necho \"since $SINCE: $debt of $all merged pull requests repaid debt ($share%), $open debt items open\"\n[ \"$share\" -ge \"$MIN\" ] || { echo \"below the agreed $MIN%\"; exit 1; }\n```"
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"id": "ff-debt-windows",
|
|
838
|
+
"type": "fitness-fn",
|
|
839
|
+
"label": "Repayment windows scheduled and kept",
|
|
840
|
+
"x": 1040,
|
|
841
|
+
"y": 780,
|
|
842
|
+
"characteristic": "maintainability",
|
|
843
|
+
"scope": "atomic",
|
|
844
|
+
"cadence": "triggered",
|
|
845
|
+
"trigger": "pull-request",
|
|
846
|
+
"invocation": "automated",
|
|
847
|
+
"description": "A test in the unit suite reads debt-windows.json ([{ \"quarter\": \"2026-Q4\", \"start\": \"2026-11-16\", \"end\": \"2026-11-20\", \"pickedOn\": \"2026-10-30\", \"items\": [\"SHOP-123\", \"DEBT-0042\"] }]) and fails when the current quarter has no window, the window is shorter than {{WINDOW_DAYS_PER_QUARTER}} working days, or its items were picked fewer than 14 days before it; a scheduled job on the day after each window lists the pull requests merged during it and fails on one without the tech-debt label.\n\nThreshold: debt-windows.json holds for the current quarter a window of at least {{WINDOW_DAYS_PER_QUARTER}} working days with its items picked at least 14 days before it starts; 0 pull requests merged during a window without the tech-debt label\n\nTool: Vitest (a test over debt-windows.json) with a gh pr list step\n\n```ts\n// test/debt-windows.test.ts\nimport { expect, it } from 'vitest'\nimport windows from '../debt-windows.json'\n\nconst MIN_DAYS = {{WINDOW_DAYS_PER_QUARTER}}\nconst now = new Date()\nconst quarter = `${now.getFullYear()}-Q${Math.floor(now.getMonth() / 3) + 1}`\nconst workingDays = (from: string, to: string): number => {\n let n = 0\n for (const d = new Date(from); d <= new Date(to); d.setDate(d.getDate() + 1)) if (d.getDay() >= 1 && d.getDay() <= 5) n++\n return n\n}\n\nit(`${quarter} has a repayment window of at least ${MIN_DAYS} working days, picked 14 days ahead`, () => {\n const w = windows.find((x) => x.quarter === quarter)\n expect(w, `no window for ${quarter} in debt-windows.json`).toBeTruthy()\n expect(workingDays(w!.start, w!.end), 'window too short').toBeGreaterThanOrEqual(MIN_DAYS)\n expect((Date.parse(w!.start) - Date.parse(w!.pickedOn)) / 86_400_000, 'items picked too late').toBeGreaterThanOrEqual(14)\n expect(w!.items.length, 'no items picked').toBeGreaterThan(0)\n})\n// the day after a window: gh pr list --state merged --search \"merged:$START..$END -label:tech-debt\" --json number --jq 'length == 0' || exit 1\n```",
|
|
848
|
+
"hubWhen": {
|
|
849
|
+
"BUDGET": [
|
|
850
|
+
"windows"
|
|
851
|
+
]
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"id": "ff-boy-scout",
|
|
856
|
+
"type": "fitness-fn",
|
|
857
|
+
"label": "Touched files do not get worse",
|
|
858
|
+
"x": 1040,
|
|
859
|
+
"y": 910,
|
|
860
|
+
"characteristic": "maintainability",
|
|
861
|
+
"scope": "atomic",
|
|
862
|
+
"cadence": "triggered",
|
|
863
|
+
"trigger": "pull-request",
|
|
864
|
+
"invocation": "automated",
|
|
865
|
+
"description": "A pull-request step lints the modified files on the head and, in a temporary worktree, on the base branch, and fails when the count of findings grew; new files are covered by the quality gate's own conditions. ESLint exits 1 whenever a file has an error-level finding, so each run ends in || true and the JSON (complete on exit 1) is counted. With SonarQube the same is a gate condition on new code; this script needs no platform.\n\nThreshold: In every pull request the lint findings (errors and warnings) of the files it modifies are at most what they were on the base branch\n\nTool: ESLint in a pull-request step (git worktree); ruff --output-format json for Python\n\n```bash\n#!/usr/bin/env bash\n# scripts/findings-do-not-grow.sh: lint findings in modified files, head vs base (checkout with fetch-depth: 0)\nset -euo pipefail\nBASE=${BASE_REF:-origin/main}\nfiles=$(git diff --name-only --diff-filter=M \"$BASE...HEAD\" -- '*.ts' '*.tsx')\n[ -z \"$files\" ] && exit 0\ncount() { (npx eslint --no-error-on-unmatched-pattern --format json $files || true) | jq '[.[] | .errorCount + .warningCount] | add // 0'; }\nafter=$(count)\ngit worktree add -q \"$RUNNER_TEMP/base\" \"$BASE\"\nbefore=$(cd \"$RUNNER_TEMP/base\" && npm ci --silent && count)\ngit worktree remove --force \"$RUNNER_TEMP/base\"\necho \"findings in touched files: $before -> $after\"\n[ \"$after\" -le \"$before\" ] || { echo 'touched files got worse; leave them at least as clean'; exit 1; }\n```",
|
|
866
|
+
"hubWhen": {
|
|
867
|
+
"BUDGET": [
|
|
868
|
+
"boy-scout"
|
|
869
|
+
]
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"id": "ff-deprecated-marker",
|
|
874
|
+
"type": "fitness-fn",
|
|
875
|
+
"label": "Every deprecation names a replacement and a key",
|
|
876
|
+
"x": 1040,
|
|
877
|
+
"y": 1040,
|
|
878
|
+
"characteristic": "maintainability",
|
|
879
|
+
"scope": "atomic",
|
|
880
|
+
"cadence": "triggered",
|
|
881
|
+
"trigger": "pull-request",
|
|
882
|
+
"invocation": "automated",
|
|
883
|
+
"description": "A script run in lint greps the tracked source files for deprecation markers and fails on one whose text (the rest of the line) does not name a register key and a replacement (\"use OrdersV2Client\"); endpoints are covered by the Deprecation header test of the sunset variant and by the handler that writes it.\n\nThreshold: 0 @deprecated, [Obsolete( or warnings.deprecated( markers whose text lacks a register key (KEY-123) or the word \"use\" naming the replacement\n\nTool: git grep in a lint step\n\n```bash\n#!/usr/bin/env bash\n# scripts/check-deprecations.sh: @deprecated use <replacement>: <reason> (KEY-123)\nset -euo pipefail\nbad=$(git grep -nE '@deprecated|\\[Obsolete\\(|warnings\\.deprecated\\(' -- ':!node_modules' ':!*.md' ':!scripts/check-deprecations.sh' \\\n | grep -vE '\\(([A-Z]+-[0-9]+)\\)' ; git grep -nE '@deprecated|\\[Obsolete\\(|warnings\\.deprecated\\(' -- ':!node_modules' ':!*.md' ':!scripts/check-deprecations.sh' \\\n | grep -viE '\\buse [A-Za-z_.]' ; true)\nif [ -n \"$bad\" ]; then\n printf 'deprecation markers without a register key or a replacement (\"use X\"):\\n%s\\n' \"$bad\"\n exit 1\nfi\n```"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"id": "ff-expiring-todo",
|
|
887
|
+
"type": "fitness-fn",
|
|
888
|
+
"label": "Dated TODOs expire in the lint",
|
|
889
|
+
"x": 1040,
|
|
890
|
+
"y": 1170,
|
|
891
|
+
"characteristic": "maintainability",
|
|
892
|
+
"scope": "atomic",
|
|
893
|
+
"cadence": "triggered",
|
|
894
|
+
"trigger": "pull-request",
|
|
895
|
+
"invocation": "automated",
|
|
896
|
+
"description": "Deprecated code carries its sunset as a dated TODO beside the @deprecated marker, TODO [2027-01-31] (KEY-123): remove, and unicorn/expiring-todo-comments turns the comment into a lint error the day after the date; allowWarningComments stays true so that an undated, keyed TODO is not an error here (the key rule governs it). For other languages the sunset script of this pack catches the same expired dates by grep.\n\nThreshold: 0 TODO comments with a date in brackets whose date has passed; a TODO without a date is left to the key rule\n\nTool: ESLint with eslint-plugin-unicorn (expiring-todo-comments); the sunset grep script elsewhere\n\n```js\n// eslint.config.js\nimport unicorn from 'eslint-plugin-unicorn'\n\nexport default [{\n plugins: { unicorn },\n rules: {\n 'unicorn/expiring-todo-comments': ['error', {\n allowWarningComments: true, // a TODO without a date is the key rule's business, not an error here\n checkDatesOnPullRequests: true, // dates fail on pull requests too\n terms: ['todo', 'fixme'],\n }],\n },\n}]\n// in the code:\n// /** @deprecated use OrdersV2Client: v1 has no idempotency keys (SHOP-123). TODO [2027-01-31] (SHOP-123): remove v1 */\n```",
|
|
897
|
+
"hubWhen": {
|
|
898
|
+
"DEPRECATION": [
|
|
899
|
+
"sunset"
|
|
900
|
+
]
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"id": "ff-sunset-grace",
|
|
905
|
+
"type": "fitness-fn",
|
|
906
|
+
"label": "Sunsets give notice and are kept",
|
|
907
|
+
"x": 1040,
|
|
908
|
+
"y": 1300,
|
|
909
|
+
"characteristic": "maintainability",
|
|
910
|
+
"scope": "atomic",
|
|
911
|
+
"cadence": "triggered",
|
|
912
|
+
"trigger": "pull-request",
|
|
913
|
+
"invocation": "automated",
|
|
914
|
+
"description": "A pull-request script greps every TODO [YYYY-MM-DD] in the tracked files (any language) and fails on one whose date has passed, then reads the lines the pull request added and fails on a new dated TODO whose date is inside the grace period, so a sunset cannot be set too close to be noticed.\n\nThreshold: 0 dated TODOs in the tree whose date has passed; 0 dated TODOs added by the pull request with a date fewer than {{SUNSET_GRACE_DAYS}} days ahead\n\nTool: git grep and git diff in a pull-request step (GNU date)\n\n```bash\n#!/usr/bin/env bash\n# scripts/check-sunsets.sh: expired sunsets fail; a new sunset gives at least the grace period (checkout with fetch-depth: 0)\nset -euo pipefail\nGRACE={{SUNSET_GRACE_DAYS}}\ntoday=$(date -u +%F); soonest=$(date -u -d \"$GRACE days\" +%F); bad=0\nwhile IFS= read -r line; do\n d=$(grep -oE '\\[[0-9]{4}-[0-9]{2}-[0-9]{2}\\]' <<< \"$line\" | tr -d '[]')\n if [ \"$d\" \\< \"$today\" ]; then echo \"sunset passed: $line\"; bad=1; fi\ndone < <(git grep -nE '\\b(TODO|FIXME)\\b *\\[[0-9]{4}-[0-9]{2}-[0-9]{2}\\]' -- ':!node_modules' ':!*.md' || true)\nwhile IFS= read -r line; do\n d=$(grep -oE '\\[[0-9]{4}-[0-9]{2}-[0-9]{2}\\]' <<< \"$line\" | tr -d '[]')\n if [ \"$d\" \\< \"$soonest\" ]; then echo \"sunset inside the $GRACE-day grace period: $line\"; bad=1; fi\ndone < <(git diff \"origin/${GITHUB_BASE_REF:-main}...HEAD\" -- . ':!*.md' | grep -E '^\\+' | grep -E '\\b(TODO|FIXME)\\b *\\[[0-9]{4}-[0-9]{2}-[0-9]{2}\\]' || true)\nexit $bad\n```",
|
|
915
|
+
"hubWhen": {
|
|
916
|
+
"DEPRECATION": [
|
|
917
|
+
"sunset"
|
|
918
|
+
]
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"id": "ff-sunset-header",
|
|
923
|
+
"type": "fitness-fn",
|
|
924
|
+
"label": "Deprecated endpoints announce their sunset",
|
|
925
|
+
"x": 1040,
|
|
926
|
+
"y": 1430,
|
|
927
|
+
"characteristic": "maintainability",
|
|
928
|
+
"scope": "atomic",
|
|
929
|
+
"cadence": "triggered",
|
|
930
|
+
"trigger": "pull-request",
|
|
931
|
+
"invocation": "automated",
|
|
932
|
+
"description": "The edge keeps the deprecated routes in one list (path, deprecated-since, sunset) from which the handler writes the Deprecation (RFC 9745) and Sunset (RFC 8594) headers; an integration test calls each listed route and asserts both headers, that the sunset has not passed, and that it gives at least {{SUNSET_GRACE_DAYS}} days from the deprecation date.\n\nThreshold: Every route in the deprecated-routes list answers with a Deprecation header and a Sunset header whose date is in the future and at least {{SUNSET_GRACE_DAYS}} days after the deprecation date\n\nTool: Vitest with supertest; the same test with httpx under pytest for Python\n\n```ts\n// test/http/sunset-headers.test.ts\nimport request from 'supertest'\nimport { expect, it } from 'vitest'\nimport { app } from '../../src/app'\nimport { DEPRECATED_ROUTES } from '../../src/http/deprecated-routes' // [{ path: '/v1/orders', since: '2026-10-01', sunset: '2027-01-31', key: 'SHOP-123' }]\n\nconst GRACE = {{SUNSET_GRACE_DAYS}}\n\nit.each(DEPRECATED_ROUTES)('$path announces its deprecation and sunset', async (route) => {\n const res = await request(app).get(route.path)\n expect(res.headers['deprecation'], 'Deprecation header').toBeTruthy()\n const sunset = Date.parse(res.headers['sunset'])\n expect(sunset, 'Sunset header is a date').not.toBeNaN()\n expect(sunset, `${route.path} is past its sunset: remove it (${route.key})`).toBeGreaterThan(Date.now())\n expect((sunset - Date.parse(route.since)) / 86_400_000, 'sunset gives the grace period').toBeGreaterThanOrEqual(GRACE)\n})\n```",
|
|
933
|
+
"hubWhen": {
|
|
934
|
+
"DEPRECATION": [
|
|
935
|
+
"sunset"
|
|
936
|
+
]
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"id": "ff-no-deprecated",
|
|
941
|
+
"type": "fitness-fn",
|
|
942
|
+
"label": "No new calls to deprecated code",
|
|
943
|
+
"x": 1040,
|
|
944
|
+
"y": 1560,
|
|
945
|
+
"characteristic": "maintainability",
|
|
946
|
+
"scope": "atomic",
|
|
947
|
+
"cadence": "triggered",
|
|
948
|
+
"trigger": "pull-request",
|
|
949
|
+
"invocation": "automated",
|
|
950
|
+
"description": "Lint fails on a call to or import of anything marked @deprecated, using type information so that re-exports and overloads count too; an existing call is tolerated only with a line disable whose description names the register key (the Code quality gate's require-description rule makes the description mandatory). On the JVM the same is javac -Xlint:deprecation -Werror; in .NET, CS0618 as an error in the project file.\n\nThreshold: 0 calls to code marked @deprecated without a line-level disable naming a register key\n\nTool: typescript-eslint (@typescript-eslint/no-deprecated); javac -Xlint:deprecation for the JVM\n\n```js\n// eslint.config.js\nimport tseslint from 'typescript-eslint'\n\nexport default tseslint.config({\n files: ['src/**/*.ts', 'src/**/*.tsx'],\n languageOptions: { parserOptions: { projectService: true } },\n rules: { '@typescript-eslint/no-deprecated': 'error' },\n})\n// a tolerated existing call names its debt item:\n// // eslint-disable-next-line @typescript-eslint/no-deprecated -- SHOP-123, goes with the v1 sunset\n```"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"id": "ff-strangler-boundary",
|
|
954
|
+
"type": "fitness-fn",
|
|
955
|
+
"label": "Legacy reached only through the facade",
|
|
956
|
+
"x": 1040,
|
|
957
|
+
"y": 1690,
|
|
958
|
+
"characteristic": "maintainability",
|
|
959
|
+
"scope": "atomic",
|
|
960
|
+
"cadence": "triggered",
|
|
961
|
+
"trigger": "pull-request",
|
|
962
|
+
"invocation": "automated",
|
|
963
|
+
"description": "A dependency rule fails the build when any module outside the legacy code and the facade imports the legacy code directly, so that new code grows only on the new side and the old module can be deleted piece by piece. On the JVM an ArchUnit rule noClasses().that().resideOutsideOfPackages(\"..legacy..\", \"..facade..\").should().dependOnClassesThat().resideInAPackage(\"..legacy..\") does the same.\n\nThreshold: 0 imports of src/legacy from outside src/legacy and src/facade\n\nTool: dependency-cruiser; ArchUnit for the JVM\n\n```js\n// .dependency-cruiser.cjs\nmodule.exports = {\n forbidden: [{\n name: 'legacy-only-through-facade',\n comment: 'ADR Strangler fig: new code calls the facade; the legacy module is reached only through it',\n severity: 'error',\n from: { pathNot: '^src/(legacy|facade)/' },\n to: { path: '^src/legacy/' },\n }],\n options: { tsConfig: { fileName: 'tsconfig.json' } },\n}\n```",
|
|
964
|
+
"hubWhen": {
|
|
965
|
+
"REWRITE": [
|
|
966
|
+
"strangler"
|
|
967
|
+
]
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"id": "ff-rewrite-case",
|
|
972
|
+
"type": "fitness-fn",
|
|
973
|
+
"label": "A rewrite has an accepted case",
|
|
974
|
+
"x": 1040,
|
|
975
|
+
"y": 1820,
|
|
976
|
+
"characteristic": "maintainability",
|
|
977
|
+
"scope": "atomic",
|
|
978
|
+
"cadence": "triggered",
|
|
979
|
+
"trigger": "pull-request",
|
|
980
|
+
"invocation": "automated",
|
|
981
|
+
"description": "Rewrite cases are ADRs with kind: rewrite in their front matter. A test in the unit suite fails on a rewrite ADR that is not accepted by at least two owners or lacks one of the required sections; a pull-request step on a pull request labelled rewrite reads the docs/adr path from its description and fails unless that file has kind rewrite and status accepted.\n\nThreshold: Every ADR of kind rewrite has status accepted, at least 2 names in accepted_by and the sections Cost, Risks, Parity criteria and Cut-over; 0 pull requests labelled rewrite whose description links no such ADR\n\nTool: Vitest with gray-matter (plus a gh pr view step)\n\n```ts\nimport { readFileSync, readdirSync } from 'node:fs'\nimport matter from 'gray-matter'\nimport { expect, it } from 'vitest'\n\nconst SECTIONS = ['## Cost', '## Risks', '## Parity criteria', '## Cut-over']\nconst rewrites = readdirSync('docs/adr').filter((f) => f.endsWith('.md'))\n .map((f) => ({ f, ...matter(readFileSync(`docs/adr/${f}`, 'utf8')) }))\n .filter(({ data }) => data.kind === 'rewrite')\n\nit.each(rewrites)('$f is an accepted rewrite case', ({ data, content }) => {\n expect(data.status).toBe('accepted')\n expect(data.accepted_by?.length ?? 0, 'owners who accepted it').toBeGreaterThanOrEqual(2)\n for (const s of SECTIONS) expect(content, s).toContain(s)\n})\n// pull-request step, when the pull request carries the label rewrite:\n// adr=$(gh pr view \"$PR\" --json body --jq .body | grep -oE 'docs/adr/[0-9]{4}-[a-z0-9-]+\\.md' | head -1)\n// [ -n \"$adr\" ] && grep -qE '^kind: *rewrite' \"$adr\" && grep -qE '^status: *accepted' \"$adr\" || { echo \"link an accepted rewrite ADR\"; exit 1; }\n```",
|
|
982
|
+
"hubWhen": {
|
|
983
|
+
"REWRITE": [
|
|
984
|
+
"big-bang-allowed"
|
|
985
|
+
]
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"id": "ff-debt-age",
|
|
990
|
+
"type": "fitness-fn",
|
|
991
|
+
"label": "Old debt issues are escalated",
|
|
992
|
+
"x": 1040,
|
|
993
|
+
"y": 1950,
|
|
994
|
+
"characteristic": "maintainability",
|
|
995
|
+
"scope": "atomic",
|
|
996
|
+
"cadence": "triggered",
|
|
997
|
+
"trigger": "weekly",
|
|
998
|
+
"invocation": "automated",
|
|
999
|
+
"description": "A weekly job lists open debt issues older than {{MAX_DEBT_AGE_DAYS}} days that carry neither escalated nor accepted-debt and fails naming them, so that the run shows red until each is escalated, scheduled or closed as accepted. With Jira the same is JQL: labels = tech-debt AND created <= -{{MAX_DEBT_AGE_DAYS}}d AND labels not in (escalated, accepted-debt) AND resolution = Unresolved.\n\nThreshold: 0 open issues labelled tech-debt older than {{MAX_DEBT_AGE_DAYS}} days without the label escalated or accepted-debt\n\nTool: gh issue list in a scheduled job; a JQL filter for Jira\n\n```bash\n#!/usr/bin/env bash\n# scripts/debt-age.sh: weekly\nset -euo pipefail\nexport MAX={{MAX_DEBT_AGE_DAYS}}\nold=$(gh issue list --label tech-debt --state open --limit 500 --json number,title,createdAt,labels --jq '\n .[] | select((now - (.createdAt | fromdateiso8601)) > (env.MAX | tonumber) * 86400)\n | select(any(.labels[].name; . == \"escalated\" or . == \"accepted-debt\") | not)\n | \"#\\(.number) \\(.title) (opened \\(.createdAt[:10]))\"')\nif [ -n \"$old\" ]; then\n printf 'debt items older than %s days without a decision:\\n%s\\n' \"$MAX\" \"$old\"\n exit 1\nfi\n```",
|
|
1000
|
+
"hubWhen": {
|
|
1001
|
+
"AGE": [
|
|
1002
|
+
"max-age"
|
|
1003
|
+
],
|
|
1004
|
+
"REGISTRY": [
|
|
1005
|
+
"issues"
|
|
1006
|
+
]
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"id": "ff-debt-age-records",
|
|
1011
|
+
"type": "fitness-fn",
|
|
1012
|
+
"label": "Old debt records are escalated",
|
|
1013
|
+
"x": 1040,
|
|
1014
|
+
"y": 2080,
|
|
1015
|
+
"characteristic": "maintainability",
|
|
1016
|
+
"scope": "atomic",
|
|
1017
|
+
"cadence": "triggered",
|
|
1018
|
+
"trigger": "pull-request",
|
|
1019
|
+
"invocation": "automated",
|
|
1020
|
+
"description": "A test in the unit suite reads the front matter of every record in docs/debt and fails on one still open (not accepted, not repaid) whose date is older than {{MAX_DEBT_AGE_DAYS}} days and which is not marked escalated: true; marking it accepted with the reason in the record, or repaid, is the way out.\n\nThreshold: 0 records in docs/debt with status open and a date older than {{MAX_DEBT_AGE_DAYS}} days without escalated: true in the front matter\n\nTool: Vitest with gray-matter; pytest with python-frontmatter for Python\n\n```ts\nimport { readFileSync, readdirSync } from 'node:fs'\nimport matter from 'gray-matter'\nimport { expect, it } from 'vitest'\n\nconst MAX_DAYS = {{MAX_DEBT_AGE_DAYS}}\nconst files = readdirSync('docs/debt').filter((f) => /^\\d{4}-.*\\.md$/.test(f))\nconst iso = (v: unknown): string => (v instanceof Date ? v.toISOString().slice(0, 10) : String(v ?? ''))\n\nit.each(files)('%s is repaid, accepted, escalated or young', (file) => {\n const { data } = matter(readFileSync(`docs/debt/${file}`, 'utf8'))\n if (data.status !== 'open' || data.escalated === true) return\n const age = (Date.now() - Date.parse(iso(data.date))) / 86_400_000\n expect(age, `${file} (owner ${data.owner}) is ${Math.floor(age)} days old: escalate, schedule or accept it`).toBeLessThanOrEqual(MAX_DAYS)\n})\n```",
|
|
1021
|
+
"hubWhen": {
|
|
1022
|
+
"AGE": [
|
|
1023
|
+
"max-age"
|
|
1024
|
+
],
|
|
1025
|
+
"REGISTRY": [
|
|
1026
|
+
"adrs"
|
|
1027
|
+
]
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"id": "ff-debt-age-sonar",
|
|
1032
|
+
"type": "fitness-fn",
|
|
1033
|
+
"label": "Old Sonar issues are escalated",
|
|
1034
|
+
"x": 1040,
|
|
1035
|
+
"y": 2210,
|
|
1036
|
+
"characteristic": "maintainability",
|
|
1037
|
+
"scope": "atomic",
|
|
1038
|
+
"cadence": "triggered",
|
|
1039
|
+
"trigger": "weekly",
|
|
1040
|
+
"invocation": "automated",
|
|
1041
|
+
"description": "A weekly job asks the issues API for unresolved issues created before the limit and fails on those without the tag escalated or accepted-debt (tags are set on the issue in the platform); accepting an issue as won't fix with a reason resolves it and takes it out of the list.\n\nThreshold: 0 unresolved issues created more than {{MAX_DEBT_AGE_DAYS}} days ago without the tag escalated or accepted-debt\n\nTool: SonarQube web API (api/issues/search) with curl and jq\n\n```bash\n#!/usr/bin/env bash\n# weekly: unresolved issues older than the limit carry an escalation or acceptance tag\nset -euo pipefail\nbefore=$(date -u -d '{{MAX_DEBT_AGE_DAYS}} days ago' +%F 2>/dev/null || date -u -v-{{MAX_DEBT_AGE_DAYS}}d +%F)\nold=$(curl -sf -u \"$SONAR_TOKEN:\" \"$SONAR_URL/api/issues/search?componentKeys=$PROJECT_KEY&resolved=false&createdBefore=$before&ps=500\" \\\n | jq -r '.issues[] | select((.tags | index(\"escalated\") == null) and (.tags | index(\"accepted-debt\") == null)) | \"\\(.key) \\(.creationDate[:10]) \\(.message)\"')\n[ -z \"$old\" ] || { echo \"issues older than {{MAX_DEBT_AGE_DAYS}} days without a decision:\"; echo \"$old\"; exit 1; }\n```",
|
|
1042
|
+
"hubWhen": {
|
|
1043
|
+
"AGE": [
|
|
1044
|
+
"max-age"
|
|
1045
|
+
],
|
|
1046
|
+
"REGISTRY": [
|
|
1047
|
+
"tool"
|
|
1048
|
+
]
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
],
|
|
1052
|
+
"relations": [
|
|
1053
|
+
{
|
|
1054
|
+
"id": "req-todo-key--derives--need",
|
|
1055
|
+
"sourceId": "req-todo-key",
|
|
1056
|
+
"targetId": "need",
|
|
1057
|
+
"relationType": "derives"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"id": "req-debt-record--derives--need",
|
|
1061
|
+
"sourceId": "req-debt-record",
|
|
1062
|
+
"targetId": "need",
|
|
1063
|
+
"relationType": "derives"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"id": "req-share-reported--derives--need",
|
|
1067
|
+
"sourceId": "req-share-reported",
|
|
1068
|
+
"targetId": "need",
|
|
1069
|
+
"relationType": "derives"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"id": "req-fixed-share--derives--need",
|
|
1073
|
+
"sourceId": "req-fixed-share",
|
|
1074
|
+
"targetId": "need",
|
|
1075
|
+
"relationType": "derives"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"id": "req-windows--derives--need",
|
|
1079
|
+
"sourceId": "req-windows",
|
|
1080
|
+
"targetId": "need",
|
|
1081
|
+
"relationType": "derives"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"id": "req-boy-scout--derives--need",
|
|
1085
|
+
"sourceId": "req-boy-scout",
|
|
1086
|
+
"targetId": "need",
|
|
1087
|
+
"relationType": "derives"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"id": "req-deprecated-marked--derives--need",
|
|
1091
|
+
"sourceId": "req-deprecated-marked",
|
|
1092
|
+
"targetId": "need",
|
|
1093
|
+
"relationType": "derives"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"id": "req-sunset--derives--need",
|
|
1097
|
+
"sourceId": "req-sunset",
|
|
1098
|
+
"targetId": "need",
|
|
1099
|
+
"relationType": "derives"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"id": "req-no-new-callers--derives--need",
|
|
1103
|
+
"sourceId": "req-no-new-callers",
|
|
1104
|
+
"targetId": "need",
|
|
1105
|
+
"relationType": "derives"
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"id": "req-tolerated--derives--need",
|
|
1109
|
+
"sourceId": "req-tolerated",
|
|
1110
|
+
"targetId": "need",
|
|
1111
|
+
"relationType": "derives"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"id": "req-no-new-debt--derives--need",
|
|
1115
|
+
"sourceId": "req-no-new-debt",
|
|
1116
|
+
"targetId": "need",
|
|
1117
|
+
"relationType": "derives"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"id": "req-strangler--derives--need",
|
|
1121
|
+
"sourceId": "req-strangler",
|
|
1122
|
+
"targetId": "need",
|
|
1123
|
+
"relationType": "derives"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"id": "req-rewrite-case--derives--need",
|
|
1127
|
+
"sourceId": "req-rewrite-case",
|
|
1128
|
+
"targetId": "need",
|
|
1129
|
+
"relationType": "derives"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"id": "req-age--derives--need",
|
|
1133
|
+
"sourceId": "req-age",
|
|
1134
|
+
"targetId": "need",
|
|
1135
|
+
"relationType": "derives"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"id": "req-tool-ratio--derives--need",
|
|
1139
|
+
"sourceId": "req-tool-ratio",
|
|
1140
|
+
"targetId": "need",
|
|
1141
|
+
"relationType": "derives"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"id": "sc-todo-key--verifies--req-todo-key",
|
|
1145
|
+
"sourceId": "sc-todo-key",
|
|
1146
|
+
"targetId": "req-todo-key",
|
|
1147
|
+
"relationType": "verifies"
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"id": "sc-debt-record--verifies--req-debt-record",
|
|
1151
|
+
"sourceId": "sc-debt-record",
|
|
1152
|
+
"targetId": "req-debt-record",
|
|
1153
|
+
"relationType": "verifies"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"id": "sc-share-reported--verifies--req-share-reported",
|
|
1157
|
+
"sourceId": "sc-share-reported",
|
|
1158
|
+
"targetId": "req-share-reported",
|
|
1159
|
+
"relationType": "verifies"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"id": "sc-fixed-share--verifies--req-fixed-share",
|
|
1163
|
+
"sourceId": "sc-fixed-share",
|
|
1164
|
+
"targetId": "req-fixed-share",
|
|
1165
|
+
"relationType": "verifies"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"id": "sc-windows--verifies--req-windows",
|
|
1169
|
+
"sourceId": "sc-windows",
|
|
1170
|
+
"targetId": "req-windows",
|
|
1171
|
+
"relationType": "verifies"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"id": "sc-boy-scout--verifies--req-boy-scout",
|
|
1175
|
+
"sourceId": "sc-boy-scout",
|
|
1176
|
+
"targetId": "req-boy-scout",
|
|
1177
|
+
"relationType": "verifies"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"id": "sc-deprecated-marked--verifies--req-deprecated-marked",
|
|
1181
|
+
"sourceId": "sc-deprecated-marked",
|
|
1182
|
+
"targetId": "req-deprecated-marked",
|
|
1183
|
+
"relationType": "verifies"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"id": "sc-sunset--verifies--req-sunset",
|
|
1187
|
+
"sourceId": "sc-sunset",
|
|
1188
|
+
"targetId": "req-sunset",
|
|
1189
|
+
"relationType": "verifies"
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"id": "sc-no-new-callers--verifies--req-no-new-callers",
|
|
1193
|
+
"sourceId": "sc-no-new-callers",
|
|
1194
|
+
"targetId": "req-no-new-callers",
|
|
1195
|
+
"relationType": "verifies"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"id": "sc-tolerated--verifies--req-tolerated",
|
|
1199
|
+
"sourceId": "sc-tolerated",
|
|
1200
|
+
"targetId": "req-tolerated",
|
|
1201
|
+
"relationType": "verifies"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"id": "sc-no-new-debt--verifies--req-no-new-debt",
|
|
1205
|
+
"sourceId": "sc-no-new-debt",
|
|
1206
|
+
"targetId": "req-no-new-debt",
|
|
1207
|
+
"relationType": "verifies"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"id": "sc-strangler--verifies--req-strangler",
|
|
1211
|
+
"sourceId": "sc-strangler",
|
|
1212
|
+
"targetId": "req-strangler",
|
|
1213
|
+
"relationType": "verifies"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"id": "sc-rewrite-case--verifies--req-rewrite-case",
|
|
1217
|
+
"sourceId": "sc-rewrite-case",
|
|
1218
|
+
"targetId": "req-rewrite-case",
|
|
1219
|
+
"relationType": "verifies"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"id": "sc-age--verifies--req-age",
|
|
1223
|
+
"sourceId": "sc-age",
|
|
1224
|
+
"targetId": "req-age",
|
|
1225
|
+
"relationType": "verifies"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"id": "sc-tool-ratio--verifies--req-tool-ratio",
|
|
1229
|
+
"sourceId": "sc-tool-ratio",
|
|
1230
|
+
"targetId": "req-tool-ratio",
|
|
1231
|
+
"relationType": "verifies"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"id": "ff-todo-key--implements--adr-issues",
|
|
1235
|
+
"sourceId": "ff-todo-key",
|
|
1236
|
+
"targetId": "adr-issues",
|
|
1237
|
+
"relationType": "implements"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"id": "ff-todo-key--implements--adr-adrs",
|
|
1241
|
+
"sourceId": "ff-todo-key",
|
|
1242
|
+
"targetId": "adr-adrs",
|
|
1243
|
+
"relationType": "implements"
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"id": "ff-todo-closed--implements--adr-issues",
|
|
1247
|
+
"sourceId": "ff-todo-closed",
|
|
1248
|
+
"targetId": "adr-issues",
|
|
1249
|
+
"relationType": "implements"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"id": "ff-todo-closed--implements--adr-adrs",
|
|
1253
|
+
"sourceId": "ff-todo-closed",
|
|
1254
|
+
"targetId": "adr-adrs",
|
|
1255
|
+
"relationType": "implements"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"id": "ff-debt-issues--implements--adr-issues",
|
|
1259
|
+
"sourceId": "ff-debt-issues",
|
|
1260
|
+
"targetId": "adr-issues",
|
|
1261
|
+
"relationType": "implements"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"id": "ff-debt-register--implements--adr-adrs",
|
|
1265
|
+
"sourceId": "ff-debt-register",
|
|
1266
|
+
"targetId": "adr-adrs",
|
|
1267
|
+
"relationType": "implements"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"id": "ff-debt-ratio--implements--adr-tool",
|
|
1271
|
+
"sourceId": "ff-debt-ratio",
|
|
1272
|
+
"targetId": "adr-tool",
|
|
1273
|
+
"relationType": "implements"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"id": "ff-debt-share--implements--adr-issues",
|
|
1277
|
+
"sourceId": "ff-debt-share",
|
|
1278
|
+
"targetId": "adr-issues",
|
|
1279
|
+
"relationType": "implements"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"id": "ff-debt-share--implements--adr-adrs",
|
|
1283
|
+
"sourceId": "ff-debt-share",
|
|
1284
|
+
"targetId": "adr-adrs",
|
|
1285
|
+
"relationType": "implements"
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"id": "ff-debt-share--implements--adr-tool",
|
|
1289
|
+
"sourceId": "ff-debt-share",
|
|
1290
|
+
"targetId": "adr-tool",
|
|
1291
|
+
"relationType": "implements"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"id": "ff-debt-windows--implements--adr-issues",
|
|
1295
|
+
"sourceId": "ff-debt-windows",
|
|
1296
|
+
"targetId": "adr-issues",
|
|
1297
|
+
"relationType": "implements"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"id": "ff-debt-windows--implements--adr-adrs",
|
|
1301
|
+
"sourceId": "ff-debt-windows",
|
|
1302
|
+
"targetId": "adr-adrs",
|
|
1303
|
+
"relationType": "implements"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"id": "ff-debt-windows--implements--adr-tool",
|
|
1307
|
+
"sourceId": "ff-debt-windows",
|
|
1308
|
+
"targetId": "adr-tool",
|
|
1309
|
+
"relationType": "implements"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"id": "ff-boy-scout--implements--adr-issues",
|
|
1313
|
+
"sourceId": "ff-boy-scout",
|
|
1314
|
+
"targetId": "adr-issues",
|
|
1315
|
+
"relationType": "implements"
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
"id": "ff-boy-scout--implements--adr-adrs",
|
|
1319
|
+
"sourceId": "ff-boy-scout",
|
|
1320
|
+
"targetId": "adr-adrs",
|
|
1321
|
+
"relationType": "implements"
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"id": "ff-boy-scout--implements--adr-tool",
|
|
1325
|
+
"sourceId": "ff-boy-scout",
|
|
1326
|
+
"targetId": "adr-tool",
|
|
1327
|
+
"relationType": "implements"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"id": "ff-deprecated-marker--implements--adr-issues",
|
|
1331
|
+
"sourceId": "ff-deprecated-marker",
|
|
1332
|
+
"targetId": "adr-issues",
|
|
1333
|
+
"relationType": "implements"
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"id": "ff-deprecated-marker--implements--adr-adrs",
|
|
1337
|
+
"sourceId": "ff-deprecated-marker",
|
|
1338
|
+
"targetId": "adr-adrs",
|
|
1339
|
+
"relationType": "implements"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"id": "ff-deprecated-marker--implements--adr-tool",
|
|
1343
|
+
"sourceId": "ff-deprecated-marker",
|
|
1344
|
+
"targetId": "adr-tool",
|
|
1345
|
+
"relationType": "implements"
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"id": "ff-expiring-todo--implements--adr-issues",
|
|
1349
|
+
"sourceId": "ff-expiring-todo",
|
|
1350
|
+
"targetId": "adr-issues",
|
|
1351
|
+
"relationType": "implements"
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"id": "ff-expiring-todo--implements--adr-adrs",
|
|
1355
|
+
"sourceId": "ff-expiring-todo",
|
|
1356
|
+
"targetId": "adr-adrs",
|
|
1357
|
+
"relationType": "implements"
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
"id": "ff-expiring-todo--implements--adr-tool",
|
|
1361
|
+
"sourceId": "ff-expiring-todo",
|
|
1362
|
+
"targetId": "adr-tool",
|
|
1363
|
+
"relationType": "implements"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"id": "ff-sunset-grace--implements--adr-issues",
|
|
1367
|
+
"sourceId": "ff-sunset-grace",
|
|
1368
|
+
"targetId": "adr-issues",
|
|
1369
|
+
"relationType": "implements"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"id": "ff-sunset-grace--implements--adr-adrs",
|
|
1373
|
+
"sourceId": "ff-sunset-grace",
|
|
1374
|
+
"targetId": "adr-adrs",
|
|
1375
|
+
"relationType": "implements"
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"id": "ff-sunset-grace--implements--adr-tool",
|
|
1379
|
+
"sourceId": "ff-sunset-grace",
|
|
1380
|
+
"targetId": "adr-tool",
|
|
1381
|
+
"relationType": "implements"
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"id": "ff-sunset-header--implements--adr-issues",
|
|
1385
|
+
"sourceId": "ff-sunset-header",
|
|
1386
|
+
"targetId": "adr-issues",
|
|
1387
|
+
"relationType": "implements"
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"id": "ff-sunset-header--implements--adr-adrs",
|
|
1391
|
+
"sourceId": "ff-sunset-header",
|
|
1392
|
+
"targetId": "adr-adrs",
|
|
1393
|
+
"relationType": "implements"
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"id": "ff-sunset-header--implements--adr-tool",
|
|
1397
|
+
"sourceId": "ff-sunset-header",
|
|
1398
|
+
"targetId": "adr-tool",
|
|
1399
|
+
"relationType": "implements"
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"id": "ff-no-deprecated--implements--adr-issues",
|
|
1403
|
+
"sourceId": "ff-no-deprecated",
|
|
1404
|
+
"targetId": "adr-issues",
|
|
1405
|
+
"relationType": "implements"
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"id": "ff-no-deprecated--implements--adr-adrs",
|
|
1409
|
+
"sourceId": "ff-no-deprecated",
|
|
1410
|
+
"targetId": "adr-adrs",
|
|
1411
|
+
"relationType": "implements"
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
"id": "ff-no-deprecated--implements--adr-tool",
|
|
1415
|
+
"sourceId": "ff-no-deprecated",
|
|
1416
|
+
"targetId": "adr-tool",
|
|
1417
|
+
"relationType": "implements"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"id": "ff-strangler-boundary--implements--adr-strangler",
|
|
1421
|
+
"sourceId": "ff-strangler-boundary",
|
|
1422
|
+
"targetId": "adr-strangler",
|
|
1423
|
+
"relationType": "implements"
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"id": "ff-rewrite-case--implements--adr-big-bang",
|
|
1427
|
+
"sourceId": "ff-rewrite-case",
|
|
1428
|
+
"targetId": "adr-big-bang",
|
|
1429
|
+
"relationType": "implements"
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"id": "ff-debt-age--implements--adr-issues",
|
|
1433
|
+
"sourceId": "ff-debt-age",
|
|
1434
|
+
"targetId": "adr-issues",
|
|
1435
|
+
"relationType": "implements"
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"id": "ff-debt-age-records--implements--adr-adrs",
|
|
1439
|
+
"sourceId": "ff-debt-age-records",
|
|
1440
|
+
"targetId": "adr-adrs",
|
|
1441
|
+
"relationType": "implements"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"id": "ff-debt-age-sonar--implements--adr-tool",
|
|
1445
|
+
"sourceId": "ff-debt-age-sonar",
|
|
1446
|
+
"targetId": "adr-tool",
|
|
1447
|
+
"relationType": "implements"
|
|
1448
|
+
}
|
|
1449
|
+
]
|
|
1450
|
+
}
|