-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomponent_map.yaml
More file actions
445 lines (405 loc) · 12.1 KB
/
component_map.yaml
File metadata and controls
445 lines (405 loc) · 12.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
version: "1.0"
generated_by: constrain
session_id: apprentice_distillation_001
components:
- name: "api_router"
description: "orchestrates request routing across phases and models"
type: service
port: 8080
protocol: http
data_access:
reads: [PUBLIC, PII, FINANCIAL]
writes: [PUBLIC]
rationale: "routes requests and logs routing decisions"
authority:
domains: []
rationale: null
dependencies: ["frontier_client", "local_model_server", "quality_evaluator"]
constraints: ["C001", "C003"]
- name: "frontier_client"
description: "manages communication with external frontier APIs"
type: egress
port: null
protocol: http
data_access:
reads: [AUTH, PUBLIC]
writes: [PUBLIC]
rationale: "accesses API keys and sends requests to external services"
authority:
domains: []
rationale: null
dependencies: ["auth_manager"]
constraints: ["C001", "C002"]
- name: "local_model_server"
description: "serves fine-tuned local models"
type: service
port: 8081
protocol: http
data_access:
reads: [PUBLIC]
writes: [PUBLIC]
rationale: "processes inference requests with local models"
authority:
domains: []
rationale: null
dependencies: ["model_loader"]
constraints: []
- name: "pii_detector"
description: "identifies and protects personally identifiable information"
type: service
port: 8082
protocol: grpc
data_access:
reads: [PII, PUBLIC]
writes: [PII]
rationale: "scans content for PII and maintains detection results"
authority:
domains: ["*.pii.*", "personal.*", "sensitive.*"]
rationale: "responsible for identifying and protecting personal data"
dependencies: []
constraints: ["C002"]
- name: "budget_tracker"
description: "monitors and enforces API spending limits"
type: service
port: 8083
protocol: grpc
data_access:
reads: [FINANCIAL, PUBLIC]
writes: [FINANCIAL]
rationale: "tracks costs and maintains budget state"
authority:
domains: ["budget.*", "cost.*", "billing.*"]
rationale: "authoritative for all financial tracking and limits"
dependencies: []
constraints: ["C001"]
- name: "quality_evaluator"
description: "computes correlation scores and manages phase transitions"
type: service
port: 8084
protocol: grpc
data_access:
reads: [PUBLIC]
writes: [PUBLIC]
rationale: "analyzes quality metrics and maintains correlation data"
authority:
domains: ["quality.*", "correlation.*", "metrics.*"]
rationale: "authoritative for quality assessment and phase transitions"
dependencies: []
constraints: ["C003"]
- name: "training_data_collector"
description: "gathers and curates data for model fine-tuning"
type: worker
port: null
protocol: grpc
data_access:
reads: [PUBLIC]
writes: [PUBLIC]
rationale: "collects API responses for training dataset creation"
authority:
domains: ["training.*", "model_data.*", "dataset.*"]
rationale: "manages collection and curation of model training data"
dependencies: ["response_processor"]
constraints: ["C008"]
- name: "skill_processor"
description: "executes skill packages with tool constraints"
type: service
port: 8085
protocol: grpc
data_access:
reads: [AUTH, PUBLIC]
writes: [PUBLIC]
rationale: "executes skills and logs execution results"
authority:
domains: []
rationale: null
dependencies: ["tool_executor", "package_registry"]
constraints: ["C004", "C006"]
- name: "package_registry"
description: "stores and validates skill package definitions"
type: service
port: 8086
protocol: grpc
data_access:
reads: [PUBLIC]
writes: [PUBLIC]
rationale: "manages skill package storage and metadata"
authority:
domains: []
rationale: null
dependencies: ["package_validator"]
constraints: ["C006"]
- name: "auth_manager"
description: "handles authentication and credential management"
type: service
port: 8087
protocol: grpc
data_access:
reads: [AUTH]
writes: [AUTH]
rationale: "manages API keys and authentication tokens"
authority:
domains: ["*.api_key", "auth.*", "credentials.*"]
rationale: "manages all authentication and authorization data"
dependencies: []
constraints: ["C004"]
- name: "compliance_monitor"
description: "ensures regulatory compliance and audit trails"
type: service
port: 8088
protocol: grpc
data_access:
reads: [COMPLIANCE, PUBLIC]
writes: [COMPLIANCE]
rationale: "monitors compliance status and maintains audit logs"
authority:
domains: ["compliance.*", "regulatory.*", "audit.*"]
rationale: "ensures adherence to regulatory requirements"
dependencies: ["crawler_validator"]
constraints: ["C009", "C010"]
- name: "phase_manager"
description: "coordinates transitions between Cold Start, Reinforcement, and Steady State"
type: service
port: null
protocol: grpc
data_access:
reads: [PUBLIC]
writes: [PUBLIC]
rationale: "manages phase state and transition logic"
authority:
domains: []
rationale: null
dependencies: ["quality_evaluator"]
constraints: ["C003"]
- name: "model_loader"
description: "loads and manages fine-tuned model instances"
type: library
port: null
protocol: grpc
data_access:
reads: [PUBLIC]
writes: []
rationale: "accesses trained models for serving"
authority:
domains: []
rationale: null
dependencies: []
constraints: []
- name: "tool_executor"
description: "executes tools with security constraints"
type: service
port: null
protocol: grpc
data_access:
reads: [AUTH, PUBLIC]
writes: [PUBLIC]
rationale: "executes tools and logs execution attempts"
authority:
domains: []
rationale: null
dependencies: ["preflight_adapter"]
constraints: ["C004"]
- name: "preflight_adapter"
description: "validates tool execution permissions before execution"
type: library
port: null
protocol: grpc
data_access:
reads: [AUTH]
writes: []
rationale: "checks execution permissions for security"
authority:
domains: []
rationale: null
dependencies: []
constraints: ["C004"]
- name: "package_validator"
description: "validates skill package syntax and semantics"
type: library
port: null
protocol: grpc
data_access:
reads: [PUBLIC]
writes: []
rationale: "analyzes package structure for validation"
authority:
domains: []
rationale: null
dependencies: []
constraints: ["C006"]
- name: "response_processor"
description: "processes and filters API responses for training data"
type: library
port: null
protocol: grpc
data_access:
reads: [PUBLIC]
writes: [PUBLIC]
rationale: "filters responses and prepares training samples"
authority:
domains: []
rationale: null
dependencies: []
constraints: ["C008"]
- name: "autosave_manager"
description: "manages snapshot storage with cleanup policies"
type: worker
port: null
protocol: grpc
data_access:
reads: [PUBLIC]
writes: [PUBLIC]
rationale: "manages snapshot data and cleanup operations"
authority:
domains: []
rationale: null
dependencies: ["snapshot_store"]
constraints: ["C007"]
- name: "snapshot_store"
description: "provides bounded storage for system snapshots"
type: library
port: null
protocol: grpc
data_access:
reads: [PUBLIC]
writes: [PUBLIC]
rationale: "stores and retrieves snapshot data"
authority:
domains: []
rationale: null
dependencies: []
constraints: ["C007"]
- name: "request_preprocessor"
description: "preprocesses requests before routing"
type: library
port: null
protocol: grpc
data_access:
reads: [PII, PUBLIC]
writes: []
rationale: "analyzes requests for PII and other preprocessing"
authority:
domains: []
rationale: null
dependencies: ["pii_detector"]
constraints: ["C002"]
- name: "crawler_validator"
description: "validates AI crawler compliance with robots.txt"
type: library
port: null
protocol: grpc
data_access:
reads: [COMPLIANCE]
writes: [COMPLIANCE]
rationale: "validates crawler behavior for compliance"
authority:
domains: []
rationale: null
dependencies: []
constraints: ["C010"]
- name: "web_scraper"
description: "extracts structured data from web pages with compliance"
type: service
port: 8089
protocol: http
data_access:
reads: [COMPLIANCE, PUBLIC]
writes: [PUBLIC]
rationale: "scrapes web content while maintaining compliance"
authority:
domains: []
rationale: null
dependencies: ["crawler_validator"]
constraints: ["C010"]
- name: "deployment_manager"
description: "manages model deployment with canary controls"
type: service
port: null
protocol: grpc
data_access:
reads: [COMPLIANCE, PUBLIC]
writes: [PUBLIC]
rationale: "manages deployment state and canary progression"
authority:
domains: []
rationale: null
dependencies: ["canary_controller"]
constraints: ["C009"]
- name: "canary_controller"
description: "controls canary deployment soak periods"
type: library
port: null
protocol: grpc
data_access:
reads: [COMPLIANCE]
writes: []
rationale: "reads soak configuration for deployment control"
authority:
domains: []
rationale: null
dependencies: []
constraints: ["C009"]
edges:
- from: "api_router"
to: "frontier_client"
protocol: http
description: "routes requests to frontier APIs during Cold Start and Reinforcement phases"
- from: "api_router"
to: "local_model_server"
protocol: http
description: "routes requests to local models during Reinforcement and Steady State phases"
- from: "api_router"
to: "quality_evaluator"
protocol: grpc
description: "sends response pairs for correlation scoring"
- from: "frontier_client"
to: "auth_manager"
protocol: grpc
description: "retrieves API credentials for external service authentication"
- from: "local_model_server"
to: "model_loader"
protocol: grpc
description: "loads fine-tuned models for inference serving"
- from: "training_data_collector"
to: "response_processor"
protocol: grpc
description: "processes API responses into training samples"
- from: "skill_processor"
to: "tool_executor"
protocol: grpc
description: "executes tools defined in skill packages"
- from: "skill_processor"
to: "package_registry"
protocol: grpc
description: "retrieves validated skill package definitions"
- from: "package_registry"
to: "package_validator"
protocol: grpc
description: "validates packages before storage"
- from: "tool_executor"
to: "preflight_adapter"
protocol: grpc
description: "checks execution permissions before tool invocation"
- from: "phase_manager"
to: "quality_evaluator"
protocol: grpc
description: "retrieves correlation scores for phase transition decisions"
- from: "autosave_manager"
to: "snapshot_store"
protocol: grpc
description: "stores and manages system snapshots with cleanup"
- from: "request_preprocessor"
to: "pii_detector"
protocol: grpc
description: "scans requests for PII before processing"
- from: "compliance_monitor"
to: "crawler_validator"
protocol: grpc
description: "validates crawler compliance for audit trails"
- from: "web_scraper"
to: "crawler_validator"
protocol: grpc
description: "ensures compliant crawling behavior"
- from: "deployment_manager"
to: "canary_controller"
protocol: grpc
description: "controls canary deployment soak periods"