@radicaltools/mcp 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/README.md +41 -23
  2. package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
  3. package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
  4. package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
  5. package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
  6. package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
  7. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
  8. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
  9. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
  10. package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
  11. package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
  12. package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
  13. package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
  14. package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
  15. package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
  16. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
  17. package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
  18. package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
  19. package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
  20. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
  21. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
  22. package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
  23. package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
  24. package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
  25. package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
  26. package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
  27. package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
  28. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
  29. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
  30. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
  31. package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
  32. package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
  33. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
  34. package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
  35. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
  36. package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
  37. package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
  38. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
  39. package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
  40. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
  41. package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
  42. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
  43. package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
  44. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
  45. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
  46. package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
  47. package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
  48. package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
  49. package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
  50. package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
  51. package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
  52. package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
  53. package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
  54. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
  55. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
  56. package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
  57. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
  58. package/dist/index.js +10321 -3964
  59. package/package.json +1 -1
  60. package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
  61. package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
  62. package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
  63. package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
  64. package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
  65. package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
  66. package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
  67. package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
  68. package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
  69. package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
  70. package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
  71. package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
  72. package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
  73. package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
  74. package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
  75. package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
  76. package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
  77. package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
  78. package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
  79. package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
  80. package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
  81. package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
  82. package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
  83. package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
  84. package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
  85. package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
  86. package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
  87. package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
  88. package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
  89. package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
  90. package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
  91. package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
  92. package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
  93. package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
  94. package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
  95. package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
  96. package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
  97. package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
  98. package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
  99. package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
  100. package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
  101. package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
  102. package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
  103. package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
  104. package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
  105. package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
  106. package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
  107. package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
  108. package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
  109. package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
  110. package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
  111. package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
  112. package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
  113. package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
  114. package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
  115. package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
  116. package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
  117. package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
  118. package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
  119. package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
  120. package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
  121. package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
  122. package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
  123. package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
  124. package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
  125. package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
  126. package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
  127. package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
  128. package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
  129. package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
  130. package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
  131. package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
  132. package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
  133. package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
  134. package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
  135. package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
  136. package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
  137. package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
  138. package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
  139. package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
  140. package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
  141. package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
  142. package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
  143. package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
  144. package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
  145. package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
  146. package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
  147. package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
  148. package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
  149. package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
  150. package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
  151. package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
  152. package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
  153. package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
  154. package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
  155. package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
  156. package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
  157. package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
  158. package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
  159. package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
  160. package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
  161. package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
  162. package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
  163. package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
  164. package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
  165. package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
  166. package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
  167. package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
  168. package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
  169. package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
  170. package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
  171. package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
  172. package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
  173. package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
  174. package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
  175. package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
  176. package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
  177. package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
  178. package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
  179. package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
  180. package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
  181. package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
  182. package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
  183. package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
  184. package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
  185. package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
  186. package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
  187. package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
@@ -1,41 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "adr-multi-tenancy-strategy",
4
- "category": "adr",
5
- "name": "Multi-Tenancy Strategy",
6
- "description": "Records how tenant data is isolated — shared schema with row-level security, or a dedicated database per tenant — and which tenants get which.",
7
- "tags": [
8
- "multi-tenancy",
9
- "saas",
10
- "data",
11
- "isolation",
12
- "governance"
13
- ],
14
- "requiredMetamodel": "c4-ddd-governance-builtin",
15
- "hubRefs": [
16
- "req-least-privilege",
17
- "req-data-integrity",
18
- "adr-data-store",
19
- "req-resource-isolation",
20
- "ff-noisy-neighbor-guard"
21
- ]
22
- },
23
- "nodes": [
24
- {
25
- "id": "adr-multi-tenancy-strategy-1",
26
- "type": "adr",
27
- "label": "ADR: Pooled tenancy by default, siloed for enterprise",
28
- "width": 180,
29
- "height": 52,
30
- "collapsed": false,
31
- "x": 0,
32
- "y": 0,
33
- "status": "proposed",
34
- "date": "",
35
- "context": "The product serves many customers (tenants) of very different sizes. Every tenant needs its data isolated from every other tenant; not every tenant needs — or can afford to pay for — the operational cost of a fully dedicated stack.",
36
- "decision": "Small and mid-size tenants share infrastructure in a pooled model: one database, every table carrying a tenant_id, with row-level security enforcing isolation at the query layer. Enterprise tenants that require it (contractually or for compliance) are provisioned a siloed, dedicated database instead, behind the same application tier.",
37
- "consequences": "• Pooled tenants get lower cost and simpler operations (one schema to migrate, one fleet to patch), at the cost of relying on row-level security being correct everywhere — a single missing tenant_id filter is a cross-tenant data leak.\n• Siloed tenants get the strongest isolation story and simplest compliance narrative, at the cost of per-tenant operational overhead (migrations, backups, capacity planning multiply by tenant count).\n• The application tier must support both storage topologies behind one code path, which the tenant-resolution layer needs to route transparently.\n• Moving a tenant from pooled to siloed later requires a live data migration, so the trigger for that move (contract tier, compliance requirement) should be decided up front.",
38
- "alternatives": "1. Always siloed — safest isolation story, but operational cost scales linearly with tenant count and makes a low-cost self-serve tier uneconomical.\n2. Always pooled — cheapest to run, weakest isolation story; unattractive to enterprise buyers with compliance requirements.\n3. Schema-per-tenant — a middle ground, but migration tooling has to run per schema, and most databases don't scale well past a few thousand schemas.\n4. Pooled by default, siloed for enterprise (chosen) — matches cost to what each tier actually needs."
39
- }
40
- ]
41
- }
@@ -1,59 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "adr-observability",
4
- "category": "adr",
5
- "name": "Observability Stack",
6
- "description": "Records how logs, metrics and traces are produced, collected and stored, and which tools own each signal.",
7
- "tags": [
8
- "observability",
9
- "monitoring",
10
- "logging",
11
- "tracing"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "METRICS_BACKEND",
17
- "label": "Metrics backend",
18
- "hint": "Prometheus + Grafana",
19
- "defaultValue": "Prometheus + Grafana"
20
- },
21
- {
22
- "key": "LOGS_BACKEND",
23
- "label": "Logs backend",
24
- "hint": "Loki",
25
- "defaultValue": "Loki"
26
- },
27
- {
28
- "key": "TRACES_BACKEND",
29
- "label": "Traces backend",
30
- "hint": "Tempo",
31
- "defaultValue": "Tempo"
32
- }
33
- ],
34
- "hubRefs": [
35
- "req-centralised-logging",
36
- "req-distributed-tracing",
37
- "req-alerting"
38
- ]
39
- },
40
- "nodes": [
41
- {
42
- "id": "adr-observability-1",
43
- "type": "adr",
44
- "label": "ADR: OpenTelemetry-based observability",
45
- "x": 0,
46
- "y": 0,
47
- "width": 180,
48
- "height": 52,
49
- "collapsed": false,
50
- "status": "proposed",
51
- "date": "",
52
- "context": "Operating a distributed system requires correlating logs, metrics and traces across services during incidents and measuring SLOs continuously. Forces: avoiding per-vendor instrumentation lock-in, cost of high-cardinality telemetry at scale, data residency of logs that may contain personal data, and the team's ability to run stateful backends.",
53
- "decision": "Instrument all services with OpenTelemetry SDKs and export through an OpenTelemetry Collector. Metrics are stored in {{METRICS_BACKEND}}, logs in {{LOGS_BACKEND}}, traces in {{TRACES_BACKEND}}. Services never depend on a vendor SDK directly; the Collector is the only place where backends are configured.",
54
- "consequences": "• Backends can be swapped or added by changing Collector configuration, not application code.\n• Every log line and span carries trace id, service name and version, enabling pivoting between signals.\n• Sampling, redaction of personal data and retention are enforced centrally in the Collector pipeline.\n• The Collector is a critical shared component and needs capacity planning and its own monitoring.\n• Teams must agree on naming conventions for metrics and attributes to keep dashboards reusable.",
55
- "alternatives": "1. Single commercial APM suite — fastest time to value; per-host or per-GB pricing grows steeply and instrumentation is vendor-specific.\n2. Hyperscaler-native tooling (CloudWatch, Azure Monitor, Cloud Operations) — no extra infrastructure; weaker cross-cloud and local-development story.\n3. ELK for everything — mature logging; metrics and traces are second-class and storage cost is high.\n4. No tracing, logs and metrics only — lower cost; root-causing latency across services becomes guesswork."
56
- }
57
- ],
58
- "relations": []
59
- }
@@ -1,38 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "adr-realtime-transport",
4
- "category": "adr",
5
- "name": "Real-Time Transport Choice",
6
- "description": "Records how live edits and presence reach other connected clients — WebSocket, Server-Sent Events, or WebRTC — and the fallback when the primary transport is blocked.",
7
- "tags": [
8
- "real-time",
9
- "networking",
10
- "websocket",
11
- "governance"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "hubRefs": [
15
- "pattern-crdt-sync",
16
- "req-presence-latency",
17
- "req-availability"
18
- ]
19
- },
20
- "nodes": [
21
- {
22
- "id": "adr-realtime-transport-1",
23
- "type": "adr",
24
- "label": "ADR: WebSocket with long-polling fallback",
25
- "width": 180,
26
- "height": 52,
27
- "collapsed": false,
28
- "x": 0,
29
- "y": 0,
30
- "status": "proposed",
31
- "date": "",
32
- "context": "Collaborators need low-latency, bidirectional delivery of operations and presence — cursors, selections — to every other client viewing the same document, over networks that don't all allow the same protocols; some corporate proxies block WebSocket upgrades entirely.",
33
- "decision": "Use WebSocket as the primary transport for both directions — client operations up, relayed operations and presence down — with an HTTP long-polling fallback that the client switches to automatically when the WebSocket upgrade fails or drops repeatedly.",
34
- "consequences": "• A single persistent connection carries both operations and presence, keeping latency low and avoiding the overhead of a second channel.\n• The fallback path adds a second code path on both client and server that has to be kept behaviour-identical to the WebSocket path, and tested as its own thing, not assumed to \"just work\" the same way.\n• Presence data shares the same connection as document operations, so a presence flood from a very large room can't be independently throttled without also touching the operation path.\n• Any load balancer or proxy in front of the gateway fleet must support long-lived connections and sticky enough routing for a session's fallback requests to reach the same instance.",
35
- "alternatives": "1. WebRTC data channels — lowest possible latency directly between peers, but the server never sees the operations in transit to persist or authorise them, and NAT traversal needs its own signalling and TURN relay infrastructure.\n2. Server-Sent Events for the down channel plus HTTP POST for writes — works through anything that allows plain HTTP, but two separate connections cost more round trips and the write path never gets push-level latency.\n3. Plain HTTP polling only — simplest possible infrastructure, but the polling interval directly trades off against both latency and server load.\n4. WebSocket with a long-polling fallback (chosen) — best latency for the common case, at the cost of maintaining a second path for the uncommon one."
36
- }
37
- ]
38
- }
@@ -1,45 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "adr-tech-stack",
4
- "category": "adr",
5
- "name": "Primary Technology Stack",
6
- "description": "Records the choice of language, runtime and framework for new services, and the forces that drove it.",
7
- "tags": [
8
- "technology",
9
- "platform",
10
- "foundation"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "templateParams": [
14
- {
15
- "key": "STACK",
16
- "label": "Chosen stack",
17
- "hint": "TypeScript / Node.js",
18
- "defaultValue": "TypeScript / Node.js"
19
- }
20
- ],
21
- "hubRefs": [
22
- "adr-data-store",
23
- "ff-dependency-rules"
24
- ]
25
- },
26
- "nodes": [
27
- {
28
- "id": "adr-tech-stack-1",
29
- "type": "adr",
30
- "label": "ADR: {{STACK}} as primary stack",
31
- "x": 0,
32
- "y": 0,
33
- "width": 180,
34
- "height": 52,
35
- "collapsed": false,
36
- "status": "proposed",
37
- "date": "",
38
- "context": "New services need a default technology stack. The decision is driven by the team's existing expertise, hiring market, ecosystem maturity for our problem domain, runtime performance characteristics, operational tooling (observability, packaging, security scanning) and how easily the choice can be revisited later.",
39
- "decision": "Use {{STACK}} as the default stack for new services. Deviations require an ADR of their own that names the concrete capability the default cannot provide.",
40
- "consequences": "• One shared toolchain for linting, testing, packaging and dependency scanning across services.\n• Onboarding, code review and on-call rotate more easily between teams.\n• Libraries, internal SDKs and platform integrations are built once for this stack.\n• Problems the stack handles poorly (e.g. CPU-bound workloads, specialised ML tooling) need an explicit exception path.\n• The decision should be reviewed when the team or the problem space changes materially.",
41
- "alternatives": "1. Polyglot by team choice — maximises local fit but fragments tooling, security patching and on-call coverage.\n2. A JVM-based stack (Kotlin / Java) — mature ecosystem and strong performance; heavier runtime and slower startup for serverless-style workloads.\n3. Go — excellent operational profile for infrastructure-style services; smaller ecosystem for rich web/back-office applications.\n4. Python — strongest for data and ML work; weaker typing story and concurrency model for high-throughput services."
42
- }
43
- ],
44
- "relations": []
45
- }
@@ -1,40 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "adr-zero-trust-network",
4
- "category": "adr",
5
- "name": "Network Trust Model",
6
- "description": "Records whether the system trusts requests based on network location (perimeter/VPN model) or verifies every request's identity and context regardless of where it originates (zero trust).",
7
- "tags": [
8
- "security",
9
- "zero-trust",
10
- "network",
11
- "nist",
12
- "governance"
13
- ],
14
- "requiredMetamodel": "c4-ddd-governance-builtin",
15
- "hubRefs": [
16
- "pattern-sidecar",
17
- "req-least-privilege",
18
- "adr-auth-strategy",
19
- "req-mfa"
20
- ]
21
- },
22
- "nodes": [
23
- {
24
- "id": "adr-zero-trust-network-1",
25
- "type": "adr",
26
- "label": "ADR: Zero trust — verify every request regardless of network location",
27
- "x": 0,
28
- "y": 0,
29
- "width": 180,
30
- "height": 52,
31
- "collapsed": false,
32
- "status": "proposed",
33
- "date": "",
34
- "context": "The traditional model trusts anything inside the corporate network or VPN and puts the real defence at the perimeter. That assumption breaks down with cloud services, remote work, third-party integrations and lateral movement after a single compromised credential or device.",
35
- "decision": "Every request is authenticated and authorized at the point of access based on identity and context (device posture, request risk), regardless of network location — internal service-to-service calls get the same scrutiny as calls from the public internet. Network segmentation is defence in depth, not the primary control.",
36
- "consequences": "• No implicit trust for being ‘inside’ the VPC/VPN — internal services need their own authn/authz (mTLS or signed service identity), not just network reachability.\n• A stolen credential or compromised device doesn't automatically grant broad lateral access.\n• More moving parts: identity-aware proxies, service identity, continuous authorization checks add latency and operational surface compared to a flat trusted network.\n• Legacy systems that assume network-level trust need a gateway/proxy in front of them until they can be updated.",
37
- "alternatives": "1. Perimeter/VPN model — simpler, lower latency, but a single breach inside the perimeter has broad blast radius.\n2. Zero trust (chosen) — smaller blast radius per compromise, at the cost of more infrastructure (identity-aware proxies, mTLS, policy engines) and some added latency per request."
38
- }
39
- ]
40
- }