@ai-atomic-framework/cli 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,622 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.ai-atomic-framework.dev/registry.schema.json",
4
+ "title": "ATM Registry v0.1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaId", "specVersion", "migration", "registryId", "generatedAt", "entries"],
8
+ "properties": {
9
+ "schemaId": {
10
+ "const": "atm.registry"
11
+ },
12
+ "specVersion": {
13
+ "const": "0.1.0"
14
+ },
15
+ "migration": {
16
+ "$ref": "#/$defs/migration"
17
+ },
18
+ "registryId": {
19
+ "type": "string",
20
+ "pattern": "^registry\\.[a-z0-9]+(?:[.-][a-z0-9]+)*$"
21
+ },
22
+ "generatedAt": {
23
+ "type": "string",
24
+ "format": "date-time"
25
+ },
26
+ "sharding": {
27
+ "$ref": "#/$defs/sharding"
28
+ },
29
+ "entries": {
30
+ "type": "array",
31
+ "minItems": 1,
32
+ "items": {
33
+ "oneOf": [
34
+ {
35
+ "$ref": "#/$defs/registryEntry"
36
+ },
37
+ {
38
+ "$ref": "#/$defs/mapRegistryEntry"
39
+ }
40
+ ]
41
+ }
42
+ }
43
+ },
44
+ "$defs": {
45
+ "migration": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": ["strategy", "fromVersion", "notes"],
49
+ "properties": {
50
+ "strategy": {
51
+ "enum": ["none", "additive", "breaking"]
52
+ },
53
+ "fromVersion": {
54
+ "type": ["string", "null"],
55
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
56
+ },
57
+ "notes": {
58
+ "type": "string"
59
+ }
60
+ }
61
+ },
62
+ "registryEntry": {
63
+ "type": "object",
64
+ "additionalProperties": false,
65
+ "required": [
66
+ "atomId",
67
+ "schemaId",
68
+ "specVersion",
69
+ "schemaPath",
70
+ "specPath",
71
+ "hashLock",
72
+ "owner",
73
+ "status",
74
+ "governance",
75
+ "compatibility",
76
+ "evidence",
77
+ "selfVerification"
78
+ ],
79
+ "properties": {
80
+ "id": {
81
+ "type": "string",
82
+ "pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
83
+ },
84
+ "atomId": {
85
+ "type": "string",
86
+ "pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
87
+ },
88
+ "logicalName": {
89
+ "type": "string",
90
+ "pattern": "^atom\\.[a-z0-9]+(?:[.-][a-z0-9]+)*$"
91
+ },
92
+ "atomVersion": {
93
+ "type": "string",
94
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
95
+ },
96
+ "currentVersion": {
97
+ "type": "string",
98
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
99
+ },
100
+ "versions": {
101
+ "type": "array",
102
+ "minItems": 1,
103
+ "items": {
104
+ "$ref": "#/$defs/registryVersion"
105
+ }
106
+ },
107
+ "semanticFingerprint": {
108
+ "oneOf": [
109
+ {
110
+ "type": "string",
111
+ "pattern": "^(?:sf:)?sha256:[a-f0-9]{64}$"
112
+ },
113
+ {
114
+ "type": "null"
115
+ }
116
+ ]
117
+ },
118
+ "lineageLogRef": {
119
+ "type": "string",
120
+ "minLength": 1
121
+ },
122
+ "evidenceIndexRef": {
123
+ "type": "string",
124
+ "minLength": 1
125
+ },
126
+ "ttl": {
127
+ "type": "integer",
128
+ "minimum": 0
129
+ },
130
+ "schemaId": {
131
+ "const": "atm.atomicSpec"
132
+ },
133
+ "specVersion": {
134
+ "type": "string",
135
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
136
+ },
137
+ "schemaPath": {
138
+ "type": "string",
139
+ "pattern": "^schemas/.+\\.schema\\.json$"
140
+ },
141
+ "specPath": {
142
+ "type": "string",
143
+ "minLength": 1
144
+ },
145
+ "hashLock": {
146
+ "$ref": "#/$defs/hashLock"
147
+ },
148
+ "owner": {
149
+ "type": "object",
150
+ "additionalProperties": false,
151
+ "required": ["name", "contact"],
152
+ "properties": {
153
+ "name": {
154
+ "type": "string",
155
+ "minLength": 1
156
+ },
157
+ "contact": {
158
+ "type": "string",
159
+ "minLength": 1
160
+ }
161
+ }
162
+ },
163
+ "status": {
164
+ "enum": ["draft", "validated", "active", "transitioning", "deprecated", "expired", "quarantined"]
165
+ },
166
+ "governance": {
167
+ "type": "object",
168
+ "additionalProperties": false,
169
+ "required": ["tier"],
170
+ "properties": {
171
+ "tier": {
172
+ "enum": ["foundation", "governed", "standard", "experimental"]
173
+ }
174
+ }
175
+ },
176
+ "location": {
177
+ "$ref": "#/$defs/location"
178
+ },
179
+ "compatibility": {
180
+ "type": "object",
181
+ "additionalProperties": false,
182
+ "required": ["coreVersion", "registryVersion"],
183
+ "properties": {
184
+ "coreVersion": {
185
+ "type": "string",
186
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
187
+ },
188
+ "registryVersion": {
189
+ "type": "string",
190
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
191
+ },
192
+ "pluginApiVersion": {
193
+ "type": "string",
194
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
195
+ },
196
+ "languageAdapter": {
197
+ "type": "string"
198
+ }
199
+ }
200
+ },
201
+ "evidence": {
202
+ "type": "array",
203
+ "items": {
204
+ "type": "string",
205
+ "minLength": 1
206
+ }
207
+ },
208
+ "selfVerification": {
209
+ "$ref": "#/$defs/selfVerification"
210
+ }
211
+ }
212
+ },
213
+ "mapRegistryEntry": {
214
+ "type": "object",
215
+ "additionalProperties": false,
216
+ "required": [
217
+ "mapId",
218
+ "mapVersion",
219
+ "schemaId",
220
+ "specVersion",
221
+ "schemaPath",
222
+ "status",
223
+ "governance",
224
+ "members",
225
+ "edges",
226
+ "entrypoints",
227
+ "qualityTargets",
228
+ "mapHash"
229
+ ],
230
+ "properties": {
231
+ "mapId": {
232
+ "type": "string",
233
+ "pattern": "^ATM-MAP-\\d{4}$"
234
+ },
235
+ "mapVersion": {
236
+ "type": "string",
237
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
238
+ },
239
+ "schemaId": {
240
+ "const": "atm.atomicMap"
241
+ },
242
+ "specVersion": {
243
+ "type": "string",
244
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
245
+ },
246
+ "schemaPath": {
247
+ "type": "string",
248
+ "pattern": "^schemas/.+\\.schema\\.json$"
249
+ },
250
+ "members": {
251
+ "type": "array",
252
+ "minItems": 1,
253
+ "items": {
254
+ "$ref": "#/$defs/mapMember"
255
+ }
256
+ },
257
+ "edges": {
258
+ "type": "array",
259
+ "items": {
260
+ "$ref": "#/$defs/mapEdge"
261
+ }
262
+ },
263
+ "entrypoints": {
264
+ "type": "array",
265
+ "minItems": 1,
266
+ "uniqueItems": true,
267
+ "items": {
268
+ "type": "string",
269
+ "pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
270
+ }
271
+ },
272
+ "qualityTargets": {
273
+ "$ref": "#/$defs/mapQualityTargets"
274
+ },
275
+ "mapHash": {
276
+ "type": "string",
277
+ "pattern": "^sha256:[a-f0-9]{64}$"
278
+ },
279
+ "replacement": {
280
+ "$ref": "#/$defs/mapReplacement"
281
+ },
282
+ "status": {
283
+ "enum": ["draft", "validated", "active", "transitioning", "deprecated", "expired", "quarantined"]
284
+ },
285
+ "governance": {
286
+ "type": "object",
287
+ "additionalProperties": false,
288
+ "required": ["tier"],
289
+ "properties": {
290
+ "tier": {
291
+ "enum": ["foundation", "governed", "standard", "experimental"]
292
+ }
293
+ }
294
+ },
295
+ "semanticFingerprint": {
296
+ "oneOf": [
297
+ {
298
+ "type": "string",
299
+ "pattern": "^(?:sf:)?sha256:[a-f0-9]{64}$"
300
+ },
301
+ {
302
+ "type": "null"
303
+ }
304
+ ]
305
+ },
306
+ "pendingSfCalculation": {
307
+ "type": "boolean"
308
+ },
309
+ "lineageLogRef": {
310
+ "type": "string",
311
+ "minLength": 1
312
+ },
313
+ "ttl": {
314
+ "type": "integer",
315
+ "minimum": 0
316
+ },
317
+ "location": {
318
+ "$ref": "#/$defs/location"
319
+ },
320
+ "evidence": {
321
+ "type": "array",
322
+ "items": {
323
+ "type": "string",
324
+ "minLength": 1
325
+ }
326
+ }
327
+ }
328
+ },
329
+ "mapMember": {
330
+ "type": "object",
331
+ "additionalProperties": false,
332
+ "required": ["atomId", "version"],
333
+ "properties": {
334
+ "atomId": {
335
+ "type": "string",
336
+ "pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
337
+ },
338
+ "version": {
339
+ "type": "string",
340
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
341
+ },
342
+ "role": {
343
+ "enum": ["entry-adapter", "domain-step", "validator", "side-effect", "rollback-adapter"]
344
+ },
345
+ "versionLineage": {
346
+ "$ref": "#/$defs/versionLineage"
347
+ }
348
+ }
349
+ },
350
+ "versionLineage": {
351
+ "type": "object",
352
+ "additionalProperties": false,
353
+ "required": ["currentVersion", "versions"],
354
+ "properties": {
355
+ "currentVersion": {
356
+ "type": "string",
357
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
358
+ },
359
+ "versions": {
360
+ "type": "array",
361
+ "minItems": 1,
362
+ "items": {
363
+ "$ref": "#/$defs/registryVersion"
364
+ }
365
+ },
366
+ "sourceRef": {
367
+ "type": "string",
368
+ "minLength": 1
369
+ },
370
+ "advisory": {
371
+ "type": "string"
372
+ },
373
+ "updatedAt": {
374
+ "type": "string",
375
+ "format": "date-time"
376
+ }
377
+ }
378
+ },
379
+ "mapEdge": {
380
+ "type": "object",
381
+ "additionalProperties": false,
382
+ "required": ["from", "to", "binding"],
383
+ "properties": {
384
+ "from": {
385
+ "type": "string",
386
+ "pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
387
+ },
388
+ "to": {
389
+ "type": "string",
390
+ "pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
391
+ },
392
+ "binding": {
393
+ "type": "string",
394
+ "minLength": 1
395
+ },
396
+ "edgeKind": {
397
+ "enum": ["data-flow", "control-flow", "event-flow", "validation", "fallback", "side-effect", "rollback"]
398
+ }
399
+ }
400
+ },
401
+ "mapReplacement": {
402
+ "type": "object",
403
+ "additionalProperties": false,
404
+ "required": ["legacyUris", "mode", "evidenceRefs"],
405
+ "properties": {
406
+ "legacyUris": {
407
+ "type": "array",
408
+ "minItems": 1,
409
+ "uniqueItems": true,
410
+ "items": {
411
+ "type": "string",
412
+ "pattern": "^legacy://.+$"
413
+ }
414
+ },
415
+ "mode": {
416
+ "enum": ["draft", "shadow", "canary", "active", "legacy-retired"]
417
+ },
418
+ "evidenceRefs": {
419
+ "type": "array",
420
+ "uniqueItems": true,
421
+ "items": {
422
+ "type": "string",
423
+ "minLength": 1
424
+ }
425
+ }
426
+ }
427
+ },
428
+ "mapQualityTargets": {
429
+ "type": "object",
430
+ "minProperties": 1,
431
+ "propertyNames": {
432
+ "pattern": "^[A-Za-z][A-Za-z0-9._-]*$"
433
+ },
434
+ "additionalProperties": {
435
+ "oneOf": [
436
+ {
437
+ "type": "string",
438
+ "minLength": 1
439
+ },
440
+ {
441
+ "type": "number"
442
+ },
443
+ {
444
+ "type": "boolean"
445
+ }
446
+ ]
447
+ }
448
+ },
449
+ "registryVersion": {
450
+ "type": "object",
451
+ "additionalProperties": false,
452
+ "required": ["version", "specHash", "codeHash", "testHash", "timestamp"],
453
+ "properties": {
454
+ "version": {
455
+ "type": "string",
456
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
457
+ },
458
+ "specHash": {
459
+ "type": "string",
460
+ "pattern": "^sha256:[a-f0-9]{64}$"
461
+ },
462
+ "codeHash": {
463
+ "type": "string",
464
+ "pattern": "^sha256:[a-f0-9]{64}$"
465
+ },
466
+ "testHash": {
467
+ "type": "string",
468
+ "pattern": "^sha256:[a-f0-9]{64}$"
469
+ },
470
+ "timestamp": {
471
+ "type": "string",
472
+ "format": "date-time"
473
+ },
474
+ "semanticFingerprint": {
475
+ "oneOf": [
476
+ {
477
+ "type": "string",
478
+ "pattern": "^(?:sf:)?sha256:[a-f0-9]{64}$"
479
+ },
480
+ {
481
+ "type": "null"
482
+ }
483
+ ]
484
+ }
485
+ }
486
+ },
487
+ "hashLock": {
488
+ "type": "object",
489
+ "additionalProperties": false,
490
+ "required": ["algorithm", "digest", "canonicalization"],
491
+ "properties": {
492
+ "algorithm": {
493
+ "const": "sha256"
494
+ },
495
+ "digest": {
496
+ "type": "string",
497
+ "pattern": "^sha256:[a-f0-9]{64}$"
498
+ },
499
+ "canonicalization": {
500
+ "enum": ["json-stable-v1", "text-normalized-v1"]
501
+ }
502
+ }
503
+ },
504
+ "selfVerification": {
505
+ "type": "object",
506
+ "additionalProperties": false,
507
+ "required": [
508
+ "legacyPlanningId",
509
+ "specHash",
510
+ "codeHash",
511
+ "testHash",
512
+ "sourcePaths"
513
+ ],
514
+ "properties": {
515
+ "legacyPlanningId": {
516
+ "type": ["string", "null"],
517
+ "pattern": "^ATM-CORE-\\d{4}$"
518
+ },
519
+ "specHash": {
520
+ "type": "string",
521
+ "pattern": "^sha256:[a-f0-9]{64}$"
522
+ },
523
+ "codeHash": {
524
+ "type": "string",
525
+ "pattern": "^sha256:[a-f0-9]{64}$"
526
+ },
527
+ "testHash": {
528
+ "type": "string",
529
+ "pattern": "^sha256:[a-f0-9]{64}$"
530
+ },
531
+ "sourcePaths": {
532
+ "type": "object",
533
+ "additionalProperties": false,
534
+ "required": ["spec", "code", "tests"],
535
+ "properties": {
536
+ "spec": {
537
+ "type": "string",
538
+ "minLength": 1
539
+ },
540
+ "code": {
541
+ "oneOf": [
542
+ {
543
+ "type": "string",
544
+ "minLength": 1
545
+ },
546
+ {
547
+ "type": "array",
548
+ "minItems": 1,
549
+ "items": {
550
+ "type": "string",
551
+ "minLength": 1
552
+ }
553
+ }
554
+ ]
555
+ },
556
+ "tests": {
557
+ "type": "array",
558
+ "minItems": 1,
559
+ "items": {
560
+ "type": "string",
561
+ "minLength": 1
562
+ }
563
+ }
564
+ }
565
+ }
566
+ }
567
+ },
568
+ "location": {
569
+ "type": "object",
570
+ "additionalProperties": false,
571
+ "required": ["specPath", "codePaths", "testPaths", "reportPath", "workbenchPath"],
572
+ "properties": {
573
+ "specPath": {
574
+ "type": "string",
575
+ "minLength": 1
576
+ },
577
+ "codePaths": {
578
+ "type": "array",
579
+ "items": {
580
+ "type": "string",
581
+ "minLength": 1
582
+ }
583
+ },
584
+ "testPaths": {
585
+ "type": "array",
586
+ "minItems": 1,
587
+ "items": {
588
+ "type": "string",
589
+ "minLength": 1
590
+ }
591
+ },
592
+ "reportPath": {
593
+ "type": ["string", "null"]
594
+ },
595
+ "workbenchPath": {
596
+ "type": ["string", "null"]
597
+ }
598
+ }
599
+ },
600
+ "sharding": {
601
+ "type": "object",
602
+ "additionalProperties": false,
603
+ "required": ["strategy", "partPaths", "nextRegistryId"],
604
+ "properties": {
605
+ "strategy": {
606
+ "enum": ["single-document", "external-parts"]
607
+ },
608
+ "partPaths": {
609
+ "type": "array",
610
+ "items": {
611
+ "type": "string",
612
+ "minLength": 1
613
+ }
614
+ },
615
+ "nextRegistryId": {
616
+ "type": ["string", "null"],
617
+ "pattern": "^registry\\.[a-z0-9]+(?:[.-][a-z0-9]+)*$"
618
+ }
619
+ }
620
+ }
621
+ }
622
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.ai-atomic-framework.dev/test-report/metrics.schema.json",
4
+ "title": "ATM Test Report Metrics v0.1",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "latency": {
9
+ "type": "integer",
10
+ "minimum": 0
11
+ },
12
+ "errorRate": {
13
+ "type": "number",
14
+ "minimum": 0,
15
+ "maximum": 1
16
+ },
17
+ "coverage": {
18
+ "type": ["number", "null"],
19
+ "minimum": 0,
20
+ "maximum": 1
21
+ },
22
+ "edgeCaseCount": {
23
+ "type": "integer",
24
+ "minimum": 0
25
+ }
26
+ }
27
+ }