@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,43 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-health-checks",
4
- "category": "requirement",
5
- "name": "Health Endpoints",
6
- "description": "Every service exposes liveness and readiness endpoints that orchestrators and load balancers can rely on.",
7
- "tags": [
8
- "principle",
9
- "observability",
10
- "operations",
11
- "kubernetes"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "HEALTH_RESPONSE_MS",
17
- "label": "Health endpoint response limit (ms)",
18
- "hint": "200",
19
- "type": "number",
20
- "defaultValue": "200"
21
- }
22
- ],
23
- "hubRefs": [
24
- "pattern-microservices"
25
- ]
26
- },
27
- "nodes": [
28
- {
29
- "id": "req-health-checks-1",
30
- "type": "requirement",
31
- "label": "Health Endpoints",
32
- "x": 0,
33
- "y": 0,
34
- "width": 200,
35
- "height": 80,
36
- "collapsed": false,
37
- "ears_type": "ubiquitous",
38
- "action": "expose separate liveness and readiness endpoints that respond within {{HEALTH_RESPONSE_MS}} ms, where readiness reflects the availability of critical dependencies and liveness does not",
39
- "rationale": "Orchestrators route traffic and restart instances based on these endpoints; conflating liveness with readiness turns a dependency outage into a restart storm."
40
- }
41
- ],
42
- "relations": []
43
- }
@@ -1,36 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-iac",
4
- "category": "requirement",
5
- "name": "Infrastructure as Code",
6
- "description": "All infrastructure is declared in version-controlled code and changed only through the pipeline.",
7
- "tags": [
8
- "principle",
9
- "automation",
10
- "infrastructure",
11
- "devops"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "hubRefs": [
15
- "ff-infra-drift",
16
- "req-secrets-management",
17
- "req-config-propagation"
18
- ]
19
- },
20
- "nodes": [
21
- {
22
- "id": "req-iac-1",
23
- "type": "requirement",
24
- "label": "Infrastructure as Code",
25
- "x": 0,
26
- "y": 0,
27
- "width": 200,
28
- "height": 80,
29
- "collapsed": false,
30
- "ears_type": "ubiquitous",
31
- "action": "define every cloud resource in declarative infrastructure code, apply changes exclusively through reviewed pipeline runs, and treat manual console changes as drift to be reverted",
32
- "rationale": "Hand-built environments cannot be reproduced, reviewed or recovered; code makes infrastructure auditable and turns disaster recovery into a re-run."
33
- }
34
- ],
35
- "relations": []
36
- }
@@ -1,47 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-idempotency",
4
- "category": "requirement",
5
- "name": "Idempotent Write Operations",
6
- "description": "Retried or duplicated requests must not create duplicate side effects such as double orders or double charges.",
7
- "tags": [
8
- "principle",
9
- "reliability",
10
- "correctness",
11
- "api"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "IDEMPOTENCY_WINDOW_HOURS",
17
- "label": "Idempotency key retention (h)",
18
- "hint": "24",
19
- "type": "number",
20
- "defaultValue": "24"
21
- }
22
- ],
23
- "hubRefs": [
24
- "pattern-transactional-outbox",
25
- "pattern-event-driven",
26
- "req-batch-job-completion",
27
- "pattern-saga",
28
- "adr-data-consistency-model"
29
- ]
30
- },
31
- "nodes": [
32
- {
33
- "id": "req-idempotency-1",
34
- "type": "requirement",
35
- "label": "Idempotent Write Operations",
36
- "x": 0,
37
- "y": 0,
38
- "width": 200,
39
- "height": 80,
40
- "collapsed": false,
41
- "ears_type": "ubiquitous",
42
- "action": "accept an idempotency key on every state-changing operation and return the original result for any repeat of that key within {{IDEMPOTENCY_WINDOW_HOURS}} hours without re-executing the side effects",
43
- "rationale": "Network timeouts make it impossible for a client to know whether a request was applied; safe retries are only possible when repeating a request is harmless."
44
- }
45
- ],
46
- "relations": []
47
- }
@@ -1,37 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-input-validation",
4
- "category": "requirement",
5
- "name": "Input Validation & Injection Protection",
6
- "description": "Every untrusted input is validated and, wherever it reaches an interpreter (SQL, shell, HTML, LDAP), passed through a parameterised or context-aware escaping API — never concatenated directly into a command or query.",
7
- "tags": [
8
- "principle",
9
- "security",
10
- "owasp",
11
- "injection",
12
- "input-validation"
13
- ],
14
- "requiredMetamodel": "c4-ddd-governance-builtin",
15
- "hubRefs": [
16
- "ff-sast-scan",
17
- "req-vulnerability-scanning",
18
- "req-least-privilege"
19
- ]
20
- },
21
- "nodes": [
22
- {
23
- "id": "req-input-validation-1",
24
- "type": "requirement",
25
- "label": "Input Validation & Injection Protection",
26
- "x": 0,
27
- "y": 0,
28
- "width": 260,
29
- "height": 80,
30
- "collapsed": false,
31
- "ears_type": "unwanted-behaviour",
32
- "unwanted_condition": "untrusted input would reach a database query, shell command, or rendered HTML output without passing through a parameterised API, an allow-list validator, or a context-aware escaper",
33
- "action": "reject the request or escape/parameterise the input before it reaches the interpreter — string concatenation into a query, command or template is never an accepted path",
34
- "rationale": "Injection has topped or near-topped the OWASP Top 10 for over a decade because the fix is a coding discipline, not a product to buy; the requirement exists to make that discipline explicit and testable rather than assumed."
35
- }
36
- ]
37
- }
@@ -1,47 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-least-privilege",
4
- "category": "requirement",
5
- "name": "Least Privilege Access",
6
- "description": "Users and service identities hold only the permissions their role requires, and those permissions are reviewed regularly.",
7
- "tags": [
8
- "principle",
9
- "security",
10
- "access-control",
11
- "iam"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "ACCESS_REVIEW_FREQUENCY",
17
- "label": "Access review cadence",
18
- "hint": "quarterly",
19
- "defaultValue": "quarterly"
20
- }
21
- ],
22
- "hubRefs": [
23
- "req-mfa",
24
- "req-secrets-management",
25
- "pattern-sidecar",
26
- "adr-multi-tenancy-strategy",
27
- "req-input-validation",
28
- "adr-zero-trust-network"
29
- ]
30
- },
31
- "nodes": [
32
- {
33
- "id": "req-least-privilege-1",
34
- "type": "requirement",
35
- "label": "Least Privilege Access",
36
- "x": 0,
37
- "y": 0,
38
- "width": 200,
39
- "height": 80,
40
- "collapsed": false,
41
- "ears_type": "ubiquitous",
42
- "action": "grant every user account and workload identity the minimum permission set needed for its function, review all grants {{ACCESS_REVIEW_FREQUENCY}}, and revoke permissions unused since the previous review",
43
- "rationale": "Least privilege bounds the blast radius of a compromised account or a bug; regular review is what keeps it true after roles and systems change."
44
- }
45
- ],
46
- "relations": []
47
- }
@@ -1,38 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-ledger-immutability",
4
- "category": "requirement",
5
- "name": "Immutable Ledger Entries",
6
- "description": "Once posted, a journal entry is never updated or deleted — corrections happen only through a new, linked compensating entry.",
7
- "tags": [
8
- "fintech",
9
- "ledger",
10
- "compliance",
11
- "audit",
12
- "correctness"
13
- ],
14
- "requiredMetamodel": "c4-ddd-governance-builtin",
15
- "hubRefs": [
16
- "pattern-event-sourced-ledger",
17
- "req-audit-logging",
18
- "ff-ledger-balance-integrity"
19
- ]
20
- },
21
- "nodes": [
22
- {
23
- "id": "req-ledger-immutability-1",
24
- "type": "requirement",
25
- "label": "Immutable Ledger Entries",
26
- "x": 0,
27
- "y": 0,
28
- "width": 200,
29
- "height": 80,
30
- "collapsed": false,
31
- "ears_type": "unwanted-behaviour",
32
- "unwanted_condition": "a posted journal entry needs to be corrected, reversed, or removed for any reason",
33
- "action": "never update or delete the original entry; post a new, separately timestamped compensating entry whose debits and credits reverse it, and link the two so either can be found from the other",
34
- "rationale": "Reconciliation, audits and point-in-time balance reconstruction all depend on the journal meaning exactly what it said at the time; an entry that can be quietly rewritten stops being evidence of anything."
35
- }
36
- ],
37
- "relations": []
38
- }
@@ -1,36 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-mfa",
4
- "category": "requirement",
5
- "name": "Multi-Factor Authentication",
6
- "description": "A second factor is required for privileged access and high-risk operations.",
7
- "tags": [
8
- "security",
9
- "authentication",
10
- "access-control"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "hubRefs": [
14
- "req-auth",
15
- "req-least-privilege",
16
- "adr-zero-trust-network"
17
- ]
18
- },
19
- "nodes": [
20
- {
21
- "id": "req-mfa-1",
22
- "type": "requirement",
23
- "label": "Multi-Factor Authentication",
24
- "x": 0,
25
- "y": 0,
26
- "width": 200,
27
- "height": 80,
28
- "collapsed": false,
29
- "ears_type": "event-driven",
30
- "trigger": "a user requests access to administrative functions or initiates a high-risk operation such as a payout, a permission change or a data export",
31
- "action": "require a second authentication factor (TOTP, push approval or a hardware key) before granting access, and re-prompt after the session's step-up validity expires",
32
- "rationale": "Credential theft is the most common intrusion path; a second factor turns a leaked password into a non-event for the operations that matter most."
33
- }
34
- ],
35
- "relations": []
36
- }
@@ -1,42 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-ml-extraction-accuracy",
4
- "category": "requirement",
5
- "name": "Document Extraction Accuracy",
6
- "description": "Accuracy threshold for ML-based extraction of structured fields from documents before results are trusted without review.",
7
- "tags": [
8
- "ai",
9
- "machine-learning",
10
- "document-processing"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "templateParams": [
14
- {
15
- "key": "MIN_F1_PCT",
16
- "label": "Minimum F1 score (%)",
17
- "hint": "95",
18
- "type": "number",
19
- "defaultValue": "95"
20
- }
21
- ],
22
- "hubRefs": [
23
- "ff-ai-eval-gate"
24
- ]
25
- },
26
- "nodes": [
27
- {
28
- "id": "req-ml-extraction-accuracy-1",
29
- "type": "requirement",
30
- "label": "Document Extraction Accuracy",
31
- "x": 0,
32
- "y": 0,
33
- "width": 200,
34
- "height": 80,
35
- "collapsed": false,
36
- "ears_type": "ubiquitous",
37
- "action": "achieve an F1 score of at least {{MIN_F1_PCT}}% per extracted field on a representative labelled test set, route documents below the per-field confidence threshold to human review, and re-evaluate on every model change",
38
- "rationale": "F1 balances missed fields against wrong ones; below the threshold human correction costs more than the automation saves, so the metric decides where the review queue starts."
39
- }
40
- ],
41
- "relations": []
42
- }
@@ -1,42 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-onboarding-time",
4
- "category": "requirement",
5
- "name": "Time to First Value",
6
- "description": "A new user reaches the product's core value quickly and without external help.",
7
- "tags": [
8
- "usability",
9
- "onboarding",
10
- "ux"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "templateParams": [
14
- {
15
- "key": "ONBOARDING_MINUTES",
16
- "label": "Time to first value (min)",
17
- "hint": "5",
18
- "type": "number",
19
- "defaultValue": "5"
20
- }
21
- ],
22
- "hubRefs": [
23
- "req-task-success-rate"
24
- ]
25
- },
26
- "nodes": [
27
- {
28
- "id": "req-onboarding-time-1",
29
- "type": "requirement",
30
- "label": "Time to First Value",
31
- "x": 0,
32
- "y": 0,
33
- "width": 200,
34
- "height": 80,
35
- "collapsed": false,
36
- "ears_type": "ubiquitous",
37
- "action": "allow a first-time user to complete the primary onboarding flow and reach the core value moment within {{ONBOARDING_MINUTES}} minutes without documentation or support",
38
- "rationale": "Time to value is the strongest predictor of activation and trial conversion; every extra step in onboarding is measurable drop-off."
39
- }
40
- ],
41
- "relations": []
42
- }
@@ -1,59 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-page-load-time",
4
- "category": "requirement",
5
- "name": "Page Load Performance",
6
- "description": "Core Web Vitals targets for user-facing pages: how quickly the main content renders and how responsive the page is to input.",
7
- "tags": [
8
- "performance",
9
- "web",
10
- "core-web-vitals",
11
- "ux"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "LCP_SECONDS",
17
- "label": "Largest Contentful Paint (s)",
18
- "hint": "2.5",
19
- "type": "number",
20
- "defaultValue": "2.5"
21
- },
22
- {
23
- "key": "INP_MS",
24
- "label": "Interaction to Next Paint (ms)",
25
- "hint": "200",
26
- "type": "number",
27
- "defaultValue": "200"
28
- },
29
- {
30
- "key": "USER_PCT",
31
- "label": "Share of page views meeting the target (%)",
32
- "hint": "75",
33
- "type": "number",
34
- "defaultValue": "75"
35
- }
36
- ],
37
- "hubRefs": [
38
- "ff-web-vitals",
39
- "pattern-bff"
40
- ]
41
- },
42
- "nodes": [
43
- {
44
- "id": "req-page-load-time-1",
45
- "type": "requirement",
46
- "label": "Page Load Performance",
47
- "x": 0,
48
- "y": 0,
49
- "width": 200,
50
- "height": 80,
51
- "collapsed": false,
52
- "ears_type": "state-driven",
53
- "precondition": "a user loads a page on a typical mid-range device and network connection",
54
- "action": "reach Largest Contentful Paint within {{LCP_SECONDS}} s and keep Interaction to Next Paint under {{INP_MS}} ms for at least {{USER_PCT}}% of real-user page views",
55
- "rationale": "Core Web Vitals are the industry-standard, field-measurable definition of perceived load speed and responsiveness, and they influence search ranking."
56
- }
57
- ],
58
- "relations": []
59
- }
@@ -1,46 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-payout-latency",
4
- "category": "requirement",
5
- "name": "Seller Payout Latency",
6
- "description": "Time from an order becoming payout-eligible to the seller actually receiving funds.",
7
- "tags": [
8
- "marketplace",
9
- "payments",
10
- "trust",
11
- "sla"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "PAYOUT_HOURS",
17
- "label": "Payout SLA after eligibility (hours)",
18
- "hint": "48",
19
- "type": "number",
20
- "defaultValue": "48"
21
- }
22
- ],
23
- "hubRefs": [
24
- "adr-marketplace-payments-model",
25
- "req-availability",
26
- "req-audit-logging"
27
- ]
28
- },
29
- "nodes": [
30
- {
31
- "id": "req-payout-latency-1",
32
- "type": "requirement",
33
- "label": "Seller Payout Latency",
34
- "x": 0,
35
- "y": 0,
36
- "width": 200,
37
- "height": 80,
38
- "collapsed": false,
39
- "ears_type": "event-driven",
40
- "trigger": "an order becomes payout-eligible — delivered, past the buyer's dispute window, with no open hold",
41
- "action": "release the seller's payout, net of commission, within {{PAYOUT_HOURS}} hours",
42
- "rationale": "Payout speed is one of the few things a marketplace can promise sellers directly; it can only start the clock once the dispute window has passed, since a chargeback after payout has to be clawed back rather than simply withheld."
43
- }
44
- ],
45
- "relations": []
46
- }
@@ -1,46 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-presence-latency",
4
- "category": "requirement",
5
- "name": "Presence & Edit Propagation Latency",
6
- "description": "Time from one collaborator's cursor move or edit to it becoming visible to every other collaborator currently viewing the same document.",
7
- "tags": [
8
- "real-time",
9
- "latency",
10
- "collaboration",
11
- "ux"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "PROPAGATION_MS",
17
- "label": "Edit / presence propagation (ms, p95)",
18
- "hint": "150",
19
- "type": "number",
20
- "defaultValue": "150"
21
- }
22
- ],
23
- "hubRefs": [
24
- "pattern-crdt-sync",
25
- "ff-sync-convergence-test",
26
- "req-availability"
27
- ]
28
- },
29
- "nodes": [
30
- {
31
- "id": "req-presence-latency-1",
32
- "type": "requirement",
33
- "label": "Presence & Edit Propagation Latency",
34
- "x": 0,
35
- "y": 0,
36
- "width": 200,
37
- "height": 80,
38
- "collapsed": false,
39
- "ears_type": "event-driven",
40
- "trigger": "a connected collaborator moves their cursor, changes their selection, or edits the document",
41
- "action": "propagate that change to every other collaborator currently viewing the same document within {{PROPAGATION_MS}} ms at the 95th percentile",
42
- "rationale": "Below roughly this threshold collaboration feels 'live'; above it, users start to see stale cursors and edits that collide before they notice someone else is already there — the perceptual line between real-time and merely synced."
43
- }
44
- ],
45
- "relations": []
46
- }
@@ -1,45 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-rate-limiting",
4
- "category": "requirement",
5
- "name": "API Rate Limiting",
6
- "description": "Per-client request quotas that protect shared capacity from abusive or runaway clients.",
7
- "tags": [
8
- "principle",
9
- "security",
10
- "api",
11
- "resilience"
12
- ],
13
- "requiredMetamodel": "c4-ddd-governance-builtin",
14
- "templateParams": [
15
- {
16
- "key": "RATE_LIMIT_RPM",
17
- "label": "Requests per minute per client",
18
- "hint": "600",
19
- "type": "number",
20
- "defaultValue": "600"
21
- }
22
- ],
23
- "hubRefs": [
24
- "pattern-api-gateway",
25
- "pattern-rate-limiter"
26
- ]
27
- },
28
- "nodes": [
29
- {
30
- "id": "req-rate-limiting-1",
31
- "type": "requirement",
32
- "label": "API Rate Limiting",
33
- "x": 0,
34
- "y": 0,
35
- "width": 200,
36
- "height": 80,
37
- "collapsed": false,
38
- "ears_type": "event-driven",
39
- "trigger": "a client exceeds {{RATE_LIMIT_RPM}} requests per minute",
40
- "action": "reject the excess requests with HTTP 429, include a Retry-After header and the remaining quota, and record the event for abuse monitoring",
41
- "rationale": "One misconfigured integration can consume the capacity of every other tenant; explicit quotas make fair use enforceable and give clients a predictable contract."
42
- }
43
- ],
44
- "relations": []
45
- }
@@ -1,44 +0,0 @@
1
- {
2
- "hub": {
3
- "id": "req-report-generation",
4
- "category": "requirement",
5
- "name": "Report Generation Time",
6
- "description": "Time limit for synchronous report generation, with an explicit hand-off to asynchronous delivery for anything slower.",
7
- "tags": [
8
- "performance",
9
- "reporting",
10
- "analytics"
11
- ],
12
- "requiredMetamodel": "c4-ddd-governance-builtin",
13
- "templateParams": [
14
- {
15
- "key": "REPORT_MAX_SECONDS",
16
- "label": "Synchronous report limit (s)",
17
- "hint": "30",
18
- "type": "number",
19
- "defaultValue": "30"
20
- }
21
- ],
22
- "hubRefs": [
23
- "req-db-query-response",
24
- "req-throughput"
25
- ]
26
- },
27
- "nodes": [
28
- {
29
- "id": "req-report-generation-1",
30
- "type": "requirement",
31
- "label": "Report Generation Time",
32
- "x": 0,
33
- "y": 0,
34
- "width": 200,
35
- "height": 80,
36
- "collapsed": false,
37
- "ears_type": "event-driven",
38
- "trigger": "a user requests a standard report",
39
- "action": "deliver the report within {{REPORT_MAX_SECONDS}} seconds, or immediately switch to asynchronous generation and notify the user when the report is ready",
40
- "rationale": "Users abandon blocking requests that appear to hang; a fixed cut-over to async keeps the UI responsive regardless of data volume."
41
- }
42
- ],
43
- "relations": []
44
- }