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,1338 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "benchmarkArtifact": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "policy": {
12
+ "$ref": "#/$defs/__schema19"
13
+ }
14
+ },
15
+ "required": ["schemaVersion", "benchmarkArtifact", "policy"],
16
+ "additionalProperties": false,
17
+ "title": "TestForge Agentic Test Profile v2 request",
18
+ "description": "A replay-valid benchmark artifact and an exact warm-cost profile policy.",
19
+ "$defs": {
20
+ "__schema0": {
21
+ "type": "string",
22
+ "const": "2.0.0"
23
+ },
24
+ "__schema1": {
25
+ "type": "object",
26
+ "properties": {
27
+ "schemaVersion": {
28
+ "type": "string",
29
+ "const": "1.0.0"
30
+ },
31
+ "sourceManifest": {
32
+ "type": "object",
33
+ "properties": {
34
+ "schemaVersion": {
35
+ "type": "string",
36
+ "const": "1.0.0"
37
+ },
38
+ "repositoryDigest": {
39
+ "anyOf": [
40
+ {
41
+ "$ref": "#/$defs/__schema2"
42
+ },
43
+ {
44
+ "type": "string",
45
+ "const": "invalid"
46
+ }
47
+ ]
48
+ },
49
+ "evidenceContext": {
50
+ "type": "object",
51
+ "properties": {
52
+ "engine": {
53
+ "type": "object",
54
+ "properties": {
55
+ "name": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "maxLength": 128
59
+ },
60
+ "version": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "maxLength": 128
64
+ }
65
+ },
66
+ "required": ["name", "version"],
67
+ "additionalProperties": false
68
+ },
69
+ "adapter": {
70
+ "type": "object",
71
+ "properties": {
72
+ "name": {
73
+ "type": "string",
74
+ "minLength": 1,
75
+ "maxLength": 128
76
+ },
77
+ "version": {
78
+ "type": "string",
79
+ "minLength": 1,
80
+ "maxLength": 128
81
+ },
82
+ "configuration": {
83
+ "$ref": "#/$defs/__schema3"
84
+ }
85
+ },
86
+ "required": ["name", "version", "configuration"],
87
+ "additionalProperties": false
88
+ },
89
+ "execution": {
90
+ "type": "object",
91
+ "properties": {
92
+ "isolation": {
93
+ "type": "string",
94
+ "minLength": 1,
95
+ "maxLength": 128
96
+ },
97
+ "environmentAllowlist": {
98
+ "maxItems": 100,
99
+ "type": "array",
100
+ "items": {
101
+ "$ref": "#/$defs/__schema4"
102
+ }
103
+ },
104
+ "budgets": {
105
+ "$ref": "#/$defs/__schema5"
106
+ },
107
+ "candidateRoots": {
108
+ "maxItems": 100,
109
+ "type": "array",
110
+ "items": {
111
+ "$ref": "#/$defs/__schema6"
112
+ }
113
+ }
114
+ },
115
+ "required": ["isolation", "environmentAllowlist", "budgets", "candidateRoots"],
116
+ "additionalProperties": false
117
+ },
118
+ "worlds": {
119
+ "type": "array",
120
+ "items": {
121
+ "type": "object",
122
+ "properties": {
123
+ "id": {
124
+ "$ref": "#/$defs/__schema7"
125
+ },
126
+ "provenance": {
127
+ "type": "string",
128
+ "minLength": 1,
129
+ "maxLength": 1024
130
+ },
131
+ "digest": {
132
+ "$ref": "#/$defs/__schema2"
133
+ }
134
+ },
135
+ "required": ["id", "provenance", "digest"],
136
+ "additionalProperties": false
137
+ }
138
+ }
139
+ },
140
+ "required": ["engine", "adapter", "execution", "worlds"],
141
+ "additionalProperties": false
142
+ },
143
+ "policy": {
144
+ "anyOf": [
145
+ {
146
+ "type": "object",
147
+ "properties": {
148
+ "policyVersion": {
149
+ "type": "string",
150
+ "const": "1.0.0"
151
+ },
152
+ "requiredAttempts": {
153
+ "type": "integer",
154
+ "minimum": 1,
155
+ "maximum": 1000
156
+ },
157
+ "minimumTargetWeightPermille": {
158
+ "type": "integer",
159
+ "minimum": 1,
160
+ "maximum": 1000
161
+ },
162
+ "maximumSelectedCandidates": {
163
+ "type": "integer",
164
+ "minimum": 1,
165
+ "maximum": 1000
166
+ },
167
+ "acceptedTargetOutcomes": {
168
+ "minItems": 1,
169
+ "maxItems": 1,
170
+ "type": "array",
171
+ "items": {
172
+ "$ref": "#/$defs/__schema8"
173
+ }
174
+ }
175
+ },
176
+ "required": [
177
+ "policyVersion",
178
+ "requiredAttempts",
179
+ "minimumTargetWeightPermille",
180
+ "maximumSelectedCandidates",
181
+ "acceptedTargetOutcomes"
182
+ ],
183
+ "additionalProperties": false
184
+ },
185
+ {
186
+ "type": "object",
187
+ "properties": {
188
+ "policyVersion": {
189
+ "type": "string",
190
+ "const": "invalid"
191
+ },
192
+ "requiredAttempts": {
193
+ "type": "number",
194
+ "const": 1
195
+ },
196
+ "minimumTargetWeightPermille": {
197
+ "type": "number",
198
+ "const": 1000
199
+ },
200
+ "maximumSelectedCandidates": {
201
+ "type": "number",
202
+ "const": 0
203
+ },
204
+ "acceptedTargetOutcomes": {
205
+ "maxItems": 0,
206
+ "type": "array",
207
+ "items": {
208
+ "$ref": "#/$defs/__schema9"
209
+ }
210
+ }
211
+ },
212
+ "required": [
213
+ "policyVersion",
214
+ "requiredAttempts",
215
+ "minimumTargetWeightPermille",
216
+ "maximumSelectedCandidates",
217
+ "acceptedTargetOutcomes"
218
+ ],
219
+ "additionalProperties": false
220
+ }
221
+ ]
222
+ },
223
+ "worlds": {
224
+ "type": "array",
225
+ "items": {
226
+ "type": "object",
227
+ "properties": {
228
+ "id": {
229
+ "$ref": "#/$defs/__schema7"
230
+ },
231
+ "kind": {
232
+ "type": "string",
233
+ "enum": ["REFERENCE", "TARGET", "NEUTRAL"]
234
+ },
235
+ "required": {
236
+ "type": "boolean"
237
+ },
238
+ "weight": {
239
+ "type": "integer",
240
+ "minimum": 0,
241
+ "maximum": 1000000
242
+ }
243
+ },
244
+ "required": ["id", "kind", "required", "weight"],
245
+ "additionalProperties": false
246
+ }
247
+ },
248
+ "candidates": {
249
+ "type": "array",
250
+ "items": {
251
+ "type": "object",
252
+ "properties": {
253
+ "id": {
254
+ "$ref": "#/$defs/__schema7"
255
+ },
256
+ "digest": {
257
+ "$ref": "#/$defs/__schema2"
258
+ },
259
+ "sizeBytes": {
260
+ "type": "integer",
261
+ "minimum": 0,
262
+ "maximum": 9007199254740991
263
+ },
264
+ "status": {
265
+ "type": "string",
266
+ "enum": ["ELIGIBLE", "UNSTABLE", "INCONCLUSIVE", "INVALID", "WEAK_ORACLE"]
267
+ },
268
+ "killedTargetIds": {
269
+ "type": "array",
270
+ "items": {
271
+ "$ref": "#/$defs/__schema7"
272
+ }
273
+ },
274
+ "targetWeightKilled": {
275
+ "type": "integer",
276
+ "minimum": 0,
277
+ "maximum": 9007199254740991
278
+ },
279
+ "gates": {
280
+ "type": "array",
281
+ "items": {
282
+ "type": "object",
283
+ "properties": {
284
+ "name": {
285
+ "type": "string",
286
+ "enum": [
287
+ "COMPLETENESS",
288
+ "STABILITY",
289
+ "DISCOVERY",
290
+ "REFERENCE",
291
+ "NEUTRAL",
292
+ "TARGET_STRENGTH"
293
+ ]
294
+ },
295
+ "status": {
296
+ "type": "string",
297
+ "enum": ["PASSED", "FAILED", "NOT_RUN"]
298
+ },
299
+ "evidenceRunIds": {
300
+ "type": "array",
301
+ "items": {
302
+ "type": "string",
303
+ "minLength": 1,
304
+ "maxLength": 512
305
+ }
306
+ },
307
+ "reasonCodes": {
308
+ "type": "array",
309
+ "items": {
310
+ "$ref": "#/$defs/__schema10"
311
+ }
312
+ }
313
+ },
314
+ "required": ["name", "status", "evidenceRunIds", "reasonCodes"],
315
+ "additionalProperties": false
316
+ }
317
+ },
318
+ "reasonCodes": {
319
+ "type": "array",
320
+ "items": {
321
+ "$ref": "#/$defs/__schema10"
322
+ }
323
+ }
324
+ },
325
+ "required": [
326
+ "id",
327
+ "digest",
328
+ "sizeBytes",
329
+ "status",
330
+ "killedTargetIds",
331
+ "targetWeightKilled",
332
+ "gates",
333
+ "reasonCodes"
334
+ ],
335
+ "additionalProperties": false
336
+ }
337
+ },
338
+ "observations": {
339
+ "type": "array",
340
+ "items": {
341
+ "type": "object",
342
+ "properties": {
343
+ "runId": {
344
+ "type": "string",
345
+ "minLength": 1,
346
+ "maxLength": 512
347
+ },
348
+ "candidateId": {
349
+ "anyOf": [
350
+ {
351
+ "$ref": "#/$defs/__schema7"
352
+ },
353
+ {
354
+ "type": "null"
355
+ }
356
+ ]
357
+ },
358
+ "worldId": {
359
+ "$ref": "#/$defs/__schema7"
360
+ },
361
+ "attempt": {
362
+ "type": "integer",
363
+ "minimum": 1,
364
+ "maximum": 9007199254740991
365
+ },
366
+ "outcome": {
367
+ "type": "string",
368
+ "enum": [
369
+ "PASS",
370
+ "ASSERTION_FAILURE",
371
+ "COLLECTION_FAILURE",
372
+ "COMPILE_FAILURE",
373
+ "PROCESS_CRASH",
374
+ "TIMEOUT",
375
+ "INFRA_ERROR",
376
+ "NO_TEST_DISCOVERED"
377
+ ]
378
+ },
379
+ "testsDiscovered": {
380
+ "type": "integer",
381
+ "minimum": 0,
382
+ "maximum": 9007199254740991
383
+ },
384
+ "candidateTestsDiscovered": {
385
+ "type": "integer",
386
+ "minimum": 0,
387
+ "maximum": 9007199254740991
388
+ },
389
+ "attributed": {
390
+ "type": "boolean"
391
+ },
392
+ "durationMs": {
393
+ "type": "number",
394
+ "minimum": 0
395
+ },
396
+ "exitCode": {
397
+ "anyOf": [
398
+ {
399
+ "type": "integer",
400
+ "minimum": 0,
401
+ "maximum": 9007199254740991
402
+ },
403
+ {
404
+ "type": "null"
405
+ }
406
+ ]
407
+ },
408
+ "stdoutDigest": {
409
+ "$ref": "#/$defs/__schema2"
410
+ },
411
+ "stderrDigest": {
412
+ "$ref": "#/$defs/__schema2"
413
+ }
414
+ },
415
+ "required": [
416
+ "runId",
417
+ "candidateId",
418
+ "worldId",
419
+ "attempt",
420
+ "outcome",
421
+ "testsDiscovered",
422
+ "candidateTestsDiscovered",
423
+ "attributed"
424
+ ],
425
+ "additionalProperties": false
426
+ }
427
+ },
428
+ "decision": {
429
+ "type": "object",
430
+ "properties": {
431
+ "status": {
432
+ "type": "string",
433
+ "enum": ["VERIFIED", "REJECTED", "INCONCLUSIVE", "ENGINE_ERROR"]
434
+ },
435
+ "selectedCandidateIds": {
436
+ "type": "array",
437
+ "items": {
438
+ "$ref": "#/$defs/__schema7"
439
+ }
440
+ },
441
+ "reasonCodes": {
442
+ "type": "array",
443
+ "items": {
444
+ "$ref": "#/$defs/__schema10"
445
+ }
446
+ }
447
+ },
448
+ "required": ["status", "selectedCandidateIds", "reasonCodes"],
449
+ "additionalProperties": false
450
+ },
451
+ "decisionDigest": {
452
+ "$ref": "#/$defs/__schema2"
453
+ },
454
+ "artifactDigest": {
455
+ "$ref": "#/$defs/__schema2"
456
+ },
457
+ "adapter": {
458
+ "oneOf": [
459
+ {
460
+ "type": "object",
461
+ "properties": {
462
+ "kind": {
463
+ "type": "string",
464
+ "const": "node-test"
465
+ }
466
+ },
467
+ "required": ["kind"],
468
+ "additionalProperties": false
469
+ },
470
+ {
471
+ "type": "object",
472
+ "properties": {
473
+ "kind": {
474
+ "type": "string",
475
+ "const": "testforge-command"
476
+ },
477
+ "protocolVersion": {
478
+ "type": "string",
479
+ "const": "1.0.0"
480
+ }
481
+ },
482
+ "required": ["kind", "protocolVersion"],
483
+ "additionalProperties": false
484
+ }
485
+ ]
486
+ },
487
+ "isolation": {
488
+ "type": "object",
489
+ "properties": {
490
+ "kind": {
491
+ "type": "string",
492
+ "const": "trusted-local"
493
+ },
494
+ "level": {
495
+ "type": "string",
496
+ "const": "UNSANDBOXED"
497
+ },
498
+ "acknowledgedUnsafeExecution": {
499
+ "type": "boolean",
500
+ "const": true
501
+ }
502
+ },
503
+ "required": ["kind", "level", "acknowledgedUnsafeExecution"],
504
+ "additionalProperties": false
505
+ },
506
+ "limitations": {
507
+ "type": "array",
508
+ "items": {
509
+ "type": "string",
510
+ "minLength": 1,
511
+ "maxLength": 2048
512
+ }
513
+ }
514
+ },
515
+ "required": [
516
+ "schemaVersion",
517
+ "repositoryDigest",
518
+ "evidenceContext",
519
+ "policy",
520
+ "worlds",
521
+ "candidates",
522
+ "observations",
523
+ "decision",
524
+ "decisionDigest",
525
+ "artifactDigest",
526
+ "adapter",
527
+ "isolation",
528
+ "limitations"
529
+ ],
530
+ "additionalProperties": false
531
+ },
532
+ "sourceArtifactDigest": {
533
+ "$ref": "#/$defs/__schema2"
534
+ },
535
+ "sourceDecisionDigest": {
536
+ "$ref": "#/$defs/__schema2"
537
+ },
538
+ "referenceWorldId": {
539
+ "$ref": "#/$defs/__schema7"
540
+ },
541
+ "policy": {
542
+ "type": "object",
543
+ "properties": {
544
+ "benchmarkVersion": {
545
+ "type": "string",
546
+ "const": "1.0.0"
547
+ },
548
+ "minimumMeasuredSamplesPerRegime": {
549
+ "type": "integer",
550
+ "minimum": 1,
551
+ "maximum": 1000
552
+ },
553
+ "coldMeasuredSamples": {
554
+ "type": "integer",
555
+ "minimum": 1,
556
+ "maximum": 1000
557
+ },
558
+ "warmupSamples": {
559
+ "type": "integer",
560
+ "minimum": 1,
561
+ "maximum": 1000
562
+ },
563
+ "warmMeasuredSamples": {
564
+ "type": "integer",
565
+ "minimum": 1,
566
+ "maximum": 1000
567
+ },
568
+ "maximumExecutions": {
569
+ "type": "integer",
570
+ "minimum": 1,
571
+ "maximum": 1000000
572
+ }
573
+ },
574
+ "required": [
575
+ "benchmarkVersion",
576
+ "minimumMeasuredSamplesPerRegime",
577
+ "coldMeasuredSamples",
578
+ "warmupSamples",
579
+ "warmMeasuredSamples",
580
+ "maximumExecutions"
581
+ ],
582
+ "additionalProperties": false
583
+ },
584
+ "protocol": {
585
+ "type": "object",
586
+ "properties": {
587
+ "protocolVersion": {
588
+ "type": "string",
589
+ "const": "1.0.0"
590
+ },
591
+ "clock": {
592
+ "type": "string",
593
+ "const": "MONOTONIC"
594
+ },
595
+ "unit": {
596
+ "type": "string",
597
+ "const": "MICROSECOND"
598
+ },
599
+ "quantile": {
600
+ "type": "string",
601
+ "const": "NEAREST_RANK"
602
+ },
603
+ "phases": {
604
+ "type": "array",
605
+ "prefixItems": [
606
+ {
607
+ "type": "string",
608
+ "const": "PREPARATION"
609
+ },
610
+ {
611
+ "type": "string",
612
+ "const": "STARTUP"
613
+ },
614
+ {
615
+ "type": "string",
616
+ "const": "COMPILE_OR_COLLECTION"
617
+ },
618
+ {
619
+ "type": "string",
620
+ "const": "EXECUTION"
621
+ }
622
+ ]
623
+ },
624
+ "coldDefinition": {
625
+ "type": "string",
626
+ "const": "FRESH_WORKSPACE_FRESH_PROCESS_RESET_DECLARED_CACHES"
627
+ },
628
+ "warmDefinition": {
629
+ "type": "string",
630
+ "const": "FRESH_WORKSPACE_FRESH_PROCESS_RETAIN_DECLARED_CACHES"
631
+ }
632
+ },
633
+ "required": [
634
+ "protocolVersion",
635
+ "clock",
636
+ "unit",
637
+ "quantile",
638
+ "phases",
639
+ "coldDefinition",
640
+ "warmDefinition"
641
+ ],
642
+ "additionalProperties": false
643
+ },
644
+ "fingerprint": {
645
+ "type": "object",
646
+ "properties": {
647
+ "environmentId": {
648
+ "$ref": "#/$defs/__schema7"
649
+ },
650
+ "os": {
651
+ "type": "object",
652
+ "properties": {
653
+ "platform": {
654
+ "type": "string",
655
+ "minLength": 1,
656
+ "maxLength": 128
657
+ },
658
+ "release": {
659
+ "type": "string",
660
+ "minLength": 1,
661
+ "maxLength": 128
662
+ },
663
+ "arch": {
664
+ "type": "string",
665
+ "minLength": 1,
666
+ "maxLength": 128
667
+ }
668
+ },
669
+ "required": ["platform", "release", "arch"],
670
+ "additionalProperties": false
671
+ },
672
+ "cpu": {
673
+ "type": "object",
674
+ "properties": {
675
+ "arch": {
676
+ "type": "string",
677
+ "minLength": 1,
678
+ "maxLength": 128
679
+ },
680
+ "model": {
681
+ "type": "string",
682
+ "minLength": 1,
683
+ "maxLength": 512
684
+ },
685
+ "logicalCores": {
686
+ "type": "integer",
687
+ "minimum": 1,
688
+ "maximum": 1000000
689
+ }
690
+ },
691
+ "required": ["arch", "model", "logicalCores"],
692
+ "additionalProperties": false
693
+ },
694
+ "logicalCpuLimit": {
695
+ "anyOf": [
696
+ {
697
+ "type": "integer",
698
+ "minimum": 1,
699
+ "maximum": 1000000
700
+ },
701
+ {
702
+ "type": "null"
703
+ }
704
+ ]
705
+ },
706
+ "memoryLimitBytes": {
707
+ "anyOf": [
708
+ {
709
+ "type": "integer",
710
+ "minimum": 1,
711
+ "maximum": 9007199254740991
712
+ },
713
+ {
714
+ "type": "null"
715
+ }
716
+ ]
717
+ },
718
+ "executionBoundary": {
719
+ "type": "string",
720
+ "const": "UNSANDBOXED"
721
+ },
722
+ "tools": {
723
+ "minItems": 1,
724
+ "maxItems": 100,
725
+ "type": "array",
726
+ "items": {
727
+ "$ref": "#/$defs/__schema11"
728
+ }
729
+ },
730
+ "dependencyGraphDigest": {
731
+ "$ref": "#/$defs/__schema2"
732
+ },
733
+ "phaseReporterDigest": {
734
+ "$ref": "#/$defs/__schema2"
735
+ }
736
+ },
737
+ "required": [
738
+ "environmentId",
739
+ "os",
740
+ "cpu",
741
+ "logicalCpuLimit",
742
+ "memoryLimitBytes",
743
+ "executionBoundary",
744
+ "tools",
745
+ "dependencyGraphDigest",
746
+ "phaseReporterDigest"
747
+ ],
748
+ "additionalProperties": false
749
+ },
750
+ "policyDigest": {
751
+ "$ref": "#/$defs/__schema2"
752
+ },
753
+ "protocolDigest": {
754
+ "$ref": "#/$defs/__schema2"
755
+ },
756
+ "fingerprintDigest": {
757
+ "$ref": "#/$defs/__schema2"
758
+ },
759
+ "comparisonScopeDigest": {
760
+ "$ref": "#/$defs/__schema2"
761
+ },
762
+ "runs": {
763
+ "maxItems": 1000000,
764
+ "type": "array",
765
+ "items": {
766
+ "$ref": "#/$defs/__schema12"
767
+ }
768
+ },
769
+ "summaries": {
770
+ "minItems": 1,
771
+ "maxItems": 2000,
772
+ "type": "array",
773
+ "items": {
774
+ "$ref": "#/$defs/__schema17"
775
+ }
776
+ },
777
+ "limitations": {
778
+ "type": "array",
779
+ "items": {
780
+ "type": "string",
781
+ "minLength": 1,
782
+ "maxLength": 2048
783
+ }
784
+ },
785
+ "artifactDigest": {
786
+ "$ref": "#/$defs/__schema2"
787
+ }
788
+ },
789
+ "required": [
790
+ "schemaVersion",
791
+ "sourceManifest",
792
+ "sourceArtifactDigest",
793
+ "sourceDecisionDigest",
794
+ "referenceWorldId",
795
+ "policy",
796
+ "protocol",
797
+ "fingerprint",
798
+ "policyDigest",
799
+ "protocolDigest",
800
+ "fingerprintDigest",
801
+ "comparisonScopeDigest",
802
+ "runs",
803
+ "summaries",
804
+ "limitations",
805
+ "artifactDigest"
806
+ ],
807
+ "additionalProperties": false
808
+ },
809
+ "__schema2": {
810
+ "type": "string",
811
+ "pattern": "^sha256:[a-f0-9]{64}$"
812
+ },
813
+ "__schema3": {
814
+ "anyOf": [
815
+ {
816
+ "type": "string"
817
+ },
818
+ {
819
+ "type": "number"
820
+ },
821
+ {
822
+ "type": "boolean"
823
+ },
824
+ {
825
+ "type": "null"
826
+ },
827
+ {
828
+ "type": "array",
829
+ "items": {
830
+ "$ref": "#/$defs/__schema3"
831
+ }
832
+ },
833
+ {
834
+ "type": "object",
835
+ "propertyNames": {
836
+ "type": "string"
837
+ },
838
+ "additionalProperties": {
839
+ "$ref": "#/$defs/__schema3"
840
+ }
841
+ }
842
+ ]
843
+ },
844
+ "__schema4": {
845
+ "type": "string",
846
+ "minLength": 1,
847
+ "maxLength": 128
848
+ },
849
+ "__schema5": {
850
+ "anyOf": [
851
+ {
852
+ "type": "string"
853
+ },
854
+ {
855
+ "type": "number"
856
+ },
857
+ {
858
+ "type": "boolean"
859
+ },
860
+ {
861
+ "type": "null"
862
+ },
863
+ {
864
+ "type": "array",
865
+ "items": {
866
+ "$ref": "#/$defs/__schema5"
867
+ }
868
+ },
869
+ {
870
+ "type": "object",
871
+ "propertyNames": {
872
+ "type": "string"
873
+ },
874
+ "additionalProperties": {
875
+ "$ref": "#/$defs/__schema5"
876
+ }
877
+ }
878
+ ]
879
+ },
880
+ "__schema6": {
881
+ "type": "string",
882
+ "minLength": 1,
883
+ "maxLength": 512
884
+ },
885
+ "__schema7": {
886
+ "type": "string",
887
+ "minLength": 1,
888
+ "maxLength": 128,
889
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
890
+ },
891
+ "__schema8": {
892
+ "type": "string",
893
+ "const": "ASSERTION_FAILURE"
894
+ },
895
+ "__schema9": {
896
+ "type": "string",
897
+ "const": "ASSERTION_FAILURE"
898
+ },
899
+ "__schema10": {
900
+ "type": "string",
901
+ "minLength": 1,
902
+ "maxLength": 128,
903
+ "pattern": "^[A-Z][A-Z0-9_]*$"
904
+ },
905
+ "__schema11": {
906
+ "type": "object",
907
+ "properties": {
908
+ "role": {
909
+ "$ref": "#/$defs/__schema7"
910
+ },
911
+ "name": {
912
+ "type": "string",
913
+ "minLength": 1,
914
+ "maxLength": 256
915
+ },
916
+ "version": {
917
+ "type": "string",
918
+ "minLength": 1,
919
+ "maxLength": 256
920
+ },
921
+ "digest": {
922
+ "$ref": "#/$defs/__schema2"
923
+ },
924
+ "configurationDigest": {
925
+ "$ref": "#/$defs/__schema2"
926
+ }
927
+ },
928
+ "required": ["role", "name", "version", "digest", "configurationDigest"],
929
+ "additionalProperties": false
930
+ },
931
+ "__schema12": {
932
+ "oneOf": [
933
+ {
934
+ "type": "object",
935
+ "properties": {
936
+ "candidateId": {
937
+ "$ref": "#/$defs/__schema7"
938
+ },
939
+ "candidateDigest": {
940
+ "$ref": "#/$defs/__schema2"
941
+ },
942
+ "regime": {
943
+ "$ref": "#/$defs/__schema13"
944
+ },
945
+ "role": {
946
+ "$ref": "#/$defs/__schema14"
947
+ },
948
+ "ordinal": {
949
+ "$ref": "#/$defs/__schema15"
950
+ },
951
+ "status": {
952
+ "type": "string",
953
+ "const": "COMPLETE"
954
+ },
955
+ "outcome": {
956
+ "type": "string",
957
+ "const": "PASS"
958
+ },
959
+ "phases": {
960
+ "minItems": 4,
961
+ "maxItems": 4,
962
+ "type": "array",
963
+ "items": {
964
+ "$ref": "#/$defs/__schema16"
965
+ }
966
+ },
967
+ "totalUs": {
968
+ "type": "integer",
969
+ "minimum": 0,
970
+ "maximum": 9007199254740991
971
+ },
972
+ "cpuTimeUs": {
973
+ "type": "integer",
974
+ "minimum": 0,
975
+ "maximum": 9007199254740991
976
+ }
977
+ },
978
+ "required": [
979
+ "candidateId",
980
+ "candidateDigest",
981
+ "regime",
982
+ "role",
983
+ "ordinal",
984
+ "status",
985
+ "outcome",
986
+ "phases",
987
+ "totalUs"
988
+ ],
989
+ "additionalProperties": false
990
+ },
991
+ {
992
+ "type": "object",
993
+ "properties": {
994
+ "candidateId": {
995
+ "$ref": "#/$defs/__schema7"
996
+ },
997
+ "candidateDigest": {
998
+ "$ref": "#/$defs/__schema2"
999
+ },
1000
+ "regime": {
1001
+ "$ref": "#/$defs/__schema13"
1002
+ },
1003
+ "role": {
1004
+ "$ref": "#/$defs/__schema14"
1005
+ },
1006
+ "ordinal": {
1007
+ "$ref": "#/$defs/__schema15"
1008
+ },
1009
+ "status": {
1010
+ "type": "string",
1011
+ "const": "INCOMPLETE"
1012
+ },
1013
+ "outcome": {
1014
+ "type": "string",
1015
+ "enum": [
1016
+ "ASSERTION_FAILURE",
1017
+ "COLLECTION_FAILURE",
1018
+ "COMPILE_FAILURE",
1019
+ "PROCESS_CRASH",
1020
+ "TIMEOUT",
1021
+ "INFRA_ERROR",
1022
+ "NO_TEST_DISCOVERED"
1023
+ ]
1024
+ },
1025
+ "phases": {
1026
+ "type": "null"
1027
+ },
1028
+ "totalUs": {
1029
+ "type": "null"
1030
+ },
1031
+ "cpuTimeUs": {
1032
+ "type": "null"
1033
+ }
1034
+ },
1035
+ "required": [
1036
+ "candidateId",
1037
+ "candidateDigest",
1038
+ "regime",
1039
+ "role",
1040
+ "ordinal",
1041
+ "status",
1042
+ "outcome",
1043
+ "phases",
1044
+ "totalUs",
1045
+ "cpuTimeUs"
1046
+ ],
1047
+ "additionalProperties": false
1048
+ }
1049
+ ]
1050
+ },
1051
+ "__schema13": {
1052
+ "type": "string",
1053
+ "enum": ["COLD", "WARM"]
1054
+ },
1055
+ "__schema14": {
1056
+ "type": "string",
1057
+ "enum": ["WARMUP", "MEASUREMENT"]
1058
+ },
1059
+ "__schema15": {
1060
+ "type": "integer",
1061
+ "minimum": 1,
1062
+ "maximum": 1000000
1063
+ },
1064
+ "__schema16": {
1065
+ "type": "object",
1066
+ "properties": {
1067
+ "phase": {
1068
+ "type": "string",
1069
+ "enum": ["PREPARATION", "STARTUP", "COMPILE_OR_COLLECTION", "EXECUTION"]
1070
+ },
1071
+ "durationUs": {
1072
+ "type": "integer",
1073
+ "minimum": 0,
1074
+ "maximum": 9007199254740991
1075
+ }
1076
+ },
1077
+ "required": ["phase", "durationUs"],
1078
+ "additionalProperties": false
1079
+ },
1080
+ "__schema17": {
1081
+ "type": "object",
1082
+ "properties": {
1083
+ "candidateId": {
1084
+ "$ref": "#/$defs/__schema7"
1085
+ },
1086
+ "candidateDigest": {
1087
+ "$ref": "#/$defs/__schema2"
1088
+ },
1089
+ "regime": {
1090
+ "type": "string",
1091
+ "enum": ["COLD", "WARM"]
1092
+ },
1093
+ "status": {
1094
+ "type": "string",
1095
+ "enum": ["MEASURED", "INSUFFICIENT_SAMPLES", "OBSERVED_RUN_FAILURE"]
1096
+ },
1097
+ "counters": {
1098
+ "type": "object",
1099
+ "properties": {
1100
+ "planned": {
1101
+ "type": "integer",
1102
+ "minimum": 1,
1103
+ "maximum": 1000
1104
+ },
1105
+ "recorded": {
1106
+ "type": "integer",
1107
+ "minimum": 0,
1108
+ "maximum": 1000
1109
+ },
1110
+ "accepted": {
1111
+ "type": "integer",
1112
+ "minimum": 0,
1113
+ "maximum": 1000
1114
+ },
1115
+ "failed": {
1116
+ "type": "integer",
1117
+ "minimum": 0,
1118
+ "maximum": 2000
1119
+ },
1120
+ "warmup": {
1121
+ "type": "integer",
1122
+ "minimum": 0,
1123
+ "maximum": 1000
1124
+ }
1125
+ },
1126
+ "required": ["planned", "recorded", "accepted", "failed", "warmup"],
1127
+ "additionalProperties": false
1128
+ },
1129
+ "wall": {
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "total": {
1133
+ "anyOf": [
1134
+ {
1135
+ "$ref": "#/$defs/__schema18"
1136
+ },
1137
+ {
1138
+ "type": "null"
1139
+ }
1140
+ ]
1141
+ },
1142
+ "phases": {
1143
+ "type": "object",
1144
+ "properties": {
1145
+ "PREPARATION": {
1146
+ "anyOf": [
1147
+ {
1148
+ "$ref": "#/$defs/__schema18"
1149
+ },
1150
+ {
1151
+ "type": "null"
1152
+ }
1153
+ ]
1154
+ },
1155
+ "STARTUP": {
1156
+ "anyOf": [
1157
+ {
1158
+ "$ref": "#/$defs/__schema18"
1159
+ },
1160
+ {
1161
+ "type": "null"
1162
+ }
1163
+ ]
1164
+ },
1165
+ "COMPILE_OR_COLLECTION": {
1166
+ "anyOf": [
1167
+ {
1168
+ "$ref": "#/$defs/__schema18"
1169
+ },
1170
+ {
1171
+ "type": "null"
1172
+ }
1173
+ ]
1174
+ },
1175
+ "EXECUTION": {
1176
+ "anyOf": [
1177
+ {
1178
+ "$ref": "#/$defs/__schema18"
1179
+ },
1180
+ {
1181
+ "type": "null"
1182
+ }
1183
+ ]
1184
+ }
1185
+ },
1186
+ "required": ["PREPARATION", "STARTUP", "COMPILE_OR_COLLECTION", "EXECUTION"],
1187
+ "additionalProperties": false
1188
+ }
1189
+ },
1190
+ "required": ["total", "phases"],
1191
+ "additionalProperties": false
1192
+ },
1193
+ "cpu": {
1194
+ "type": "object",
1195
+ "properties": {
1196
+ "availability": {
1197
+ "type": "string",
1198
+ "enum": ["UNAVAILABLE", "PARTIAL", "COMPLETE"]
1199
+ },
1200
+ "quantiles": {
1201
+ "anyOf": [
1202
+ {
1203
+ "$ref": "#/$defs/__schema18"
1204
+ },
1205
+ {
1206
+ "type": "null"
1207
+ }
1208
+ ]
1209
+ }
1210
+ },
1211
+ "required": ["availability", "quantiles"],
1212
+ "additionalProperties": false
1213
+ }
1214
+ },
1215
+ "required": ["candidateId", "candidateDigest", "regime", "status", "counters", "wall", "cpu"],
1216
+ "additionalProperties": false
1217
+ },
1218
+ "__schema18": {
1219
+ "type": "object",
1220
+ "properties": {
1221
+ "minimumUs": {
1222
+ "type": "integer",
1223
+ "minimum": 0,
1224
+ "maximum": 9007199254740991
1225
+ },
1226
+ "p50Us": {
1227
+ "type": "integer",
1228
+ "minimum": 0,
1229
+ "maximum": 9007199254740991
1230
+ },
1231
+ "p95Us": {
1232
+ "type": "integer",
1233
+ "minimum": 0,
1234
+ "maximum": 9007199254740991
1235
+ },
1236
+ "maximumUs": {
1237
+ "type": "integer",
1238
+ "minimum": 0,
1239
+ "maximum": 9007199254740991
1240
+ }
1241
+ },
1242
+ "required": ["minimumUs", "p50Us", "p95Us", "maximumUs"],
1243
+ "additionalProperties": false
1244
+ },
1245
+ "__schema19": {
1246
+ "type": "object",
1247
+ "properties": {
1248
+ "profileVersion": {
1249
+ "type": "string",
1250
+ "const": "2.0.0"
1251
+ },
1252
+ "profileId": {
1253
+ "type": "string",
1254
+ "minLength": 1,
1255
+ "maxLength": 256
1256
+ },
1257
+ "mode": {
1258
+ "type": "string",
1259
+ "const": "HARDENING"
1260
+ },
1261
+ "requiredComparisonScopeDigest": {
1262
+ "$ref": "#/$defs/__schema2"
1263
+ },
1264
+ "costBasis": {
1265
+ "type": "object",
1266
+ "properties": {
1267
+ "regime": {
1268
+ "type": "string",
1269
+ "const": "WARM"
1270
+ },
1271
+ "measure": {
1272
+ "type": "string",
1273
+ "const": "WALL"
1274
+ },
1275
+ "aggregation": {
1276
+ "type": "string",
1277
+ "const": "TOTAL"
1278
+ },
1279
+ "statistic": {
1280
+ "type": "string",
1281
+ "const": "P95"
1282
+ },
1283
+ "unit": {
1284
+ "type": "string",
1285
+ "const": "MICROSECOND"
1286
+ },
1287
+ "portfolioAggregation": {
1288
+ "type": "string",
1289
+ "const": "SUM_OF_INDIVIDUAL_P95"
1290
+ }
1291
+ },
1292
+ "required": [
1293
+ "regime",
1294
+ "measure",
1295
+ "aggregation",
1296
+ "statistic",
1297
+ "unit",
1298
+ "portfolioAggregation"
1299
+ ],
1300
+ "additionalProperties": false
1301
+ },
1302
+ "lanes": {
1303
+ "minItems": 1,
1304
+ "maxItems": 100,
1305
+ "type": "array",
1306
+ "items": {
1307
+ "$ref": "#/$defs/__schema20"
1308
+ }
1309
+ }
1310
+ },
1311
+ "required": [
1312
+ "profileVersion",
1313
+ "profileId",
1314
+ "mode",
1315
+ "requiredComparisonScopeDigest",
1316
+ "costBasis",
1317
+ "lanes"
1318
+ ],
1319
+ "additionalProperties": false
1320
+ },
1321
+ "__schema20": {
1322
+ "type": "object",
1323
+ "properties": {
1324
+ "id": {
1325
+ "$ref": "#/$defs/__schema7"
1326
+ },
1327
+ "maximumWarmTotalWallP95Us": {
1328
+ "type": "integer",
1329
+ "minimum": 1,
1330
+ "maximum": 9007199254740991
1331
+ }
1332
+ },
1333
+ "required": ["id", "maximumWarmTotalWallP95Us"],
1334
+ "additionalProperties": false
1335
+ }
1336
+ },
1337
+ "$id": "https://testforge.dev/schemas/agentic-profile-request.v2.json"
1338
+ }