@ai-atomic-framework/cli 0.1.1 → 0.1.4

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,127 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.ai-atomic-framework.dev/governance/retirement-proof.schema.json",
4
+ "title": "ATM Retirement Proof v0.1",
5
+ "description": "Deterministic proof that a replacement map can retire its legacy surface because caller and entrypoint risk has been cleared.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "schemaId",
10
+ "specVersion",
11
+ "migration",
12
+ "proofId",
13
+ "mapId",
14
+ "fromMode",
15
+ "toMode",
16
+ "verifiedAt",
17
+ "verifiedBy",
18
+ "callerRiskCleared",
19
+ "entrypointRiskCleared",
20
+ "unresolvedCallers",
21
+ "unresolvedEntrypoints",
22
+ "verificationStatus"
23
+ ],
24
+ "properties": {
25
+ "schemaId": {
26
+ "const": "atm.retirementProof"
27
+ },
28
+ "specVersion": {
29
+ "const": "0.1.0"
30
+ },
31
+ "migration": {
32
+ "$ref": "#/$defs/migration"
33
+ },
34
+ "proofId": {
35
+ "type": "string",
36
+ "pattern": "^retirement-proof\\.[a-z0-9]+(?:[.-][a-z0-9]+)*$"
37
+ },
38
+ "mapId": {
39
+ "type": "string",
40
+ "pattern": "^ATM-MAP-[A-Z0-9-]+$"
41
+ },
42
+ "mapVersion": {
43
+ "type": "string",
44
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
45
+ },
46
+ "fromMode": {
47
+ "const": "active"
48
+ },
49
+ "toMode": {
50
+ "const": "legacy-retired"
51
+ },
52
+ "verifiedAt": {
53
+ "type": "string",
54
+ "format": "date-time"
55
+ },
56
+ "verifiedBy": {
57
+ "type": "string",
58
+ "minLength": 1
59
+ },
60
+ "retiredLegacyUris": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "string",
64
+ "minLength": 1
65
+ },
66
+ "uniqueItems": true
67
+ },
68
+ "callerRiskCleared": {
69
+ "type": "boolean"
70
+ },
71
+ "entrypointRiskCleared": {
72
+ "type": "boolean"
73
+ },
74
+ "unresolvedCallers": {
75
+ "type": "array",
76
+ "items": {
77
+ "type": "string",
78
+ "minLength": 1
79
+ },
80
+ "uniqueItems": true
81
+ },
82
+ "unresolvedEntrypoints": {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "string",
86
+ "minLength": 1
87
+ },
88
+ "uniqueItems": true
89
+ },
90
+ "reviewAdvisoryRefs": {
91
+ "type": "array",
92
+ "items": {
93
+ "type": "string",
94
+ "minLength": 1
95
+ },
96
+ "uniqueItems": true
97
+ },
98
+ "notes": {
99
+ "type": "string"
100
+ },
101
+ "verificationStatus": {
102
+ "enum": ["passed", "failed"]
103
+ },
104
+ "failureReason": {
105
+ "type": "string"
106
+ }
107
+ },
108
+ "$defs": {
109
+ "migration": {
110
+ "type": "object",
111
+ "additionalProperties": false,
112
+ "required": ["strategy", "fromVersion", "notes"],
113
+ "properties": {
114
+ "strategy": {
115
+ "enum": ["none", "additive", "breaking"]
116
+ },
117
+ "fromVersion": {
118
+ "type": ["string", "null"],
119
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
120
+ },
121
+ "notes": {
122
+ "type": "string"
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
@@ -0,0 +1,300 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.ai-atomic-framework.dev/registry/atomic-map.schema.json",
4
+ "title": "ATM Atomic Map v0.2",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["schemaId", "specVersion", "migration", "mapId", "mapVersion", "members", "edges", "entrypoints", "qualityTargets", "mapHash"],
8
+ "allOf": [
9
+ {
10
+ "if": {
11
+ "properties": {
12
+ "specVersion": {
13
+ "const": "0.1.0"
14
+ }
15
+ },
16
+ "required": ["specVersion"]
17
+ },
18
+ "then": {
19
+ "not": {
20
+ "required": ["replacement"]
21
+ },
22
+ "properties": {
23
+ "members": {
24
+ "items": {
25
+ "allOf": [
26
+ {
27
+ "not": {
28
+ "required": ["role"]
29
+ }
30
+ },
31
+ {
32
+ "not": {
33
+ "required": ["versionLineage"]
34
+ }
35
+ }
36
+ ]
37
+ }
38
+ },
39
+ "edges": {
40
+ "items": {
41
+ "not": {
42
+ "required": ["edgeKind"]
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ ],
50
+ "properties": {
51
+ "schemaId": {
52
+ "const": "atm.atomicMap"
53
+ },
54
+ "specVersion": {
55
+ "enum": ["0.1.0", "0.2.0"]
56
+ },
57
+ "migration": {
58
+ "$ref": "#/$defs/migration"
59
+ },
60
+ "mapId": {
61
+ "type": "string",
62
+ "pattern": "^ATM-MAP-\\d{4}$"
63
+ },
64
+ "mapVersion": {
65
+ "type": "string",
66
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
67
+ },
68
+ "members": {
69
+ "type": "array",
70
+ "minItems": 1,
71
+ "items": {
72
+ "$ref": "#/$defs/member"
73
+ }
74
+ },
75
+ "edges": {
76
+ "type": "array",
77
+ "items": {
78
+ "$ref": "#/$defs/edge"
79
+ }
80
+ },
81
+ "entrypoints": {
82
+ "type": "array",
83
+ "minItems": 1,
84
+ "uniqueItems": true,
85
+ "items": {
86
+ "type": "string",
87
+ "pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
88
+ }
89
+ },
90
+ "qualityTargets": {
91
+ "$ref": "#/$defs/qualityTargets"
92
+ },
93
+ "mapHash": {
94
+ "type": "string",
95
+ "pattern": "^sha256:[a-f0-9]{64}$"
96
+ },
97
+ "replacement": {
98
+ "$ref": "#/$defs/replacement"
99
+ },
100
+ "semanticFingerprint": {
101
+ "oneOf": [
102
+ {
103
+ "type": "string",
104
+ "pattern": "^(?:sf:)?sha256:[a-f0-9]{64}$"
105
+ },
106
+ {
107
+ "type": "null"
108
+ }
109
+ ]
110
+ },
111
+ "pendingSfCalculation": {
112
+ "type": "boolean"
113
+ },
114
+ "lineageLogRef": {
115
+ "type": "string",
116
+ "minLength": 1
117
+ },
118
+ "ttl": {
119
+ "type": "integer",
120
+ "minimum": 0
121
+ }
122
+ },
123
+ "$defs": {
124
+ "migration": {
125
+ "type": "object",
126
+ "additionalProperties": false,
127
+ "required": ["strategy", "fromVersion", "notes"],
128
+ "properties": {
129
+ "strategy": {
130
+ "enum": ["none", "additive", "breaking"]
131
+ },
132
+ "fromVersion": {
133
+ "type": ["string", "null"],
134
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
135
+ },
136
+ "notes": {
137
+ "type": "string"
138
+ }
139
+ }
140
+ },
141
+ "member": {
142
+ "type": "object",
143
+ "additionalProperties": false,
144
+ "required": ["atomId", "version"],
145
+ "properties": {
146
+ "atomId": {
147
+ "type": "string",
148
+ "pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
149
+ },
150
+ "version": {
151
+ "type": "string",
152
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
153
+ },
154
+ "role": {
155
+ "enum": ["entry-adapter", "domain-step", "validator", "side-effect", "rollback-adapter"]
156
+ },
157
+ "versionLineage": {
158
+ "$ref": "#/$defs/versionLineage"
159
+ }
160
+ }
161
+ },
162
+ "versionLineage": {
163
+ "type": "object",
164
+ "additionalProperties": false,
165
+ "required": ["currentVersion", "versions"],
166
+ "properties": {
167
+ "currentVersion": {
168
+ "type": "string",
169
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
170
+ },
171
+ "versions": {
172
+ "type": "array",
173
+ "minItems": 1,
174
+ "items": {
175
+ "$ref": "#/$defs/versionRecord"
176
+ }
177
+ },
178
+ "sourceRef": {
179
+ "type": "string",
180
+ "minLength": 1
181
+ },
182
+ "advisory": {
183
+ "type": "string"
184
+ },
185
+ "updatedAt": {
186
+ "type": "string",
187
+ "format": "date-time"
188
+ }
189
+ }
190
+ },
191
+ "versionRecord": {
192
+ "type": "object",
193
+ "additionalProperties": false,
194
+ "required": ["version", "specHash", "codeHash", "testHash", "timestamp"],
195
+ "properties": {
196
+ "version": {
197
+ "type": "string",
198
+ "pattern": "^\\d+\\.\\d+\\.\\d+$"
199
+ },
200
+ "specHash": {
201
+ "type": "string",
202
+ "pattern": "^sha256:[a-f0-9]{64}$"
203
+ },
204
+ "codeHash": {
205
+ "type": "string",
206
+ "pattern": "^sha256:[a-f0-9]{64}$"
207
+ },
208
+ "testHash": {
209
+ "type": "string",
210
+ "pattern": "^sha256:[a-f0-9]{64}$"
211
+ },
212
+ "timestamp": {
213
+ "type": "string",
214
+ "format": "date-time"
215
+ },
216
+ "semanticFingerprint": {
217
+ "oneOf": [
218
+ {
219
+ "type": "string",
220
+ "pattern": "^(?:sf:)?sha256:[a-f0-9]{64}$"
221
+ },
222
+ {
223
+ "type": "null"
224
+ }
225
+ ]
226
+ }
227
+ }
228
+ },
229
+ "edge": {
230
+ "type": "object",
231
+ "additionalProperties": false,
232
+ "required": ["from", "to", "binding"],
233
+ "properties": {
234
+ "from": {
235
+ "type": "string",
236
+ "pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
237
+ },
238
+ "to": {
239
+ "type": "string",
240
+ "pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
241
+ },
242
+ "binding": {
243
+ "type": "string",
244
+ "minLength": 1
245
+ },
246
+ "edgeKind": {
247
+ "enum": ["data-flow", "control-flow", "event-flow", "validation", "fallback", "side-effect", "rollback"]
248
+ }
249
+ }
250
+ },
251
+ "replacement": {
252
+ "type": "object",
253
+ "additionalProperties": false,
254
+ "required": ["legacyUris", "mode", "evidenceRefs"],
255
+ "properties": {
256
+ "legacyUris": {
257
+ "type": "array",
258
+ "minItems": 1,
259
+ "uniqueItems": true,
260
+ "items": {
261
+ "type": "string",
262
+ "pattern": "^legacy://.+$"
263
+ }
264
+ },
265
+ "mode": {
266
+ "enum": ["draft", "shadow", "canary", "active", "legacy-retired"]
267
+ },
268
+ "evidenceRefs": {
269
+ "type": "array",
270
+ "uniqueItems": true,
271
+ "items": {
272
+ "type": "string",
273
+ "minLength": 1
274
+ }
275
+ }
276
+ }
277
+ },
278
+ "qualityTargets": {
279
+ "type": "object",
280
+ "minProperties": 1,
281
+ "propertyNames": {
282
+ "pattern": "^[A-Za-z][A-Za-z0-9._-]*$"
283
+ },
284
+ "additionalProperties": {
285
+ "oneOf": [
286
+ {
287
+ "type": "string",
288
+ "minLength": 1
289
+ },
290
+ {
291
+ "type": "number"
292
+ },
293
+ {
294
+ "type": "boolean"
295
+ }
296
+ ]
297
+ }
298
+ }
299
+ }
300
+ }