@aiwg/cli 2026.9.21 → 2026.10.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 (210) hide show
  1. package/agentic/code/providers/capability-matrix.yaml +2 -1
  2. package/dist/src/artifacts/cli.js +23 -18
  3. package/dist/src/artifacts/discovery-shadow-evaluator.js +177 -0
  4. package/dist/src/artifacts/discovery-shadow.js +195 -0
  5. package/dist/src/artifacts/fortemi-core-query-adapter.js +6 -2
  6. package/dist/src/artifacts/index-builder.js +47 -9
  7. package/dist/src/artifacts/query-engine.js +108 -5
  8. package/dist/src/artifacts/types.js +1 -0
  9. package/dist/src/cli/handlers/decision.js +88 -0
  10. package/dist/src/cli/handlers/gates.js +154 -0
  11. package/dist/src/cli/handlers/index.js +5 -1
  12. package/dist/src/cli/handlers/sessions.js +10 -7
  13. package/dist/src/cli/handlers/utilities.js +20 -0
  14. package/dist/src/config/aiwg-config.js +15 -2
  15. package/dist/src/decision/acceptance.js +25 -0
  16. package/dist/src/decision/adapters/jev.js +24 -2
  17. package/dist/src/decision/calibration/registry.js +9 -0
  18. package/dist/src/decision/compose.js +74 -15
  19. package/dist/src/decision/context-live-promotion.js +344 -0
  20. package/dist/src/decision/context-live-qualification.js +591 -0
  21. package/dist/src/decision/context-pruning.js +847 -0
  22. package/dist/src/decision/driver.js +430 -0
  23. package/dist/src/decision/egress-live-qualification.js +874 -0
  24. package/dist/src/decision/ensemble/contract.js +64 -1
  25. package/dist/src/decision/ensemble/index.js +1 -0
  26. package/dist/src/decision/ensemble/report.js +8 -42
  27. package/dist/src/decision/ensemble/runtime.js +571 -0
  28. package/dist/src/decision/ensemble-study/artifacts.js +85 -0
  29. package/dist/src/decision/ensemble-study/calibration.js +443 -0
  30. package/dist/src/decision/ensemble-study/corpus.js +229 -0
  31. package/dist/src/decision/ensemble-study/multifact-artifacts.js +23 -0
  32. package/dist/src/decision/ensemble-study/multifact-study.js +596 -0
  33. package/dist/src/decision/ensemble-study/multifact.js +241 -0
  34. package/dist/src/decision/ensemble-study/protocol.js +77 -0
  35. package/dist/src/decision/ensemble-study/score.js +462 -0
  36. package/dist/src/decision/ensemble-study/staged.js +87 -0
  37. package/dist/src/decision/ensemble-study/statistics.js +84 -0
  38. package/dist/src/decision/evaluate.js +227 -14
  39. package/dist/src/decision/export.js +4 -0
  40. package/dist/src/decision/feature-export.js +1074 -0
  41. package/dist/src/decision/graph-index.js +16 -0
  42. package/dist/src/decision/graph-live-qualification.js +1041 -0
  43. package/dist/src/decision/graph-live-workload.js +245 -0
  44. package/dist/src/decision/graph-skill-bridge.js +21 -3
  45. package/dist/src/decision/heldout/calibration.js +140 -0
  46. package/dist/src/decision/heldout/collector.js +430 -0
  47. package/dist/src/decision/heldout/contract.js +309 -0
  48. package/dist/src/decision/heldout/d29-generator-ids.js +12 -0
  49. package/dist/src/decision/heldout/d29-passage-baseline-v2.js +93 -0
  50. package/dist/src/decision/heldout/d29-passage-baseline-v3.js +100 -0
  51. package/dist/src/decision/heldout/d29-passage-baseline.js +66 -0
  52. package/dist/src/decision/heldout/d29-pools-v8.js +575 -0
  53. package/dist/src/decision/heldout/d29-pools.js +288 -0
  54. package/dist/src/decision/heldout/d29-v6.js +169 -0
  55. package/dist/src/decision/heldout/d29-v7.js +202 -0
  56. package/dist/src/decision/heldout/d29-v8.js +586 -0
  57. package/dist/src/decision/heldout/generator-registry.js +67 -0
  58. package/dist/src/decision/heldout/generators.js +696 -0
  59. package/dist/src/decision/heldout/index.js +8 -0
  60. package/dist/src/decision/heldout/journal.js +346 -0
  61. package/dist/src/decision/heldout/study-generators.js +64 -0
  62. package/dist/src/decision/heldout/types.js +2 -0
  63. package/dist/src/decision/host-policy.js +61 -0
  64. package/dist/src/decision/index.js +11 -0
  65. package/dist/src/decision/interop-profile.v1.json +112 -0
  66. package/dist/src/decision/interop.js +653 -0
  67. package/dist/src/decision/issue-triage/index.js +3 -0
  68. package/dist/src/decision/issue-triage/runtime.js +1069 -0
  69. package/dist/src/decision/issue-triage/types.js +2 -0
  70. package/dist/src/decision/patterns/catalog.js +28 -8
  71. package/dist/src/decision/patterns/playground.js +28 -11
  72. package/dist/src/decision/patterns/specs.js +19 -10
  73. package/dist/src/decision/preprocessed-evidence.js +724 -0
  74. package/dist/src/decision/qualification/capture.js +8 -2
  75. package/dist/src/decision/qualification/gate-evidence.js +19 -4
  76. package/dist/src/decision/qualification/load.js +8 -1
  77. package/dist/src/decision/qualification/quality.js +57 -49
  78. package/dist/src/decision/qualification/release.js +76 -3
  79. package/dist/src/decision/qualification/runner.js +5 -2
  80. package/dist/src/decision/routing/contract.js +175 -0
  81. package/dist/src/decision/routing/index.js +5 -0
  82. package/dist/src/decision/routing/report.js +216 -0
  83. package/dist/src/decision/routing/runtime.js +685 -0
  84. package/dist/src/decision/routing/types.js +2 -0
  85. package/dist/src/decision/sdlc-screening.js +1157 -0
  86. package/dist/src/decision/sensitivity/comparative.js +154 -0
  87. package/dist/src/decision/sensitivity/contract.js +218 -0
  88. package/dist/src/decision/sensitivity/index.js +5 -0
  89. package/dist/src/decision/sensitivity/runtime.js +912 -0
  90. package/dist/src/decision/sensitivity/types.js +2 -0
  91. package/dist/src/decision/validate.js +26 -0
  92. package/dist/src/extensions/commands/definitions.js +38 -0
  93. package/dist/src/extensions/manifest.js +44 -0
  94. package/dist/src/gates/discovery.js +315 -0
  95. package/dist/src/gates/driver.js +388 -0
  96. package/dist/src/gates/evaluate.js +719 -0
  97. package/dist/src/gates/floors.js +255 -0
  98. package/dist/src/gates/index.js +17 -0
  99. package/dist/src/gates/providers/evidence.js +38 -0
  100. package/dist/src/gates/providers/index.js +21 -0
  101. package/dist/src/gates/providers/isolated-child-source.js +446 -0
  102. package/dist/src/gates/providers/loader.js +1069 -0
  103. package/dist/src/gates/providers/paired.js +52 -0
  104. package/dist/src/gates/providers/proportion.js +60 -0
  105. package/dist/src/gates/providers/registry.js +40 -0
  106. package/dist/src/gates/providers/scalar.js +41 -0
  107. package/dist/src/gates/providers/screening.js +53 -0
  108. package/dist/src/gates/providers/types.js +25 -0
  109. package/dist/src/gates/registry.js +1003 -0
  110. package/dist/src/gates/report.js +102 -0
  111. package/dist/src/gates/schema.js +56 -0
  112. package/dist/src/gates/stats/binomial.js +26 -0
  113. package/dist/src/gates/stats/bootstrap.js +62 -0
  114. package/dist/src/gates/stats/clopper-pearson.js +95 -0
  115. package/dist/src/gates/stats/digest.js +26 -0
  116. package/dist/src/gates/stats/error.js +5 -0
  117. package/dist/src/gates/stats/index.js +9 -0
  118. package/dist/src/gates/stats/normal.js +35 -0
  119. package/dist/src/gates/stats/paired.js +120 -0
  120. package/dist/src/gates/stats/splits.js +30 -0
  121. package/dist/src/gates/types.js +8 -0
  122. package/dist/src/governance/redaction.js +14 -4
  123. package/dist/src/mcp/muse-native-config.mjs +123 -0
  124. package/dist/src/mcp/tools/decision.mjs +188 -0
  125. package/dist/src/mcp/tools/subsystems.mjs +2 -0
  126. package/dist/src/providers/capability-matrix.yaml +2 -1
  127. package/dist/src/providers/provider-definitions.js +2 -1
  128. package/dist/src/sessions/adapters/muse.js +336 -39
  129. package/dist/src/sessions/batch-import.js +7 -0
  130. package/dist/src/sessions/workspace-discovery.js +13 -2
  131. package/package.json +1 -1
  132. package/schemas/decision/ConformalFrozenOpenData.v2.schema.json +371 -0
  133. package/schemas/decision/ConformalOpenDataReport.v2.schema.json +421 -0
  134. package/schemas/decision/ConformalPreregistration.v2.schema.json +529 -0
  135. package/schemas/decision/ContextPruningCandidate.v1.schema.json +47 -0
  136. package/schemas/decision/ContextPruningEvaluationReport.v1.schema.json +758 -0
  137. package/schemas/decision/ContextPruningPreregistration.v1.schema.json +175 -0
  138. package/schemas/decision/ContextPruningReceipt.v1.schema.json +72 -0
  139. package/schemas/decision/D17Multifact.v1.schema.json +1851 -0
  140. package/schemas/decision/D17StudyAnalysis.v1.schema.json +42 -0
  141. package/schemas/decision/D17StudyAnalysis.v2.schema.json +51 -0
  142. package/schemas/decision/D17StudyCalibration.v1.schema.json +819 -0
  143. package/schemas/decision/D17StudyDryRun.v1.schema.json +169 -0
  144. package/schemas/decision/D17StudyDryRun.v2.schema.json +239 -0
  145. package/schemas/decision/D17StudyGold.v1.schema.json +108 -0
  146. package/schemas/decision/D17StudyGuide.v1.schema.json +63 -0
  147. package/schemas/decision/D17StudyNativeTemplates.v1.schema.json +619 -0
  148. package/schemas/decision/D17StudyProtocol.v1.schema.json +241 -0
  149. package/schemas/decision/D17StudyReport.v1.schema.json +902 -0
  150. package/schemas/decision/D17StudyReport.v2.schema.json +1319 -0
  151. package/schemas/decision/D17StudyReview.v1.schema.json +175 -0
  152. package/schemas/decision/D17StudySplits.v1.schema.json +217 -0
  153. package/schemas/decision/D29Study.v1.schema.json +1903 -0
  154. package/schemas/decision/D29Study.v2.schema.json +1344 -0
  155. package/schemas/decision/D29Study.v3.schema.json +609 -0
  156. package/schemas/decision/D29Study.v4.schema.json +1133 -0
  157. package/schemas/decision/D29Study.v6.schema.json +1205 -0
  158. package/schemas/decision/D29Study.v7.schema.json +1471 -0
  159. package/schemas/decision/D29Study.v8.schema.json +671 -0
  160. package/schemas/decision/D29Study.v9.schema.json +778 -0
  161. package/schemas/decision/DecisionComparativeReplayAuditSample.v1.schema.json +137 -0
  162. package/schemas/decision/DecisionComparativeReplayCorpus.v1.schema.json +258 -0
  163. package/schemas/decision/DecisionComparativeReplayFreeze.v1.schema.json +74 -0
  164. package/schemas/decision/DecisionComparativeReplayGold.v1.schema.json +50 -0
  165. package/schemas/decision/DecisionComparativeReplayGoldAsset.v1.schema.json +37 -0
  166. package/schemas/decision/DecisionComparativeReplayIntegrity.v1.schema.json +81 -0
  167. package/schemas/decision/DecisionComparativeReplayMembers.v1.schema.json +52 -0
  168. package/schemas/decision/DecisionComparativeReplayPreregistration.v1.schema.json +113 -0
  169. package/schemas/decision/DecisionComparativeReplayReport.v1.schema.json +407 -0
  170. package/schemas/decision/DecisionComparativeReplayReviewPackets.v1.schema.json +260 -0
  171. package/schemas/decision/DecisionComparativeReplaySplit.v1.schema.json +84 -0
  172. package/schemas/decision/DecisionFeatureObservation.v1.schema.json +564 -0
  173. package/schemas/decision/DecisionFeatureSet.v1.schema.json +155 -0
  174. package/schemas/decision/DecisionInteropMapping.v1.schema.json +85 -0
  175. package/schemas/decision/DecisionIssueTriageEvaluationManifest.v1.schema.json +174 -0
  176. package/schemas/decision/DecisionIssueTriageEvaluationReport.v1.schema.json +280 -0
  177. package/schemas/decision/DecisionIssueTriagePilotPack.v1.schema.json +114 -0
  178. package/schemas/decision/DecisionRouteReceipt.v1.schema.json +155 -0
  179. package/schemas/decision/DecisionRoutingPolicy.v1.schema.json +132 -0
  180. package/schemas/decision/DecisionRoutingShadowReport.v1.schema.json +170 -0
  181. package/schemas/decision/DecisionRoutingTask.v1.schema.json +49 -0
  182. package/schemas/decision/DecisionRuleset.schema.json +8 -2
  183. package/schemas/decision/DecisionRuleset.v1alpha2.schema.json +8 -2
  184. package/schemas/decision/DecisionSensitivityPlan.v1.schema.json +191 -0
  185. package/schemas/decision/DecisionSensitivityReport.v1.schema.json +163 -0
  186. package/schemas/decision/HeldoutApproval.v1.schema.json +312 -0
  187. package/schemas/decision/HeldoutAttempt.v1.schema.json +211 -0
  188. package/schemas/decision/HeldoutBaseline.v1.schema.json +90 -0
  189. package/schemas/decision/HeldoutCalibrationPhase.v1.schema.json +87 -0
  190. package/schemas/decision/HeldoutCorpus.v1.schema.json +167 -0
  191. package/schemas/decision/HeldoutEvent.v1.schema.json +41 -0
  192. package/schemas/decision/HeldoutFrozen.v1.schema.json +142 -0
  193. package/schemas/decision/HeldoutPreregistration.v1.schema.json +222 -0
  194. package/schemas/decision/HeldoutSpendEvent.v1.schema.json +122 -0
  195. package/schemas/decision/HeldoutSpendHead.v1.schema.json +25 -0
  196. package/schemas/decision/HeldoutSpendHead.v2.schema.json +46 -0
  197. package/schemas/decision/HeldoutSummary.v1.schema.json +101 -0
  198. package/schemas/decision/OpaDecisionLogExport.v1.schema.json +65 -0
  199. package/schemas/decision/PreprocessedEvidence.v1.schema.json +306 -0
  200. package/schemas/decision/RulesetResult.v1alpha2.schema.json +175 -0
  201. package/schemas/decision/SdlcEvidenceScreening.v1.schema.json +499 -0
  202. package/schemas/decision/SdlcScreeningPreregistration.v1.schema.json +132 -0
  203. package/schemas/decision/SdlcScreeningPreregistration.v2.schema.json +138 -0
  204. package/schemas/decision/SdlcScreeningRelease.v1.schema.json +654 -0
  205. package/schemas/decision/SdlcScreeningRelease.v2.schema.json +654 -0
  206. package/tools/agents/deploy-agents.mjs +1 -1
  207. package/tools/agents/providers/base.mjs +26 -7
  208. package/tools/agents/providers/factory.mjs +10 -2
  209. package/tools/agents/providers/muse-hooks.mjs +1 -29
  210. package/tools/agents/providers/muse.mjs +6 -3
@@ -0,0 +1,619 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aiwg.io/schemas/decision/D17StudyNativeTemplates.v1.schema.json",
4
+ "title": "D17StudyNativeTemplates",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "approved",
10
+ "policy",
11
+ "comparison",
12
+ "instructions"
13
+ ],
14
+ "properties": {
15
+ "schemaVersion": {
16
+ "const": "decision-d17-native-templates/v1"
17
+ },
18
+ "approved": {
19
+ "const": false
20
+ },
21
+ "policy": {
22
+ "type": "object",
23
+ "additionalProperties": false,
24
+ "required": [
25
+ "schemaVersion",
26
+ "id",
27
+ "version",
28
+ "mode",
29
+ "riskTiers",
30
+ "definition",
31
+ "primitive",
32
+ "options",
33
+ "compatibleUncertaintyProfiles",
34
+ "requiredCapabilities",
35
+ "members",
36
+ "aggregation",
37
+ "disagreement",
38
+ "acceptance",
39
+ "calibration",
40
+ "ceilings"
41
+ ],
42
+ "properties": {
43
+ "schemaVersion": {
44
+ "const": "decision-ensemble-policy/v1"
45
+ },
46
+ "id": {
47
+ "const": "d17-heldout-three-sample"
48
+ },
49
+ "version": {
50
+ "const": "1.0.0"
51
+ },
52
+ "mode": {
53
+ "const": "disabled"
54
+ },
55
+ "riskTiers": {
56
+ "type": "array",
57
+ "const": [
58
+ "synthetic-study"
59
+ ]
60
+ },
61
+ "definition": {
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": [
65
+ "id",
66
+ "version",
67
+ "digest"
68
+ ],
69
+ "properties": {
70
+ "id": {
71
+ "const": "d17-synthetic-entailment"
72
+ },
73
+ "version": {
74
+ "const": "1.0.0"
75
+ },
76
+ "digest": {
77
+ "type": "string",
78
+ "pattern": "^sha256:[a-f0-9]{64}$"
79
+ }
80
+ }
81
+ },
82
+ "primitive": {
83
+ "const": "choice"
84
+ },
85
+ "options": {
86
+ "type": "array",
87
+ "const": [
88
+ "yes",
89
+ "no"
90
+ ]
91
+ },
92
+ "compatibleUncertaintyProfiles": {
93
+ "type": "array",
94
+ "const": [
95
+ "typesafe-distribution-v1"
96
+ ]
97
+ },
98
+ "requiredCapabilities": {
99
+ "type": "array",
100
+ "const": [
101
+ "choice"
102
+ ]
103
+ },
104
+ "members": {
105
+ "type": "array",
106
+ "minItems": 1,
107
+ "maxItems": 1,
108
+ "prefixItems": [
109
+ {
110
+ "type": "object",
111
+ "additionalProperties": false,
112
+ "required": [
113
+ "id",
114
+ "memberType",
115
+ "definition",
116
+ "binding",
117
+ "adapter",
118
+ "model",
119
+ "primitive",
120
+ "uncertaintyProfile",
121
+ "requiredCapabilities",
122
+ "capabilities",
123
+ "calibration",
124
+ "samples",
125
+ "fallbackDepth",
126
+ "estimate",
127
+ "approvalReference"
128
+ ],
129
+ "properties": {
130
+ "id": {
131
+ "const": "jev-repeated-sample"
132
+ },
133
+ "memberType": {
134
+ "const": "repeated-sample"
135
+ },
136
+ "definition": {
137
+ "type": "object",
138
+ "additionalProperties": false,
139
+ "required": [
140
+ "id",
141
+ "version",
142
+ "digest"
143
+ ],
144
+ "properties": {
145
+ "id": {
146
+ "const": "d17-synthetic-entailment"
147
+ },
148
+ "version": {
149
+ "const": "1.0.0"
150
+ },
151
+ "digest": {
152
+ "type": "string",
153
+ "pattern": "^sha256:[a-f0-9]{64}$"
154
+ }
155
+ }
156
+ },
157
+ "binding": {
158
+ "type": "null"
159
+ },
160
+ "adapter": {
161
+ "type": "object",
162
+ "additionalProperties": false,
163
+ "required": [
164
+ "id",
165
+ "version"
166
+ ],
167
+ "properties": {
168
+ "id": {
169
+ "const": "jev"
170
+ },
171
+ "version": {
172
+ "const": "1.0.0"
173
+ }
174
+ }
175
+ },
176
+ "model": {
177
+ "type": "object",
178
+ "additionalProperties": false,
179
+ "required": [
180
+ "provider",
181
+ "backend",
182
+ "requested",
183
+ "pinnedVersion"
184
+ ],
185
+ "properties": {
186
+ "provider": {
187
+ "const": "jev"
188
+ },
189
+ "backend": {
190
+ "const": "jev"
191
+ },
192
+ "requested": {
193
+ "const": "jev-1.13.0"
194
+ },
195
+ "pinnedVersion": {
196
+ "const": "jev-1.13.0"
197
+ }
198
+ }
199
+ },
200
+ "primitive": {
201
+ "const": "choice"
202
+ },
203
+ "uncertaintyProfile": {
204
+ "const": "typesafe-distribution-v1"
205
+ },
206
+ "requiredCapabilities": {
207
+ "type": "array",
208
+ "minItems": 1,
209
+ "maxItems": 1,
210
+ "prefixItems": [
211
+ {
212
+ "const": "choice"
213
+ }
214
+ ],
215
+ "items": false
216
+ },
217
+ "capabilities": {
218
+ "type": "array",
219
+ "minItems": 1,
220
+ "maxItems": 1,
221
+ "prefixItems": [
222
+ {
223
+ "const": "choice"
224
+ }
225
+ ],
226
+ "items": false
227
+ },
228
+ "calibration": {
229
+ "type": "null"
230
+ },
231
+ "samples": {
232
+ "const": 3
233
+ },
234
+ "fallbackDepth": {
235
+ "const": 0
236
+ },
237
+ "estimate": {
238
+ "type": "object",
239
+ "additionalProperties": false,
240
+ "required": [
241
+ "attemptsPerSample",
242
+ "tokensPerAttempt",
243
+ "costMicrosPerAttempt",
244
+ "deadlineMsPerAttempt"
245
+ ],
246
+ "properties": {
247
+ "attemptsPerSample": {
248
+ "const": 2
249
+ },
250
+ "tokensPerAttempt": {
251
+ "const": 4000
252
+ },
253
+ "costMicrosPerAttempt": {
254
+ "const": 400
255
+ },
256
+ "deadlineMsPerAttempt": {
257
+ "const": 60000
258
+ }
259
+ }
260
+ },
261
+ "approvalReference": {
262
+ "type": "null"
263
+ }
264
+ }
265
+ }
266
+ ],
267
+ "items": false
268
+ },
269
+ "aggregation": {
270
+ "type": "object",
271
+ "additionalProperties": false,
272
+ "required": [
273
+ "algorithm",
274
+ "tieRule"
275
+ ],
276
+ "properties": {
277
+ "algorithm": {
278
+ "const": "mean-probability-v1"
279
+ },
280
+ "tieRule": {
281
+ "const": "defer"
282
+ }
283
+ }
284
+ },
285
+ "disagreement": {
286
+ "type": "object",
287
+ "additionalProperties": false,
288
+ "required": [
289
+ "metric",
290
+ "thresholdBps",
291
+ "onExceeded"
292
+ ],
293
+ "properties": {
294
+ "metric": {
295
+ "const": "jensen-shannon-v1"
296
+ },
297
+ "thresholdBps": {
298
+ "const": 1000
299
+ },
300
+ "onExceeded": {
301
+ "const": "defer"
302
+ }
303
+ }
304
+ },
305
+ "acceptance": {
306
+ "type": "object",
307
+ "additionalProperties": false,
308
+ "required": [
309
+ "minimumSuccessfulMembers",
310
+ "onInsufficientMembers",
311
+ "highAgreementWarningBps"
312
+ ],
313
+ "properties": {
314
+ "minimumSuccessfulMembers": {
315
+ "const": 3
316
+ },
317
+ "onInsufficientMembers": {
318
+ "const": "defer"
319
+ },
320
+ "highAgreementWarningBps": {
321
+ "const": 100
322
+ }
323
+ }
324
+ },
325
+ "calibration": {
326
+ "type": "object",
327
+ "additionalProperties": false,
328
+ "required": [
329
+ "requirement"
330
+ ],
331
+ "properties": {
332
+ "requirement": {
333
+ "const": "required"
334
+ }
335
+ }
336
+ },
337
+ "ceilings": {
338
+ "type": "object",
339
+ "additionalProperties": false,
340
+ "required": [
341
+ "members",
342
+ "attempts",
343
+ "deadlineMs",
344
+ "tokens",
345
+ "costMicros",
346
+ "concurrency",
347
+ "fallbackDepth",
348
+ "unknownCost"
349
+ ],
350
+ "properties": {
351
+ "members": {
352
+ "const": 3
353
+ },
354
+ "attempts": {
355
+ "const": 6
356
+ },
357
+ "deadlineMs": {
358
+ "const": 360000
359
+ },
360
+ "tokens": {
361
+ "const": 24000
362
+ },
363
+ "costMicros": {
364
+ "const": 2400
365
+ },
366
+ "concurrency": {
367
+ "const": 1
368
+ },
369
+ "fallbackDepth": {
370
+ "const": 0
371
+ },
372
+ "unknownCost": {
373
+ "type": "object",
374
+ "additionalProperties": false,
375
+ "required": [
376
+ "rule"
377
+ ],
378
+ "properties": {
379
+ "rule": {
380
+ "const": "reject"
381
+ }
382
+ }
383
+ }
384
+ }
385
+ }
386
+ }
387
+ },
388
+ "comparison": {
389
+ "type": "object",
390
+ "additionalProperties": false,
391
+ "required": [
392
+ "schemaVersion",
393
+ "id",
394
+ "alias",
395
+ "champion",
396
+ "challenger",
397
+ "inputSet",
398
+ "pairedMetrics",
399
+ "preregistration",
400
+ "eligibilityId",
401
+ "evaluationIntegrityReport",
402
+ "approval",
403
+ "rollbackTarget"
404
+ ],
405
+ "properties": {
406
+ "schemaVersion": {
407
+ "const": "decision-champion-challenger/v1"
408
+ },
409
+ "id": {
410
+ "const": "d17-heldout-paired"
411
+ },
412
+ "alias": {
413
+ "type": "null"
414
+ },
415
+ "champion": {
416
+ "type": "object",
417
+ "additionalProperties": false,
418
+ "required": [
419
+ "identityDigest",
420
+ "actualModel",
421
+ "binding",
422
+ "adapter",
423
+ "calibration",
424
+ "ensemblePolicy",
425
+ "aliasRevision"
426
+ ],
427
+ "properties": {
428
+ "identityDigest": {
429
+ "type": "null"
430
+ },
431
+ "actualModel": {
432
+ "const": "jev-1.13.0"
433
+ },
434
+ "binding": {
435
+ "type": "null"
436
+ },
437
+ "adapter": {
438
+ "type": "object",
439
+ "additionalProperties": false,
440
+ "required": [
441
+ "id",
442
+ "version"
443
+ ],
444
+ "properties": {
445
+ "id": {
446
+ "const": "jev"
447
+ },
448
+ "version": {
449
+ "const": "1.0.0"
450
+ }
451
+ }
452
+ },
453
+ "calibration": {
454
+ "type": "null"
455
+ },
456
+ "ensemblePolicy": {
457
+ "type": "null"
458
+ },
459
+ "aliasRevision": {
460
+ "type": "null"
461
+ }
462
+ }
463
+ },
464
+ "challenger": {
465
+ "type": "object",
466
+ "additionalProperties": false,
467
+ "required": [
468
+ "identityDigest",
469
+ "actualModel",
470
+ "binding",
471
+ "adapter",
472
+ "calibration",
473
+ "ensemblePolicy"
474
+ ],
475
+ "properties": {
476
+ "identityDigest": {
477
+ "type": "null"
478
+ },
479
+ "actualModel": {
480
+ "const": "jev-1.13.0"
481
+ },
482
+ "binding": {
483
+ "type": "null"
484
+ },
485
+ "adapter": {
486
+ "type": "object",
487
+ "additionalProperties": false,
488
+ "required": [
489
+ "id",
490
+ "version"
491
+ ],
492
+ "properties": {
493
+ "id": {
494
+ "const": "jev"
495
+ },
496
+ "version": {
497
+ "const": "1.0.0"
498
+ }
499
+ }
500
+ },
501
+ "calibration": {
502
+ "type": "null"
503
+ },
504
+ "ensemblePolicy": {
505
+ "type": "null"
506
+ }
507
+ }
508
+ },
509
+ "inputSet": {
510
+ "type": "object",
511
+ "additionalProperties": false,
512
+ "required": [
513
+ "id",
514
+ "digest",
515
+ "itemCount",
516
+ "frozenAt",
517
+ "purpose"
518
+ ],
519
+ "properties": {
520
+ "id": {
521
+ "const": "d17-final-test"
522
+ },
523
+ "digest": {
524
+ "type": "string",
525
+ "pattern": "^sha256:[a-f0-9]{64}$"
526
+ },
527
+ "itemCount": {
528
+ "const": 1200
529
+ },
530
+ "frozenAt": {
531
+ "const": "2026-09-30T00:00:00Z"
532
+ },
533
+ "purpose": {
534
+ "const": "held-out"
535
+ }
536
+ }
537
+ },
538
+ "pairedMetrics": {
539
+ "$ref": "https://aiwg.io/schemas/decision/D17StudyProtocol.v1.schema.json#/properties/native"
540
+ },
541
+ "preregistration": {
542
+ "type": "object",
543
+ "additionalProperties": false,
544
+ "required": [
545
+ "thresholdsDigest",
546
+ "registeredAt",
547
+ "holdoutAccessedAt"
548
+ ],
549
+ "properties": {
550
+ "thresholdsDigest": {
551
+ "type": "string",
552
+ "pattern": "^sha256:[a-f0-9]{64}$"
553
+ },
554
+ "registeredAt": {
555
+ "const": "2026-09-30T00:00:00Z"
556
+ },
557
+ "holdoutAccessedAt": {
558
+ "type": "null"
559
+ }
560
+ }
561
+ },
562
+ "eligibilityId": {
563
+ "type": "null"
564
+ },
565
+ "evaluationIntegrityReport": {
566
+ "type": "object",
567
+ "additionalProperties": false,
568
+ "required": [
569
+ "id",
570
+ "digest"
571
+ ],
572
+ "properties": {
573
+ "id": {
574
+ "type": "null"
575
+ },
576
+ "digest": {
577
+ "type": "null"
578
+ }
579
+ }
580
+ },
581
+ "approval": {
582
+ "type": "object",
583
+ "additionalProperties": false,
584
+ "required": [
585
+ "reference",
586
+ "approvedAt"
587
+ ],
588
+ "properties": {
589
+ "reference": {
590
+ "type": "null"
591
+ },
592
+ "approvedAt": {
593
+ "type": "null"
594
+ }
595
+ }
596
+ },
597
+ "rollbackTarget": {
598
+ "type": "object",
599
+ "additionalProperties": false,
600
+ "required": [
601
+ "aliasRevision",
602
+ "identityDigest"
603
+ ],
604
+ "properties": {
605
+ "aliasRevision": {
606
+ "type": "null"
607
+ },
608
+ "identityDigest": {
609
+ "type": "null"
610
+ }
611
+ }
612
+ }
613
+ }
614
+ },
615
+ "instructions": {
616
+ "const": "Complete all null pins from immutable D09/execution records, validate native policy and comparison, and externally approve before use. Templates confer no eligibility or promotion."
617
+ }
618
+ }
619
+ }