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,58 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "valid": {
6
+ "type": "boolean"
7
+ },
8
+ "schemaValid": {
9
+ "type": "boolean"
10
+ },
11
+ "externalTrustAnchorValid": {
12
+ "type": "boolean"
13
+ },
14
+ "externalCommitmentAnchorValid": {
15
+ "type": "boolean"
16
+ },
17
+ "commitmentDigestValid": {
18
+ "type": "boolean"
19
+ },
20
+ "caseSetValid": {
21
+ "type": "boolean"
22
+ },
23
+ "commitmentSignaturesValid": {
24
+ "type": "boolean"
25
+ },
26
+ "principalsDistinct": {
27
+ "type": "boolean"
28
+ },
29
+ "revealValid": {
30
+ "type": "boolean"
31
+ },
32
+ "finalSeedDigestValid": {
33
+ "type": "boolean"
34
+ },
35
+ "allocationReplayValid": {
36
+ "type": "boolean"
37
+ },
38
+ "allocationBindingValid": {
39
+ "type": "boolean"
40
+ }
41
+ },
42
+ "required": [
43
+ "valid",
44
+ "schemaValid",
45
+ "externalTrustAnchorValid",
46
+ "externalCommitmentAnchorValid",
47
+ "commitmentDigestValid",
48
+ "caseSetValid",
49
+ "commitmentSignaturesValid",
50
+ "principalsDistinct",
51
+ "revealValid",
52
+ "finalSeedDigestValid",
53
+ "allocationReplayValid",
54
+ "allocationBindingValid"
55
+ ],
56
+ "additionalProperties": false,
57
+ "$id": "https://testforge.dev/schemas/agentic-corpus-allocation-commitment-replay-result.v1.json"
58
+ }
@@ -0,0 +1,141 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "string",
7
+ "const": "1.0.0"
8
+ },
9
+ "commitmentVersion": {
10
+ "type": "string",
11
+ "const": "1.0.0"
12
+ },
13
+ "commitmentId": {
14
+ "$ref": "#/$defs/__schema0"
15
+ },
16
+ "allocationId": {
17
+ "$ref": "#/$defs/__schema0"
18
+ },
19
+ "trustPolicyDigest": {
20
+ "$ref": "#/$defs/__schema1"
21
+ },
22
+ "caseSet": {
23
+ "minItems": 2,
24
+ "maxItems": 100000,
25
+ "type": "array",
26
+ "items": {
27
+ "$ref": "#/$defs/__schema2"
28
+ }
29
+ },
30
+ "strata": {
31
+ "minItems": 1,
32
+ "maxItems": 100000,
33
+ "type": "array",
34
+ "items": {
35
+ "$ref": "#/$defs/__schema3"
36
+ }
37
+ },
38
+ "signers": {
39
+ "type": "array",
40
+ "prefixItems": [
41
+ {
42
+ "$ref": "#/$defs/__schema4"
43
+ },
44
+ {
45
+ "$ref": "#/$defs/__schema4"
46
+ }
47
+ ]
48
+ },
49
+ "commitmentDigest": {
50
+ "$ref": "#/$defs/__schema1"
51
+ }
52
+ },
53
+ "required": [
54
+ "schemaVersion",
55
+ "commitmentVersion",
56
+ "commitmentId",
57
+ "allocationId",
58
+ "trustPolicyDigest",
59
+ "caseSet",
60
+ "strata",
61
+ "signers",
62
+ "commitmentDigest"
63
+ ],
64
+ "additionalProperties": false,
65
+ "$defs": {
66
+ "__schema0": {
67
+ "type": "string",
68
+ "minLength": 1,
69
+ "maxLength": 128,
70
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
71
+ },
72
+ "__schema1": {
73
+ "type": "string",
74
+ "pattern": "^sha256:[a-f0-9]{64}$"
75
+ },
76
+ "__schema2": {
77
+ "type": "object",
78
+ "properties": {
79
+ "caseId": {
80
+ "$ref": "#/$defs/__schema0"
81
+ },
82
+ "caseDigest": {
83
+ "$ref": "#/$defs/__schema1"
84
+ },
85
+ "provenanceDigest": {
86
+ "$ref": "#/$defs/__schema1"
87
+ },
88
+ "sourceId": {
89
+ "$ref": "#/$defs/__schema0"
90
+ },
91
+ "sourceIdentityDigest": {
92
+ "$ref": "#/$defs/__schema1"
93
+ }
94
+ },
95
+ "required": ["caseId", "caseDigest", "provenanceDigest", "sourceId", "sourceIdentityDigest"],
96
+ "additionalProperties": false
97
+ },
98
+ "__schema3": {
99
+ "type": "object",
100
+ "properties": {
101
+ "sourceId": {
102
+ "$ref": "#/$defs/__schema0"
103
+ },
104
+ "sourceIdentityDigest": {
105
+ "$ref": "#/$defs/__schema1"
106
+ },
107
+ "calibrationCount": {
108
+ "type": "integer",
109
+ "minimum": 1,
110
+ "maximum": 99999
111
+ }
112
+ },
113
+ "required": ["sourceId", "sourceIdentityDigest", "calibrationCount"],
114
+ "additionalProperties": false
115
+ },
116
+ "__schema4": {
117
+ "type": "object",
118
+ "properties": {
119
+ "keyId": {
120
+ "$ref": "#/$defs/__schema1"
121
+ },
122
+ "role": {
123
+ "type": "string",
124
+ "enum": ["AUTHOR", "REVIEWER"]
125
+ },
126
+ "shareCommitmentDigest": {
127
+ "$ref": "#/$defs/__schema1"
128
+ },
129
+ "signature": {
130
+ "type": "string",
131
+ "minLength": 1,
132
+ "maxLength": 512,
133
+ "pattern": "^[A-Za-z0-9_-]+$"
134
+ }
135
+ },
136
+ "required": ["keyId", "role", "shareCommitmentDigest", "signature"],
137
+ "additionalProperties": false
138
+ }
139
+ },
140
+ "$id": "https://testforge.dev/schemas/agentic-corpus-allocation-commitment.v1.json"
141
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "valid": {
6
+ "type": "boolean"
7
+ },
8
+ "schemaValid": {
9
+ "type": "boolean"
10
+ },
11
+ "allocationDigestValid": {
12
+ "type": "boolean"
13
+ },
14
+ "sourceCaseIdsValid": {
15
+ "type": "boolean"
16
+ },
17
+ "assignmentScoresValid": {
18
+ "type": "boolean"
19
+ },
20
+ "partitionSemanticsValid": {
21
+ "type": "boolean"
22
+ }
23
+ },
24
+ "required": [
25
+ "valid",
26
+ "schemaValid",
27
+ "allocationDigestValid",
28
+ "sourceCaseIdsValid",
29
+ "assignmentScoresValid",
30
+ "partitionSemanticsValid"
31
+ ],
32
+ "additionalProperties": false,
33
+ "$id": "https://testforge.dev/schemas/agentic-corpus-allocation-replay-result.v1.json"
34
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "string",
7
+ "const": "1.0.0"
8
+ },
9
+ "allocationId": {
10
+ "$ref": "#/$defs/__schema0"
11
+ },
12
+ "seedDigest": {
13
+ "$ref": "#/$defs/__schema1"
14
+ },
15
+ "strata": {
16
+ "minItems": 1,
17
+ "maxItems": 100000,
18
+ "type": "array",
19
+ "items": {
20
+ "$ref": "#/$defs/__schema2"
21
+ }
22
+ }
23
+ },
24
+ "required": ["schemaVersion", "allocationId", "seedDigest", "strata"],
25
+ "additionalProperties": false,
26
+ "$defs": {
27
+ "__schema0": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "maxLength": 128,
31
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
32
+ },
33
+ "__schema1": {
34
+ "type": "string",
35
+ "pattern": "^sha256:[a-f0-9]{64}$"
36
+ },
37
+ "__schema2": {
38
+ "type": "object",
39
+ "properties": {
40
+ "sourceId": {
41
+ "$ref": "#/$defs/__schema0"
42
+ },
43
+ "sourceIdentityDigest": {
44
+ "$ref": "#/$defs/__schema1"
45
+ },
46
+ "calibrationCount": {
47
+ "type": "integer",
48
+ "minimum": 1,
49
+ "maximum": 99999
50
+ },
51
+ "caseIds": {
52
+ "minItems": 2,
53
+ "maxItems": 100000,
54
+ "type": "array",
55
+ "items": {
56
+ "$ref": "#/$defs/__schema0"
57
+ }
58
+ }
59
+ },
60
+ "required": ["sourceId", "sourceIdentityDigest", "calibrationCount", "caseIds"],
61
+ "additionalProperties": false
62
+ }
63
+ },
64
+ "$id": "https://testforge.dev/schemas/agentic-corpus-allocation-request.v1.json"
65
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "string",
7
+ "const": "1.0.0"
8
+ },
9
+ "revealVersion": {
10
+ "type": "string",
11
+ "const": "1.0.0"
12
+ },
13
+ "commitmentDigest": {
14
+ "$ref": "#/$defs/__schema0"
15
+ },
16
+ "shares": {
17
+ "type": "array",
18
+ "prefixItems": [
19
+ {
20
+ "type": "object",
21
+ "properties": {
22
+ "keyId": {
23
+ "$ref": "#/$defs/__schema0"
24
+ },
25
+ "secret": {
26
+ "$ref": "#/$defs/__schema1"
27
+ }
28
+ },
29
+ "required": ["keyId", "secret"],
30
+ "additionalProperties": false
31
+ },
32
+ {
33
+ "type": "object",
34
+ "properties": {
35
+ "keyId": {
36
+ "$ref": "#/$defs/__schema0"
37
+ },
38
+ "secret": {
39
+ "$ref": "#/$defs/__schema1"
40
+ }
41
+ },
42
+ "required": ["keyId", "secret"],
43
+ "additionalProperties": false
44
+ }
45
+ ]
46
+ },
47
+ "revealDigest": {
48
+ "$ref": "#/$defs/__schema0"
49
+ }
50
+ },
51
+ "required": ["schemaVersion", "revealVersion", "commitmentDigest", "shares", "revealDigest"],
52
+ "additionalProperties": false,
53
+ "$defs": {
54
+ "__schema0": {
55
+ "type": "string",
56
+ "pattern": "^sha256:[a-f0-9]{64}$"
57
+ },
58
+ "__schema1": {
59
+ "type": "string",
60
+ "minLength": 43,
61
+ "maxLength": 43,
62
+ "pattern": "^[A-Za-z0-9_-]{43}$"
63
+ }
64
+ },
65
+ "$id": "https://testforge.dev/schemas/agentic-corpus-allocation-reveal.v1.json"
66
+ }
@@ -0,0 +1,167 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "string",
7
+ "const": "1.0.0"
8
+ },
9
+ "allocationId": {
10
+ "$ref": "#/$defs/__schema0"
11
+ },
12
+ "algorithm": {
13
+ "type": "string",
14
+ "const": "SHA256_ASCENDING_SPLIT_V1"
15
+ },
16
+ "seedDigest": {
17
+ "$ref": "#/$defs/__schema1"
18
+ },
19
+ "calibrationCount": {
20
+ "type": "integer",
21
+ "minimum": 1,
22
+ "maximum": 99999
23
+ },
24
+ "sourceCaseIds": {
25
+ "minItems": 2,
26
+ "maxItems": 100000,
27
+ "type": "array",
28
+ "items": {
29
+ "$ref": "#/$defs/__schema0"
30
+ }
31
+ },
32
+ "strata": {
33
+ "minItems": 1,
34
+ "maxItems": 100000,
35
+ "type": "array",
36
+ "items": {
37
+ "$ref": "#/$defs/__schema2"
38
+ }
39
+ },
40
+ "calibrationCaseIds": {
41
+ "minItems": 1,
42
+ "maxItems": 99999,
43
+ "type": "array",
44
+ "items": {
45
+ "$ref": "#/$defs/__schema0"
46
+ }
47
+ },
48
+ "holdoutCaseIds": {
49
+ "minItems": 1,
50
+ "maxItems": 99999,
51
+ "type": "array",
52
+ "items": {
53
+ "$ref": "#/$defs/__schema0"
54
+ }
55
+ },
56
+ "assignments": {
57
+ "minItems": 2,
58
+ "maxItems": 100000,
59
+ "type": "array",
60
+ "items": {
61
+ "$ref": "#/$defs/__schema3"
62
+ }
63
+ },
64
+ "allocationDigest": {
65
+ "$ref": "#/$defs/__schema1"
66
+ }
67
+ },
68
+ "required": [
69
+ "schemaVersion",
70
+ "allocationId",
71
+ "algorithm",
72
+ "seedDigest",
73
+ "calibrationCount",
74
+ "sourceCaseIds",
75
+ "strata",
76
+ "calibrationCaseIds",
77
+ "holdoutCaseIds",
78
+ "assignments",
79
+ "allocationDigest"
80
+ ],
81
+ "additionalProperties": false,
82
+ "$defs": {
83
+ "__schema0": {
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "maxLength": 128,
87
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
88
+ },
89
+ "__schema1": {
90
+ "type": "string",
91
+ "pattern": "^sha256:[a-f0-9]{64}$"
92
+ },
93
+ "__schema2": {
94
+ "type": "object",
95
+ "properties": {
96
+ "sourceId": {
97
+ "$ref": "#/$defs/__schema0"
98
+ },
99
+ "sourceIdentityDigest": {
100
+ "$ref": "#/$defs/__schema1"
101
+ },
102
+ "calibrationCount": {
103
+ "type": "integer",
104
+ "minimum": 1,
105
+ "maximum": 99999
106
+ },
107
+ "sourceCaseIds": {
108
+ "minItems": 2,
109
+ "maxItems": 100000,
110
+ "type": "array",
111
+ "items": {
112
+ "$ref": "#/$defs/__schema0"
113
+ }
114
+ },
115
+ "calibrationCaseIds": {
116
+ "minItems": 1,
117
+ "maxItems": 99999,
118
+ "type": "array",
119
+ "items": {
120
+ "$ref": "#/$defs/__schema0"
121
+ }
122
+ },
123
+ "holdoutCaseIds": {
124
+ "minItems": 1,
125
+ "maxItems": 99999,
126
+ "type": "array",
127
+ "items": {
128
+ "$ref": "#/$defs/__schema0"
129
+ }
130
+ }
131
+ },
132
+ "required": [
133
+ "sourceId",
134
+ "sourceIdentityDigest",
135
+ "calibrationCount",
136
+ "sourceCaseIds",
137
+ "calibrationCaseIds",
138
+ "holdoutCaseIds"
139
+ ],
140
+ "additionalProperties": false
141
+ },
142
+ "__schema3": {
143
+ "type": "object",
144
+ "properties": {
145
+ "caseId": {
146
+ "$ref": "#/$defs/__schema0"
147
+ },
148
+ "sourceId": {
149
+ "$ref": "#/$defs/__schema0"
150
+ },
151
+ "sourceIdentityDigest": {
152
+ "$ref": "#/$defs/__schema1"
153
+ },
154
+ "scoreDigest": {
155
+ "$ref": "#/$defs/__schema1"
156
+ },
157
+ "partition": {
158
+ "type": "string",
159
+ "enum": ["CALIBRATION", "HOLDOUT"]
160
+ }
161
+ },
162
+ "required": ["caseId", "sourceId", "sourceIdentityDigest", "scoreDigest", "partition"],
163
+ "additionalProperties": false
164
+ }
165
+ },
166
+ "$id": "https://testforge.dev/schemas/agentic-corpus-allocation.v1.json"
167
+ }