@radicaltools/mcp 0.6.0 → 0.6.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.
Files changed (66) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-5N36X7LP.js → chunk-DQYB4GAU.js} +13 -6
  3. package/dist/{chunk-COZU3R23.js → chunk-U5QA6HBS.js} +1 -1
  4. package/dist/{dist-4A76JBX4.js → dist-MPDDP2CV.js} +2 -2
  5. package/dist/{elkLayout-EA73VLB2.js → elkLayout-SUGCAZZ5.js} +2 -2
  6. package/dist/hub-catalogue/concern/concern-accessibility.radical +85 -1
  7. package/dist/hub-catalogue/concern/concern-api-collections.radical +78 -1
  8. package/dist/hub-catalogue/concern/concern-api-errors.radical +78 -1
  9. package/dist/hub-catalogue/concern/concern-api-evolution.radical +78 -1
  10. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +121 -3
  11. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +78 -1
  12. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +78 -1
  13. package/dist/hub-catalogue/concern/concern-architecture-style.radical +83 -7
  14. package/dist/hub-catalogue/concern/concern-audit-trail.radical +77 -1
  15. package/dist/hub-catalogue/concern/concern-authentication.radical +178 -8
  16. package/dist/hub-catalogue/concern/concern-authorization.radical +133 -7
  17. package/dist/hub-catalogue/concern/concern-availability.radical +156 -6
  18. package/dist/hub-catalogue/concern/concern-backend-stack.radical +71 -8
  19. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +136 -6
  20. package/dist/hub-catalogue/concern/concern-caching.radical +73 -1
  21. package/dist/hub-catalogue/concern/concern-capacity.radical +124 -5
  22. package/dist/hub-catalogue/concern/concern-ci-cd-pipeline.radical +154 -15
  23. package/dist/hub-catalogue/concern/concern-code-documentation.radical +131 -13
  24. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +116 -7
  25. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +174 -13
  26. package/dist/hub-catalogue/concern/concern-code-style.radical +148 -16
  27. package/dist/hub-catalogue/concern/concern-communication-style.radical +94 -7
  28. package/dist/hub-catalogue/concern/concern-data-classification.radical +77 -1
  29. package/dist/hub-catalogue/concern/concern-data-consistency.radical +87 -5
  30. package/dist/hub-catalogue/concern/concern-data-store.radical +87 -5
  31. package/dist/hub-catalogue/concern/concern-decomposition.radical +78 -1
  32. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +150 -11
  33. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +130 -5
  34. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +127 -10
  35. package/dist/hub-catalogue/concern/concern-deployment.radical +113 -9
  36. package/dist/hub-catalogue/concern/concern-encryption.radical +146 -5
  37. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +118 -12
  38. package/dist/hub-catalogue/concern/concern-eu-dora.radical +69 -1
  39. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +148 -9
  40. package/dist/hub-catalogue/concern/concern-incident-management.radical +122 -1
  41. package/dist/hub-catalogue/concern/concern-infrastructure.radical +54 -1
  42. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +110 -5
  43. package/dist/hub-catalogue/concern/concern-messaging.radical +89 -2
  44. package/dist/hub-catalogue/concern/concern-mobile-performance.radical +67 -1
  45. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +92 -5
  46. package/dist/hub-catalogue/concern/concern-observability.radical +105 -1
  47. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +140 -5
  48. package/dist/hub-catalogue/concern/concern-personal-data.radical +206 -7
  49. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +104 -12
  50. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +110 -1
  51. package/dist/hub-catalogue/concern/concern-release-versioning.radical +99 -7
  52. package/dist/hub-catalogue/concern/concern-retention.radical +130 -9
  53. package/dist/hub-catalogue/concern/concern-secrets.radical +196 -12
  54. package/dist/hub-catalogue/concern/concern-secure-coding.radical +122 -1
  55. package/dist/hub-catalogue/concern/concern-secure-development.radical +118 -1
  56. package/dist/hub-catalogue/concern/concern-security-detection.radical +124 -1
  57. package/dist/hub-catalogue/concern/concern-supply-chain.radical +116 -1
  58. package/dist/hub-catalogue/concern/concern-technical-debt.radical +162 -19
  59. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +152 -18
  60. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +111 -1
  61. package/dist/hub-catalogue/concern/concern-test-strategy.radical +83 -7
  62. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +120 -1
  63. package/dist/hub-catalogue/concern/concern-usability.radical +84 -5
  64. package/dist/index.js +1937 -1123
  65. package/dist/{pdfjs-MDC5AZDP.js → pdfjs-PK44HJZP.js} +1 -1
  66. package/package.json +1 -1
@@ -17,7 +17,60 @@
17
17
  "id": "technology-lifecycle",
18
18
  "trigger": "LIST NODES WHERE type = \"system\" AND external != true",
19
19
  "why": "these systems are built on technologies the organisation chooses, tries and retires, so how a technology moves between rings and what Hold means for them has to be decided.",
20
- "group": "technology"
20
+ "group": "technology",
21
+ "scope": {
22
+ "group": "technology",
23
+ "questions": [
24
+ {
25
+ "key": "STANDARDS",
26
+ "label": "Does the organisation keep technology standards?",
27
+ "default": "no",
28
+ "hint": "A tech radar records which technologies to adopt, try, hold or retire.",
29
+ "options": [
30
+ {
31
+ "value": "no",
32
+ "label": "no",
33
+ "description": "Each system picks its own technologies."
34
+ },
35
+ {
36
+ "value": "yes",
37
+ "label": "yes",
38
+ "description": "The organisation keeps technology standards or a tech radar that systems follow."
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ "key": "TEAMS",
44
+ "label": "How many teams choose technology?",
45
+ "default": "one",
46
+ "hint": "Several teams choosing alone end up with many stacks to keep up.",
47
+ "options": [
48
+ {
49
+ "value": "one",
50
+ "label": "one team",
51
+ "description": "One team chooses for the whole system."
52
+ },
53
+ {
54
+ "value": "several",
55
+ "label": "several teams",
56
+ "description": "Several teams each choose for their parts."
57
+ }
58
+ ]
59
+ }
60
+ ],
61
+ "when": [
62
+ {
63
+ "STANDARDS": [
64
+ "yes"
65
+ ]
66
+ },
67
+ {
68
+ "TEAMS": [
69
+ "several"
70
+ ]
71
+ }
72
+ ]
73
+ }
21
74
  },
22
75
  "sources": [
23
76
  {
@@ -91,7 +144,12 @@
91
144
  "label": "no new use, existing use kept",
92
145
  "description": "Nothing new may use it; the systems that use it now keep it until they are rewritten or retired, and are listed so the list can only shrink. Pick it when the technology still works and is supported, and a forced migration would cost more than it saves."
93
146
  }
94
- ]
147
+ ],
148
+ "scopeWhen": {
149
+ "TEAMS": [
150
+ "several"
151
+ ]
152
+ }
95
153
  },
96
154
  {
97
155
  "key": "TRIAL",
@@ -110,7 +168,12 @@
110
168
  "label": "any team's trial in its own systems",
111
169
  "description": "Any team may try a technology in any of its systems; the trial is recorded with its systems, owner and start date, and the radar review asks for a decision, with no time box. Pick it when teams are few and experienced and a time box would only be paperwork."
112
170
  }
113
- ]
171
+ ],
172
+ "scopeWhen": {
173
+ "TEAMS": [
174
+ "several"
175
+ ]
176
+ }
114
177
  },
115
178
  {
116
179
  "key": "PUBLISH",
@@ -129,7 +192,12 @@
129
192
  "label": "the generated file in the repository",
130
193
  "description": "The generated radar file is the radar: read in the repository and in the pull requests that change it, until Studio's radar view, which draws the same ADRs, arrives. Pick it when only engineers read the radar, or you would rather not run one more web app."
131
194
  }
132
- ]
195
+ ],
196
+ "scopeWhen": {
197
+ "TEAMS": [
198
+ "several"
199
+ ]
200
+ }
133
201
  },
134
202
  {
135
203
  "key": "REVIEW_MONTHS",
@@ -219,7 +287,13 @@
219
287
  "y": 390,
220
288
  "ears_type": "ubiquitous",
221
289
  "action": "have the whole radar reviewed at least every {{REVIEW_MONTHS}} months, every entry kept, moved or removed, and the date of the review recorded as reviewed in radar/overrides.json",
222
- "rationale": "Technology changes fast enough that a radar should be refreshed at least once a year, and twice is better (Ford, Build your own Technology Radar); the Thoughtworks radar itself is published twice a year (FAQ)."
290
+ "rationale": "Technology changes fast enough that a radar should be refreshed at least once a year, and twice is better (Ford, Build your own Technology Radar); the Thoughtworks radar itself is published twice a year (FAQ).",
291
+ "hubWhen": {
292
+ "PUBLISH": [
293
+ "byor",
294
+ "file"
295
+ ]
296
+ }
223
297
  },
224
298
  {
225
299
  "id": "req-ring-approval",
@@ -278,7 +352,13 @@
278
352
  "ears_type": "unwanted-behaviour",
279
353
  "unwanted_condition": "a package manifest, lockfile or container image file of the repository uses a package of a technology on Hold and is not among that technology's known uses in radar/overrides.json",
280
354
  "action": "fail the pull request, naming the file, the package, the technology and what to use instead",
281
- "rationale": "Hold means \"don't start anything new with this technology\" (Ford, Build your own Technology Radar), \"not recommended to be used for new projects\" (Zalando Tech Radar); without a check the next pull request adds it again."
355
+ "rationale": "Hold means \"don't start anything new with this technology\" (Ford, Build your own Technology Radar), \"not recommended to be used for new projects\" (Zalando Tech Radar); without a check the next pull request adds it again.",
356
+ "hubWhen": {
357
+ "HOLD": [
358
+ "migrate",
359
+ "freeze"
360
+ ]
361
+ }
282
362
  },
283
363
  {
284
364
  "id": "req-hold-instead",
@@ -288,7 +368,13 @@
288
368
  "y": 1040,
289
369
  "ears_type": "ubiquitous",
290
370
  "action": "name, for every technology on Hold, what to use in its place and the package names under which it appears in manifests, lockfiles and container images, in its entry of radar/overrides.json",
291
- "rationale": "A Hold that says only no leaves every team to find its own way out; naming the successor, as a superseding ADR does (Nygard, Documenting Architecture Decisions), gives the migrations one direction, and the package names are what the no-new-use check looks for."
371
+ "rationale": "A Hold that says only no leaves every team to find its own way out; naming the successor, as a superseding ADR does (Nygard, Documenting Architecture Decisions), gives the migrations one direction, and the package names are what the no-new-use check looks for.",
372
+ "hubWhen": {
373
+ "HOLD": [
374
+ "migrate",
375
+ "freeze"
376
+ ]
377
+ }
292
378
  },
293
379
  {
294
380
  "id": "req-hold-migrated",
@@ -314,7 +400,13 @@
314
400
  "y": 1300,
315
401
  "ears_type": "ubiquitous",
316
402
  "action": "record every technology in Trial in radar/overrides.json with the systems trying it, an owner and the date the trial started, on an ADR whose status is still proposed",
317
- "rationale": "The ADR statuses cannot tell Trial from Assess, so Trial is recorded beside them; a technology moves into Trial only once it is used in production somewhere (Thoughtworks Technology Radar FAQ), so the record names where."
403
+ "rationale": "The ADR statuses cannot tell Trial from Assess, so Trial is recorded beside them; a technology moves into Trial only once it is used in production somewhere (Thoughtworks Technology Radar FAQ), so the record names where.",
404
+ "hubWhen": {
405
+ "TRIAL": [
406
+ "timebox",
407
+ "open"
408
+ ]
409
+ }
318
410
  },
319
411
  {
320
412
  "id": "req-trial-timebox",
@@ -385,7 +477,13 @@
385
477
  "y": 390,
386
478
  "given": "radar/overrides.json whose reviewed date is more than {{REVIEW_MONTHS}} months old",
387
479
  "when": "the weekly radar check runs",
388
- "then": "it fails, naming the date of the last review and the date the next was due"
480
+ "then": "it fails, naming the date of the last review and the date the next was due",
481
+ "hubWhen": {
482
+ "PUBLISH": [
483
+ "byor",
484
+ "file"
485
+ ]
486
+ }
389
487
  },
390
488
  {
391
489
  "id": "sc-ring-approval",
@@ -441,7 +539,13 @@
441
539
  "y": 910,
442
540
  "given": "a technology on Hold whose known uses list one manifest",
443
541
  "when": "a pull request adds its package to another package.json",
444
- "then": "the check fails naming that package.json, the package and the technology to use instead"
542
+ "then": "the check fails naming that package.json, the package and the technology to use instead",
543
+ "hubWhen": {
544
+ "HOLD": [
545
+ "migrate",
546
+ "freeze"
547
+ ]
548
+ }
445
549
  },
446
550
  {
447
551
  "id": "sc-hold-instead",
@@ -451,7 +555,13 @@
451
555
  "y": 1040,
452
556
  "given": "an ADR deprecated today whose entry in radar/overrides.json names no packages or nothing to use instead",
453
557
  "when": "the radar workflow runs",
454
- "then": "it fails and names the technology"
558
+ "then": "it fails and names the technology",
559
+ "hubWhen": {
560
+ "HOLD": [
561
+ "migrate",
562
+ "freeze"
563
+ ]
564
+ }
455
565
  },
456
566
  {
457
567
  "id": "sc-hold-migrated",
@@ -476,7 +586,13 @@
476
586
  "y": 1300,
477
587
  "given": "an entry with \"ring\": \"Trial\" but no owner, and another on an ADR already accepted",
478
588
  "when": "the radar workflow runs",
479
- "then": "it fails and names both technologies"
589
+ "then": "it fails and names both technologies",
590
+ "hubWhen": {
591
+ "TRIAL": [
592
+ "timebox",
593
+ "open"
594
+ ]
595
+ }
480
596
  },
481
597
  {
482
598
  "id": "sc-trial-timebox",
@@ -518,7 +634,7 @@
518
634
  "status": "accepted",
519
635
  "date": "",
520
636
  "context": "The organisation builds on many technologies, and each was chosen in an ADR of one system or another; a tech radar puts them in rings (Adopt, Trial, Assess, Hold) so that the next team knows what is safe to pick, what is being tried, and what to stay away from. The forces: a radar kept by hand next to the ADRs says the same thing twice and drifts from them within months; a ring move decided by nobody in particular is not believed, and one decided by a committee that seldom meets is not waited for; Trial without an end becomes a second technology nobody chose; Hold without a check is a wish, because the next pull request adds the library again; and a migration off a technology on Hold competes with features for every sprint. The ADR statuses already say most of it: accepted is Adopt, proposed is Assess, deprecated is Hold, superseded is off the radar. Which version of a chosen runtime, framework or engine is still supported, and when it is upgraded, is decided in the Backend stack, Frontend stack, Data store and Infrastructure packs; dependency updates in the Dependency hygiene pack; known vulnerabilities and provenance in the Software supply chain pack.",
521
- "decision": "The radar is drawn from the ADRs of the architecture model, not kept beside them: an ADR whose concern is a Tech Radar pack (Backend stack, Frontend stack, Data store, Infrastructure), or one that radar/overrides.json gives a technology name, is one entry. Its ring comes from its status (accepted: Adopt, proposed: Assess, deprecated: Hold; superseded: off the radar, its successor is on it), its quadrant from its pack (the two stacks: Languages & Frameworks; data store and infrastructure: Platforms; a tool named from another pack: Tools unless the overrides say otherwise), and its name from its label. Where two ADRs name one technology, the most recent decides. radar/overrides.json, a small file in the repository that names ADRs by label, holds what the statuses cannot say: Trial, a short technology name, the package names of a technology, its known uses once on Hold, the approvers and the date of the last review. scripts/radar.mjs writes radar/radar.json from both on every pull request, and nobody edits that file by hand; Studio's radar view will draw the same ADRs once it ships. A technology board of {{BOARD_MEMBERS}} decides every ring move. It meets at least every {{REVIEW_MONTHS}} months and walks through the whole radar, recording the date of the meeting as reviewed. Between meetings a ring move (the ADR's status changed, or its entry in the overrides) is a pull request, labelled radar by the check that sees it, which waits for the next meeting and is merged with at least {{RING_APPROVALS}} approvals from the board members listed as approvers in radar/overrides.json. Hold: {{HOLD}}. Trial: {{TRIAL}}. Where it is read: {{PUBLISH}}.",
637
+ "decision": "The radar is drawn from the ADRs of the architecture model, not kept beside them: an ADR whose concern is a Tech Radar pack (Backend stack, Frontend stack, Data store, Infrastructure), or one that radar/overrides.json gives a technology name, is one entry. Its ring comes from its status (accepted: Adopt, proposed: Assess, deprecated: Hold; superseded: off the radar, its successor is on it), its quadrant from its pack (the two stacks: Languages & Frameworks; data store and infrastructure: Platforms; a tool named from another pack: Tools unless the overrides say otherwise), and its name from its label. Where two ADRs name one technology, the most recent decides. radar/overrides.json, a small file in the repository that names ADRs by label, holds what the statuses cannot say: Trial, a short technology name, the package names of a technology, its known uses once on Hold, the approvers and the date of the last review. scripts/radar.mjs writes radar/radar.json from both on every pull request, and nobody edits that file by hand; Studio's radar view will draw the same ADRs once it ships. A technology board of {{BOARD_MEMBERS}} decides every ring move. It meets at least every {{REVIEW_MONTHS}} months and walks through the whole radar, recording the date of the meeting as reviewed. Between meetings a ring move (the ADR's status changed, or its entry in the overrides) is a pull request, labelled radar by the check that sees it, which waits for the next meeting and is merged with at least {{RING_APPROVALS}} approvals from the board members listed as approvers in radar/overrides.json. ",
522
638
  "consequences": "• Ring moves are weighed across teams by people who see the whole estate, as the Thoughtworks Technology Advisory Board does.\n• A proposal can wait up to {{REVIEW_MONTHS}} months for a meeting; urgent Holds (a security record, an abandoned project) need the board to approve between meetings.\n• The board is a handful of people's time, twice a year at the least; its decisions are only as good as the proposals teams bring.\n• Every move is still a pull request, so the radar's history is the repository's.",
523
639
  "alternatives": "1. Each team for its own systems: fast, but nobody weighs one team's choice against the others.\n2. Pull requests approved by named reviewers without meetings: quicker answers, but no moment where the whole radar is looked at together.\n3. A radar kept on slides by the board: familiar, and out of step with the ADRs within months.",
524
640
  "hubWhen": {
@@ -537,7 +653,7 @@
537
653
  "status": "accepted",
538
654
  "date": "",
539
655
  "context": "The organisation builds on many technologies, and each was chosen in an ADR of one system or another; a tech radar puts them in rings (Adopt, Trial, Assess, Hold) so that the next team knows what is safe to pick, what is being tried, and what to stay away from. The forces: a radar kept by hand next to the ADRs says the same thing twice and drifts from them within months; a ring move decided by nobody in particular is not believed, and one decided by a committee that seldom meets is not waited for; Trial without an end becomes a second technology nobody chose; Hold without a check is a wish, because the next pull request adds the library again; and a migration off a technology on Hold competes with features for every sprint. The ADR statuses already say most of it: accepted is Adopt, proposed is Assess, deprecated is Hold, superseded is off the radar. Which version of a chosen runtime, framework or engine is still supported, and when it is upgraded, is decided in the Backend stack, Frontend stack, Data store and Infrastructure packs; dependency updates in the Dependency hygiene pack; known vulnerabilities and provenance in the Software supply chain pack.",
540
- "decision": "The radar is drawn from the ADRs of the architecture model, not kept beside them: an ADR whose concern is a Tech Radar pack (Backend stack, Frontend stack, Data store, Infrastructure), or one that radar/overrides.json gives a technology name, is one entry. Its ring comes from its status (accepted: Adopt, proposed: Assess, deprecated: Hold; superseded: off the radar, its successor is on it), its quadrant from its pack (the two stacks: Languages & Frameworks; data store and infrastructure: Platforms; a tool named from another pack: Tools unless the overrides say otherwise), and its name from its label. Where two ADRs name one technology, the most recent decides. radar/overrides.json, a small file in the repository that names ADRs by label, holds what the statuses cannot say: Trial, a short technology name, the package names of a technology, its known uses once on Hold, the approvers and the date of the last review. scripts/radar.mjs writes radar/radar.json from both on every pull request, and nobody edits that file by hand; Studio's radar view will draw the same ADRs once it ships. Each team moves the technologies of the systems it owns by changing the status of the ADRs that constrain them; CODEOWNERS gives every ADR file under architecture/nodes to the owning team, and the main branch requires a code owner's review. The organisation's radar is the union, published as it comes out: where two teams' ADRs put one technology in different rings, the most recent ADR sets its ring. At least every {{REVIEW_MONTHS}} months the teams' tech leads walk through the radar together, settle conflicts and record the date as reviewed. Hold: {{HOLD}}. Trial: {{TRIAL}}. Where it is read: {{PUBLISH}}.",
656
+ "decision": "The radar is drawn from the ADRs of the architecture model, not kept beside them: an ADR whose concern is a Tech Radar pack (Backend stack, Frontend stack, Data store, Infrastructure), or one that radar/overrides.json gives a technology name, is one entry. Its ring comes from its status (accepted: Adopt, proposed: Assess, deprecated: Hold; superseded: off the radar, its successor is on it), its quadrant from its pack (the two stacks: Languages & Frameworks; data store and infrastructure: Platforms; a tool named from another pack: Tools unless the overrides say otherwise), and its name from its label. Where two ADRs name one technology, the most recent decides. radar/overrides.json, a small file in the repository that names ADRs by label, holds what the statuses cannot say: Trial, a short technology name, the package names of a technology, its known uses once on Hold, the approvers and the date of the last review. scripts/radar.mjs writes radar/radar.json from both on every pull request, and nobody edits that file by hand; Studio's radar view will draw the same ADRs once it ships. Each team moves the technologies of the systems it owns by changing the status of the ADRs that constrain them; CODEOWNERS gives every ADR file under architecture/nodes to the owning team, and the main branch requires a code owner's review. The organisation's radar is the union, published as it comes out: where two teams' ADRs put one technology in different rings, the most recent ADR sets its ring. At least every {{REVIEW_MONTHS}} months the teams' tech leads walk through the radar together, settle conflicts and record the date as reviewed. ",
541
657
  "consequences": "• No approval outside the team: a ring move is as fast as a pull request.\n• The radar shows what teams decided, not what the organisation recommends; two teams can pull in opposite directions until the review settles it.\n• A technology one team puts on Hold stays open to another; Hold is binding only within the systems of the team that set it.\n• Every ADR needs an owning team in CODEOWNERS, kept current as teams change.",
542
658
  "alternatives": "1. A technology board: decisions weighed across teams, at the price of waiting for meetings.\n2. Pull requests approved by named reviewers: a light central check without meetings.",
543
659
  "hubWhen": {
@@ -556,7 +672,7 @@
556
672
  "status": "accepted",
557
673
  "date": "",
558
674
  "context": "The organisation builds on many technologies, and each was chosen in an ADR of one system or another; a tech radar puts them in rings (Adopt, Trial, Assess, Hold) so that the next team knows what is safe to pick, what is being tried, and what to stay away from. The forces: a radar kept by hand next to the ADRs says the same thing twice and drifts from them within months; a ring move decided by nobody in particular is not believed, and one decided by a committee that seldom meets is not waited for; Trial without an end becomes a second technology nobody chose; Hold without a check is a wish, because the next pull request adds the library again; and a migration off a technology on Hold competes with features for every sprint. The ADR statuses already say most of it: accepted is Adopt, proposed is Assess, deprecated is Hold, superseded is off the radar. Which version of a chosen runtime, framework or engine is still supported, and when it is upgraded, is decided in the Backend stack, Frontend stack, Data store and Infrastructure packs; dependency updates in the Dependency hygiene pack; known vulnerabilities and provenance in the Software supply chain pack.",
559
- "decision": "The radar is drawn from the ADRs of the architecture model, not kept beside them: an ADR whose concern is a Tech Radar pack (Backend stack, Frontend stack, Data store, Infrastructure), or one that radar/overrides.json gives a technology name, is one entry. Its ring comes from its status (accepted: Adopt, proposed: Assess, deprecated: Hold; superseded: off the radar, its successor is on it), its quadrant from its pack (the two stacks: Languages & Frameworks; data store and infrastructure: Platforms; a tool named from another pack: Tools unless the overrides say otherwise), and its name from its label. Where two ADRs name one technology, the most recent decides. radar/overrides.json, a small file in the repository that names ADRs by label, holds what the statuses cannot say: Trial, a short technology name, the package names of a technology, its known uses once on Hold, the approvers and the date of the last review. scripts/radar.mjs writes radar/radar.json from both on every pull request, and nobody edits that file by hand; Studio's radar view will draw the same ADRs once it ships. Anyone may propose a ring move as a pull request: the ADR's status changed, or its entry in the overrides, with the reasons in the ADR's context and alternatives. The check that sees a move labels the pull request radar; it is merged with at least {{RING_APPROVALS}} approvals from the reviewers listed as approvers in radar/overrides.json (as the main branch has them), and it is answered, merged or closed, within {{RFC_DAYS}} days. At least every {{REVIEW_MONTHS}} months the approvers walk through the whole radar and record the date as reviewed. Hold: {{HOLD}}. Trial: {{TRIAL}}. Where it is read: {{PUBLISH}}.",
675
+ "decision": "The radar is drawn from the ADRs of the architecture model, not kept beside them: an ADR whose concern is a Tech Radar pack (Backend stack, Frontend stack, Data store, Infrastructure), or one that radar/overrides.json gives a technology name, is one entry. Its ring comes from its status (accepted: Adopt, proposed: Assess, deprecated: Hold; superseded: off the radar, its successor is on it), its quadrant from its pack (the two stacks: Languages & Frameworks; data store and infrastructure: Platforms; a tool named from another pack: Tools unless the overrides say otherwise), and its name from its label. Where two ADRs name one technology, the most recent decides. radar/overrides.json, a small file in the repository that names ADRs by label, holds what the statuses cannot say: Trial, a short technology name, the package names of a technology, its known uses once on Hold, the approvers and the date of the last review. scripts/radar.mjs writes radar/radar.json from both on every pull request, and nobody edits that file by hand; Studio's radar view will draw the same ADRs once it ships. Anyone may propose a ring move as a pull request: the ADR's status changed, or its entry in the overrides, with the reasons in the ADR's context and alternatives. The check that sees a move labels the pull request radar; it is merged with at least {{RING_APPROVALS}} approvals from the reviewers listed as approvers in radar/overrides.json (as the main branch has them), and it is answered, merged or closed, within {{RFC_DAYS}} days. At least every {{REVIEW_MONTHS}} months the approvers walk through the whole radar and record the date as reviewed. ",
560
676
  "consequences": "• Teams propose without waiting for a meeting, and every proposal has a written reason and an answer within {{RFC_DAYS}} days.\n• The approvers carry a steady trickle of reviews instead of two long meetings; the list in the overrides must name people who actually answer.\n• Proposals are judged one at a time; the periodic walk through the whole radar is what catches two moves that pull against each other.\n• A pull request cannot add its own approver: the list is read from the main branch.",
561
677
  "alternatives": "1. A technology board meeting on a cadence: the whole radar weighed at once, but proposals wait for the meeting.\n2. Each team for its own systems: no approval at all, and no common recommendation.",
562
678
  "hubWhen": {
@@ -678,7 +794,13 @@
678
794
  "cadence": "triggered",
679
795
  "trigger": "pull-request",
680
796
  "invocation": "automated",
681
- "description": "A Node script lists the repository's manifests, lockfiles and Dockerfiles with git ls-files, and for each technology in Hold searches them for the package names its entry in radar/overrides.json gives (as whole names, so moment does not match moment-timezone or @types/moment, and a transitive use is found in the lockfile); a file that uses one and is not among the entry's uses fails the check. Package names should be distinctive: a runtime such as node is better held by the version policy of its stack pack than by a name search.\n\nThreshold: 0 package manifests, lockfiles or container image files using a package of a technology on Hold outside its known uses; 0 technologies on Hold without packages and a replacement in the overrides\n\nTool: Node.js 20 or later (a step of the radar workflow)\n\n```js\n// scripts/radar-hold.mjs: a step of the radar workflow, on every pull request\nimport { execFileSync } from 'node:child_process'\nimport { readFileSync } from 'node:fs'\n\nconst radar = JSON.parse(readFileSync('radar/radar.json', 'utf8'))\nconst { entries = {} } = JSON.parse(readFileSync('radar/overrides.json', 'utf8'))\nconst MANIFEST = /(^|\\/)(package(-lock)?\\.json|pnpm-lock\\.yaml|yarn\\.lock|pom\\.xml|build\\.gradle(\\.kts)?|requirements[^/]*\\.txt|poetry\\.lock|go\\.mod|[^/]+\\.csproj|(Docker|Container)file[^/]*)$/\nconst files = execFileSync('git', ['ls-files'], { encoding: 'utf8' }).split('\\n').filter((f) => MANIFEST.test(f))\nconst escape = (s) => s.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\nconst errors = []\nfor (const blip of radar.filter((b) => b.ring === 'Hold')) {\n const { packages = [], uses = {}, instead } = entries[blip.adr] ?? {}\n if (!packages.length || !instead) errors.push(`${blip.name} is on Hold: its entry in radar/overrides.json needs packages and instead`)\n for (const pkg of packages) {\n const used = new RegExp(`(^|[^\\\\w@/.-]|node_modules/)${escape(pkg)}([^\\\\w/-]|$)`, 'm')\n for (const f of files) {\n if (used.test(readFileSync(f, 'utf8')) && !uses[f]) errors.push(`${f} uses ${pkg}: ${blip.name} is on Hold, use ${instead} instead`)\n }\n }\n}\nif (errors.length) { console.error(errors.join('\\n')); process.exit(1) }\n```"
797
+ "description": "A Node script lists the repository's manifests, lockfiles and Dockerfiles with git ls-files, and for each technology in Hold searches them for the package names its entry in radar/overrides.json gives (as whole names, so moment does not match moment-timezone or @types/moment, and a transitive use is found in the lockfile); a file that uses one and is not among the entry's uses fails the check. Package names should be distinctive: a runtime such as node is better held by the version policy of its stack pack than by a name search.\n\nThreshold: 0 package manifests, lockfiles or container image files using a package of a technology on Hold outside its known uses; 0 technologies on Hold without packages and a replacement in the overrides\n\nTool: Node.js 20 or later (a step of the radar workflow)\n\n```js\n// scripts/radar-hold.mjs: a step of the radar workflow, on every pull request\nimport { execFileSync } from 'node:child_process'\nimport { readFileSync } from 'node:fs'\n\nconst radar = JSON.parse(readFileSync('radar/radar.json', 'utf8'))\nconst { entries = {} } = JSON.parse(readFileSync('radar/overrides.json', 'utf8'))\nconst MANIFEST = /(^|\\/)(package(-lock)?\\.json|pnpm-lock\\.yaml|yarn\\.lock|pom\\.xml|build\\.gradle(\\.kts)?|requirements[^/]*\\.txt|poetry\\.lock|go\\.mod|[^/]+\\.csproj|(Docker|Container)file[^/]*)$/\nconst files = execFileSync('git', ['ls-files'], { encoding: 'utf8' }).split('\\n').filter((f) => MANIFEST.test(f))\nconst escape = (s) => s.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\nconst errors = []\nfor (const blip of radar.filter((b) => b.ring === 'Hold')) {\n const { packages = [], uses = {}, instead } = entries[blip.adr] ?? {}\n if (!packages.length || !instead) errors.push(`${blip.name} is on Hold: its entry in radar/overrides.json needs packages and instead`)\n for (const pkg of packages) {\n const used = new RegExp(`(^|[^\\\\w@/.-]|node_modules/)${escape(pkg)}([^\\\\w/-]|$)`, 'm')\n for (const f of files) {\n if (used.test(readFileSync(f, 'utf8')) && !uses[f]) errors.push(`${f} uses ${pkg}: ${blip.name} is on Hold, use ${instead} instead`)\n }\n }\n}\nif (errors.length) { console.error(errors.join('\\n')); process.exit(1) }\n```",
798
+ "hubWhen": {
799
+ "HOLD": [
800
+ "migrate",
801
+ "freeze"
802
+ ]
803
+ }
682
804
  },
683
805
  {
684
806
  "id": "ff-hold-migration",
@@ -709,7 +831,13 @@
709
831
  "cadence": "triggered",
710
832
  "trigger": "pull-request",
711
833
  "invocation": "automated",
712
- "description": "A Node script over the generated radar and the overrides fails for a technology in Trial whose record lacks its systems, owner or start date, or whose ADR is no longer proposed (the decision was taken and the Trial ring left behind).\n\nThreshold: Every technology in Trial has systems, an owner and a start date in radar/overrides.json, and its ADR is proposed\n\nTool: Node.js 20 or later (a step of the radar workflow)\n\n```js\n// scripts/radar-trials.mjs: a step of the radar workflow\nimport { readFileSync } from 'node:fs'\n\nconst radar = JSON.parse(readFileSync('radar/radar.json', 'utf8'))\nconst { entries = {} } = JSON.parse(readFileSync('radar/overrides.json', 'utf8'))\nconst errors = []\nfor (const blip of radar.filter((b) => b.ring === 'Trial')) {\n const trial = entries[blip.adr]?.trial ?? {}\n if (blip.adrStatus !== 'proposed') errors.push(`${blip.name}: its ADR is ${blip.adrStatus}; remove \"ring\": \"Trial\" from its entry`)\n if (!trial.systems?.length || !trial.owner || !/^\\d{4}-\\d{2}-\\d{2}$/.test(trial.started ?? '')) {\n errors.push(`${blip.name}: a trial names its systems, an owner and the date it started (YYYY-MM-DD)`)\n }\n}\nif (errors.length) { console.error(errors.join('\\n')); process.exit(1) }\n```"
834
+ "description": "A Node script over the generated radar and the overrides fails for a technology in Trial whose record lacks its systems, owner or start date, or whose ADR is no longer proposed (the decision was taken and the Trial ring left behind).\n\nThreshold: Every technology in Trial has systems, an owner and a start date in radar/overrides.json, and its ADR is proposed\n\nTool: Node.js 20 or later (a step of the radar workflow)\n\n```js\n// scripts/radar-trials.mjs: a step of the radar workflow\nimport { readFileSync } from 'node:fs'\n\nconst radar = JSON.parse(readFileSync('radar/radar.json', 'utf8'))\nconst { entries = {} } = JSON.parse(readFileSync('radar/overrides.json', 'utf8'))\nconst errors = []\nfor (const blip of radar.filter((b) => b.ring === 'Trial')) {\n const trial = entries[blip.adr]?.trial ?? {}\n if (blip.adrStatus !== 'proposed') errors.push(`${blip.name}: its ADR is ${blip.adrStatus}; remove \"ring\": \"Trial\" from its entry`)\n if (!trial.systems?.length || !trial.owner || !/^\\d{4}-\\d{2}-\\d{2}$/.test(trial.started ?? '')) {\n errors.push(`${blip.name}: a trial names its systems, an owner and the date it started (YYYY-MM-DD)`)\n }\n}\nif (errors.length) { console.error(errors.join('\\n')); process.exit(1) }\n```",
835
+ "hubWhen": {
836
+ "TRIAL": [
837
+ "timebox",
838
+ "open"
839
+ ]
840
+ }
713
841
  },
714
842
  {
715
843
  "id": "ff-trial-timebox",
@@ -740,7 +868,13 @@
740
868
  "cadence": "temporal",
741
869
  "every": "180d",
742
870
  "invocation": "manual",
743
- "description": "A weekly step of the radar workflow reads the date of the last review from the overrides and fails once the next review is overdue, so the red build is the reminder. The review itself is a pull request that moves what it decides and sets reviewed.\n\nThreshold: The reviewed date in radar/overrides.json is no more than {{REVIEW_MONTHS}} months old\n\nTool: jq and GNU date (a step of the radar workflow)\n\n```bash\n# a weekly step of the radar workflow\nset -euo pipefail\nreviewed=$(jq -r '.reviewed // empty' radar/overrides.json)\n[ -n \"$reviewed\" ] || { echo \"radar/overrides.json records no review (\\\"reviewed\\\": \\\"YYYY-MM-DD\\\")\"; exit 1; }\ndue=$(date -u -d \"$reviewed +{{REVIEW_MONTHS}} months\" +%F)\nif [[ \"$(date -u +%F)\" > \"$due\" ]]; then\n echo \"the radar was last reviewed on $reviewed; the next review was due by $due\"\n exit 1\nfi\necho \"radar reviewed on $reviewed; next review due by $due\"\n```"
871
+ "description": "A weekly step of the radar workflow reads the date of the last review from the overrides and fails once the next review is overdue, so the red build is the reminder. The review itself is a pull request that moves what it decides and sets reviewed.\n\nThreshold: The reviewed date in radar/overrides.json is no more than {{REVIEW_MONTHS}} months old\n\nTool: jq and GNU date (a step of the radar workflow)\n\n```bash\n# a weekly step of the radar workflow\nset -euo pipefail\nreviewed=$(jq -r '.reviewed // empty' radar/overrides.json)\n[ -n \"$reviewed\" ] || { echo \"radar/overrides.json records no review (\\\"reviewed\\\": \\\"YYYY-MM-DD\\\")\"; exit 1; }\ndue=$(date -u -d \"$reviewed +{{REVIEW_MONTHS}} months\" +%F)\nif [[ \"$(date -u +%F)\" > \"$due\" ]]; then\n echo \"the radar was last reviewed on $reviewed; the next review was due by $due\"\n exit 1\nfi\necho \"radar reviewed on $reviewed; next review due by $due\"\n```",
872
+ "hubWhen": {
873
+ "PUBLISH": [
874
+ "byor",
875
+ "file"
876
+ ]
877
+ }
744
878
  },
745
879
  {
746
880
  "id": "ff-ring-approval",
@@ -17,7 +17,117 @@
17
17
  "id": "tenant-isolation",
18
18
  "trigger": "LIST NODES WHERE type = \"database\" AND external != true",
19
19
  "why": "these databases keep the system's data, so whether several customer organisations share them, and how their data is kept apart, has to be decided.",
20
- "group": "security"
20
+ "group": "security",
21
+ "scope": {
22
+ "group": "security",
23
+ "questions": [
24
+ {
25
+ "key": "EXPOSURE",
26
+ "label": "Who can reach it?",
27
+ "default": "customers",
28
+ "hint": "The more strangers can reach it, the more attacks it meets that need no inside knowledge (Microsoft SDL asks this first).",
29
+ "options": [
30
+ {
31
+ "value": "staff",
32
+ "label": "only our own staff",
33
+ "description": "An internal system: everyone who reaches it works for the organisation that runs it, from its network or with its accounts."
34
+ },
35
+ {
36
+ "value": "customers",
37
+ "label": "our customers and staff",
38
+ "description": "People who come to us for a service (to book, order, pay, look something up) and our staff; there is no open sign-up, community or API for strangers."
39
+ },
40
+ {
41
+ "value": "public",
42
+ "label": "anyone, at scale",
43
+ "description": "Open sign-up, a public API, content anyone can post, or so many users that bots and automated abuse come with them."
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "key": "DATA",
49
+ "label": "What would a leak of its data harm?",
50
+ "default": "ordinary",
51
+ "hint": "The most sensitive data it keeps decides (FIPS 199 confidentiality; GDPR Art. 9 for special categories).",
52
+ "options": [
53
+ {
54
+ "value": "none",
55
+ "label": "nothing: nothing private",
56
+ "description": "Public information only, and staff sign-in."
57
+ },
58
+ {
59
+ "value": "ordinary",
60
+ "label": "little: ordinary personal or business data",
61
+ "description": "Names, e-mail addresses, orders, ordinary business documents: a leak is unpleasant, not ruinous."
62
+ },
63
+ {
64
+ "value": "confidential",
65
+ "label": "a lot: confidential data",
66
+ "description": "Financial or account data, identity numbers, location, private messages, trade secrets or customer lists: a leak seriously harms people or the business."
67
+ },
68
+ {
69
+ "value": "special",
70
+ "label": "people deeply: special categories",
71
+ "description": "Health, biometrics, genetic data, religion, politics, sexual orientation, union membership, criminal records, or children's data (GDPR Art. 9 and 10)."
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "key": "TENANCY",
77
+ "label": "How many customer organisations does one running copy serve?",
78
+ "default": "one",
79
+ "hint": "Several organisations in one deployment means one missed filter shows one customer another's data (AWS SaaS Lens).",
80
+ "options": [
81
+ {
82
+ "value": "one",
83
+ "label": "one organisation",
84
+ "description": "It serves one organisation (a shop, a company, a public body), however many people use it."
85
+ },
86
+ {
87
+ "value": "shared",
88
+ "label": "several, sharing",
89
+ "description": "Several customer organisations (tenants) share the same deployment and data stores, kept apart by the software."
90
+ },
91
+ {
92
+ "value": "separate",
93
+ "label": "several, each its own",
94
+ "description": "Several customer organisations, each with its own database or its own copy of the system."
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "key": "CAPACITY",
100
+ "label": "Who looks after its IT and security?",
101
+ "default": "ig1",
102
+ "hint": "What an organisation can run decides how much security practice it can keep up (CIS Controls Implementation Groups 1 to 3).",
103
+ "options": [
104
+ {
105
+ "value": "ig1",
106
+ "label": "the people who build it",
107
+ "description": "A few people who build it; nobody works on IT or security full time (CIS IG1)."
108
+ },
109
+ {
110
+ "value": "ig2",
111
+ "label": "people who run IT",
112
+ "description": "There are people whose job includes running and protecting the infrastructure; several departments rely on it (CIS IG2)."
113
+ },
114
+ {
115
+ "value": "ig3",
116
+ "label": "security specialists",
117
+ "description": "A security team or specialists of their own (security operations, penetration testers), under regulators' eyes (CIS IG3)."
118
+ }
119
+ ]
120
+ }
121
+ ],
122
+ "when": [
123
+ {
124
+ "TENANCY": [
125
+ "shared",
126
+ "separate"
127
+ ]
128
+ }
129
+ ]
130
+ }
21
131
  },
22
132
  "sources": [
23
133
  {
@@ -17,7 +17,58 @@
17
17
  "id": "test-strategy",
18
18
  "trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\") AND external != true",
19
19
  "why": "code lives in these elements, so how it is tested before a change is released has to be decided.",
20
- "group": "sdlc"
20
+ "group": "sdlc",
21
+ "scope": {
22
+ "group": "sdlc",
23
+ "questions": [
24
+ {
25
+ "key": "USE",
26
+ "label": "What is the software for?",
27
+ "default": "business",
28
+ "hint": "Software for one's own use can be built by hand; an organisation that runs or ships it needs a repeatable way to build, release and deploy.",
29
+ "options": [
30
+ {
31
+ "value": "personal",
32
+ "label": "our own or home use",
33
+ "description": "A hobby project or a tool for oneself or a household; nobody else depends on it."
34
+ },
35
+ {
36
+ "value": "business",
37
+ "label": "a system an organisation runs",
38
+ "description": "A company or public body runs it for its staff or customers (an internal tool, an online shop, a booking system)."
39
+ },
40
+ {
41
+ "value": "product",
42
+ "label": "a product we ship to others",
43
+ "description": "Software sold or handed to customers who install or run it themselves, or offered to many organisations."
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "key": "TEAM",
49
+ "label": "Who builds it?",
50
+ "default": "small",
51
+ "hint": "Review, a Definition of Done and delivery metrics need more than one or two people.",
52
+ "options": [
53
+ {
54
+ "value": "small",
55
+ "label": "one or two people",
56
+ "description": "One or two developers."
57
+ },
58
+ {
59
+ "value": "team",
60
+ "label": "a team",
61
+ "description": "A team of its own."
62
+ },
63
+ {
64
+ "value": "teams",
65
+ "label": "several teams",
66
+ "description": "Several teams contributing to it."
67
+ }
68
+ ]
69
+ }
70
+ ]
71
+ }
21
72
  },
22
73
  "sources": [
23
74
  {
@@ -130,7 +181,13 @@
130
181
  "label": "masked copies of production",
131
182
  "description": "Production data, with personal data masked or replaced, is copied into test environments. Pick it only when realistic volume and distribution matter (performance, migrations, reports) and synthetic data cannot reproduce them."
132
183
  }
133
- ]
184
+ ],
185
+ "scopeWhen": {
186
+ "TEAM": [
187
+ "team",
188
+ "teams"
189
+ ]
190
+ }
134
191
  },
135
192
  {
136
193
  "key": "E2E",
@@ -154,7 +211,13 @@
154
211
  "label": "production, as synthetic checks",
155
212
  "description": "No end-to-end gate before release; the journeys run against production after each deploy and on a schedule, and a failure rolls back. Pick it when you deploy many times a day behind feature flags with fast, automated rollback."
156
213
  }
157
- ]
214
+ ],
215
+ "scopeWhen": {
216
+ "TEAM": [
217
+ "team",
218
+ "teams"
219
+ ]
220
+ }
158
221
  },
159
222
  {
160
223
  "key": "FLAKY",
@@ -173,7 +236,13 @@
173
236
  "label": "a failure like any other",
174
237
  "description": "No automatic retries: a test that fails and then passes fails the build, and is fixed before anything else merges. Pick it for a small suite and one team, where flakes are rare and fixed at once."
175
238
  }
176
- ]
239
+ ],
240
+ "scopeWhen": {
241
+ "TEAM": [
242
+ "team",
243
+ "teams"
244
+ ]
245
+ }
177
246
  },
178
247
  {
179
248
  "key": "PIPELINE_MINUTES",
@@ -604,7 +673,7 @@
604
673
  "status": "accepted",
605
674
  "date": "",
606
675
  "context": "Code lives in this element and changes every week; the tests decide whether a change can be released with confidence or only with hope. The forces: fast tests give feedback in minutes but exercise little of the wiring, while end-to-end tests exercise everything but are slow, brittle and late; coverage shows what was run, not what was checked; tests that share data or depend on order fail at random, and a suite that fails at random is soon ignored; copies of production data make realistic tests but carry personal data; and a test that fails only sometimes teaches everyone to rerun until green. Contract tests between the system's parts and with outside callers are decided in the Communication style and API evolution packs.",
607
- "decision": "Tests follow the pyramid: most are unit tests of the domain logic under test/unit, run with Vitest without network or database (JUnit 5 on the JVM); integration tests under test/integration cover each adapter against the real dependency in a container (Testcontainers); a few end-to-end tests cover {{JOURNEYS}} (Playwright). Every pull request runs unit and integration tests within {{PIPELINE_MINUTES}} minutes. Gate: {{GATE}}, measured in the SonarQube quality gate on new code; mutation testing with Stryker (PIT on the JVM). Test data: {{DATA}}. End-to-end tests run in {{E2E}}. Flaky tests: {{FLAKY}}.",
676
+ "decision": "Tests follow the pyramid: most are unit tests of the domain logic under test/unit, run with Vitest without network or database (JUnit 5 on the JVM); integration tests under test/integration cover each adapter against the real dependency in a container (Testcontainers); a few end-to-end tests cover {{JOURNEYS}} (Playwright). Every pull request runs unit and integration tests within {{PIPELINE_MINUTES}} minutes. Gate: {{GATE}}, measured in the SonarQube quality gate on new code; mutation testing with Stryker (PIT on the JVM). ",
608
677
  "consequences": "• Fast, precise feedback: a failing unit test names the rule that broke.\n• Refactoring that changes internal interfaces rewrites many unit tests; test behaviour, not methods, to limit it.\n• Wiring bugs (configuration, queries, serialisation) are caught only by the thinner integration layer.\n• Requires code where the logic can be called without infrastructure.\n• The gate costs build time in proportion to what it proves: coverage is free, a mutation score adds minutes.\n• Where the end-to-end tests run decides what they can stop: before the merge, before production, or only after.",
609
678
  "alternatives": "1. A testing trophy: mostly integration tests, better for glue code, slower feedback.\n2. An ice-cream cone of manual and end-to-end tests: slow, brittle and late; the shape to move away from.",
610
679
  "hubWhen": {
@@ -623,7 +692,7 @@
623
692
  "status": "accepted",
624
693
  "date": "",
625
694
  "context": "Code lives in this element and changes every week; the tests decide whether a change can be released with confidence or only with hope. The forces: fast tests give feedback in minutes but exercise little of the wiring, while end-to-end tests exercise everything but are slow, brittle and late; coverage shows what was run, not what was checked; tests that share data or depend on order fail at random, and a suite that fails at random is soon ignored; copies of production data make realistic tests but carry personal data; and a test that fails only sometimes teaches everyone to rerun until green. Contract tests between the system's parts and with outside callers are decided in the Communication style and API evolution packs.",
626
- "decision": "Most tests are integration tests under test/integration that run the element through its public interface (HTTP or the UI component tree) with its real database and broker started by Testcontainers, faking only systems outside it (MSW or WireMock); static analysis (TypeScript strict, ESLint and SonarQube) and a few unit tests under test/unit for pure logic sit below; a few end-to-end tests cover {{JOURNEYS}} with Playwright. Every pull request runs them within {{PIPELINE_MINUTES}} minutes. Gate: {{GATE}}, in the SonarQube quality gate on new code. Test data: {{DATA}}. End-to-end tests run in {{E2E}}. Flaky tests: {{FLAKY}}. In-memory substitutes for the database (pg-mem, SQLite for PostgreSQL, H2) are not used.",
695
+ "decision": "Most tests are integration tests under test/integration that run the element through its public interface (HTTP or the UI component tree) with its real database and broker started by Testcontainers, faking only systems outside it (MSW or WireMock); static analysis (TypeScript strict, ESLint and SonarQube) and a few unit tests under test/unit for pure logic sit below; a few end-to-end tests cover {{JOURNEYS}} with Playwright. Every pull request runs them within {{PIPELINE_MINUTES}} minutes. Gate: {{GATE}}, in the SonarQube quality gate on new code. In-memory substitutes for the database (pg-mem, SQLite for PostgreSQL, H2) are not used.",
627
696
  "consequences": "• Tests survive refactoring because they use the element as its callers do.\n• Wiring, queries and serialisation are tested for real.\n• Slower than unit tests: containers start once per run and tests must clean up; keeping the run under {{PIPELINE_MINUTES}} minutes needs parallel workers.\n• A failing test says which behaviour broke, not which line; debugging takes longer.\n• The gate costs build time in proportion to what it proves: coverage is free, a mutation score adds minutes.\n• Where the end-to-end tests run decides what they can stop: before the merge, before production, or only after.",
628
697
  "alternatives": "1. A test pyramid: faster and more precise where there is real domain logic.\n2. In-memory database substitutes: faster, but they differ from the real engine exactly where bugs hide.",
629
698
  "hubWhen": {
@@ -796,7 +865,14 @@
796
865
  "cadence": "triggered",
797
866
  "trigger": "pull-request",
798
867
  "invocation": "automated",
799
- "description": "A test lists the journeys the decision names and expects a spec file e2e/<journey>.spec.ts for each (spaces in a journey's name become dashes); a journey without a spec fails the test, so the list and the suite cannot drift apart.\n\nThreshold: 100% of the journeys {{JOURNEYS}} have a Playwright spec under e2e\n\nTool: Vitest over the e2e directory; for the JVM: the same test with JUnit 5 over src/e2e\n\n```ts\nimport { existsSync } from 'node:fs'\nimport { expect, it } from 'vitest'\n\nconst JOURNEYS = '{{JOURNEYS}}'.split(/,\\s*/).map((j) => j.trim().toLowerCase().replace(/\\s+/g, '-'))\n\nit.each(JOURNEYS)('journey %s has an end-to-end spec', (journey) => {\n expect(existsSync(`e2e/${journey}.spec.ts`), `e2e/${journey}.spec.ts is missing`).toBe(true)\n})\n```"
868
+ "description": "A test lists the journeys the decision names and expects a spec file e2e/<journey>.spec.ts for each (spaces in a journey's name become dashes); a journey without a spec fails the test, so the list and the suite cannot drift apart.\n\nThreshold: 100% of the journeys {{JOURNEYS}} have a Playwright spec under e2e\n\nTool: Vitest over the e2e directory; for the JVM: the same test with JUnit 5 over src/e2e\n\n```ts\nimport { existsSync } from 'node:fs'\nimport { expect, it } from 'vitest'\n\nconst JOURNEYS = '{{JOURNEYS}}'.split(/,\\s*/).map((j) => j.trim().toLowerCase().replace(/\\s+/g, '-'))\n\nit.each(JOURNEYS)('journey %s has an end-to-end spec', (journey) => {\n expect(existsSync(`e2e/${journey}.spec.ts`), `e2e/${journey}.spec.ts is missing`).toBe(true)\n})\n```",
869
+ "hubWhen": {
870
+ "E2E": [
871
+ "pipeline",
872
+ "staging",
873
+ "production"
874
+ ]
875
+ }
800
876
  },
801
877
  {
802
878
  "id": "ff-e2e-gate",