@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,113 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aiwg.io/schemas/decision/DecisionComparativeReplayPreregistration.v1.schema.json",
4
+ "title": "DecisionComparativeReplayPreregistration",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "id",
10
+ "mode",
11
+ "corpusDigest",
12
+ "goldDigest",
13
+ "splitDigest",
14
+ "comparatorVersion",
15
+ "frozenAt",
16
+ "minimumTestRoots",
17
+ "minimumSliceRoots",
18
+ "levelBps",
19
+ "pairedMethod",
20
+ "errorMethod",
21
+ "nonInferiorityMarginBps",
22
+ "maxErrorUpperBps",
23
+ "maxSliceErrorUpperBps",
24
+ "maxBackendCalls",
25
+ "maxTokens",
26
+ "maxCostMicros",
27
+ "requireExactReproduction",
28
+ "digest"
29
+ ],
30
+ "properties": {
31
+ "schemaVersion": {
32
+ "const": "decision-comparative-replay-preregistration/v1"
33
+ },
34
+ "id": {
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "mode": {
39
+ "const": "shadow"
40
+ },
41
+ "corpusDigest": {
42
+ "type": "string",
43
+ "pattern": "^sha256:[0-9a-f]{64}$"
44
+ },
45
+ "goldDigest": {
46
+ "type": "string",
47
+ "pattern": "^sha256:[0-9a-f]{64}$"
48
+ },
49
+ "splitDigest": {
50
+ "type": "string",
51
+ "pattern": "^sha256:[0-9a-f]{64}$"
52
+ },
53
+ "comparatorVersion": {
54
+ "const": "policy-replay-reference-v1"
55
+ },
56
+ "frozenAt": {
57
+ "type": "string",
58
+ "format": "date-time"
59
+ },
60
+ "minimumTestRoots": {
61
+ "type": "integer",
62
+ "minimum": 1,
63
+ "maximum": 6000
64
+ },
65
+ "minimumSliceRoots": {
66
+ "type": "integer",
67
+ "minimum": 1,
68
+ "maximum": 1500
69
+ },
70
+ "levelBps": {
71
+ "type": "integer",
72
+ "minimum": 5001,
73
+ "maximum": 9998
74
+ },
75
+ "pairedMethod": {
76
+ "const": "newcombe-10"
77
+ },
78
+ "errorMethod": {
79
+ "const": "wilson"
80
+ },
81
+ "nonInferiorityMarginBps": {
82
+ "type": "integer",
83
+ "minimum": -10000,
84
+ "maximum": 0
85
+ },
86
+ "maxErrorUpperBps": {
87
+ "type": "integer",
88
+ "minimum": 0,
89
+ "maximum": 10000
90
+ },
91
+ "maxSliceErrorUpperBps": {
92
+ "type": "integer",
93
+ "minimum": 0,
94
+ "maximum": 10000
95
+ },
96
+ "maxBackendCalls": {
97
+ "const": 0
98
+ },
99
+ "maxTokens": {
100
+ "const": 0
101
+ },
102
+ "maxCostMicros": {
103
+ "const": 0
104
+ },
105
+ "requireExactReproduction": {
106
+ "const": true
107
+ },
108
+ "digest": {
109
+ "type": "string",
110
+ "pattern": "^sha256:[0-9a-f]{64}$"
111
+ }
112
+ }
113
+ }
@@ -0,0 +1,407 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aiwg.io/schemas/decision/DecisionComparativeReplayReport.v1.schema.json",
4
+ "title": "DecisionComparativeReplayReport",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "mode",
10
+ "semantics",
11
+ "actionAuthorization",
12
+ "preregistrationDigest",
13
+ "corpusDigest",
14
+ "goldDigest",
15
+ "splitDigest",
16
+ "accessedAt",
17
+ "integrity",
18
+ "integrityDigest",
19
+ "roots",
20
+ "metrics",
21
+ "diagnosticDecision",
22
+ "reviewStatus",
23
+ "findings",
24
+ "upstreamDecision",
25
+ "decision",
26
+ "digest"
27
+ ],
28
+ "properties": {
29
+ "schemaVersion": {
30
+ "const": "decision-comparative-replay-report/v1"
31
+ },
32
+ "mode": {
33
+ "const": "shadow"
34
+ },
35
+ "semantics": {
36
+ "const": "associative-sensitivity-not-causal"
37
+ },
38
+ "actionAuthorization": {
39
+ "const": "not-authorized"
40
+ },
41
+ "preregistrationDigest": {
42
+ "type": "string",
43
+ "pattern": "^sha256:[0-9a-f]{64}$"
44
+ },
45
+ "corpusDigest": {
46
+ "type": "string",
47
+ "pattern": "^sha256:[0-9a-f]{64}$"
48
+ },
49
+ "goldDigest": {
50
+ "type": "string",
51
+ "pattern": "^sha256:[0-9a-f]{64}$"
52
+ },
53
+ "splitDigest": {
54
+ "type": "string",
55
+ "pattern": "^sha256:[0-9a-f]{64}$"
56
+ },
57
+ "accessedAt": {
58
+ "type": "string",
59
+ "format": "date-time"
60
+ },
61
+ "integrity": {
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": [
65
+ "sample_n",
66
+ "uncertainty",
67
+ "paired_baseline",
68
+ "integrity_mode",
69
+ "fresh_workspace_required",
70
+ "fresh_workspace_verified",
71
+ "integrity_state",
72
+ "trusted_score_source",
73
+ "compromise_labels",
74
+ "weak_signal_reason",
75
+ "release_gate"
76
+ ],
77
+ "properties": {
78
+ "sample_n": {
79
+ "type": "integer",
80
+ "minimum": 0
81
+ },
82
+ "uncertainty": {},
83
+ "paired_baseline": {},
84
+ "integrity_mode": {
85
+ "type": "string",
86
+ "minLength": 1
87
+ },
88
+ "fresh_workspace_required": {
89
+ "type": "boolean"
90
+ },
91
+ "fresh_workspace_verified": {
92
+ "type": "boolean"
93
+ },
94
+ "integrity_state": {
95
+ "type": "string",
96
+ "minLength": 1
97
+ },
98
+ "trusted_score_source": {
99
+ "type": "string",
100
+ "minLength": 1
101
+ },
102
+ "compromise_labels": {
103
+ "type": "array",
104
+ "items": {
105
+ "type": "string"
106
+ }
107
+ },
108
+ "weak_signal_reason": {
109
+ "type": [
110
+ "string",
111
+ "null"
112
+ ]
113
+ },
114
+ "release_gate": {
115
+ "type": "object",
116
+ "additionalProperties": false,
117
+ "required": [
118
+ "decision",
119
+ "reasons"
120
+ ],
121
+ "properties": {
122
+ "decision": {
123
+ "enum": [
124
+ "PROMOTE",
125
+ "HOLD",
126
+ "ROLLBACK"
127
+ ]
128
+ },
129
+ "reasons": {
130
+ "type": "array",
131
+ "items": {
132
+ "type": "string"
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ },
139
+ "integrityDigest": {
140
+ "type": "string",
141
+ "pattern": "^sha256:[0-9a-f]{64}$"
142
+ },
143
+ "roots": {
144
+ "type": "array",
145
+ "maxItems": 6000,
146
+ "items": {
147
+ "type": "object",
148
+ "additionalProperties": false,
149
+ "required": [
150
+ "id",
151
+ "slice",
152
+ "reportDigest",
153
+ "correct",
154
+ "falseNoChange",
155
+ "split"
156
+ ],
157
+ "properties": {
158
+ "id": {
159
+ "type": "string",
160
+ "minLength": 1
161
+ },
162
+ "slice": {
163
+ "enum": [
164
+ "threshold-boundary",
165
+ "priority-loss",
166
+ "unchanged-control",
167
+ "unreplayable"
168
+ ]
169
+ },
170
+ "reportDigest": {
171
+ "type": "string",
172
+ "pattern": "^sha256:[0-9a-f]{64}$"
173
+ },
174
+ "correct": {
175
+ "type": "boolean"
176
+ },
177
+ "falseNoChange": {
178
+ "type": "boolean"
179
+ },
180
+ "split": {
181
+ "enum": [
182
+ "tuning",
183
+ "calibration",
184
+ "test"
185
+ ]
186
+ }
187
+ }
188
+ }
189
+ },
190
+ "metrics": {
191
+ "type": "object",
192
+ "additionalProperties": false,
193
+ "required": [
194
+ "testRoots",
195
+ "errors",
196
+ "falseNoChange",
197
+ "pairedLowerBps",
198
+ "errorUpperBps",
199
+ "slices",
200
+ "backendCalls",
201
+ "tokens",
202
+ "costMicros",
203
+ "exactReproduction"
204
+ ],
205
+ "properties": {
206
+ "testRoots": {
207
+ "type": "integer",
208
+ "minimum": 0
209
+ },
210
+ "errors": {
211
+ "type": "integer",
212
+ "minimum": 0
213
+ },
214
+ "falseNoChange": {
215
+ "type": "integer",
216
+ "minimum": 0
217
+ },
218
+ "pairedLowerBps": {
219
+ "type": [
220
+ "integer",
221
+ "null"
222
+ ],
223
+ "minimum": -10000,
224
+ "maximum": 10000
225
+ },
226
+ "errorUpperBps": {
227
+ "type": [
228
+ "integer",
229
+ "null"
230
+ ],
231
+ "minimum": 0,
232
+ "maximum": 10000
233
+ },
234
+ "slices": {
235
+ "type": "object",
236
+ "additionalProperties": false,
237
+ "required": [
238
+ "threshold-boundary",
239
+ "priority-loss",
240
+ "unchanged-control",
241
+ "unreplayable"
242
+ ],
243
+ "properties": {
244
+ "threshold-boundary": {
245
+ "type": "object",
246
+ "additionalProperties": false,
247
+ "required": [
248
+ "roots",
249
+ "errors",
250
+ "errorUpperBps"
251
+ ],
252
+ "properties": {
253
+ "roots": {
254
+ "type": "integer",
255
+ "minimum": 0
256
+ },
257
+ "errors": {
258
+ "type": "integer",
259
+ "minimum": 0
260
+ },
261
+ "errorUpperBps": {
262
+ "type": [
263
+ "integer",
264
+ "null"
265
+ ],
266
+ "minimum": 0,
267
+ "maximum": 10000
268
+ }
269
+ }
270
+ },
271
+ "priority-loss": {
272
+ "type": "object",
273
+ "additionalProperties": false,
274
+ "required": [
275
+ "roots",
276
+ "errors",
277
+ "errorUpperBps"
278
+ ],
279
+ "properties": {
280
+ "roots": {
281
+ "type": "integer",
282
+ "minimum": 0
283
+ },
284
+ "errors": {
285
+ "type": "integer",
286
+ "minimum": 0
287
+ },
288
+ "errorUpperBps": {
289
+ "type": [
290
+ "integer",
291
+ "null"
292
+ ],
293
+ "minimum": 0,
294
+ "maximum": 10000
295
+ }
296
+ }
297
+ },
298
+ "unchanged-control": {
299
+ "type": "object",
300
+ "additionalProperties": false,
301
+ "required": [
302
+ "roots",
303
+ "errors",
304
+ "errorUpperBps"
305
+ ],
306
+ "properties": {
307
+ "roots": {
308
+ "type": "integer",
309
+ "minimum": 0
310
+ },
311
+ "errors": {
312
+ "type": "integer",
313
+ "minimum": 0
314
+ },
315
+ "errorUpperBps": {
316
+ "type": [
317
+ "integer",
318
+ "null"
319
+ ],
320
+ "minimum": 0,
321
+ "maximum": 10000
322
+ }
323
+ }
324
+ },
325
+ "unreplayable": {
326
+ "type": "object",
327
+ "additionalProperties": false,
328
+ "required": [
329
+ "roots",
330
+ "errors",
331
+ "errorUpperBps"
332
+ ],
333
+ "properties": {
334
+ "roots": {
335
+ "type": "integer",
336
+ "minimum": 0
337
+ },
338
+ "errors": {
339
+ "type": "integer",
340
+ "minimum": 0
341
+ },
342
+ "errorUpperBps": {
343
+ "type": [
344
+ "integer",
345
+ "null"
346
+ ],
347
+ "minimum": 0,
348
+ "maximum": 10000
349
+ }
350
+ }
351
+ }
352
+ }
353
+ },
354
+ "backendCalls": {
355
+ "type": "integer",
356
+ "minimum": 0
357
+ },
358
+ "tokens": {
359
+ "type": "integer",
360
+ "minimum": 0
361
+ },
362
+ "costMicros": {
363
+ "type": "integer",
364
+ "minimum": 0
365
+ },
366
+ "exactReproduction": {
367
+ "type": "boolean"
368
+ }
369
+ }
370
+ },
371
+ "diagnosticDecision": {
372
+ "enum": [
373
+ "pass",
374
+ "fail"
375
+ ]
376
+ },
377
+ "reviewStatus": {
378
+ "const": "pending"
379
+ },
380
+ "findings": {
381
+ "type": "array",
382
+ "maxItems": 6000,
383
+ "items": {
384
+ "type": "string",
385
+ "minLength": 1
386
+ }
387
+ },
388
+ "upstreamDecision": {
389
+ "enum": [
390
+ "PROMOTE",
391
+ "HOLD",
392
+ "ROLLBACK"
393
+ ]
394
+ },
395
+ "decision": {
396
+ "enum": [
397
+ "PROMOTE",
398
+ "HOLD",
399
+ "ROLLBACK"
400
+ ]
401
+ },
402
+ "digest": {
403
+ "type": "string",
404
+ "pattern": "^sha256:[0-9a-f]{64}$"
405
+ }
406
+ }
407
+ }