@davidahmann/mill 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.
Files changed (184) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +335 -0
  3. package/dist/audit/repository.d.ts +8 -0
  4. package/dist/audit/repository.d.ts.map +1 -0
  5. package/dist/audit/repository.js +232 -0
  6. package/dist/audit/repository.js.map +1 -0
  7. package/dist/cli-program.d.ts +12 -0
  8. package/dist/cli-program.d.ts.map +1 -0
  9. package/dist/cli-program.js +1020 -0
  10. package/dist/cli-program.js.map +1 -0
  11. package/dist/cli.d.ts +3 -0
  12. package/dist/cli.d.ts.map +1 -0
  13. package/dist/cli.js +7 -0
  14. package/dist/cli.js.map +1 -0
  15. package/dist/config/lock.d.ts +12 -0
  16. package/dist/config/lock.d.ts.map +1 -0
  17. package/dist/config/lock.js +83 -0
  18. package/dist/config/lock.js.map +1 -0
  19. package/dist/contracts/canonical.d.ts +7 -0
  20. package/dist/contracts/canonical.d.ts.map +1 -0
  21. package/dist/contracts/canonical.js +30 -0
  22. package/dist/contracts/canonical.js.map +1 -0
  23. package/dist/contracts/schemas.d.ts +2705 -0
  24. package/dist/contracts/schemas.d.ts.map +1 -0
  25. package/dist/contracts/schemas.js +988 -0
  26. package/dist/contracts/schemas.js.map +1 -0
  27. package/dist/doctor.d.ts +21 -0
  28. package/dist/doctor.d.ts.map +1 -0
  29. package/dist/doctor.js +138 -0
  30. package/dist/doctor.js.map +1 -0
  31. package/dist/errors.d.ts +18 -0
  32. package/dist/errors.d.ts.map +1 -0
  33. package/dist/errors.js +31 -0
  34. package/dist/errors.js.map +1 -0
  35. package/dist/index.d.ts +20 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +20 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/intake/prd.d.ts +14 -0
  40. package/dist/intake/prd.d.ts.map +1 -0
  41. package/dist/intake/prd.js +39 -0
  42. package/dist/intake/prd.js.map +1 -0
  43. package/dist/planning/impact.d.ts +59 -0
  44. package/dist/planning/impact.d.ts.map +1 -0
  45. package/dist/planning/impact.js +400 -0
  46. package/dist/planning/impact.js.map +1 -0
  47. package/dist/planning/specification.d.ts +42 -0
  48. package/dist/planning/specification.d.ts.map +1 -0
  49. package/dist/planning/specification.js +235 -0
  50. package/dist/planning/specification.js.map +1 -0
  51. package/dist/qualification/public-alpha.d.ts +16 -0
  52. package/dist/qualification/public-alpha.d.ts.map +1 -0
  53. package/dist/qualification/public-alpha.js +128 -0
  54. package/dist/qualification/public-alpha.js.map +1 -0
  55. package/dist/recipes/node-typescript-next-web.d.ts +19 -0
  56. package/dist/recipes/node-typescript-next-web.d.ts.map +1 -0
  57. package/dist/recipes/node-typescript-next-web.js +136 -0
  58. package/dist/recipes/node-typescript-next-web.js.map +1 -0
  59. package/dist/repository/integration.d.ts +58 -0
  60. package/dist/repository/integration.d.ts.map +1 -0
  61. package/dist/repository/integration.js +1385 -0
  62. package/dist/repository/integration.js.map +1 -0
  63. package/dist/repository/scan.d.ts +27 -0
  64. package/dist/repository/scan.d.ts.map +1 -0
  65. package/dist/repository/scan.js +388 -0
  66. package/dist/repository/scan.js.map +1 -0
  67. package/dist/result.d.ts +23 -0
  68. package/dist/result.d.ts.map +1 -0
  69. package/dist/result.js +24 -0
  70. package/dist/result.js.map +1 -0
  71. package/dist/runtime/codex.d.ts +28 -0
  72. package/dist/runtime/codex.d.ts.map +1 -0
  73. package/dist/runtime/codex.js +439 -0
  74. package/dist/runtime/codex.js.map +1 -0
  75. package/dist/runtime/context.d.ts +10 -0
  76. package/dist/runtime/context.d.ts.map +1 -0
  77. package/dist/runtime/context.js +151 -0
  78. package/dist/runtime/context.js.map +1 -0
  79. package/dist/runtime/delivery.d.ts +58 -0
  80. package/dist/runtime/delivery.d.ts.map +1 -0
  81. package/dist/runtime/delivery.js +1073 -0
  82. package/dist/runtime/delivery.js.map +1 -0
  83. package/dist/runtime/dependencies.d.ts +19 -0
  84. package/dist/runtime/dependencies.d.ts.map +1 -0
  85. package/dist/runtime/dependencies.js +495 -0
  86. package/dist/runtime/dependencies.js.map +1 -0
  87. package/dist/runtime/github.d.ts +112 -0
  88. package/dist/runtime/github.d.ts.map +1 -0
  89. package/dist/runtime/github.js +510 -0
  90. package/dist/runtime/github.js.map +1 -0
  91. package/dist/runtime/inputs.d.ts +24 -0
  92. package/dist/runtime/inputs.d.ts.map +1 -0
  93. package/dist/runtime/inputs.js +237 -0
  94. package/dist/runtime/inputs.js.map +1 -0
  95. package/dist/runtime/lease.d.ts +11 -0
  96. package/dist/runtime/lease.d.ts.map +1 -0
  97. package/dist/runtime/lease.js +52 -0
  98. package/dist/runtime/lease.js.map +1 -0
  99. package/dist/runtime/lifecycle.d.ts +87 -0
  100. package/dist/runtime/lifecycle.d.ts.map +1 -0
  101. package/dist/runtime/lifecycle.js +1024 -0
  102. package/dist/runtime/lifecycle.js.map +1 -0
  103. package/dist/runtime/process.d.ts +39 -0
  104. package/dist/runtime/process.d.ts.map +1 -0
  105. package/dist/runtime/process.js +304 -0
  106. package/dist/runtime/process.js.map +1 -0
  107. package/dist/runtime/repository.d.ts +36 -0
  108. package/dist/runtime/repository.d.ts.map +1 -0
  109. package/dist/runtime/repository.js +458 -0
  110. package/dist/runtime/repository.js.map +1 -0
  111. package/dist/runtime/state.d.ts +121 -0
  112. package/dist/runtime/state.d.ts.map +1 -0
  113. package/dist/runtime/state.js +1017 -0
  114. package/dist/runtime/state.js.map +1 -0
  115. package/dist/runtime/verifier.d.ts +31 -0
  116. package/dist/runtime/verifier.d.ts.map +1 -0
  117. package/dist/runtime/verifier.js +478 -0
  118. package/dist/runtime/verifier.js.map +1 -0
  119. package/dist/runtime/worker.d.ts +67 -0
  120. package/dist/runtime/worker.d.ts.map +1 -0
  121. package/dist/runtime/worker.js +34 -0
  122. package/dist/runtime/worker.js.map +1 -0
  123. package/dist/security/safe-path.d.ts +3 -0
  124. package/dist/security/safe-path.d.ts.map +1 -0
  125. package/dist/security/safe-path.js +102 -0
  126. package/dist/security/safe-path.js.map +1 -0
  127. package/dist/version.d.ts +4 -0
  128. package/dist/version.d.ts.map +1 -0
  129. package/dist/version.js +4 -0
  130. package/dist/version.js.map +1 -0
  131. package/dist/workflows/founder.d.ts +33 -0
  132. package/dist/workflows/founder.d.ts.map +1 -0
  133. package/dist/workflows/founder.js +422 -0
  134. package/dist/workflows/founder.js.map +1 -0
  135. package/package.json +79 -0
  136. package/recipes/node-typescript-next-web/.github/workflows/ci.yml +34 -0
  137. package/recipes/node-typescript-next-web/.node-version +1 -0
  138. package/recipes/node-typescript-next-web/.tool-versions +1 -0
  139. package/recipes/node-typescript-next-web/AGENTS.md +44 -0
  140. package/recipes/node-typescript-next-web/README.md +16 -0
  141. package/recipes/node-typescript-next-web/WORKFLOW.md +6 -0
  142. package/recipes/node-typescript-next-web/app/api/health/route.ts +5 -0
  143. package/recipes/node-typescript-next-web/app/layout.tsx +19 -0
  144. package/recipes/node-typescript-next-web/app/page.tsx +12 -0
  145. package/recipes/node-typescript-next-web/app/styles.css +21 -0
  146. package/recipes/node-typescript-next-web/docs/development.md +16 -0
  147. package/recipes/node-typescript-next-web/eslint.config.mjs +9 -0
  148. package/recipes/node-typescript-next-web/gitignore.template +5 -0
  149. package/recipes/node-typescript-next-web/next-env.d.ts +7 -0
  150. package/recipes/node-typescript-next-web/next.config.ts +11 -0
  151. package/recipes/node-typescript-next-web/package-lock.json +7540 -0
  152. package/recipes/node-typescript-next-web/package.json +39 -0
  153. package/recipes/node-typescript-next-web/playwright.config.ts +23 -0
  154. package/recipes/node-typescript-next-web/recipe.yaml +71 -0
  155. package/recipes/node-typescript-next-web/scripts/check-package.mjs +3 -0
  156. package/recipes/node-typescript-next-web/src/health.ts +3 -0
  157. package/recipes/node-typescript-next-web/test/browser/home.spec.ts +14 -0
  158. package/recipes/node-typescript-next-web/test/integration/health-route.test.ts +11 -0
  159. package/recipes/node-typescript-next-web/test/unit/health.test.ts +9 -0
  160. package/recipes/node-typescript-next-web/tsconfig.json +33 -0
  161. package/schemas/README.md +64 -0
  162. package/schemas/audit-report.schema.json +59 -0
  163. package/schemas/blueprint.schema.json +34 -0
  164. package/schemas/context-manifest.schema.json +88 -0
  165. package/schemas/delivery-record.schema.json +266 -0
  166. package/schemas/impact-manifest.schema.json +146 -0
  167. package/schemas/managed-repository.schema.json +36 -0
  168. package/schemas/mill-config.schema.json +212 -0
  169. package/schemas/mill-lock.schema.json +96 -0
  170. package/schemas/outcome-plan.schema.json +51 -0
  171. package/schemas/product-contract.schema.json +181 -0
  172. package/schemas/public-alpha-qualification.schema.json +391 -0
  173. package/schemas/recipe-manifest.schema.json +187 -0
  174. package/schemas/release-evidence.schema.json +170 -0
  175. package/schemas/repository-integration-plan.schema.json +156 -0
  176. package/schemas/review-result.schema.json +57 -0
  177. package/schemas/scenario-set.schema.json +84 -0
  178. package/schemas/source-manifest.schema.json +96 -0
  179. package/schemas/specification-proposal.schema.json +406 -0
  180. package/schemas/support-tuple.schema.json +107 -0
  181. package/schemas/task-packet.schema.json +395 -0
  182. package/schemas/validation-evidence.schema.json +125 -0
  183. package/schemas/worker-invocation.schema.json +119 -0
  184. package/schemas/worker-profile.schema.json +53 -0
@@ -0,0 +1,395 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "schemaVersion": { "type": "string", "const": "1" },
8
+ "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]*$" },
9
+ "title": { "type": "string", "minLength": 1 },
10
+ "objective": { "type": "string", "minLength": 1 },
11
+ "riskClass": { "type": "string", "enum": ["low", "medium", "high"] },
12
+ "baseRef": { "type": "string", "pattern": "^(?!-)[^\\s]+$" },
13
+ "contextPaths": {
14
+ "minItems": 1,
15
+ "type": "array",
16
+ "items": { "type": "string", "minLength": 1 }
17
+ },
18
+ "allowedPaths": {
19
+ "minItems": 1,
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))[^*?[\\]\\\\]+(?:\\/\\*\\*)?$"
24
+ }
25
+ },
26
+ "commandIds": {
27
+ "minItems": 1,
28
+ "type": "array",
29
+ "items": { "type": "string", "minLength": 1 }
30
+ },
31
+ "commit": {
32
+ "type": "object",
33
+ "properties": {
34
+ "message": { "type": "string", "minLength": 1 },
35
+ "authorName": { "type": "string", "minLength": 1 },
36
+ "authorEmail": {
37
+ "type": "string",
38
+ "format": "email",
39
+ "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
40
+ }
41
+ },
42
+ "required": ["message", "authorName", "authorEmail"],
43
+ "additionalProperties": false
44
+ },
45
+ "budget": {
46
+ "type": "object",
47
+ "properties": {
48
+ "deadlineSeconds": {
49
+ "type": "integer",
50
+ "minimum": 1,
51
+ "maximum": 7200
52
+ },
53
+ "maxOutputBytes": {
54
+ "type": "integer",
55
+ "minimum": 1024,
56
+ "maximum": 10000000
57
+ },
58
+ "retryCount": { "type": "integer", "minimum": 0, "maximum": 1 }
59
+ },
60
+ "required": ["deadlineSeconds", "maxOutputBytes", "retryCount"],
61
+ "additionalProperties": false
62
+ },
63
+ "authority": {
64
+ "type": "object",
65
+ "properties": {
66
+ "productContract": {
67
+ "type": "object",
68
+ "properties": {
69
+ "path": { "type": "string", "minLength": 1 },
70
+ "digest": {
71
+ "type": "string",
72
+ "pattern": "^sha256:[a-f0-9]{64}$"
73
+ }
74
+ },
75
+ "required": ["path", "digest"],
76
+ "additionalProperties": false
77
+ },
78
+ "scenarioSet": {
79
+ "type": "object",
80
+ "properties": {
81
+ "path": { "type": "string", "minLength": 1 },
82
+ "digest": {
83
+ "type": "string",
84
+ "pattern": "^sha256:[a-f0-9]{64}$"
85
+ }
86
+ },
87
+ "required": ["path", "digest"],
88
+ "additionalProperties": false
89
+ },
90
+ "policy": {
91
+ "type": "object",
92
+ "properties": {
93
+ "path": { "type": "string", "minLength": 1 },
94
+ "digest": {
95
+ "type": "string",
96
+ "pattern": "^sha256:[a-f0-9]{64}$"
97
+ }
98
+ },
99
+ "required": ["path", "digest"],
100
+ "additionalProperties": false
101
+ }
102
+ },
103
+ "required": ["productContract", "scenarioSet", "policy"],
104
+ "additionalProperties": false
105
+ },
106
+ "acceptance": {
107
+ "minItems": 1,
108
+ "type": "array",
109
+ "items": {
110
+ "type": "object",
111
+ "properties": {
112
+ "id": { "type": "string", "minLength": 1 },
113
+ "statement": { "type": "string", "minLength": 1 }
114
+ },
115
+ "required": ["id", "statement"],
116
+ "additionalProperties": false
117
+ }
118
+ }
119
+ },
120
+ "required": [
121
+ "schemaVersion",
122
+ "id",
123
+ "title",
124
+ "objective",
125
+ "riskClass",
126
+ "baseRef",
127
+ "contextPaths",
128
+ "allowedPaths",
129
+ "commandIds",
130
+ "commit",
131
+ "budget",
132
+ "authority",
133
+ "acceptance"
134
+ ],
135
+ "additionalProperties": false
136
+ },
137
+ {
138
+ "type": "object",
139
+ "properties": {
140
+ "schemaVersion": { "type": "string", "const": "2" },
141
+ "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]*$" },
142
+ "title": { "type": "string", "minLength": 1 },
143
+ "objective": { "type": "string", "minLength": 1 },
144
+ "riskClass": { "type": "string", "enum": ["low", "medium", "high"] },
145
+ "baseRef": { "type": "string", "pattern": "^(?!-)[^\\s]+$" },
146
+ "contextPaths": {
147
+ "minItems": 1,
148
+ "type": "array",
149
+ "items": { "type": "string", "minLength": 1 }
150
+ },
151
+ "allowedPaths": {
152
+ "minItems": 1,
153
+ "type": "array",
154
+ "items": {
155
+ "type": "string",
156
+ "pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))[^*?[\\]\\\\]+(?:\\/\\*\\*)?$"
157
+ }
158
+ },
159
+ "commandIds": {
160
+ "minItems": 1,
161
+ "type": "array",
162
+ "items": { "type": "string", "minLength": 1 }
163
+ },
164
+ "commit": {
165
+ "type": "object",
166
+ "properties": {
167
+ "message": { "type": "string", "minLength": 1 },
168
+ "authorName": { "type": "string", "minLength": 1 },
169
+ "authorEmail": {
170
+ "type": "string",
171
+ "format": "email",
172
+ "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
173
+ }
174
+ },
175
+ "required": ["message", "authorName", "authorEmail"],
176
+ "additionalProperties": false
177
+ },
178
+ "budget": {
179
+ "type": "object",
180
+ "properties": {
181
+ "deadlineSeconds": {
182
+ "type": "integer",
183
+ "minimum": 1,
184
+ "maximum": 7200
185
+ },
186
+ "maxOutputBytes": {
187
+ "type": "integer",
188
+ "minimum": 1024,
189
+ "maximum": 10000000
190
+ },
191
+ "retryCount": { "type": "integer", "minimum": 0, "maximum": 1 }
192
+ },
193
+ "required": ["deadlineSeconds", "maxOutputBytes", "retryCount"],
194
+ "additionalProperties": false
195
+ },
196
+ "authority": {
197
+ "type": "object",
198
+ "properties": {
199
+ "productContract": {
200
+ "type": "object",
201
+ "properties": {
202
+ "path": { "type": "string", "minLength": 1 },
203
+ "digest": {
204
+ "type": "string",
205
+ "pattern": "^sha256:[a-f0-9]{64}$"
206
+ }
207
+ },
208
+ "required": ["path", "digest"],
209
+ "additionalProperties": false
210
+ },
211
+ "scenarioSet": {
212
+ "type": "object",
213
+ "properties": {
214
+ "path": { "type": "string", "minLength": 1 },
215
+ "digest": {
216
+ "type": "string",
217
+ "pattern": "^sha256:[a-f0-9]{64}$"
218
+ }
219
+ },
220
+ "required": ["path", "digest"],
221
+ "additionalProperties": false
222
+ },
223
+ "policy": {
224
+ "type": "object",
225
+ "properties": {
226
+ "path": { "type": "string", "minLength": 1 },
227
+ "digest": {
228
+ "type": "string",
229
+ "pattern": "^sha256:[a-f0-9]{64}$"
230
+ }
231
+ },
232
+ "required": ["path", "digest"],
233
+ "additionalProperties": false
234
+ },
235
+ "impactManifest": {
236
+ "type": "object",
237
+ "properties": {
238
+ "path": { "type": "string", "minLength": 1 },
239
+ "digest": {
240
+ "type": "string",
241
+ "pattern": "^sha256:[a-f0-9]{64}$"
242
+ }
243
+ },
244
+ "required": ["path", "digest"],
245
+ "additionalProperties": false
246
+ }
247
+ },
248
+ "required": [
249
+ "productContract",
250
+ "scenarioSet",
251
+ "policy",
252
+ "impactManifest"
253
+ ],
254
+ "additionalProperties": false
255
+ },
256
+ "attestations": {
257
+ "default": [],
258
+ "type": "array",
259
+ "items": {
260
+ "type": "object",
261
+ "properties": {
262
+ "id": { "type": "string", "pattern": "^ATT-[A-Z0-9][A-Z0-9-]*$" },
263
+ "approvedBy": { "type": "string", "minLength": 1 },
264
+ "approvedAt": {
265
+ "type": "string",
266
+ "format": "date-time",
267
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
268
+ },
269
+ "expiresAt": {
270
+ "type": "string",
271
+ "format": "date-time",
272
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
273
+ },
274
+ "claims": {
275
+ "minItems": 1,
276
+ "type": "array",
277
+ "items": {
278
+ "type": "object",
279
+ "properties": {
280
+ "kind": {
281
+ "type": "string",
282
+ "enum": ["acceptance", "invariant", "scenario"]
283
+ },
284
+ "id": { "type": "string", "minLength": 1 },
285
+ "digest": {
286
+ "type": "string",
287
+ "pattern": "^sha256:[a-f0-9]{64}$"
288
+ }
289
+ },
290
+ "required": ["kind", "id", "digest"],
291
+ "additionalProperties": false
292
+ }
293
+ }
294
+ },
295
+ "required": [
296
+ "id",
297
+ "approvedBy",
298
+ "approvedAt",
299
+ "expiresAt",
300
+ "claims"
301
+ ],
302
+ "additionalProperties": false
303
+ }
304
+ },
305
+ "acceptance": {
306
+ "minItems": 1,
307
+ "type": "array",
308
+ "items": {
309
+ "type": "object",
310
+ "properties": {
311
+ "id": { "type": "string", "minLength": 1 },
312
+ "statement": { "type": "string", "minLength": 1 },
313
+ "invariantIds": {
314
+ "type": "array",
315
+ "items": {
316
+ "type": "string",
317
+ "pattern": "^INV-[A-Z0-9][A-Z0-9-]*$"
318
+ }
319
+ },
320
+ "scenarioIds": {
321
+ "type": "array",
322
+ "items": { "type": "string", "minLength": 1 }
323
+ },
324
+ "coverage": {
325
+ "type": "string",
326
+ "enum": ["new_behavior", "preservation", "both"]
327
+ },
328
+ "evidence": {
329
+ "oneOf": [
330
+ {
331
+ "type": "object",
332
+ "properties": {
333
+ "mode": { "type": "string", "const": "command" },
334
+ "commandId": { "type": "string", "minLength": 1 }
335
+ },
336
+ "required": ["mode", "commandId"],
337
+ "additionalProperties": false
338
+ },
339
+ {
340
+ "type": "object",
341
+ "properties": {
342
+ "mode": { "type": "string", "const": "human" },
343
+ "attestationId": {
344
+ "type": "string",
345
+ "pattern": "^ATT-[A-Z0-9][A-Z0-9-]*$"
346
+ }
347
+ },
348
+ "required": ["mode", "attestationId"],
349
+ "additionalProperties": false
350
+ },
351
+ {
352
+ "type": "object",
353
+ "properties": {
354
+ "mode": { "type": "string", "const": "unsupported" },
355
+ "reason": { "type": "string", "minLength": 1 }
356
+ },
357
+ "required": ["mode", "reason"],
358
+ "additionalProperties": false
359
+ }
360
+ ]
361
+ }
362
+ },
363
+ "required": [
364
+ "id",
365
+ "statement",
366
+ "invariantIds",
367
+ "scenarioIds",
368
+ "coverage",
369
+ "evidence"
370
+ ],
371
+ "additionalProperties": false
372
+ }
373
+ }
374
+ },
375
+ "required": [
376
+ "schemaVersion",
377
+ "id",
378
+ "title",
379
+ "objective",
380
+ "riskClass",
381
+ "baseRef",
382
+ "contextPaths",
383
+ "allowedPaths",
384
+ "commandIds",
385
+ "commit",
386
+ "budget",
387
+ "authority",
388
+ "acceptance"
389
+ ],
390
+ "additionalProperties": false
391
+ }
392
+ ],
393
+ "$id": "https://github.com/davidahmann/mill/schemas/task-packet.schema.json",
394
+ "title": "TaskPacket"
395
+ }
@@ -0,0 +1,125 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": { "type": "string", "const": "1" },
6
+ "candidateCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
7
+ "verifierImage": {
8
+ "type": "string",
9
+ "pattern": "^[^@\\s]+@sha256:[a-f0-9]{64}$"
10
+ },
11
+ "network": { "type": "string", "const": "none" },
12
+ "commands": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "object",
16
+ "properties": {
17
+ "commandId": { "type": "string", "minLength": 1 },
18
+ "required": { "type": "boolean" },
19
+ "status": {
20
+ "type": "string",
21
+ "enum": ["passed", "failed", "blocked"]
22
+ },
23
+ "exitCode": {
24
+ "anyOf": [
25
+ {
26
+ "type": "integer",
27
+ "minimum": -9007199254740991,
28
+ "maximum": 9007199254740991
29
+ },
30
+ { "type": "null" }
31
+ ]
32
+ },
33
+ "durationMs": {
34
+ "type": "integer",
35
+ "minimum": 0,
36
+ "maximum": 9007199254740991
37
+ },
38
+ "outputDigest": {
39
+ "type": "string",
40
+ "pattern": "^sha256:[a-f0-9]{64}$"
41
+ },
42
+ "reason": {
43
+ "type": "string",
44
+ "enum": [
45
+ "HOST_EXECUTION_NOT_QUALIFIED",
46
+ "CANCELLED",
47
+ "DEADLINE_EXCEEDED",
48
+ "OUTPUT_BUDGET_EXCEEDED",
49
+ "NONZERO_EXIT"
50
+ ]
51
+ }
52
+ },
53
+ "required": [
54
+ "commandId",
55
+ "required",
56
+ "status",
57
+ "exitCode",
58
+ "durationMs",
59
+ "outputDigest"
60
+ ],
61
+ "additionalProperties": false
62
+ }
63
+ },
64
+ "semantic": {
65
+ "type": "object",
66
+ "properties": {
67
+ "impactManifestDigest": {
68
+ "type": "string",
69
+ "pattern": "^sha256:[a-f0-9]{64}$"
70
+ },
71
+ "items": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "kind": {
77
+ "type": "string",
78
+ "enum": ["acceptance", "invariant", "scenario"]
79
+ },
80
+ "id": { "type": "string", "minLength": 1 },
81
+ "coverage": {
82
+ "type": "string",
83
+ "enum": ["new_behavior", "preservation", "both"]
84
+ },
85
+ "status": {
86
+ "type": "string",
87
+ "enum": ["passed", "attested", "blocked"]
88
+ },
89
+ "evidenceRefs": {
90
+ "type": "array",
91
+ "items": { "type": "string", "minLength": 1 }
92
+ },
93
+ "reason": { "type": "string", "minLength": 1 }
94
+ },
95
+ "required": ["kind", "id", "coverage", "status", "evidenceRefs"],
96
+ "additionalProperties": false
97
+ }
98
+ },
99
+ "newBehaviorPassed": { "type": "boolean" },
100
+ "preservationPassed": { "type": "boolean" },
101
+ "passed": { "type": "boolean" }
102
+ },
103
+ "required": [
104
+ "impactManifestDigest",
105
+ "items",
106
+ "newBehaviorPassed",
107
+ "preservationPassed",
108
+ "passed"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ "passed": { "type": "boolean" }
113
+ },
114
+ "required": [
115
+ "schemaVersion",
116
+ "candidateCommit",
117
+ "verifierImage",
118
+ "network",
119
+ "commands",
120
+ "passed"
121
+ ],
122
+ "additionalProperties": false,
123
+ "$id": "https://github.com/davidahmann/mill/schemas/validation-evidence.schema.json",
124
+ "title": "ValidationEvidence"
125
+ }
@@ -0,0 +1,119 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": { "type": "string", "const": "1" },
6
+ "invocationId": {
7
+ "type": "string",
8
+ "format": "uuid",
9
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
10
+ },
11
+ "runId": {
12
+ "type": "string",
13
+ "format": "uuid",
14
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
15
+ },
16
+ "phase": { "type": "string", "enum": ["build", "repair", "review"] },
17
+ "attempt": { "type": "integer", "exclusiveMinimum": 0, "maximum": 2 },
18
+ "taskDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
19
+ "contextEpoch": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
20
+ "baseCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
21
+ "candidateCommit": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
22
+ "impactManifestDigest": {
23
+ "type": "string",
24
+ "pattern": "^sha256:[a-f0-9]{64}$"
25
+ },
26
+ "profile": {
27
+ "type": "object",
28
+ "properties": {
29
+ "schemaVersion": { "type": "string", "const": "1" },
30
+ "adapter": { "type": "string", "const": "codex-cli" },
31
+ "role": {
32
+ "type": "string",
33
+ "enum": ["planner", "builder", "reviewer"]
34
+ },
35
+ "contractVersion": { "type": "string", "const": "1" },
36
+ "harnessVersion": { "type": "string", "minLength": 1 },
37
+ "promptTemplateDigest": {
38
+ "type": "string",
39
+ "pattern": "^sha256:[a-f0-9]{64}$"
40
+ },
41
+ "modelIdentity": { "type": "string", "const": "provider-mutable" },
42
+ "approvalPolicy": { "type": "string", "const": "never" },
43
+ "sandbox": {
44
+ "type": "string",
45
+ "enum": ["read-only", "workspace-write"]
46
+ },
47
+ "session": { "type": "string", "const": "ephemeral" },
48
+ "hostRules": { "type": "string", "const": "ignored" },
49
+ "skillDiscovery": { "type": "string", "const": "disabled" },
50
+ "toolDiscovery": { "type": "string", "const": "disabled" },
51
+ "networkPosture": {
52
+ "type": "string",
53
+ "enum": ["unknown", "provider-managed"]
54
+ },
55
+ "capabilities": {
56
+ "minItems": 1,
57
+ "type": "array",
58
+ "items": { "type": "string", "minLength": 1 }
59
+ },
60
+ "outputContract": { "type": "string", "minLength": 1 }
61
+ },
62
+ "required": [
63
+ "schemaVersion",
64
+ "adapter",
65
+ "role",
66
+ "contractVersion",
67
+ "harnessVersion",
68
+ "promptTemplateDigest",
69
+ "modelIdentity",
70
+ "approvalPolicy",
71
+ "sandbox",
72
+ "session",
73
+ "hostRules",
74
+ "skillDiscovery",
75
+ "toolDiscovery",
76
+ "networkPosture",
77
+ "capabilities",
78
+ "outputContract"
79
+ ],
80
+ "additionalProperties": false
81
+ },
82
+ "profileDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
83
+ "allowedPaths": {
84
+ "type": "array",
85
+ "items": {
86
+ "type": "string",
87
+ "pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))[^*?[\\]\\\\]+(?:\\/\\*\\*)?$"
88
+ }
89
+ },
90
+ "deadlineAt": {
91
+ "type": "string",
92
+ "format": "date-time",
93
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
94
+ },
95
+ "maxOutputBytes": {
96
+ "type": "integer",
97
+ "minimum": 1024,
98
+ "maximum": 10000000
99
+ }
100
+ },
101
+ "required": [
102
+ "schemaVersion",
103
+ "invocationId",
104
+ "runId",
105
+ "phase",
106
+ "attempt",
107
+ "taskDigest",
108
+ "contextEpoch",
109
+ "baseCommit",
110
+ "profile",
111
+ "profileDigest",
112
+ "allowedPaths",
113
+ "deadlineAt",
114
+ "maxOutputBytes"
115
+ ],
116
+ "additionalProperties": false,
117
+ "$id": "https://github.com/davidahmann/mill/schemas/worker-invocation.schema.json",
118
+ "title": "WorkerInvocation"
119
+ }