@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.
- package/dist/npm-runtime/atm.mjs +0 -0
- package/dist/npm-runtime/layout/_vendor/integrations-core/templates/skills/atm-bug-backlog.skill.md +4 -3
- package/dist/npm-runtime/layout/schemas/evidence/wave-exit-observer-receipt.schema.json +56 -0
- package/dist/npm-runtime/layout/schemas/governance/decomposition-plan.schema.json +148 -0
- package/dist/npm-runtime/layout/schemas/governance/map-equivalence-report.schema.json +305 -0
- package/dist/npm-runtime/layout/schemas/governance/patch-proposal.schema.json +244 -0
- package/dist/npm-runtime/layout/schemas/governance/polymorph-impact-report.schema.json +267 -0
- package/dist/npm-runtime/layout/schemas/governance/propagation-report.schema.json +169 -0
- package/dist/npm-runtime/layout/schemas/governance/retirement-proof.schema.json +127 -0
- package/dist/npm-runtime/layout/schemas/registry/atomic-map.schema.json +300 -0
- package/dist/npm-runtime/layout/schemas/registry.schema.json +622 -0
- package/dist/npm-runtime/layout/schemas/team-wave-envelope.schema.json +70 -0
- package/dist/npm-runtime/layout/schemas/team-worker-report.schema.json +68 -0
- package/dist/npm-runtime/layout/schemas/test-report/metrics.schema.json +27 -0
- package/dist/npm-runtime/layout/schemas/test-report.schema.json +459 -0
- package/dist/npm-runtime/layout/templates/root-drop/AGENTS.md +10 -10
- package/dist/npm-runtime/manifest.json +86 -8
- package/dist/npm-runtime/runtime.mjs +262 -262
- package/package.json +4 -2
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.ai-atomic-framework.dev/governance/patch-proposal.schema.json",
|
|
4
|
+
"title": "ATM Patch Proposal v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaId",
|
|
9
|
+
"specVersion",
|
|
10
|
+
"migration",
|
|
11
|
+
"proposalId",
|
|
12
|
+
"taskId",
|
|
13
|
+
"actorId",
|
|
14
|
+
"baseCommit",
|
|
15
|
+
"fileBeforeHash",
|
|
16
|
+
"targetFile",
|
|
17
|
+
"atomRefs",
|
|
18
|
+
"anchors",
|
|
19
|
+
"intent",
|
|
20
|
+
"patch",
|
|
21
|
+
"validators",
|
|
22
|
+
"rollback"
|
|
23
|
+
],
|
|
24
|
+
"properties": {
|
|
25
|
+
"schemaId": {
|
|
26
|
+
"const": "atm.patchProposal.v1"
|
|
27
|
+
},
|
|
28
|
+
"specVersion": {
|
|
29
|
+
"const": "0.1.0"
|
|
30
|
+
},
|
|
31
|
+
"migration": {
|
|
32
|
+
"$ref": "#/$defs/migration"
|
|
33
|
+
},
|
|
34
|
+
"proposalId": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1
|
|
37
|
+
},
|
|
38
|
+
"taskId": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"minLength": 1
|
|
41
|
+
},
|
|
42
|
+
"actorId": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1
|
|
45
|
+
},
|
|
46
|
+
"transactionId": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"minLength": 1
|
|
49
|
+
},
|
|
50
|
+
"transactionIds": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"minLength": 1
|
|
55
|
+
},
|
|
56
|
+
"uniqueItems": true
|
|
57
|
+
},
|
|
58
|
+
"transaction_ids": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1
|
|
63
|
+
},
|
|
64
|
+
"uniqueItems": true
|
|
65
|
+
},
|
|
66
|
+
"baseCommit": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"minLength": 1
|
|
69
|
+
},
|
|
70
|
+
"fileBeforeHash": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"minLength": 1
|
|
73
|
+
},
|
|
74
|
+
"targetFile": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1
|
|
77
|
+
},
|
|
78
|
+
"atomRefs": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"$ref": "#/$defs/proposalAtomRef"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"anchors": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"$ref": "#/$defs/patchAnchor"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"resourceOverlaps": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"$ref": "#/$defs/resourceOverlap"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"readAtoms": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"items": {
|
|
99
|
+
"$ref": "#/$defs/proposalAtomRef"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"semanticAssumptions": {
|
|
103
|
+
"type": "array",
|
|
104
|
+
"items": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"minLength": 1
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"intent": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"minLength": 1
|
|
112
|
+
},
|
|
113
|
+
"patch": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 1
|
|
116
|
+
},
|
|
117
|
+
"validators": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"minLength": 1
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"rollback": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"$defs": {
|
|
130
|
+
"migration": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"additionalProperties": false,
|
|
133
|
+
"required": ["strategy", "fromVersion", "notes"],
|
|
134
|
+
"properties": {
|
|
135
|
+
"strategy": {
|
|
136
|
+
"enum": ["none", "additive", "breaking"]
|
|
137
|
+
},
|
|
138
|
+
"fromVersion": {
|
|
139
|
+
"type": ["string", "null"],
|
|
140
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
141
|
+
},
|
|
142
|
+
"notes": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"proposalAtomRef": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"additionalProperties": false,
|
|
150
|
+
"required": ["atomId", "atomCid"],
|
|
151
|
+
"properties": {
|
|
152
|
+
"atomId": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"minLength": 1
|
|
155
|
+
},
|
|
156
|
+
"atomCid": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"minLength": 1
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"patchAnchor": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"additionalProperties": false,
|
|
165
|
+
"required": ["kind", "hint"],
|
|
166
|
+
"properties": {
|
|
167
|
+
"kind": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"minLength": 1
|
|
170
|
+
},
|
|
171
|
+
"hint": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"minLength": 1
|
|
174
|
+
},
|
|
175
|
+
"contentAnchor": {
|
|
176
|
+
"$ref": "#/$defs/contentAnchor"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"contentAnchor": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"additionalProperties": false,
|
|
183
|
+
"required": ["schemaId", "specVersion", "migration", "anchorId", "baseDigest", "filePath", "fileDigest", "kind", "preimageDigest", "provenance", "confidence"],
|
|
184
|
+
"properties": {
|
|
185
|
+
"schemaId": { "const": "atm.contentAnchor.v1" },
|
|
186
|
+
"specVersion": { "const": "0.1.0" },
|
|
187
|
+
"migration": { "$ref": "#/$defs/migration" },
|
|
188
|
+
"anchorId": { "type": "string", "minLength": 1 },
|
|
189
|
+
"baseDigest": { "type": "string", "minLength": 1 },
|
|
190
|
+
"filePath": { "type": "string", "minLength": 1 },
|
|
191
|
+
"fileDigest": { "type": "string", "minLength": 1 },
|
|
192
|
+
"kind": { "enum": ["symbol", "ast-node", "text-context", "file"] },
|
|
193
|
+
"symbolName": { "type": "string", "minLength": 1 },
|
|
194
|
+
"astPath": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
195
|
+
"contextBefore": { "type": "array", "items": { "type": "string" } },
|
|
196
|
+
"contextAfter": { "type": "array", "items": { "type": "string" } },
|
|
197
|
+
"preimageDigest": { "type": "string", "minLength": 1 },
|
|
198
|
+
"location": { "$ref": "#/$defs/contentAnchorLocation" },
|
|
199
|
+
"provenance": { "$ref": "#/$defs/contentAnchorProvenance" },
|
|
200
|
+
"confidence": { "enum": ["high", "medium", "low"] }
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"contentAnchorLocation": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"required": ["filePath", "lineStart", "lineEnd"],
|
|
207
|
+
"properties": {
|
|
208
|
+
"filePath": { "type": "string", "minLength": 1 },
|
|
209
|
+
"lineStart": { "type": "integer", "minimum": 1 },
|
|
210
|
+
"lineEnd": { "type": "integer", "minimum": 1 }
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"contentAnchorProvenance": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"additionalProperties": false,
|
|
216
|
+
"required": ["adapterId", "adapterVersion", "createdAt"],
|
|
217
|
+
"properties": {
|
|
218
|
+
"adapterId": { "type": "string", "minLength": 1 },
|
|
219
|
+
"adapterVersion": { "type": "string", "minLength": 1 },
|
|
220
|
+
"createdAt": { "type": "string" }
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"resourceOverlap": {
|
|
224
|
+
"type": "object",
|
|
225
|
+
"additionalProperties": true,
|
|
226
|
+
"required": ["schemaId", "specVersion", "resourceKind", "leftTaskId", "rightTaskId", "verdict", "matcherVersion", "resolverVersion", "provenance", "confidence", "anchors", "intersection", "inputDigest"],
|
|
227
|
+
"properties": {
|
|
228
|
+
"schemaId": { "const": "atm.resourceOverlap.v1" },
|
|
229
|
+
"specVersion": { "const": "0.1.0" },
|
|
230
|
+
"resourceKind": { "type": "string", "minLength": 1 },
|
|
231
|
+
"leftTaskId": { "type": "string", "minLength": 1 },
|
|
232
|
+
"rightTaskId": { "type": "string", "minLength": 1 },
|
|
233
|
+
"verdict": { "enum": ["overlap", "disjoint", "unknown"] },
|
|
234
|
+
"matcherVersion": { "const": "resource-overlap@0.1.0" },
|
|
235
|
+
"resolverVersion": { "const": "resource-key-matcher@0.2.0" },
|
|
236
|
+
"provenance": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
237
|
+
"confidence": { "enum": ["high", "medium", "low"] },
|
|
238
|
+
"anchors": { "type": "array" },
|
|
239
|
+
"intersection": { "type": "object" },
|
|
240
|
+
"inputDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.ai-atomic-framework.dev/governance/polymorph-impact-report.schema.json",
|
|
4
|
+
"title": "ATM Polymorph Impact Report v0.1",
|
|
5
|
+
"description": "Deterministic impact analysis for map promotion when replacement members participate in polymorphic template propagation.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schemaId", "specVersion", "migration", "reportId", "generatedAt", "targetMapId", "templateHits", "impactedMapIds", "impactedMaps", "propagation", "artifacts", "evidence", "passed"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaId": {
|
|
11
|
+
"const": "atm.polymorphImpactReport"
|
|
12
|
+
},
|
|
13
|
+
"specVersion": {
|
|
14
|
+
"const": "0.1.0"
|
|
15
|
+
},
|
|
16
|
+
"migration": {
|
|
17
|
+
"$ref": "#/$defs/migration"
|
|
18
|
+
},
|
|
19
|
+
"reportId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"pattern": "^polymorph-impact\\.[a-z0-9]+(?:[.-][a-z0-9]+)*$"
|
|
22
|
+
},
|
|
23
|
+
"generatedAt": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "date-time"
|
|
26
|
+
},
|
|
27
|
+
"targetMapId": {
|
|
28
|
+
"$ref": "#/$defs/mapId"
|
|
29
|
+
},
|
|
30
|
+
"requestedReplacementMode": {
|
|
31
|
+
"enum": ["draft", "shadow", "canary", "active", "legacy-retired"]
|
|
32
|
+
},
|
|
33
|
+
"atomId": {
|
|
34
|
+
"$ref": "#/$defs/atomId"
|
|
35
|
+
},
|
|
36
|
+
"toVersion": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
39
|
+
},
|
|
40
|
+
"templateHits": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"$ref": "#/$defs/templateHit"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"impactedMapIds": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"uniqueItems": true,
|
|
49
|
+
"items": {
|
|
50
|
+
"$ref": "#/$defs/mapId"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"impactedMaps": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": {
|
|
56
|
+
"$ref": "#/$defs/impactedMap"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"propagation": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"$ref": "#/$defs/propagationRecord"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"artifacts": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"$ref": "#/$defs/artifactRecord"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"evidence": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"$ref": "#/$defs/evidenceRecord"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"passed": {
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"$defs": {
|
|
82
|
+
"migration": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"required": ["strategy", "fromVersion", "notes"],
|
|
86
|
+
"properties": {
|
|
87
|
+
"strategy": {
|
|
88
|
+
"enum": ["none", "additive", "breaking"]
|
|
89
|
+
},
|
|
90
|
+
"fromVersion": {
|
|
91
|
+
"type": ["string", "null"],
|
|
92
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
93
|
+
},
|
|
94
|
+
"notes": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"atomId": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
|
|
102
|
+
},
|
|
103
|
+
"mapId": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"pattern": "^ATM-MAP-\\d{4}$"
|
|
106
|
+
},
|
|
107
|
+
"templateHit": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"required": ["atomId", "version", "templateId", "polymorphGroupId"],
|
|
111
|
+
"properties": {
|
|
112
|
+
"atomId": {
|
|
113
|
+
"$ref": "#/$defs/atomId"
|
|
114
|
+
},
|
|
115
|
+
"version": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
118
|
+
},
|
|
119
|
+
"templateId": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"pattern": "^ATM-POLY-\\d{4}$"
|
|
122
|
+
},
|
|
123
|
+
"polymorphGroupId": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"pattern": "^ATM-POLY-\\d{4}$"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"impactedMap": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": ["mapId", "templateIds", "matchedMembers"],
|
|
133
|
+
"properties": {
|
|
134
|
+
"mapId": {
|
|
135
|
+
"$ref": "#/$defs/mapId"
|
|
136
|
+
},
|
|
137
|
+
"templateIds": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"minItems": 1,
|
|
140
|
+
"uniqueItems": true,
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"pattern": "^ATM-POLY-\\d{4}$"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"matchedMembers": {
|
|
147
|
+
"type": "array",
|
|
148
|
+
"minItems": 1,
|
|
149
|
+
"items": {
|
|
150
|
+
"$ref": "#/$defs/templateHit"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"propagatedInstance": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"required": ["mapId", "atomId", "templateId", "polymorphGroupId", "inheritedTemplateVersion", "inheritedBy", "needsRegistryWrite"],
|
|
159
|
+
"properties": {
|
|
160
|
+
"mapId": {
|
|
161
|
+
"$ref": "#/$defs/mapId"
|
|
162
|
+
},
|
|
163
|
+
"atomId": {
|
|
164
|
+
"$ref": "#/$defs/atomId"
|
|
165
|
+
},
|
|
166
|
+
"templateId": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"pattern": "^ATM-POLY-\\d{4}$"
|
|
169
|
+
},
|
|
170
|
+
"polymorphGroupId": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"pattern": "^ATM-POLY-\\d{4}$"
|
|
173
|
+
},
|
|
174
|
+
"variantKey": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"minLength": 1
|
|
177
|
+
},
|
|
178
|
+
"inheritedTemplateVersion": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
181
|
+
},
|
|
182
|
+
"inheritedBy": {
|
|
183
|
+
"const": "behavior.evolve"
|
|
184
|
+
},
|
|
185
|
+
"needsRegistryWrite": {
|
|
186
|
+
"type": "boolean"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"propagationRecord": {
|
|
191
|
+
"type": "object",
|
|
192
|
+
"additionalProperties": false,
|
|
193
|
+
"required": ["templateId", "toVersion", "propagatedCount", "propagationMode", "propagatedInstances"],
|
|
194
|
+
"properties": {
|
|
195
|
+
"templateId": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"pattern": "^ATM-POLY-\\d{4}$"
|
|
198
|
+
},
|
|
199
|
+
"toVersion": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
202
|
+
},
|
|
203
|
+
"propagatedCount": {
|
|
204
|
+
"type": "integer",
|
|
205
|
+
"minimum": 0
|
|
206
|
+
},
|
|
207
|
+
"propagationMode": {
|
|
208
|
+
"const": "auto-propagate-all-instances"
|
|
209
|
+
},
|
|
210
|
+
"propagatedInstances": {
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"$ref": "#/$defs/propagatedInstance"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"artifactRecord": {
|
|
219
|
+
"type": "object",
|
|
220
|
+
"additionalProperties": false,
|
|
221
|
+
"required": ["artifactPath", "artifactKind", "producedBy"],
|
|
222
|
+
"properties": {
|
|
223
|
+
"artifactPath": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"minLength": 1
|
|
226
|
+
},
|
|
227
|
+
"artifactKind": {
|
|
228
|
+
"enum": ["file", "log", "report", "snapshot"]
|
|
229
|
+
},
|
|
230
|
+
"producedBy": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"minLength": 1
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"evidenceRecord": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"additionalProperties": false,
|
|
239
|
+
"required": ["evidenceKind", "summary", "artifactPaths"],
|
|
240
|
+
"properties": {
|
|
241
|
+
"evidenceKind": {
|
|
242
|
+
"enum": ["validation", "review", "metric", "handoff"]
|
|
243
|
+
},
|
|
244
|
+
"signalScope": {
|
|
245
|
+
"enum": ["host-local", "repo", "atom", "atom-map", "global"]
|
|
246
|
+
},
|
|
247
|
+
"atomId": {
|
|
248
|
+
"$ref": "#/$defs/atomId"
|
|
249
|
+
},
|
|
250
|
+
"atomMapId": {
|
|
251
|
+
"$ref": "#/$defs/mapId"
|
|
252
|
+
},
|
|
253
|
+
"summary": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"minLength": 1
|
|
256
|
+
},
|
|
257
|
+
"artifactPaths": {
|
|
258
|
+
"type": "array",
|
|
259
|
+
"items": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"minLength": 1
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.ai-atomic-framework.dev/governance/propagation-report.schema.json",
|
|
4
|
+
"title": "ATM Propagation Report v0.1",
|
|
5
|
+
"description": "Deterministic downstream map propagation report emitted for an upgraded atom.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaId",
|
|
10
|
+
"specVersion",
|
|
11
|
+
"migration",
|
|
12
|
+
"reportId",
|
|
13
|
+
"generatedAt",
|
|
14
|
+
"atomId",
|
|
15
|
+
"discoveredMaps",
|
|
16
|
+
"perMapStatus",
|
|
17
|
+
"failedDownstream",
|
|
18
|
+
"propagationDuration",
|
|
19
|
+
"metrics",
|
|
20
|
+
"summary",
|
|
21
|
+
"passed"
|
|
22
|
+
],
|
|
23
|
+
"properties": {
|
|
24
|
+
"schemaId": {
|
|
25
|
+
"const": "atm.propagationReport"
|
|
26
|
+
},
|
|
27
|
+
"specVersion": {
|
|
28
|
+
"const": "0.1.0"
|
|
29
|
+
},
|
|
30
|
+
"migration": {
|
|
31
|
+
"$ref": "#/$defs/migration"
|
|
32
|
+
},
|
|
33
|
+
"reportId": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^propagation\\.[a-z0-9]+(?:[.-][a-z0-9]+)*$"
|
|
36
|
+
},
|
|
37
|
+
"generatedAt": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"format": "date-time"
|
|
40
|
+
},
|
|
41
|
+
"atomId": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^ATM-[A-Z][A-Z0-9]*-\\d{4}$"
|
|
44
|
+
},
|
|
45
|
+
"behaviorId": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"pattern": "^behavior\\.[a-z0-9]+(?:[.-][a-z0-9]+)*$"
|
|
48
|
+
},
|
|
49
|
+
"discoveredMaps": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"uniqueItems": true,
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"pattern": "^ATM-MAP-[A-Z0-9-]+$"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"perMapStatus": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"$ref": "#/$defs/perMapStatus"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"failedDownstream": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"uniqueItems": true,
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"pattern": "^ATM-MAP-[A-Z0-9-]+$"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"propagationDuration": {
|
|
72
|
+
"type": "integer",
|
|
73
|
+
"minimum": 0
|
|
74
|
+
},
|
|
75
|
+
"metrics": {
|
|
76
|
+
"$ref": "https://schemas.ai-atomic-framework.dev/test-report/metrics.schema.json"
|
|
77
|
+
},
|
|
78
|
+
"summary": {
|
|
79
|
+
"$ref": "#/$defs/summary"
|
|
80
|
+
},
|
|
81
|
+
"passed": {
|
|
82
|
+
"type": "boolean"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"$defs": {
|
|
86
|
+
"migration": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"required": ["strategy", "fromVersion", "notes"],
|
|
90
|
+
"properties": {
|
|
91
|
+
"strategy": {
|
|
92
|
+
"enum": ["none", "additive", "breaking"]
|
|
93
|
+
},
|
|
94
|
+
"fromVersion": {
|
|
95
|
+
"type": ["string", "null"],
|
|
96
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
97
|
+
},
|
|
98
|
+
"notes": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"perMapStatus": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"additionalProperties": false,
|
|
106
|
+
"required": ["mapId", "ok", "exitCode", "durationMs", "resolutionMode", "reportPath", "warnings"],
|
|
107
|
+
"properties": {
|
|
108
|
+
"mapId": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"pattern": "^ATM-MAP-[A-Z0-9-]+$"
|
|
111
|
+
},
|
|
112
|
+
"ok": {
|
|
113
|
+
"type": "boolean"
|
|
114
|
+
},
|
|
115
|
+
"exitCode": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 0
|
|
118
|
+
},
|
|
119
|
+
"durationMs": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"minimum": 0
|
|
122
|
+
},
|
|
123
|
+
"resolutionMode": {
|
|
124
|
+
"enum": ["canonical", "legacy"]
|
|
125
|
+
},
|
|
126
|
+
"reportPath": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"minLength": 1
|
|
129
|
+
},
|
|
130
|
+
"stdout": {
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
"stderr": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"warnings": {
|
|
137
|
+
"type": "array",
|
|
138
|
+
"items": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"minLength": 1
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"summary": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"required": ["total", "passed", "failed", "durationMs"],
|
|
149
|
+
"properties": {
|
|
150
|
+
"total": {
|
|
151
|
+
"type": "integer",
|
|
152
|
+
"minimum": 0
|
|
153
|
+
},
|
|
154
|
+
"passed": {
|
|
155
|
+
"type": "integer",
|
|
156
|
+
"minimum": 0
|
|
157
|
+
},
|
|
158
|
+
"failed": {
|
|
159
|
+
"type": "integer",
|
|
160
|
+
"minimum": 0
|
|
161
|
+
},
|
|
162
|
+
"durationMs": {
|
|
163
|
+
"type": "integer",
|
|
164
|
+
"minimum": 0
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|