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,636 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "repositoryDigest": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "evidenceContext": {
12
+ "$ref": "#/$defs/__schema3"
13
+ },
14
+ "policy": {
15
+ "$ref": "#/$defs/__schema9"
16
+ },
17
+ "worlds": {
18
+ "$ref": "#/$defs/__schema12"
19
+ },
20
+ "candidates": {
21
+ "$ref": "#/$defs/__schema13"
22
+ },
23
+ "observations": {
24
+ "$ref": "#/$defs/__schema15"
25
+ },
26
+ "decision": {
27
+ "$ref": "#/$defs/__schema16"
28
+ },
29
+ "decisionDigest": {
30
+ "$ref": "#/$defs/__schema2"
31
+ },
32
+ "artifactDigest": {
33
+ "$ref": "#/$defs/__schema2"
34
+ },
35
+ "adapter": {
36
+ "$ref": "#/$defs/__schema17"
37
+ },
38
+ "isolation": {
39
+ "$ref": "#/$defs/__schema18"
40
+ },
41
+ "limitations": {
42
+ "$ref": "#/$defs/__schema19"
43
+ }
44
+ },
45
+ "required": [
46
+ "schemaVersion",
47
+ "repositoryDigest",
48
+ "evidenceContext",
49
+ "policy",
50
+ "worlds",
51
+ "candidates",
52
+ "observations",
53
+ "decision",
54
+ "decisionDigest",
55
+ "artifactDigest",
56
+ "adapter",
57
+ "isolation",
58
+ "limitations"
59
+ ],
60
+ "additionalProperties": false,
61
+ "title": "TestForge evidence manifest",
62
+ "description": "The final auditable campaign artifact, including evidence, deterministic gates, decisions, and integrity digests.",
63
+ "$defs": {
64
+ "__schema0": {
65
+ "type": "string",
66
+ "const": "1.0.0"
67
+ },
68
+ "__schema1": {
69
+ "anyOf": [
70
+ {
71
+ "$ref": "#/$defs/__schema2"
72
+ },
73
+ {
74
+ "type": "string",
75
+ "const": "invalid"
76
+ }
77
+ ]
78
+ },
79
+ "__schema2": {
80
+ "type": "string",
81
+ "pattern": "^sha256:[a-f0-9]{64}$"
82
+ },
83
+ "__schema3": {
84
+ "type": "object",
85
+ "properties": {
86
+ "engine": {
87
+ "type": "object",
88
+ "properties": {
89
+ "name": {
90
+ "type": "string",
91
+ "minLength": 1,
92
+ "maxLength": 128
93
+ },
94
+ "version": {
95
+ "type": "string",
96
+ "minLength": 1,
97
+ "maxLength": 128
98
+ }
99
+ },
100
+ "required": ["name", "version"],
101
+ "additionalProperties": false
102
+ },
103
+ "adapter": {
104
+ "type": "object",
105
+ "properties": {
106
+ "name": {
107
+ "type": "string",
108
+ "minLength": 1,
109
+ "maxLength": 128
110
+ },
111
+ "version": {
112
+ "type": "string",
113
+ "minLength": 1,
114
+ "maxLength": 128
115
+ },
116
+ "configuration": {
117
+ "$ref": "#/$defs/__schema4"
118
+ }
119
+ },
120
+ "required": ["name", "version", "configuration"],
121
+ "additionalProperties": false
122
+ },
123
+ "execution": {
124
+ "type": "object",
125
+ "properties": {
126
+ "isolation": {
127
+ "type": "string",
128
+ "minLength": 1,
129
+ "maxLength": 128
130
+ },
131
+ "environmentAllowlist": {
132
+ "maxItems": 100,
133
+ "type": "array",
134
+ "items": {
135
+ "$ref": "#/$defs/__schema5"
136
+ }
137
+ },
138
+ "budgets": {
139
+ "$ref": "#/$defs/__schema6"
140
+ },
141
+ "candidateRoots": {
142
+ "maxItems": 100,
143
+ "type": "array",
144
+ "items": {
145
+ "$ref": "#/$defs/__schema7"
146
+ }
147
+ }
148
+ },
149
+ "required": ["isolation", "environmentAllowlist", "budgets", "candidateRoots"],
150
+ "additionalProperties": false
151
+ },
152
+ "worlds": {
153
+ "type": "array",
154
+ "items": {
155
+ "type": "object",
156
+ "properties": {
157
+ "id": {
158
+ "$ref": "#/$defs/__schema8"
159
+ },
160
+ "provenance": {
161
+ "type": "string",
162
+ "minLength": 1,
163
+ "maxLength": 1024
164
+ },
165
+ "digest": {
166
+ "$ref": "#/$defs/__schema2"
167
+ }
168
+ },
169
+ "required": ["id", "provenance", "digest"],
170
+ "additionalProperties": false
171
+ }
172
+ }
173
+ },
174
+ "required": ["engine", "adapter", "execution", "worlds"],
175
+ "additionalProperties": false
176
+ },
177
+ "__schema4": {
178
+ "anyOf": [
179
+ {
180
+ "type": "string"
181
+ },
182
+ {
183
+ "type": "number"
184
+ },
185
+ {
186
+ "type": "boolean"
187
+ },
188
+ {
189
+ "type": "null"
190
+ },
191
+ {
192
+ "type": "array",
193
+ "items": {
194
+ "$ref": "#/$defs/__schema4"
195
+ }
196
+ },
197
+ {
198
+ "type": "object",
199
+ "propertyNames": {
200
+ "type": "string"
201
+ },
202
+ "additionalProperties": {
203
+ "$ref": "#/$defs/__schema4"
204
+ }
205
+ }
206
+ ]
207
+ },
208
+ "__schema5": {
209
+ "type": "string",
210
+ "minLength": 1,
211
+ "maxLength": 128
212
+ },
213
+ "__schema6": {
214
+ "anyOf": [
215
+ {
216
+ "type": "string"
217
+ },
218
+ {
219
+ "type": "number"
220
+ },
221
+ {
222
+ "type": "boolean"
223
+ },
224
+ {
225
+ "type": "null"
226
+ },
227
+ {
228
+ "type": "array",
229
+ "items": {
230
+ "$ref": "#/$defs/__schema6"
231
+ }
232
+ },
233
+ {
234
+ "type": "object",
235
+ "propertyNames": {
236
+ "type": "string"
237
+ },
238
+ "additionalProperties": {
239
+ "$ref": "#/$defs/__schema6"
240
+ }
241
+ }
242
+ ]
243
+ },
244
+ "__schema7": {
245
+ "type": "string",
246
+ "minLength": 1,
247
+ "maxLength": 512
248
+ },
249
+ "__schema8": {
250
+ "type": "string",
251
+ "minLength": 1,
252
+ "maxLength": 128,
253
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
254
+ },
255
+ "__schema9": {
256
+ "anyOf": [
257
+ {
258
+ "type": "object",
259
+ "properties": {
260
+ "policyVersion": {
261
+ "type": "string",
262
+ "const": "1.0.0"
263
+ },
264
+ "requiredAttempts": {
265
+ "type": "integer",
266
+ "minimum": 1,
267
+ "maximum": 1000
268
+ },
269
+ "minimumTargetWeightPermille": {
270
+ "type": "integer",
271
+ "minimum": 1,
272
+ "maximum": 1000
273
+ },
274
+ "maximumSelectedCandidates": {
275
+ "type": "integer",
276
+ "minimum": 1,
277
+ "maximum": 1000
278
+ },
279
+ "acceptedTargetOutcomes": {
280
+ "minItems": 1,
281
+ "maxItems": 1,
282
+ "type": "array",
283
+ "items": {
284
+ "$ref": "#/$defs/__schema10"
285
+ }
286
+ }
287
+ },
288
+ "required": [
289
+ "policyVersion",
290
+ "requiredAttempts",
291
+ "minimumTargetWeightPermille",
292
+ "maximumSelectedCandidates",
293
+ "acceptedTargetOutcomes"
294
+ ],
295
+ "additionalProperties": false
296
+ },
297
+ {
298
+ "type": "object",
299
+ "properties": {
300
+ "policyVersion": {
301
+ "type": "string",
302
+ "const": "invalid"
303
+ },
304
+ "requiredAttempts": {
305
+ "type": "number",
306
+ "const": 1
307
+ },
308
+ "minimumTargetWeightPermille": {
309
+ "type": "number",
310
+ "const": 1000
311
+ },
312
+ "maximumSelectedCandidates": {
313
+ "type": "number",
314
+ "const": 0
315
+ },
316
+ "acceptedTargetOutcomes": {
317
+ "maxItems": 0,
318
+ "type": "array",
319
+ "items": {
320
+ "$ref": "#/$defs/__schema11"
321
+ }
322
+ }
323
+ },
324
+ "required": [
325
+ "policyVersion",
326
+ "requiredAttempts",
327
+ "minimumTargetWeightPermille",
328
+ "maximumSelectedCandidates",
329
+ "acceptedTargetOutcomes"
330
+ ],
331
+ "additionalProperties": false
332
+ }
333
+ ]
334
+ },
335
+ "__schema10": {
336
+ "type": "string",
337
+ "const": "ASSERTION_FAILURE"
338
+ },
339
+ "__schema11": {
340
+ "type": "string",
341
+ "const": "ASSERTION_FAILURE"
342
+ },
343
+ "__schema12": {
344
+ "type": "array",
345
+ "items": {
346
+ "type": "object",
347
+ "properties": {
348
+ "id": {
349
+ "$ref": "#/$defs/__schema8"
350
+ },
351
+ "kind": {
352
+ "type": "string",
353
+ "enum": ["REFERENCE", "TARGET", "NEUTRAL"]
354
+ },
355
+ "required": {
356
+ "type": "boolean"
357
+ },
358
+ "weight": {
359
+ "type": "integer",
360
+ "minimum": 0,
361
+ "maximum": 1000000
362
+ }
363
+ },
364
+ "required": ["id", "kind", "required", "weight"],
365
+ "additionalProperties": false
366
+ }
367
+ },
368
+ "__schema13": {
369
+ "type": "array",
370
+ "items": {
371
+ "type": "object",
372
+ "properties": {
373
+ "id": {
374
+ "$ref": "#/$defs/__schema8"
375
+ },
376
+ "digest": {
377
+ "$ref": "#/$defs/__schema2"
378
+ },
379
+ "sizeBytes": {
380
+ "type": "integer",
381
+ "minimum": 0,
382
+ "maximum": 9007199254740991
383
+ },
384
+ "status": {
385
+ "type": "string",
386
+ "enum": ["ELIGIBLE", "UNSTABLE", "INCONCLUSIVE", "INVALID", "WEAK_ORACLE"]
387
+ },
388
+ "killedTargetIds": {
389
+ "type": "array",
390
+ "items": {
391
+ "$ref": "#/$defs/__schema8"
392
+ }
393
+ },
394
+ "targetWeightKilled": {
395
+ "type": "integer",
396
+ "minimum": 0,
397
+ "maximum": 9007199254740991
398
+ },
399
+ "gates": {
400
+ "type": "array",
401
+ "items": {
402
+ "type": "object",
403
+ "properties": {
404
+ "name": {
405
+ "type": "string",
406
+ "enum": [
407
+ "COMPLETENESS",
408
+ "STABILITY",
409
+ "DISCOVERY",
410
+ "REFERENCE",
411
+ "NEUTRAL",
412
+ "TARGET_STRENGTH"
413
+ ]
414
+ },
415
+ "status": {
416
+ "type": "string",
417
+ "enum": ["PASSED", "FAILED", "NOT_RUN"]
418
+ },
419
+ "evidenceRunIds": {
420
+ "type": "array",
421
+ "items": {
422
+ "type": "string",
423
+ "minLength": 1,
424
+ "maxLength": 512
425
+ }
426
+ },
427
+ "reasonCodes": {
428
+ "type": "array",
429
+ "items": {
430
+ "$ref": "#/$defs/__schema14"
431
+ }
432
+ }
433
+ },
434
+ "required": ["name", "status", "evidenceRunIds", "reasonCodes"],
435
+ "additionalProperties": false
436
+ }
437
+ },
438
+ "reasonCodes": {
439
+ "type": "array",
440
+ "items": {
441
+ "$ref": "#/$defs/__schema14"
442
+ }
443
+ }
444
+ },
445
+ "required": [
446
+ "id",
447
+ "digest",
448
+ "sizeBytes",
449
+ "status",
450
+ "killedTargetIds",
451
+ "targetWeightKilled",
452
+ "gates",
453
+ "reasonCodes"
454
+ ],
455
+ "additionalProperties": false
456
+ }
457
+ },
458
+ "__schema14": {
459
+ "type": "string",
460
+ "minLength": 1,
461
+ "maxLength": 128,
462
+ "pattern": "^[A-Z][A-Z0-9_]*$"
463
+ },
464
+ "__schema15": {
465
+ "type": "array",
466
+ "items": {
467
+ "type": "object",
468
+ "properties": {
469
+ "runId": {
470
+ "type": "string",
471
+ "minLength": 1,
472
+ "maxLength": 512
473
+ },
474
+ "candidateId": {
475
+ "anyOf": [
476
+ {
477
+ "$ref": "#/$defs/__schema8"
478
+ },
479
+ {
480
+ "type": "null"
481
+ }
482
+ ]
483
+ },
484
+ "worldId": {
485
+ "$ref": "#/$defs/__schema8"
486
+ },
487
+ "attempt": {
488
+ "type": "integer",
489
+ "minimum": 1,
490
+ "maximum": 9007199254740991
491
+ },
492
+ "outcome": {
493
+ "type": "string",
494
+ "enum": [
495
+ "PASS",
496
+ "ASSERTION_FAILURE",
497
+ "COLLECTION_FAILURE",
498
+ "COMPILE_FAILURE",
499
+ "PROCESS_CRASH",
500
+ "TIMEOUT",
501
+ "INFRA_ERROR",
502
+ "NO_TEST_DISCOVERED"
503
+ ]
504
+ },
505
+ "testsDiscovered": {
506
+ "type": "integer",
507
+ "minimum": 0,
508
+ "maximum": 9007199254740991
509
+ },
510
+ "candidateTestsDiscovered": {
511
+ "type": "integer",
512
+ "minimum": 0,
513
+ "maximum": 9007199254740991
514
+ },
515
+ "attributed": {
516
+ "type": "boolean"
517
+ },
518
+ "durationMs": {
519
+ "type": "number",
520
+ "minimum": 0
521
+ },
522
+ "exitCode": {
523
+ "anyOf": [
524
+ {
525
+ "type": "integer",
526
+ "minimum": 0,
527
+ "maximum": 9007199254740991
528
+ },
529
+ {
530
+ "type": "null"
531
+ }
532
+ ]
533
+ },
534
+ "stdoutDigest": {
535
+ "$ref": "#/$defs/__schema2"
536
+ },
537
+ "stderrDigest": {
538
+ "$ref": "#/$defs/__schema2"
539
+ }
540
+ },
541
+ "required": [
542
+ "runId",
543
+ "candidateId",
544
+ "worldId",
545
+ "attempt",
546
+ "outcome",
547
+ "testsDiscovered",
548
+ "candidateTestsDiscovered",
549
+ "attributed"
550
+ ],
551
+ "additionalProperties": false
552
+ }
553
+ },
554
+ "__schema16": {
555
+ "type": "object",
556
+ "properties": {
557
+ "status": {
558
+ "type": "string",
559
+ "enum": ["VERIFIED", "REJECTED", "INCONCLUSIVE", "ENGINE_ERROR"]
560
+ },
561
+ "selectedCandidateIds": {
562
+ "type": "array",
563
+ "items": {
564
+ "$ref": "#/$defs/__schema8"
565
+ }
566
+ },
567
+ "reasonCodes": {
568
+ "type": "array",
569
+ "items": {
570
+ "$ref": "#/$defs/__schema14"
571
+ }
572
+ }
573
+ },
574
+ "required": ["status", "selectedCandidateIds", "reasonCodes"],
575
+ "additionalProperties": false
576
+ },
577
+ "__schema17": {
578
+ "oneOf": [
579
+ {
580
+ "type": "object",
581
+ "properties": {
582
+ "kind": {
583
+ "type": "string",
584
+ "const": "node-test"
585
+ }
586
+ },
587
+ "required": ["kind"],
588
+ "additionalProperties": false
589
+ },
590
+ {
591
+ "type": "object",
592
+ "properties": {
593
+ "kind": {
594
+ "type": "string",
595
+ "const": "testforge-command"
596
+ },
597
+ "protocolVersion": {
598
+ "type": "string",
599
+ "const": "1.0.0"
600
+ }
601
+ },
602
+ "required": ["kind", "protocolVersion"],
603
+ "additionalProperties": false
604
+ }
605
+ ]
606
+ },
607
+ "__schema18": {
608
+ "type": "object",
609
+ "properties": {
610
+ "kind": {
611
+ "type": "string",
612
+ "const": "trusted-local"
613
+ },
614
+ "level": {
615
+ "type": "string",
616
+ "const": "UNSANDBOXED"
617
+ },
618
+ "acknowledgedUnsafeExecution": {
619
+ "type": "boolean",
620
+ "const": true
621
+ }
622
+ },
623
+ "required": ["kind", "level", "acknowledgedUnsafeExecution"],
624
+ "additionalProperties": false
625
+ },
626
+ "__schema19": {
627
+ "type": "array",
628
+ "items": {
629
+ "type": "string",
630
+ "minLength": 1,
631
+ "maxLength": 2048
632
+ }
633
+ }
634
+ },
635
+ "$id": "https://testforge.dev/schemas/evidence-manifest.v1.json"
636
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "valid": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "schemaValid": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "decisionDigestValid": {
12
+ "$ref": "#/$defs/__schema2"
13
+ },
14
+ "artifactDigestValid": {
15
+ "$ref": "#/$defs/__schema3"
16
+ },
17
+ "decisionSemanticsValid": {
18
+ "$ref": "#/$defs/__schema4"
19
+ }
20
+ },
21
+ "required": [
22
+ "valid",
23
+ "schemaValid",
24
+ "decisionDigestValid",
25
+ "artifactDigestValid",
26
+ "decisionSemanticsValid"
27
+ ],
28
+ "additionalProperties": false,
29
+ "title": "TestForge replay result",
30
+ "description": "Independent integrity and semantic replay verdicts for a TestForge evidence manifest.",
31
+ "$defs": {
32
+ "__schema0": {
33
+ "type": "boolean"
34
+ },
35
+ "__schema1": {
36
+ "type": "boolean"
37
+ },
38
+ "__schema2": {
39
+ "type": "boolean"
40
+ },
41
+ "__schema3": {
42
+ "type": "boolean"
43
+ },
44
+ "__schema4": {
45
+ "type": "boolean"
46
+ }
47
+ },
48
+ "$id": "https://testforge.dev/schemas/replay-result.v1.json"
49
+ }