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,183 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "repository": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "packageManager": {
12
+ "$ref": "#/$defs/__schema3"
13
+ },
14
+ "framework": {
15
+ "$ref": "#/$defs/__schema4"
16
+ },
17
+ "testCommand": {
18
+ "$ref": "#/$defs/__schema5"
19
+ },
20
+ "adapter": {
21
+ "$ref": "#/$defs/__schema7"
22
+ },
23
+ "candidateRoots": {
24
+ "$ref": "#/$defs/__schema11"
25
+ }
26
+ },
27
+ "required": [
28
+ "schemaVersion",
29
+ "repository",
30
+ "packageManager",
31
+ "framework",
32
+ "testCommand",
33
+ "adapter",
34
+ "candidateRoots"
35
+ ],
36
+ "additionalProperties": false,
37
+ "title": "AssertLedger repository init config",
38
+ "description": "Portable static configuration produced by assertledger init.",
39
+ "$defs": {
40
+ "__schema0": {
41
+ "type": "string",
42
+ "const": "1.0.0"
43
+ },
44
+ "__schema1": {
45
+ "type": "object",
46
+ "properties": {
47
+ "root": {
48
+ "type": "string",
49
+ "const": "."
50
+ },
51
+ "exclude": {
52
+ "maxItems": 1000,
53
+ "type": "array",
54
+ "items": {
55
+ "$ref": "#/$defs/__schema2"
56
+ }
57
+ }
58
+ },
59
+ "required": ["root", "exclude"],
60
+ "additionalProperties": false
61
+ },
62
+ "__schema2": {
63
+ "type": "string",
64
+ "minLength": 1,
65
+ "maxLength": 512
66
+ },
67
+ "__schema3": {
68
+ "type": "string",
69
+ "enum": ["pnpm", "npm", "yarn", "bun", "uv", "poetry", "pip"]
70
+ },
71
+ "__schema4": {
72
+ "type": "string",
73
+ "enum": ["node:test", "vitest", "jest", "bun:test", "pytest"]
74
+ },
75
+ "__schema5": {
76
+ "type": "object",
77
+ "properties": {
78
+ "executable": {
79
+ "type": "string",
80
+ "minLength": 1,
81
+ "maxLength": 512
82
+ },
83
+ "arguments": {
84
+ "maxItems": 100,
85
+ "type": "array",
86
+ "items": {
87
+ "$ref": "#/$defs/__schema6"
88
+ }
89
+ }
90
+ },
91
+ "required": ["executable", "arguments"],
92
+ "additionalProperties": false
93
+ },
94
+ "__schema6": {
95
+ "type": "string",
96
+ "maxLength": 1024
97
+ },
98
+ "__schema7": {
99
+ "oneOf": [
100
+ {
101
+ "type": "object",
102
+ "properties": {
103
+ "kind": {
104
+ "type": "string",
105
+ "const": "node-test"
106
+ },
107
+ "executable": {
108
+ "type": "string",
109
+ "minLength": 1
110
+ },
111
+ "baseTestFiles": {
112
+ "minItems": 1,
113
+ "maxItems": 1000,
114
+ "type": "array",
115
+ "items": {
116
+ "$ref": "#/$defs/__schema8"
117
+ }
118
+ },
119
+ "extraArguments": {
120
+ "maxItems": 0,
121
+ "type": "array",
122
+ "items": {
123
+ "$ref": "#/$defs/__schema9"
124
+ }
125
+ }
126
+ },
127
+ "required": ["kind", "executable", "baseTestFiles"],
128
+ "additionalProperties": false
129
+ },
130
+ {
131
+ "type": "object",
132
+ "properties": {
133
+ "kind": {
134
+ "type": "string",
135
+ "const": "testforge-command"
136
+ },
137
+ "executable": {
138
+ "type": "string",
139
+ "minLength": 1
140
+ },
141
+ "arguments": {
142
+ "maxItems": 100,
143
+ "type": "array",
144
+ "items": {
145
+ "$ref": "#/$defs/__schema10"
146
+ }
147
+ },
148
+ "protocolVersion": {
149
+ "type": "string",
150
+ "const": "1.0.0"
151
+ }
152
+ },
153
+ "required": ["kind", "executable", "arguments", "protocolVersion"],
154
+ "additionalProperties": false
155
+ }
156
+ ]
157
+ },
158
+ "__schema8": {
159
+ "type": "string",
160
+ "minLength": 1
161
+ },
162
+ "__schema9": {
163
+ "type": "string"
164
+ },
165
+ "__schema10": {
166
+ "type": "string"
167
+ },
168
+ "__schema11": {
169
+ "minItems": 1,
170
+ "maxItems": 100,
171
+ "type": "array",
172
+ "items": {
173
+ "$ref": "#/$defs/__schema12"
174
+ }
175
+ },
176
+ "__schema12": {
177
+ "type": "string",
178
+ "minLength": 1,
179
+ "maxLength": 512
180
+ }
181
+ },
182
+ "$id": "https://testforge.dev/schemas/repository-init-config.v1.json"
183
+ }
@@ -0,0 +1,162 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "configDigest": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "detector": {
12
+ "$ref": "#/$defs/__schema2"
13
+ },
14
+ "evidence": {
15
+ "$ref": "#/$defs/__schema3"
16
+ },
17
+ "detections": {
18
+ "$ref": "#/$defs/__schema4"
19
+ },
20
+ "lockDigest": {
21
+ "$ref": "#/$defs/__schema1"
22
+ }
23
+ },
24
+ "required": ["schemaVersion", "configDigest", "detector", "evidence", "detections", "lockDigest"],
25
+ "additionalProperties": false,
26
+ "title": "AssertLedger repository init lock",
27
+ "description": "Deterministic evidence lock binding an initialized repository configuration.",
28
+ "$defs": {
29
+ "__schema0": {
30
+ "type": "string",
31
+ "const": "1.0.0"
32
+ },
33
+ "__schema1": {
34
+ "type": "string",
35
+ "pattern": "^sha256:[a-f0-9]{64}$"
36
+ },
37
+ "__schema2": {
38
+ "type": "object",
39
+ "properties": {
40
+ "name": {
41
+ "type": "string",
42
+ "const": "assertledger-init"
43
+ },
44
+ "version": {
45
+ "type": "string",
46
+ "const": "1.0.0"
47
+ }
48
+ },
49
+ "required": ["name", "version"],
50
+ "additionalProperties": false
51
+ },
52
+ "__schema3": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object",
56
+ "properties": {
57
+ "path": {
58
+ "type": "string",
59
+ "minLength": 1,
60
+ "maxLength": 1024
61
+ },
62
+ "digest": {
63
+ "$ref": "#/$defs/__schema1"
64
+ },
65
+ "kind": {
66
+ "type": "string",
67
+ "enum": ["PACKAGE_MANIFEST", "LOCKFILE", "TEST_SOURCE", "CI_CONFIG", "ADAPTER_CONFIG"]
68
+ }
69
+ },
70
+ "required": ["path", "digest", "kind"],
71
+ "additionalProperties": false
72
+ }
73
+ },
74
+ "__schema4": {
75
+ "type": "object",
76
+ "properties": {
77
+ "packageManager": {
78
+ "anyOf": [
79
+ {
80
+ "type": "string",
81
+ "enum": ["pnpm", "npm", "yarn", "bun", "uv", "poetry", "pip"]
82
+ },
83
+ {
84
+ "type": "null"
85
+ }
86
+ ]
87
+ },
88
+ "framework": {
89
+ "anyOf": [
90
+ {
91
+ "type": "string",
92
+ "enum": ["node:test", "vitest", "jest", "bun:test", "pytest"]
93
+ },
94
+ {
95
+ "type": "null"
96
+ }
97
+ ]
98
+ },
99
+ "testCommand": {
100
+ "anyOf": [
101
+ {
102
+ "type": "object",
103
+ "properties": {
104
+ "executable": {
105
+ "type": "string",
106
+ "minLength": 1,
107
+ "maxLength": 512
108
+ },
109
+ "arguments": {
110
+ "maxItems": 100,
111
+ "type": "array",
112
+ "items": {
113
+ "$ref": "#/$defs/__schema5"
114
+ }
115
+ }
116
+ },
117
+ "required": ["executable", "arguments"],
118
+ "additionalProperties": false
119
+ },
120
+ {
121
+ "type": "null"
122
+ }
123
+ ]
124
+ },
125
+ "ciProviders": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string",
129
+ "enum": ["github-actions", "gitlab-ci", "azure-pipelines", "circleci"]
130
+ }
131
+ },
132
+ "adapterRecommendation": {
133
+ "type": "string",
134
+ "enum": ["node-test", "operator-supplied", "unavailable"]
135
+ },
136
+ "reasonCodes": {
137
+ "type": "array",
138
+ "items": {
139
+ "type": "string",
140
+ "minLength": 1,
141
+ "maxLength": 128,
142
+ "pattern": "^[A-Z][A-Z0-9_]*$"
143
+ }
144
+ }
145
+ },
146
+ "required": [
147
+ "packageManager",
148
+ "framework",
149
+ "testCommand",
150
+ "ciProviders",
151
+ "adapterRecommendation",
152
+ "reasonCodes"
153
+ ],
154
+ "additionalProperties": false
155
+ },
156
+ "__schema5": {
157
+ "type": "string",
158
+ "maxLength": 1024
159
+ }
160
+ },
161
+ "$id": "https://testforge.dev/schemas/repository-init-lock.v1.json"
162
+ }
@@ -0,0 +1,212 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "status": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "reasonCodes": {
12
+ "$ref": "#/$defs/__schema2"
13
+ },
14
+ "detections": {
15
+ "$ref": "#/$defs/__schema4"
16
+ },
17
+ "actions": {
18
+ "$ref": "#/$defs/__schema7"
19
+ },
20
+ "files": {
21
+ "$ref": "#/$defs/__schema8"
22
+ },
23
+ "requiredOperatorInputs": {
24
+ "$ref": "#/$defs/__schema9"
25
+ },
26
+ "nextCommands": {
27
+ "$ref": "#/$defs/__schema10"
28
+ }
29
+ },
30
+ "required": [
31
+ "schemaVersion",
32
+ "status",
33
+ "reasonCodes",
34
+ "detections",
35
+ "actions",
36
+ "files",
37
+ "requiredOperatorInputs",
38
+ "nextCommands"
39
+ ],
40
+ "additionalProperties": false,
41
+ "title": "AssertLedger repository init result",
42
+ "description": "Deterministic initialization plan and outcome without campaign execution.",
43
+ "$defs": {
44
+ "__schema0": {
45
+ "type": "string",
46
+ "const": "1.0.0"
47
+ },
48
+ "__schema1": {
49
+ "type": "string",
50
+ "enum": ["CREATED", "UNCHANGED", "WOULD_CREATE", "BLOCKED", "CONFLICT"]
51
+ },
52
+ "__schema2": {
53
+ "type": "array",
54
+ "items": {
55
+ "$ref": "#/$defs/__schema3"
56
+ }
57
+ },
58
+ "__schema3": {
59
+ "type": "string",
60
+ "minLength": 1,
61
+ "maxLength": 128,
62
+ "pattern": "^[A-Z][A-Z0-9_]*$"
63
+ },
64
+ "__schema4": {
65
+ "type": "object",
66
+ "properties": {
67
+ "packageManager": {
68
+ "anyOf": [
69
+ {
70
+ "type": "string",
71
+ "enum": ["pnpm", "npm", "yarn", "bun", "uv", "poetry", "pip"]
72
+ },
73
+ {
74
+ "type": "null"
75
+ }
76
+ ]
77
+ },
78
+ "framework": {
79
+ "anyOf": [
80
+ {
81
+ "type": "string",
82
+ "enum": ["node:test", "vitest", "jest", "bun:test", "pytest"]
83
+ },
84
+ {
85
+ "type": "null"
86
+ }
87
+ ]
88
+ },
89
+ "testCommand": {
90
+ "anyOf": [
91
+ {
92
+ "$ref": "#/$defs/__schema5"
93
+ },
94
+ {
95
+ "type": "null"
96
+ }
97
+ ]
98
+ },
99
+ "ciProviders": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "string",
103
+ "enum": ["github-actions", "gitlab-ci", "azure-pipelines", "circleci"]
104
+ }
105
+ },
106
+ "adapterRecommendation": {
107
+ "type": "string",
108
+ "enum": ["node-test", "operator-supplied", "unavailable"]
109
+ },
110
+ "reasonCodes": {
111
+ "type": "array",
112
+ "items": {
113
+ "$ref": "#/$defs/__schema3"
114
+ }
115
+ }
116
+ },
117
+ "required": [
118
+ "packageManager",
119
+ "framework",
120
+ "testCommand",
121
+ "ciProviders",
122
+ "adapterRecommendation",
123
+ "reasonCodes"
124
+ ],
125
+ "additionalProperties": false
126
+ },
127
+ "__schema5": {
128
+ "type": "object",
129
+ "properties": {
130
+ "executable": {
131
+ "type": "string",
132
+ "minLength": 1,
133
+ "maxLength": 512
134
+ },
135
+ "arguments": {
136
+ "maxItems": 100,
137
+ "type": "array",
138
+ "items": {
139
+ "$ref": "#/$defs/__schema6"
140
+ }
141
+ }
142
+ },
143
+ "required": ["executable", "arguments"],
144
+ "additionalProperties": false
145
+ },
146
+ "__schema6": {
147
+ "type": "string",
148
+ "maxLength": 1024
149
+ },
150
+ "__schema7": {
151
+ "type": "array",
152
+ "items": {
153
+ "type": "object",
154
+ "properties": {
155
+ "kind": {
156
+ "type": "string",
157
+ "enum": ["CREATE", "REGENERATE"]
158
+ },
159
+ "path": {
160
+ "type": "string",
161
+ "enum": ["assertledger.config.json", "assertledger.lock.json"]
162
+ }
163
+ },
164
+ "required": ["kind", "path"],
165
+ "additionalProperties": false
166
+ }
167
+ },
168
+ "__schema8": {
169
+ "type": "array",
170
+ "items": {
171
+ "type": "object",
172
+ "properties": {
173
+ "path": {
174
+ "type": "string",
175
+ "enum": ["assertledger.config.json", "assertledger.lock.json"]
176
+ },
177
+ "digest": {
178
+ "type": "string",
179
+ "pattern": "^sha256:[a-f0-9]{64}$"
180
+ },
181
+ "content": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "maxLength": 16777216
185
+ }
186
+ },
187
+ "required": ["path", "digest", "content"],
188
+ "additionalProperties": false
189
+ }
190
+ },
191
+ "__schema9": {
192
+ "type": "array",
193
+ "prefixItems": [
194
+ {
195
+ "type": "string",
196
+ "const": "worlds"
197
+ },
198
+ {
199
+ "type": "string",
200
+ "const": "candidates"
201
+ }
202
+ ]
203
+ },
204
+ "__schema10": {
205
+ "type": "array",
206
+ "items": {
207
+ "$ref": "#/$defs/__schema5"
208
+ }
209
+ }
210
+ },
211
+ "$id": "https://testforge.dev/schemas/repository-init-result.v1.json"
212
+ }