@radicaltools/cli 0.3.0 → 0.3.2
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 +332 -44
- 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 +449 -210
- 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 +287 -131
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +247 -37
- package/dist/hub-catalogue/concern/concern-authorization.radical +311 -89
- package/dist/hub-catalogue/concern/concern-availability.radical +287 -63
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +300 -381
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +385 -129
- package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +194 -81
- 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 +473 -167
- package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +339 -308
- package/dist/hub-catalogue/concern/concern-data-store.radical +480 -158
- package/dist/hub-catalogue/concern/concern-decomposition.radical +260 -85
- 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 +343 -92
- package/dist/hub-catalogue/concern/concern-encryption.radical +339 -76
- 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 +467 -160
- package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +1300 -268
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +88 -51
- package/dist/hub-catalogue/concern/concern-messaging.radical +173 -140
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +162 -159
- package/dist/hub-catalogue/concern/concern-observability.radical +224 -275
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +637 -122
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +433 -141
- 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 +332 -74
- 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 +257 -183
- 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 +271 -137
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +243 -224
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
- package/dist/index.js +10608 -6579
- package/package.json +1 -1
|
@@ -0,0 +1,1091 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-quality-priorities",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Quality attribute priorities",
|
|
6
|
+
"description": "Which quality wins when two conflict: a signed ranking of the ISO/IEC 25010:2023 characteristics and cost, written down before the conflicts come; quality attribute scenarios that make the goals measurable; and ADRs that name the quality they favour and the one they give up. The other packs set the numbers; this one decides which gives way. The checks are Vitest tests with js-yaml over the Radical Markdown model and shell scripts with jq.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"architecture",
|
|
9
|
+
"quality attributes",
|
|
10
|
+
"iso 25010",
|
|
11
|
+
"atam",
|
|
12
|
+
"trade-offs",
|
|
13
|
+
"quality scenarios"
|
|
14
|
+
],
|
|
15
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
16
|
+
"concern": {
|
|
17
|
+
"id": "quality-priorities",
|
|
18
|
+
"trigger": "LIST NODES WHERE type = \"system\" AND external != true",
|
|
19
|
+
"why": "this system has several quality goals that pull against each other, so which one gives way in a conflict has to be decided before the conflict comes.",
|
|
20
|
+
"group": "architecture"
|
|
21
|
+
},
|
|
22
|
+
"sources": [
|
|
23
|
+
{
|
|
24
|
+
"title": "ISO/IEC 25010:2023, Systems and software Quality Requirements and Evaluation (SQuaRE): Product quality model",
|
|
25
|
+
"url": "https://www.iso.org/standard/78176.html"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"title": "Q42 quality model (arc42): ISO/IEC 25010:2023 characteristics and subcharacteristics",
|
|
29
|
+
"url": "https://quality.arc42.org/standards/iso-25010"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"title": "Kazman, Klein, Clements: ATAM: Method for Architecture Evaluation (CMU/SEI-2000-TR-004)",
|
|
33
|
+
"url": "https://www.sei.cmu.edu/library/atam-method-for-architecture-evaluation/"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"title": "Bass, Clements, Kazman: Software Architecture in Practice, 4th edition (Addison-Wesley), 3.3 Quality attribute scenarios",
|
|
37
|
+
"url": "https://www.informit.com/store/software-architecture-in-practice-9780136886099"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "arc42, section 10: Quality requirements",
|
|
41
|
+
"url": "https://docs.arc42.org/section-10/"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"title": "Q42, the arc42 quality model",
|
|
45
|
+
"url": "https://quality.arc42.org/"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"templateParams": [
|
|
49
|
+
{
|
|
50
|
+
"key": "LEAD",
|
|
51
|
+
"title": "Leading quality",
|
|
52
|
+
"label": "Which quality wins when it conflicts with the others?",
|
|
53
|
+
"hint": "This is the first entry of the ranking and the answer to most conflicts: what the team pays for first, and what gives way. The numbers each quality must meet are set in its own pack (Availability, Capacity and scaling, Encryption in transit and at rest and the others). A safety-critical system follows its safety standard (IEC 61508, ISO 26262), which this ranking does not replace.",
|
|
54
|
+
"defaultValue": "reliability",
|
|
55
|
+
"options": [
|
|
56
|
+
{
|
|
57
|
+
"value": "reliability",
|
|
58
|
+
"label": "reliability",
|
|
59
|
+
"description": "The service must stay up and correct: availability, fault tolerance and recoverability win over speed of change, latency and cost. Pick it when an hour down costs more than a feature a week late: payments, operations that run around the clock, a platform other systems depend on."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"value": "maintainability",
|
|
63
|
+
"label": "maintainability",
|
|
64
|
+
"description": "Change fast: modularity, analysability and modifiability win, and the team accepts more operational risk and a lower availability target for now. Pick it for a product still finding its market, where time to market decides more than the last nine."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"value": "security",
|
|
68
|
+
"label": "security",
|
|
69
|
+
"description": "Confidentiality, integrity, accountability and authenticity win, even at a cost in latency, convenience and delivery speed. Pick it when the system keeps regulated or sensitive data (health, finance, public sector) and a breach outweighs any outage."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"value": "performance",
|
|
73
|
+
"label": "performance efficiency",
|
|
74
|
+
"description": "Latency and throughput win (time behaviour, capacity, resource utilisation), paid for with more hardware and code that is harder to change. Pick it when speed is the product (trading, bidding, search, games) or a contract sets the latency."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"value": "cost",
|
|
78
|
+
"label": "cost",
|
|
79
|
+
"description": "The running cost wins: every other quality is held at the lowest level users accept. ISO/IEC 25010 has no cost characteristic, so the ranking adds it as a business driver. Pick it for internal tools, batch work and products with thin margins."
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"key": "METHOD",
|
|
85
|
+
"title": "Method",
|
|
86
|
+
"label": "How are the quality goals made concrete?",
|
|
87
|
+
"hint": "A ranking says which quality wins; a scenario with a number says by how much and makes it testable. The method decides who writes the scenarios and how much the stakeholders take part.",
|
|
88
|
+
"defaultValue": "scenarios",
|
|
89
|
+
"options": [
|
|
90
|
+
{
|
|
91
|
+
"value": "atam",
|
|
92
|
+
"label": "an ATAM utility tree from a stakeholder workshop",
|
|
93
|
+
"description": "The people who sign the ranking and the architects refine each characteristic into concerns and quality attribute scenarios in a workshop, and rate each High, Medium or Low for importance and for risk (ATAM step 5). Pick it for a new system or a large change, when the stakeholders disagree, or before an architecture evaluation."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"value": "scenarios",
|
|
97
|
+
"label": "quality attribute scenarios written by the architects",
|
|
98
|
+
"description": "The architects write the scenarios in six parts and the people who sign the ranking review them in the pull request; no workshop. Pick it by default: most of the value of the utility tree at a fraction of the meeting time."
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"value": "ranking",
|
|
102
|
+
"label": "a ranking of the characteristics only",
|
|
103
|
+
"description": "Only the order of the characteristics, each of the top three pointing to the requirement that holds its number; no scenarios. Pick it for a small system or a first step, knowing that it says which quality wins, not by how much."
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"key": "TRADEOFFS",
|
|
109
|
+
"title": "Trade-offs",
|
|
110
|
+
"label": "How do ADRs record the qualities they trade?",
|
|
111
|
+
"hint": "A decision that buys one quality with another is a trade-off point (ATAM). Written in a fixed line, it can be checked against the ranking; left in prose, nobody notices when a decision goes against it.",
|
|
112
|
+
"defaultValue": "line",
|
|
113
|
+
"options": [
|
|
114
|
+
{
|
|
115
|
+
"value": "line",
|
|
116
|
+
"label": "a Favours and At the cost of line in every ADR",
|
|
117
|
+
"description": "Every ADR accepted after the ranking carries a line \"Favours: … / At the cost of: …\" naming characteristics of the ranking, or \"none\"; one that favours a lower-ranked quality also names who approved the exception. Pick it whenever ADRs are kept in the model: the check costs nothing."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"value": "none",
|
|
121
|
+
"label": "no trade-off line in the ADRs",
|
|
122
|
+
"description": "ADRs describe their consequences in prose and nothing compares them with the ranking. Pick it only while ADRs are few and one architect writes them all."
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"key": "REVIEW",
|
|
128
|
+
"title": "Review",
|
|
129
|
+
"label": "When is the ranking reviewed?",
|
|
130
|
+
"hint": "Priorities change with the market, the regulator and the load. A ranking nobody revisits ranks last year's product, and people stop following it.",
|
|
131
|
+
"defaultValue": "calendar",
|
|
132
|
+
"options": [
|
|
133
|
+
{
|
|
134
|
+
"value": "calendar",
|
|
135
|
+
"label": "on a fixed calendar",
|
|
136
|
+
"description": "The ranking is reviewed and signed again within a set number of months (12 by default); the build fails after that. Pick it when releases are continuous and have no major versions to hang a review on."
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"value": "release",
|
|
140
|
+
"label": "at every major release",
|
|
141
|
+
"description": "A major release is refused unless the ranking was reviewed since the previous one. Pick it when the product ships major versions (a new major version is when priorities shift)."
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"key": "APPROVERS",
|
|
147
|
+
"label": "Who signs the ranking (roles, comma-separated)?",
|
|
148
|
+
"defaultValue": "product owner, architect, operations lead"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"key": "LEAD_SCENARIOS",
|
|
152
|
+
"label": "How many quality attribute scenarios must the leading quality have at least (with scenarios or a utility tree)?",
|
|
153
|
+
"defaultValue": "3",
|
|
154
|
+
"type": "number"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"key": "REVIEW_MONTHS",
|
|
158
|
+
"label": "Within how many months must the ranking be reviewed again (on a fixed calendar)?",
|
|
159
|
+
"defaultValue": "12",
|
|
160
|
+
"type": "number"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"nodes": [
|
|
165
|
+
{
|
|
166
|
+
"id": "need",
|
|
167
|
+
"type": "need",
|
|
168
|
+
"label": "Conflicts between qualities are settled in advance",
|
|
169
|
+
"x": 0,
|
|
170
|
+
"y": 0,
|
|
171
|
+
"kind": "brief",
|
|
172
|
+
"source": "Hub concern pack: Quality attribute priorities",
|
|
173
|
+
"description": "The system has to be reliable, secure, fast, easy to change and affordable, and these goals pull against each other: redundancy costs money, encryption costs latency, a fast release cadence costs stability. Settled one conflict at a time, the answer depends on who is in the room. The order has to be written down and signed before the conflicts come, the goals have to be measurable, and every decision that gives one up has to say so. The checks assume the architecture model as the Radical Markdown folder architecture/ (nodes under architecture/nodes with their properties in the front matter, relations in architecture/relations.json), and one folder quality/<system>/ per system of the model (its label in lower case, other characters as dashes) holding ranking.json and, with a utility tree, utility-tree.yaml."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"id": "req-ranking",
|
|
177
|
+
"type": "requirement",
|
|
178
|
+
"label": "Qualities ranked in strict order",
|
|
179
|
+
"x": 260,
|
|
180
|
+
"y": 0,
|
|
181
|
+
"ears_type": "ubiquitous",
|
|
182
|
+
"action": "keep in quality/<system>/ranking.json a strict order of the nine ISO/IEC 25010:2023 product quality characteristics (functional suitability, performance efficiency, compatibility, interaction capability, reliability, security, maintainability, flexibility, safety) and cost, each named once and nothing else, with {{LEAD}} first",
|
|
183
|
+
"rationale": "A ranking with ties settles nothing, and the names of the standard keep \"fast\" or \"robust\" from meaning different things to different people (ISO/IEC 25010:2023). Cost is no product characteristic of the standard but conflicts with all of them, so it is ranked beside them (arc42 section 10)."
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": "req-signoff",
|
|
187
|
+
"type": "requirement",
|
|
188
|
+
"label": "Ranking signed",
|
|
189
|
+
"x": 260,
|
|
190
|
+
"y": 130,
|
|
191
|
+
"ears_type": "ubiquitous",
|
|
192
|
+
"action": "record in the ranking file the person who signed the current order for each of: {{APPROVERS}}, and the date of the last review",
|
|
193
|
+
"rationale": "A ranking the people who pay for it never agreed to is overruled at the first conflict with a deadline; the utility tree is built with the stakeholders, not for them (ATAM report, step 5)."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "req-review-calendar",
|
|
197
|
+
"type": "requirement",
|
|
198
|
+
"label": "Ranking reviewed in time",
|
|
199
|
+
"x": 260,
|
|
200
|
+
"y": 260,
|
|
201
|
+
"ears_type": "unwanted-behaviour",
|
|
202
|
+
"unwanted_condition": "the ranking of a system was last reviewed more than {{REVIEW_MONTHS}} months ago",
|
|
203
|
+
"action": "fail the main-branch build, naming the ranking file, until the ranking is reviewed and signed again",
|
|
204
|
+
"rationale": "Priorities change with the market, the regulator and the load; quality requirements are kept with the architecture documentation as the system changes (arc42 section 10), and a date nobody checks is not a review.",
|
|
205
|
+
"hubWhen": {
|
|
206
|
+
"REVIEW": [
|
|
207
|
+
"calendar"
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": "req-review-release",
|
|
213
|
+
"type": "requirement",
|
|
214
|
+
"label": "Ranking reviewed for each major release",
|
|
215
|
+
"x": 260,
|
|
216
|
+
"y": 390,
|
|
217
|
+
"ears_type": "event-driven",
|
|
218
|
+
"trigger": "a major release is tagged",
|
|
219
|
+
"action": "refuse the release unless the ranking of every system was reviewed on or after the date of the previous major release",
|
|
220
|
+
"rationale": "A major version is when priorities shift; tying the review to it makes the review happen when it matters (arc42 section 10).",
|
|
221
|
+
"hubWhen": {
|
|
222
|
+
"REVIEW": [
|
|
223
|
+
"release"
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"id": "req-qas-form",
|
|
229
|
+
"type": "requirement",
|
|
230
|
+
"label": "Scenarios have all six parts",
|
|
231
|
+
"x": 260,
|
|
232
|
+
"y": 520,
|
|
233
|
+
"ears_type": "ubiquitous",
|
|
234
|
+
"action": "hold each quality attribute scenario as an event-driven or complex EARS requirement of the architecture model whose label starts with its characteristic and a colon (\"Performance efficiency: …\"), whose trigger names the source and the stimulus, whose precondition or trigger names the environment, which the element it is about satisfies (the artifact), and whose action states the response and a response measure with a number and a unit",
|
|
235
|
+
"rationale": "Source, stimulus, environment, artifact, response and response measure are what make a quality goal testable; without the measure, nobody can say whether it is met (Bass, Clements and Kazman, 3.3; arc42 section 10, quality scenarios).",
|
|
236
|
+
"hubWhen": {
|
|
237
|
+
"METHOD": [
|
|
238
|
+
"atam",
|
|
239
|
+
"scenarios"
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"id": "req-lead-scenarios",
|
|
245
|
+
"type": "requirement",
|
|
246
|
+
"label": "The leading quality is measured",
|
|
247
|
+
"x": 260,
|
|
248
|
+
"y": 650,
|
|
249
|
+
"ears_type": "ubiquitous",
|
|
250
|
+
"action": "hold at least {{LEAD_SCENARIOS}} quality attribute scenarios for {{LEAD}}, the leading quality",
|
|
251
|
+
"rationale": "The leading quality is the one conflicts are decided for; if it carries no number, it leads only in words (Bass, Clements and Kazman, 3.3).",
|
|
252
|
+
"hubWhen": {
|
|
253
|
+
"METHOD": [
|
|
254
|
+
"atam",
|
|
255
|
+
"scenarios"
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"id": "req-utility-tree",
|
|
261
|
+
"type": "requirement",
|
|
262
|
+
"label": "Utility tree kept",
|
|
263
|
+
"x": 260,
|
|
264
|
+
"y": 780,
|
|
265
|
+
"ears_type": "ubiquitous",
|
|
266
|
+
"action": "keep the utility tree of each system in quality/<system>/utility-tree.yaml, with each characteristic refined into concerns and each leaf naming a quality attribute scenario of the model by its label, rated H, M or L for importance and for risk, and at least one leaf of importance H under {{LEAD}}",
|
|
267
|
+
"rationale": "The utility tree turns the stakeholders' goals into scenarios and ranks them on two dimensions, importance to the system and risk to achieve, in High, Medium and Low, because finer distinctions are not made reliably (ATAM report, utility trees).",
|
|
268
|
+
"hubWhen": {
|
|
269
|
+
"METHOD": [
|
|
270
|
+
"atam"
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"id": "req-workshop",
|
|
276
|
+
"type": "requirement",
|
|
277
|
+
"label": "Utility tree built with the stakeholders",
|
|
278
|
+
"x": 260,
|
|
279
|
+
"y": 910,
|
|
280
|
+
"ears_type": "event-driven",
|
|
281
|
+
"trigger": "the ranking is reviewed",
|
|
282
|
+
"action": "revise the utility tree in a workshop with {{APPROVERS}} and the architects, and rank the characteristics from its leaves of importance H",
|
|
283
|
+
"rationale": "Building the tree together is where stakeholders find qualities they had not named; in the report's example, performance and availability surfaced only while refining it (ATAM report, utility trees).",
|
|
284
|
+
"unchecked": "The architect runs the workshop with {{APPROVERS}} at each review of the ranking; who was in the room is no fact a script can see, only the tree it leaves.",
|
|
285
|
+
"hubWhen": {
|
|
286
|
+
"METHOD": [
|
|
287
|
+
"atam"
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"id": "req-qas-review",
|
|
293
|
+
"type": "requirement",
|
|
294
|
+
"label": "Scenarios reviewed by the signers",
|
|
295
|
+
"x": 260,
|
|
296
|
+
"y": 1040,
|
|
297
|
+
"ears_type": "event-driven",
|
|
298
|
+
"trigger": "an architect adds or changes a quality attribute scenario",
|
|
299
|
+
"action": "have the change approved by {{APPROVERS}} in the pull request before it is merged",
|
|
300
|
+
"rationale": "A response measure is a promise someone pays for; the people who sign the ranking confirm that it is the right one (Bass, Clements and Kazman, 3.3: scenarios come from the stakeholders).",
|
|
301
|
+
"unchecked": "Each of {{APPROVERS}} approves the pull request that adds or changes a scenario; whether a measure is worth what it costs is a judgement no script makes.",
|
|
302
|
+
"hubWhen": {
|
|
303
|
+
"METHOD": [
|
|
304
|
+
"scenarios"
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"id": "req-anchors",
|
|
310
|
+
"type": "requirement",
|
|
311
|
+
"label": "Top qualities point to their numbers",
|
|
312
|
+
"x": 260,
|
|
313
|
+
"y": 1170,
|
|
314
|
+
"ears_type": "ubiquitous",
|
|
315
|
+
"action": "name in the ranking file, for each of the three highest-ranked characteristics, a requirement of the architecture model whose action holds a number with a unit, as set by the pack that owns that quality",
|
|
316
|
+
"rationale": "A ranking alone says which quality wins, not by how much; pointing the top three at their numbers keeps it tied to something measurable (ISO/IEC 25010:2023 is a model for specifying and measuring quality).",
|
|
317
|
+
"hubWhen": {
|
|
318
|
+
"METHOD": [
|
|
319
|
+
"ranking"
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"id": "req-tradeoff-line",
|
|
325
|
+
"type": "requirement",
|
|
326
|
+
"label": "ADRs name what they trade",
|
|
327
|
+
"x": 260,
|
|
328
|
+
"y": 1300,
|
|
329
|
+
"ears_type": "ubiquitous",
|
|
330
|
+
"action": "carry in the consequences of every ADR accepted since the ranking was adopted a line \"Favours: <characteristics> / At the cost of: <characteristics>\" naming only entries of the ranking, or \"Favours: none / At the cost of: none\"",
|
|
331
|
+
"rationale": "A decision that affects more than one quality attribute is a trade-off point (ATAM report); written in a fixed line, it can be compared with the ranking by a script instead of by memory.",
|
|
332
|
+
"hubWhen": {
|
|
333
|
+
"TRADEOFFS": [
|
|
334
|
+
"line"
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"id": "req-tradeoff-exception",
|
|
340
|
+
"type": "requirement",
|
|
341
|
+
"label": "Going against the ranking is approved",
|
|
342
|
+
"x": 260,
|
|
343
|
+
"y": 1430,
|
|
344
|
+
"ears_type": "unwanted-behaviour",
|
|
345
|
+
"unwanted_condition": "an accepted ADR favours a characteristic ranked below one it gives up",
|
|
346
|
+
"action": "carry in its consequences a line \"Exception:\" naming who of {{APPROVERS}} approved going against the ranking, and when",
|
|
347
|
+
"rationale": "The ranking settles conflicts in advance; a decision against it may be right, but it is a decision of the people who signed the ranking, not of the ADR's author alone (ATAM report: trade-off points).",
|
|
348
|
+
"hubWhen": {
|
|
349
|
+
"TRADEOFFS": [
|
|
350
|
+
"line"
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"id": "sc-ranking",
|
|
356
|
+
"type": "scenario",
|
|
357
|
+
"label": "Ranking complete and strict",
|
|
358
|
+
"x": 520,
|
|
359
|
+
"y": 0,
|
|
360
|
+
"given": "the ranking file of the system",
|
|
361
|
+
"when": "it is read",
|
|
362
|
+
"then": "it names each of the nine characteristics and cost exactly once, nothing else, with {{LEAD}} first"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": "sc-signoff",
|
|
366
|
+
"type": "scenario",
|
|
367
|
+
"label": "Sign-offs recorded",
|
|
368
|
+
"x": 520,
|
|
369
|
+
"y": 130,
|
|
370
|
+
"given": "a ranking file",
|
|
371
|
+
"when": "one of {{APPROVERS}} has no name in it, or the review date is missing",
|
|
372
|
+
"then": "the ranking check fails naming what is missing"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"id": "sc-review-calendar",
|
|
376
|
+
"type": "scenario",
|
|
377
|
+
"label": "Stale ranking fails the build",
|
|
378
|
+
"x": 520,
|
|
379
|
+
"y": 260,
|
|
380
|
+
"given": "a ranking last reviewed {{REVIEW_MONTHS}} months and one day ago",
|
|
381
|
+
"when": "the main branch is built",
|
|
382
|
+
"then": "the build fails naming the ranking file",
|
|
383
|
+
"hubWhen": {
|
|
384
|
+
"REVIEW": [
|
|
385
|
+
"calendar"
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"id": "sc-review-release",
|
|
391
|
+
"type": "scenario",
|
|
392
|
+
"label": "Release waits for the review",
|
|
393
|
+
"x": 520,
|
|
394
|
+
"y": 390,
|
|
395
|
+
"given": "a ranking last reviewed before the previous major release",
|
|
396
|
+
"when": "the next major release is tagged",
|
|
397
|
+
"then": "the release job fails naming the ranking file",
|
|
398
|
+
"hubWhen": {
|
|
399
|
+
"REVIEW": [
|
|
400
|
+
"release"
|
|
401
|
+
]
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": "sc-qas-form",
|
|
406
|
+
"type": "scenario",
|
|
407
|
+
"label": "Scenario without a measure refused",
|
|
408
|
+
"x": 520,
|
|
409
|
+
"y": 520,
|
|
410
|
+
"given": "a requirement labelled \"Performance efficiency: search under load\" whose action says \"respond quickly\"",
|
|
411
|
+
"when": "the scenario check runs",
|
|
412
|
+
"then": "it fails naming the requirement, and passes once the action reads \"respond within 300 ms at the 95th percentile\"",
|
|
413
|
+
"hubWhen": {
|
|
414
|
+
"METHOD": [
|
|
415
|
+
"atam",
|
|
416
|
+
"scenarios"
|
|
417
|
+
]
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": "sc-lead-scenarios",
|
|
422
|
+
"type": "scenario",
|
|
423
|
+
"label": "Leading quality has scenarios",
|
|
424
|
+
"x": 520,
|
|
425
|
+
"y": 650,
|
|
426
|
+
"given": "the architecture model",
|
|
427
|
+
"when": "its quality attribute scenarios are counted by characteristic",
|
|
428
|
+
"then": "there are at least {{LEAD_SCENARIOS}} for {{LEAD}}",
|
|
429
|
+
"hubWhen": {
|
|
430
|
+
"METHOD": [
|
|
431
|
+
"atam",
|
|
432
|
+
"scenarios"
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"id": "sc-utility-tree",
|
|
438
|
+
"type": "scenario",
|
|
439
|
+
"label": "Leaf without a scenario refused",
|
|
440
|
+
"x": 520,
|
|
441
|
+
"y": 780,
|
|
442
|
+
"given": "a utility tree with a leaf naming a scenario that is not in the model",
|
|
443
|
+
"when": "the utility-tree check runs",
|
|
444
|
+
"then": "it fails naming the leaf",
|
|
445
|
+
"hubWhen": {
|
|
446
|
+
"METHOD": [
|
|
447
|
+
"atam"
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"id": "sc-workshop",
|
|
453
|
+
"type": "scenario",
|
|
454
|
+
"label": "Workshop at each review",
|
|
455
|
+
"x": 520,
|
|
456
|
+
"y": 910,
|
|
457
|
+
"given": "a review of the ranking is due",
|
|
458
|
+
"when": "the workshop with {{APPROVERS}} is held",
|
|
459
|
+
"then": "the utility tree and the ranking are updated and signed on the same date",
|
|
460
|
+
"hubWhen": {
|
|
461
|
+
"METHOD": [
|
|
462
|
+
"atam"
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"id": "sc-qas-review",
|
|
468
|
+
"type": "scenario",
|
|
469
|
+
"label": "Scenario change approved",
|
|
470
|
+
"x": 520,
|
|
471
|
+
"y": 1040,
|
|
472
|
+
"given": "a pull request that changes the response measure of a scenario",
|
|
473
|
+
"when": "it is reviewed",
|
|
474
|
+
"then": "it is merged only after {{APPROVERS}} have approved it",
|
|
475
|
+
"hubWhen": {
|
|
476
|
+
"METHOD": [
|
|
477
|
+
"scenarios"
|
|
478
|
+
]
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"id": "sc-anchors",
|
|
483
|
+
"type": "scenario",
|
|
484
|
+
"label": "Top quality without a number",
|
|
485
|
+
"x": 520,
|
|
486
|
+
"y": 1170,
|
|
487
|
+
"given": "a ranking whose first characteristic points to no requirement of the model",
|
|
488
|
+
"when": "the ranking check runs",
|
|
489
|
+
"then": "it fails naming the characteristic",
|
|
490
|
+
"hubWhen": {
|
|
491
|
+
"METHOD": [
|
|
492
|
+
"ranking"
|
|
493
|
+
]
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"id": "sc-tradeoff-line",
|
|
498
|
+
"type": "scenario",
|
|
499
|
+
"label": "ADR without the line refused",
|
|
500
|
+
"x": 520,
|
|
501
|
+
"y": 1300,
|
|
502
|
+
"given": "an ADR accepted after the ranking was adopted",
|
|
503
|
+
"when": "its consequences have no Favours line, or the line names \"speed\"",
|
|
504
|
+
"then": "the trade-off check fails naming the ADR",
|
|
505
|
+
"hubWhen": {
|
|
506
|
+
"TRADEOFFS": [
|
|
507
|
+
"line"
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"id": "sc-tradeoff-exception",
|
|
513
|
+
"type": "scenario",
|
|
514
|
+
"label": "Exception named",
|
|
515
|
+
"x": 520,
|
|
516
|
+
"y": 1430,
|
|
517
|
+
"given": "an ADR whose line favours a characteristic ranked below the one it gives up",
|
|
518
|
+
"when": "it has no Exception line, and then one naming the approver and date",
|
|
519
|
+
"then": "the trade-off check fails the first time and passes the second",
|
|
520
|
+
"hubWhen": {
|
|
521
|
+
"TRADEOFFS": [
|
|
522
|
+
"line"
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"id": "adr-lead-reliability",
|
|
528
|
+
"type": "adr",
|
|
529
|
+
"label": "Reliability leads the quality ranking",
|
|
530
|
+
"x": 780,
|
|
531
|
+
"y": 0,
|
|
532
|
+
"concern": "quality-priorities",
|
|
533
|
+
"status": "accepted",
|
|
534
|
+
"date": "",
|
|
535
|
+
"context": "This system has to meet several quality goals at once, and they pull against each other. The forces: every redundant zone, encryption hop, cache or abstraction buys one quality with another or with money; a conflict settled when it arrives, under a deadline, is settled by whoever is in the room; \"fast\", \"secure\" and \"easy to change\" mean different things to different people until they carry a number; a ranking agreed once drifts from the product as the market, the regulator and the load change; and a decision that quietly gives up a quality is found out only when that quality fails. The numbers themselves are set in the packs that own each quality (Availability, Capacity and scaling, Backup and recovery, Encryption in transit and at rest, Authentication, Delivery metrics and the others); this pack decides which of them gives way. Legal obligations (the Personal data pack, a regulator's rules) are constraints, not qualities to rank: no ranking lowers them.",
|
|
536
|
+
"decision": "Reliability leads. In the ranking of the system (quality/<system>/ranking.json, signed by {{APPROVERS}}) reliability, with faultlessness, availability, fault tolerance and recoverability (ISO/IEC 25010:2023), comes first; the other characteristics and cost follow in the order recorded there. When reliability conflicts with another quality, reliability wins: a feature, a latency gain or a saving that would put at risk the availability target of the Availability pack or the recovery objectives of the Backup and recovery pack waits until it no longer does, and redundancy, tested failover and backups that restore are paid for before optimisations. Method: {{METHOD}}. Trade-offs: {{TRADEOFFS}}. The ranking is reviewed {{REVIEW}}.",
|
|
537
|
+
"consequences": "• Every conflict with reliability has a known answer, decided in minutes instead of argued in each design review.\n• More infrastructure per request (replicas in several zones, standby capacity) and slower delivery: changes pass more gates and roll out more carefully.\n• A feature that needs a weaker dependency waits until degradation or redundancy is built around it.\n• The other qualities still meet the numbers their own packs set; they give way only where both cannot be met.\n• Favours: reliability / At the cost of: maintainability, cost",
|
|
538
|
+
"alternatives": "1. Maintainability first: faster change and more operational risk; right while the product is still finding its market.\n2. Cost first: a smaller bill and outages the users have to accept.\n3. No ranking, each conflict on its merits: flexible on paper, and in practice decided by whoever is under the most pressure that day.",
|
|
539
|
+
"hubWhen": {
|
|
540
|
+
"LEAD": [
|
|
541
|
+
"reliability"
|
|
542
|
+
]
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"id": "adr-lead-maintainability",
|
|
547
|
+
"type": "adr",
|
|
548
|
+
"label": "Maintainability leads the quality ranking",
|
|
549
|
+
"x": 780,
|
|
550
|
+
"y": 130,
|
|
551
|
+
"concern": "quality-priorities",
|
|
552
|
+
"status": "accepted",
|
|
553
|
+
"date": "",
|
|
554
|
+
"context": "This system has to meet several quality goals at once, and they pull against each other. The forces: every redundant zone, encryption hop, cache or abstraction buys one quality with another or with money; a conflict settled when it arrives, under a deadline, is settled by whoever is in the room; \"fast\", \"secure\" and \"easy to change\" mean different things to different people until they carry a number; a ranking agreed once drifts from the product as the market, the regulator and the load change; and a decision that quietly gives up a quality is found out only when that quality fails. The numbers themselves are set in the packs that own each quality (Availability, Capacity and scaling, Backup and recovery, Encryption in transit and at rest, Authentication, Delivery metrics and the others); this pack decides which of them gives way. Legal obligations (the Personal data pack, a regulator's rules) are constraints, not qualities to rank: no ranking lowers them.",
|
|
555
|
+
"decision": "Maintainability leads, for time to market. In the ranking of the system (quality/<system>/ranking.json, signed by {{APPROVERS}}) maintainability, with modularity, analysability and modifiability (ISO/IEC 25010:2023), comes first; the other characteristics and cost follow in the order recorded there. When maintainability conflicts with another quality, it wins: the simpler design that can be changed next week beats the faster or more redundant one, the team accepts a modest availability target in the Availability pack and more operational risk, and the speed this buys is measured by the lead time for changes of the Delivery metrics pack. Method: {{METHOD}}. Trade-offs: {{TRADEOFFS}}. The ranking is reviewed {{REVIEW}}.",
|
|
556
|
+
"consequences": "• Features reach users sooner, and the design stays easy to change while the product finds its market.\n• More incidents and slower pages than a reliability- or performance-led design would have; users notice.\n• The ranking has to change when the product matures, or the system keeps the risk profile of a prototype.\n• The other qualities still meet the numbers their own packs set; they give way only where both cannot be met.\n• Favours: maintainability / At the cost of: reliability, performance efficiency",
|
|
557
|
+
"alternatives": "1. Reliability first: fewer incidents, slower change.\n2. Performance efficiency first: faster responses, code that is harder to change.\n3. No ranking: the cost of each shortcut is argued again each time.",
|
|
558
|
+
"hubWhen": {
|
|
559
|
+
"LEAD": [
|
|
560
|
+
"maintainability"
|
|
561
|
+
]
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"id": "adr-lead-security",
|
|
566
|
+
"type": "adr",
|
|
567
|
+
"label": "Security leads the quality ranking",
|
|
568
|
+
"x": 780,
|
|
569
|
+
"y": 260,
|
|
570
|
+
"concern": "quality-priorities",
|
|
571
|
+
"status": "accepted",
|
|
572
|
+
"date": "",
|
|
573
|
+
"context": "This system has to meet several quality goals at once, and they pull against each other. The forces: every redundant zone, encryption hop, cache or abstraction buys one quality with another or with money; a conflict settled when it arrives, under a deadline, is settled by whoever is in the room; \"fast\", \"secure\" and \"easy to change\" mean different things to different people until they carry a number; a ranking agreed once drifts from the product as the market, the regulator and the load change; and a decision that quietly gives up a quality is found out only when that quality fails. The numbers themselves are set in the packs that own each quality (Availability, Capacity and scaling, Backup and recovery, Encryption in transit and at rest, Authentication, Delivery metrics and the others); this pack decides which of them gives way. Legal obligations (the Personal data pack, a regulator's rules) are constraints, not qualities to rank: no ranking lowers them.",
|
|
574
|
+
"decision": "Security leads. In the ranking of the system (quality/<system>/ranking.json, signed by {{APPROVERS}}) security, with confidentiality, integrity, non-repudiation, accountability, authenticity and resistance (ISO/IEC 25010:2023), comes first; the other characteristics and cost follow in the order recorded there. When security conflicts with another quality, security wins: an extra hop for encryption or an authorisation check is paid in latency, a second factor in convenience, a reviewed release in speed of change. The controls themselves are set in the Authentication, Authorization, Encryption in transit and at rest, Secrets and Data classification packs; this decision says that they win a conflict. Method: {{METHOD}}. Trade-offs: {{TRADEOFFS}}. The ranking is reviewed {{REVIEW}}.",
|
|
575
|
+
"consequences": "• A proposal that weakens a control for speed or convenience has a known answer: no, unless the signers approve an exception.\n• Slower responses, more steps for users and slower delivery than an unconstrained design.\n• Security work is planned capacity, not what is left over after features.\n• The other qualities still meet the numbers their own packs set; they give way only where both cannot be met.\n• Favours: security / At the cost of: interaction capability, performance efficiency, maintainability",
|
|
576
|
+
"alternatives": "1. Reliability first, with security held at the floor its packs set: right when the data is not regulated.\n2. Treating security as a constraint only: the floor is met, and every conflict above it is lost to features.",
|
|
577
|
+
"hubWhen": {
|
|
578
|
+
"LEAD": [
|
|
579
|
+
"security"
|
|
580
|
+
]
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"id": "adr-lead-performance",
|
|
585
|
+
"type": "adr",
|
|
586
|
+
"label": "Performance efficiency leads the quality ranking",
|
|
587
|
+
"x": 780,
|
|
588
|
+
"y": 390,
|
|
589
|
+
"concern": "quality-priorities",
|
|
590
|
+
"status": "accepted",
|
|
591
|
+
"date": "",
|
|
592
|
+
"context": "This system has to meet several quality goals at once, and they pull against each other. The forces: every redundant zone, encryption hop, cache or abstraction buys one quality with another or with money; a conflict settled when it arrives, under a deadline, is settled by whoever is in the room; \"fast\", \"secure\" and \"easy to change\" mean different things to different people until they carry a number; a ranking agreed once drifts from the product as the market, the regulator and the load change; and a decision that quietly gives up a quality is found out only when that quality fails. The numbers themselves are set in the packs that own each quality (Availability, Capacity and scaling, Backup and recovery, Encryption in transit and at rest, Authentication, Delivery metrics and the others); this pack decides which of them gives way. Legal obligations (the Personal data pack, a regulator's rules) are constraints, not qualities to rank: no ranking lowers them.",
|
|
593
|
+
"decision": "Performance efficiency leads. In the ranking of the system (quality/<system>/ranking.json, signed by {{APPROVERS}}) performance efficiency, with time behaviour, resource utilisation and capacity (ISO/IEC 25010:2023), comes first; the other characteristics and cost follow in the order recorded there. When it conflicts with another quality, it wins: caches, precomputed and denormalised read models and hand-tuned queries are accepted although they make the code harder to change, and headroom is bought before the latency budget is spent. The latency and throughput numbers are set in the Capacity and scaling pack, the shape of read models in the Architecture style pack. Method: {{METHOD}}. Trade-offs: {{TRADEOFFS}}. The ranking is reviewed {{REVIEW}}.",
|
|
594
|
+
"consequences": "• Latency and throughput are protected in every design review, so the product stays fast as it grows.\n• More hardware and more complex code: caches to invalidate, read models to rebuild, optimisations to keep.\n• Changes take longer, because each one is measured against the latency budget before it is merged.\n• The other qualities still meet the numbers their own packs set; they give way only where both cannot be met.\n• Favours: performance efficiency / At the cost of: maintainability, flexibility, cost",
|
|
595
|
+
"alternatives": "1. Maintainability first, with performance held at the numbers of the Capacity and scaling pack: right when speed is not what users pay for.\n2. Cost first: smaller machines and slower answers.",
|
|
596
|
+
"hubWhen": {
|
|
597
|
+
"LEAD": [
|
|
598
|
+
"performance"
|
|
599
|
+
]
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"id": "adr-lead-cost",
|
|
604
|
+
"type": "adr",
|
|
605
|
+
"label": "Cost leads the quality ranking",
|
|
606
|
+
"x": 780,
|
|
607
|
+
"y": 520,
|
|
608
|
+
"concern": "quality-priorities",
|
|
609
|
+
"status": "accepted",
|
|
610
|
+
"date": "",
|
|
611
|
+
"context": "This system has to meet several quality goals at once, and they pull against each other. The forces: every redundant zone, encryption hop, cache or abstraction buys one quality with another or with money; a conflict settled when it arrives, under a deadline, is settled by whoever is in the room; \"fast\", \"secure\" and \"easy to change\" mean different things to different people until they carry a number; a ranking agreed once drifts from the product as the market, the regulator and the load change; and a decision that quietly gives up a quality is found out only when that quality fails. The numbers themselves are set in the packs that own each quality (Availability, Capacity and scaling, Backup and recovery, Encryption in transit and at rest, Authentication, Delivery metrics and the others); this pack decides which of them gives way. Legal obligations (the Personal data pack, a regulator's rules) are constraints, not qualities to rank: no ranking lowers them.",
|
|
612
|
+
"decision": "Cost leads. ISO/IEC 25010:2023 has no cost characteristic, so the ranking of the system (quality/<system>/ranking.json, signed by {{APPROVERS}}) puts cost first as a business driver, followed by the nine characteristics in the order recorded there. When cost conflicts with another quality, the cheaper option wins as long as that quality still meets the number its own pack sets: the lowest availability target users accept (Availability pack), a small fixed fleet or scale to zero (Capacity and scaling pack), and managed services only where they are cheaper at the expected load. The cost-centre tags of the Infrastructure pack make the bill per system visible. Method: {{METHOD}}. Trade-offs: {{TRADEOFFS}}. The ranking is reviewed {{REVIEW}}.",
|
|
613
|
+
"consequences": "• A smaller bill, and every proposal that adds running cost has to show what it buys.\n• Lower availability and slower responses than the users might like; the numbers in the other packs are set at the floor.\n• Savings found later (reserved capacity, smaller instances) are easy to take; quality lost to them is harder to win back.\n• Favours: cost / At the cost of: reliability, performance efficiency",
|
|
614
|
+
"alternatives": "1. Reliability first: a higher bill and fewer outages.\n2. Leaving cost out of the ranking: the bill grows one well-argued decision at a time.",
|
|
615
|
+
"hubWhen": {
|
|
616
|
+
"LEAD": [
|
|
617
|
+
"cost"
|
|
618
|
+
]
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"id": "adr-utility-tree",
|
|
623
|
+
"type": "adr",
|
|
624
|
+
"label": "Quality goals from an ATAM utility tree",
|
|
625
|
+
"x": 780,
|
|
626
|
+
"y": 650,
|
|
627
|
+
"concern": "quality-priorities",
|
|
628
|
+
"status": "accepted",
|
|
629
|
+
"date": "",
|
|
630
|
+
"context": "This system has to meet several quality goals at once, and they pull against each other. The forces: every redundant zone, encryption hop, cache or abstraction buys one quality with another or with money; a conflict settled when it arrives, under a deadline, is settled by whoever is in the room; \"fast\", \"secure\" and \"easy to change\" mean different things to different people until they carry a number; a ranking agreed once drifts from the product as the market, the regulator and the load change; and a decision that quietly gives up a quality is found out only when that quality fails. The numbers themselves are set in the packs that own each quality (Availability, Capacity and scaling, Backup and recovery, Encryption in transit and at rest, Authentication, Delivery metrics and the others); this pack decides which of them gives way. Legal obligations (the Personal data pack, a regulator's rules) are constraints, not qualities to rank: no ranking lowers them.",
|
|
631
|
+
"decision": "The quality goals are made concrete with an ATAM-style utility tree (CMU/SEI-2000-TR-004, step 5): in a workshop with {{APPROVERS}} and the architects, each characteristic of the ranking is refined into concerns and those into quality attribute scenarios, each rated H, M or L for importance to the system and for risk to achieve. Each leaf becomes a requirement of the architecture model in the six parts of Bass, Clements and Kazman (source, stimulus, environment, artifact, response, response measure), at least {{LEAD_SCENARIOS}} of them for {{LEAD}}; the tree is kept in quality/<system>/utility-tree.yaml and names its leaves by the requirements' labels. The (H,H) leaves are the first the architecture is evaluated against and the first to get tests. The workshop is repeated at each review of the ranking.",
|
|
632
|
+
"consequences": "• Stakeholders rank concrete scenarios instead of words, and often find qualities they had not named.\n• Half a day to two days of the signers' time at each review.\n• The tree, the requirements and the ranking are three records to keep in step; the checks hold them together.\n• Favours: none / At the cost of: none",
|
|
633
|
+
"alternatives": "1. Scenarios written by the architects and reviewed: cheaper, with less agreement from the people who pay.\n2. A ranking only: settles which quality wins, not by how much.\n3. A full ATAM evaluation by an outside team: all nine steps with risk and trade-off analysis, worth it before a large commitment that cannot be undone.",
|
|
634
|
+
"hubWhen": {
|
|
635
|
+
"METHOD": [
|
|
636
|
+
"atam"
|
|
637
|
+
]
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"id": "adr-qas",
|
|
642
|
+
"type": "adr",
|
|
643
|
+
"label": "Quality goals as quality attribute scenarios",
|
|
644
|
+
"x": 780,
|
|
645
|
+
"y": 780,
|
|
646
|
+
"concern": "quality-priorities",
|
|
647
|
+
"status": "accepted",
|
|
648
|
+
"date": "",
|
|
649
|
+
"context": "This system has to meet several quality goals at once, and they pull against each other. The forces: every redundant zone, encryption hop, cache or abstraction buys one quality with another or with money; a conflict settled when it arrives, under a deadline, is settled by whoever is in the room; \"fast\", \"secure\" and \"easy to change\" mean different things to different people until they carry a number; a ranking agreed once drifts from the product as the market, the regulator and the load change; and a decision that quietly gives up a quality is found out only when that quality fails. The numbers themselves are set in the packs that own each quality (Availability, Capacity and scaling, Backup and recovery, Encryption in transit and at rest, Authentication, Delivery metrics and the others); this pack decides which of them gives way. Legal obligations (the Personal data pack, a regulator's rules) are constraints, not qualities to rank: no ranking lowers them.",
|
|
650
|
+
"decision": "The quality goals are made concrete as quality attribute scenarios written by the architects: each is a requirement of the architecture model in the six parts of Bass, Clements and Kazman (source, stimulus, environment, artifact, response, response measure), labelled with its characteristic, at least {{LEAD_SCENARIOS}} of them for {{LEAD}}; the architecture documentation lists them by characteristic (arc42 section 10). {{APPROVERS}} approve each new or changed scenario in the pull request that adds it. There is no workshop.",
|
|
651
|
+
"consequences": "• Measurable goals at the cost of the architects' writing time and a review, not a meeting.\n• The scenarios reflect what the architects thought of; a quality nobody raised can stay missing until a workshop or an incident finds it.\n• Each scenario is a requirement, so it can be verified by a test like any other.\n• Favours: none / At the cost of: none",
|
|
652
|
+
"alternatives": "1. An ATAM utility tree from a workshop: more agreement and better coverage, at the cost of the stakeholders' time.\n2. A ranking only: no numbers of its own, and no way to tell whether a goal is met.",
|
|
653
|
+
"hubWhen": {
|
|
654
|
+
"METHOD": [
|
|
655
|
+
"scenarios"
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"id": "adr-ranking-only",
|
|
661
|
+
"type": "adr",
|
|
662
|
+
"label": "A ranking of the qualities only",
|
|
663
|
+
"x": 780,
|
|
664
|
+
"y": 910,
|
|
665
|
+
"concern": "quality-priorities",
|
|
666
|
+
"status": "accepted",
|
|
667
|
+
"date": "",
|
|
668
|
+
"context": "This system has to meet several quality goals at once, and they pull against each other. The forces: every redundant zone, encryption hop, cache or abstraction buys one quality with another or with money; a conflict settled when it arrives, under a deadline, is settled by whoever is in the room; \"fast\", \"secure\" and \"easy to change\" mean different things to different people until they carry a number; a ranking agreed once drifts from the product as the market, the regulator and the load change; and a decision that quietly gives up a quality is found out only when that quality fails. The numbers themselves are set in the packs that own each quality (Availability, Capacity and scaling, Backup and recovery, Encryption in transit and at rest, Authentication, Delivery metrics and the others); this pack decides which of them gives way. Legal obligations (the Personal data pack, a regulator's rules) are constraints, not qualities to rank: no ranking lowers them.",
|
|
669
|
+
"decision": "The characteristics are ranked and nothing more: this pack adds no scenarios. In the ranking file, each of the three highest-ranked characteristics points to the requirement of the architecture model that holds its number, set by the pack that owns that quality. The limits are recorded here: a ranking says which quality wins a conflict, not by how much; two neighbours in the ranking are decided as if one were far above the other; and nothing checks that the numbers of the other packs fit the order. The first conflict the ranking cannot settle supersedes this decision with scenarios or a utility tree.",
|
|
670
|
+
"consequences": "• Cheap to set up: one file, signed.\n• Conflicts between neighbouring qualities are decided by their order alone, which can be wrong when the higher one is already well met.\n• Below the top three, nothing ties a quality to a number.\n• Favours: none / At the cost of: none",
|
|
671
|
+
"alternatives": "1. Quality attribute scenarios written by the architects: numbers for every quality that matters.\n2. An ATAM utility tree: numbers, weights and the stakeholders' agreement.",
|
|
672
|
+
"hubWhen": {
|
|
673
|
+
"METHOD": [
|
|
674
|
+
"ranking"
|
|
675
|
+
]
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"id": "ff-ranking",
|
|
680
|
+
"type": "fitness-fn",
|
|
681
|
+
"label": "Ranking complete, strict and signed",
|
|
682
|
+
"x": 1040,
|
|
683
|
+
"y": 0,
|
|
684
|
+
"characteristic": "other",
|
|
685
|
+
"scope": "atomic",
|
|
686
|
+
"cadence": "triggered",
|
|
687
|
+
"trigger": "pull-request",
|
|
688
|
+
"invocation": "automated",
|
|
689
|
+
"description": "A test lists the systems of the architecture model that are not external and reads each one's ranking file. The file holds \"adopted\" and \"reviewed\" dates (YYYY-MM-DD), \"approvedBy\" (a name per role of the decision), \"order\" (the ten entries, highest first) and, with a ranking only, \"measuredBy\" (a requirement label per top characteristic), for example {\"adopted\": \"2026-11-02\", \"reviewed\": \"2026-11-02\", \"approvedBy\": {\"product owner\": \"A. Nowak\", \"architect\": \"B. Lee\", \"operations lead\": \"C. Diaz\"}, \"order\": [\"reliability\", \"security\", \"cost\", \"performance efficiency\", \"maintainability\", \"functional suitability\", \"compatibility\", \"interaction capability\", \"flexibility\", \"safety\"]}.\n\nThreshold: For every system of the model, quality/<system>/ranking.json names the nine ISO/IEC 25010:2023 characteristics and cost exactly once and nothing else, with {{LEAD}} first, a signer for each of {{APPROVERS}} and a review date\n\nTool: Vitest with js-yaml over the Radical Markdown folder (for a model kept as a single .radical file: the same test over its nodes array)\n\n```ts\nimport { readdirSync, readFileSync } from 'node:fs'\nimport { JSON_SCHEMA, load } from 'js-yaml'\nimport { expect, it } from 'vitest'\n\nconst nodes = readdirSync('architecture/nodes', { recursive: true, encoding: 'utf8' }).filter((f) => f.endsWith('.md'))\n .map((f) => (load(readFileSync(`architecture/nodes/${f}`, 'utf8').split(/^---$/m)[1] ?? '', { schema: JSON_SCHEMA }) ?? {}) as Record<string, string>)\nconst slug = (s: unknown) => String(s).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '')\nconst systems = nodes.filter((n) => n.type === 'system' && String(n.external) !== 'true').map((n) => ({ system: slug(n.label) }))\nconst RANKED = ['functional suitability', 'performance efficiency', 'compatibility', 'interaction capability', 'reliability', 'security', 'maintainability', 'flexibility', 'safety', 'cost']\n\nit.each(systems)('the ranking of $system is complete, strict and signed', ({ system }) => {\n const ranking = JSON.parse(readFileSync(`quality/${system}/ranking.json`, 'utf8'))\n const order: string[] = ranking.order.map((q: string) => q.toLowerCase())\n expect([...order].sort(), 'each of the ten exactly once, nothing else').toEqual([...RANKED].sort())\n expect(order[0], 'the leading quality first').toBe('{{LEAD}}')\n expect('{{APPROVERS}}'.split(/,\\s*/).filter((role) => !ranking.approvedBy?.[role]), 'roles without a signer').toEqual([])\n expect(ranking.reviewed, 'review date').toMatch(/^\\d{4}-\\d{2}-\\d{2}$/)\n})\n```"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"id": "ff-review-calendar",
|
|
693
|
+
"type": "fitness-fn",
|
|
694
|
+
"label": "Ranking reviewed within the period",
|
|
695
|
+
"x": 1040,
|
|
696
|
+
"y": 130,
|
|
697
|
+
"characteristic": "other",
|
|
698
|
+
"scope": "atomic",
|
|
699
|
+
"cadence": "temporal",
|
|
700
|
+
"every": "365d",
|
|
701
|
+
"invocation": "manual",
|
|
702
|
+
"description": "A step of the main-branch and nightly builds reads the review date of every ranking file and fails, naming the file, when it is older than the period.\n\nThreshold: 0 ranking files whose review date is more than {{REVIEW_MONTHS}} months old\n\nTool: jq 1.6 or later (strptime, mktime, now) in a shell step\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nmonths={{REVIEW_MONTHS}}\nstatus=0\nfor f in quality/*/ranking.json; do\n if ! jq -e --argjson m \"$months\" '(.reviewed | strptime(\"%Y-%m-%d\") | mktime) > (now - $m * 30.44 * 86400)' \"$f\" > /dev/null; then\n echo \"$f: last reviewed $(jq -r .reviewed \"$f\"), more than $months months ago; review and sign the ranking again\"\n status=1\n fi\ndone\nexit $status\n```",
|
|
703
|
+
"hubWhen": {
|
|
704
|
+
"REVIEW": [
|
|
705
|
+
"calendar"
|
|
706
|
+
]
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"id": "ff-review-release",
|
|
711
|
+
"type": "fitness-fn",
|
|
712
|
+
"label": "Ranking reviewed since the last major release",
|
|
713
|
+
"x": 1040,
|
|
714
|
+
"y": 260,
|
|
715
|
+
"characteristic": "other",
|
|
716
|
+
"scope": "atomic",
|
|
717
|
+
"cadence": "triggered",
|
|
718
|
+
"trigger": "release",
|
|
719
|
+
"invocation": "automated",
|
|
720
|
+
"description": "The release job, run on a pushed tag vN.0.0 with the full history checked out, finds the major tag just below it in version order, takes the date of its commit and fails when any ranking was last reviewed before it.\n\nThreshold: 0 ranking files reviewed before the date of the previous major release when a major release is tagged\n\nTool: git (tag --sort=v:refname, log --format=%cs), awk and jq in a step of the release workflow (actions/checkout with fetch-depth: 0)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\ntag=\"${GITHUB_REF_NAME:?run on a pushed tag vN.0.0}\"\nprevious=$(git tag --list 'v[0-9]*.0.0' --sort=v:refname | awk -v t=\"$tag\" '$0 == t { found = prev } { prev = $0 } END { print found }')\n[ -n \"$previous\" ] || { echo \"first major release: the ranking only has to exist\"; exit 0; }\nsince=$(git log -1 --format=%cs \"$previous\")\nstatus=0\nfor f in quality/*/ranking.json; do\n reviewed=$(jq -r .reviewed \"$f\")\n if [[ \"$reviewed\" < \"$since\" ]]; then\n echo \"$f: last reviewed $reviewed, before $previous ($since); review the ranking for $tag\"\n status=1\n fi\ndone\nexit $status\n```",
|
|
721
|
+
"hubWhen": {
|
|
722
|
+
"REVIEW": [
|
|
723
|
+
"release"
|
|
724
|
+
]
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"id": "ff-qas",
|
|
729
|
+
"type": "fitness-fn",
|
|
730
|
+
"label": "Scenarios complete and the leading quality measured",
|
|
731
|
+
"x": 1040,
|
|
732
|
+
"y": 390,
|
|
733
|
+
"characteristic": "other",
|
|
734
|
+
"scope": "atomic",
|
|
735
|
+
"cadence": "triggered",
|
|
736
|
+
"trigger": "pull-request",
|
|
737
|
+
"invocation": "automated",
|
|
738
|
+
"description": "A test reads the requirements of the architecture model whose label starts with a characteristic of the ranking and a colon, and checks each for the parts a script can see: the trigger (source and stimulus), a response measure with a number and a unit in the action, and a satisfies relation from the element it is about (the artifact). It then counts those of the leading quality.\n\nThreshold: Every requirement labelled \"<characteristic>: …\" has a trigger, a number with a unit in its action and an element that satisfies it; at least {{LEAD_SCENARIOS}} of them are for {{LEAD}}\n\nTool: Vitest with js-yaml over the Radical Markdown folder and its relations.json\n\n```ts\nimport { readdirSync, readFileSync } from 'node:fs'\nimport { JSON_SCHEMA, load } from 'js-yaml'\nimport { expect, it } from 'vitest'\n\nconst nodes = readdirSync('architecture/nodes', { recursive: true, encoding: 'utf8' }).filter((f) => f.endsWith('.md'))\n .map((f) => (load(readFileSync(`architecture/nodes/${f}`, 'utf8').split(/^---$/m)[1] ?? '', { schema: JSON_SCHEMA }) ?? {}) as Record<string, string>)\nconst relations: Array<{ relationType: string; targetId: string }> = JSON.parse(readFileSync('architecture/relations.json', 'utf8'))\nconst RANKED = ['functional suitability', 'performance efficiency', 'compatibility', 'interaction capability', 'reliability', 'security', 'maintainability', 'flexibility', 'safety', 'cost']\nconst quality = (label: string) => RANKED.find((q) => label.toLowerCase().startsWith(`${q}:`))\nconst scenarios = nodes.filter((n) => n.type === 'requirement' && quality(String(n.label)))\n\nit.each(scenarios.map((n) => ({ label: n.label, n })))('$label has its parts', ({ n }) => {\n expect(n.trigger, 'the source and the stimulus, in the trigger').toBeTruthy()\n expect(n.action, 'the response and its measure: a number with a unit').toMatch(/\\d+(?:[.,]\\d+)?\\s*(?:%|[a-zµ]+)/i)\n expect(relations.some((r) => r.relationType === 'satisfies' && r.targetId === n.id), 'the artifact: an element that satisfies it').toBe(true)\n})\n\nit('the leading quality has its scenarios', () => {\n expect(scenarios.filter((n) => quality(String(n.label)) === '{{LEAD}}').length).toBeGreaterThanOrEqual({{LEAD_SCENARIOS}})\n})\n```",
|
|
739
|
+
"hubWhen": {
|
|
740
|
+
"METHOD": [
|
|
741
|
+
"atam",
|
|
742
|
+
"scenarios"
|
|
743
|
+
]
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"id": "ff-utility-tree",
|
|
748
|
+
"type": "fitness-fn",
|
|
749
|
+
"label": "Utility tree complete",
|
|
750
|
+
"x": 1040,
|
|
751
|
+
"y": 520,
|
|
752
|
+
"characteristic": "other",
|
|
753
|
+
"scope": "atomic",
|
|
754
|
+
"cadence": "triggered",
|
|
755
|
+
"trigger": "pull-request",
|
|
756
|
+
"invocation": "automated",
|
|
757
|
+
"description": "A test reads each system's utility tree: characteristics at the top, concerns below, and lists of leaves with scenario (a requirement label), importance and risk, for example \"reliability: { availability: [ { scenario: 'Reliability: checkout survives the loss of a zone', importance: H, risk: M } ] }\". It fails on a missing file, a leaf naming no requirement, a rating outside H, M and L, or no H leaf for the leading quality.\n\nThreshold: For every system of the model, quality/<system>/utility-tree.yaml exists, each leaf names a requirement of the model and is rated H, M or L for importance and risk, and at least 1 leaf of importance H sits under {{LEAD}}\n\nTool: Vitest with js-yaml over the Radical Markdown folder and the utility-tree files\n\n```ts\nimport { readdirSync, readFileSync } from 'node:fs'\nimport { JSON_SCHEMA, load } from 'js-yaml'\nimport { expect, it } from 'vitest'\n\nconst nodes = readdirSync('architecture/nodes', { recursive: true, encoding: 'utf8' }).filter((f) => f.endsWith('.md'))\n .map((f) => (load(readFileSync(`architecture/nodes/${f}`, 'utf8').split(/^---$/m)[1] ?? '', { schema: JSON_SCHEMA }) ?? {}) as Record<string, string>)\nconst slug = (s: unknown) => String(s).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '')\nconst systems = nodes.filter((n) => n.type === 'system' && String(n.external) !== 'true').map((n) => ({ system: slug(n.label) }))\ntype Leaf = { scenario: string; importance: string; risk: string }\nconst requirements = new Set(nodes.filter((n) => n.type === 'requirement').map((n) => n.label))\n\nit.each(systems)('the utility tree of $system is complete', ({ system }) => {\n const tree = load(readFileSync(`quality/${system}/utility-tree.yaml`, 'utf8'), { schema: JSON_SCHEMA }) as Record<string, Record<string, Leaf[]>>\n const leaves = Object.entries(tree).flatMap(([quality, concerns]) => Object.values(concerns).flat().map((leaf) => ({ quality, ...leaf })))\n for (const leaf of leaves) {\n expect(requirements.has(leaf.scenario), `${leaf.scenario}: no such requirement in the model`).toBe(true)\n expect(`${leaf.importance},${leaf.risk}`, leaf.scenario).toMatch(/^[HML],[HML]$/)\n }\n expect(leaves.some((l) => l.quality.toLowerCase() === '{{LEAD}}' && l.importance === 'H'), 'an H leaf for the leading quality').toBe(true)\n})\n```",
|
|
758
|
+
"hubWhen": {
|
|
759
|
+
"METHOD": [
|
|
760
|
+
"atam"
|
|
761
|
+
]
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"id": "ff-anchors",
|
|
766
|
+
"type": "fitness-fn",
|
|
767
|
+
"label": "Top three qualities point to their numbers",
|
|
768
|
+
"x": 1040,
|
|
769
|
+
"y": 650,
|
|
770
|
+
"characteristic": "other",
|
|
771
|
+
"scope": "atomic",
|
|
772
|
+
"cadence": "triggered",
|
|
773
|
+
"trigger": "pull-request",
|
|
774
|
+
"invocation": "automated",
|
|
775
|
+
"description": "A test reads each ranking file's measuredBy (characteristic to requirement label, for example \"reliability\": \"Checkout stays available\") and looks the requirement up in the architecture model.\n\nThreshold: For every system, each of the first 3 entries of the ranking names in measuredBy a requirement of the model whose action holds a number with a unit\n\nTool: Vitest with js-yaml over the Radical Markdown folder\n\n```ts\nimport { readdirSync, readFileSync } from 'node:fs'\nimport { JSON_SCHEMA, load } from 'js-yaml'\nimport { expect, it } from 'vitest'\n\nconst nodes = readdirSync('architecture/nodes', { recursive: true, encoding: 'utf8' }).filter((f) => f.endsWith('.md'))\n .map((f) => (load(readFileSync(`architecture/nodes/${f}`, 'utf8').split(/^---$/m)[1] ?? '', { schema: JSON_SCHEMA }) ?? {}) as Record<string, string>)\nconst slug = (s: unknown) => String(s).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '')\nconst systems = nodes.filter((n) => n.type === 'system' && String(n.external) !== 'true').map((n) => ({ system: slug(n.label) }))\n\nit.each(systems)('the top three qualities of $system point to their numbers', ({ system }) => {\n const ranking = JSON.parse(readFileSync(`quality/${system}/ranking.json`, 'utf8'))\n for (const q of ranking.order.slice(0, 3) as string[]) {\n const requirement = nodes.find((n) => n.type === 'requirement' && n.label === ranking.measuredBy?.[q])\n expect(requirement, `${q}: measuredBy names no requirement of the model`).toBeDefined()\n expect(requirement!.action, `${q}: the requirement holds no number with a unit`).toMatch(/\\d+(?:[.,]\\d+)?\\s*(?:%|[a-zµ]+)/i)\n }\n})\n```",
|
|
776
|
+
"hubWhen": {
|
|
777
|
+
"METHOD": [
|
|
778
|
+
"ranking"
|
|
779
|
+
]
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"id": "ff-tradeoffs",
|
|
784
|
+
"type": "fitness-fn",
|
|
785
|
+
"label": "ADRs name their trade-offs",
|
|
786
|
+
"x": 1040,
|
|
787
|
+
"y": 780,
|
|
788
|
+
"characteristic": "other",
|
|
789
|
+
"scope": "atomic",
|
|
790
|
+
"cadence": "triggered",
|
|
791
|
+
"trigger": "pull-request",
|
|
792
|
+
"invocation": "automated",
|
|
793
|
+
"description": "A test reads the ADRs of the architecture model with status accepted and a date on or after the ranking's \"adopted\" date, finds the line \"Favours: … / At the cost of: …\" in their consequences and compares the names with the ranking. With several systems in one repository, run it once per ranking file (RANKING=quality/<system>/ranking.json).\n\nThreshold: 0 ADRs accepted since the ranking was adopted without a Favours line, naming an entry outside the ranking, or favouring a lower-ranked characteristic without an Exception line\n\nTool: Vitest with js-yaml over the Radical Markdown folder\n\n```ts\nimport { readdirSync, readFileSync } from 'node:fs'\nimport { JSON_SCHEMA, load } from 'js-yaml'\nimport { expect, it } from 'vitest'\n\nconst nodes = readdirSync('architecture/nodes', { recursive: true, encoding: 'utf8' }).filter((f) => f.endsWith('.md'))\n .map((f) => (load(readFileSync(`architecture/nodes/${f}`, 'utf8').split(/^---$/m)[1] ?? '', { schema: JSON_SCHEMA }) ?? {}) as Record<string, string>)\nconst ranking = JSON.parse(readFileSync(process.env.RANKING ?? `quality/${readdirSync('quality')[0]}/ranking.json`, 'utf8'))\nconst order: string[] = ranking.order.map((q: string) => q.toLowerCase())\nconst names = (s: string) => s.toLowerCase().split(/,\\s*/).map((q) => q.trim()).filter((q) => q !== 'none')\nconst adrs = nodes.filter((n) => n.type === 'adr' && n.status === 'accepted' && String(n.date ?? '') >= ranking.adopted)\n\nit.each(adrs.map((a) => ({ label: a.label, a })))('$label names what it trades', ({ a }) => {\n const line = String(a.consequences ?? '').match(/^[•*-]?\\s*Favours:\\s*(.+?)\\s*\\/\\s*At the cost of:\\s*(.+)$/m)\n expect(line, 'a line \"Favours: … / At the cost of: …\" in the consequences').toBeTruthy()\n const [favours, costs] = [names(line![1]), names(line![2])]\n expect([...favours, ...costs].filter((q) => !order.includes(q)), 'names outside the ranking').toEqual([])\n if (favours.some((f) => costs.some((c) => order.indexOf(f) > order.indexOf(c))))\n expect(a.consequences, 'favours a lower-ranked quality: add \"Exception: <who approved>, <date>\"').toMatch(/^[•*-]?\\s*Exception:\\s*\\S/m)\n})\n```",
|
|
794
|
+
"hubWhen": {
|
|
795
|
+
"TRADEOFFS": [
|
|
796
|
+
"line"
|
|
797
|
+
]
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
],
|
|
801
|
+
"relations": [
|
|
802
|
+
{
|
|
803
|
+
"id": "req-ranking--derives--need",
|
|
804
|
+
"sourceId": "req-ranking",
|
|
805
|
+
"targetId": "need",
|
|
806
|
+
"relationType": "derives"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"id": "req-signoff--derives--need",
|
|
810
|
+
"sourceId": "req-signoff",
|
|
811
|
+
"targetId": "need",
|
|
812
|
+
"relationType": "derives"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"id": "req-review-calendar--derives--need",
|
|
816
|
+
"sourceId": "req-review-calendar",
|
|
817
|
+
"targetId": "need",
|
|
818
|
+
"relationType": "derives"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"id": "req-review-release--derives--need",
|
|
822
|
+
"sourceId": "req-review-release",
|
|
823
|
+
"targetId": "need",
|
|
824
|
+
"relationType": "derives"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"id": "req-qas-form--derives--need",
|
|
828
|
+
"sourceId": "req-qas-form",
|
|
829
|
+
"targetId": "need",
|
|
830
|
+
"relationType": "derives"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"id": "req-lead-scenarios--derives--need",
|
|
834
|
+
"sourceId": "req-lead-scenarios",
|
|
835
|
+
"targetId": "need",
|
|
836
|
+
"relationType": "derives"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"id": "req-utility-tree--derives--need",
|
|
840
|
+
"sourceId": "req-utility-tree",
|
|
841
|
+
"targetId": "need",
|
|
842
|
+
"relationType": "derives"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"id": "req-workshop--derives--need",
|
|
846
|
+
"sourceId": "req-workshop",
|
|
847
|
+
"targetId": "need",
|
|
848
|
+
"relationType": "derives"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"id": "req-qas-review--derives--need",
|
|
852
|
+
"sourceId": "req-qas-review",
|
|
853
|
+
"targetId": "need",
|
|
854
|
+
"relationType": "derives"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"id": "req-anchors--derives--need",
|
|
858
|
+
"sourceId": "req-anchors",
|
|
859
|
+
"targetId": "need",
|
|
860
|
+
"relationType": "derives"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"id": "req-tradeoff-line--derives--need",
|
|
864
|
+
"sourceId": "req-tradeoff-line",
|
|
865
|
+
"targetId": "need",
|
|
866
|
+
"relationType": "derives"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"id": "req-tradeoff-exception--derives--need",
|
|
870
|
+
"sourceId": "req-tradeoff-exception",
|
|
871
|
+
"targetId": "need",
|
|
872
|
+
"relationType": "derives"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"id": "sc-ranking--verifies--req-ranking",
|
|
876
|
+
"sourceId": "sc-ranking",
|
|
877
|
+
"targetId": "req-ranking",
|
|
878
|
+
"relationType": "verifies"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"id": "sc-signoff--verifies--req-signoff",
|
|
882
|
+
"sourceId": "sc-signoff",
|
|
883
|
+
"targetId": "req-signoff",
|
|
884
|
+
"relationType": "verifies"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"id": "sc-review-calendar--verifies--req-review-calendar",
|
|
888
|
+
"sourceId": "sc-review-calendar",
|
|
889
|
+
"targetId": "req-review-calendar",
|
|
890
|
+
"relationType": "verifies"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"id": "sc-review-release--verifies--req-review-release",
|
|
894
|
+
"sourceId": "sc-review-release",
|
|
895
|
+
"targetId": "req-review-release",
|
|
896
|
+
"relationType": "verifies"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"id": "sc-qas-form--verifies--req-qas-form",
|
|
900
|
+
"sourceId": "sc-qas-form",
|
|
901
|
+
"targetId": "req-qas-form",
|
|
902
|
+
"relationType": "verifies"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"id": "sc-lead-scenarios--verifies--req-lead-scenarios",
|
|
906
|
+
"sourceId": "sc-lead-scenarios",
|
|
907
|
+
"targetId": "req-lead-scenarios",
|
|
908
|
+
"relationType": "verifies"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"id": "sc-utility-tree--verifies--req-utility-tree",
|
|
912
|
+
"sourceId": "sc-utility-tree",
|
|
913
|
+
"targetId": "req-utility-tree",
|
|
914
|
+
"relationType": "verifies"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"id": "sc-workshop--verifies--req-workshop",
|
|
918
|
+
"sourceId": "sc-workshop",
|
|
919
|
+
"targetId": "req-workshop",
|
|
920
|
+
"relationType": "verifies"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"id": "sc-qas-review--verifies--req-qas-review",
|
|
924
|
+
"sourceId": "sc-qas-review",
|
|
925
|
+
"targetId": "req-qas-review",
|
|
926
|
+
"relationType": "verifies"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"id": "sc-anchors--verifies--req-anchors",
|
|
930
|
+
"sourceId": "sc-anchors",
|
|
931
|
+
"targetId": "req-anchors",
|
|
932
|
+
"relationType": "verifies"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"id": "sc-tradeoff-line--verifies--req-tradeoff-line",
|
|
936
|
+
"sourceId": "sc-tradeoff-line",
|
|
937
|
+
"targetId": "req-tradeoff-line",
|
|
938
|
+
"relationType": "verifies"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"id": "sc-tradeoff-exception--verifies--req-tradeoff-exception",
|
|
942
|
+
"sourceId": "sc-tradeoff-exception",
|
|
943
|
+
"targetId": "req-tradeoff-exception",
|
|
944
|
+
"relationType": "verifies"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"id": "ff-ranking--implements--adr-lead-reliability",
|
|
948
|
+
"sourceId": "ff-ranking",
|
|
949
|
+
"targetId": "adr-lead-reliability",
|
|
950
|
+
"relationType": "implements"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"id": "ff-ranking--implements--adr-lead-maintainability",
|
|
954
|
+
"sourceId": "ff-ranking",
|
|
955
|
+
"targetId": "adr-lead-maintainability",
|
|
956
|
+
"relationType": "implements"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"id": "ff-ranking--implements--adr-lead-security",
|
|
960
|
+
"sourceId": "ff-ranking",
|
|
961
|
+
"targetId": "adr-lead-security",
|
|
962
|
+
"relationType": "implements"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"id": "ff-ranking--implements--adr-lead-performance",
|
|
966
|
+
"sourceId": "ff-ranking",
|
|
967
|
+
"targetId": "adr-lead-performance",
|
|
968
|
+
"relationType": "implements"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"id": "ff-ranking--implements--adr-lead-cost",
|
|
972
|
+
"sourceId": "ff-ranking",
|
|
973
|
+
"targetId": "adr-lead-cost",
|
|
974
|
+
"relationType": "implements"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"id": "ff-review-calendar--implements--adr-lead-reliability",
|
|
978
|
+
"sourceId": "ff-review-calendar",
|
|
979
|
+
"targetId": "adr-lead-reliability",
|
|
980
|
+
"relationType": "implements"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"id": "ff-review-calendar--implements--adr-lead-maintainability",
|
|
984
|
+
"sourceId": "ff-review-calendar",
|
|
985
|
+
"targetId": "adr-lead-maintainability",
|
|
986
|
+
"relationType": "implements"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"id": "ff-review-calendar--implements--adr-lead-security",
|
|
990
|
+
"sourceId": "ff-review-calendar",
|
|
991
|
+
"targetId": "adr-lead-security",
|
|
992
|
+
"relationType": "implements"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"id": "ff-review-calendar--implements--adr-lead-performance",
|
|
996
|
+
"sourceId": "ff-review-calendar",
|
|
997
|
+
"targetId": "adr-lead-performance",
|
|
998
|
+
"relationType": "implements"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"id": "ff-review-calendar--implements--adr-lead-cost",
|
|
1002
|
+
"sourceId": "ff-review-calendar",
|
|
1003
|
+
"targetId": "adr-lead-cost",
|
|
1004
|
+
"relationType": "implements"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"id": "ff-review-release--implements--adr-lead-reliability",
|
|
1008
|
+
"sourceId": "ff-review-release",
|
|
1009
|
+
"targetId": "adr-lead-reliability",
|
|
1010
|
+
"relationType": "implements"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"id": "ff-review-release--implements--adr-lead-maintainability",
|
|
1014
|
+
"sourceId": "ff-review-release",
|
|
1015
|
+
"targetId": "adr-lead-maintainability",
|
|
1016
|
+
"relationType": "implements"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"id": "ff-review-release--implements--adr-lead-security",
|
|
1020
|
+
"sourceId": "ff-review-release",
|
|
1021
|
+
"targetId": "adr-lead-security",
|
|
1022
|
+
"relationType": "implements"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"id": "ff-review-release--implements--adr-lead-performance",
|
|
1026
|
+
"sourceId": "ff-review-release",
|
|
1027
|
+
"targetId": "adr-lead-performance",
|
|
1028
|
+
"relationType": "implements"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"id": "ff-review-release--implements--adr-lead-cost",
|
|
1032
|
+
"sourceId": "ff-review-release",
|
|
1033
|
+
"targetId": "adr-lead-cost",
|
|
1034
|
+
"relationType": "implements"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"id": "ff-qas--implements--adr-utility-tree",
|
|
1038
|
+
"sourceId": "ff-qas",
|
|
1039
|
+
"targetId": "adr-utility-tree",
|
|
1040
|
+
"relationType": "implements"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"id": "ff-qas--implements--adr-qas",
|
|
1044
|
+
"sourceId": "ff-qas",
|
|
1045
|
+
"targetId": "adr-qas",
|
|
1046
|
+
"relationType": "implements"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"id": "ff-utility-tree--implements--adr-utility-tree",
|
|
1050
|
+
"sourceId": "ff-utility-tree",
|
|
1051
|
+
"targetId": "adr-utility-tree",
|
|
1052
|
+
"relationType": "implements"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"id": "ff-anchors--implements--adr-ranking-only",
|
|
1056
|
+
"sourceId": "ff-anchors",
|
|
1057
|
+
"targetId": "adr-ranking-only",
|
|
1058
|
+
"relationType": "implements"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"id": "ff-tradeoffs--implements--adr-lead-reliability",
|
|
1062
|
+
"sourceId": "ff-tradeoffs",
|
|
1063
|
+
"targetId": "adr-lead-reliability",
|
|
1064
|
+
"relationType": "implements"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"id": "ff-tradeoffs--implements--adr-lead-maintainability",
|
|
1068
|
+
"sourceId": "ff-tradeoffs",
|
|
1069
|
+
"targetId": "adr-lead-maintainability",
|
|
1070
|
+
"relationType": "implements"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"id": "ff-tradeoffs--implements--adr-lead-security",
|
|
1074
|
+
"sourceId": "ff-tradeoffs",
|
|
1075
|
+
"targetId": "adr-lead-security",
|
|
1076
|
+
"relationType": "implements"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"id": "ff-tradeoffs--implements--adr-lead-performance",
|
|
1080
|
+
"sourceId": "ff-tradeoffs",
|
|
1081
|
+
"targetId": "adr-lead-performance",
|
|
1082
|
+
"relationType": "implements"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"id": "ff-tradeoffs--implements--adr-lead-cost",
|
|
1086
|
+
"sourceId": "ff-tradeoffs",
|
|
1087
|
+
"targetId": "adr-lead-cost",
|
|
1088
|
+
"relationType": "implements"
|
|
1089
|
+
}
|
|
1090
|
+
]
|
|
1091
|
+
}
|