@aiwg/cli 2026.9.24 → 2026.10.1

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 (209) hide show
  1. package/agentic/code/providers/capability-matrix.yaml +2 -1
  2. package/dist/src/artifacts/discovery-shadow-evaluator.js +177 -0
  3. package/dist/src/artifacts/discovery-shadow.js +195 -0
  4. package/dist/src/artifacts/index-builder.js +47 -9
  5. package/dist/src/artifacts/query-engine.js +94 -1
  6. package/dist/src/artifacts/types.js +1 -0
  7. package/dist/src/cli/handlers/decision.js +177 -0
  8. package/dist/src/cli/handlers/gates.js +154 -0
  9. package/dist/src/cli/handlers/index.js +5 -1
  10. package/dist/src/cli/handlers/sessions.js +10 -7
  11. package/dist/src/cli/handlers/utilities.js +20 -0
  12. package/dist/src/config/aiwg-config.js +15 -2
  13. package/dist/src/decision/acceptance.js +25 -0
  14. package/dist/src/decision/adapters/jev.js +29 -3
  15. package/dist/src/decision/ask.js +352 -0
  16. package/dist/src/decision/calibration/registry.js +9 -0
  17. package/dist/src/decision/compose.js +74 -15
  18. package/dist/src/decision/context-live-promotion.js +344 -0
  19. package/dist/src/decision/context-live-qualification.js +591 -0
  20. package/dist/src/decision/context-pruning.js +847 -0
  21. package/dist/src/decision/driver.js +432 -0
  22. package/dist/src/decision/egress-live-qualification.js +874 -0
  23. package/dist/src/decision/ensemble/contract.js +64 -1
  24. package/dist/src/decision/ensemble/index.js +1 -0
  25. package/dist/src/decision/ensemble/report.js +8 -42
  26. package/dist/src/decision/ensemble/runtime.js +571 -0
  27. package/dist/src/decision/ensemble-study/artifacts.js +85 -0
  28. package/dist/src/decision/ensemble-study/calibration.js +443 -0
  29. package/dist/src/decision/ensemble-study/corpus.js +229 -0
  30. package/dist/src/decision/ensemble-study/multifact-artifacts.js +23 -0
  31. package/dist/src/decision/ensemble-study/multifact-study.js +596 -0
  32. package/dist/src/decision/ensemble-study/multifact.js +241 -0
  33. package/dist/src/decision/ensemble-study/protocol.js +77 -0
  34. package/dist/src/decision/ensemble-study/score.js +462 -0
  35. package/dist/src/decision/ensemble-study/staged.js +87 -0
  36. package/dist/src/decision/ensemble-study/statistics.js +84 -0
  37. package/dist/src/decision/evaluate.js +227 -14
  38. package/dist/src/decision/export.js +4 -0
  39. package/dist/src/decision/feature-export.js +1074 -0
  40. package/dist/src/decision/graph-index.js +16 -0
  41. package/dist/src/decision/graph-live-qualification.js +1041 -0
  42. package/dist/src/decision/graph-live-workload.js +245 -0
  43. package/dist/src/decision/graph-skill-bridge.js +21 -3
  44. package/dist/src/decision/heldout/calibration.js +140 -0
  45. package/dist/src/decision/heldout/collector.js +430 -0
  46. package/dist/src/decision/heldout/contract.js +309 -0
  47. package/dist/src/decision/heldout/d29-generator-ids.js +12 -0
  48. package/dist/src/decision/heldout/d29-passage-baseline-v2.js +93 -0
  49. package/dist/src/decision/heldout/d29-passage-baseline-v3.js +100 -0
  50. package/dist/src/decision/heldout/d29-passage-baseline.js +66 -0
  51. package/dist/src/decision/heldout/d29-pools-v8.js +575 -0
  52. package/dist/src/decision/heldout/d29-pools.js +288 -0
  53. package/dist/src/decision/heldout/d29-v6.js +169 -0
  54. package/dist/src/decision/heldout/d29-v7.js +202 -0
  55. package/dist/src/decision/heldout/d29-v8.js +586 -0
  56. package/dist/src/decision/heldout/generator-registry.js +67 -0
  57. package/dist/src/decision/heldout/generators.js +696 -0
  58. package/dist/src/decision/heldout/index.js +8 -0
  59. package/dist/src/decision/heldout/journal.js +346 -0
  60. package/dist/src/decision/heldout/study-generators.js +64 -0
  61. package/dist/src/decision/heldout/types.js +2 -0
  62. package/dist/src/decision/host-policy.js +61 -0
  63. package/dist/src/decision/index.js +13 -0
  64. package/dist/src/decision/interop-profile.v1.json +112 -0
  65. package/dist/src/decision/interop.js +653 -0
  66. package/dist/src/decision/issue-triage/index.js +3 -0
  67. package/dist/src/decision/issue-triage/runtime.js +1069 -0
  68. package/dist/src/decision/issue-triage/types.js +2 -0
  69. package/dist/src/decision/jev-credentials.js +121 -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/quality.js +57 -49
  77. package/dist/src/decision/qualification/release.js +76 -3
  78. package/dist/src/decision/qualification/runner.js +5 -2
  79. package/dist/src/decision/routing/contract.js +175 -0
  80. package/dist/src/decision/routing/index.js +5 -0
  81. package/dist/src/decision/routing/report.js +216 -0
  82. package/dist/src/decision/routing/runtime.js +685 -0
  83. package/dist/src/decision/routing/types.js +2 -0
  84. package/dist/src/decision/sdlc-screening.js +1157 -0
  85. package/dist/src/decision/sensitivity/comparative.js +154 -0
  86. package/dist/src/decision/sensitivity/contract.js +218 -0
  87. package/dist/src/decision/sensitivity/index.js +5 -0
  88. package/dist/src/decision/sensitivity/runtime.js +912 -0
  89. package/dist/src/decision/sensitivity/types.js +2 -0
  90. package/dist/src/decision/validate.js +26 -0
  91. package/dist/src/extensions/commands/definitions.js +38 -0
  92. package/dist/src/extensions/manifest.js +44 -0
  93. package/dist/src/gates/discovery.js +315 -0
  94. package/dist/src/gates/driver.js +388 -0
  95. package/dist/src/gates/evaluate.js +719 -0
  96. package/dist/src/gates/floors.js +255 -0
  97. package/dist/src/gates/index.js +17 -0
  98. package/dist/src/gates/providers/evidence.js +38 -0
  99. package/dist/src/gates/providers/index.js +21 -0
  100. package/dist/src/gates/providers/isolated-child-source.js +446 -0
  101. package/dist/src/gates/providers/loader.js +1069 -0
  102. package/dist/src/gates/providers/paired.js +52 -0
  103. package/dist/src/gates/providers/proportion.js +60 -0
  104. package/dist/src/gates/providers/registry.js +40 -0
  105. package/dist/src/gates/providers/scalar.js +41 -0
  106. package/dist/src/gates/providers/screening.js +53 -0
  107. package/dist/src/gates/providers/types.js +25 -0
  108. package/dist/src/gates/registry.js +1003 -0
  109. package/dist/src/gates/report.js +102 -0
  110. package/dist/src/gates/schema.js +56 -0
  111. package/dist/src/gates/stats/binomial.js +26 -0
  112. package/dist/src/gates/stats/bootstrap.js +62 -0
  113. package/dist/src/gates/stats/clopper-pearson.js +95 -0
  114. package/dist/src/gates/stats/digest.js +26 -0
  115. package/dist/src/gates/stats/error.js +5 -0
  116. package/dist/src/gates/stats/index.js +9 -0
  117. package/dist/src/gates/stats/normal.js +35 -0
  118. package/dist/src/gates/stats/paired.js +120 -0
  119. package/dist/src/gates/stats/splits.js +30 -0
  120. package/dist/src/gates/types.js +8 -0
  121. package/dist/src/governance/redaction.js +14 -4
  122. package/dist/src/mcp/muse-native-config.mjs +123 -0
  123. package/dist/src/mcp/tools/decision.mjs +228 -0
  124. package/dist/src/mcp/tools/subsystems.mjs +2 -0
  125. package/dist/src/providers/capability-matrix.yaml +2 -1
  126. package/dist/src/providers/provider-definitions.js +2 -1
  127. package/dist/src/sessions/adapters/muse.js +336 -39
  128. package/dist/src/sessions/batch-import.js +7 -0
  129. package/dist/src/sessions/workspace-discovery.js +13 -2
  130. package/package.json +1 -1
  131. package/schemas/decision/ConformalFrozenOpenData.v2.schema.json +371 -0
  132. package/schemas/decision/ConformalOpenDataReport.v2.schema.json +421 -0
  133. package/schemas/decision/ConformalPreregistration.v2.schema.json +529 -0
  134. package/schemas/decision/ContextPruningCandidate.v1.schema.json +47 -0
  135. package/schemas/decision/ContextPruningEvaluationReport.v1.schema.json +758 -0
  136. package/schemas/decision/ContextPruningPreregistration.v1.schema.json +175 -0
  137. package/schemas/decision/ContextPruningReceipt.v1.schema.json +72 -0
  138. package/schemas/decision/D17Multifact.v1.schema.json +1851 -0
  139. package/schemas/decision/D17StudyAnalysis.v1.schema.json +42 -0
  140. package/schemas/decision/D17StudyAnalysis.v2.schema.json +51 -0
  141. package/schemas/decision/D17StudyCalibration.v1.schema.json +819 -0
  142. package/schemas/decision/D17StudyDryRun.v1.schema.json +169 -0
  143. package/schemas/decision/D17StudyDryRun.v2.schema.json +239 -0
  144. package/schemas/decision/D17StudyGold.v1.schema.json +108 -0
  145. package/schemas/decision/D17StudyGuide.v1.schema.json +63 -0
  146. package/schemas/decision/D17StudyNativeTemplates.v1.schema.json +619 -0
  147. package/schemas/decision/D17StudyProtocol.v1.schema.json +241 -0
  148. package/schemas/decision/D17StudyReport.v1.schema.json +902 -0
  149. package/schemas/decision/D17StudyReport.v2.schema.json +1319 -0
  150. package/schemas/decision/D17StudyReview.v1.schema.json +175 -0
  151. package/schemas/decision/D17StudySplits.v1.schema.json +217 -0
  152. package/schemas/decision/D29Study.v1.schema.json +1903 -0
  153. package/schemas/decision/D29Study.v2.schema.json +1344 -0
  154. package/schemas/decision/D29Study.v3.schema.json +609 -0
  155. package/schemas/decision/D29Study.v4.schema.json +1133 -0
  156. package/schemas/decision/D29Study.v6.schema.json +1205 -0
  157. package/schemas/decision/D29Study.v7.schema.json +1471 -0
  158. package/schemas/decision/D29Study.v8.schema.json +671 -0
  159. package/schemas/decision/D29Study.v9.schema.json +778 -0
  160. package/schemas/decision/DecisionComparativeReplayAuditSample.v1.schema.json +137 -0
  161. package/schemas/decision/DecisionComparativeReplayCorpus.v1.schema.json +258 -0
  162. package/schemas/decision/DecisionComparativeReplayFreeze.v1.schema.json +74 -0
  163. package/schemas/decision/DecisionComparativeReplayGold.v1.schema.json +50 -0
  164. package/schemas/decision/DecisionComparativeReplayGoldAsset.v1.schema.json +37 -0
  165. package/schemas/decision/DecisionComparativeReplayIntegrity.v1.schema.json +81 -0
  166. package/schemas/decision/DecisionComparativeReplayMembers.v1.schema.json +52 -0
  167. package/schemas/decision/DecisionComparativeReplayPreregistration.v1.schema.json +113 -0
  168. package/schemas/decision/DecisionComparativeReplayReport.v1.schema.json +407 -0
  169. package/schemas/decision/DecisionComparativeReplayReviewPackets.v1.schema.json +260 -0
  170. package/schemas/decision/DecisionComparativeReplaySplit.v1.schema.json +84 -0
  171. package/schemas/decision/DecisionFeatureObservation.v1.schema.json +564 -0
  172. package/schemas/decision/DecisionFeatureSet.v1.schema.json +155 -0
  173. package/schemas/decision/DecisionInteropMapping.v1.schema.json +85 -0
  174. package/schemas/decision/DecisionIssueTriageEvaluationManifest.v1.schema.json +174 -0
  175. package/schemas/decision/DecisionIssueTriageEvaluationReport.v1.schema.json +280 -0
  176. package/schemas/decision/DecisionIssueTriagePilotPack.v1.schema.json +114 -0
  177. package/schemas/decision/DecisionRouteReceipt.v1.schema.json +155 -0
  178. package/schemas/decision/DecisionRoutingPolicy.v1.schema.json +132 -0
  179. package/schemas/decision/DecisionRoutingShadowReport.v1.schema.json +170 -0
  180. package/schemas/decision/DecisionRoutingTask.v1.schema.json +49 -0
  181. package/schemas/decision/DecisionRuleset.schema.json +8 -2
  182. package/schemas/decision/DecisionRuleset.v1alpha2.schema.json +8 -2
  183. package/schemas/decision/DecisionSensitivityPlan.v1.schema.json +191 -0
  184. package/schemas/decision/DecisionSensitivityReport.v1.schema.json +163 -0
  185. package/schemas/decision/HeldoutApproval.v1.schema.json +312 -0
  186. package/schemas/decision/HeldoutAttempt.v1.schema.json +211 -0
  187. package/schemas/decision/HeldoutBaseline.v1.schema.json +90 -0
  188. package/schemas/decision/HeldoutCalibrationPhase.v1.schema.json +87 -0
  189. package/schemas/decision/HeldoutCorpus.v1.schema.json +167 -0
  190. package/schemas/decision/HeldoutEvent.v1.schema.json +41 -0
  191. package/schemas/decision/HeldoutFrozen.v1.schema.json +142 -0
  192. package/schemas/decision/HeldoutPreregistration.v1.schema.json +222 -0
  193. package/schemas/decision/HeldoutSpendEvent.v1.schema.json +122 -0
  194. package/schemas/decision/HeldoutSpendHead.v1.schema.json +25 -0
  195. package/schemas/decision/HeldoutSpendHead.v2.schema.json +46 -0
  196. package/schemas/decision/HeldoutSummary.v1.schema.json +101 -0
  197. package/schemas/decision/OpaDecisionLogExport.v1.schema.json +65 -0
  198. package/schemas/decision/PreprocessedEvidence.v1.schema.json +306 -0
  199. package/schemas/decision/RulesetResult.v1alpha2.schema.json +175 -0
  200. package/schemas/decision/SdlcEvidenceScreening.v1.schema.json +499 -0
  201. package/schemas/decision/SdlcScreeningPreregistration.v1.schema.json +132 -0
  202. package/schemas/decision/SdlcScreeningPreregistration.v2.schema.json +138 -0
  203. package/schemas/decision/SdlcScreeningRelease.v1.schema.json +654 -0
  204. package/schemas/decision/SdlcScreeningRelease.v2.schema.json +654 -0
  205. package/tools/agents/deploy-agents.mjs +1 -1
  206. package/tools/agents/providers/base.mjs +40 -18
  207. package/tools/agents/providers/factory.mjs +10 -2
  208. package/tools/agents/providers/muse-hooks.mjs +1 -29
  209. package/tools/agents/providers/muse.mjs +6 -3
@@ -0,0 +1,778 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aiwg.io/schemas/decision/D29Study.v9.schema.json",
4
+ "title": "D29Study v9",
5
+ "description": "D29 study artifacts for generator d29-synthetic/v8: every v8 artifact, the v5 shortcut audit (per-pool, per-target structural, surface, claim-rendering, character n-gram, lexicon and model rules with train-to-test transfer) and the v7 analysis that records every audit parameter and the passing audit digest.",
6
+ "oneOf": [
7
+ {
8
+ "$ref": "https://aiwg.io/schemas/decision/D29Study.v8.schema.json"
9
+ },
10
+ {
11
+ "$ref": "#/$defs/audit"
12
+ },
13
+ {
14
+ "$ref": "#/$defs/analysisV7"
15
+ }
16
+ ],
17
+ "$defs": {
18
+ "audit": {
19
+ "type": "object",
20
+ "additionalProperties": false,
21
+ "required": [
22
+ "schemaVersion",
23
+ "pools",
24
+ "injectionPopulation",
25
+ "injectionLexiconTransfer",
26
+ "labelDefiningPhrases",
27
+ "pairFeatureLimit",
28
+ "structuralPairLimit",
29
+ "pairSelection",
30
+ "lexiconSelection",
31
+ "modelLeakage",
32
+ "featureFamilies",
33
+ "topRules",
34
+ "passed"
35
+ ],
36
+ "properties": {
37
+ "schemaVersion": {
38
+ "const": "decision-d29-shortcut-audit/v5"
39
+ },
40
+ "pools": {
41
+ "type": "array",
42
+ "items": {
43
+ "$ref": "#/$defs/pool"
44
+ },
45
+ "minItems": 2,
46
+ "maxItems": 2
47
+ },
48
+ "injectionPopulation": {
49
+ "const": "injected-or-otherwise-supporting-or-ready-evidence",
50
+ "description": "Population of the injection target: injected rows versus non-injected rows whose evidence would otherwise be supporting (citation) or ready (criterion); injected rows carry only such evidence by slice design."
51
+ },
52
+ "labelDefiningPhrases": {
53
+ "const": ["the item under review", "the claim under review", "the evidence under review", "in this review", "from this review"],
54
+ "description": "Operator-accepted label-defining referent phrases (round 15): every injection instruction carries exactly one to name this screening; benign wording never does. Masked from every lexical feature and from the pool-transfer lexicon."
55
+ },
56
+ "injectionLexiconTransfer": {
57
+ "type": "array",
58
+ "description": "Word 2-3-gram injection lexicon learned on one wording pool (n-grams in at least 5 injected rows and no non-injected row of the injection population) and scored on the other, both ways; each must stay below the injection limit.",
59
+ "minItems": 2,
60
+ "maxItems": 2,
61
+ "items": {
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": ["fromPool", "toPool", "terms", "balancedAccuracy", "limit", "passed"],
65
+ "properties": {
66
+ "fromPool": { "enum": ["train", "test"] },
67
+ "toPool": { "enum": ["train", "test"] },
68
+ "terms": { "type": "integer", "minimum": 0 },
69
+ "balancedAccuracy": { "type": "number", "minimum": 0, "maximum": 1 },
70
+ "limit": { "const": 0.75 },
71
+ "passed": { "type": "boolean" }
72
+ }
73
+ }
74
+ },
75
+ "pairFeatureLimit": {
76
+ "const": 200
77
+ },
78
+ "structuralPairLimit": {
79
+ "const": 400
80
+ },
81
+ "pairSelection": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ },
85
+ "lexiconSelection": {
86
+ "type": "string",
87
+ "minLength": 1
88
+ },
89
+ "modelLeakage": {
90
+ "type": "string",
91
+ "minLength": 1
92
+ },
93
+ "featureFamilies": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string",
97
+ "minLength": 1
98
+ },
99
+ "minItems": 1,
100
+ "uniqueItems": true
101
+ },
102
+ "topRules": {
103
+ "type": "array",
104
+ "items": {
105
+ "$ref": "#/$defs/rule"
106
+ },
107
+ "maxItems": 10
108
+ },
109
+ "passed": {
110
+ "type": "boolean"
111
+ }
112
+ }
113
+ },
114
+ "pool": {
115
+ "type": "object",
116
+ "additionalProperties": false,
117
+ "required": [
118
+ "pool",
119
+ "splits",
120
+ "n",
121
+ "targets",
122
+ "lexicon",
123
+ "models",
124
+ "transfer",
125
+ "passed"
126
+ ],
127
+ "properties": {
128
+ "pool": {
129
+ "enum": [
130
+ "train",
131
+ "test"
132
+ ]
133
+ },
134
+ "splits": {
135
+ "type": "array",
136
+ "items": {
137
+ "enum": [
138
+ "tuning",
139
+ "calibration",
140
+ "test"
141
+ ]
142
+ },
143
+ "minItems": 1,
144
+ "maxItems": 2,
145
+ "uniqueItems": true
146
+ },
147
+ "n": {
148
+ "type": "integer",
149
+ "minimum": 1
150
+ },
151
+ "targets": {
152
+ "type": "array",
153
+ "items": {
154
+ "$ref": "#/$defs/targetEntry"
155
+ },
156
+ "minItems": 6,
157
+ "maxItems": 6
158
+ },
159
+ "lexicon": {
160
+ "type": "array",
161
+ "items": {
162
+ "$ref": "#/$defs/lexicon"
163
+ },
164
+ "minItems": 6,
165
+ "maxItems": 6
166
+ },
167
+ "models": {
168
+ "type": "array",
169
+ "items": {
170
+ "$ref": "#/$defs/model"
171
+ },
172
+ "minItems": 6,
173
+ "maxItems": 6
174
+ },
175
+ "transfer": {
176
+ "oneOf": [
177
+ {
178
+ "type": "null"
179
+ },
180
+ {
181
+ "type": "object",
182
+ "additionalProperties": false,
183
+ "required": [
184
+ "toPool",
185
+ "targets"
186
+ ],
187
+ "properties": {
188
+ "toPool": {
189
+ "const": "test"
190
+ },
191
+ "targets": {
192
+ "type": "array",
193
+ "items": {
194
+ "$ref": "#/$defs/transferTarget"
195
+ },
196
+ "minItems": 6,
197
+ "maxItems": 6
198
+ }
199
+ }
200
+ }
201
+ ]
202
+ },
203
+ "passed": {
204
+ "type": "boolean"
205
+ }
206
+ }
207
+ },
208
+ "targetEntry": {
209
+ "type": "object",
210
+ "additionalProperties": false,
211
+ "required": [
212
+ "target",
213
+ "positives",
214
+ "negatives",
215
+ "limit",
216
+ "featureCount",
217
+ "pairFeatureCount",
218
+ "pairRuleCount",
219
+ "maximumSingleBalancedAccuracy",
220
+ "maximumPairBalancedAccuracy",
221
+ "maximumStructuralBalancedAccuracy",
222
+ "maximumClaimRelativeBalancedAccuracy",
223
+ "maximumLexicalBalancedAccuracy",
224
+ "maximumBalancedAccuracy",
225
+ "topSingleRules",
226
+ "topPairRules",
227
+ "passed"
228
+ ],
229
+ "properties": {
230
+ "target": {
231
+ "$ref": "#/$defs/target"
232
+ },
233
+ "positives": {
234
+ "type": "integer",
235
+ "minimum": 1
236
+ },
237
+ "negatives": {
238
+ "type": "integer",
239
+ "minimum": 1
240
+ },
241
+ "limit": {
242
+ "$ref": "#/$defs/limit"
243
+ },
244
+ "featureCount": {
245
+ "type": "integer",
246
+ "minimum": 0
247
+ },
248
+ "pairFeatureCount": {
249
+ "type": "integer",
250
+ "minimum": 0
251
+ },
252
+ "pairRuleCount": {
253
+ "type": "integer",
254
+ "minimum": 0
255
+ },
256
+ "maximumSingleBalancedAccuracy": {
257
+ "$ref": "#/$defs/balancedAccuracy"
258
+ },
259
+ "maximumPairBalancedAccuracy": {
260
+ "$ref": "#/$defs/balancedAccuracy"
261
+ },
262
+ "maximumStructuralBalancedAccuracy": {
263
+ "$ref": "#/$defs/balancedAccuracy"
264
+ },
265
+ "maximumClaimRelativeBalancedAccuracy": {
266
+ "$ref": "#/$defs/balancedAccuracy"
267
+ },
268
+ "maximumLexicalBalancedAccuracy": {
269
+ "$ref": "#/$defs/balancedAccuracy"
270
+ },
271
+ "maximumBalancedAccuracy": {
272
+ "$ref": "#/$defs/balancedAccuracy"
273
+ },
274
+ "topSingleRules": {
275
+ "type": "array",
276
+ "items": {
277
+ "$ref": "#/$defs/rule"
278
+ },
279
+ "maxItems": 10
280
+ },
281
+ "topPairRules": {
282
+ "type": "array",
283
+ "items": {
284
+ "$ref": "#/$defs/rule"
285
+ },
286
+ "maxItems": 10
287
+ },
288
+ "passed": {
289
+ "type": "boolean"
290
+ }
291
+ }
292
+ },
293
+ "lexicon": {
294
+ "type": "object",
295
+ "additionalProperties": false,
296
+ "required": [
297
+ "target",
298
+ "limit",
299
+ "balancedAccuracy",
300
+ "rule"
301
+ ],
302
+ "properties": {
303
+ "target": {
304
+ "$ref": "#/$defs/target"
305
+ },
306
+ "limit": {
307
+ "$ref": "#/$defs/limit"
308
+ },
309
+ "balancedAccuracy": {
310
+ "$ref": "#/$defs/balancedAccuracy"
311
+ },
312
+ "transferBalancedAccuracy": {
313
+ "$ref": "#/$defs/balancedAccuracy"
314
+ },
315
+ "rule": {
316
+ "type": "string",
317
+ "pattern": "^OR\\(.*\\)$"
318
+ }
319
+ }
320
+ },
321
+ "model": {
322
+ "type": "object",
323
+ "additionalProperties": false,
324
+ "required": [
325
+ "target",
326
+ "limit",
327
+ "treeBalancedAccuracy",
328
+ "logisticBalancedAccuracy"
329
+ ],
330
+ "properties": {
331
+ "target": {
332
+ "$ref": "#/$defs/target"
333
+ },
334
+ "limit": {
335
+ "$ref": "#/$defs/modelLimit"
336
+ },
337
+ "treeBalancedAccuracy": {
338
+ "$ref": "#/$defs/balancedAccuracy"
339
+ },
340
+ "logisticBalancedAccuracy": {
341
+ "$ref": "#/$defs/balancedAccuracy"
342
+ },
343
+ "treeTransferBalancedAccuracy": {
344
+ "$ref": "#/$defs/balancedAccuracy"
345
+ },
346
+ "logisticTransferBalancedAccuracy": {
347
+ "$ref": "#/$defs/balancedAccuracy"
348
+ }
349
+ }
350
+ },
351
+ "transferTarget": {
352
+ "type": "object",
353
+ "additionalProperties": false,
354
+ "required": [
355
+ "target",
356
+ "limit",
357
+ "modelLimit",
358
+ "single",
359
+ "pair",
360
+ "lexicon",
361
+ "model",
362
+ "passed"
363
+ ],
364
+ "properties": {
365
+ "target": {
366
+ "$ref": "#/$defs/target"
367
+ },
368
+ "limit": {
369
+ "$ref": "#/$defs/limit"
370
+ },
371
+ "modelLimit": {
372
+ "$ref": "#/$defs/modelLimit"
373
+ },
374
+ "single": {
375
+ "$ref": "#/$defs/balancedAccuracy"
376
+ },
377
+ "pair": {
378
+ "$ref": "#/$defs/balancedAccuracy"
379
+ },
380
+ "lexicon": {
381
+ "$ref": "#/$defs/balancedAccuracy"
382
+ },
383
+ "model": {
384
+ "$ref": "#/$defs/balancedAccuracy"
385
+ },
386
+ "passed": {
387
+ "type": "boolean"
388
+ }
389
+ }
390
+ },
391
+ "rule": {
392
+ "type": "object",
393
+ "additionalProperties": false,
394
+ "required": [
395
+ "target",
396
+ "feature",
397
+ "operator",
398
+ "polarity",
399
+ "balancedAccuracy"
400
+ ],
401
+ "properties": {
402
+ "pool": {
403
+ "enum": [
404
+ "train",
405
+ "test"
406
+ ]
407
+ },
408
+ "target": {
409
+ "$ref": "#/$defs/target"
410
+ },
411
+ "feature": {
412
+ "type": "string",
413
+ "minLength": 1
414
+ },
415
+ "operator": {
416
+ "enum": [
417
+ "single",
418
+ "AND",
419
+ "OR"
420
+ ]
421
+ },
422
+ "polarity": {
423
+ "enum": [
424
+ "present",
425
+ "absent"
426
+ ]
427
+ },
428
+ "balancedAccuracy": {
429
+ "$ref": "#/$defs/balancedAccuracy"
430
+ }
431
+ }
432
+ },
433
+ "target": {
434
+ "enum": [
435
+ "injection",
436
+ "readiness",
437
+ "supports",
438
+ "contradicts",
439
+ "unclear",
440
+ "does-not-support"
441
+ ]
442
+ },
443
+ "balancedAccuracy": {
444
+ "type": "number",
445
+ "minimum": 0,
446
+ "maximum": 1
447
+ },
448
+ "limit": {
449
+ "enum": [
450
+ 0.75,
451
+ 0.8
452
+ ]
453
+ },
454
+ "modelLimit": {
455
+ "enum": [
456
+ 0.8,
457
+ 0.85
458
+ ]
459
+ },
460
+ "analysisV7": {
461
+ "type": "object",
462
+ "additionalProperties": false,
463
+ "required": [
464
+ "schemaVersion",
465
+ "syntheticOnly",
466
+ "splits",
467
+ "native",
468
+ "gateBinding",
469
+ "calibration",
470
+ "review",
471
+ "missingPolicy",
472
+ "conditionalRates",
473
+ "comparators",
474
+ "shortcutAudit"
475
+ ],
476
+ "properties": {
477
+ "schemaVersion": {
478
+ "const": "decision-d29-analysis/v7"
479
+ },
480
+ "syntheticOnly": {
481
+ "const": true
482
+ },
483
+ "splits": {
484
+ "type": "array",
485
+ "items": {
486
+ "type": "object",
487
+ "additionalProperties": false,
488
+ "required": [
489
+ "name",
490
+ "ids",
491
+ "digest"
492
+ ],
493
+ "properties": {
494
+ "name": {
495
+ "enum": [
496
+ "tuning",
497
+ "calibration",
498
+ "test"
499
+ ]
500
+ },
501
+ "ids": {
502
+ "type": "array",
503
+ "items": {
504
+ "type": "string",
505
+ "minLength": 1
506
+ },
507
+ "minItems": 1,
508
+ "uniqueItems": true
509
+ },
510
+ "digest": {
511
+ "type": "string",
512
+ "pattern": "^sha256:[a-f0-9]{64}$"
513
+ }
514
+ }
515
+ },
516
+ "minItems": 3,
517
+ "maxItems": 3
518
+ },
519
+ "native": {
520
+ "$ref": "https://aiwg.io/schemas/decision/SdlcScreeningPreregistration.v2.schema.json"
521
+ },
522
+ "gateBinding": {
523
+ "$ref": "https://aiwg.io/schemas/gates/GateBinding.v1alpha1.schema.json"
524
+ },
525
+ "calibration": {
526
+ "type": "object",
527
+ "additionalProperties": false,
528
+ "required": [
529
+ "method",
530
+ "minimumCellN",
531
+ "smoothing",
532
+ "split",
533
+ "profile"
534
+ ],
535
+ "properties": {
536
+ "method": {
537
+ "const": "kind-and-safe-semantic-ready-frequency-v2"
538
+ },
539
+ "minimumCellN": {
540
+ "type": "integer",
541
+ "minimum": 1
542
+ },
543
+ "smoothing": {
544
+ "const": "laplace-1"
545
+ },
546
+ "split": {
547
+ "const": "calibration"
548
+ },
549
+ "profile": {
550
+ "$ref": "https://aiwg.io/schemas/decision/CalibrationArtifact.v1.schema.json#/properties/profile"
551
+ }
552
+ }
553
+ },
554
+ "review": {
555
+ "type": "object",
556
+ "additionalProperties": false,
557
+ "required": [
558
+ "development",
559
+ "holdout",
560
+ "delayedRepeats",
561
+ "reviewer"
562
+ ],
563
+ "properties": {
564
+ "development": {
565
+ "const": 50
566
+ },
567
+ "holdout": {
568
+ "const": 100
569
+ },
570
+ "delayedRepeats": {
571
+ "const": 15
572
+ },
573
+ "reviewer": {
574
+ "const": "roctinam"
575
+ }
576
+ }
577
+ },
578
+ "missingPolicy": {
579
+ "const": "withhold-native-report; complete-case-description; missing-as-error"
580
+ },
581
+ "conditionalRates": {
582
+ "type": "array",
583
+ "items": {
584
+ "type": "string",
585
+ "minLength": 1
586
+ },
587
+ "minItems": 4,
588
+ "maxItems": 4,
589
+ "uniqueItems": true
590
+ },
591
+ "comparators": {
592
+ "type": "object",
593
+ "additionalProperties": false,
594
+ "required": [
595
+ "primary",
596
+ "secondary",
597
+ "passageV1",
598
+ "ceiling"
599
+ ],
600
+ "properties": {
601
+ "primary": {
602
+ "type": "object",
603
+ "additionalProperties": false,
604
+ "required": [
605
+ "id",
606
+ "sourceDigest"
607
+ ],
608
+ "properties": {
609
+ "id": {
610
+ "const": "d29-passage-baseline/v3",
611
+ "description": "Frozen train-only primary comparator for generator v8."
612
+ },
613
+ "sourceDigest": {
614
+ "type": "string",
615
+ "pattern": "^sha256:[0-9a-f]{64}$"
616
+ }
617
+ }
618
+ },
619
+ "secondary": {
620
+ "type": "object",
621
+ "additionalProperties": false,
622
+ "required": [
623
+ "id",
624
+ "sourceDigest"
625
+ ],
626
+ "properties": {
627
+ "id": {
628
+ "const": "d29-baseline/v1"
629
+ },
630
+ "sourceDigest": {
631
+ "type": "string",
632
+ "pattern": "^sha256:[0-9a-f]{64}$"
633
+ }
634
+ }
635
+ },
636
+ "passageV1": {
637
+ "type": "object",
638
+ "additionalProperties": false,
639
+ "required": [
640
+ "id",
641
+ "sourceDigest"
642
+ ],
643
+ "properties": {
644
+ "id": {
645
+ "const": "d29-passage-baseline/v1"
646
+ },
647
+ "sourceDigest": {
648
+ "type": "string",
649
+ "pattern": "^sha256:[0-9a-f]{64}$"
650
+ }
651
+ }
652
+ },
653
+ "ceiling": {
654
+ "type": "object",
655
+ "additionalProperties": false,
656
+ "required": [
657
+ "id",
658
+ "sourceDigest"
659
+ ],
660
+ "properties": {
661
+ "id": {
662
+ "const": "d29-passage-baseline/v2"
663
+ },
664
+ "sourceDigest": {
665
+ "type": "string",
666
+ "pattern": "^sha256:[0-9a-f]{64}$"
667
+ }
668
+ }
669
+ }
670
+ }
671
+ },
672
+ "shortcutAudit": {
673
+ "type": "object",
674
+ "additionalProperties": false,
675
+ "required": [
676
+ "sourceDigest",
677
+ "pairFeatureLimit",
678
+ "structuralPairLimit",
679
+ "lexiconCandidates",
680
+ "lexiconMaxTerms",
681
+ "logisticFeatures",
682
+ "logisticIterations",
683
+ "folds",
684
+ "treeDepth",
685
+ "ngramSizes",
686
+ "injection",
687
+ "readiness",
688
+ "support",
689
+ "modelInjection",
690
+ "modelReadiness",
691
+ "modelSupport",
692
+ "injectionPopulation",
693
+ "injectionLexiconTransfer",
694
+ "labelDefiningPhrases",
695
+ "reportDigest",
696
+ "passed"
697
+ ],
698
+ "properties": {
699
+ "sourceDigest": {
700
+ "type": "string",
701
+ "pattern": "^sha256:[0-9a-f]{64}$"
702
+ },
703
+ "pairFeatureLimit": {
704
+ "const": 200
705
+ },
706
+ "structuralPairLimit": {
707
+ "const": 400
708
+ },
709
+ "lexiconCandidates": {
710
+ "const": 40
711
+ },
712
+ "lexiconMaxTerms": {
713
+ "const": 5
714
+ },
715
+ "logisticFeatures": {
716
+ "const": 120
717
+ },
718
+ "logisticIterations": {
719
+ "const": 40
720
+ },
721
+ "folds": {
722
+ "const": 5
723
+ },
724
+ "treeDepth": {
725
+ "const": 3
726
+ },
727
+ "ngramSizes": {
728
+ "const": [
729
+ 3,
730
+ 4,
731
+ 5
732
+ ]
733
+ },
734
+ "injection": {
735
+ "const": 0.75
736
+ },
737
+ "readiness": {
738
+ "const": 0.75
739
+ },
740
+ "support": {
741
+ "const": 0.8
742
+ },
743
+ "modelInjection": {
744
+ "const": 0.8
745
+ },
746
+ "modelReadiness": {
747
+ "const": 0.8
748
+ },
749
+ "modelSupport": {
750
+ "const": 0.85
751
+ },
752
+ "labelDefiningPhrases": {
753
+ "const": ["the item under review", "the claim under review", "the evidence under review", "in this review", "from this review"],
754
+ "description": "Operator-accepted label-defining referent phrases (round 15): every injection instruction carries exactly one to name this screening; benign wording never does. Masked from every lexical feature and from the pool-transfer lexicon."
755
+ },
756
+ "injectionLexiconTransfer": {
757
+ "const": { "ngramSizes": [2, 3], "minSupport": 5, "limit": 0.75 },
758
+ "description": "Parameters of the pool-transfer injection n-gram lexicon check (round 12)."
759
+ },
760
+ "injectionPopulation": {
761
+ "const": "injected-or-otherwise-supporting-or-ready-evidence",
762
+ "description": "Population of the injection target: injected rows versus non-injected rows whose evidence would otherwise be supporting (citation) or ready (criterion); injected rows carry only such evidence by slice design."
763
+ },
764
+ "reportDigest": {
765
+ "type": "string",
766
+ "pattern": "^sha256:[0-9a-f]{64}$",
767
+ "description": "Digest of the passing decision-d29-shortcut-audit/v5 report over this corpus and gold."
768
+ },
769
+ "passed": {
770
+ "const": true,
771
+ "description": "Preparation refuses a corpus whose audit fails, so a preregistered v8 analysis always records a passing audit."
772
+ }
773
+ }
774
+ }
775
+ }
776
+ }
777
+ }
778
+ }