assertledger 1.0.0

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 (203) hide show
  1. package/CONTRIBUTING.md +31 -0
  2. package/LICENSE +21 -0
  3. package/README.fr.md +236 -0
  4. package/README.md +224 -0
  5. package/SECURITY.md +51 -0
  6. package/benchmarks/agentic-profile/README.md +15 -0
  7. package/benchmarks/agentic-profile/public/README.md +5 -0
  8. package/benchmarks/self-hosted-core/README.md +113 -0
  9. package/benchmarks/self-hosted-core/adapter.mjs +293 -0
  10. package/benchmarks/self-hosted-core/builder.ts +193 -0
  11. package/benchmarks/self-hosted-core/campaign.ts +233 -0
  12. package/benchmarks/self-hosted-core/existing-tests-builder.ts +217 -0
  13. package/benchmarks/self-hosted-core/existing-tests.ts +146 -0
  14. package/benchmarks/self-hosted-core/liveness.test.mjs +8 -0
  15. package/conformance/v1/bundle.json +104 -0
  16. package/conformance/v1/expected/canonical-order-a.json +4 -0
  17. package/conformance/v1/expected/canonical-order-b.json +4 -0
  18. package/conformance/v1/expected/create-benchmark-v1-measured.json +575 -0
  19. package/conformance/v1/expected/create-profile-v1-qualified.json +280 -0
  20. package/conformance/v1/expected/decide-collection-failure-non-kill.json +192 -0
  21. package/conformance/v1/expected/decide-compile-failure-non-kill.json +192 -0
  22. package/conformance/v1/expected/decide-infra-error-non-kill.json +192 -0
  23. package/conformance/v1/expected/decide-no-test-discovered-non-kill.json +192 -0
  24. package/conformance/v1/expected/decide-process-crash-non-kill.json +192 -0
  25. package/conformance/v1/expected/decide-timeout-non-kill.json +192 -0
  26. package/conformance/v1/expected/decide-verified.json +192 -0
  27. package/conformance/v1/expected/replay-benchmark-v1-resealed-summary-forgery.json +12 -0
  28. package/conformance/v1/expected/replay-evidence-raw-tamper.json +6 -0
  29. package/conformance/v1/expected/replay-evidence-resealed-semantic-forgery.json +6 -0
  30. package/conformance/v1/inputs/canonical-order-a.json +8 -0
  31. package/conformance/v1/inputs/canonical-order-b.json +8 -0
  32. package/conformance/v1/inputs/create-benchmark-v1-measured.json +459 -0
  33. package/conformance/v1/inputs/create-profile-v1-qualified.json +228 -0
  34. package/conformance/v1/inputs/decide-collection-failure-non-kill.json +143 -0
  35. package/conformance/v1/inputs/decide-compile-failure-non-kill.json +143 -0
  36. package/conformance/v1/inputs/decide-infra-error-non-kill.json +143 -0
  37. package/conformance/v1/inputs/decide-no-test-discovered-non-kill.json +143 -0
  38. package/conformance/v1/inputs/decide-process-crash-non-kill.json +143 -0
  39. package/conformance/v1/inputs/decide-timeout-non-kill.json +143 -0
  40. package/conformance/v1/inputs/decide-verified.json +143 -0
  41. package/conformance/v1/inputs/replay-benchmark-v1-resealed-summary-forgery.json +575 -0
  42. package/conformance/v1/inputs/replay-evidence-raw-tamper.json +201 -0
  43. package/conformance/v1/inputs/replay-evidence-resealed-semantic-forgery.json +192 -0
  44. package/conformance/v1/schemas/expected-digests.json +175 -0
  45. package/dist/cli.d.ts +9 -0
  46. package/dist/cli.d.ts.map +1 -0
  47. package/dist/cli.js +951 -0
  48. package/dist/cli.js.map +1 -0
  49. package/dist/contracts/diagnostics.d.ts +18 -0
  50. package/dist/contracts/diagnostics.d.ts.map +1 -0
  51. package/dist/contracts/diagnostics.js +13 -0
  52. package/dist/contracts/diagnostics.js.map +1 -0
  53. package/dist/contracts/index.d.ts +3908 -0
  54. package/dist/contracts/index.d.ts.map +1 -0
  55. package/dist/contracts/index.js +2569 -0
  56. package/dist/contracts/index.js.map +1 -0
  57. package/dist/contracts/runtime-doctor.d.ts +107 -0
  58. package/dist/contracts/runtime-doctor.d.ts.map +1 -0
  59. package/dist/contracts/runtime-doctor.js +91 -0
  60. package/dist/contracts/runtime-doctor.js.map +1 -0
  61. package/dist/core/index.d.ts +200 -0
  62. package/dist/core/index.d.ts.map +1 -0
  63. package/dist/core/index.js +2587 -0
  64. package/dist/core/index.js.map +1 -0
  65. package/dist/diagnostics.d.ts +7 -0
  66. package/dist/diagnostics.d.ts.map +1 -0
  67. package/dist/diagnostics.js +252 -0
  68. package/dist/diagnostics.js.map +1 -0
  69. package/dist/engine/adapters/node-test-profile.d.ts +14 -0
  70. package/dist/engine/adapters/node-test-profile.d.ts.map +1 -0
  71. package/dist/engine/adapters/node-test-profile.js +14 -0
  72. package/dist/engine/adapters/node-test-profile.js.map +1 -0
  73. package/dist/engine/adapters/node-test-runtime.d.ts +39 -0
  74. package/dist/engine/adapters/node-test-runtime.d.ts.map +1 -0
  75. package/dist/engine/adapters/node-test-runtime.js +173 -0
  76. package/dist/engine/adapters/node-test-runtime.js.map +1 -0
  77. package/dist/engine/adapters/runtime-facts.d.ts +26 -0
  78. package/dist/engine/adapters/runtime-facts.d.ts.map +1 -0
  79. package/dist/engine/adapters/runtime-facts.js +73 -0
  80. package/dist/engine/adapters/runtime-facts.js.map +1 -0
  81. package/dist/engine/connection.d.ts +22 -0
  82. package/dist/engine/connection.d.ts.map +1 -0
  83. package/dist/engine/connection.js +343 -0
  84. package/dist/engine/connection.js.map +1 -0
  85. package/dist/engine/git-regression.d.ts +25 -0
  86. package/dist/engine/git-regression.d.ts.map +1 -0
  87. package/dist/engine/git-regression.js +803 -0
  88. package/dist/engine/git-regression.js.map +1 -0
  89. package/dist/engine/index.d.ts +55 -0
  90. package/dist/engine/index.d.ts.map +1 -0
  91. package/dist/engine/index.js +2782 -0
  92. package/dist/engine/index.js.map +1 -0
  93. package/dist/engine/node-test-reporter.d.ts +2 -0
  94. package/dist/engine/node-test-reporter.d.ts.map +1 -0
  95. package/dist/engine/node-test-reporter.js +70 -0
  96. package/dist/engine/node-test-reporter.js.map +1 -0
  97. package/dist/engine/runtime-doctor.d.ts +16 -0
  98. package/dist/engine/runtime-doctor.d.ts.map +1 -0
  99. package/dist/engine/runtime-doctor.js +100 -0
  100. package/dist/engine/runtime-doctor.js.map +1 -0
  101. package/dist/evaluation/agentic-corpus.d.ts +161 -0
  102. package/dist/evaluation/agentic-corpus.d.ts.map +1 -0
  103. package/dist/evaluation/agentic-corpus.js +710 -0
  104. package/dist/evaluation/agentic-corpus.js.map +1 -0
  105. package/dist/index.d.ts +8 -0
  106. package/dist/index.d.ts.map +1 -0
  107. package/dist/index.js +8 -0
  108. package/dist/index.js.map +1 -0
  109. package/dist/mcp/index.d.ts +13 -0
  110. package/dist/mcp/index.d.ts.map +1 -0
  111. package/dist/mcp/index.js +391 -0
  112. package/dist/mcp/index.js.map +1 -0
  113. package/dist/mcp/stdio.d.ts +3 -0
  114. package/dist/mcp/stdio.d.ts.map +1 -0
  115. package/dist/mcp/stdio.js +13 -0
  116. package/dist/mcp/stdio.js.map +1 -0
  117. package/dist/sdk/index.d.ts +52 -0
  118. package/dist/sdk/index.d.ts.map +1 -0
  119. package/dist/sdk/index.js +224 -0
  120. package/dist/sdk/index.js.map +1 -0
  121. package/dist/version.d.ts +2 -0
  122. package/dist/version.d.ts.map +1 -0
  123. package/dist/version.js +10 -0
  124. package/dist/version.js.map +1 -0
  125. package/docs/adapter-protocol.md +196 -0
  126. package/docs/agentic-benchmark.md +118 -0
  127. package/docs/agentic-corpus-experiment-h3.md +89 -0
  128. package/docs/agentic-corpus-plan.md +105 -0
  129. package/docs/agentic-corpus-provenance.md +59 -0
  130. package/docs/agentic-test-profile-pilot.md +57 -0
  131. package/docs/agentic-test-profile-v2.md +116 -0
  132. package/docs/agentic-test-profile.md +274 -0
  133. package/docs/architecture.md +157 -0
  134. package/docs/ci.md +37 -0
  135. package/docs/client-connections.md +61 -0
  136. package/docs/conformance-v1.md +72 -0
  137. package/docs/decisions/0001-typescript-runtime.md +24 -0
  138. package/docs/developer-experience.md +55 -0
  139. package/docs/diagnostics.md +35 -0
  140. package/docs/distribution.md +40 -0
  141. package/docs/git-regression.md +39 -0
  142. package/docs/migration-repository-validation-order.md +35 -0
  143. package/docs/migration-testforge-to-assertledger.md +64 -0
  144. package/docs/project-intent.md +173 -0
  145. package/docs/proof-model.md +116 -0
  146. package/docs/reference.md +336 -0
  147. package/docs/release-1.0.md +63 -0
  148. package/docs/repository-audit.md +52 -0
  149. package/docs/repository-init.md +60 -0
  150. package/docs/research-basis.md +27 -0
  151. package/docs/roadmap.md +74 -0
  152. package/docs/runtime-doctor.md +65 -0
  153. package/docs/testexplora-calibration.md +71 -0
  154. package/examples/agentic-benchmark/benchmark-request.mjs +19 -0
  155. package/examples/agentic-benchmark/structured-phase-adapter-fixture.mjs +35 -0
  156. package/examples/agentic-profile/profile-benchmark.mjs +34 -0
  157. package/examples/agentic-profile/profile-manifest.mjs +28 -0
  158. package/examples/git-history/README.md +44 -0
  159. package/examples/git-history/create-demo.mjs +128 -0
  160. package/examples/git-history/escape-string-regexp/LICENSE +9 -0
  161. package/examples/git-history/escape-string-regexp/before.cjs.txt +11 -0
  162. package/examples/git-history/escape-string-regexp/fixed.cjs.txt +13 -0
  163. package/examples/git-history/escape-string-regexp/provenance.json +28 -0
  164. package/examples/node-test/repository/package.json +5 -0
  165. package/examples/node-test/repository/src/is-even.js +3 -0
  166. package/examples/node-test/repository/tests/base.test.js +6 -0
  167. package/examples/node-test/request.json +93 -0
  168. package/integrations/skill/SKILL.md +51 -0
  169. package/package.json +88 -0
  170. package/schemas/agentic-benchmark-acquisition-replay-result.v1.json +70 -0
  171. package/schemas/agentic-benchmark-acquisition-request.v1.json +564 -0
  172. package/schemas/agentic-benchmark-acquisition-result.v1.json +1409 -0
  173. package/schemas/agentic-benchmark-artifact.v1.json +1251 -0
  174. package/schemas/agentic-benchmark-replay-result.v1.json +84 -0
  175. package/schemas/agentic-benchmark-request.v1.json +1034 -0
  176. package/schemas/agentic-corpus-allocation-commitment-replay-result.v1.json +58 -0
  177. package/schemas/agentic-corpus-allocation-commitment.v1.json +141 -0
  178. package/schemas/agentic-corpus-allocation-replay-result.v1.json +34 -0
  179. package/schemas/agentic-corpus-allocation-request.v1.json +65 -0
  180. package/schemas/agentic-corpus-allocation-reveal.v1.json +66 -0
  181. package/schemas/agentic-corpus-allocation.v1.json +167 -0
  182. package/schemas/agentic-corpus-experiment-artifact.v1.json +329 -0
  183. package/schemas/agentic-corpus-experiment-plan-replay-result.v1.json +50 -0
  184. package/schemas/agentic-corpus-experiment-plan.v1.json +424 -0
  185. package/schemas/agentic-corpus-experiment-replay-request.v1.json +336 -0
  186. package/schemas/agentic-corpus-experiment-replay-result.v1.json +106 -0
  187. package/schemas/agentic-corpus-experiment-request.v1.json +204 -0
  188. package/schemas/agentic-corpus-provenance.v1.json +143 -0
  189. package/schemas/agentic-corpus-trust-policy.v1.json +133 -0
  190. package/schemas/agentic-profile-replay-result.v1.json +56 -0
  191. package/schemas/agentic-profile-replay-result.v2.json +63 -0
  192. package/schemas/agentic-profile-report.v1.json +961 -0
  193. package/schemas/agentic-profile-report.v2.json +1674 -0
  194. package/schemas/agentic-profile-request.v1.json +671 -0
  195. package/schemas/agentic-profile-request.v2.json +1338 -0
  196. package/schemas/evidence-manifest.v1.json +636 -0
  197. package/schemas/replay-result.v1.json +49 -0
  198. package/schemas/repository-analysis.v1.json +119 -0
  199. package/schemas/repository-audit.v1.json +811 -0
  200. package/schemas/repository-init-config.v1.json +183 -0
  201. package/schemas/repository-init-lock.v1.json +162 -0
  202. package/schemas/repository-init-result.v1.json +212 -0
  203. package/schemas/verification-request.v1.json +389 -0
@@ -0,0 +1,811 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "root": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "repositoryDigest": {
12
+ "$ref": "#/$defs/__schema2"
13
+ },
14
+ "fileCount": {
15
+ "$ref": "#/$defs/__schema3"
16
+ },
17
+ "repositoryBytes": {
18
+ "$ref": "#/$defs/__schema4"
19
+ },
20
+ "reasonCodes": {
21
+ "$ref": "#/$defs/__schema5"
22
+ },
23
+ "git": {
24
+ "$ref": "#/$defs/__schema6"
25
+ },
26
+ "files": {
27
+ "$ref": "#/$defs/__schema7"
28
+ },
29
+ "modules": {
30
+ "$ref": "#/$defs/__schema9"
31
+ },
32
+ "cost": {
33
+ "$ref": "#/$defs/__schema10"
34
+ },
35
+ "verificationRequest": {
36
+ "$ref": "#/$defs/__schema11"
37
+ }
38
+ },
39
+ "required": [
40
+ "schemaVersion",
41
+ "root",
42
+ "repositoryDigest",
43
+ "fileCount",
44
+ "repositoryBytes",
45
+ "reasonCodes",
46
+ "git",
47
+ "files",
48
+ "modules",
49
+ "cost",
50
+ "verificationRequest"
51
+ ],
52
+ "additionalProperties": false,
53
+ "title": "AssertLedger repository audit",
54
+ "description": "A deterministic static repository audit and campaign cost projection.",
55
+ "$defs": {
56
+ "__schema0": {
57
+ "type": "string",
58
+ "const": "1.0.0"
59
+ },
60
+ "__schema1": {
61
+ "type": "string",
62
+ "minLength": 1
63
+ },
64
+ "__schema2": {
65
+ "type": "string",
66
+ "pattern": "^sha256:[a-f0-9]{64}$"
67
+ },
68
+ "__schema3": {
69
+ "type": "integer",
70
+ "minimum": 0,
71
+ "maximum": 9007199254740991
72
+ },
73
+ "__schema4": {
74
+ "type": "integer",
75
+ "minimum": 0,
76
+ "maximum": 9007199254740991
77
+ },
78
+ "__schema5": {
79
+ "type": "array",
80
+ "items": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "maxLength": 128,
84
+ "pattern": "^[A-Z][A-Z0-9_]*$"
85
+ }
86
+ },
87
+ "__schema6": {
88
+ "type": "object",
89
+ "properties": {
90
+ "supported": {
91
+ "type": "boolean"
92
+ },
93
+ "headTimestamp": {
94
+ "anyOf": [
95
+ {
96
+ "type": "integer",
97
+ "minimum": 0,
98
+ "maximum": 9007199254740991
99
+ },
100
+ {
101
+ "type": "null"
102
+ }
103
+ ]
104
+ },
105
+ "windowDays": {
106
+ "type": "number",
107
+ "const": 90
108
+ },
109
+ "maximumCommits": {
110
+ "type": "number",
111
+ "const": 1000
112
+ },
113
+ "shallow": {
114
+ "anyOf": [
115
+ {
116
+ "type": "boolean"
117
+ },
118
+ {
119
+ "type": "null"
120
+ }
121
+ ]
122
+ },
123
+ "truncated": {
124
+ "anyOf": [
125
+ {
126
+ "type": "boolean"
127
+ },
128
+ {
129
+ "type": "null"
130
+ }
131
+ ]
132
+ }
133
+ },
134
+ "required": [
135
+ "supported",
136
+ "headTimestamp",
137
+ "windowDays",
138
+ "maximumCommits",
139
+ "shallow",
140
+ "truncated"
141
+ ],
142
+ "additionalProperties": false
143
+ },
144
+ "__schema7": {
145
+ "type": "array",
146
+ "items": {
147
+ "type": "object",
148
+ "properties": {
149
+ "path": {
150
+ "type": "string",
151
+ "minLength": 1,
152
+ "maxLength": 1024
153
+ },
154
+ "language": {
155
+ "anyOf": [
156
+ {
157
+ "type": "string",
158
+ "minLength": 1,
159
+ "maxLength": 128
160
+ },
161
+ {
162
+ "type": "null"
163
+ }
164
+ ]
165
+ },
166
+ "supported": {
167
+ "type": "boolean"
168
+ },
169
+ "bytes": {
170
+ "type": "integer",
171
+ "minimum": 0,
172
+ "maximum": 9007199254740991
173
+ },
174
+ "decisionPoints": {
175
+ "$ref": "#/$defs/__schema8"
176
+ },
177
+ "declaredExports": {
178
+ "anyOf": [
179
+ {
180
+ "type": "array",
181
+ "items": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "maxLength": 256
185
+ }
186
+ },
187
+ {
188
+ "type": "null"
189
+ }
190
+ ]
191
+ },
192
+ "noObservedTestReference": {
193
+ "anyOf": [
194
+ {
195
+ "type": "array",
196
+ "items": {
197
+ "type": "string",
198
+ "minLength": 1,
199
+ "maxLength": 256
200
+ }
201
+ },
202
+ {
203
+ "type": "null"
204
+ }
205
+ ]
206
+ },
207
+ "associatedTests": {
208
+ "type": "array",
209
+ "items": {
210
+ "type": "string",
211
+ "minLength": 1,
212
+ "maxLength": 1024
213
+ }
214
+ },
215
+ "sourceChangedAfterAssociatedTest": {
216
+ "anyOf": [
217
+ {
218
+ "type": "boolean"
219
+ },
220
+ {
221
+ "type": "null"
222
+ }
223
+ ]
224
+ },
225
+ "commitsInWindow": {
226
+ "$ref": "#/$defs/__schema8"
227
+ },
228
+ "fixCommitsInWindow": {
229
+ "$ref": "#/$defs/__schema8"
230
+ },
231
+ "weakAssertions": {
232
+ "anyOf": [
233
+ {
234
+ "type": "array",
235
+ "items": {
236
+ "type": "object",
237
+ "properties": {
238
+ "category": {
239
+ "type": "string",
240
+ "enum": [
241
+ "TRUTHINESS_ONLY",
242
+ "CONSTANT_BOOLEAN_EQUALITY",
243
+ "DEFINEDNESS_ONLY",
244
+ "NON_THROW_ONLY",
245
+ "TYPE_ONLY"
246
+ ]
247
+ },
248
+ "count": {
249
+ "type": "integer",
250
+ "minimum": 1,
251
+ "maximum": 9007199254740991
252
+ }
253
+ },
254
+ "required": ["category", "count"],
255
+ "additionalProperties": false
256
+ }
257
+ },
258
+ {
259
+ "type": "null"
260
+ }
261
+ ]
262
+ }
263
+ },
264
+ "required": [
265
+ "path",
266
+ "language",
267
+ "supported",
268
+ "bytes",
269
+ "decisionPoints",
270
+ "declaredExports",
271
+ "noObservedTestReference",
272
+ "associatedTests",
273
+ "sourceChangedAfterAssociatedTest",
274
+ "commitsInWindow",
275
+ "fixCommitsInWindow",
276
+ "weakAssertions"
277
+ ],
278
+ "additionalProperties": false
279
+ }
280
+ },
281
+ "__schema8": {
282
+ "anyOf": [
283
+ {
284
+ "type": "integer",
285
+ "minimum": 0,
286
+ "maximum": 9007199254740991
287
+ },
288
+ {
289
+ "type": "null"
290
+ }
291
+ ]
292
+ },
293
+ "__schema9": {
294
+ "type": "array",
295
+ "items": {
296
+ "type": "object",
297
+ "properties": {
298
+ "pathPrefix": {
299
+ "type": "string",
300
+ "minLength": 1,
301
+ "maxLength": 1024
302
+ },
303
+ "rank": {
304
+ "type": "integer",
305
+ "minimum": 1,
306
+ "maximum": 9007199254740991
307
+ },
308
+ "files": {
309
+ "type": "integer",
310
+ "minimum": 1,
311
+ "maximum": 9007199254740991
312
+ },
313
+ "factualTuple": {
314
+ "type": "array",
315
+ "prefixItems": [
316
+ {
317
+ "type": "integer",
318
+ "minimum": 0,
319
+ "maximum": 9007199254740991
320
+ },
321
+ {
322
+ "type": "integer",
323
+ "minimum": 0,
324
+ "maximum": 9007199254740991
325
+ },
326
+ {
327
+ "type": "integer",
328
+ "minimum": 0,
329
+ "maximum": 9007199254740991
330
+ },
331
+ {
332
+ "type": "integer",
333
+ "minimum": 0,
334
+ "maximum": 9007199254740991
335
+ },
336
+ {
337
+ "type": "integer",
338
+ "minimum": 0,
339
+ "maximum": 9007199254740991
340
+ },
341
+ {
342
+ "type": "integer",
343
+ "minimum": 0,
344
+ "maximum": 9007199254740991
345
+ }
346
+ ]
347
+ }
348
+ },
349
+ "required": ["pathPrefix", "rank", "files", "factualTuple"],
350
+ "additionalProperties": false
351
+ }
352
+ },
353
+ "__schema10": {
354
+ "type": "object",
355
+ "properties": {
356
+ "candidates": {
357
+ "type": "integer",
358
+ "minimum": 0,
359
+ "maximum": 9007199254740991
360
+ },
361
+ "worlds": {
362
+ "type": "integer",
363
+ "minimum": 0,
364
+ "maximum": 9007199254740991
365
+ },
366
+ "attempts": {
367
+ "type": "integer",
368
+ "minimum": 0,
369
+ "maximum": 9007199254740991
370
+ },
371
+ "executions": {
372
+ "type": "string",
373
+ "pattern": "^\\d+$"
374
+ },
375
+ "controlExecutions": {
376
+ "type": "string",
377
+ "pattern": "^\\d+$"
378
+ },
379
+ "candidateExecutions": {
380
+ "type": "string",
381
+ "pattern": "^\\d+$"
382
+ },
383
+ "overlayBytes": {
384
+ "type": "string",
385
+ "pattern": "^\\d+$"
386
+ },
387
+ "materializationBytes": {
388
+ "type": "string",
389
+ "pattern": "^\\d+$"
390
+ },
391
+ "timeoutLimitMs": {
392
+ "type": "string",
393
+ "pattern": "^\\d+$"
394
+ },
395
+ "capturedStreamLimitBytes": {
396
+ "type": "string",
397
+ "pattern": "^\\d+$"
398
+ }
399
+ },
400
+ "required": [
401
+ "candidates",
402
+ "worlds",
403
+ "attempts",
404
+ "executions",
405
+ "controlExecutions",
406
+ "candidateExecutions",
407
+ "overlayBytes",
408
+ "materializationBytes",
409
+ "timeoutLimitMs",
410
+ "capturedStreamLimitBytes"
411
+ ],
412
+ "additionalProperties": false
413
+ },
414
+ "__schema11": {
415
+ "anyOf": [
416
+ {
417
+ "$ref": "#/$defs/https://testforge.dev/schemas/verification-request.v1.json"
418
+ },
419
+ {
420
+ "type": "null"
421
+ }
422
+ ]
423
+ },
424
+ "https://testforge.dev/schemas/verification-request.v1.json": {
425
+ "type": "object",
426
+ "properties": {
427
+ "schemaVersion": {
428
+ "$ref": "#/$defs/__schema12"
429
+ },
430
+ "repository": {
431
+ "$ref": "#/$defs/__schema13"
432
+ },
433
+ "adapter": {
434
+ "$ref": "#/$defs/__schema15"
435
+ },
436
+ "isolation": {
437
+ "$ref": "#/$defs/__schema19"
438
+ },
439
+ "candidateRoots": {
440
+ "$ref": "#/$defs/__schema21"
441
+ },
442
+ "budgets": {
443
+ "$ref": "#/$defs/__schema23"
444
+ },
445
+ "policy": {
446
+ "$ref": "#/$defs/__schema24"
447
+ },
448
+ "worlds": {
449
+ "$ref": "#/$defs/__schema26"
450
+ },
451
+ "candidates": {
452
+ "$ref": "#/$defs/__schema30"
453
+ }
454
+ },
455
+ "required": [
456
+ "schemaVersion",
457
+ "repository",
458
+ "adapter",
459
+ "isolation",
460
+ "candidateRoots",
461
+ "budgets",
462
+ "policy",
463
+ "worlds",
464
+ "candidates"
465
+ ],
466
+ "additionalProperties": false,
467
+ "title": "TestForge verification request",
468
+ "description": "A versioned campaign describing operator-owned worlds, candidate test overlays, budgets, and evidence policy."
469
+ },
470
+ "__schema12": {
471
+ "type": "string",
472
+ "const": "1.0.0"
473
+ },
474
+ "__schema13": {
475
+ "type": "object",
476
+ "properties": {
477
+ "root": {
478
+ "type": "string",
479
+ "minLength": 1
480
+ },
481
+ "exclude": {
482
+ "maxItems": 1000,
483
+ "type": "array",
484
+ "items": {
485
+ "$ref": "#/$defs/__schema14"
486
+ }
487
+ }
488
+ },
489
+ "required": ["root", "exclude"],
490
+ "additionalProperties": false
491
+ },
492
+ "__schema14": {
493
+ "type": "string",
494
+ "minLength": 1,
495
+ "maxLength": 512
496
+ },
497
+ "__schema15": {
498
+ "oneOf": [
499
+ {
500
+ "type": "object",
501
+ "properties": {
502
+ "kind": {
503
+ "type": "string",
504
+ "const": "node-test"
505
+ },
506
+ "executable": {
507
+ "type": "string",
508
+ "minLength": 1
509
+ },
510
+ "baseTestFiles": {
511
+ "minItems": 1,
512
+ "maxItems": 1000,
513
+ "type": "array",
514
+ "items": {
515
+ "$ref": "#/$defs/__schema16"
516
+ }
517
+ },
518
+ "extraArguments": {
519
+ "maxItems": 0,
520
+ "type": "array",
521
+ "items": {
522
+ "$ref": "#/$defs/__schema17"
523
+ }
524
+ }
525
+ },
526
+ "required": ["kind", "executable", "baseTestFiles"],
527
+ "additionalProperties": false
528
+ },
529
+ {
530
+ "type": "object",
531
+ "properties": {
532
+ "kind": {
533
+ "type": "string",
534
+ "const": "testforge-command"
535
+ },
536
+ "executable": {
537
+ "type": "string",
538
+ "minLength": 1
539
+ },
540
+ "arguments": {
541
+ "maxItems": 100,
542
+ "type": "array",
543
+ "items": {
544
+ "$ref": "#/$defs/__schema18"
545
+ }
546
+ },
547
+ "protocolVersion": {
548
+ "type": "string",
549
+ "const": "1.0.0"
550
+ }
551
+ },
552
+ "required": ["kind", "executable", "arguments", "protocolVersion"],
553
+ "additionalProperties": false
554
+ }
555
+ ]
556
+ },
557
+ "__schema16": {
558
+ "type": "string",
559
+ "minLength": 1
560
+ },
561
+ "__schema17": {
562
+ "type": "string"
563
+ },
564
+ "__schema18": {
565
+ "type": "string"
566
+ },
567
+ "__schema19": {
568
+ "type": "object",
569
+ "properties": {
570
+ "kind": {
571
+ "type": "string",
572
+ "const": "trusted-local"
573
+ },
574
+ "acknowledgedUnsafeExecution": {
575
+ "type": "boolean"
576
+ },
577
+ "environmentAllowlist": {
578
+ "maxItems": 100,
579
+ "type": "array",
580
+ "items": {
581
+ "$ref": "#/$defs/__schema20"
582
+ }
583
+ }
584
+ },
585
+ "required": ["kind", "acknowledgedUnsafeExecution", "environmentAllowlist"],
586
+ "additionalProperties": false
587
+ },
588
+ "__schema20": {
589
+ "type": "string",
590
+ "minLength": 1,
591
+ "maxLength": 128,
592
+ "pattern": "^(?!(?:[Nn][Oo][Dd][Ee]_[Oo][Pp][Tt][Ii][Oo][Nn][Ss]$|[Tt][Ee][Ss][Tt][Ff][Oo][Rr][Gg][Ee]_|[Nn][Oo][Dd][Ee]_[Tt][Ee][Ss][Tt]_)).+$"
593
+ },
594
+ "__schema21": {
595
+ "minItems": 1,
596
+ "maxItems": 100,
597
+ "type": "array",
598
+ "items": {
599
+ "$ref": "#/$defs/__schema22"
600
+ }
601
+ },
602
+ "__schema22": {
603
+ "type": "string",
604
+ "minLength": 1,
605
+ "maxLength": 512
606
+ },
607
+ "__schema23": {
608
+ "type": "object",
609
+ "properties": {
610
+ "maximumCandidates": {
611
+ "type": "integer",
612
+ "minimum": 1,
613
+ "maximum": 1000
614
+ },
615
+ "maximumWorlds": {
616
+ "type": "integer",
617
+ "minimum": 3,
618
+ "maximum": 1000
619
+ },
620
+ "maximumExecutions": {
621
+ "type": "integer",
622
+ "minimum": 1,
623
+ "maximum": 1000000
624
+ },
625
+ "maximumRepositoryFiles": {
626
+ "type": "integer",
627
+ "minimum": 1,
628
+ "maximum": 10000000
629
+ },
630
+ "maximumRepositoryBytes": {
631
+ "type": "integer",
632
+ "minimum": 1,
633
+ "maximum": 1000000000000
634
+ },
635
+ "maximumWorldOverlayBytes": {
636
+ "type": "integer",
637
+ "minimum": 1,
638
+ "maximum": 1000000000000
639
+ },
640
+ "maximumCandidateBytes": {
641
+ "type": "integer",
642
+ "minimum": 1,
643
+ "maximum": 100000000
644
+ },
645
+ "maximumTotalCandidateBytes": {
646
+ "type": "integer",
647
+ "minimum": 1,
648
+ "maximum": 100000000000
649
+ },
650
+ "timeoutMsPerExecution": {
651
+ "type": "integer",
652
+ "minimum": 10,
653
+ "maximum": 86400000
654
+ },
655
+ "maximumOutputBytes": {
656
+ "type": "integer",
657
+ "minimum": 128,
658
+ "maximum": 100000000
659
+ }
660
+ },
661
+ "required": [
662
+ "maximumCandidates",
663
+ "maximumWorlds",
664
+ "maximumExecutions",
665
+ "maximumRepositoryFiles",
666
+ "maximumRepositoryBytes",
667
+ "maximumWorldOverlayBytes",
668
+ "maximumCandidateBytes",
669
+ "maximumTotalCandidateBytes",
670
+ "timeoutMsPerExecution",
671
+ "maximumOutputBytes"
672
+ ],
673
+ "additionalProperties": false
674
+ },
675
+ "__schema24": {
676
+ "type": "object",
677
+ "properties": {
678
+ "policyVersion": {
679
+ "type": "string",
680
+ "const": "1.0.0"
681
+ },
682
+ "requiredAttempts": {
683
+ "type": "integer",
684
+ "minimum": 1,
685
+ "maximum": 1000
686
+ },
687
+ "minimumTargetWeightPermille": {
688
+ "type": "integer",
689
+ "minimum": 1,
690
+ "maximum": 1000
691
+ },
692
+ "maximumSelectedCandidates": {
693
+ "type": "integer",
694
+ "minimum": 1,
695
+ "maximum": 1000
696
+ },
697
+ "acceptedTargetOutcomes": {
698
+ "minItems": 1,
699
+ "maxItems": 1,
700
+ "type": "array",
701
+ "items": {
702
+ "$ref": "#/$defs/__schema25"
703
+ }
704
+ }
705
+ },
706
+ "required": [
707
+ "policyVersion",
708
+ "requiredAttempts",
709
+ "minimumTargetWeightPermille",
710
+ "maximumSelectedCandidates",
711
+ "acceptedTargetOutcomes"
712
+ ],
713
+ "additionalProperties": false
714
+ },
715
+ "__schema25": {
716
+ "type": "string",
717
+ "const": "ASSERTION_FAILURE"
718
+ },
719
+ "__schema26": {
720
+ "minItems": 1,
721
+ "maxItems": 1000,
722
+ "type": "array",
723
+ "items": {
724
+ "$ref": "#/$defs/__schema27"
725
+ }
726
+ },
727
+ "__schema27": {
728
+ "type": "object",
729
+ "properties": {
730
+ "id": {
731
+ "$ref": "#/$defs/__schema28"
732
+ },
733
+ "kind": {
734
+ "type": "string",
735
+ "enum": ["REFERENCE", "TARGET", "NEUTRAL"]
736
+ },
737
+ "required": {
738
+ "type": "boolean"
739
+ },
740
+ "weight": {
741
+ "type": "integer",
742
+ "minimum": 0,
743
+ "maximum": 1000000
744
+ },
745
+ "provenance": {
746
+ "type": "string",
747
+ "minLength": 1,
748
+ "maxLength": 1024
749
+ },
750
+ "files": {
751
+ "maxItems": 1000,
752
+ "type": "array",
753
+ "items": {
754
+ "$ref": "#/$defs/__schema29"
755
+ }
756
+ }
757
+ },
758
+ "required": ["id", "kind", "required", "weight", "provenance", "files"],
759
+ "additionalProperties": false
760
+ },
761
+ "__schema28": {
762
+ "type": "string",
763
+ "minLength": 1,
764
+ "maxLength": 128,
765
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
766
+ },
767
+ "__schema29": {
768
+ "type": "object",
769
+ "properties": {
770
+ "path": {
771
+ "type": "string",
772
+ "minLength": 1,
773
+ "maxLength": 512
774
+ },
775
+ "content": {
776
+ "type": "string",
777
+ "maxLength": 1048576
778
+ }
779
+ },
780
+ "required": ["path", "content"],
781
+ "additionalProperties": false
782
+ },
783
+ "__schema30": {
784
+ "minItems": 1,
785
+ "maxItems": 1000,
786
+ "type": "array",
787
+ "items": {
788
+ "$ref": "#/$defs/__schema31"
789
+ }
790
+ },
791
+ "__schema31": {
792
+ "type": "object",
793
+ "properties": {
794
+ "id": {
795
+ "$ref": "#/$defs/__schema28"
796
+ },
797
+ "files": {
798
+ "minItems": 1,
799
+ "maxItems": 100,
800
+ "type": "array",
801
+ "items": {
802
+ "$ref": "#/$defs/__schema29"
803
+ }
804
+ }
805
+ },
806
+ "required": ["id", "files"],
807
+ "additionalProperties": false
808
+ }
809
+ },
810
+ "$id": "https://testforge.dev/schemas/repository-audit.v1.json"
811
+ }