@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.
- package/README.md +41 -23
- package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
- package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
- package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
- package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
- package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
- package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
- package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
- package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
- package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
- package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
- package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
- package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
- package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
- package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
- package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
- package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
- package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
- package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
- package/dist/index.js +10321 -3964
- package/package.json +1 -1
- package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
- package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
- package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
- package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
- package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
- package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
- package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
- package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
- package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
- package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
- package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
- package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
- package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
- package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
- package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
- package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
- package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
- package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
- package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
- package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
- package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
- package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
- package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
- package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
- package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
- package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
- package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
- package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
- package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
- package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
- package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
- package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
- package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
- package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
- package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
- package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
- package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
- package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
- package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
- package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
- package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
- package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
- package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
- package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
- package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
- package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
- package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
- package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
- package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
- package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
- package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
- package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
- package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
- package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
- package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
- package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
- package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
- package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
- package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
- package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
- package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
- package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
- package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
- package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
- package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
- package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
- package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
- package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
- package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
- package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
- package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
- package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
- package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
- package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
- package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
- package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
- package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
- package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
- package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
- package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
- package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
- package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
- package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
- package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
- package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
- package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
- package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
- package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
- package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
- package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
- package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
- package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
- package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
- package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
- package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
- package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
- package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
- package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
- package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
- package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
- package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
- package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
- package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
- package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
- package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
- package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
- package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
- package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hub": {
|
|
3
|
-
"id": "pattern-rag-pipeline",
|
|
4
|
-
"category": "pattern",
|
|
5
|
-
"name": "Retrieval-Augmented Generation Pipeline",
|
|
6
|
-
"description": "New content is chunked and embedded into a vector store; at query time a retriever finds the most relevant passages and an orchestrator grounds the LLM's answer in them, citing sources and refusing to answer when nothing relevant is retrieved.",
|
|
7
|
-
"tags": [
|
|
8
|
-
"ai",
|
|
9
|
-
"llm",
|
|
10
|
-
"rag",
|
|
11
|
-
"retrieval",
|
|
12
|
-
"vector-search"
|
|
13
|
-
],
|
|
14
|
-
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
15
|
-
"hubRefs": [
|
|
16
|
-
"req-ai-groundedness",
|
|
17
|
-
"ff-ai-eval-gate",
|
|
18
|
-
"adr-llm-provider-strategy",
|
|
19
|
-
"req-encryption",
|
|
20
|
-
"pattern-event-driven"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"nodes": [
|
|
24
|
-
{
|
|
25
|
-
"id": "user",
|
|
26
|
-
"type": "person",
|
|
27
|
-
"label": "User",
|
|
28
|
-
"description": "Asks a question in natural language and expects a grounded, cited answer — or an honest refusal.",
|
|
29
|
-
"width": 150,
|
|
30
|
-
"height": 170,
|
|
31
|
-
"collapsed": false,
|
|
32
|
-
"x": 0,
|
|
33
|
-
"y": 0
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"id": "platform",
|
|
37
|
-
"type": "system",
|
|
38
|
-
"label": "RAG Assistant",
|
|
39
|
-
"description": "Answers questions using only what it can retrieve from indexed source documents.",
|
|
40
|
-
"width": 1040,
|
|
41
|
-
"height": 510,
|
|
42
|
-
"collapsed": false,
|
|
43
|
-
"x": 0,
|
|
44
|
-
"y": 290
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"id": "ingestion-worker",
|
|
48
|
-
"type": "container",
|
|
49
|
-
"label": "Ingestion Worker",
|
|
50
|
-
"description": "Chunks new or changed source documents and requests embeddings before writing them to the vector store.",
|
|
51
|
-
"technology": "Python",
|
|
52
|
-
"parentId": "platform",
|
|
53
|
-
"width": 300,
|
|
54
|
-
"height": 200,
|
|
55
|
-
"collapsed": false,
|
|
56
|
-
"x": 30,
|
|
57
|
-
"y": 110
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"id": "retriever",
|
|
61
|
-
"type": "container",
|
|
62
|
-
"label": "Retriever",
|
|
63
|
-
"description": "Embeds the incoming question, runs top-k similarity search with reranking, and returns passages plus their source citations.",
|
|
64
|
-
"technology": "Python",
|
|
65
|
-
"parentId": "platform",
|
|
66
|
-
"width": 300,
|
|
67
|
-
"height": 200,
|
|
68
|
-
"collapsed": false,
|
|
69
|
-
"x": 370,
|
|
70
|
-
"y": 110
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"id": "orchestrator",
|
|
74
|
-
"type": "container",
|
|
75
|
-
"label": "Orchestrator",
|
|
76
|
-
"description": "Builds the grounded prompt from retrieved passages, calls the LLM, and refuses to answer when no passage supports the question.",
|
|
77
|
-
"technology": "Python",
|
|
78
|
-
"parentId": "platform",
|
|
79
|
-
"width": 300,
|
|
80
|
-
"height": 200,
|
|
81
|
-
"collapsed": false,
|
|
82
|
-
"x": 710,
|
|
83
|
-
"y": 110
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"id": "vector-store",
|
|
87
|
-
"type": "database",
|
|
88
|
-
"label": "Vector Store",
|
|
89
|
-
"description": "Embeddings for every indexed chunk, searchable by similarity.",
|
|
90
|
-
"technology": "pgvector",
|
|
91
|
-
"parentId": "platform",
|
|
92
|
-
"width": 190,
|
|
93
|
-
"height": 130,
|
|
94
|
-
"collapsed": false,
|
|
95
|
-
"x": 30,
|
|
96
|
-
"y": 350
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"id": "document-store",
|
|
100
|
-
"type": "database",
|
|
101
|
-
"label": "Document Store",
|
|
102
|
-
"description": "Source documents and their versions — the system of record the vector store is built from.",
|
|
103
|
-
"technology": "S3",
|
|
104
|
-
"parentId": "platform",
|
|
105
|
-
"width": 190,
|
|
106
|
-
"height": 130,
|
|
107
|
-
"collapsed": false,
|
|
108
|
-
"x": 370,
|
|
109
|
-
"y": 350
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"id": "llm-provider",
|
|
113
|
-
"type": "system",
|
|
114
|
-
"label": "LLM Provider",
|
|
115
|
-
"description": "Hosted completion API called with the retrieved context; swappable per the LLM provider strategy decision.",
|
|
116
|
-
"width": 360,
|
|
117
|
-
"height": 260,
|
|
118
|
-
"collapsed": false,
|
|
119
|
-
"x": 0,
|
|
120
|
-
"y": 920
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"relations": [
|
|
124
|
-
{
|
|
125
|
-
"id": "user--orchestrator",
|
|
126
|
-
"sourceId": "user",
|
|
127
|
-
"targetId": "orchestrator",
|
|
128
|
-
"label": "Asks a question",
|
|
129
|
-
"technology": "HTTPS / JSON"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"id": "orchestrator--retriever",
|
|
133
|
-
"sourceId": "orchestrator",
|
|
134
|
-
"targetId": "retriever",
|
|
135
|
-
"label": "Requests grounding context for the question",
|
|
136
|
-
"technology": "gRPC"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"id": "retriever--vector-store",
|
|
140
|
-
"sourceId": "retriever",
|
|
141
|
-
"targetId": "vector-store",
|
|
142
|
-
"label": "k-NN similarity search",
|
|
143
|
-
"technology": "SQL"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"id": "ingestion-worker--document-store",
|
|
147
|
-
"sourceId": "ingestion-worker",
|
|
148
|
-
"targetId": "document-store",
|
|
149
|
-
"label": "Reads new or changed source documents",
|
|
150
|
-
"technology": "S3 API"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"id": "ingestion-worker--vector-store",
|
|
154
|
-
"sourceId": "ingestion-worker",
|
|
155
|
-
"targetId": "vector-store",
|
|
156
|
-
"label": "Writes chunk embeddings",
|
|
157
|
-
"technology": "SQL"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"id": "orchestrator--llm-provider",
|
|
161
|
-
"sourceId": "orchestrator",
|
|
162
|
-
"targetId": "llm-provider",
|
|
163
|
-
"label": "Completion request with retrieved passages",
|
|
164
|
-
"technology": "HTTPS"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"id": "orchestrator--user",
|
|
168
|
-
"sourceId": "orchestrator",
|
|
169
|
-
"targetId": "user",
|
|
170
|
-
"label": "Returns an answer with citations, or a refusal",
|
|
171
|
-
"technology": "HTTPS / JSON"
|
|
172
|
-
}
|
|
173
|
-
],
|
|
174
|
-
"sequences": [
|
|
175
|
-
{
|
|
176
|
-
"id": "pattern-rag-pipeline-seq",
|
|
177
|
-
"name": "Ask a grounded question",
|
|
178
|
-
"relationIds": [
|
|
179
|
-
"user--orchestrator",
|
|
180
|
-
"orchestrator--retriever",
|
|
181
|
-
"retriever--vector-store",
|
|
182
|
-
"orchestrator--llm-provider",
|
|
183
|
-
"orchestrator--user"
|
|
184
|
-
],
|
|
185
|
-
"stepDescriptions": [
|
|
186
|
-
"User asks a question.",
|
|
187
|
-
"Orchestrator asks the retriever for supporting context.",
|
|
188
|
-
"Retriever embeds the question and finds the closest passages in the vector store.",
|
|
189
|
-
"Orchestrator sends the question plus retrieved passages to the LLM.",
|
|
190
|
-
"Orchestrator returns the answer with citations to the retrieved passages — or a refusal if nothing relevant was retrieved."
|
|
191
|
-
]
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
"views": [
|
|
195
|
-
{
|
|
196
|
-
"id": "pattern-rag-pipeline-flow",
|
|
197
|
-
"name": "Ask a grounded question",
|
|
198
|
-
"kind": "dynamic",
|
|
199
|
-
"sequenceId": "pattern-rag-pipeline-seq",
|
|
200
|
-
"nodeIds": [
|
|
201
|
-
"user",
|
|
202
|
-
"platform",
|
|
203
|
-
"ingestion-worker",
|
|
204
|
-
"retriever",
|
|
205
|
-
"orchestrator",
|
|
206
|
-
"vector-store",
|
|
207
|
-
"document-store",
|
|
208
|
-
"llm-provider"
|
|
209
|
-
],
|
|
210
|
-
"positions": {}
|
|
211
|
-
}
|
|
212
|
-
]
|
|
213
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hub": {
|
|
3
|
-
"id": "pattern-rate-limiter",
|
|
4
|
-
"category": "pattern",
|
|
5
|
-
"name": "Rate Limiter (Token Bucket)",
|
|
6
|
-
"description": "Requests are metered against a per-client token bucket at the edge before they reach any backend service. Buckets refill at a fixed rate, absorbing short bursts while enforcing a hard ceiling on sustained traffic per client.",
|
|
7
|
-
"tags": [
|
|
8
|
-
"rate-limiting",
|
|
9
|
-
"throttling",
|
|
10
|
-
"token-bucket",
|
|
11
|
-
"api-gateway",
|
|
12
|
-
"resilience"
|
|
13
|
-
],
|
|
14
|
-
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
15
|
-
"hubRefs": [
|
|
16
|
-
"pattern-api-gateway",
|
|
17
|
-
"req-rate-limiting",
|
|
18
|
-
"req-throughput"
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
"nodes": [
|
|
22
|
-
{
|
|
23
|
-
"id": "client",
|
|
24
|
-
"type": "person",
|
|
25
|
-
"label": "API Client",
|
|
26
|
-
"description": "A third-party integration or another internal service.",
|
|
27
|
-
"width": 150,
|
|
28
|
-
"height": 170,
|
|
29
|
-
"collapsed": false,
|
|
30
|
-
"x": 0,
|
|
31
|
-
"y": 0
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"id": "platform",
|
|
35
|
-
"type": "system",
|
|
36
|
-
"label": "Public API",
|
|
37
|
-
"description": "Protects shared capacity and enforces fair use per API key.",
|
|
38
|
-
"width": 590,
|
|
39
|
-
"height": 580,
|
|
40
|
-
"collapsed": false,
|
|
41
|
-
"x": 0,
|
|
42
|
-
"y": 290
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"id": "gateway",
|
|
46
|
-
"type": "container",
|
|
47
|
-
"label": "API Gateway",
|
|
48
|
-
"description": "Enforces a per-key token bucket before forwarding any request.",
|
|
49
|
-
"technology": "Envoy / Lua filter",
|
|
50
|
-
"parentId": "platform",
|
|
51
|
-
"width": 300,
|
|
52
|
-
"height": 200,
|
|
53
|
-
"collapsed": false,
|
|
54
|
-
"x": 30,
|
|
55
|
-
"y": 110
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"id": "limit-store",
|
|
59
|
-
"type": "database",
|
|
60
|
-
"label": "Rate Limit Store",
|
|
61
|
-
"description": "Shared token-bucket counters, so the limit holds across every gateway instance.",
|
|
62
|
-
"technology": "Redis",
|
|
63
|
-
"parentId": "platform",
|
|
64
|
-
"width": 190,
|
|
65
|
-
"height": 130,
|
|
66
|
-
"collapsed": false,
|
|
67
|
-
"x": 370,
|
|
68
|
-
"y": 110
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"id": "backend-service",
|
|
72
|
-
"type": "container",
|
|
73
|
-
"label": "Backend Service",
|
|
74
|
-
"description": "Only ever sees traffic that already passed the limiter.",
|
|
75
|
-
"technology": "Java",
|
|
76
|
-
"parentId": "platform",
|
|
77
|
-
"width": 300,
|
|
78
|
-
"height": 200,
|
|
79
|
-
"collapsed": false,
|
|
80
|
-
"x": 30,
|
|
81
|
-
"y": 350
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"relations": [
|
|
85
|
-
{
|
|
86
|
-
"id": "client--gateway",
|
|
87
|
-
"sourceId": "client",
|
|
88
|
-
"targetId": "gateway",
|
|
89
|
-
"label": "Sends request with API key",
|
|
90
|
-
"technology": "HTTPS"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"id": "gateway--limit-store",
|
|
94
|
-
"sourceId": "gateway",
|
|
95
|
-
"targetId": "limit-store",
|
|
96
|
-
"label": "Checks and decrements the caller's token bucket",
|
|
97
|
-
"technology": "RESP"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"id": "gateway--backend-service",
|
|
101
|
-
"sourceId": "gateway",
|
|
102
|
-
"targetId": "backend-service",
|
|
103
|
-
"label": "Forwards if a token was available",
|
|
104
|
-
"technology": "HTTPS"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"id": "gateway--client",
|
|
108
|
-
"sourceId": "gateway",
|
|
109
|
-
"targetId": "client",
|
|
110
|
-
"label": "Otherwise rejects with 429 + Retry-After",
|
|
111
|
-
"technology": "HTTPS"
|
|
112
|
-
}
|
|
113
|
-
]
|
|
114
|
-
}
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hub": {
|
|
3
|
-
"id": "pattern-saga",
|
|
4
|
-
"category": "pattern",
|
|
5
|
-
"name": "Saga (Orchestrated)",
|
|
6
|
-
"description": "A business transaction that spans multiple services runs as a sequence of local transactions coordinated by an orchestrator. If a step fails, the orchestrator runs compensating actions for every step that already succeeded, trading atomicity for service autonomy and availability.",
|
|
7
|
-
"tags": [
|
|
8
|
-
"saga",
|
|
9
|
-
"distributed-transactions",
|
|
10
|
-
"orchestration",
|
|
11
|
-
"compensation",
|
|
12
|
-
"microservices"
|
|
13
|
-
],
|
|
14
|
-
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
15
|
-
"hubRefs": [
|
|
16
|
-
"pattern-microservices",
|
|
17
|
-
"pattern-transactional-outbox",
|
|
18
|
-
"pattern-cqrs",
|
|
19
|
-
"req-idempotency",
|
|
20
|
-
"adr-data-consistency-model"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"nodes": [
|
|
24
|
-
{
|
|
25
|
-
"id": "customer",
|
|
26
|
-
"type": "person",
|
|
27
|
-
"label": "Customer",
|
|
28
|
-
"description": "Places an order that must touch payment, inventory and shipping.",
|
|
29
|
-
"width": 150,
|
|
30
|
-
"height": 170,
|
|
31
|
-
"collapsed": false,
|
|
32
|
-
"x": 0,
|
|
33
|
-
"y": 0
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"id": "platform",
|
|
37
|
-
"type": "system",
|
|
38
|
-
"label": "Order Fulfilment",
|
|
39
|
-
"description": "Coordinates a business transaction that spans four services without a distributed transaction.",
|
|
40
|
-
"width": 1040,
|
|
41
|
-
"height": 580,
|
|
42
|
-
"collapsed": false,
|
|
43
|
-
"x": 0,
|
|
44
|
-
"y": 290
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"id": "order-service",
|
|
48
|
-
"type": "container",
|
|
49
|
-
"label": "Order Service",
|
|
50
|
-
"description": "Accepts the order and starts the saga.",
|
|
51
|
-
"technology": "Node.js",
|
|
52
|
-
"parentId": "platform",
|
|
53
|
-
"width": 300,
|
|
54
|
-
"height": 200,
|
|
55
|
-
"collapsed": false,
|
|
56
|
-
"x": 30,
|
|
57
|
-
"y": 110
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"id": "orchestrator",
|
|
61
|
-
"type": "container",
|
|
62
|
-
"label": "Saga Orchestrator",
|
|
63
|
-
"description": "Drives each step in order; on failure, runs compensating actions for every step that already succeeded.",
|
|
64
|
-
"technology": "Temporal",
|
|
65
|
-
"parentId": "platform",
|
|
66
|
-
"width": 300,
|
|
67
|
-
"height": 200,
|
|
68
|
-
"collapsed": false,
|
|
69
|
-
"x": 370,
|
|
70
|
-
"y": 110
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"id": "saga-store",
|
|
74
|
-
"type": "database",
|
|
75
|
-
"label": "Saga State Store",
|
|
76
|
-
"description": "Persists each saga instance's current step and history, so an orchestrator crash resumes instead of losing the transaction.",
|
|
77
|
-
"technology": "PostgreSQL",
|
|
78
|
-
"parentId": "platform",
|
|
79
|
-
"width": 190,
|
|
80
|
-
"height": 130,
|
|
81
|
-
"collapsed": false,
|
|
82
|
-
"x": 710,
|
|
83
|
-
"y": 110
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"id": "payment-service",
|
|
87
|
-
"type": "container",
|
|
88
|
-
"label": "Payment Service",
|
|
89
|
-
"description": "Reserves and later captures payment. Reservations expire and release automatically.",
|
|
90
|
-
"technology": "Java",
|
|
91
|
-
"parentId": "platform",
|
|
92
|
-
"width": 300,
|
|
93
|
-
"height": 200,
|
|
94
|
-
"collapsed": false,
|
|
95
|
-
"x": 30,
|
|
96
|
-
"y": 350
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"id": "inventory-service",
|
|
100
|
-
"type": "container",
|
|
101
|
-
"label": "Inventory Service",
|
|
102
|
-
"description": "Reserves stock for the order line items.",
|
|
103
|
-
"technology": "Java",
|
|
104
|
-
"parentId": "platform",
|
|
105
|
-
"width": 300,
|
|
106
|
-
"height": 200,
|
|
107
|
-
"collapsed": false,
|
|
108
|
-
"x": 370,
|
|
109
|
-
"y": 350
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"id": "shipping-service",
|
|
113
|
-
"type": "container",
|
|
114
|
-
"label": "Shipping Service",
|
|
115
|
-
"description": "Books a carrier once payment and stock are both confirmed.",
|
|
116
|
-
"technology": "Java",
|
|
117
|
-
"parentId": "platform",
|
|
118
|
-
"width": 300,
|
|
119
|
-
"height": 200,
|
|
120
|
-
"collapsed": false,
|
|
121
|
-
"x": 710,
|
|
122
|
-
"y": 350
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"relations": [
|
|
126
|
-
{
|
|
127
|
-
"id": "customer--order-service",
|
|
128
|
-
"sourceId": "customer",
|
|
129
|
-
"targetId": "order-service",
|
|
130
|
-
"label": "Places order",
|
|
131
|
-
"technology": "HTTPS"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"id": "order-service--orchestrator",
|
|
135
|
-
"sourceId": "order-service",
|
|
136
|
-
"targetId": "orchestrator",
|
|
137
|
-
"label": "Starts saga: FulfilOrder",
|
|
138
|
-
"technology": "async command"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"id": "orchestrator--saga-store",
|
|
142
|
-
"sourceId": "orchestrator",
|
|
143
|
-
"targetId": "saga-store",
|
|
144
|
-
"label": "Persists step, resumes after crash",
|
|
145
|
-
"technology": "SQL"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"id": "orchestrator--payment-service",
|
|
149
|
-
"sourceId": "orchestrator",
|
|
150
|
-
"targetId": "payment-service",
|
|
151
|
-
"label": "Step 1: Reserve payment (compensate: Release payment)",
|
|
152
|
-
"technology": "gRPC"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"id": "orchestrator--inventory-service",
|
|
156
|
-
"sourceId": "orchestrator",
|
|
157
|
-
"targetId": "inventory-service",
|
|
158
|
-
"label": "Step 2: Reserve stock (compensate: Release stock)",
|
|
159
|
-
"technology": "gRPC"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"id": "orchestrator--shipping-service",
|
|
163
|
-
"sourceId": "orchestrator",
|
|
164
|
-
"targetId": "shipping-service",
|
|
165
|
-
"label": "Step 3: Book carrier (compensate: Cancel booking)",
|
|
166
|
-
"technology": "gRPC"
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
"sequences": [
|
|
170
|
-
{
|
|
171
|
-
"id": "pattern-saga-seq",
|
|
172
|
-
"name": "Happy path: payment, stock and shipping all succeed",
|
|
173
|
-
"relationIds": [
|
|
174
|
-
"customer--order-service",
|
|
175
|
-
"order-service--orchestrator",
|
|
176
|
-
"orchestrator--payment-service",
|
|
177
|
-
"orchestrator--inventory-service",
|
|
178
|
-
"orchestrator--shipping-service"
|
|
179
|
-
],
|
|
180
|
-
"stepDescriptions": [
|
|
181
|
-
"Customer places an order.",
|
|
182
|
-
"Order service starts the saga.",
|
|
183
|
-
"Orchestrator reserves payment.",
|
|
184
|
-
"Orchestrator reserves stock.",
|
|
185
|
-
"Orchestrator books shipping; saga completes. If any step above had failed, the orchestrator would instead run that step's compensation and every prior step's compensation, in reverse order."
|
|
186
|
-
]
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"views": [
|
|
190
|
-
{
|
|
191
|
-
"id": "pattern-saga-flow",
|
|
192
|
-
"name": "Happy path: payment, stock and shipping all succeed",
|
|
193
|
-
"kind": "dynamic",
|
|
194
|
-
"sequenceId": "pattern-saga-seq",
|
|
195
|
-
"nodeIds": [
|
|
196
|
-
"customer",
|
|
197
|
-
"platform",
|
|
198
|
-
"order-service",
|
|
199
|
-
"orchestrator",
|
|
200
|
-
"saga-store",
|
|
201
|
-
"payment-service",
|
|
202
|
-
"inventory-service",
|
|
203
|
-
"shipping-service"
|
|
204
|
-
],
|
|
205
|
-
"positions": {}
|
|
206
|
-
}
|
|
207
|
-
]
|
|
208
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hub": {
|
|
3
|
-
"id": "pattern-sidecar",
|
|
4
|
-
"category": "pattern",
|
|
5
|
-
"name": "Sidecar (Service Mesh)",
|
|
6
|
-
"description": "A proxy process runs alongside each service instance and intercepts all of its network traffic, handling mTLS, retries, timeouts and telemetry so the service's own code stays free of that logic. A control plane pushes routing and security policy to every sidecar.",
|
|
7
|
-
"tags": [
|
|
8
|
-
"sidecar",
|
|
9
|
-
"service-mesh",
|
|
10
|
-
"mtls",
|
|
11
|
-
"observability",
|
|
12
|
-
"infrastructure"
|
|
13
|
-
],
|
|
14
|
-
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
15
|
-
"hubRefs": [
|
|
16
|
-
"pattern-circuit-breaker",
|
|
17
|
-
"req-distributed-tracing",
|
|
18
|
-
"req-least-privilege",
|
|
19
|
-
"adr-zero-trust-network"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
"nodes": [
|
|
23
|
-
{
|
|
24
|
-
"id": "platform",
|
|
25
|
-
"type": "system",
|
|
26
|
-
"label": "Service Mesh",
|
|
27
|
-
"description": "Cross-cutting network concerns move out of application code and into a uniform sidecar proxy per instance.",
|
|
28
|
-
"width": 620,
|
|
29
|
-
"height": 640,
|
|
30
|
-
"collapsed": false,
|
|
31
|
-
"x": 0,
|
|
32
|
-
"y": 0
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"id": "order-service",
|
|
36
|
-
"type": "container",
|
|
37
|
-
"label": "Order Service",
|
|
38
|
-
"description": "Business logic for orders. Unaware of mTLS, retries or tracing headers — the sidecar handles all of it.",
|
|
39
|
-
"technology": "Java",
|
|
40
|
-
"parentId": "platform",
|
|
41
|
-
"width": 260,
|
|
42
|
-
"height": 260,
|
|
43
|
-
"collapsed": false,
|
|
44
|
-
"x": 30,
|
|
45
|
-
"y": 110
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"id": "order-sidecar",
|
|
49
|
-
"type": "component",
|
|
50
|
-
"label": "Sidecar",
|
|
51
|
-
"description": "Intercepts all inbound/outbound traffic for this instance: mTLS, retries, timeouts, load balancing and telemetry.",
|
|
52
|
-
"technology": "Envoy",
|
|
53
|
-
"parentId": "order-service",
|
|
54
|
-
"width": 200,
|
|
55
|
-
"height": 120,
|
|
56
|
-
"collapsed": false,
|
|
57
|
-
"x": 30,
|
|
58
|
-
"y": 110
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"id": "payment-service",
|
|
62
|
-
"type": "container",
|
|
63
|
-
"label": "Payment Service",
|
|
64
|
-
"description": "Business logic for payments. Same code whether it's called in dev or across regions in prod.",
|
|
65
|
-
"technology": "Java",
|
|
66
|
-
"parentId": "platform",
|
|
67
|
-
"width": 260,
|
|
68
|
-
"height": 260,
|
|
69
|
-
"collapsed": false,
|
|
70
|
-
"x": 330,
|
|
71
|
-
"y": 110
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"id": "payment-sidecar",
|
|
75
|
-
"type": "component",
|
|
76
|
-
"label": "Sidecar",
|
|
77
|
-
"description": "Intercepts all inbound/outbound traffic for this instance: mTLS, retries, timeouts, load balancing and telemetry.",
|
|
78
|
-
"technology": "Envoy",
|
|
79
|
-
"parentId": "payment-service",
|
|
80
|
-
"width": 200,
|
|
81
|
-
"height": 120,
|
|
82
|
-
"collapsed": false,
|
|
83
|
-
"x": 30,
|
|
84
|
-
"y": 110
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"id": "control-plane",
|
|
88
|
-
"type": "container",
|
|
89
|
-
"label": "Mesh Control Plane",
|
|
90
|
-
"description": "Pushes routing rules, mTLS certificates and traffic policy to every sidecar; aggregates the telemetry they emit.",
|
|
91
|
-
"technology": "Istio",
|
|
92
|
-
"parentId": "platform",
|
|
93
|
-
"width": 300,
|
|
94
|
-
"height": 200,
|
|
95
|
-
"collapsed": false,
|
|
96
|
-
"x": 30,
|
|
97
|
-
"y": 410
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"relations": [
|
|
101
|
-
{
|
|
102
|
-
"id": "order-sidecar--payment-sidecar",
|
|
103
|
-
"sourceId": "order-sidecar",
|
|
104
|
-
"targetId": "payment-sidecar",
|
|
105
|
-
"label": "Order service's call to Payment is transparently intercepted, mTLS-wrapped and retried here",
|
|
106
|
-
"technology": "mTLS / HTTP2"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"id": "control-plane--order-sidecar",
|
|
110
|
-
"sourceId": "control-plane",
|
|
111
|
-
"targetId": "order-sidecar",
|
|
112
|
-
"label": "Pushes policy, certs; pulls telemetry",
|
|
113
|
-
"technology": "xDS"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"id": "control-plane--payment-sidecar",
|
|
117
|
-
"sourceId": "control-plane",
|
|
118
|
-
"targetId": "payment-sidecar",
|
|
119
|
-
"label": "Pushes policy, certs; pulls telemetry",
|
|
120
|
-
"technology": "xDS"
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|