archctx-contracts 0.5.10 → 0.5.12

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": "archcontext.capabilities/v1",
3
- "package": { "name": "archctx", "version": "0.5.10" },
3
+ "package": { "name": "archctx", "version": "0.5.12" },
4
4
  "protocols": {
5
5
  "projectionRequest": "archcontext.projection-request/v1",
6
6
  "projectionResult": "archcontext.projection-result/v2",
@@ -10,5 +10,5 @@
10
10
  "architectureDocs": "archcontext.docs-renderer/v4",
11
11
  "agentContext": "archcontext.agent-context-renderer/v1"
12
12
  },
13
- "features": ["architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "module-statistics-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "recommendation-v3", "refactor-assessment-v1", "refactor-resolution-v1"]
13
+ "features": ["architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "module-statistics-v1", "projection-apply-readback-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "recommendation-v3", "refactor-assessment-v1", "refactor-resolution-v1"]
14
14
  }
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": "archcontext.product-version-manifest/v1",
3
3
  "product": {
4
4
  "name": "archctx",
5
- "version": "0.5.10",
5
+ "version": "0.5.12",
6
6
  "distribution": "one-package"
7
7
  },
8
8
  "packageManager": "bun@1.4.0",
@@ -12,25 +12,25 @@
12
12
  "surfaces": {
13
13
  "cli": {
14
14
  "packageName": "@archcontext/surfaces",
15
- "version": "0.5.10",
15
+ "version": "0.5.12",
16
16
  "entrypoint": "archctx"
17
17
  },
18
18
  "daemon": {
19
19
  "packageName": "@archcontext/local-runtime",
20
- "version": "0.5.10",
20
+ "version": "0.5.12",
21
21
  "entrypoint": "archctx daemon start",
22
22
  "rpcSchemaVersion": "archcontext.runtime-rpc/v1"
23
23
  },
24
24
  "mcp": {
25
25
  "packageName": "@archcontext/surfaces",
26
- "version": "0.5.10",
26
+ "version": "0.5.12",
27
27
  "entrypoint": "archctx mcp",
28
28
  "transport": "stdio"
29
29
  }
30
30
  },
31
31
  "schemas": {
32
32
  "schemaSetVersion": "2026-06-25.al0-ledger",
33
- "contractsPackageVersion": "0.5.10",
33
+ "contractsPackageVersion": "0.5.12",
34
34
  "reviewChallenge": "archcontext.review-challenge/v2",
35
35
  "attestation": "archcontext.attestation/v2",
36
36
  "deviceIdentity": "archcontext.device-identity/v1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archctx-contracts",
3
- "version": "0.5.10",
3
+ "version": "0.5.12",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "type": "array",
40
40
  "minItems": 3,
41
41
  "uniqueItems": true,
42
- "items": { "enum": ["architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "module-statistics-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "recommendation-v3", "refactor-assessment-v1", "refactor-resolution-v1"] }
42
+ "items": { "enum": ["architecture-docs-renderer-v2", "architecture-refresh-signal-v1", "module-statistics-v1", "projection-apply-readback-v1", "projection-apply-receipt-v1", "projection-apply-recovery-v1", "projection-prior-committed-applies-v1", "projection-protocol-v2", "recommendation-v3", "refactor-assessment-v1", "refactor-resolution-v1"] }
43
43
  }
44
44
  }
45
45
  }
@@ -4,62 +4,235 @@
4
4
  "title": "ChangeSet",
5
5
  "type": "object",
6
6
  "additionalProperties": false,
7
- "required": ["schemaVersion", "id", "status", "base", "reason", "operations", "preconditions", "postconditions", "requiresConfirmation", "idempotencyKey"],
7
+ "required": [
8
+ "schemaVersion",
9
+ "id",
10
+ "status",
11
+ "base",
12
+ "reason",
13
+ "operations",
14
+ "preconditions",
15
+ "postconditions",
16
+ "requiresConfirmation",
17
+ "idempotencyKey"
18
+ ],
8
19
  "properties": {
9
- "schemaVersion": { "const": "archcontext.changeset/v1" },
10
- "id": { "type": "string", "pattern": "^changeset\\.[a-zA-Z0-9_-]+$" },
11
- "status": { "type": "string", "enum": ["proposed", "approved", "applied", "rolled-back", "rejected"] },
20
+ "schemaVersion": {
21
+ "const": "archcontext.changeset/v1"
22
+ },
23
+ "id": {
24
+ "type": "string",
25
+ "pattern": "^changeset\\.[a-zA-Z0-9_-]+$"
26
+ },
27
+ "status": {
28
+ "type": "string",
29
+ "enum": [
30
+ "proposed",
31
+ "approved",
32
+ "applied",
33
+ "rolled-back",
34
+ "rejected"
35
+ ]
36
+ },
12
37
  "base": {
13
38
  "type": "object",
14
39
  "additionalProperties": false,
15
- "required": ["headSha", "worktreeDigest", "modelDigest"],
40
+ "required": [
41
+ "headSha",
42
+ "worktreeDigest",
43
+ "modelDigest"
44
+ ],
16
45
  "properties": {
17
- "headSha": { "type": "string" },
18
- "worktreeDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
19
- "modelDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
46
+ "headSha": {
47
+ "type": "string"
48
+ },
49
+ "worktreeDigest": {
50
+ "type": "string",
51
+ "pattern": "^sha256:[a-f0-9]{64}$"
52
+ },
53
+ "modelDigest": {
54
+ "type": "string",
55
+ "pattern": "^sha256:[a-f0-9]{64}$"
56
+ }
20
57
  }
21
58
  },
22
59
  "reason": {
23
60
  "type": "object",
24
61
  "additionalProperties": false,
25
- "required": ["taskSessionId"],
62
+ "required": [
63
+ "taskSessionId"
64
+ ],
26
65
  "properties": {
27
- "taskSessionId": { "type": "string" },
28
- "interventionId": { "type": "string" }
66
+ "taskSessionId": {
67
+ "type": "string"
68
+ },
69
+ "interventionId": {
70
+ "type": "string"
71
+ }
29
72
  }
30
73
  },
31
74
  "operations": {
32
75
  "type": "array",
33
76
  "minItems": 1,
34
77
  "items": {
35
- "type": "object",
36
- "additionalProperties": true,
37
- "required": ["op", "expectedHash"],
38
- "properties": {
39
- "op": { "type": "string", "enum": ["create_entity", "update_entity_fields", "delete_entity", "write_policy", "write_waiver", "render_projection", "render_agent_context"] },
40
- "entityId": { "type": "string" },
41
- "path": { "type": "string" },
42
- "expectedHash": { "type": "string" },
43
- "projectionFiles": {
44
- "type": "array",
45
- "items": {
46
- "type": "object",
47
- "additionalProperties": false,
48
- "required": ["path", "expectedHash", "body"],
49
- "properties": {
50
- "path": { "type": "string" },
51
- "expectedHash": { "type": "string" },
52
- "body": { "type": "string" }
78
+ "oneOf": [
79
+ {
80
+ "type": "object",
81
+ "additionalProperties": true,
82
+ "required": [
83
+ "op",
84
+ "expectedHash"
85
+ ],
86
+ "properties": {
87
+ "op": {
88
+ "type": "string",
89
+ "enum": [
90
+ "create_entity",
91
+ "update_entity_fields",
92
+ "delete_entity",
93
+ "write_policy",
94
+ "write_waiver",
95
+ "render_projection",
96
+ "render_agent_context"
97
+ ]
98
+ },
99
+ "entityId": {
100
+ "type": "string"
101
+ },
102
+ "path": {
103
+ "type": "string"
104
+ },
105
+ "expectedHash": {
106
+ "type": "string"
107
+ },
108
+ "projectionFiles": {
109
+ "type": "array",
110
+ "items": {
111
+ "type": "object",
112
+ "additionalProperties": false,
113
+ "required": [
114
+ "path",
115
+ "expectedHash",
116
+ "body"
117
+ ],
118
+ "properties": {
119
+ "path": {
120
+ "type": "string"
121
+ },
122
+ "expectedHash": {
123
+ "type": "string"
124
+ },
125
+ "body": {
126
+ "type": "string"
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ },
133
+ {
134
+ "type": "object",
135
+ "additionalProperties": false,
136
+ "required": [
137
+ "op",
138
+ "path",
139
+ "expectedHash",
140
+ "fields"
141
+ ],
142
+ "properties": {
143
+ "op": {
144
+ "const": "update_manifest_fields"
145
+ },
146
+ "path": {
147
+ "const": ".archcontext/manifest.yaml"
148
+ },
149
+ "expectedHash": {
150
+ "type": "string",
151
+ "pattern": "^sha256:[a-f0-9]{64}$"
152
+ },
153
+ "fields": {
154
+ "type": "object",
155
+ "additionalProperties": false,
156
+ "required": [
157
+ "content.decisions"
158
+ ],
159
+ "properties": {
160
+ "content.decisions": {
161
+ "const": "docs/adr"
162
+ }
163
+ }
164
+ }
165
+ }
166
+ },
167
+ {
168
+ "type": "object",
169
+ "additionalProperties": false,
170
+ "required": [
171
+ "op",
172
+ "path",
173
+ "expectedHash",
174
+ "references"
175
+ ],
176
+ "properties": {
177
+ "op": {
178
+ "const": "update_adr_references"
179
+ },
180
+ "path": {
181
+ "type": "string",
182
+ "pattern": "^docs/adr/ADR-[0-9]{4}-[a-z0-9][a-z0-9-]*\\.md$"
183
+ },
184
+ "expectedHash": {
185
+ "type": "string",
186
+ "pattern": "^sha256:[a-f0-9]{64}$"
187
+ },
188
+ "references": {
189
+ "type": "array",
190
+ "minItems": 1,
191
+ "items": {
192
+ "type": "object",
193
+ "additionalProperties": false,
194
+ "required": [
195
+ "from",
196
+ "to"
197
+ ],
198
+ "properties": {
199
+ "from": {
200
+ "type": "string",
201
+ "pattern": "^[a-z0-9][a-z0-9._-]{2,127}$"
202
+ },
203
+ "to": {
204
+ "type": "string",
205
+ "pattern": "^[a-z0-9][a-z0-9._-]{2,127}$"
206
+ }
207
+ }
208
+ }
53
209
  }
54
210
  }
55
211
  }
56
- }
212
+ ]
57
213
  }
58
214
  },
59
- "preconditions": { "type": "array", "items": { "type": "string" } },
60
- "postconditions": { "type": "array", "items": { "type": "string" } },
61
- "requiresConfirmation": { "type": "boolean" },
62
- "idempotencyKey": { "type": "string" },
63
- "extensions": { "type": "object", "additionalProperties": true }
215
+ "preconditions": {
216
+ "type": "array",
217
+ "items": {
218
+ "type": "string"
219
+ }
220
+ },
221
+ "postconditions": {
222
+ "type": "array",
223
+ "items": {
224
+ "type": "string"
225
+ }
226
+ },
227
+ "requiresConfirmation": {
228
+ "type": "boolean"
229
+ },
230
+ "idempotencyKey": {
231
+ "type": "string"
232
+ },
233
+ "extensions": {
234
+ "type": "object",
235
+ "additionalProperties": true
236
+ }
64
237
  }
65
238
  }