@radicaltools/cli 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +121 -16
  2. package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
  3. package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
  4. package/dist/hub-catalogue/concern/concern-api-evolution.radical +449 -210
  5. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
  6. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
  7. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
  8. package/dist/hub-catalogue/concern/concern-architecture-style.radical +287 -131
  9. package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
  10. package/dist/hub-catalogue/concern/concern-authentication.radical +247 -37
  11. package/dist/hub-catalogue/concern/concern-authorization.radical +311 -89
  12. package/dist/hub-catalogue/concern/concern-availability.radical +287 -63
  13. package/dist/hub-catalogue/concern/concern-backend-stack.radical +300 -381
  14. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +385 -129
  15. package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
  16. package/dist/hub-catalogue/concern/concern-capacity.radical +194 -81
  17. package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
  18. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
  19. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
  20. package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
  21. package/dist/hub-catalogue/concern/concern-communication-style.radical +473 -167
  22. package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
  23. package/dist/hub-catalogue/concern/concern-data-consistency.radical +339 -308
  24. package/dist/hub-catalogue/concern/concern-data-store.radical +480 -158
  25. package/dist/hub-catalogue/concern/concern-decomposition.radical +260 -85
  26. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
  27. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
  28. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
  29. package/dist/hub-catalogue/concern/concern-deployment.radical +343 -92
  30. package/dist/hub-catalogue/concern/concern-encryption.radical +339 -76
  31. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
  32. package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
  33. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +467 -160
  34. package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
  35. package/dist/hub-catalogue/concern/concern-infrastructure.radical +1300 -268
  36. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +88 -51
  37. package/dist/hub-catalogue/concern/concern-messaging.radical +173 -140
  38. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +162 -159
  39. package/dist/hub-catalogue/concern/concern-observability.radical +224 -275
  40. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
  41. package/dist/hub-catalogue/concern/concern-personal-data.radical +637 -122
  42. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
  43. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +433 -141
  44. package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
  45. package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
  46. package/dist/hub-catalogue/concern/concern-secrets.radical +332 -74
  47. package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
  48. package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
  49. package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
  50. package/dist/hub-catalogue/concern/concern-supply-chain.radical +257 -183
  51. package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
  52. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
  53. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +271 -137
  54. package/dist/hub-catalogue/concern/concern-test-strategy.radical +243 -224
  55. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
  56. package/dist/index.js +3680 -2074
  57. package/package.json +1 -1
@@ -3,12 +3,12 @@
3
3
  "id": "concern-test-strategy",
4
4
  "category": "concern",
5
5
  "name": "Test strategy",
6
- "description": "Which tests the element has at which level, which gates a change must pass, where end-to-end tests run, where test data comes from, and what happens to a flaky test.",
6
+ "description": "Which tests the element has at which level, which gates a change must pass, where end-to-end tests run, where test data comes from, and what happens to a flaky test. The snippets are for a Node project with Vitest, Playwright, Stryker, SonarQube and Checkly; each tool line names the JVM equivalent.",
7
7
  "tags": [
8
8
  "maintainability",
9
9
  "testing",
10
10
  "test pyramid",
11
- "contract testing",
11
+ "testing trophy",
12
12
  "mutation testing",
13
13
  "flaky tests"
14
14
  ],
@@ -17,7 +17,7 @@
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": "maintainability"
20
+ "group": "sdlc"
21
21
  },
22
22
  "sources": [
23
23
  {
@@ -28,10 +28,6 @@
28
28
  "title": "Ham Vocke: The Practical Test Pyramid (martinfowler.com)",
29
29
  "url": "https://martinfowler.com/articles/practical-test-pyramid.html"
30
30
  },
31
- {
32
- "title": "Ian Robinson: Consumer-Driven Contracts (martinfowler.com)",
33
- "url": "https://martinfowler.com/articles/consumerDrivenContracts.html"
34
- },
35
31
  {
36
32
  "title": "Martin Fowler: Eradicating Non-Determinism in Tests",
37
33
  "url": "https://martinfowler.com/articles/nonDeterminism.html"
@@ -40,13 +36,37 @@
40
36
  "title": "Martin Fowler: Continuous Integration",
41
37
  "url": "https://martinfowler.com/articles/continuousIntegration.html"
42
38
  },
39
+ {
40
+ "title": "Jez Humble, David Farley: Continuous Delivery (the deployment pipeline)",
41
+ "url": "https://www.oreilly.com/library/view/continuous-delivery-reliable/9780321670250/"
42
+ },
43
+ {
44
+ "title": "Cindy Sridharan: Testing in Production, the safe way",
45
+ "url": "https://copyconstruct.medium.com/testing-in-production-the-safe-way-18ca102d0ef1"
46
+ },
43
47
  {
44
48
  "title": "ISO/IEC 25010, Maintainability: testability",
45
49
  "url": "https://iso25000.com/index.php/en/iso-25000-standards/iso-25010"
46
50
  },
51
+ {
52
+ "title": "SonarQube: Clean as You Code",
53
+ "url": "https://docs.sonarsource.com/sonarqube-server/latest/core-concepts/clean-as-you-code/"
54
+ },
47
55
  {
48
56
  "title": "Stryker Mutator",
49
57
  "url": "https://stryker-mutator.io/"
58
+ },
59
+ {
60
+ "title": "PIT mutation testing",
61
+ "url": "https://pitest.org/"
62
+ },
63
+ {
64
+ "title": "Testcontainers",
65
+ "url": "https://testcontainers.com/"
66
+ },
67
+ {
68
+ "title": "Regulation (EU) 2016/679 (GDPR), Articles 25 and 32",
69
+ "url": "https://eur-lex.europa.eu/eli/reg/2016/679/oj"
50
70
  }
51
71
  ],
52
72
  "templateParams": [
@@ -54,7 +74,7 @@
54
74
  "key": "SHAPE",
55
75
  "title": "Test shape",
56
76
  "label": "Where does most of the testing happen?",
57
- "hint": "The shape says which level carries the bulk of the tests: it decides how fast feedback is, how much a refactoring breaks, and what a green build proves.",
77
+ "hint": "The shape says which level carries the bulk of the tests: it decides how fast feedback is, how much a refactoring breaks, and what a green build proves. Contract tests between parts and with outside callers are decided in the Communication style and API evolution packs, not here.",
58
78
  "defaultValue": "pyramid",
59
79
  "options": [
60
80
  {
@@ -66,11 +86,6 @@
66
86
  "value": "trophy",
67
87
  "label": "a testing trophy, mostly integration tests",
68
88
  "description": "Most tests run the element with its real database in a container and fake only what lies outside it; static analysis and a few unit tests below, a few end-to-end tests above. Pick it for web apps and services that mostly glue a framework, a database and other APIs together."
69
- },
70
- {
71
- "value": "contract",
72
- "label": "contract-heavy, consumer-driven contracts",
73
- "description": "Each service is tested alone, and the calls between services are covered by consumer-driven contract tests instead of end-to-end tests across them. Pick it when several services owned by different teams deploy independently."
74
89
  }
75
90
  ]
76
91
  },
@@ -88,7 +103,7 @@
88
103
  },
89
104
  {
90
105
  "value": "mutation",
91
- "label": "coverage and mutation score",
106
+ "label": "coverage and a mutation score",
92
107
  "description": "Coverage, plus a minimum share of mutants killed in changed code. Pick it when the element holds business rules where a wrong condition costs money or trust, and the build can afford a few extra minutes."
93
108
  }
94
109
  ]
@@ -102,7 +117,7 @@
102
117
  "options": [
103
118
  {
104
119
  "value": "synthetic",
105
- "label": "built by each test",
120
+ "label": "data built by each test",
106
121
  "description": "Each test creates the data it needs with builders or factories, in a fresh or rolled-back database. Pick it by default: tests stay independent and can run in parallel."
107
122
  },
108
123
  {
@@ -126,17 +141,17 @@
126
141
  "options": [
127
142
  {
128
143
  "value": "pipeline",
129
- "label": "on each pull request, in an ephemeral environment",
144
+ "label": "an ephemeral environment per pull request",
130
145
  "description": "Every pull request is deployed to a short-lived environment and the journeys run there before the merge. Pick it when environments can be created in minutes (containers, infrastructure as code)."
131
146
  },
132
147
  {
133
148
  "value": "staging",
134
- "label": "after the merge, on staging",
149
+ "label": "staging, after the merge",
135
150
  "description": "Merged builds deploy to a shared staging environment and the journeys gate the promotion to production. Pick it when a full environment is too costly to create per pull request."
136
151
  },
137
152
  {
138
153
  "value": "production",
139
- "label": "in production, as synthetic checks",
154
+ "label": "production, as synthetic checks",
140
155
  "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."
141
156
  }
142
157
  ]
@@ -150,12 +165,12 @@
150
165
  "options": [
151
166
  {
152
167
  "value": "quarantine",
153
- "label": "quarantined, then fixed or deleted",
168
+ "label": "quarantine, then a fix or deletion",
154
169
  "description": "The flaky test is moved out of the gate within a day, given an owner, and fixed or deleted within a deadline. Pick it for larger suites and several teams, where blocking everyone on one test costs more than the lost check."
155
170
  },
156
171
  {
157
172
  "value": "zero",
158
- "label": "a flaky test is a failure",
173
+ "label": "a failure like any other",
159
174
  "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."
160
175
  }
161
176
  ]
@@ -180,7 +195,7 @@
180
195
  },
181
196
  {
182
197
  "key": "JOURNEYS",
183
- "label": "Which user journeys do the end-to-end tests cover?",
198
+ "label": "Which user journeys do the end-to-end tests cover (one Playwright spec each, e2e/<journey>.spec.ts)?",
184
199
  "defaultValue": "sign-in, search, checkout"
185
200
  },
186
201
  {
@@ -200,7 +215,7 @@
200
215
  "y": 0,
201
216
  "kind": "brief",
202
217
  "source": "Hub concern pack: Test strategy",
203
- "description": "The element changes often, and every change must be releasable without fear: the tests have to catch a broken rule, a broken integration and a broken journey before users do, give that answer quickly enough that people wait for it, and give the same answer every time they run on the same code. A green build must mean something."
218
+ "description": "The element changes often, and every change must be releasable without fear: the tests have to catch a broken rule, a broken integration and a broken journey before users do, give that answer quickly enough that people wait for it, and give the same answer every time they run on the same code. A green build must mean something. The checks below share one layout: unit tests under test/unit, integration tests under test/integration, end-to-end journeys as Playwright specs under e2e/<journey>.spec.ts, JUnit reports written to reports/<suite>.xml, quarantined tests listed in quarantine.json."
204
219
  },
205
220
  {
206
221
  "id": "req-pr-suite",
@@ -221,7 +236,7 @@
221
236
  "y": 130,
222
237
  "ears_type": "ubiquitous",
223
238
  "action": "cover at least {{COVERAGE}}% of new and changed lines, branches included, with automated tests, measured on each pull request",
224
- "rationale": "A gate on new code keeps coverage from falling without demanding that old code be fixed first (SonarQube \"Clean as You Code\"; ISO 25010 testability)."
239
+ "rationale": "A gate on new code keeps coverage from falling without demanding that old code be fixed first (SonarQube, Clean as You Code; ISO/IEC 25010 testability)."
225
240
  },
226
241
  {
227
242
  "id": "req-mutation",
@@ -230,8 +245,8 @@
230
245
  "x": 260,
231
246
  "y": 260,
232
247
  "ears_type": "ubiquitous",
233
- "action": "kill at least {{MUTATION}}% of the mutants generated in the changed code of each pull request",
234
- "rationale": "Coverage shows that a line ran, not that a test would fail if it were wrong; a surviving mutant is a change no test notices (Stryker, PIT; Building Evolutionary Architectures).",
248
+ "action": "kill at least {{MUTATION}}% of the mutants generated in the files each pull request changes",
249
+ "rationale": "Coverage shows that a line ran, not that a test would fail if it were wrong; a surviving mutant is a change no test notices (Stryker Mutator; PIT).",
235
250
  "hubWhen": {
236
251
  "GATE": [
237
252
  "mutation"
@@ -245,7 +260,7 @@
245
260
  "x": 260,
246
261
  "y": 390,
247
262
  "ears_type": "ubiquitous",
248
- "action": "keep at least 70% of the automated tests as unit tests that touch no network, database or file system and run in under 100 ms each, and at most 10% as end-to-end tests",
263
+ "action": "keep at least 70% of the automated tests as unit tests that touch no network and run in under 100 ms each, and at most 10% as end-to-end tests",
249
264
  "rationale": "Tests low in the pyramid are fast, precise about what broke and cheap to keep; high ones are slow and brittle, so few of them (Fowler, TestPyramid; Vocke, The Practical Test Pyramid).",
250
265
  "hubWhen": {
251
266
  "SHAPE": [
@@ -268,28 +283,12 @@
268
283
  ]
269
284
  }
270
285
  },
271
- {
272
- "id": "req-contracts",
273
- "type": "requirement",
274
- "label": "Contracts verified before deploy",
275
- "x": 260,
276
- "y": 650,
277
- "ears_type": "event-driven",
278
- "trigger": "a consumer changes how it calls a provider, or a provider is about to be deployed",
279
- "action": "verify every consumer's contract against the provider in the provider's build, and refuse to deploy a version that has not verified the contracts of the consumers in the target environment",
280
- "rationale": "Contract tests find a breaking change between services in the provider's build, in minutes, without an environment with every service in it (Robinson, Consumer-Driven Contracts).",
281
- "hubWhen": {
282
- "SHAPE": [
283
- "contract"
284
- ]
285
- }
286
- },
287
286
  {
288
287
  "id": "req-own-data",
289
288
  "type": "requirement",
290
289
  "label": "Tests build their own data",
291
290
  "x": 260,
292
- "y": 780,
291
+ "y": 650,
293
292
  "ears_type": "ubiquitous",
294
293
  "action": "create the data each test needs in the test itself with builders or factories, and leave nothing behind, so that the suite passes in random order and in parallel",
295
294
  "rationale": "Tests sharing data depend on order and break each other, the most common cause of flaky suites (Fowler, Eradicating Non-Determinism in Tests: isolation).",
@@ -304,9 +303,9 @@
304
303
  "type": "requirement",
305
304
  "label": "Seed data is versioned",
306
305
  "x": 260,
307
- "y": 910,
306
+ "y": 780,
308
307
  "ears_type": "ubiquitous",
309
- "action": "keep seed datasets in version control next to the tests, load them into a fresh database for each test run after the current migrations, and change them only through a reviewed pull request",
308
+ "action": "keep seed datasets in version control under test/seed, load them into a fresh database for each test run after the current migrations, and change them only through a reviewed pull request",
310
309
  "rationale": "Shared data is safe when it is the same on every run and every change to it is visible; a database kept between runs drifts (Vocke, The Practical Test Pyramid).",
311
310
  "hubWhen": {
312
311
  "DATA": [
@@ -319,11 +318,11 @@
319
318
  "type": "requirement",
320
319
  "label": "No personal data in tests",
321
320
  "x": 260,
322
- "y": 1040,
323
- "ears_type": "unwanted-behaviour",
324
- "unwanted_condition": "a copy of production data is made for a test environment",
321
+ "y": 910,
322
+ "ears_type": "event-driven",
323
+ "trigger": "a copy of production data is made for a test environment",
325
324
  "action": "mask or replace every personal-data field before the copy leaves the production environment, so that 0 real names, e-mail addresses, phone numbers, addresses or payment details reach a test environment",
326
- "rationale": "Test environments are less protected than production; personal data in them is a breach waiting to happen (GDPR Art. 25 and 32: data protection by design, security of processing).",
325
+ "rationale": "Test environments are less protected than production; personal data in them is a breach waiting to happen (GDPR Articles 25 and 32: data protection by design, security of processing).",
327
326
  "hubWhen": {
328
327
  "DATA": [
329
328
  "masked"
@@ -335,10 +334,10 @@
335
334
  "type": "requirement",
336
335
  "label": "Journeys tested before merge",
337
336
  "x": 260,
338
- "y": 1170,
337
+ "y": 1040,
339
338
  "ears_type": "event-driven",
340
339
  "trigger": "a pull request is opened or updated",
341
- "action": "deploy it to an ephemeral environment, run the end-to-end tests of {{JOURNEYS}} there, block the merge on a failure, and remove the environment when the pull request closes",
340
+ "action": "deploy it to an ephemeral environment, run the end-to-end tests of {{JOURNEYS}} there with 0 skipped, block the merge on a failure, and remove the environment when the pull request closes",
342
341
  "rationale": "A broken journey is cheapest to fix before the merge; an environment per pull request keeps changes from waiting for a shared one (Vocke, The Practical Test Pyramid: end-to-end tests).",
343
342
  "hubWhen": {
344
343
  "E2E": [
@@ -351,11 +350,11 @@
351
350
  "type": "requirement",
352
351
  "label": "Journeys gate promotion",
353
352
  "x": 260,
354
- "y": 1300,
353
+ "y": 1170,
355
354
  "ears_type": "event-driven",
356
355
  "trigger": "a build is merged to the main branch",
357
- "action": "deploy it to staging, run the end-to-end tests of {{JOURNEYS}} there, and promote it to production only when all pass",
358
- "rationale": "One shared environment is cheaper than one per change; the gate keeps a broken journey out of production (Humble, Farley: Continuous Delivery, the deployment pipeline).",
356
+ "action": "deploy it to staging, run the end-to-end tests of {{JOURNEYS}} there with 0 skipped, and promote it to production only when all pass",
357
+ "rationale": "One shared environment is cheaper than one per change; the gate keeps a broken journey out of production (Humble and Farley, Continuous Delivery: the deployment pipeline).",
359
358
  "hubWhen": {
360
359
  "E2E": [
361
360
  "staging"
@@ -367,11 +366,11 @@
367
366
  "type": "requirement",
368
367
  "label": "Journeys checked in production",
369
368
  "x": 260,
370
- "y": 1430,
369
+ "y": 1300,
371
370
  "ears_type": "event-driven",
372
371
  "trigger": "a release reaches production",
373
- "action": "run synthetic checks of {{JOURNEYS}} against it within 5 minutes and every 5 minutes after, and roll the release back automatically when a check fails twice in a row",
374
- "rationale": "With many deploys a day, production is the only environment where every journey can be proved; fast rollback bounds the harm of what slipped through (Sridharan, Testing in production; Google SRE, release engineering).",
372
+ "action": "run synthetic checks of {{JOURNEYS}} against it at once and every 5 minutes after, and roll the release back automatically when a check fails twice in a row",
373
+ "rationale": "With many deploys a day, production is the only environment where every journey can be proved; fast rollback bounds the harm of what slipped through (Sridharan, Testing in Production).",
375
374
  "hubWhen": {
376
375
  "E2E": [
377
376
  "production"
@@ -383,10 +382,10 @@
383
382
  "type": "requirement",
384
383
  "label": "Flaky tests quarantined",
385
384
  "x": 260,
386
- "y": 1560,
385
+ "y": 1430,
387
386
  "ears_type": "unwanted-behaviour",
388
387
  "unwanted_condition": "a test fails and then passes on the same commit",
389
- "action": "move it to quarantine within 1 working day, where it runs but no longer blocks merges, assign it an owner, and fix or delete it within {{QUARANTINE_DAYS}} days",
388
+ "action": "list it in quarantine.json with an owner and a ticket within 1 working day, where it runs but no longer blocks merges, and fix or delete it within {{QUARANTINE_DAYS}} days",
390
389
  "rationale": "A flaky test left in the gate teaches everyone to rerun until green; one left in quarantine forever is a deleted test nobody decided to delete (Fowler, Eradicating Non-Determinism in Tests: quarantine).",
391
390
  "hubWhen": {
392
391
  "FLAKY": [
@@ -399,7 +398,7 @@
399
398
  "type": "requirement",
400
399
  "label": "Flaky tests fail the build",
401
400
  "x": 260,
402
- "y": 1690,
401
+ "y": 1560,
403
402
  "ears_type": "unwanted-behaviour",
404
403
  "unwanted_condition": "a test fails and then passes on the same commit",
405
404
  "action": "fail the build, naming the test as flaky, and merge nothing else to the main branch until it is fixed or deleted",
@@ -453,7 +452,7 @@
453
452
  "y": 390,
454
453
  "given": "the unit test suite with network access disabled",
455
454
  "when": "it runs",
456
- "then": "every test passes in under 100 ms and unit tests are at least 70% of all tests",
455
+ "then": "every test passes in under 100 ms, unit tests are at least 70% of all tests and end-to-end tests at most 10%",
457
456
  "hubWhen": {
458
457
  "SHAPE": [
459
458
  "pyramid"
@@ -466,36 +465,21 @@
466
465
  "label": "Real database in tests",
467
466
  "x": 520,
468
467
  "y": 520,
469
- "given": "the integration test suite",
468
+ "given": "the test suite",
470
469
  "when": "it runs",
471
- "then": "it starts the same database engine and version as production in a container, and no test uses an in-memory substitute",
470
+ "then": "the integration tests start the same database engine and version as production in a container, no test file imports an in-memory substitute, and integration tests are at least 50% of all tests",
472
471
  "hubWhen": {
473
472
  "SHAPE": [
474
473
  "trophy"
475
474
  ]
476
475
  }
477
476
  },
478
- {
479
- "id": "sc-contracts",
480
- "type": "scenario",
481
- "label": "Breaking change refused",
482
- "x": 520,
483
- "y": 650,
484
- "given": "a consumer whose contract expects a field",
485
- "when": "the provider removes the field and tries to deploy",
486
- "then": "contract verification fails and the deployment is refused",
487
- "hubWhen": {
488
- "SHAPE": [
489
- "contract"
490
- ]
491
- }
492
- },
493
477
  {
494
478
  "id": "sc-own-data",
495
479
  "type": "scenario",
496
480
  "label": "Order does not matter",
497
481
  "x": 520,
498
- "y": 780,
482
+ "y": 650,
499
483
  "given": "the test suite",
500
484
  "when": "it runs three times in random order with parallel workers",
501
485
  "then": "all three runs pass",
@@ -510,10 +494,10 @@
510
494
  "type": "scenario",
511
495
  "label": "Seed loads on fresh database",
512
496
  "x": 520,
513
- "y": 910,
497
+ "y": 780,
514
498
  "given": "the seed datasets and the current migrations",
515
499
  "when": "a test run starts",
516
- "then": "a fresh database is migrated, the seed loads without error, and tests that change it run in a transaction rolled back afterwards",
500
+ "then": "a fresh database is migrated, the seed loads without error, and the suite passes in random order",
517
501
  "hubWhen": {
518
502
  "DATA": [
519
503
  "fixtures"
@@ -525,10 +509,10 @@
525
509
  "type": "scenario",
526
510
  "label": "Copy carries no personal data",
527
511
  "x": 520,
528
- "y": 1040,
512
+ "y": 910,
529
513
  "given": "a production snapshot",
530
514
  "when": "it is copied to a test environment",
531
- "then": "a scan of the copy finds 0 personal-data values and the copy is refused otherwise",
515
+ "then": "a scan of the copy finds 0 personal-data values, and the copy is refused otherwise",
532
516
  "hubWhen": {
533
517
  "DATA": [
534
518
  "masked"
@@ -540,7 +524,7 @@
540
524
  "type": "scenario",
541
525
  "label": "Broken journey blocks merge",
542
526
  "x": 520,
543
- "y": 1170,
527
+ "y": 1040,
544
528
  "given": "a pull request that breaks one of: {{JOURNEYS}}",
545
529
  "when": "its ephemeral environment is tested",
546
530
  "then": "the journey fails and the pull request cannot be merged",
@@ -555,7 +539,7 @@
555
539
  "type": "scenario",
556
540
  "label": "Broken build not promoted",
557
541
  "x": 520,
558
- "y": 1300,
542
+ "y": 1170,
559
543
  "given": "a merged build that breaks one of: {{JOURNEYS}}",
560
544
  "when": "it is tested on staging",
561
545
  "then": "it is not promoted to production and the team is told",
@@ -570,10 +554,10 @@
570
554
  "type": "scenario",
571
555
  "label": "Failing journey rolls back",
572
556
  "x": 520,
573
- "y": 1430,
557
+ "y": 1300,
574
558
  "given": "a release that breaks one of: {{JOURNEYS}}",
575
559
  "when": "the synthetic check fails twice in a row",
576
- "then": "the release is rolled back automatically and the team is alerted",
560
+ "then": "the rollback webhook is called and the team is alerted",
577
561
  "hubWhen": {
578
562
  "E2E": [
579
563
  "production"
@@ -585,10 +569,10 @@
585
569
  "type": "scenario",
586
570
  "label": "Flaky test leaves the gate",
587
571
  "x": 520,
588
- "y": 1560,
572
+ "y": 1430,
589
573
  "given": "a test that fails and then passes on the same commit",
590
- "when": "it is reported as flaky",
591
- "then": "within 1 working day it is quarantined with an owner, and after {{QUARANTINE_DAYS}} days it is fixed or deleted",
574
+ "when": "the nightly run reports it as flaky",
575
+ "then": "the run fails until the test is in quarantine.json with an owner, and after {{QUARANTINE_DAYS}} days it is fixed or deleted",
592
576
  "hubWhen": {
593
577
  "FLAKY": [
594
578
  "quarantine"
@@ -600,7 +584,7 @@
600
584
  "type": "scenario",
601
585
  "label": "Flaky test stops the line",
602
586
  "x": 520,
603
- "y": 1690,
587
+ "y": 1560,
604
588
  "given": "a test that fails and then passes on the same commit",
605
589
  "when": "the build runs",
606
590
  "then": "the build fails naming the test as flaky",
@@ -619,10 +603,10 @@
619
603
  "concern": "test-strategy",
620
604
  "status": "accepted",
621
605
  "date": "",
622
- "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 every service another team depends on is a contract that can break without a test of its own failing.",
623
- "decision": "Tests follow the pyramid: most are unit tests of the domain logic, run without network or database (JUnit 5, xUnit, Vitest or pytest by stack); integration tests 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 (or SonarCloud) quality gate on new code; mutation testing with Stryker (JS/TS, .NET) or PIT (JVM). Test data: {{DATA}}. End-to-end tests run {{E2E}}. Flaky tests: {{FLAKY}}.",
624
- "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.",
625
- "alternatives": "1. A testing trophy: mostly integration tests, better for glue code, slower feedback.\n2. Contract-heavy: for many independently deployed services.\n3. An ice-cream cone of manual and end-to-end tests: slow, brittle and late; the shape to move away from.",
606
+ "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}}.",
608
+ "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
+ "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.",
626
610
  "hubWhen": {
627
611
  "SHAPE": [
628
612
  "pyramid"
@@ -638,44 +622,28 @@
638
622
  "concern": "test-strategy",
639
623
  "status": "accepted",
640
624
  "date": "",
641
- "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 every service another team depends on is a contract that can break without a test of its own failing.",
642
- "decision": "Most tests are integration tests 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 (WireMock or MSW); static analysis (TypeScript strict, ESLint or the compiler and SonarQube) and a few unit tests 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 {{E2E}}. Flaky tests: {{FLAKY}}. In-memory substitutes for the database (H2, SQLite for PostgreSQL, pg-mem) are not used.",
643
- "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.",
644
- "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.\n3. Contract-heavy: needed in addition when several services are owned by different teams.",
625
+ "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.",
627
+ "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
+ "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.",
645
629
  "hubWhen": {
646
630
  "SHAPE": [
647
631
  "trophy"
648
632
  ]
649
633
  }
650
634
  },
651
- {
652
- "id": "adr-contract",
653
- "type": "adr",
654
- "label": "Consumer-driven contracts",
655
- "x": 780,
656
- "y": 260,
657
- "concern": "test-strategy",
658
- "status": "accepted",
659
- "date": "",
660
- "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 every service another team depends on is a contract that can break without a test of its own failing.",
661
- "decision": "Each service is tested alone (unit and integration tests with Testcontainers), and every call between services is covered by consumer-driven contract tests with Pact: consumers publish their contracts to a Pact Broker (or PactFlow), providers verify them in their build, and every deployment asks can-i-deploy first. Asynchronous messages get message pacts. End-to-end tests across services shrink to {{JOURNEYS}}, run {{E2E}}. Every pull request runs its service's tests within {{PIPELINE_MINUTES}} minutes. Gate: {{GATE}}, in the SonarQube quality gate on new code. Test data: {{DATA}}. Flaky tests: {{FLAKY}}. Choose Pact for HTTP and messages across languages; Spring Cloud Contract only when every service is on Spring.",
662
- "consequences": "• A breaking change between services is found in the provider's build in minutes, not in a shared environment days later.\n• Teams deploy independently without a full environment of every service.\n• Contracts cover only what consumers use; a consumer without a contract is unprotected.\n• The broker is one more thing to run (or a PactFlow subscription), and teams must learn the workflow.",
663
- "alternatives": "1. End-to-end tests across all services in a shared environment: realistic, but slow, flaky and blocking every team.\n2. Provider-written OpenAPI schema tests: check the provider against its own document, not against what consumers rely on.\n3. A test pyramid per service without contracts: fast, but blind to breaking changes between services.",
664
- "hubWhen": {
665
- "SHAPE": [
666
- "contract"
667
- ]
668
- }
669
- },
670
635
  {
671
636
  "id": "ff-pr-time",
672
637
  "type": "fitness-fn",
673
638
  "label": "Pull-request tests in time",
674
639
  "x": 1040,
675
640
  "y": 0,
676
- "category": "process",
677
- "threshold": "The pull-request test job finishes within {{PIPELINE_MINUTES}} minutes and is a required check for merging",
678
- "description": "The test job has a hard timeout of {{PIPELINE_MINUTES}} minutes and is a required status check in branch protection, so a slow suite fails instead of quietly growing.\n\nTool: GitHub Actions (timeout-minutes) with branch protection\n\n```yaml\n# .github/workflows/test.yml\nname: test\non: [pull_request]\njobs:\n test:\n runs-on: ubuntu-latest\n timeout-minutes: 10 # PIPELINE_MINUTES\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with: { node-version-file: .nvmrc, cache: npm }\n - run: npm ci\n - run: npm test -- --reporter=junit --outputFile=reports/junit.xml\n```"
641
+ "characteristic": "maintainability",
642
+ "scope": "atomic",
643
+ "cadence": "triggered",
644
+ "trigger": "pull-request",
645
+ "invocation": "automated",
646
+ "description": "The test job has a hard timeout of {{PIPELINE_MINUTES}} minutes, so a slow suite fails instead of quietly growing; it is listed among the checks the main branch requires, in the ruleset the Code review and branching pack keeps.\n\nThreshold: The pull-request test job finishes within {{PIPELINE_MINUTES}} minutes\n\nTool: GitHub Actions (timeout-minutes) with Vitest; for the JVM: the same job running ./gradlew test\n\n```yaml\n# .github/workflows/test.yml\nname: test\non: [pull_request]\njobs:\n test:\n runs-on: ubuntu-latest\n timeout-minutes: {{PIPELINE_MINUTES}}\n steps:\n - uses: actions/checkout@v4.2.2 # pin by commit SHA in your repository\n - uses: actions/setup-node@v4.1.0 # pin by commit SHA in your repository\n with: { node-version-file: .nvmrc, cache: npm }\n - run: npm ci\n - run: npx vitest run --project unit --reporter=junit --outputFile=reports/unit.xml\n - run: npx vitest run --project integration --reporter=junit --outputFile=reports/integration.xml\n```"
679
647
  },
680
648
  {
681
649
  "id": "ff-coverage",
@@ -683,19 +651,25 @@
683
651
  "label": "Coverage of new code",
684
652
  "x": 1040,
685
653
  "y": 130,
686
- "category": "process",
687
- "threshold": "Coverage on new code at least {{COVERAGE}}%; the quality gate fails the pull request below it",
688
- "description": "The pipeline sends the coverage report to SonarQube and waits for the quality gate, whose condition is \"Coverage on New Code is less than {{COVERAGE}}%\".\n\nTool: SonarQube quality gate\n\n```properties\n# sonar-project.properties\nsonar.projectKey=shop-order-api\nsonar.sources=src\nsonar.tests=test\nsonar.javascript.lcov.reportPaths=coverage/lcov.info\nsonar.newCode.referenceBranch=main\n# fail the pipeline when the gate fails\nsonar.qualitygate.wait=true\n# Quality gate (in SonarQube): Coverage on New Code < 80% -> failed\n```"
654
+ "characteristic": "maintainability",
655
+ "scope": "atomic",
656
+ "cadence": "triggered",
657
+ "trigger": "pull-request",
658
+ "invocation": "automated",
659
+ "description": "The pipeline sends the coverage report to SonarQube and waits for the quality gate, whose condition \"Coverage on New Code is less than {{COVERAGE}}%\" is created once through the Web API, not in the properties file.\n\nThreshold: Coverage on new code at least {{COVERAGE}}%; the quality gate fails the pull request below it\n\nTool: SonarQube quality gate (sonar-scanner with sonar.qualitygate.wait, the condition through api/qualitygates/create_condition; SonarQube Cloud takes gateId and organization instead of gateName); for the JVM: the same with the JaCoCo report path\n\n```bash\n# sonar-project.properties, in the repository:\n# sonar.projectKey=shop-order-api\n# sonar.sources=src\n# sonar.tests=test\n# sonar.javascript.lcov.reportPaths=coverage/lcov.info\n# sonar.newCode.referenceBranch=main\n# sonar.qualitygate.wait=true\n# the gate's condition, created once (SonarQube Server; needs the Administer Quality Gates permission):\ncurl -fsS -u \"$SONAR_TOKEN:\" -X POST \"$SONAR_HOST_URL/api/qualitygates/create_condition\" \\\n --data-urlencode \"gateName=Shop\" --data-urlencode \"metric=new_coverage\" \\\n --data-urlencode \"op=LT\" --data-urlencode \"error={{COVERAGE}}\"\n```"
689
660
  },
690
661
  {
691
662
  "id": "ff-mutation",
692
663
  "type": "fitness-fn",
693
- "label": "Mutation score",
664
+ "label": "Mutation score on changed files",
694
665
  "x": 1040,
695
666
  "y": 260,
696
- "category": "process",
697
- "threshold": "Mutation score on changed code at least {{MUTATION}}%; the build breaks below it",
698
- "description": "Stryker runs incrementally on the files the pull request changes and breaks the build when the score falls below the threshold. On the JVM, PIT with mutationThreshold and the git-based scm goal does the same.\n\nTool: Stryker Mutator\n\n```json\n{\n \"$schema\": \"./node_modules/@stryker-mutator/core/schema/stryker-schema.json\",\n \"testRunner\": \"vitest\",\n \"mutate\": [\"src/**/*.ts\", \"!src/**/*.test.ts\"],\n \"incremental\": true,\n \"reporters\": [\"clear-text\", \"html\", \"json\"],\n \"thresholds\": { \"high\": 85, \"low\": 75, \"break\": 70 }\n}\n```",
667
+ "characteristic": "maintainability",
668
+ "scope": "atomic",
669
+ "cadence": "triggered",
670
+ "trigger": "pull-request",
671
+ "invocation": "automated",
672
+ "description": "Stryker runs incrementally over the source files the pull request changes (the mutate globs come from git diff) and breaks the build when the score falls below the threshold. On the JVM, PIT with mutationThreshold and the git-based scm goal does the same.\n\nThreshold: Mutation score on the files the pull request changes at least {{MUTATION}}%; the build breaks below it\n\nTool: Stryker Mutator (@stryker-mutator/vitest-runner); for the JVM: PIT with pitest-maven's scmMutationCoverage goal\n\n```bash\n# stryker.config.json, in the repository:\n# { \"testRunner\": \"vitest\", \"incremental\": true, \"reporters\": [\"clear-text\", \"html\", \"json\"],\n# \"thresholds\": { \"high\": 85, \"low\": 75, \"break\": {{MUTATION}} } }\nchanged=$(git diff --name-only origin/main...HEAD -- 'src/**/*.ts' | grep -v '\\.test\\.ts$' | paste -sd, -)\n[ -z \"$changed\" ] || npx stryker run --mutate \"$changed\"\n```",
699
673
  "hubWhen": {
700
674
  "GATE": [
701
675
  "mutation"
@@ -705,12 +679,15 @@
705
679
  {
706
680
  "id": "ff-unit-isolated",
707
681
  "type": "fitness-fn",
708
- "label": "Unit tests stay isolated",
682
+ "label": "Unit tests stay isolated and few are end-to-end",
709
683
  "x": 1040,
710
684
  "y": 390,
711
- "category": "structural",
712
- "threshold": "0 unit tests reach the network; unit tests at least 70% of all tests",
713
- "description": "The unit-test project disables network connections in its setup, so a unit test that reaches a server fails; a step in CI counts tests per suite from the JUnit reports and fails when unit tests are below 70%.\n\nTool: Vitest with nock\n\n```ts\n// test/unit/setup.ts (vitest.config.ts: test.setupFiles for the unit project)\nimport nock from 'nock'\nimport { afterAll, beforeAll } from 'vitest'\n\nbeforeAll(() => nock.disableNetConnect()) // any real HTTP call throws\nafterAll(() => nock.enableNetConnect())\n\n// CI: unit share from the JUnit reports\n// unit=$(xmllint --xpath 'sum(//testsuites/@tests)' reports/unit.xml)\n// all=$(xmllint --xpath 'sum(//testsuites/@tests)' reports/*.xml)\n// [ $((unit * 100 / all)) -ge 70 ]\n```",
685
+ "characteristic": "maintainability",
686
+ "scope": "atomic",
687
+ "cadence": "triggered",
688
+ "trigger": "pull-request",
689
+ "invocation": "automated",
690
+ "description": "The unit-test project disables network connections in its setup, so a unit test that reaches a server fails; a step in CI reads the JUnit reports, counts tests per suite and fails when the shares are off or a unit test took more than 100 ms.\n\nThreshold: 0 unit tests reach the network or run over 100 ms; unit tests at least 70% and end-to-end tests at most 10% of all tests\n\nTool: Vitest with nock 14 or later (which intercepts native fetch too) and xmllint over the JUnit reports; for the JVM: JUnit 5 with a SecurityManager-free network block through a test ArchUnit rule and the same report arithmetic\n\n```ts\n// test/unit/setup.ts (vitest.config.ts: test.setupFiles of the unit project)\nimport nock from 'nock'\nimport { afterAll, beforeAll } from 'vitest'\n\nbeforeAll(() => nock.disableNetConnect()) // any real HTTP call throws\nafterAll(() => nock.enableNetConnect())\n\n// CI, from the JUnit reports reports/unit.xml, reports/integration.xml, reports/e2e.xml:\n// count() { xmllint --xpath 'string(sum(//testsuite/@tests))' \"$1\"; }\n// unit=$(count reports/unit.xml); e2e=$(count reports/e2e.xml); all=$((unit + $(count reports/integration.xml) + e2e))\n// [ $((unit * 100 / all)) -ge 70 ] && [ $((e2e * 100 / all)) -le 10 ]\n// [ \"$(xmllint --xpath 'count(//testcase[@time > 0.1])' reports/unit.xml)\" = 0 ] # no unit test over 100 ms\n```",
714
691
  "hubWhen": {
715
692
  "SHAPE": [
716
693
  "pyramid"
@@ -723,9 +700,12 @@
723
700
  "label": "No in-memory database",
724
701
  "x": 1040,
725
702
  "y": 520,
726
- "category": "structural",
727
- "threshold": "0 test files import an in-memory database substitute",
728
- "description": "A dependency rule fails the build when a test imports an in-memory substitute for the database; the integration tests use Testcontainers with the production engine and version.\n\nTool: dependency-cruiser\n\n```js\n// .dependency-cruiser.cjs\nmodule.exports = {\n forbidden: [{\n name: 'no-in-memory-database',\n comment: 'ADR Testing trophy: integration tests use the real engine (Testcontainers)',\n severity: 'error',\n from: { path: '\\\\.(test|spec)\\\\.ts$' },\n to: { path: 'node_modules/(pg-mem|sqlite3|better-sqlite3|mongodb-memory-server)' },\n }],\n}\n```",
703
+ "characteristic": "maintainability",
704
+ "scope": "atomic",
705
+ "cadence": "triggered",
706
+ "trigger": "pull-request",
707
+ "invocation": "automated",
708
+ "description": "A dependency rule fails the build when a file under test or src imports an in-memory substitute for the database (helpers included, not only the test files); the integration tests use Testcontainers with the production engine and version.\n\nThreshold: 0 test or test-helper files import an in-memory database substitute\n\nTool: dependency-cruiser; for the JVM: an ArchUnit rule forbidding org.h2 in test classes\n\n```js\n// .dependency-cruiser.cjs\nmodule.exports = {\n forbidden: [{\n name: 'no-in-memory-database',\n comment: 'ADR Testing trophy: integration tests use the real engine (Testcontainers)',\n severity: 'error',\n from: { path: '^(test|src)/' },\n to: { path: '^node_modules/(pg-mem|sqlite3|better-sqlite3|mongodb-memory-server)/' },\n }],\n options: { tsConfig: { fileName: 'tsconfig.json' } },\n}\n```",
729
709
  "hubWhen": {
730
710
  "SHAPE": [
731
711
  "trophy"
@@ -733,17 +713,20 @@
733
713
  }
734
714
  },
735
715
  {
736
- "id": "ff-can-i-deploy",
716
+ "id": "ff-integration-share",
737
717
  "type": "fitness-fn",
738
- "label": "Contracts verified",
718
+ "label": "Integration tests carry the suite",
739
719
  "x": 1040,
740
720
  "y": 650,
741
- "category": "process",
742
- "threshold": "0 deployments of a version that has not verified the contracts of the consumers in the target environment",
743
- "description": "The deploy job asks the Pact Broker whether this version is compatible with what is deployed in the target environment, and stops when it is not; after deploying it records the deployment.\n\nTool: Pact Broker can-i-deploy (pact-broker CLI)\n\n```bash\npact-broker can-i-deploy \\\n --pacticipant order-api --version \"$GIT_SHA\" \\\n --to-environment production \\\n --broker-base-url \"$PACT_BROKER_URL\" --retry-while-unknown 6 --retry-interval 10\n\n# after a successful deploy\npact-broker record-deployment \\\n --pacticipant order-api --version \"$GIT_SHA\" --environment production\n```",
721
+ "characteristic": "maintainability",
722
+ "scope": "atomic",
723
+ "cadence": "triggered",
724
+ "trigger": "pull-request",
725
+ "invocation": "automated",
726
+ "description": "A step in CI reads the JUnit reports of the unit, integration and end-to-end runs, counts the tests per suite and fails when integration tests are below half of the total.\n\nThreshold: Integration tests at least 50% of all tests\n\nTool: xmllint over the JUnit reports in a shell step; for the JVM: the same over the surefire and failsafe reports\n\n```bash\nset -euo pipefail\ncount() { xmllint --xpath 'string(sum(//testsuite/@tests))' \"$1\"; }\nintegration=$(count reports/integration.xml)\nall=$(( $(count reports/unit.xml) + integration + $(count reports/e2e.xml) ))\necho \"integration tests: $integration of $all\"\n[ $((integration * 100 / all)) -ge 50 ] || { echo \"integration tests are below half of the suite (ADR A testing trophy)\"; exit 1; }\n```",
744
727
  "hubWhen": {
745
728
  "SHAPE": [
746
- "contract"
729
+ "trophy"
747
730
  ]
748
731
  }
749
732
  },
@@ -753,9 +736,12 @@
753
736
  "label": "Tests pass in any order",
754
737
  "x": 1040,
755
738
  "y": 780,
756
- "category": "process",
757
- "threshold": "The suite passes in 3 consecutive runs with random order and parallel workers",
758
- "description": "A nightly job runs the suite three times with shuffled order and a different seed each time; a failure prints the seed, so the order can be reproduced. JUnit 5: junit.jupiter.testmethod.order.default=org.junit.jupiter.api.MethodOrderer$Random; pytest: pytest-randomly.\n\nTool: Vitest (sequence.shuffle)\n\n```ts\n// vitest.config.ts\nimport { defineConfig } from 'vitest/config'\nexport default defineConfig({\n test: {\n sequence: { shuffle: true }, // files and tests in random order\n pool: 'threads',\n },\n})\n// nightly: for seed in 1 2 3; do npx vitest run --sequence.seed=$RANDOM || exit 1; done\n```",
739
+ "characteristic": "maintainability",
740
+ "scope": "atomic",
741
+ "cadence": "triggered",
742
+ "trigger": "nightly",
743
+ "invocation": "automated",
744
+ "description": "A nightly job runs the suite three times with shuffled order and a different seed each time; a failure prints the seed, so the order can be reproduced.\n\nThreshold: The suite passes in 3 consecutive runs with random order and parallel workers\n\nTool: Vitest (sequence.shuffle); for the JVM: JUnit 5 with junit.jupiter.testmethod.order.default set to MethodOrderer$Random; for Python: pytest-randomly\n\n```ts\n// vitest.config.ts\nimport { defineConfig } from 'vitest/config'\nexport default defineConfig({\n test: {\n sequence: { shuffle: true }, // files and tests in random order\n pool: 'threads',\n },\n})\n// nightly: for run in 1 2 3; do npx vitest run --sequence.seed=$RANDOM || exit 1; done\n```",
759
745
  "hubWhen": {
760
746
  "DATA": [
761
747
  "synthetic",
@@ -763,30 +749,67 @@
763
749
  ]
764
750
  }
765
751
  },
752
+ {
753
+ "id": "ff-seed-loads",
754
+ "type": "fitness-fn",
755
+ "label": "Seed loads on a fresh database",
756
+ "x": 1040,
757
+ "y": 910,
758
+ "characteristic": "maintainability",
759
+ "scope": "atomic",
760
+ "cadence": "triggered",
761
+ "trigger": "pull-request",
762
+ "invocation": "automated",
763
+ "description": "Vitest's global setup starts PostgreSQL in a container, runs the migrations and loads every seed file; a seed that no longer fits the schema fails the setup and with it the run, so the seed cannot drift from the migrations.\n\nThreshold: Every test run starts from a fresh database with the current migrations and the seed under test/seed loaded without error\n\nTool: Vitest globalSetup with Testcontainers (@testcontainers/postgresql) and pg; for the JVM: a Testcontainers JDBC URL with an init script\n\n```ts\n// test/globalSetup.ts (vitest.config.ts: test.globalSetup) — a fresh, migrated database with the seed loaded, for every run\nimport { execFileSync } from 'node:child_process'\nimport { readdirSync, readFileSync } from 'node:fs'\nimport { PostgreSqlContainer, type StartedPostgreSqlContainer } from '@testcontainers/postgresql'\nimport pg from 'pg'\n\nlet container: StartedPostgreSqlContainer\n\nexport async function setup() {\n container = await new PostgreSqlContainer('postgres:17').start()\n process.env.DATABASE_URL = container.getConnectionUri()\n execFileSync('npm', ['run', 'migrate'], { stdio: 'inherit', env: process.env }) // the current migrations\n const client = new pg.Client({ connectionString: process.env.DATABASE_URL })\n await client.connect()\n for (const file of readdirSync('test/seed').filter((f) => f.endsWith('.sql')).sort())\n await client.query(readFileSync(`test/seed/${file}`, 'utf8')) // the seed, changed only through reviewed pull requests\n await client.end()\n}\n\nexport async function teardown() {\n await container.stop()\n}\n```",
764
+ "hubWhen": {
765
+ "DATA": [
766
+ "fixtures"
767
+ ]
768
+ }
769
+ },
766
770
  {
767
771
  "id": "ff-pii-scan",
768
772
  "type": "fitness-fn",
769
773
  "label": "Test copies hold no personal data",
770
774
  "x": 1040,
771
- "y": 910,
772
- "category": "operational",
773
- "threshold": "0 personal-data findings in a sample of 10,000 rows per table of each copy; a copy with findings is not released to test environments",
774
- "description": "Before a masked copy is released, a job samples every text column and runs Presidio's analyzer over it; any finding stops the release of the copy.\n\nTool: Microsoft Presidio\n\n```python\nfrom presidio_analyzer import AnalyzerEngine\nanalyzer = AnalyzerEngine()\nENTITIES = [\"PERSON\", \"EMAIL_ADDRESS\", \"PHONE_NUMBER\", \"IBAN_CODE\", \"CREDIT_CARD\", \"LOCATION\"]\n\ndef findings(rows):\n for table, column, value in rows: # sampled text columns of the copy\n for hit in analyzer.analyze(text=str(value), entities=ENTITIES, language=\"en\"):\n if hit.score >= 0.6:\n yield table, column, hit.entity_type\n\nhits = list(findings(sample_rows(limit_per_table=10_000)))\nassert not hits, f\"personal data in the test copy: {hits[:20]}\"\n```",
775
+ "y": 1040,
776
+ "characteristic": "security",
777
+ "scope": "atomic",
778
+ "cadence": "triggered",
779
+ "trigger": "release",
780
+ "invocation": "automated",
781
+ "description": "Before a masked copy is released, a job samples every text column and runs Presidio's analyzer over it; any finding stops the release of the copy.\n\nThreshold: 0 personal-data findings in a sample of 10,000 rows per table of each copy; a copy with findings is not released to test environments\n\nTool: Microsoft Presidio (presidio-analyzer) in a Python job of the copy pipeline\n\n```python\nfrom presidio_analyzer import AnalyzerEngine\nanalyzer = AnalyzerEngine()\nENTITIES = [\"PERSON\", \"EMAIL_ADDRESS\", \"PHONE_NUMBER\", \"IBAN_CODE\", \"CREDIT_CARD\", \"LOCATION\"]\n\ndef findings(rows):\n for table, column, value in rows: # sampled text columns of the copy\n for hit in analyzer.analyze(text=str(value), entities=ENTITIES, language=\"en\"):\n if hit.score >= 0.6:\n yield table, column, hit.entity_type\n\nhits = list(findings(sample_rows(limit_per_table=10_000)))\nassert not hits, f\"personal data in the test copy: {hits[:20]}\"\n```",
775
782
  "hubWhen": {
776
783
  "DATA": [
777
784
  "masked"
778
785
  ]
779
786
  }
780
787
  },
788
+ {
789
+ "id": "ff-journeys-covered",
790
+ "type": "fitness-fn",
791
+ "label": "Every journey has a test",
792
+ "x": 1040,
793
+ "y": 1170,
794
+ "characteristic": "maintainability",
795
+ "scope": "atomic",
796
+ "cadence": "triggered",
797
+ "trigger": "pull-request",
798
+ "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```"
800
+ },
781
801
  {
782
802
  "id": "ff-e2e-gate",
783
803
  "type": "fitness-fn",
784
804
  "label": "Journeys gate the release",
785
805
  "x": 1040,
786
- "y": 1040,
787
- "category": "process",
788
- "threshold": "All end-to-end tests of {{JOURNEYS}} pass before the build is merged or promoted; 0 skipped",
789
- "description": "Playwright runs the journeys against the environment the pipeline deployed (an ephemeral one per pull request, or staging after the merge); its job is a required check for the merge or for the promotion.\n\nTool: Playwright\n\n```ts\n// playwright.config.ts\nimport { defineConfig } from '@playwright/test'\nexport default defineConfig({\n testDir: 'e2e',\n forbidOnly: true, // no test.only left in the gate\n retries: 0,\n reporter: [['junit', { outputFile: 'reports/e2e.xml' }]],\n use: { baseURL: process.env.E2E_BASE_URL, trace: 'retain-on-failure' },\n})\n```",
806
+ "y": 1300,
807
+ "characteristic": "functional-suitability",
808
+ "scope": "holistic",
809
+ "cadence": "triggered",
810
+ "trigger": "pull-request",
811
+ "invocation": "automated",
812
+ "description": "Playwright runs the journeys against the environment the pipeline deployed (an ephemeral one per pull request, or staging after the merge) with no retries and no test.only; a CI step reads the JUnit report and fails on a skipped test. The job is a required check for the merge, or the gate of the promotion.\n\nThreshold: All end-to-end tests pass before the build is merged or promoted, with 0 skipped\n\nTool: Playwright (junit reporter) with xmllint in a shell step; for the JVM: Playwright for Java with the same report\n\n```ts\n// playwright.config.ts\nimport { defineConfig } from '@playwright/test'\nexport default defineConfig({\n testDir: 'e2e',\n forbidOnly: true, // no test.only left in the gate\n retries: 0,\n reporter: [['junit', { outputFile: 'reports/e2e.xml' }]],\n use: { baseURL: process.env.E2E_BASE_URL, trace: 'retain-on-failure' },\n})\n// CI, after npx playwright test:\n// [ \"$(xmllint --xpath 'string(//testsuites/@skipped)' reports/e2e.xml)\" = 0 ] || { echo \"skipped end-to-end tests\"; exit 1; }\n```",
790
813
  "hubWhen": {
791
814
  "E2E": [
792
815
  "pipeline",
@@ -799,25 +822,48 @@
799
822
  "type": "fitness-fn",
800
823
  "label": "Journeys checked in production",
801
824
  "x": 1040,
802
- "y": 1170,
803
- "category": "operational",
804
- "threshold": "Each journey of {{JOURNEYS}} runs every 5 minutes from 2 locations; 2 failures in a row roll the release back",
805
- "description": "The Playwright journeys run as Checkly browser checks against production after each deploy and every 5 minutes; an alert channel triggers the rollback.\n\nTool: Checkly (Playwright browser checks)\n\n```ts\n// checkly/checkout.check.ts\nimport { BrowserCheck, Frequency } from 'checkly/constructs'\nnew BrowserCheck('checkout-journey', {\n name: 'Checkout journey',\n frequency: Frequency.EVERY_5M,\n locations: ['eu-west-1', 'eu-central-1'],\n degradedResponseTime: 8000,\n maxResponseTime: 15000,\n code: { entrypoint: '../e2e/checkout.spec.ts' },\n})\n```",
825
+ "y": 1430,
826
+ "characteristic": "reliability",
827
+ "scope": "holistic",
828
+ "cadence": "continual",
829
+ "invocation": "automated",
830
+ "description": "The Playwright journeys run as Checkly browser checks, one per journey, every 5 minutes from two locations; the escalation policy alerts after two failed runs in a row and the alert channel is a webhook on the deployment pipeline that rolls the release back. The deploy job deploys the checks and triggers them against the new release at once.\n\nThreshold: Each journey runs after every deploy and every 5 minutes from 2 locations; 2 failed runs in a row call the rollback webhook\n\nTool: Checkly CLI (checkly/constructs; npx checkly deploy and npx checkly trigger in the deploy job)\n\n```ts\n// checkly/checkout.check.ts — one BrowserCheck per journey of: {{JOURNEYS}}\nimport { AlertEscalationBuilder, BrowserCheck, Frequency, WebhookAlertChannel } from 'checkly/constructs'\n\nconst rollback = new WebhookAlertChannel('rollback-webhook', {\n name: 'Roll back the release',\n url: process.env.ROLLBACK_WEBHOOK_URL!, // the deployment pipeline's rollback endpoint\n method: 'POST',\n})\n\nnew BrowserCheck('checkout-journey', {\n name: 'Checkout journey',\n frequency: Frequency.EVERY_5M,\n locations: ['eu-west-1', 'eu-central-1'],\n code: { entrypoint: '../e2e/checkout.spec.ts' },\n alertChannels: [rollback],\n alertEscalationPolicy: AlertEscalationBuilder.runBasedEscalation(2), // two failed runs in a row alert, and the webhook rolls back\n})\n// deploy job, after the deploy: npx checkly deploy && npx checkly trigger (runs the checks against the new release at once)\n```",
806
831
  "hubWhen": {
807
832
  "E2E": [
808
833
  "production"
809
834
  ]
810
835
  }
811
836
  },
837
+ {
838
+ "id": "ff-flaky-report",
839
+ "type": "fitness-fn",
840
+ "label": "Flaky tests enter quarantine",
841
+ "x": 1040,
842
+ "y": 1560,
843
+ "characteristic": "maintainability",
844
+ "scope": "atomic",
845
+ "cadence": "triggered",
846
+ "trigger": "nightly",
847
+ "invocation": "automated",
848
+ "description": "The nightly run retries a failed test once, only to tell a flake from a failure; a reporter lists the tests that passed on retry in reports/flaky.json and fails the run for any that is not yet in quarantine.json, so a flake is entered within a day or the nightly stays red. The gate itself skips the tests tagged @quarantine.\n\nThreshold: 0 tests that passed only on retry in the nightly run without an entry in quarantine.json\n\nTool: Vitest (retry: 1 with a custom reporter reading each test's diagnostic().flaky); for the JVM: Gradle's test-retry plugin with failOnPassedAfterRetry off and its flaky report\n\n```ts\n// test/flakyReporter.ts (nightly vitest.config.ts: test.retry = 1, test.reporters = ['default', new FlakyReporter()])\nimport { writeFileSync } from 'node:fs'\nimport type { Reporter, TestModule } from 'vitest/node'\nimport quarantine from '../quarantine.json' // [{ \"test\": \"...\", \"owner\": \"...\", \"ticket\": \"...\", \"since\": \"2026-10-01\" }]\n\nexport class FlakyReporter implements Reporter {\n onTestRunEnd(modules: ReadonlyArray<TestModule>) {\n const flaky = modules.flatMap((m) => [...m.children.allTests()]).filter((t) => t.diagnostic()?.flaky).map((t) => t.fullName)\n writeFileSync('reports/flaky.json', JSON.stringify(flaky, null, 2))\n const unquarantined = flaky.filter((name) => !quarantine.some((q) => q.test === name))\n if (unquarantined.length) {\n console.error('flaky tests not yet in quarantine (list them within 1 working day):\\n' + unquarantined.join('\\n'))\n process.exitCode = 1\n }\n }\n}\n```",
849
+ "hubWhen": {
850
+ "FLAKY": [
851
+ "quarantine"
852
+ ]
853
+ }
854
+ },
812
855
  {
813
856
  "id": "ff-quarantine",
814
857
  "type": "fitness-fn",
815
858
  "label": "Quarantine is emptied",
816
859
  "x": 1040,
817
- "y": 1300,
818
- "category": "process",
819
- "threshold": "0 tests in quarantine for more than {{QUARANTINE_DAYS}} days; every entry has an owner and a ticket",
820
- "description": "Quarantined tests are listed in quarantine.json and tagged @quarantine, which the gate skips and a separate non-blocking job runs. A test over the list fails the build when an entry is older than the deadline or has no owner.\n\nTool: Vitest (a test over quarantine.json)\n\n```ts\nimport { expect, it } from 'vitest'\nimport quarantine from '../quarantine.json' // [{ test, owner, ticket, since: \"2026-10-01\" }]\n\nconst DAYS = Number(process.env.QUARANTINE_DAYS ?? 7)\n\nit('no test stays in quarantine past the deadline', () => {\n const overdue = quarantine.filter((q) =>\n !q.owner || !q.ticket || (Date.now() - Date.parse(q.since)) / 86_400_000 > DAYS)\n expect(overdue).toEqual([])\n})\n```",
860
+ "y": 1690,
861
+ "characteristic": "maintainability",
862
+ "scope": "atomic",
863
+ "cadence": "triggered",
864
+ "trigger": "pull-request",
865
+ "invocation": "automated",
866
+ "description": "Quarantined tests are listed in quarantine.json and tagged @quarantine, which the gate skips and a separate non-blocking job runs. A test over the list fails the build when an entry is older than the deadline or has no owner or ticket.\n\nThreshold: 0 tests in quarantine for more than {{QUARANTINE_DAYS}} days; every entry has an owner and a ticket\n\nTool: Vitest (a test over quarantine.json); for the JVM: the same test with JUnit 5 over the file\n\n```ts\nimport { expect, it } from 'vitest'\nimport quarantine from '../quarantine.json' // [{ \"test\": \"...\", \"owner\": \"...\", \"ticket\": \"...\", \"since\": \"2026-10-01\" }]\n\nconst MAX_DAYS = {{QUARANTINE_DAYS}}\n\nit('no test stays in quarantine past the deadline', () => {\n const overdue = quarantine.filter((q) =>\n !q.owner || !q.ticket || (Date.now() - Date.parse(q.since)) / 86_400_000 > MAX_DAYS)\n expect(overdue).toEqual([])\n})\n```",
821
867
  "hubWhen": {
822
868
  "FLAKY": [
823
869
  "quarantine"
@@ -829,10 +875,13 @@
829
875
  "type": "fitness-fn",
830
876
  "label": "Flaky tests fail the build",
831
877
  "x": 1040,
832
- "y": 1430,
833
- "category": "process",
834
- "threshold": "0 tests that pass only on retry; such a test fails the build",
835
- "description": "The test-retry plugin reruns a failed test once only to tell a flake from a real failure; with failOnPassedAfterRetry a test that passes on retry still fails the build and is reported as flaky.\n\nTool: Gradle test-retry plugin\n\n```kotlin\n// build.gradle.kts\nplugins { id(\"org.gradle.test-retry\") version \"1.6.2\" }\n\ntasks.test {\n retry {\n maxRetries.set(1)\n failOnPassedAfterRetry.set(true) // a flake is a failure\n }\n}\n```",
878
+ "y": 1820,
879
+ "characteristic": "maintainability",
880
+ "scope": "atomic",
881
+ "cadence": "triggered",
882
+ "trigger": "pull-request",
883
+ "invocation": "automated",
884
+ "description": "The run retries a failed test once, only to tell a flake from a real failure; a reporter fails the build when any test passed on retry and names it as flaky.\n\nThreshold: 0 tests that pass only on retry; such a test fails the build\n\nTool: Vitest (retry: 1 with a custom reporter reading each test's diagnostic().flaky); for the JVM: Gradle's test-retry plugin with failOnPassedAfterRetry\n\n```ts\n// test/flakyReporter.ts (vitest.config.ts: test.retry = 1, test.reporters = ['default', new FlakyReporter()])\nimport type { Reporter, TestModule } from 'vitest/node'\n\nexport class FlakyReporter implements Reporter {\n onTestRunEnd(modules: ReadonlyArray<TestModule>) {\n const flaky = modules.flatMap((m) => [...m.children.allTests()]).filter((t) => t.diagnostic()?.flaky).map((t) => t.fullName)\n if (flaky.length) {\n console.error('flaky tests (passed only on retry); fix or delete them before merging anything else:\\n' + flaky.join('\\n'))\n process.exitCode = 1\n }\n }\n}\n```",
836
885
  "hubWhen": {
837
886
  "FLAKY": [
838
887
  "zero"
@@ -871,12 +920,6 @@
871
920
  "targetId": "need",
872
921
  "relationType": "derives"
873
922
  },
874
- {
875
- "id": "req-contracts--derives--need",
876
- "sourceId": "req-contracts",
877
- "targetId": "need",
878
- "relationType": "derives"
879
- },
880
923
  {
881
924
  "id": "req-own-data--derives--need",
882
925
  "sourceId": "req-own-data",
@@ -955,12 +998,6 @@
955
998
  "targetId": "req-trophy",
956
999
  "relationType": "verifies"
957
1000
  },
958
- {
959
- "id": "sc-contracts--verifies--req-contracts",
960
- "sourceId": "sc-contracts",
961
- "targetId": "req-contracts",
962
- "relationType": "verifies"
963
- },
964
1001
  {
965
1002
  "id": "sc-own-data--verifies--req-own-data",
966
1003
  "sourceId": "sc-own-data",
@@ -1021,12 +1058,6 @@
1021
1058
  "targetId": "adr-trophy",
1022
1059
  "relationType": "implements"
1023
1060
  },
1024
- {
1025
- "id": "ff-pr-time--implements--adr-contract",
1026
- "sourceId": "ff-pr-time",
1027
- "targetId": "adr-contract",
1028
- "relationType": "implements"
1029
- },
1030
1061
  {
1031
1062
  "id": "ff-coverage--implements--adr-pyramid",
1032
1063
  "sourceId": "ff-coverage",
@@ -1039,12 +1070,6 @@
1039
1070
  "targetId": "adr-trophy",
1040
1071
  "relationType": "implements"
1041
1072
  },
1042
- {
1043
- "id": "ff-coverage--implements--adr-contract",
1044
- "sourceId": "ff-coverage",
1045
- "targetId": "adr-contract",
1046
- "relationType": "implements"
1047
- },
1048
1073
  {
1049
1074
  "id": "ff-mutation--implements--adr-pyramid",
1050
1075
  "sourceId": "ff-mutation",
@@ -1057,12 +1082,6 @@
1057
1082
  "targetId": "adr-trophy",
1058
1083
  "relationType": "implements"
1059
1084
  },
1060
- {
1061
- "id": "ff-mutation--implements--adr-contract",
1062
- "sourceId": "ff-mutation",
1063
- "targetId": "adr-contract",
1064
- "relationType": "implements"
1065
- },
1066
1085
  {
1067
1086
  "id": "ff-unit-isolated--implements--adr-pyramid",
1068
1087
  "sourceId": "ff-unit-isolated",
@@ -1076,9 +1095,9 @@
1076
1095
  "relationType": "implements"
1077
1096
  },
1078
1097
  {
1079
- "id": "ff-can-i-deploy--implements--adr-contract",
1080
- "sourceId": "ff-can-i-deploy",
1081
- "targetId": "adr-contract",
1098
+ "id": "ff-integration-share--implements--adr-trophy",
1099
+ "sourceId": "ff-integration-share",
1100
+ "targetId": "adr-trophy",
1082
1101
  "relationType": "implements"
1083
1102
  },
1084
1103
  {
@@ -1094,9 +1113,15 @@
1094
1113
  "relationType": "implements"
1095
1114
  },
1096
1115
  {
1097
- "id": "ff-shuffle--implements--adr-contract",
1098
- "sourceId": "ff-shuffle",
1099
- "targetId": "adr-contract",
1116
+ "id": "ff-seed-loads--implements--adr-pyramid",
1117
+ "sourceId": "ff-seed-loads",
1118
+ "targetId": "adr-pyramid",
1119
+ "relationType": "implements"
1120
+ },
1121
+ {
1122
+ "id": "ff-seed-loads--implements--adr-trophy",
1123
+ "sourceId": "ff-seed-loads",
1124
+ "targetId": "adr-trophy",
1100
1125
  "relationType": "implements"
1101
1126
  },
1102
1127
  {
@@ -1112,9 +1137,15 @@
1112
1137
  "relationType": "implements"
1113
1138
  },
1114
1139
  {
1115
- "id": "ff-pii-scan--implements--adr-contract",
1116
- "sourceId": "ff-pii-scan",
1117
- "targetId": "adr-contract",
1140
+ "id": "ff-journeys-covered--implements--adr-pyramid",
1141
+ "sourceId": "ff-journeys-covered",
1142
+ "targetId": "adr-pyramid",
1143
+ "relationType": "implements"
1144
+ },
1145
+ {
1146
+ "id": "ff-journeys-covered--implements--adr-trophy",
1147
+ "sourceId": "ff-journeys-covered",
1148
+ "targetId": "adr-trophy",
1118
1149
  "relationType": "implements"
1119
1150
  },
1120
1151
  {
@@ -1129,12 +1160,6 @@
1129
1160
  "targetId": "adr-trophy",
1130
1161
  "relationType": "implements"
1131
1162
  },
1132
- {
1133
- "id": "ff-e2e-gate--implements--adr-contract",
1134
- "sourceId": "ff-e2e-gate",
1135
- "targetId": "adr-contract",
1136
- "relationType": "implements"
1137
- },
1138
1163
  {
1139
1164
  "id": "ff-synthetic--implements--adr-pyramid",
1140
1165
  "sourceId": "ff-synthetic",
@@ -1148,9 +1173,15 @@
1148
1173
  "relationType": "implements"
1149
1174
  },
1150
1175
  {
1151
- "id": "ff-synthetic--implements--adr-contract",
1152
- "sourceId": "ff-synthetic",
1153
- "targetId": "adr-contract",
1176
+ "id": "ff-flaky-report--implements--adr-pyramid",
1177
+ "sourceId": "ff-flaky-report",
1178
+ "targetId": "adr-pyramid",
1179
+ "relationType": "implements"
1180
+ },
1181
+ {
1182
+ "id": "ff-flaky-report--implements--adr-trophy",
1183
+ "sourceId": "ff-flaky-report",
1184
+ "targetId": "adr-trophy",
1154
1185
  "relationType": "implements"
1155
1186
  },
1156
1187
  {
@@ -1165,12 +1196,6 @@
1165
1196
  "targetId": "adr-trophy",
1166
1197
  "relationType": "implements"
1167
1198
  },
1168
- {
1169
- "id": "ff-quarantine--implements--adr-contract",
1170
- "sourceId": "ff-quarantine",
1171
- "targetId": "adr-contract",
1172
- "relationType": "implements"
1173
- },
1174
1199
  {
1175
1200
  "id": "ff-flaky-fails--implements--adr-pyramid",
1176
1201
  "sourceId": "ff-flaky-fails",
@@ -1182,12 +1207,6 @@
1182
1207
  "sourceId": "ff-flaky-fails",
1183
1208
  "targetId": "adr-trophy",
1184
1209
  "relationType": "implements"
1185
- },
1186
- {
1187
- "id": "ff-flaky-fails--implements--adr-contract",
1188
- "sourceId": "ff-flaky-fails",
1189
- "targetId": "adr-contract",
1190
- "relationType": "implements"
1191
1210
  }
1192
1211
  ]
1193
1212
  }