@radicaltools/mcp 0.6.1 → 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-H2EUPF2D.js → chunk-DQYB4GAU.js} +13 -6
  3. package/dist/{chunk-CKZSHFE5.js → chunk-U5QA6HBS.js} +1 -1
  4. package/dist/{dist-3IBN4PU7.js → dist-MPDDP2CV.js} +2 -2
  5. package/dist/{elkLayout-7MVDIEFO.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 +1862 -1066
  65. package/dist/{pdfjs-DDCLOUBH.js → pdfjs-PK44HJZP.js} +1 -1
  66. package/package.json +1 -1
@@ -19,7 +19,60 @@
19
19
  "id": "frontend-stack",
20
20
  "trigger": "LIST NODES WHERE type = \"webapp\" AND external != true",
21
21
  "why": "these are web front ends, so what they are built with, how they render, how much JavaScript they may ship, and which browsers they support has to be decided.",
22
- "group": "technology"
22
+ "group": "technology",
23
+ "scope": {
24
+ "group": "technology",
25
+ "questions": [
26
+ {
27
+ "key": "STANDARDS",
28
+ "label": "Does the organisation keep technology standards?",
29
+ "default": "no",
30
+ "hint": "A tech radar records which technologies to adopt, try, hold or retire.",
31
+ "options": [
32
+ {
33
+ "value": "no",
34
+ "label": "no",
35
+ "description": "Each system picks its own technologies."
36
+ },
37
+ {
38
+ "value": "yes",
39
+ "label": "yes",
40
+ "description": "The organisation keeps technology standards or a tech radar that systems follow."
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "key": "TEAMS",
46
+ "label": "How many teams choose technology?",
47
+ "default": "one",
48
+ "hint": "Several teams choosing alone end up with many stacks to keep up.",
49
+ "options": [
50
+ {
51
+ "value": "one",
52
+ "label": "one team",
53
+ "description": "One team chooses for the whole system."
54
+ },
55
+ {
56
+ "value": "several",
57
+ "label": "several teams",
58
+ "description": "Several teams each choose for their parts."
59
+ }
60
+ ]
61
+ }
62
+ ],
63
+ "when": [
64
+ {
65
+ "STANDARDS": [
66
+ "yes"
67
+ ]
68
+ },
69
+ {
70
+ "TEAMS": [
71
+ "several"
72
+ ]
73
+ }
74
+ ]
75
+ }
23
76
  },
24
77
  "sources": [
25
78
  {
@@ -120,7 +173,12 @@
120
173
  "label": "at build time (static generation)",
121
174
  "description": "Pages are built in advance and served from a CDN, rebuilt when content changes. Pick it for content that is the same for everyone and changes at most a few times an hour (marketing, documentation, catalogues). Not with htmx."
122
175
  }
123
- ]
176
+ ],
177
+ "scopeWhen": {
178
+ "STANDARDS": [
179
+ "yes"
180
+ ]
181
+ }
124
182
  },
125
183
  {
126
184
  "key": "DESIGN",
@@ -305,6 +363,11 @@
305
363
  "hubWhen": {
306
364
  "DESIGN": [
307
365
  "own"
366
+ ],
367
+ "RENDERING": [
368
+ "spa",
369
+ "ssr",
370
+ "static"
308
371
  ]
309
372
  }
310
373
  },
@@ -320,6 +383,11 @@
320
383
  "hubWhen": {
321
384
  "DESIGN": [
322
385
  "library"
386
+ ],
387
+ "RENDERING": [
388
+ "spa",
389
+ "ssr",
390
+ "static"
323
391
  ]
324
392
  }
325
393
  },
@@ -335,6 +403,11 @@
335
403
  "hubWhen": {
336
404
  "DESIGN": [
337
405
  "utility"
406
+ ],
407
+ "RENDERING": [
408
+ "spa",
409
+ "ssr",
410
+ "static"
338
411
  ]
339
412
  }
340
413
  },
@@ -346,7 +419,14 @@
346
419
  "y": 1170,
347
420
  "ears_type": "ubiquitous",
348
421
  "action": "work in every browser of {{BROWSERS}}, with the main journeys tested in Chromium, Firefox and WebKit on every pull request and 0 unsupported language or web features shipped without a polyfill",
349
- "rationale": "An explicit browser list lets the build ship only the transpilation and polyfills needed, and the lint catch a feature the list does not have (Browserslist)."
422
+ "rationale": "An explicit browser list lets the build ship only the transpilation and polyfills needed, and the lint catch a feature the list does not have (Browserslist).",
423
+ "hubWhen": {
424
+ "RENDERING": [
425
+ "spa",
426
+ "ssr",
427
+ "static"
428
+ ]
429
+ }
350
430
  },
351
431
  {
352
432
  "id": "req-unsupported",
@@ -361,6 +441,11 @@
361
441
  "hubWhen": {
362
442
  "BROWSERS": [
363
443
  "modern"
444
+ ],
445
+ "RENDERING": [
446
+ "spa",
447
+ "ssr",
448
+ "static"
364
449
  ]
365
450
  }
366
451
  },
@@ -488,6 +573,11 @@
488
573
  "hubWhen": {
489
574
  "DESIGN": [
490
575
  "own"
576
+ ],
577
+ "RENDERING": [
578
+ "spa",
579
+ "ssr",
580
+ "static"
491
581
  ]
492
582
  }
493
583
  },
@@ -503,6 +593,11 @@
503
593
  "hubWhen": {
504
594
  "DESIGN": [
505
595
  "library"
596
+ ],
597
+ "RENDERING": [
598
+ "spa",
599
+ "ssr",
600
+ "static"
506
601
  ]
507
602
  }
508
603
  },
@@ -518,6 +613,11 @@
518
613
  "hubWhen": {
519
614
  "DESIGN": [
520
615
  "utility"
616
+ ],
617
+ "RENDERING": [
618
+ "spa",
619
+ "ssr",
620
+ "static"
521
621
  ]
522
622
  }
523
623
  },
@@ -529,7 +629,14 @@
529
629
  "y": 1170,
530
630
  "given": "the browser list",
531
631
  "when": "a change uses a web feature a listed browser lacks",
532
- "then": "the compatibility lint fails unless a polyfill is configured"
632
+ "then": "the compatibility lint fails unless a polyfill is configured",
633
+ "hubWhen": {
634
+ "RENDERING": [
635
+ "spa",
636
+ "ssr",
637
+ "static"
638
+ ]
639
+ }
533
640
  },
534
641
  {
535
642
  "id": "sc-unsupported",
@@ -543,6 +650,11 @@
543
650
  "hubWhen": {
544
651
  "BROWSERS": [
545
652
  "modern"
653
+ ],
654
+ "RENDERING": [
655
+ "spa",
656
+ "ssr",
657
+ "static"
546
658
  ]
547
659
  }
548
660
  },
@@ -571,7 +683,7 @@
571
683
  "status": "accepted",
572
684
  "date": "",
573
685
  "context": "This element is a web front end that people use in their own browsers, on their own devices and networks. The forces: every kilobyte of JavaScript is downloaded, parsed and run on the user's phone, and mid-range phones on mobile networks are where most budgets break; search engines and first visits reward content in the first HTML response, while app-like screens favour rendering in the browser; a framework brings its ecosystem, hiring pool and release cadence, and its majors reach end of support on published dates; a shared design system keeps screens consistent and accessible, but costs effort to build and keep; and the browsers to support decide which features and polyfills ship. How fast pages feel on phones and who can use them are decided in the packs of the UX & Accessibility group.",
574
- "decision": "The front end is built with React in TypeScript (strict). Rendering: {{RENDERING}}: Next.js (App Router, server components) for server rendering and static generation, Vite with React Router for a single-page app. Data fetching with TanStack Query; forms with React Hook Form. Design system: {{DESIGN}}. Browsers: {{BROWSERS}}. JavaScript budget: {{JS_KB}} KB per route, compressed. The Core Web Vitals budget, Reflow and touch target size are decided in the Mobile and perceived performance pack, and conformance to WCAG 2.2 AA in the Accessibility pack, both of the UX & Accessibility group. Dependency updates: as decided in the Dependency hygiene pack. Choosing Next.js or React Router (framework mode): Next.js for the widest ecosystem and hosting on Vercel or Node; React Router when you want web-standard loaders and fewer conventions. Versions tracked through endoflife.date (react, nextjs), each major replaced at least {{EOL_DAYS}} days before its end of support.",
686
+ "decision": "The front end is built with React in TypeScript (strict). Rendering: Next.js (App Router, server components) for server rendering and static generation, Vite with React Router for a single-page app. Data fetching with TanStack Query; forms with React Hook Form. Design system: {{DESIGN}}. Browsers: {{BROWSERS}}. JavaScript budget: {{JS_KB}} KB per route, compressed. The Core Web Vitals budget, Reflow and touch target size are decided in the Mobile and perceived performance pack, and conformance to WCAG 2.2 AA in the Accessibility pack, both of the UX & Accessibility group. Dependency updates: as decided in the Dependency hygiene pack. Choosing Next.js or React Router (framework mode): Next.js for the widest ecosystem and hosting on Vercel or Node; React Router when you want web-standard loaders and fewer conventions. Versions tracked through endoflife.date (react, nextjs), each major replaced at least {{EOL_DAYS}} days before its end of support.",
575
687
  "consequences": "• The largest ecosystem of components and libraries, and the largest hiring pool.\n• React itself is only the view: routing, data, forms and state are choices to make and keep current.\n• Server components cut the JavaScript sent, but add a server and a new mental model.\n• Next.js majors arrive roughly yearly and change conventions; upgrades are planned work.",
576
688
  "alternatives": "1. Angular: everything included and one way of doing it, heavier.\n2. Vue with Nuxt: similar capabilities, gentler learning curve, smaller ecosystem.\n3. Svelte with SvelteKit: smaller bundles, smaller ecosystem.",
577
689
  "hubWhen": {
@@ -590,7 +702,7 @@
590
702
  "status": "accepted",
591
703
  "date": "",
592
704
  "context": "This element is a web front end that people use in their own browsers, on their own devices and networks. The forces: every kilobyte of JavaScript is downloaded, parsed and run on the user's phone, and mid-range phones on mobile networks are where most budgets break; search engines and first visits reward content in the first HTML response, while app-like screens favour rendering in the browser; a framework brings its ecosystem, hiring pool and release cadence, and its majors reach end of support on published dates; a shared design system keeps screens consistent and accessible, but costs effort to build and keep; and the browsers to support decide which features and polyfills ship. How fast pages feel on phones and who can use them are decided in the packs of the UX & Accessibility group.",
593
- "decision": "The front end is built with Angular in TypeScript (strict), with standalone components, signals and the Angular CLI (esbuild). Rendering: {{RENDERING}}: Angular SSR with hydration for server rendering, prerendering for static pages, the default build for a single-page app. Design system: {{DESIGN}} (Angular Material and the CDK when adopting a library). Browsers: {{BROWSERS}}. JavaScript budget: {{JS_KB}} KB per route, compressed. The Core Web Vitals budget, Reflow and touch target size are decided in the Mobile and perceived performance pack, and conformance to WCAG 2.2 AA in the Accessibility pack, both of the UX & Accessibility group. Dependency updates: as decided in the Dependency hygiene pack. The JavaScript budget is also set in angular.json budgets. Each major is supported for 18 months (6 active, 12 LTS), so the front end moves one major at a time with ng update, at least {{EOL_DAYS}} days before the end of support tracked on endoflife.date (angular).",
705
+ "decision": "The front end is built with Angular in TypeScript (strict), with standalone components, signals and the Angular CLI (esbuild). Rendering: Angular SSR with hydration for server rendering, prerendering for static pages, the default build for a single-page app. Design system: {{DESIGN}} (Angular Material and the CDK when adopting a library). Browsers: {{BROWSERS}}. JavaScript budget: {{JS_KB}} KB per route, compressed. The Core Web Vitals budget, Reflow and touch target size are decided in the Mobile and perceived performance pack, and conformance to WCAG 2.2 AA in the Accessibility pack, both of the UX & Accessibility group. Dependency updates: as decided in the Dependency hygiene pack. The JavaScript budget is also set in angular.json budgets. Each major is supported for 18 months (6 active, 12 LTS), so the front end moves one major at a time with ng update, at least {{EOL_DAYS}} days before the end of support tracked on endoflife.date (angular).",
594
706
  "consequences": "• Routing, forms, HTTP, testing and i18n come with the framework: one way of doing things across teams.\n• Larger initial bundles than Svelte or Vue unless routes are lazy-loaded and deferrable views used.\n• A predictable release and support schedule makes the version policy easy to plan.\n• A steeper learning curve (dependency injection, RxJS) for people new to it.",
595
707
  "alternatives": "1. React with Next.js: larger ecosystem, more choices to make.\n2. Vue with Nuxt: lighter, less prescriptive.\n3. Server-rendered HTML with htmx: far less JavaScript for forms-and-tables applications.",
596
708
  "hubWhen": {
@@ -609,7 +721,7 @@
609
721
  "status": "accepted",
610
722
  "date": "",
611
723
  "context": "This element is a web front end that people use in their own browsers, on their own devices and networks. The forces: every kilobyte of JavaScript is downloaded, parsed and run on the user's phone, and mid-range phones on mobile networks are where most budgets break; search engines and first visits reward content in the first HTML response, while app-like screens favour rendering in the browser; a framework brings its ecosystem, hiring pool and release cadence, and its majors reach end of support on published dates; a shared design system keeps screens consistent and accessible, but costs effort to build and keep; and the browsers to support decide which features and polyfills ship. How fast pages feel on phones and who can use them are decided in the packs of the UX & Accessibility group.",
612
- "decision": "The front end is built with Vue 3 in TypeScript, using the Composition API and single-file components. Rendering: {{RENDERING}}: Nuxt for server rendering and static generation, Vite with Vue Router for a single-page app. State in Pinia. Design system: {{DESIGN}}. Browsers: {{BROWSERS}}. JavaScript budget: {{JS_KB}} KB per route, compressed. The Core Web Vitals budget, Reflow and touch target size are decided in the Mobile and perceived performance pack, and conformance to WCAG 2.2 AA in the Accessibility pack, both of the UX & Accessibility group. Dependency updates: as decided in the Dependency hygiene pack. Versions tracked through endoflife.date (vue, nuxt), each major replaced at least {{EOL_DAYS}} days before its end of support.",
724
+ "decision": "The front end is built with Vue 3 in TypeScript, using the Composition API and single-file components. Rendering: Nuxt for server rendering and static generation, Vite with Vue Router for a single-page app. State in Pinia. Design system: {{DESIGN}}. Browsers: {{BROWSERS}}. JavaScript budget: {{JS_KB}} KB per route, compressed. The Core Web Vitals budget, Reflow and touch target size are decided in the Mobile and perceived performance pack, and conformance to WCAG 2.2 AA in the Accessibility pack, both of the UX & Accessibility group. Dependency updates: as decided in the Dependency hygiene pack. Versions tracked through endoflife.date (vue, nuxt), each major replaced at least {{EOL_DAYS}} days before its end of support.",
613
725
  "consequences": "• Gentle learning curve and good performance out of the box.\n• Can be adopted gradually inside existing server-rendered pages.\n• A smaller ecosystem and hiring pool than React.\n• Nuxt majors bring migration work; plan them like framework upgrades.",
614
726
  "alternatives": "1. React with Next.js: the largest ecosystem.\n2. Svelte with SvelteKit: smaller bundles.\n3. Angular: more included, more prescriptive.",
615
727
  "hubWhen": {
@@ -628,7 +740,7 @@
628
740
  "status": "accepted",
629
741
  "date": "",
630
742
  "context": "This element is a web front end that people use in their own browsers, on their own devices and networks. The forces: every kilobyte of JavaScript is downloaded, parsed and run on the user's phone, and mid-range phones on mobile networks are where most budgets break; search engines and first visits reward content in the first HTML response, while app-like screens favour rendering in the browser; a framework brings its ecosystem, hiring pool and release cadence, and its majors reach end of support on published dates; a shared design system keeps screens consistent and accessible, but costs effort to build and keep; and the browsers to support decide which features and polyfills ship. How fast pages feel on phones and who can use them are decided in the packs of the UX & Accessibility group.",
631
- "decision": "The front end is built with Svelte 5 (runes) in TypeScript and SvelteKit, whose adapters cover every rendering mode. Rendering: {{RENDERING}}: adapter-node or a platform adapter for server rendering, adapter-static for static pages and single-page apps. Design system: {{DESIGN}}. Browsers: {{BROWSERS}}. JavaScript budget: {{JS_KB}} KB per route, compressed. The Core Web Vitals budget, Reflow and touch target size are decided in the Mobile and perceived performance pack, and conformance to WCAG 2.2 AA in the Accessibility pack, both of the UX & Accessibility group. Dependency updates: as decided in the Dependency hygiene pack. Versions tracked through endoflife.date (svelte), each major replaced at least {{EOL_DAYS}} days before its end of support.",
743
+ "decision": "The front end is built with Svelte 5 (runes) in TypeScript and SvelteKit, whose adapters cover every rendering mode. Rendering: adapter-node or a platform adapter for server rendering, adapter-static for static pages and single-page apps. Design system: {{DESIGN}}. Browsers: {{BROWSERS}}. JavaScript budget: {{JS_KB}} KB per route, compressed. The Core Web Vitals budget, Reflow and touch target size are decided in the Mobile and perceived performance pack, and conformance to WCAG 2.2 AA in the Accessibility pack, both of the UX & Accessibility group. Dependency updates: as decided in the Dependency hygiene pack. Versions tracked through endoflife.date (svelte), each major replaced at least {{EOL_DAYS}} days before its end of support.",
632
744
  "consequences": "• Compiled components ship little JavaScript, which makes the budget easy to keep.\n• Simple syntax, quick to learn.\n• A smaller ecosystem: fewer ready-made components and integrations, more built in-house.\n• A smaller hiring pool than React, Angular or Vue.",
633
745
  "alternatives": "1. React with Next.js: the largest ecosystem, more JavaScript.\n2. Vue with Nuxt: similar simplicity, larger ecosystem.\n3. Server-rendered HTML with htmx: even less JavaScript, less interactivity.",
634
746
  "hubWhen": {
@@ -772,7 +884,14 @@
772
884
  "cadence": "triggered",
773
885
  "trigger": "pull-request",
774
886
  "invocation": "automated",
775
- "description": "The browser list lives in package.json and drives the build's transpilation; eslint-plugin-compat fails on a web API one of the listed browsers lacks. Playwright runs the journeys in Chromium, Firefox and WebKit.\n\nThreshold: 0 uses of web features missing from a browser on the list without a configured polyfill\n\nTool: browserslist with eslint-plugin-compat\n\n```js\n// package.json: \"browserslist\" holds the query of the policy, e.g.\n// modern: [\"last 2 Chrome versions\", \"last 2 Edge versions\", \"last 2 Firefox versions\", \"last 2 Safari major versions\"]\n// defaults: [\"defaults\"]\n// extended: [\"> 0.2%\", \"last 3 versions\", \"Firefox ESR\", \"iOS >= 15\", \"not dead\"]\n// eslint.config.mjs\nimport compat from 'eslint-plugin-compat'\nexport default [\n compat.configs['flat/recommended'],\n { settings: { polyfills: ['fetch', 'Promise'] } }, // what the build polyfills\n]\n```"
887
+ "description": "The browser list lives in package.json and drives the build's transpilation; eslint-plugin-compat fails on a web API one of the listed browsers lacks. Playwright runs the journeys in Chromium, Firefox and WebKit.\n\nThreshold: 0 uses of web features missing from a browser on the list without a configured polyfill\n\nTool: browserslist with eslint-plugin-compat\n\n```js\n// package.json: \"browserslist\" holds the query of the policy, e.g.\n// modern: [\"last 2 Chrome versions\", \"last 2 Edge versions\", \"last 2 Firefox versions\", \"last 2 Safari major versions\"]\n// defaults: [\"defaults\"]\n// extended: [\"> 0.2%\", \"last 3 versions\", \"Firefox ESR\", \"iOS >= 15\", \"not dead\"]\n// eslint.config.mjs\nimport compat from 'eslint-plugin-compat'\nexport default [\n compat.configs['flat/recommended'],\n { settings: { polyfills: ['fetch', 'Promise'] } }, // what the build polyfills\n]\n```",
888
+ "hubWhen": {
889
+ "RENDERING": [
890
+ "spa",
891
+ "ssr",
892
+ "static"
893
+ ]
894
+ }
776
895
  },
777
896
  {
778
897
  "id": "ff-eol",
@@ -876,6 +995,11 @@
876
995
  "hubWhen": {
877
996
  "DESIGN": [
878
997
  "own"
998
+ ],
999
+ "RENDERING": [
1000
+ "spa",
1001
+ "ssr",
1002
+ "static"
879
1003
  ]
880
1004
  }
881
1005
  },
@@ -894,6 +1018,11 @@
894
1018
  "hubWhen": {
895
1019
  "DESIGN": [
896
1020
  "library"
1021
+ ],
1022
+ "RENDERING": [
1023
+ "spa",
1024
+ "ssr",
1025
+ "static"
897
1026
  ]
898
1027
  }
899
1028
  },
@@ -918,6 +1047,11 @@
918
1047
  "angular",
919
1048
  "vue",
920
1049
  "svelte"
1050
+ ],
1051
+ "RENDERING": [
1052
+ "spa",
1053
+ "ssr",
1054
+ "static"
921
1055
  ]
922
1056
  }
923
1057
  },
@@ -957,6 +1091,11 @@
957
1091
  "hubWhen": {
958
1092
  "BROWSERS": [
959
1093
  "modern"
1094
+ ],
1095
+ "RENDERING": [
1096
+ "spa",
1097
+ "ssr",
1098
+ "static"
960
1099
  ]
961
1100
  }
962
1101
  }
@@ -17,7 +17,128 @@
17
17
  "id": "incident-management",
18
18
  "trigger": "LIST NODES WHERE type = \"system\" AND external != true",
19
19
  "why": "this system serves people who notice when it fails, so how an incident is declared, led, communicated and learned from has to be decided.",
20
- "group": "operability"
20
+ "group": "operability",
21
+ "scope": {
22
+ "group": "operability",
23
+ "questions": [
24
+ {
25
+ "key": "DOWNTIME",
26
+ "label": "If it stops, what happens, and how soon must it be back?",
27
+ "default": "hours",
28
+ "hint": "The longest outage the business can bear decides how much redundancy, backup and response it needs (BSI 200-2 protection needs, ISO 22301).",
29
+ "options": [
30
+ {
31
+ "value": "workaround",
32
+ "label": "people wait or work around it; a day is fine",
33
+ "description": "People wait, use paper or the phone, and catch up later; one to three days down is bearable (BSI normal)."
34
+ },
35
+ {
36
+ "value": "hours",
37
+ "label": "customers cannot work or buy; back within hours",
38
+ "description": "Customers cannot do what they came for and some go elsewhere; it must be back within hours (BSI high)."
39
+ },
40
+ {
41
+ "value": "critical",
42
+ "label": "safety, an essential service or large losses; back within an hour",
43
+ "description": "People's safety, an essential service, a contract (SLA) or large sums are at stake within minutes (BSI very high)."
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "key": "LOAD",
49
+ "label": "What load does it carry?",
50
+ "default": "light",
51
+ "hint": "Only a load that grows or peaks needs sizing, autoscaling and load tests.",
52
+ "options": [
53
+ {
54
+ "value": "light",
55
+ "label": "light and steady",
56
+ "description": "Up to some thousands of users or requests a day, no peaks that matter."
57
+ },
58
+ {
59
+ "value": "peaks",
60
+ "label": "peaks or tens of thousands",
61
+ "description": "Tens of thousands of users a day, or peaks (a sale, a deadline, a season) it must be sized for."
62
+ },
63
+ {
64
+ "value": "large",
65
+ "label": "large, scaling out",
66
+ "description": "Hundreds of thousands of users or more, several regions, load that has to scale out and back."
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "key": "ONCALL",
72
+ "label": "Who answers when it breaks?",
73
+ "default": "builders",
74
+ "hint": "An incident process and game days pay off once someone is expected to answer out of hours.",
75
+ "options": [
76
+ {
77
+ "value": "builders",
78
+ "label": "the people who build it, in working hours",
79
+ "description": "The developers look at it when they are at work; nobody is on call."
80
+ },
81
+ {
82
+ "value": "outofhours",
83
+ "label": "someone answers out of hours",
84
+ "description": "Someone is reachable evenings and weekends, though not a full rota."
85
+ },
86
+ {
87
+ "value": "rota",
88
+ "label": "an on-call rota round the clock",
89
+ "description": "An on-call rota answers at any hour, with escalation."
90
+ }
91
+ ]
92
+ }
93
+ ],
94
+ "when": [
95
+ {
96
+ "ONCALL": [
97
+ "outofhours",
98
+ "rota"
99
+ ]
100
+ },
101
+ {
102
+ "DOWNTIME": [
103
+ "critical"
104
+ ]
105
+ }
106
+ ]
107
+ },
108
+ "scopeAnswers": [
109
+ {
110
+ "when": {
111
+ "ONCALL": [
112
+ "outofhours"
113
+ ]
114
+ },
115
+ "answers": {
116
+ "COMMAND": "oncall"
117
+ }
118
+ },
119
+ {
120
+ "when": {
121
+ "ONCALL": [
122
+ "builders",
123
+ "outofhours"
124
+ ]
125
+ },
126
+ "answers": {
127
+ "POSTMORTEM": "retro"
128
+ }
129
+ },
130
+ {
131
+ "when": {
132
+ "DOWNTIME": [
133
+ "workaround",
134
+ "hours"
135
+ ]
136
+ },
137
+ "answers": {
138
+ "COMMS": "direct"
139
+ }
140
+ }
141
+ ]
21
142
  },
22
143
  "sources": [
23
144
  {
@@ -20,7 +20,60 @@
20
20
  "id": "infrastructure",
21
21
  "trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\") AND external != true",
22
22
  "why": "these elements are deployed and run somewhere, so the hosting, the cloud, how the infrastructure is built and what it may cost has to be decided.",
23
- "group": "technology"
23
+ "group": "technology",
24
+ "scope": {
25
+ "group": "technology",
26
+ "questions": [
27
+ {
28
+ "key": "STANDARDS",
29
+ "label": "Does the organisation keep technology standards?",
30
+ "default": "no",
31
+ "hint": "A tech radar records which technologies to adopt, try, hold or retire.",
32
+ "options": [
33
+ {
34
+ "value": "no",
35
+ "label": "no",
36
+ "description": "Each system picks its own technologies."
37
+ },
38
+ {
39
+ "value": "yes",
40
+ "label": "yes",
41
+ "description": "The organisation keeps technology standards or a tech radar that systems follow."
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "key": "TEAMS",
47
+ "label": "How many teams choose technology?",
48
+ "default": "one",
49
+ "hint": "Several teams choosing alone end up with many stacks to keep up.",
50
+ "options": [
51
+ {
52
+ "value": "one",
53
+ "label": "one team",
54
+ "description": "One team chooses for the whole system."
55
+ },
56
+ {
57
+ "value": "several",
58
+ "label": "several teams",
59
+ "description": "Several teams each choose for their parts."
60
+ }
61
+ ]
62
+ }
63
+ ],
64
+ "when": [
65
+ {
66
+ "STANDARDS": [
67
+ "yes"
68
+ ]
69
+ },
70
+ {
71
+ "TEAMS": [
72
+ "several"
73
+ ]
74
+ }
75
+ ]
76
+ }
24
77
  },
25
78
  "sources": [
26
79
  {
@@ -21,7 +21,89 @@
21
21
  "trigger": "LIST RELATIONS WHERE source.external != true AND target.external = true AND (source.type = \"system\" OR source.type = \"container\" OR source.type = \"webapp\" OR source.type = \"component\")",
22
22
  "applyTo": "source",
23
23
  "why": "these elements call systems outside your control, so what happens when those are slow, down or answer twice has to be decided.",
24
- "group": "architecture"
24
+ "group": "architecture",
25
+ "scope": {
26
+ "group": "architecture",
27
+ "questions": [
28
+ {
29
+ "key": "TEAMS",
30
+ "label": "How many teams build it?",
31
+ "default": "one",
32
+ "hint": "Several teams need the system cut into parts each can own and change alone.",
33
+ "options": [
34
+ {
35
+ "value": "one",
36
+ "label": "one team or fewer",
37
+ "description": "One person or one team builds all of it."
38
+ },
39
+ {
40
+ "value": "several",
41
+ "label": "several teams",
42
+ "description": "Several teams each own parts of it."
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "key": "SCALE",
48
+ "label": "How large is it?",
49
+ "default": "small",
50
+ "hint": "Caches, queues and split services pay for themselves only at some scale.",
51
+ "options": [
52
+ {
53
+ "value": "small",
54
+ "label": "small",
55
+ "description": "One site or one team's users; up to some thousands of users or requests a day."
56
+ },
57
+ {
58
+ "value": "medium",
59
+ "label": "medium",
60
+ "description": "Several sites or a region; tens of thousands of users a day, or peaks it must be sized for."
61
+ },
62
+ {
63
+ "value": "large",
64
+ "label": "large",
65
+ "description": "Hundreds of thousands of users or more, several regions, load that scales out and back."
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "key": "INTEGRATIONS",
71
+ "label": "How many other systems does it depend on?",
72
+ "default": "few",
73
+ "hint": "Every system it calls can be slow or down; many of them need resilience patterns.",
74
+ "options": [
75
+ {
76
+ "value": "few",
77
+ "label": "a few",
78
+ "description": "Up to two or three external systems (a payment provider, an e-mail service)."
79
+ },
80
+ {
81
+ "value": "many",
82
+ "label": "many",
83
+ "description": "Many external or internal systems it calls or exchanges data with."
84
+ }
85
+ ]
86
+ }
87
+ ],
88
+ "when": [
89
+ {
90
+ "SCALE": [
91
+ "medium",
92
+ "large"
93
+ ]
94
+ },
95
+ {
96
+ "TEAMS": [
97
+ "several"
98
+ ]
99
+ },
100
+ {
101
+ "INTEGRATIONS": [
102
+ "many"
103
+ ]
104
+ }
105
+ ]
106
+ }
25
107
  },
26
108
  "sources": [
27
109
  {
@@ -95,7 +177,12 @@
95
177
  "label": "the service mesh, in configuration",
96
178
  "description": "Timeouts, retries and outlier detection (the mesh's circuit breaker) are set per outside host in Istio or Linkerd configuration, the same for every language. Pick it when a mesh already carries all traffic on Kubernetes and many services in several languages call the same outside systems; fallbacks stay in the code."
97
179
  }
98
- ]
180
+ ],
181
+ "scopeWhen": {
182
+ "INTEGRATIONS": [
183
+ "many"
184
+ ]
185
+ }
99
186
  },
100
187
  {
101
188
  "key": "IDEMPOTENCY",
@@ -206,7 +293,13 @@
206
293
  "ears_type": "unwanted-behaviour",
207
294
  "unwanted_condition": "more than {{BREAKER_PERCENT}} % of at least 20 calls to one outside system within 30 seconds fail or time out",
208
295
  "action": "stop calling it for 30 seconds (open the circuit), treat each call in that time as if the system were down, then let at most 3 trial calls through and resume only when they succeed",
209
- "rationale": "Calling a system that is down wastes the caller's time and keeps the other side down; the breaker fails at once and probes for recovery (microservices.io, Circuit Breaker; Azure Architecture Center)."
296
+ "rationale": "Calling a system that is down wastes the caller's time and keeps the other side down; the breaker fails at once and probes for recovery (microservices.io, Circuit Breaker; Azure Architecture Center).",
297
+ "hubWhen": {
298
+ "PROTECTION": [
299
+ "library",
300
+ "mesh"
301
+ ]
302
+ }
210
303
  },
211
304
  {
212
305
  "id": "req-fail",
@@ -392,7 +485,13 @@
392
485
  "y": 260,
393
486
  "given": "an outside system that fails every call",
394
487
  "when": "20 calls have failed within 30 seconds and more are made",
395
- "then": "the further calls fail at once without reaching it, after 30 seconds at most 3 trial calls reach it, and calls resume once trial calls succeed"
488
+ "then": "the further calls fail at once without reaching it, after 30 seconds at most 3 trial calls reach it, and calls resume once trial calls succeed",
489
+ "hubWhen": {
490
+ "PROTECTION": [
491
+ "library",
492
+ "mesh"
493
+ ]
494
+ }
396
495
  },
397
496
  {
398
497
  "id": "sc-fail",
@@ -676,7 +775,13 @@
676
775
  "cadence": "triggered",
677
776
  "trigger": "pull-request",
678
777
  "invocation": "automated",
679
- "description": "A black-box test against a running instance (with its library or its sidecar) points the outside host at a WireMockServer started by the test, drives calls through the instance, and counts what reaches the stub before, during and after the open period.\n\nThreshold: With every call failing (above {{BREAKER_PERCENT}} %), after 20 calls within 30 s 0 of the next 50 calls reach the outside system; after 30 s at most 3 of 10 calls reach it while it still fails; once it answers, calls resume\n\nTool: WireMockServer (JUnit 5; or the stub server of your stack) against the running instance\n\n```java\n// wiremock: new WireMockServer(options().port(8089)), the instance under test points its outside host at it\n@Test\nvoid circuitOpensThenProbes() throws Exception {\n wiremock.stubFor(get(anyUrl()).willReturn(serviceUnavailable()));\n for (int i = 0; i < 20; i++) app.get(\"/quote\"); // calls through the instance under test\n wiremock.resetRequests();\n for (int i = 0; i < 50; i++) app.get(\"/quote\");\n assertEquals(0, wiremock.findAll(getRequestedFor(anyUrl())).size(), \"circuit is open\");\n\n Thread.sleep(30_000);\n wiremock.resetRequests();\n for (int i = 0; i < 10; i++) app.get(\"/quote\"); // half-open: only trial calls reach the stub\n assertTrue(wiremock.findAll(getRequestedFor(anyUrl())).size() <= 3, \"at most 3 trial calls\");\n\n wiremock.stubFor(get(anyUrl()).willReturn(ok(\"{}\")));\n Thread.sleep(30_000);\n for (int i = 0; i < 3; i++) app.get(\"/quote\"); // trial calls succeed\n assertEquals(200, app.get(\"/quote\").statusCode(), \"circuit closed after successful trials\");\n}\n```"
778
+ "description": "A black-box test against a running instance (with its library or its sidecar) points the outside host at a WireMockServer started by the test, drives calls through the instance, and counts what reaches the stub before, during and after the open period.\n\nThreshold: With every call failing (above {{BREAKER_PERCENT}} %), after 20 calls within 30 s 0 of the next 50 calls reach the outside system; after 30 s at most 3 of 10 calls reach it while it still fails; once it answers, calls resume\n\nTool: WireMockServer (JUnit 5; or the stub server of your stack) against the running instance\n\n```java\n// wiremock: new WireMockServer(options().port(8089)), the instance under test points its outside host at it\n@Test\nvoid circuitOpensThenProbes() throws Exception {\n wiremock.stubFor(get(anyUrl()).willReturn(serviceUnavailable()));\n for (int i = 0; i < 20; i++) app.get(\"/quote\"); // calls through the instance under test\n wiremock.resetRequests();\n for (int i = 0; i < 50; i++) app.get(\"/quote\");\n assertEquals(0, wiremock.findAll(getRequestedFor(anyUrl())).size(), \"circuit is open\");\n\n Thread.sleep(30_000);\n wiremock.resetRequests();\n for (int i = 0; i < 10; i++) app.get(\"/quote\"); // half-open: only trial calls reach the stub\n assertTrue(wiremock.findAll(getRequestedFor(anyUrl())).size() <= 3, \"at most 3 trial calls\");\n\n wiremock.stubFor(get(anyUrl()).willReturn(ok(\"{}\")));\n Thread.sleep(30_000);\n for (int i = 0; i < 3; i++) app.get(\"/quote\"); // trial calls succeed\n assertEquals(200, app.get(\"/quote\").statusCode(), \"circuit closed after successful trials\");\n}\n```",
779
+ "hubWhen": {
780
+ "PROTECTION": [
781
+ "library",
782
+ "mesh"
783
+ ]
784
+ }
680
785
  },
681
786
  {
682
787
  "id": "ff-fail",