@ai-atomic-framework/cli 0.1.2 → 0.1.5

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
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "atm.teamWaveEnvelope.v1",
4
+ "title": "ATM Team Wave Envelope",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaId",
9
+ "specVersion",
10
+ "migration",
11
+ "waveId",
12
+ "coordinatorActorId",
13
+ "targetRepo",
14
+ "closureAuthority",
15
+ "members",
16
+ "metadata"
17
+ ],
18
+ "$defs": {
19
+ "migration": {
20
+ "type": "object",
21
+ "additionalProperties": false,
22
+ "required": ["strategy", "fromVersion", "notes"],
23
+ "properties": {
24
+ "strategy": { "enum": ["none", "additive", "breaking"] },
25
+ "fromVersion": { "type": ["string", "null"], "pattern": "^\\d+\\.\\d+\\.\\d+$" },
26
+ "notes": { "type": "string" }
27
+ }
28
+ }
29
+ },
30
+ "properties": {
31
+ "schemaId": { "const": "atm.teamWaveEnvelope.v1" },
32
+ "specVersion": { "const": "0.1.0" },
33
+ "migration": { "$ref": "#/$defs/migration" },
34
+ "waveId": { "type": "string", "minLength": 1 },
35
+ "coordinatorActorId": { "type": "string", "minLength": 1 },
36
+ "targetRepo": { "type": ["string", "null"] },
37
+ "closureAuthority": { "type": ["string", "null"] },
38
+ "members": {
39
+ "type": "array",
40
+ "minItems": 1,
41
+ "items": {
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "required": ["taskId", "workerActorId", "scopePaths", "deliverables", "patchEnvelopeId"],
45
+ "properties": {
46
+ "taskId": { "type": "string", "minLength": 1 },
47
+ "workerActorId": { "type": ["string", "null"] },
48
+ "scopePaths": { "type": "array", "items": { "type": "string" } },
49
+ "deliverables": { "type": "array", "items": { "type": "string" } },
50
+ "patchEnvelopeId": { "type": ["string", "null"] },
51
+ "executionState": {
52
+ "type": "string",
53
+ "enum": ["done", "partial", "blocked", "not-started", "needs-review"]
54
+ }
55
+ }
56
+ }
57
+ },
58
+ "metadata": {
59
+ "type": "object",
60
+ "additionalProperties": false,
61
+ "required": ["plannedAt", "waveIndex"],
62
+ "properties": {
63
+ "plannedAt": { "type": "string" },
64
+ "waveIndex": { "type": "integer", "minimum": 0 },
65
+ "appendSafePaths": { "type": "array", "items": { "type": "string" } },
66
+ "notes": { "type": ["string", "null"] }
67
+ }
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "atm.teamWorkerReport.v1",
4
+ "title": "ATM Team Worker Report",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaId",
9
+ "specVersion",
10
+ "migration",
11
+ "reportId",
12
+ "taskId",
13
+ "workerActorId",
14
+ "executionState",
15
+ "changedFiles",
16
+ "validatorRuns",
17
+ "metadata"
18
+ ],
19
+ "$defs": {
20
+ "migration": {
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "required": ["strategy", "fromVersion", "notes"],
24
+ "properties": {
25
+ "strategy": { "enum": ["none", "additive", "breaking"] },
26
+ "fromVersion": { "type": ["string", "null"], "pattern": "^\\d+\\.\\d+\\.\\d+$" },
27
+ "notes": { "type": "string" }
28
+ }
29
+ }
30
+ },
31
+ "properties": {
32
+ "schemaId": { "const": "atm.teamWorkerReport.v1" },
33
+ "specVersion": { "const": "0.1.0" },
34
+ "migration": { "$ref": "#/$defs/migration" },
35
+ "reportId": { "type": "string", "minLength": 1 },
36
+ "taskId": { "type": "string", "minLength": 1 },
37
+ "workerActorId": { "type": "string", "minLength": 1 },
38
+ "executionState": {
39
+ "type": "string",
40
+ "enum": ["done", "partial", "blocked", "not-started", "needs-review"]
41
+ },
42
+ "changedFiles": { "type": "array", "items": { "type": "string" } },
43
+ "validatorRuns": {
44
+ "type": "array",
45
+ "items": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": ["command", "passed"],
49
+ "properties": {
50
+ "command": { "type": "string", "minLength": 1 },
51
+ "passed": { "type": "boolean" },
52
+ "firstFailingDiagnostic": { "type": ["string", "null"] }
53
+ }
54
+ }
55
+ },
56
+ "deviations": { "type": "array", "items": { "type": "string" } },
57
+ "metadata": {
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": ["reportedAt", "waveId"],
61
+ "properties": {
62
+ "reportedAt": { "type": "string" },
63
+ "waveId": { "type": ["string", "null"] },
64
+ "notes": { "type": ["string", "null"] }
65
+ }
66
+ }
67
+ }
68
+ }
@@ -9,13 +9,13 @@ Start with this line when a user has given you a concrete request:
9
9
 
10
10
  {{RECOMMENDED_PROMPT}}
11
11
 
12
- If the request says to finish all task cards, a whole plan, a task family, or multiple tasks, you must let `next --prompt` route it as `recommendedChannel: "batch"` and then use `node atm.mjs batch checkpoint --actor <id> --json` after delivering the current queue head. Do not manually loop over `tasks reserve/promote/claim/close`.
12
+ If the request says to finish all task cards, a whole plan, a task family, or multiple tasks, you must let `{{ATM_COMMAND_PREFIX}} next --prompt` route it as `recommendedChannel: "batch"` and then use `{{ATM_COMMAND_PREFIX}} batch checkpoint --actor <id> --json` after delivering the current queue head. Do not manually loop over `tasks reserve/promote/claim/close`.
13
13
 
14
- Use `node atm.mjs next --json` only as read-only repository orientation when there is no current user prompt.
14
+ Use `{{ATM_COMMAND_PREFIX}} next --json` only as read-only repository orientation when there is no current user prompt.
15
15
 
16
16
  First-contact behavior:
17
17
 
18
- 1. For user-requested task work, run `node atm.mjs next --prompt "<current user prompt>" --json`; use `node atm.mjs next --json` only as read-only orientation when no user prompt is available.
18
+ 1. For user-requested task work, run `{{ATM_COMMAND_PREFIX}} next --prompt "<current user prompt>" --json`; use `{{ATM_COMMAND_PREFIX}} next --json` only as read-only orientation when no user prompt is available.
19
19
  2. If the ATM result returns an `ATM_USER_NOTICE` message or `evidence.userNotice`, show that notice to the user in natural language before running the returned next action.
20
20
  3. If an existing host instruction references a missing local document, mention the missing file once and continue with the ATM route.
21
21
  4. After an onboarding or refresh command succeeds, return to the user original request and continue the actual work.
@@ -23,14 +23,14 @@ First-contact behavior:
23
23
  Editor integration self-check:
24
24
 
25
25
  1. If `.atm/config.json` exists, confirm this editor already has its repo-local ATM entry files before trusting ATM skill routing.
26
- 2. If the current editor entry file is missing, install the matching adapter immediately with `node atm.mjs integration add <editor-id> --json`, then verify it with `node atm.mjs integration verify <editor-id> --json`.
26
+ 2. If the current editor entry file is missing, install the matching adapter immediately with `{{ATM_COMMAND_PREFIX}} integration add <editor-id> --json`, then verify it with `{{ATM_COMMAND_PREFIX}} integration verify <editor-id> --json`.
27
27
  3. Expected primary entry files:
28
- - `codex`: `integrations/codex-skills/atm-governance-router/SKILL.md` via `node atm.mjs integration add codex --json`
29
- - `claude-code`: `.claude/skills/atm-governance-router/SKILL.md` via `node atm.mjs integration add claude-code --json`
30
- - `cursor`: `.cursor/rules/skills/atm-governance-router/SKILL.md` via `node atm.mjs integration add cursor --json`
31
- - `copilot`: `.github/instructions/atm-governance-router.instructions.md` via `node atm.mjs integration add copilot --json`
32
- - `gemini`: `.gemini/commands/atm-governance-router.toml` via `node atm.mjs integration add gemini --json`
33
- - `antigravity`: `GEMINI.md` via `node atm.mjs integration add antigravity --json`
28
+ - `codex`: `integrations/codex-skills/atm-governance-router/SKILL.md` via `{{ATM_COMMAND_PREFIX}} integration add codex --json`
29
+ - `claude-code`: `.claude/skills/atm-governance-router/SKILL.md` via `{{ATM_COMMAND_PREFIX}} integration add claude-code --json`
30
+ - `cursor`: `.cursor/rules/skills/atm-governance-router/SKILL.md` via `{{ATM_COMMAND_PREFIX}} integration add cursor --json`
31
+ - `copilot`: `.github/instructions/atm-governance-router.instructions.md` via `{{ATM_COMMAND_PREFIX}} integration add copilot --json`
32
+ - `gemini`: `.gemini/commands/atm-governance-router.toml` via `{{ATM_COMMAND_PREFIX}} integration add gemini --json`
33
+ - `antigravity`: `GEMINI.md` via `{{ATM_COMMAND_PREFIX}} integration add antigravity --json`
34
34
  4. Google-side coverage has two entry shapes: `gemini` installs Gemini CLI command files under `.gemini/commands`, while `antigravity` installs the Antigravity editor entry `GEMINI.md` and `.agents/skills`. If the current Google editor is Antigravity, verify/install `antigravity`, not only `gemini`.
35
35
 
36
36
  Python-only runtime self-check: