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,564 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "verificationRequest": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "referenceWorldId": {
12
+ "$ref": "#/$defs/__schema10"
13
+ },
14
+ "policy": {
15
+ "$ref": "#/$defs/__schema13"
16
+ },
17
+ "protocol": {
18
+ "$ref": "#/$defs/__schema14"
19
+ },
20
+ "environment": {
21
+ "$ref": "#/$defs/__schema15"
22
+ },
23
+ "identityFiles": {
24
+ "$ref": "#/$defs/__schema16"
25
+ }
26
+ },
27
+ "required": [
28
+ "schemaVersion",
29
+ "verificationRequest",
30
+ "referenceWorldId",
31
+ "policy",
32
+ "protocol",
33
+ "environment",
34
+ "identityFiles"
35
+ ],
36
+ "additionalProperties": false,
37
+ "title": "TestForge Agentic Benchmark acquisition request",
38
+ "description": "A fresh verification campaign plus strict phase-aware acquisition policy and identity bindings.",
39
+ "$defs": {
40
+ "__schema0": {
41
+ "type": "string",
42
+ "const": "1.0.0"
43
+ },
44
+ "__schema1": {
45
+ "type": "object",
46
+ "properties": {
47
+ "schemaVersion": {
48
+ "type": "string",
49
+ "const": "1.0.0"
50
+ },
51
+ "repository": {
52
+ "type": "object",
53
+ "properties": {
54
+ "root": {
55
+ "type": "string",
56
+ "minLength": 1
57
+ },
58
+ "exclude": {
59
+ "maxItems": 1000,
60
+ "type": "array",
61
+ "items": {
62
+ "$ref": "#/$defs/__schema2"
63
+ }
64
+ }
65
+ },
66
+ "required": ["root", "exclude"],
67
+ "additionalProperties": false
68
+ },
69
+ "adapter": {
70
+ "oneOf": [
71
+ {
72
+ "type": "object",
73
+ "properties": {
74
+ "kind": {
75
+ "type": "string",
76
+ "const": "node-test"
77
+ },
78
+ "executable": {
79
+ "type": "string",
80
+ "minLength": 1
81
+ },
82
+ "baseTestFiles": {
83
+ "minItems": 1,
84
+ "maxItems": 1000,
85
+ "type": "array",
86
+ "items": {
87
+ "$ref": "#/$defs/__schema3"
88
+ }
89
+ },
90
+ "extraArguments": {
91
+ "maxItems": 0,
92
+ "type": "array",
93
+ "items": {
94
+ "$ref": "#/$defs/__schema4"
95
+ }
96
+ }
97
+ },
98
+ "required": ["kind", "executable", "baseTestFiles"],
99
+ "additionalProperties": false
100
+ },
101
+ {
102
+ "type": "object",
103
+ "properties": {
104
+ "kind": {
105
+ "type": "string",
106
+ "const": "testforge-command"
107
+ },
108
+ "executable": {
109
+ "type": "string",
110
+ "minLength": 1
111
+ },
112
+ "arguments": {
113
+ "maxItems": 100,
114
+ "type": "array",
115
+ "items": {
116
+ "$ref": "#/$defs/__schema5"
117
+ }
118
+ },
119
+ "protocolVersion": {
120
+ "type": "string",
121
+ "const": "1.0.0"
122
+ }
123
+ },
124
+ "required": ["kind", "executable", "arguments", "protocolVersion"],
125
+ "additionalProperties": false
126
+ }
127
+ ]
128
+ },
129
+ "isolation": {
130
+ "type": "object",
131
+ "properties": {
132
+ "kind": {
133
+ "type": "string",
134
+ "const": "trusted-local"
135
+ },
136
+ "acknowledgedUnsafeExecution": {
137
+ "type": "boolean"
138
+ },
139
+ "environmentAllowlist": {
140
+ "maxItems": 100,
141
+ "type": "array",
142
+ "items": {
143
+ "$ref": "#/$defs/__schema6"
144
+ }
145
+ }
146
+ },
147
+ "required": ["kind", "acknowledgedUnsafeExecution", "environmentAllowlist"],
148
+ "additionalProperties": false
149
+ },
150
+ "candidateRoots": {
151
+ "minItems": 1,
152
+ "maxItems": 100,
153
+ "type": "array",
154
+ "items": {
155
+ "$ref": "#/$defs/__schema7"
156
+ }
157
+ },
158
+ "budgets": {
159
+ "type": "object",
160
+ "properties": {
161
+ "maximumCandidates": {
162
+ "type": "integer",
163
+ "minimum": 1,
164
+ "maximum": 1000
165
+ },
166
+ "maximumWorlds": {
167
+ "type": "integer",
168
+ "minimum": 3,
169
+ "maximum": 1000
170
+ },
171
+ "maximumExecutions": {
172
+ "type": "integer",
173
+ "minimum": 1,
174
+ "maximum": 1000000
175
+ },
176
+ "maximumRepositoryFiles": {
177
+ "type": "integer",
178
+ "minimum": 1,
179
+ "maximum": 10000000
180
+ },
181
+ "maximumRepositoryBytes": {
182
+ "type": "integer",
183
+ "minimum": 1,
184
+ "maximum": 1000000000000
185
+ },
186
+ "maximumWorldOverlayBytes": {
187
+ "type": "integer",
188
+ "minimum": 1,
189
+ "maximum": 1000000000000
190
+ },
191
+ "maximumCandidateBytes": {
192
+ "type": "integer",
193
+ "minimum": 1,
194
+ "maximum": 100000000
195
+ },
196
+ "maximumTotalCandidateBytes": {
197
+ "type": "integer",
198
+ "minimum": 1,
199
+ "maximum": 100000000000
200
+ },
201
+ "timeoutMsPerExecution": {
202
+ "type": "integer",
203
+ "minimum": 10,
204
+ "maximum": 86400000
205
+ },
206
+ "maximumOutputBytes": {
207
+ "type": "integer",
208
+ "minimum": 128,
209
+ "maximum": 100000000
210
+ }
211
+ },
212
+ "required": [
213
+ "maximumCandidates",
214
+ "maximumWorlds",
215
+ "maximumExecutions",
216
+ "maximumRepositoryFiles",
217
+ "maximumRepositoryBytes",
218
+ "maximumWorldOverlayBytes",
219
+ "maximumCandidateBytes",
220
+ "maximumTotalCandidateBytes",
221
+ "timeoutMsPerExecution",
222
+ "maximumOutputBytes"
223
+ ],
224
+ "additionalProperties": false
225
+ },
226
+ "policy": {
227
+ "type": "object",
228
+ "properties": {
229
+ "policyVersion": {
230
+ "type": "string",
231
+ "const": "1.0.0"
232
+ },
233
+ "requiredAttempts": {
234
+ "type": "integer",
235
+ "minimum": 1,
236
+ "maximum": 1000
237
+ },
238
+ "minimumTargetWeightPermille": {
239
+ "type": "integer",
240
+ "minimum": 1,
241
+ "maximum": 1000
242
+ },
243
+ "maximumSelectedCandidates": {
244
+ "type": "integer",
245
+ "minimum": 1,
246
+ "maximum": 1000
247
+ },
248
+ "acceptedTargetOutcomes": {
249
+ "minItems": 1,
250
+ "maxItems": 1,
251
+ "type": "array",
252
+ "items": {
253
+ "$ref": "#/$defs/__schema8"
254
+ }
255
+ }
256
+ },
257
+ "required": [
258
+ "policyVersion",
259
+ "requiredAttempts",
260
+ "minimumTargetWeightPermille",
261
+ "maximumSelectedCandidates",
262
+ "acceptedTargetOutcomes"
263
+ ],
264
+ "additionalProperties": false
265
+ },
266
+ "worlds": {
267
+ "minItems": 1,
268
+ "maxItems": 1000,
269
+ "type": "array",
270
+ "items": {
271
+ "$ref": "#/$defs/__schema9"
272
+ }
273
+ },
274
+ "candidates": {
275
+ "minItems": 1,
276
+ "maxItems": 1000,
277
+ "type": "array",
278
+ "items": {
279
+ "$ref": "#/$defs/__schema12"
280
+ }
281
+ }
282
+ },
283
+ "required": [
284
+ "schemaVersion",
285
+ "repository",
286
+ "adapter",
287
+ "isolation",
288
+ "candidateRoots",
289
+ "budgets",
290
+ "policy",
291
+ "worlds",
292
+ "candidates"
293
+ ],
294
+ "additionalProperties": false
295
+ },
296
+ "__schema2": {
297
+ "type": "string",
298
+ "minLength": 1,
299
+ "maxLength": 512
300
+ },
301
+ "__schema3": {
302
+ "type": "string",
303
+ "minLength": 1
304
+ },
305
+ "__schema4": {
306
+ "type": "string"
307
+ },
308
+ "__schema5": {
309
+ "type": "string"
310
+ },
311
+ "__schema6": {
312
+ "type": "string",
313
+ "minLength": 1,
314
+ "maxLength": 128,
315
+ "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]_)).+$"
316
+ },
317
+ "__schema7": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 512
321
+ },
322
+ "__schema8": {
323
+ "type": "string",
324
+ "const": "ASSERTION_FAILURE"
325
+ },
326
+ "__schema9": {
327
+ "type": "object",
328
+ "properties": {
329
+ "id": {
330
+ "$ref": "#/$defs/__schema10"
331
+ },
332
+ "kind": {
333
+ "type": "string",
334
+ "enum": ["REFERENCE", "TARGET", "NEUTRAL"]
335
+ },
336
+ "required": {
337
+ "type": "boolean"
338
+ },
339
+ "weight": {
340
+ "type": "integer",
341
+ "minimum": 0,
342
+ "maximum": 1000000
343
+ },
344
+ "provenance": {
345
+ "type": "string",
346
+ "minLength": 1,
347
+ "maxLength": 1024
348
+ },
349
+ "files": {
350
+ "maxItems": 1000,
351
+ "type": "array",
352
+ "items": {
353
+ "$ref": "#/$defs/__schema11"
354
+ }
355
+ }
356
+ },
357
+ "required": ["id", "kind", "required", "weight", "provenance", "files"],
358
+ "additionalProperties": false
359
+ },
360
+ "__schema10": {
361
+ "type": "string",
362
+ "minLength": 1,
363
+ "maxLength": 128,
364
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
365
+ },
366
+ "__schema11": {
367
+ "type": "object",
368
+ "properties": {
369
+ "path": {
370
+ "type": "string",
371
+ "minLength": 1,
372
+ "maxLength": 512
373
+ },
374
+ "content": {
375
+ "type": "string",
376
+ "maxLength": 1048576
377
+ }
378
+ },
379
+ "required": ["path", "content"],
380
+ "additionalProperties": false
381
+ },
382
+ "__schema12": {
383
+ "type": "object",
384
+ "properties": {
385
+ "id": {
386
+ "$ref": "#/$defs/__schema10"
387
+ },
388
+ "files": {
389
+ "minItems": 1,
390
+ "maxItems": 100,
391
+ "type": "array",
392
+ "items": {
393
+ "$ref": "#/$defs/__schema11"
394
+ }
395
+ }
396
+ },
397
+ "required": ["id", "files"],
398
+ "additionalProperties": false
399
+ },
400
+ "__schema13": {
401
+ "type": "object",
402
+ "properties": {
403
+ "benchmarkVersion": {
404
+ "type": "string",
405
+ "const": "1.0.0"
406
+ },
407
+ "minimumMeasuredSamplesPerRegime": {
408
+ "type": "integer",
409
+ "minimum": 1,
410
+ "maximum": 1000
411
+ },
412
+ "coldMeasuredSamples": {
413
+ "type": "integer",
414
+ "minimum": 1,
415
+ "maximum": 1000
416
+ },
417
+ "warmupSamples": {
418
+ "type": "integer",
419
+ "minimum": 1,
420
+ "maximum": 1000
421
+ },
422
+ "warmMeasuredSamples": {
423
+ "type": "integer",
424
+ "minimum": 1,
425
+ "maximum": 1000
426
+ },
427
+ "maximumExecutions": {
428
+ "type": "integer",
429
+ "minimum": 1,
430
+ "maximum": 1000000
431
+ }
432
+ },
433
+ "required": [
434
+ "benchmarkVersion",
435
+ "minimumMeasuredSamplesPerRegime",
436
+ "coldMeasuredSamples",
437
+ "warmupSamples",
438
+ "warmMeasuredSamples",
439
+ "maximumExecutions"
440
+ ],
441
+ "additionalProperties": false
442
+ },
443
+ "__schema14": {
444
+ "type": "object",
445
+ "properties": {
446
+ "protocolVersion": {
447
+ "type": "string",
448
+ "const": "1.0.0"
449
+ },
450
+ "clock": {
451
+ "type": "string",
452
+ "const": "MONOTONIC"
453
+ },
454
+ "unit": {
455
+ "type": "string",
456
+ "const": "MICROSECOND"
457
+ },
458
+ "quantile": {
459
+ "type": "string",
460
+ "const": "NEAREST_RANK"
461
+ },
462
+ "phases": {
463
+ "type": "array",
464
+ "prefixItems": [
465
+ {
466
+ "type": "string",
467
+ "const": "PREPARATION"
468
+ },
469
+ {
470
+ "type": "string",
471
+ "const": "STARTUP"
472
+ },
473
+ {
474
+ "type": "string",
475
+ "const": "COMPILE_OR_COLLECTION"
476
+ },
477
+ {
478
+ "type": "string",
479
+ "const": "EXECUTION"
480
+ }
481
+ ]
482
+ },
483
+ "coldDefinition": {
484
+ "type": "string",
485
+ "const": "FRESH_WORKSPACE_FRESH_PROCESS_RESET_DECLARED_CACHES"
486
+ },
487
+ "warmDefinition": {
488
+ "type": "string",
489
+ "const": "FRESH_WORKSPACE_FRESH_PROCESS_RETAIN_DECLARED_CACHES"
490
+ }
491
+ },
492
+ "required": [
493
+ "protocolVersion",
494
+ "clock",
495
+ "unit",
496
+ "quantile",
497
+ "phases",
498
+ "coldDefinition",
499
+ "warmDefinition"
500
+ ],
501
+ "additionalProperties": false
502
+ },
503
+ "__schema15": {
504
+ "type": "object",
505
+ "properties": {
506
+ "environmentId": {
507
+ "$ref": "#/$defs/__schema10"
508
+ },
509
+ "logicalCpuLimit": {
510
+ "anyOf": [
511
+ {
512
+ "type": "integer",
513
+ "minimum": 1,
514
+ "maximum": 1000000
515
+ },
516
+ {
517
+ "type": "null"
518
+ }
519
+ ]
520
+ },
521
+ "memoryLimitBytes": {
522
+ "anyOf": [
523
+ {
524
+ "type": "integer",
525
+ "minimum": 1,
526
+ "maximum": 9007199254740991
527
+ },
528
+ {
529
+ "type": "null"
530
+ }
531
+ ]
532
+ }
533
+ },
534
+ "required": ["environmentId", "logicalCpuLimit", "memoryLimitBytes"],
535
+ "additionalProperties": false
536
+ },
537
+ "__schema16": {
538
+ "type": "object",
539
+ "properties": {
540
+ "phaseReporter": {
541
+ "type": "string",
542
+ "minLength": 1,
543
+ "maxLength": 512
544
+ },
545
+ "dependencyGraph": {
546
+ "minItems": 1,
547
+ "maxItems": 100,
548
+ "type": "array",
549
+ "items": {
550
+ "$ref": "#/$defs/__schema17"
551
+ }
552
+ }
553
+ },
554
+ "required": ["phaseReporter", "dependencyGraph"],
555
+ "additionalProperties": false
556
+ },
557
+ "__schema17": {
558
+ "type": "string",
559
+ "minLength": 1,
560
+ "maxLength": 512
561
+ }
562
+ },
563
+ "$id": "https://testforge.dev/schemas/agentic-benchmark-acquisition-request.v1.json"
564
+ }