@tangle-network/agent-eval 2.0.9 → 2.0.10

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 (232) hide show
  1. package/CHANGELOG.md +64 -16
  2. package/dist/adapters/http.d.ts +2 -2
  3. package/dist/{agent-profile-ORN4aArD.d.ts → agent-profile-_JzxgLDM.d.ts} +11 -5
  4. package/dist/{agent-profile-ORN4aArD.d.ts.map → agent-profile-_JzxgLDM.d.ts.map} +1 -1
  5. package/dist/analyst/index.d.ts +14 -14
  6. package/dist/analyst/index.js +31 -10
  7. package/dist/analyst/index.js.map +1 -1
  8. package/dist/{analyze-runs-DT693FJ7.d.ts → analyze-runs-Izz_ZeWg.d.ts} +2 -2
  9. package/dist/{analyze-runs-DT693FJ7.d.ts.map → analyze-runs-Izz_ZeWg.d.ts.map} +1 -1
  10. package/dist/{analyze-runs-CE_5VKh2.js → analyze-runs-xhH2Qxoc.js} +5 -5
  11. package/dist/{analyze-runs-CE_5VKh2.js.map → analyze-runs-xhH2Qxoc.js.map} +1 -1
  12. package/dist/app-grade/index.d.ts +4 -4
  13. package/dist/{benchmark-command-DLg8E4y8.js → benchmark-command-CGQXNFj7.js} +8 -7
  14. package/dist/benchmark-command-CGQXNFj7.js.map +1 -0
  15. package/dist/benchmarks/index.d.ts +4 -4
  16. package/dist/benchmarks/index.js +2 -2
  17. package/dist/campaign/index.d.ts +7 -7
  18. package/dist/campaign/index.js +11 -11
  19. package/dist/{campaign-C_S3MOYa.js → campaign-eus7YRs2.js} +13 -13
  20. package/dist/{campaign-C_S3MOYa.js.map → campaign-eus7YRs2.js.map} +1 -1
  21. package/dist/{campaign-evidence-CM4FBOkX.d.ts → campaign-evidence-BOcX4w0r.d.ts} +5 -5
  22. package/dist/{campaign-evidence-CM4FBOkX.d.ts.map → campaign-evidence-BOcX4w0r.d.ts.map} +1 -1
  23. package/dist/{campaign-evidence-BTfzZo1u.js → campaign-evidence-KM5GTsHG.js} +3 -3
  24. package/dist/{campaign-evidence-BTfzZo1u.js.map → campaign-evidence-KM5GTsHG.js.map} +1 -1
  25. package/dist/{chat-client-uQNXGuO4.d.ts → chat-client-BlTooBDA.d.ts} +7 -2
  26. package/dist/{chat-client-uQNXGuO4.d.ts.map → chat-client-BlTooBDA.d.ts.map} +1 -1
  27. package/dist/{chat-client-CvyDOQBv.js → chat-client-Oyot5tyo.js} +2 -2
  28. package/dist/{chat-client-CvyDOQBv.js.map → chat-client-Oyot5tyo.js.map} +1 -1
  29. package/dist/{chat-json-call-DMrwmB-k.js → chat-json-call-DTmv2uNY.js} +2 -2
  30. package/dist/{chat-json-call-DMrwmB-k.js.map → chat-json-call-DTmv2uNY.js.map} +1 -1
  31. package/dist/cli.js +7 -7
  32. package/dist/{cluster-C-K0N2br.d.ts → cluster-BJ0nW3P7.d.ts} +2 -2
  33. package/dist/{cluster-C-K0N2br.d.ts.map → cluster-BJ0nW3P7.d.ts.map} +1 -1
  34. package/dist/{cluster-bootstrap-DXbnIdm8.js → cluster-bootstrap-CTC8Dd30.js} +2 -2
  35. package/dist/{cluster-bootstrap-DXbnIdm8.js.map → cluster-bootstrap-CTC8Dd30.js.map} +1 -1
  36. package/dist/{completion-verifier-DsotH2l3.js → completion-verifier-CCPG2Yc0.js} +3 -3
  37. package/dist/{completion-verifier-DsotH2l3.js.map → completion-verifier-CCPG2Yc0.js.map} +1 -1
  38. package/dist/{completion-verifier-C7wipJOK.d.ts → completion-verifier-CQOC3_bm.d.ts} +2 -2
  39. package/dist/{completion-verifier-C7wipJOK.d.ts.map → completion-verifier-CQOC3_bm.d.ts.map} +1 -1
  40. package/dist/contract/index.d.ts +11 -11
  41. package/dist/contract/index.js +12 -12
  42. package/dist/{default-registry-kps1SOaD.js → default-registry-Rs5uzlfJ.js} +3 -3
  43. package/dist/{default-registry-kps1SOaD.js.map → default-registry-Rs5uzlfJ.js.map} +1 -1
  44. package/dist/{default-registry-Bskl2HzV.d.ts → default-registry-X8McMoUV.d.ts} +6 -6
  45. package/dist/{default-registry-Bskl2HzV.d.ts.map → default-registry-X8McMoUV.d.ts.map} +1 -1
  46. package/dist/{define-agent-eval-Dnh4jXLX.js → define-agent-eval-D8ntOXqV.js} +3 -3
  47. package/dist/{define-agent-eval-Dnh4jXLX.js.map → define-agent-eval-D8ntOXqV.js.map} +1 -1
  48. package/dist/{define-agent-eval-tu3anVlk.d.ts → define-agent-eval-DH5-xi-F.d.ts} +4 -4
  49. package/dist/{define-agent-eval-tu3anVlk.d.ts.map → define-agent-eval-DH5-xi-F.d.ts.map} +1 -1
  50. package/dist/diagnosis/index.d.ts +2 -2
  51. package/dist/diagnosis/index.js +1 -1
  52. package/dist/{dspy-rlm-engine-DQbPdT_o.js → dspy-rlm-engine-ChE1PUM5.js} +3 -3
  53. package/dist/{dspy-rlm-engine-DQbPdT_o.js.map → dspy-rlm-engine-ChE1PUM5.js.map} +1 -1
  54. package/dist/{eval-campaign-DswSn7Gm.js → eval-campaign-BciGnrGy.js} +2 -2
  55. package/dist/{eval-campaign-DswSn7Gm.js.map → eval-campaign-BciGnrGy.js.map} +1 -1
  56. package/dist/{evaluation-C4-tf3Z_.d.ts → evaluation-CjZH6gW0.d.ts} +4 -4
  57. package/dist/{evaluation-C4-tf3Z_.d.ts.map → evaluation-CjZH6gW0.d.ts.map} +1 -1
  58. package/dist/evaluation.d.ts +1 -1
  59. package/dist/{exact-types-CUsSMW3n.d.ts → exact-types-BIHqYBYf.d.ts} +2 -2
  60. package/dist/{exact-types-CUsSMW3n.d.ts.map → exact-types-BIHqYBYf.d.ts.map} +1 -1
  61. package/dist/experiment/index.d.ts +5 -5
  62. package/dist/experiment/index.js +8 -8
  63. package/dist/{external-optimizer-contracts-ZDBfbZ_s.js → external-optimizer-contracts-BFV8lnhl.js} +7 -2
  64. package/dist/{external-optimizer-contracts-ZDBfbZ_s.js.map → external-optimizer-contracts-BFV8lnhl.js.map} +1 -1
  65. package/dist/{external-optimizer-process-CVi1x2nb.js → external-optimizer-process-B6emPodQ.js} +3 -3
  66. package/dist/{external-optimizer-process-CVi1x2nb.js.map → external-optimizer-process-B6emPodQ.js.map} +1 -1
  67. package/dist/{external-optimizer-subprocess-mV-2swJI.js → external-optimizer-subprocess-_O06eDVA.js} +33 -20
  68. package/dist/external-optimizer-subprocess-_O06eDVA.js.map +1 -0
  69. package/dist/{feedback-trajectory-D7hgL6y5.d.ts → feedback-trajectory-CoQPmSJV.d.ts} +3 -3
  70. package/dist/{feedback-trajectory-D7hgL6y5.d.ts.map → feedback-trajectory-CoQPmSJV.d.ts.map} +1 -1
  71. package/dist/{findings-store-CZy5kUDo.js → findings-store-CvYUzQBR.js} +4 -4
  72. package/dist/{findings-store-CZy5kUDo.js.map → findings-store-CvYUzQBR.js.map} +1 -1
  73. package/dist/{index-Cav3abKy.d.ts → index-BSb3fJyZ.d.ts} +81 -19
  74. package/dist/{index-Cav3abKy.d.ts.map → index-BSb3fJyZ.d.ts.map} +1 -1
  75. package/dist/{index-CIqYaySd.d.ts → index-Bk1XEkP7.d.ts} +26 -16
  76. package/dist/index-Bk1XEkP7.d.ts.map +1 -0
  77. package/dist/{index-DmMHTDjT.d.ts → index-BmWw8zN6.d.ts} +9 -9
  78. package/dist/{index-DmMHTDjT.d.ts.map → index-BmWw8zN6.d.ts.map} +1 -1
  79. package/dist/{index--vDCtdaj.d.ts → index-CCOaNmh2.d.ts} +7 -7
  80. package/dist/{index--vDCtdaj.d.ts.map → index-CCOaNmh2.d.ts.map} +1 -1
  81. package/dist/{index-moZnazVj.d.ts → index-ZffK_5sD.d.ts} +21 -21
  82. package/dist/{index-moZnazVj.d.ts.map → index-ZffK_5sD.d.ts.map} +1 -1
  83. package/dist/{index-Er8TKQ3q.d.ts → index-aRalB_Ma.d.ts} +3 -3
  84. package/dist/{index-Er8TKQ3q.d.ts.map → index-aRalB_Ma.d.ts.map} +1 -1
  85. package/dist/index.d.ts +29 -29
  86. package/dist/index.js +23 -23
  87. package/dist/{integrity-BF0tJK21.js → integrity-DacT3oJ1.js} +2 -2
  88. package/dist/{integrity-BF0tJK21.js.map → integrity-DacT3oJ1.js.map} +1 -1
  89. package/dist/{integrity-BJGstiCh.d.ts → integrity-DotDLWtj.d.ts} +2 -2
  90. package/dist/{integrity-BJGstiCh.d.ts.map → integrity-DotDLWtj.d.ts.map} +1 -1
  91. package/dist/{judge-gate-DANg5FLq.js → judge-gate-CpD3wmcf.js} +2 -2
  92. package/dist/{judge-gate-DANg5FLq.js.map → judge-gate-CpD3wmcf.js.map} +1 -1
  93. package/dist/{llm-client-Dw4x6EdE.js → llm-client-Dk8lBnMh.js} +15 -2
  94. package/dist/{llm-client-Dw4x6EdE.js.map → llm-client-Dk8lBnMh.js.map} +1 -1
  95. package/dist/{llm-judge-DFoSy4Qn.js → llm-judge-DYmEdo3M.js} +3 -3
  96. package/dist/{llm-judge-DFoSy4Qn.js.map → llm-judge-DYmEdo3M.js.map} +1 -1
  97. package/dist/{matrix-OgdWQBQa.d.ts → matrix-BDl7hoBr.d.ts} +2 -2
  98. package/dist/{matrix-OgdWQBQa.d.ts.map → matrix-BDl7hoBr.d.ts.map} +1 -1
  99. package/dist/{measure-validity-plan-B1_qYlsk.d.ts → measure-validity-plan-BReXzcVh.d.ts} +62 -4
  100. package/dist/measure-validity-plan-BReXzcVh.d.ts.map +1 -0
  101. package/dist/{measure-validity-plan-t0YQRzJQ.js → measure-validity-plan-CJkBNzX_.js} +43 -6
  102. package/dist/measure-validity-plan-CJkBNzX_.js.map +1 -0
  103. package/dist/meta-eval/index.d.ts +2 -2
  104. package/dist/meta-eval/index.js +178 -35
  105. package/dist/meta-eval/index.js.map +1 -1
  106. package/dist/multishot/golden/index.d.ts +1 -1
  107. package/dist/multishot/index.d.ts +56 -17
  108. package/dist/multishot/index.d.ts.map +1 -1
  109. package/dist/multishot/index.js +93 -20
  110. package/dist/multishot/index.js.map +1 -1
  111. package/dist/node-transport-DJno8V46.js +62 -0
  112. package/dist/node-transport-DJno8V46.js.map +1 -0
  113. package/dist/openapi.json +1 -1
  114. package/dist/{optimization-method-D4CpYsVA.js → optimization-method-4JlbMxd2.js} +27 -38
  115. package/dist/optimization-method-4JlbMxd2.js.map +1 -0
  116. package/dist/{paired-arms-B6EXnI47.js → paired-arms-CJH5Q0wx.js} +2 -2
  117. package/dist/{paired-arms-B6EXnI47.js.map → paired-arms-CJH5Q0wx.js.map} +1 -1
  118. package/dist/{paired-promotion-decision-xYe881cD.js → paired-promotion-decision-BtfVwEAk.js} +2 -2
  119. package/dist/{paired-promotion-decision-xYe881cD.js.map → paired-promotion-decision-BtfVwEAk.js.map} +1 -1
  120. package/dist/{paired-promotion-decision-DuvRdnsW.d.ts → paired-promotion-decision-DJlI4z_k.d.ts} +2 -2
  121. package/dist/{paired-promotion-decision-DuvRdnsW.d.ts.map → paired-promotion-decision-DJlI4z_k.d.ts.map} +1 -1
  122. package/dist/{paired-promotion-power-DirShsIs.js → paired-promotion-power-DG1avBKf.js} +3 -3
  123. package/dist/{paired-promotion-power-DirShsIs.js.map → paired-promotion-power-DG1avBKf.js.map} +1 -1
  124. package/dist/pipelines/index.js +1 -1
  125. package/dist/{power-DTg6u30w.js → power-COie_o6E.js} +3 -3
  126. package/dist/{power-DTg6u30w.js.map → power-COie_o6E.js.map} +1 -1
  127. package/dist/{prime-protocol-Jm2pWh--.d.ts → prime-protocol-BRMk6dGI.d.ts} +2 -2
  128. package/dist/{prime-protocol-Jm2pWh--.d.ts.map → prime-protocol-BRMk6dGI.d.ts.map} +1 -1
  129. package/dist/{promotion-gate-BXgcORnM.d.ts → promotion-gate-B0VTBoXg.d.ts} +2 -2
  130. package/dist/{promotion-gate-BXgcORnM.d.ts.map → promotion-gate-B0VTBoXg.d.ts.map} +1 -1
  131. package/dist/{promotion-policy-Z5E-C32U.js → promotion-policy-BgI7PsQn.js} +3 -3
  132. package/dist/{promotion-policy-Z5E-C32U.js.map → promotion-policy-BgI7PsQn.js.map} +1 -1
  133. package/dist/{registry-DEZDECdr.d.ts → registry-BeInzotS.d.ts} +4 -4
  134. package/dist/{registry-DEZDECdr.d.ts.map → registry-BeInzotS.d.ts.map} +1 -1
  135. package/dist/reporting.d.ts +4 -4
  136. package/dist/reporting.js +3 -3
  137. package/dist/{research-report-CIgUe1lv.d.ts → research-report-CL5_UqCX.d.ts} +2 -2
  138. package/dist/{research-report-CIgUe1lv.d.ts.map → research-report-CL5_UqCX.d.ts.map} +1 -1
  139. package/dist/{researcher-CY_byuZl.d.ts → researcher-BOpZP_Ja.d.ts} +4 -4
  140. package/dist/{researcher-CY_byuZl.d.ts.map → researcher-BOpZP_Ja.d.ts.map} +1 -1
  141. package/dist/rl.d.ts +7 -7
  142. package/dist/rl.js +4 -4
  143. package/dist/rollout/index.d.ts +2 -2
  144. package/dist/rollout/index.js +1 -1
  145. package/dist/{rollout-B_lrpd9a.js → rollout--rSr43Pd.js} +2 -2
  146. package/dist/{rollout-B_lrpd9a.js.map → rollout--rSr43Pd.js.map} +1 -1
  147. package/dist/{rollout-nodes-Vas6OSxX.js → rollout-nodes-DFxKpIr2.js} +39 -10
  148. package/dist/rollout-nodes-DFxKpIr2.js.map +1 -0
  149. package/dist/{run-improvement-loop-BaPDVbW8.d.ts → run-improvement-loop-BeHu5D9Z.d.ts} +22 -10
  150. package/dist/run-improvement-loop-BeHu5D9Z.d.ts.map +1 -0
  151. package/dist/{runtime-rollouts-Vv-BAqmq.js → runtime-rollouts-CE0MbQPq.js} +54 -7
  152. package/dist/runtime-rollouts-CE0MbQPq.js.map +1 -0
  153. package/dist/search/index.d.ts +2 -2
  154. package/dist/search/index.js +2 -2
  155. package/dist/{search-kernel-BzTeb89p.d.ts → search-kernel-CJZ-ZSV1.d.ts} +3 -3
  156. package/dist/{search-kernel-BzTeb89p.d.ts.map → search-kernel-CJZ-ZSV1.d.ts.map} +1 -1
  157. package/dist/{search-kernel-DOPW08Hx.js → search-kernel-mZc79S6N.js} +4 -4
  158. package/dist/{search-kernel-DOPW08Hx.js.map → search-kernel-mZc79S6N.js.map} +1 -1
  159. package/dist/{search-summary-CYOHZAAy.js → search-summary-CCgP2qXz.js} +3 -3
  160. package/dist/{search-summary-CYOHZAAy.js.map → search-summary-CCgP2qXz.js.map} +1 -1
  161. package/dist/{self-improve-DY8ZY4lY.d.ts → self-improve-B1fsNejr.d.ts} +6 -6
  162. package/dist/{self-improve-DY8ZY4lY.d.ts.map → self-improve-B1fsNejr.d.ts.map} +1 -1
  163. package/dist/{self-improve-CIFqccHV.js → self-improve-C_Bcdmv8.js} +5 -4
  164. package/dist/{self-improve-CIFqccHV.js.map → self-improve-C_Bcdmv8.js.map} +1 -1
  165. package/dist/{sequential-B9iROM1S.d.ts → sequential-CHplorpC.d.ts} +2 -2
  166. package/dist/{sequential-B9iROM1S.d.ts.map → sequential-CHplorpC.d.ts.map} +1 -1
  167. package/dist/{sequential-tZjGysXY.js → sequential-DR-pnYQ7.js} +3 -3
  168. package/dist/{sequential-tZjGysXY.js.map → sequential-DR-pnYQ7.js.map} +1 -1
  169. package/dist/{server-1fzBCxMh.js → server-aZFmRucn.js} +3 -3
  170. package/dist/{server-1fzBCxMh.js.map → server-aZFmRucn.js.map} +1 -1
  171. package/dist/{skillopt-optimization-method-CbHBkopM.js → skillopt-optimization-method-DHk1K757.js} +93 -39
  172. package/dist/skillopt-optimization-method-DHk1K757.js.map +1 -0
  173. package/dist/{statistical-heldout-C7Jjo5nP.js → statistical-heldout-CL_7mI5C.js} +2 -2
  174. package/dist/{statistical-heldout-C7Jjo5nP.js.map → statistical-heldout-CL_7mI5C.js.map} +1 -1
  175. package/dist/{statistics-BPl13X3G.js → statistics-AKnVFnK-.js} +67 -42
  176. package/dist/statistics-AKnVFnK-.js.map +1 -0
  177. package/dist/statistics.d.ts +3 -3
  178. package/dist/statistics.js +1 -1
  179. package/dist/{store-tool-spans-Dq8r0PbJ.d.ts → store-tool-spans-M3WxeRrG.d.ts} +4 -4
  180. package/dist/{store-tool-spans-Dq8r0PbJ.d.ts.map → store-tool-spans-M3WxeRrG.d.ts.map} +1 -1
  181. package/dist/{summary-report-DzbnK81K.js → summary-report-DyBkOC6V.js} +3 -3
  182. package/dist/{summary-report-DzbnK81K.js.map → summary-report-DyBkOC6V.js.map} +1 -1
  183. package/dist/supervisor-run/index.d.ts +12 -2
  184. package/dist/supervisor-run/index.d.ts.map +1 -1
  185. package/dist/supervisor-run/index.js +3 -3
  186. package/dist/{systemone-BuSZTI88.d.ts → systemone-4PadCE4C.d.ts} +7 -7
  187. package/dist/{systemone-BuSZTI88.d.ts.map → systemone-4PadCE4C.d.ts.map} +1 -1
  188. package/dist/{systemone-review-mlfxWdLz.d.ts → systemone-review-DpAXWDkL.d.ts} +2 -2
  189. package/dist/{systemone-review-mlfxWdLz.d.ts.map → systemone-review-DpAXWDkL.d.ts.map} +1 -1
  190. package/dist/systemone.d.ts +3 -3
  191. package/dist/{tool-groups-PNDX8fd-.d.ts → tool-groups-SlnoQNyT.d.ts} +2 -2
  192. package/dist/tool-groups-SlnoQNyT.d.ts.map +1 -0
  193. package/dist/{tool-waste-783VCo1y.js → tool-waste-BZnYSa6J.js} +2 -2
  194. package/dist/{tool-waste-783VCo1y.js.map → tool-waste-BZnYSa6J.js.map} +1 -1
  195. package/dist/{trace-questions-DBtr4jWi.d.ts → trace-questions-ybyF0B6N.d.ts} +2 -2
  196. package/dist/{trace-questions-DBtr4jWi.d.ts.map → trace-questions-ybyF0B6N.d.ts.map} +1 -1
  197. package/dist/trace-repair/index.d.ts +1 -1
  198. package/dist/traces.d.ts +4 -4
  199. package/dist/{tree-CtlQQL1w.js → tree-CiIe-f3f.js} +4 -4
  200. package/dist/{tree-CtlQQL1w.js.map → tree-CiIe-f3f.js.map} +1 -1
  201. package/dist/{types-CKNAzCSA.d.ts → types-B1W3v8dT.d.ts} +3 -3
  202. package/dist/{types-CKNAzCSA.d.ts.map → types-B1W3v8dT.d.ts.map} +1 -1
  203. package/dist/{types-BO948H-U.d.ts → types-D5XtEH9Q.d.ts} +8 -4
  204. package/dist/{types-BO948H-U.d.ts.map → types-D5XtEH9Q.d.ts.map} +1 -1
  205. package/dist/{types-DbeIGi73.d.ts → types-an-CUndX.d.ts} +2 -2
  206. package/dist/{types-DbeIGi73.d.ts.map → types-an-CUndX.d.ts.map} +1 -1
  207. package/dist/{types-D-WF1KM3.d.ts → types-xVtEOBhO.d.ts} +31 -8
  208. package/dist/types-xVtEOBhO.d.ts.map +1 -0
  209. package/dist/wire/index.d.ts +4 -4
  210. package/dist/wire/index.js +1 -1
  211. package/dist/world/index.d.ts +1 -1
  212. package/docs/design/statistics-decisions.md +18 -1
  213. package/docs/eval-surface-map.md +1 -1
  214. package/docs/feature-guide.md +1 -1
  215. package/docs/multi-turn-optimization.md +6 -2
  216. package/docs/outcome-validity.md +51 -12
  217. package/docs/public-api.md +7 -7
  218. package/docs/{multi-shot-optimization.md → trajectory-optimization.md} +1 -1
  219. package/package.json +1 -1
  220. package/dist/benchmark-command-DLg8E4y8.js.map +0 -1
  221. package/dist/external-optimizer-subprocess-mV-2swJI.js.map +0 -1
  222. package/dist/index-CIqYaySd.d.ts.map +0 -1
  223. package/dist/measure-validity-plan-B1_qYlsk.d.ts.map +0 -1
  224. package/dist/measure-validity-plan-t0YQRzJQ.js.map +0 -1
  225. package/dist/optimization-method-D4CpYsVA.js.map +0 -1
  226. package/dist/rollout-nodes-Vas6OSxX.js.map +0 -1
  227. package/dist/run-improvement-loop-BaPDVbW8.d.ts.map +0 -1
  228. package/dist/runtime-rollouts-Vv-BAqmq.js.map +0 -1
  229. package/dist/skillopt-optimization-method-CbHBkopM.js.map +0 -1
  230. package/dist/statistics-BPl13X3G.js.map +0 -1
  231. package/dist/tool-groups-PNDX8fd-.d.ts.map +0 -1
  232. package/dist/types-D-WF1KM3.d.ts.map +0 -1
@@ -49,13 +49,45 @@ declare function computeInterval(spec: IntervalSpec, evidence: {
49
49
  * different digest. A seal verifies identity, not when it was made: seal
50
50
  * before reading changes made after the cut, and keep the digest where an
51
51
  * independent reader can see it.
52
+ *
53
+ * A plan sealed now carries `format: 2`. A plan without it was sealed before
54
+ * outcome windows, exposures and the minimum effect existed: it still verifies
55
+ * under the digest it was sealed with and runs under the rules it was sealed
56
+ * with, so a seal outlives an upgrade.
57
+ */
58
+ /**
59
+ * A measure the outcome grows with for a reason other than the quality being
60
+ * measured, such as a change's size for "a later fix touched it": a bigger
61
+ * change has more to fix. Every other measure is also tested inside bins of
62
+ * the exposure, so one that predicts only by tracking it is visible.
52
63
  */
64
+ interface MeasureValidityExposure {
65
+ /** A planned measure id. */
66
+ measure: string;
67
+ /** Bins with edges at the exposure's quantiles before the cut. Default 10. */
68
+ bins?: number;
69
+ }
53
70
  interface MeasureValidityOutcome {
54
71
  /** Exact key in `DeploymentOutcome.metrics`. */
55
72
  id: string;
56
73
  direction: 'higher-is-better' | 'lower-is-better';
57
74
  /** `binary` outcomes are 0 or 1 and use AUC; `continuous` outcomes use rank correlation. */
58
75
  kind: 'binary' | 'continuous';
76
+ /**
77
+ * Time after the change within which the outcome is decided. A change before
78
+ * the cut counts for this outcome only when `at + windowMs` is at or before
79
+ * the cut, and a change after it only when `at + windowMs` is at or before
80
+ * the study's `asOf`, whatever its value and capture time. Declare it
81
+ * whenever a caller records an event when it happens and its absence when
82
+ * the window closes: otherwise the changes just before the cut, and the last
83
+ * changes read, keep their events and lose their non-events.
84
+ */
85
+ windowMs?: number;
86
+ exposure?: MeasureValidityExposure;
87
+ }
88
+ /** An outcome as sealed: an exposure carries its resolved bin count. */
89
+ interface MeasureValidityPlanOutcome extends MeasureValidityOutcome {
90
+ exposure?: Required<MeasureValidityExposure>;
59
91
  }
60
92
  interface MeasureValidityMeasure {
61
93
  /** Exact key in `MeasuredChange.measures` and `MeasuredChange.movements`. */
@@ -75,6 +107,26 @@ interface MeasureValiditySelectionRules {
75
107
  minGain?: number;
76
108
  /** Absolute before-cut rank correlation with a climbed measure at or above which a candidate is redundant. Default 0.9. */
77
109
  maxRedundancy?: number;
110
+ /**
111
+ * Smallest distance of the after-cut estimate from the null for an admitted
112
+ * measure to be climbed; a smaller one is real by the test and too small to
113
+ * be worth climbing. Default 0.05 for AUC and 0.1 for Spearman.
114
+ */
115
+ minEffect?: {
116
+ auc?: number;
117
+ spearman?: number;
118
+ };
119
+ }
120
+ /** Selection rules as sealed, every default resolved. */
121
+ interface MeasureValidityPlanSelection {
122
+ maxMeasures: number;
123
+ minGain: number;
124
+ maxRedundancy: number;
125
+ /** Absent on a plan sealed without `format`: no floor. */
126
+ minEffect?: {
127
+ auc: number;
128
+ spearman: number;
129
+ };
78
130
  }
79
131
  interface MeasureValidityPlanInput {
80
132
  id: string;
@@ -110,10 +162,16 @@ interface MeasureValidityPlanInput {
110
162
  }
111
163
  /** A plan with every default resolved, as sealed. */
112
164
  interface MeasureValidityPlan {
165
+ /**
166
+ * 2 on every plan sealed now. Absent on a plan sealed before it existed,
167
+ * which declares no outcome window, exposure or minimum effect and runs
168
+ * without them.
169
+ */
170
+ format?: 2;
113
171
  id: string;
114
172
  cut: number;
115
173
  level: number;
116
- outcomes: MeasureValidityOutcome[];
174
+ outcomes: MeasureValidityPlanOutcome[];
117
175
  measures: MeasureValidityMeasure[];
118
176
  minJoined: number;
119
177
  minUnits: number;
@@ -124,7 +182,7 @@ interface MeasureValidityPlan {
124
182
  reduction: 'latest' | 'mean' | 'max';
125
183
  maxCaptureLagMs?: number;
126
184
  minSensitivity: number;
127
- selection: Required<MeasureValiditySelectionRules>;
185
+ selection: MeasureValidityPlanSelection;
128
186
  }
129
187
  interface SealedMeasureValidityPlan {
130
188
  plan: MeasureValidityPlan;
@@ -139,5 +197,5 @@ declare function sealMeasureValidityPlan(input: MeasureValidityPlanInput, option
139
197
  }): SealedMeasureValidityPlan;
140
198
  /** True when the seal's scheme is supported and its digest matches its plan. */
141
199
  declare function verifyMeasureValidityPlan(sealed: SealedMeasureValidityPlan): boolean;
142
- export { MeasureValiditySelectionRules as a, verifyMeasureValidityPlan as c, computeInterval as d, EvidenceRecord as f, MeasureValidityPlanInput as i, ComputedInterval as l, MeasureValidityOutcome as n, SealedMeasureValidityPlan as o, JsonValue as p, MeasureValidityPlan as r, sealMeasureValidityPlan as s, MeasureValidityMeasure as t, IntervalSpec as u };
143
- //# sourceMappingURL=measure-validity-plan-B1_qYlsk.d.ts.map
200
+ export { MeasureValidityPlanInput as a, MeasureValiditySelectionRules as c, verifyMeasureValidityPlan as d, ComputedInterval as f, JsonValue as g, EvidenceRecord as h, MeasureValidityPlan as i, SealedMeasureValidityPlan as l, computeInterval as m, MeasureValidityMeasure as n, MeasureValidityPlanOutcome as o, IntervalSpec as p, MeasureValidityOutcome as r, MeasureValidityPlanSelection as s, MeasureValidityExposure as t, sealMeasureValidityPlan as u };
201
+ //# sourceMappingURL=measure-validity-plan-BReXzcVh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measure-validity-plan-BReXzcVh.d.ts","names":[],"sources":["../src/experiment/ast/evidence.ts","../src/experiment/ast/interval.ts","../src/experiment/measure-validity-plan.ts"],"mappings":";KACY,+CAA+C;GAAiB,YAAY;;;KAG5E,iBAAiB;;KCKjB;EAEN;EACA;;EAEA;EACA;EACA;EACA;EACA;;EAEA;EAAyB;;UAEd;EACf;EACA;EACA;;;;;;;;;;iBA8Cc,gBACd,MAAM,cACN;EACM;EAAc,eAAe;;EAC7B;EAAkB;EAAmB;IAC1C;;;;;;;;;;;;;;;;;;;;;;;UClDc;;EAEf;;EAEA;;UAGe;;EAEf;EACA;;EAEA;;;;;;;;;;EAUA;EACA,WAAW;;;UAII,mCAAmC;EAClD,WAAW,SAAS;;UAGL;;EAEf;;;;;EAKA;;EAEA;;UAGe;;EAEf;;EAEA;;EAEA;;;;;;EAMA;IAAc;IAAc;;;;UAIb;EACf;EACA;EACA;;EAEA;IAAc;IAAa;;;UAMZ;EACf;;EAEA;;EAEA;EACA,mBAAmB;EACnB,mBAAmB;;EAEnB;;EAEA;;;;;;EAMA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;EACA,YAAY;;;UAIG;;;;;;EAMf;EACA;EACA;EACA;EACA,UAAU;EACV,UAAU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,WAAW;;UAGI;EACf,MAAM;;EAEN;EACA;EACA;;;iBAIc,wBACd,OAAO,0BACP;EAAW;IACV;;iBAWa,0BAA0B,QAAQ"}
@@ -11,10 +11,17 @@ import { a as hashCanonical } from "./canonical-DKgL_Wby.js";
11
11
  * different digest. A seal verifies identity, not when it was made: seal
12
12
  * before reading changes made after the cut, and keep the digest where an
13
13
  * independent reader can see it.
14
+ *
15
+ * A plan sealed now carries `format: 2`. A plan without it was sealed before
16
+ * outcome windows, exposures and the minimum effect existed: it still verifies
17
+ * under the digest it was sealed with and runs under the rules it was sealed
18
+ * with, so a seal outlives an upgrade.
14
19
  */
20
+ /** The format every plan is sealed in now. */
21
+ const PLAN_FORMAT = 2;
15
22
  /** Validate the plan, resolve its defaults, and hash it. */
16
23
  function sealMeasureValidityPlan(input, options = {}) {
17
- const plan = resolvePlan(input);
24
+ const plan = resolvePlan(input, PLAN_FORMAT);
18
25
  return {
19
26
  plan,
20
27
  digest: planDigest(plan),
@@ -26,7 +33,7 @@ function sealMeasureValidityPlan(input, options = {}) {
26
33
  function verifyMeasureValidityPlan(sealed) {
27
34
  if (sealed?.algo !== "sha256-rfc8785") return false;
28
35
  try {
29
- return planDigest(resolvePlan(sealed.plan)) === sealed.digest;
36
+ return planDigest(resolvePlan(sealed.plan, sealed.plan.format)) === sealed.digest;
30
37
  } catch {
31
38
  return false;
32
39
  }
@@ -34,7 +41,13 @@ function verifyMeasureValidityPlan(sealed) {
34
41
  function planDigest(plan) {
35
42
  return hashCanonical(plan).slice(7);
36
43
  }
37
- function resolvePlan(input) {
44
+ /**
45
+ * Resolve the input under `format`. Without a format the plan is resolved
46
+ * exactly as it was before `format` existed, adding nothing, so its digest is
47
+ * the one it was sealed with.
48
+ */
49
+ function resolvePlan(input, format) {
50
+ const current = format === PLAN_FORMAT;
38
51
  const problems = [];
39
52
  const check = (ok, problem) => {
40
53
  if (!ok) problems.push(problem);
@@ -45,7 +58,12 @@ function resolvePlan(input) {
45
58
  const outcomes = (input.outcomes ?? []).map((outcome) => ({
46
59
  id: outcome.id,
47
60
  direction: outcome.direction,
48
- kind: outcome.kind
61
+ kind: outcome.kind,
62
+ ...outcome.windowMs === void 0 ? {} : { windowMs: outcome.windowMs },
63
+ ...outcome.exposure === void 0 ? {} : { exposure: {
64
+ measure: outcome.exposure.measure,
65
+ bins: outcome.exposure.bins ?? 10
66
+ } }
49
67
  }));
50
68
  check(outcomes.length > 0, "at least one outcome is required");
51
69
  for (const outcome of outcomes) {
@@ -66,6 +84,13 @@ function resolvePlan(input) {
66
84
  }
67
85
  check(unique(outcomes.map((outcome) => outcome.id)), "outcome ids must be unique");
68
86
  check(unique(measures.map((measure) => measure.id)), "measure ids must be unique");
87
+ const measureIds = new Set(measures.map((measure) => measure.id));
88
+ for (const outcome of outcomes) {
89
+ check(outcome.windowMs === void 0 || Number.isFinite(outcome.windowMs) && outcome.windowMs > 0, `outcome ${outcome.id} windowMs must be finite and positive`);
90
+ if (outcome.exposure === void 0) continue;
91
+ check(measureIds.has(outcome.exposure.measure), `outcome ${outcome.id} exposure must be a planned measure`);
92
+ check(Number.isSafeInteger(outcome.exposure.bins) && outcome.exposure.bins >= 2, `outcome ${outcome.id} exposure bins must be an integer >= 2`);
93
+ }
69
94
  const minJoined = input.minJoined ?? 100;
70
95
  const minUnits = input.minUnits ?? 20;
71
96
  const minMinority = input.minMinority ?? 20;
@@ -76,8 +101,16 @@ function resolvePlan(input) {
76
101
  const selection = {
77
102
  maxMeasures: input.selection?.maxMeasures ?? 3,
78
103
  minGain: input.selection?.minGain ?? .01,
79
- maxRedundancy: input.selection?.maxRedundancy ?? .9
104
+ maxRedundancy: input.selection?.maxRedundancy ?? .9,
105
+ ...current ? { minEffect: {
106
+ auc: input.selection?.minEffect?.auc ?? .05,
107
+ spearman: input.selection?.minEffect?.spearman ?? .1
108
+ } } : {}
80
109
  };
110
+ if (!current) {
111
+ check(format === void 0, `format must be ${PLAN_FORMAT} or absent`);
112
+ check(outcomes.every((outcome) => outcome.windowMs === void 0 && outcome.exposure === void 0) && input.selection?.minEffect === void 0, "a plan without format declares no outcome window, exposure or minimum effect");
113
+ }
81
114
  check(Number.isSafeInteger(minJoined) && minJoined >= 3, "minJoined must be an integer >= 3");
82
115
  check(Number.isSafeInteger(minUnits) && minUnits >= 2, "minUnits must be an integer >= 2");
83
116
  check(Number.isSafeInteger(minMinority) && minMinority >= 1, "minMinority must be a positive integer");
@@ -90,8 +123,12 @@ function resolvePlan(input) {
90
123
  check(Number.isSafeInteger(selection.maxMeasures) && selection.maxMeasures >= 1, "selection.maxMeasures must be a positive integer");
91
124
  check(Number.isFinite(selection.minGain) && selection.minGain >= 0, "selection.minGain must be finite and nonnegative");
92
125
  check(selection.maxRedundancy > 0 && selection.maxRedundancy <= 1, "selection.maxRedundancy must be in (0,1]");
126
+ const minEffect = selection.minEffect;
127
+ check(minEffect === void 0 || minEffect.auc >= 0 && minEffect.auc < .5, "selection.minEffect.auc must be in [0,0.5)");
128
+ check(minEffect === void 0 || minEffect.spearman >= 0 && minEffect.spearman < 1, "selection.minEffect.spearman must be in [0,1)");
93
129
  if (problems.length > 0) throw new ValidationError(`measure validity plan: ${problems.join("; ")}`);
94
130
  return {
131
+ ...current ? { format: PLAN_FORMAT } : {},
95
132
  id: input.id,
96
133
  cut: input.cut,
97
134
  level: input.level,
@@ -114,4 +151,4 @@ function unique(values) {
114
151
  }
115
152
  export { verifyMeasureValidityPlan as n, sealMeasureValidityPlan as t };
116
153
 
117
- //# sourceMappingURL=measure-validity-plan-t0YQRzJQ.js.map
154
+ //# sourceMappingURL=measure-validity-plan-CJkBNzX_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measure-validity-plan-CJkBNzX_.js","names":[],"sources":["../src/experiment/measure-validity-plan.ts"],"sourcesContent":["/**\n * The registered plan of a measure validity study: the cut, the\n * false-discovery level, the minimum counts, the outcomes and the measures.\n *\n * Sealing resolves every default into the plan and hashes it under the same\n * RFC 8785 scheme as `sealExperiment`, so the study reads its rules only from\n * a verified seal and a later change to the cut, level or outcome list is a\n * different digest. A seal verifies identity, not when it was made: seal\n * before reading changes made after the cut, and keep the digest where an\n * independent reader can see it.\n *\n * A plan sealed now carries `format: 2`. A plan without it was sealed before\n * outcome windows, exposures and the minimum effect existed: it still verifies\n * under the digest it was sealed with and runs under the rules it was sealed\n * with, so a seal outlives an upgrade.\n */\n\nimport { ValidationError } from '../errors'\nimport { hashCanonical } from '../ledger-core/canonical'\n\n/**\n * A measure the outcome grows with for a reason other than the quality being\n * measured, such as a change's size for \"a later fix touched it\": a bigger\n * change has more to fix. Every other measure is also tested inside bins of\n * the exposure, so one that predicts only by tracking it is visible.\n */\nexport interface MeasureValidityExposure {\n /** A planned measure id. */\n measure: string\n /** Bins with edges at the exposure's quantiles before the cut. Default 10. */\n bins?: number\n}\n\nexport interface MeasureValidityOutcome {\n /** Exact key in `DeploymentOutcome.metrics`. */\n id: string\n direction: 'higher-is-better' | 'lower-is-better'\n /** `binary` outcomes are 0 or 1 and use AUC; `continuous` outcomes use rank correlation. */\n kind: 'binary' | 'continuous'\n /**\n * Time after the change within which the outcome is decided. A change before\n * the cut counts for this outcome only when `at + windowMs` is at or before\n * the cut, and a change after it only when `at + windowMs` is at or before\n * the study's `asOf`, whatever its value and capture time. Declare it\n * whenever a caller records an event when it happens and its absence when\n * the window closes: otherwise the changes just before the cut, and the last\n * changes read, keep their events and lose their non-events.\n */\n windowMs?: number\n exposure?: MeasureValidityExposure\n}\n\n/** An outcome as sealed: an exposure carries its resolved bin count. */\nexport interface MeasureValidityPlanOutcome extends MeasureValidityOutcome {\n exposure?: Required<MeasureValidityExposure>\n}\n\nexport interface MeasureValidityMeasure {\n /** Exact key in `MeasuredChange.measures` and `MeasuredChange.movements`. */\n id: string\n /**\n * Largest `|after - before|` that is noise, such as the largest movement seen\n * when nothing changed. Required when any change records a movement of this measure.\n */\n noise?: number\n /** Caller-defined cost of measuring it, carried into the selection. */\n cost?: number\n}\n\nexport interface MeasureValiditySelectionRules {\n /** Largest climbed subset. Default 3. */\n maxMeasures?: number\n /** Smallest before-cut gain in the composite's statistic that admits another measure. Default 0.01. */\n minGain?: number\n /** Absolute before-cut rank correlation with a climbed measure at or above which a candidate is redundant. Default 0.9. */\n maxRedundancy?: number\n /**\n * Smallest distance of the after-cut estimate from the null for an admitted\n * measure to be climbed; a smaller one is real by the test and too small to\n * be worth climbing. Default 0.05 for AUC and 0.1 for Spearman.\n */\n minEffect?: { auc?: number; spearman?: number }\n}\n\n/** Selection rules as sealed, every default resolved. */\nexport interface MeasureValidityPlanSelection {\n maxMeasures: number\n minGain: number\n maxRedundancy: number\n /** Absent on a plan sealed without `format`: no floor. */\n minEffect?: { auc: number; spearman: number }\n}\n\n/** The format every plan is sealed in now. */\nconst PLAN_FORMAT = 2 as const\n\nexport interface MeasureValidityPlanInput {\n id: string\n /** Epoch milliseconds. Changes before it fit directions and the selection; changes at or after it are the test. */\n cut: number\n /** Benjamini-Hochberg false-discovery level across every measure-outcome pair tested. Required. */\n level: number\n outcomes: readonly MeasureValidityOutcome[]\n measures: readonly MeasureValidityMeasure[]\n /** Fewest joined changes after the cut for a pair to be tested. Default 100. */\n minJoined?: number\n /** Fewest independent units after the cut for a pair to be tested. Default 20. */\n minUnits?: number\n /**\n * Fewest joined changes after the cut whose value differs from the measure's\n * most common value: the smaller class of a two-valued measure. Below it the\n * pair is insufficient. Default 20.\n */\n minMinority?: number\n /** Whole-unit resamples per interval. Default 1000. */\n resamples?: number\n /** Interval level. Default 0.95. */\n confidence?: number\n /** Absent, every interval's seed derives from its own rows. */\n seed?: number\n /** Reduce several observations of one outcome for one change. Default latest. */\n reduction?: 'latest' | 'mean' | 'max'\n /** Ignore outcome observations captured later than this after the change. */\n maxCaptureLagMs?: number\n /** Upper confidence bound on the share of changes that move a measure beyond its noise, below which it is insensitive. Default 0.05. */\n minSensitivity?: number\n selection?: MeasureValiditySelectionRules\n}\n\n/** A plan with every default resolved, as sealed. */\nexport interface MeasureValidityPlan {\n /**\n * 2 on every plan sealed now. Absent on a plan sealed before it existed,\n * which declares no outcome window, exposure or minimum effect and runs\n * without them.\n */\n format?: 2\n id: string\n cut: number\n level: number\n outcomes: MeasureValidityPlanOutcome[]\n measures: MeasureValidityMeasure[]\n minJoined: number\n minUnits: number\n minMinority: number\n resamples: number\n confidence: number\n seed?: number\n reduction: 'latest' | 'mean' | 'max'\n maxCaptureLagMs?: number\n minSensitivity: number\n selection: MeasureValidityPlanSelection\n}\n\nexport interface SealedMeasureValidityPlan {\n plan: MeasureValidityPlan\n /** sha256 over the RFC 8785 encoding of `plan`. */\n digest: string\n algo: 'sha256-rfc8785'\n sealedAt: string\n}\n\n/** Validate the plan, resolve its defaults, and hash it. */\nexport function sealMeasureValidityPlan(\n input: MeasureValidityPlanInput,\n options: { sealedAt?: string } = {},\n): SealedMeasureValidityPlan {\n const plan = resolvePlan(input, PLAN_FORMAT)\n return {\n plan,\n digest: planDigest(plan),\n algo: 'sha256-rfc8785',\n sealedAt: options.sealedAt ?? new Date().toISOString(),\n }\n}\n\n/** True when the seal's scheme is supported and its digest matches its plan. */\nexport function verifyMeasureValidityPlan(sealed: SealedMeasureValidityPlan): boolean {\n if (sealed?.algo !== 'sha256-rfc8785') return false\n try {\n return planDigest(resolvePlan(sealed.plan, sealed.plan.format)) === sealed.digest\n } catch {\n return false\n }\n}\n\nfunction planDigest(plan: MeasureValidityPlan): string {\n return hashCanonical(plan).slice('sha256:'.length)\n}\n\n/**\n * Resolve the input under `format`. Without a format the plan is resolved\n * exactly as it was before `format` existed, adding nothing, so its digest is\n * the one it was sealed with.\n */\nfunction resolvePlan(input: MeasureValidityPlanInput, format: unknown): MeasureValidityPlan {\n const current = format === PLAN_FORMAT\n const problems: string[] = []\n const check = (ok: boolean, problem: string) => {\n if (!ok) problems.push(problem)\n }\n check(typeof input.id === 'string' && input.id.trim().length > 0, 'id must be nonempty')\n check(Number.isFinite(input.cut), 'cut must be finite epoch milliseconds')\n check(\n typeof input.level === 'number' && input.level > 0 && input.level < 1,\n 'level must be in (0,1)',\n )\n const outcomes: MeasureValidityPlanOutcome[] = (input.outcomes ?? []).map((outcome) => ({\n id: outcome.id,\n direction: outcome.direction,\n kind: outcome.kind,\n ...(outcome.windowMs === undefined ? {} : { windowMs: outcome.windowMs }),\n ...(outcome.exposure === undefined\n ? {}\n : { exposure: { measure: outcome.exposure.measure, bins: outcome.exposure.bins ?? 10 } }),\n }))\n check(outcomes.length > 0, 'at least one outcome is required')\n for (const outcome of outcomes) {\n check(\n typeof outcome.id === 'string' && outcome.id.trim().length > 0,\n 'outcome id must be nonempty',\n )\n check(\n outcome.direction === 'higher-is-better' || outcome.direction === 'lower-is-better',\n `outcome ${outcome.id} must declare higher-is-better or lower-is-better`,\n )\n check(\n outcome.kind === 'binary' || outcome.kind === 'continuous',\n `outcome ${outcome.id} must declare kind binary or continuous`,\n )\n }\n const measures = (input.measures ?? []).map((measure) => ({\n id: measure.id,\n ...(measure.noise === undefined ? {} : { noise: measure.noise }),\n ...(measure.cost === undefined ? {} : { cost: measure.cost }),\n }))\n check(measures.length > 0, 'at least one measure is required')\n for (const measure of measures) {\n check(\n typeof measure.id === 'string' && measure.id.trim().length > 0,\n 'measure id must be nonempty',\n )\n check(\n measure.noise === undefined || (Number.isFinite(measure.noise) && measure.noise >= 0),\n `measure ${measure.id} noise must be finite and nonnegative`,\n )\n check(\n measure.cost === undefined || Number.isFinite(measure.cost),\n `measure ${measure.id} cost must be finite`,\n )\n }\n check(unique(outcomes.map((outcome) => outcome.id)), 'outcome ids must be unique')\n check(unique(measures.map((measure) => measure.id)), 'measure ids must be unique')\n const measureIds = new Set(measures.map((measure) => measure.id))\n for (const outcome of outcomes) {\n check(\n outcome.windowMs === undefined || (Number.isFinite(outcome.windowMs) && outcome.windowMs > 0),\n `outcome ${outcome.id} windowMs must be finite and positive`,\n )\n if (outcome.exposure === undefined) continue\n check(\n measureIds.has(outcome.exposure.measure),\n `outcome ${outcome.id} exposure must be a planned measure`,\n )\n check(\n Number.isSafeInteger(outcome.exposure.bins) && outcome.exposure.bins >= 2,\n `outcome ${outcome.id} exposure bins must be an integer >= 2`,\n )\n }\n const minJoined = input.minJoined ?? 100\n const minUnits = input.minUnits ?? 20\n const minMinority = input.minMinority ?? 20\n const resamples = input.resamples ?? 1000\n const confidence = input.confidence ?? 0.95\n const reduction = input.reduction ?? 'latest'\n const minSensitivity = input.minSensitivity ?? 0.05\n const selection: MeasureValidityPlanSelection = {\n maxMeasures: input.selection?.maxMeasures ?? 3,\n minGain: input.selection?.minGain ?? 0.01,\n maxRedundancy: input.selection?.maxRedundancy ?? 0.9,\n ...(current\n ? {\n minEffect: {\n auc: input.selection?.minEffect?.auc ?? 0.05,\n spearman: input.selection?.minEffect?.spearman ?? 0.1,\n },\n }\n : {}),\n }\n if (!current) {\n check(format === undefined, `format must be ${PLAN_FORMAT} or absent`)\n check(\n outcomes.every(\n (outcome) => outcome.windowMs === undefined && outcome.exposure === undefined,\n ) && input.selection?.minEffect === undefined,\n 'a plan without format declares no outcome window, exposure or minimum effect',\n )\n }\n check(Number.isSafeInteger(minJoined) && minJoined >= 3, 'minJoined must be an integer >= 3')\n check(Number.isSafeInteger(minUnits) && minUnits >= 2, 'minUnits must be an integer >= 2')\n check(\n Number.isSafeInteger(minMinority) && minMinority >= 1,\n 'minMinority must be a positive integer',\n )\n check(Number.isSafeInteger(resamples) && resamples >= 1, 'resamples must be a positive integer')\n check(confidence > 0 && confidence < 1, 'confidence must be in (0,1)')\n check(input.seed === undefined || Number.isSafeInteger(input.seed), 'seed must be an integer')\n check(\n reduction === 'latest' || reduction === 'mean' || reduction === 'max',\n 'reduction must be latest, mean or max',\n )\n check(\n input.maxCaptureLagMs === undefined ||\n (Number.isFinite(input.maxCaptureLagMs) && input.maxCaptureLagMs >= 0),\n 'maxCaptureLagMs must be finite and nonnegative',\n )\n check(minSensitivity >= 0 && minSensitivity <= 1, 'minSensitivity must be in [0,1]')\n check(\n Number.isSafeInteger(selection.maxMeasures) && selection.maxMeasures >= 1,\n 'selection.maxMeasures must be a positive integer',\n )\n check(\n Number.isFinite(selection.minGain) && selection.minGain >= 0,\n 'selection.minGain must be finite and nonnegative',\n )\n check(\n selection.maxRedundancy > 0 && selection.maxRedundancy <= 1,\n 'selection.maxRedundancy must be in (0,1]',\n )\n const minEffect = selection.minEffect\n check(\n minEffect === undefined || (minEffect.auc >= 0 && minEffect.auc < 0.5),\n 'selection.minEffect.auc must be in [0,0.5)',\n )\n check(\n minEffect === undefined || (minEffect.spearman >= 0 && minEffect.spearman < 1),\n 'selection.minEffect.spearman must be in [0,1)',\n )\n if (problems.length > 0) {\n throw new ValidationError(`measure validity plan: ${problems.join('; ')}`)\n }\n return {\n ...(current ? { format: PLAN_FORMAT } : {}),\n id: input.id,\n cut: input.cut,\n level: input.level,\n outcomes,\n measures,\n minJoined,\n minUnits,\n minMinority,\n resamples,\n confidence,\n ...(input.seed === undefined ? {} : { seed: input.seed }),\n reduction,\n ...(input.maxCaptureLagMs === undefined ? {} : { maxCaptureLagMs: input.maxCaptureLagMs }),\n minSensitivity,\n selection,\n }\n}\n\nfunction unique(values: readonly string[]): boolean {\n return new Set(values).size === values.length\n}\n"],"mappings":"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"}
@@ -1,6 +1,6 @@
1
1
  import { a as ContinuousCalibrationResult, c as SelfPreferenceResult, d as calibrateJudgeContinuous, f as continuousAgreement, h as verbosityBias, i as ContinuousAgreementOptions, l as VerbosityBiasResult, m as selfPreference, n as CandidateScore, o as GoldenItem, p as positionalBias, r as ContinuousAgreement, s as PositionalBiasResult, t as CalibrationResult, u as calibrateJudge } from "../judge-calibration-DnrbQaXI.js";
2
2
  import { a as OutcomeFilter, i as InMemoryOutcomeStore, n as FileSystemOutcomeStore, o as OutcomeStore, r as FileSystemOutcomeStoreOptions, s as OutcomeStoreError, t as DeploymentOutcome } from "../outcome-store-CHtuvstd.js";
3
3
  import { _ as correlationStudy, a as CategoricalForecast, c as calibrationCurve, d as rankedProbabilityScore, f as CorrelationResult, g as OutcomePair, h as EvalMetricSpec, i as CalibrationReport, l as calibrationFromPairs, m as CorrelationStudyResult, n as CalibrationOptions, o as OrdinalForecast, p as CorrelationStudyOptions, r as CalibrationPair, s as brierScore, t as CalibrationBin, u as multiclassBrierScore } from "../calibration-CrORXMWx.js";
4
- import { $ as CalibrationMerge, $t as planEvaluatorAudit, A as guardDrift, At as evalHealthStamp, B as JudgeCalibrationCellVerdict, Bt as EvaluatorAdmissionPolicy, C as GuardDriftInput, Ct as SentinelReport, D as GuardMeasure, Dt as SentinelThresholds, E as GuardDriftReport, Et as SentinelStore, F as MeasureValidityReason, Ft as snapshotFromSentinelSet, G as JudgeDimensionCalibration, Gt as EvaluatorAuditPlanInput, H as JudgeCalibrationGateCell, Ht as EvaluatorAuditInput, I as MeasureValidityReport, It as validateSentinelSnapshot, J as JudgePanelPrompt, Jt as ProbabilityPolicyAuditReport, K as JudgePanelCalibration, Kt as EvaluatorErrorRate, L as measureValidityStudy, M as MeasureMovementValidity, Mt as judgeSentinelReport, N as MeasureOutcomeValidity, Nt as snapshotFromAgreement, O as MeasureReference, Ot as SentinelTrend, P as MeasureValidityInput, Pt as snapshotFromCalibration, Q as CalibrationExample, Qt as evaluatorAuditObservationSchema, R as MeasuredChange, S as ClimbedMeasure, St as SentinelMetrics, T as GuardDriftMeasure, Tt as SentinelSnapshot, U as JudgeCalibrationGateConfig, Ut as EvaluatorAuditObservation, V as JudgeCalibrationGate, Vt as EvaluatorAdmissionReport, W as JudgeCalibrationGoldItem, Wt as EvaluatorAuditPlan, X as calibrateJudgePanel, Xt as auditProbabilityPolicy, Y as RubricDimensionGuide, Yt as auditEvaluator, Z as gateJudgeCalibration, Zt as evaluatorAdmissionPolicySchema, _ as catchRate, _t as registerCalibrationSet, a as PerturbedField, at as JudgeGateDecision, b as plantByPerturbation, bt as JudgeSentinelOptions, c as PlantEvidence, ct as JudgeGateRefusedError, d as PlantKindCounts, dt as JudgeRunMeta, en as ClusterBootstrapOptions, et as DEFAULT_JUDGE_GATE_POLICY, f as PlantManifest, ft as OwnerVerdict, g as UnseededRejection, gt as measureJudgeAgreement, h as SeededGradingSet, ht as judgeGateDecision, i as PerturbationKind, it as JudgeExampleAgreement, j as MeasureCoverage, jt as fileSentinelStore, k as MeasureSelection, kt as SnapshotMeta, l as PlantExpectation, lt as JudgeGateStatus, m as SeedPlantsOptions, mt as assertJudgeMayGate, n as CatchRateStatus, nn as ClusteredObservation, nt as JudgeCalibrationSet, o as PerturbedPlant, ot as JudgeGateInput, p as PlantOutcome, pt as addCalibrationVerdicts, q as JudgePanelOutput, qt as ProbabilityPolicyAuditInput, r as EvidencePerturbation, rn as clusterBootstrapMean, rt as JudgeConfusion, s as Plant, st as JudgeGatePolicy, t as CatchRateReport, tn as ClusterBootstrapResult, tt as JudgeAgreement, u as PlantKind, ut as JudgeRun, v as definePlant, vt as snapshotFromJudgeAgreement, w as GuardDriftInterval, wt as SentinelSetOptions, x as seedPlants, xt as SentinelMetricName, y as perturbEvidence, yt as EvalHealthStamp, z as CalibrateJudgePanelInput } from "../index-Cav3abKy.js";
4
+ import { $ as CalibrationExample, $t as evaluatorAuditObservationSchema, A as guardDrift, At as SnapshotMeta, B as CalibrateJudgePanelInput, C as GuardDriftInput, Ct as SentinelMetrics, D as GuardMeasure, Dt as SentinelStore, E as GuardDriftReport, Et as SentinelSnapshot, F as MeasureValidityInput, Ft as snapshotFromCalibration, G as JudgeCalibrationGoldItem, Gt as EvaluatorAuditPlan, H as JudgeCalibrationGate, Ht as EvaluatorAdmissionReport, I as MeasureValidityReason, It as snapshotFromSentinelSet, J as JudgePanelOutput, Jt as ProbabilityPolicyAuditInput, K as JudgeDimensionCalibration, Kt as EvaluatorAuditPlanInput, L as MeasureValidityReport, Lt as validateSentinelSnapshot, M as MeasureExposureBins, Mt as fileSentinelStore, N as MeasureMovementValidity, Nt as judgeSentinelReport, O as MeasureReference, Ot as SentinelThresholds, P as MeasureOutcomeValidity, Pt as snapshotFromAgreement, Q as gateJudgeCalibration, Qt as evaluatorAdmissionPolicySchema, R as measureValidityStudy, S as ClimbedMeasure, St as SentinelMetricName, T as GuardDriftMeasure, Tt as SentinelSetOptions, U as JudgeCalibrationGateCell, Ut as EvaluatorAuditInput, V as JudgeCalibrationCellVerdict, Vt as EvaluatorAdmissionPolicy, W as JudgeCalibrationGateConfig, Wt as EvaluatorAuditObservation, X as RubricDimensionGuide, Xt as auditEvaluator, Y as JudgePanelPrompt, Yt as ProbabilityPolicyAuditReport, Z as calibrateJudgePanel, Zt as auditProbabilityPolicy, _ as catchRate, _t as measureJudgeAgreement, a as PerturbedField, at as JudgeExampleAgreement, b as plantByPerturbation, bt as EvalHealthStamp, c as PlantEvidence, ct as JudgeGatePolicy, d as PlantKindCounts, dt as JudgeRun, en as planEvaluatorAudit, et as CalibrationMerge, f as PlantManifest, ft as JudgeRunMeta, g as UnseededRejection, gt as judgeGateDecision, h as SeededGradingSet, ht as assertJudgeMayGate, i as PerturbationKind, in as clusterBootstrapMean, it as JudgeConfusion, j as MeasureCoverage, jt as evalHealthStamp, k as MeasureSelection, kt as SentinelTrend, l as PlantExpectation, lt as JudgeGateRefusedError, m as SeedPlantsOptions, mt as addCalibrationVerdicts, n as CatchRateStatus, nn as ClusterBootstrapResult, nt as JudgeAgreement, o as PerturbedPlant, ot as JudgeGateDecision, p as PlantOutcome, pt as OwnerVerdict, q as JudgePanelCalibration, qt as EvaluatorErrorRate, r as EvidencePerturbation, rn as ClusteredObservation, rt as JudgeCalibrationSet, s as Plant, st as JudgeGateInput, t as CatchRateReport, tn as ClusterBootstrapOptions, tt as DEFAULT_JUDGE_GATE_POLICY, u as PlantKind, ut as JudgeGateStatus, v as definePlant, vt as registerCalibrationSet, w as GuardDriftInterval, wt as SentinelReport, x as seedPlants, xt as JudgeSentinelOptions, y as perturbEvidence, yt as snapshotFromJudgeAgreement, z as MeasuredChange } from "../index-BSb3fJyZ.js";
5
5
  import { a as RubricPredictiveValidityReport, c as CorrelationInterval, i as RubricPredictiveValidityInput, l as OutcomeReduction, n as RubricOutcomeExclusion, o as RubricRanking, r as RubricOutcomePair, s as rubricPredictiveValidity, t as OutcomeMetricSpec } from "../rubric-predictive-validity-DH94_0Q1.js";
6
- export { type CalibrateJudgePanelInput, CalibrationBin, CalibrationExample, CalibrationMerge, CalibrationOptions, CalibrationPair, CalibrationReport, type CalibrationResult, type CandidateScore, CatchRateReport, CatchRateStatus, CategoricalForecast, type ClimbedMeasure, ClusterBootstrapOptions, ClusterBootstrapResult, ClusteredObservation, type ContinuousAgreement, type ContinuousAgreementOptions, type ContinuousCalibrationResult, type CorrelationInterval, CorrelationResult, CorrelationStudyOptions, CorrelationStudyResult, DEFAULT_JUDGE_GATE_POLICY, DeploymentOutcome, type EvalHealthStamp, EvalMetricSpec, type EvaluatorAdmissionPolicy, type EvaluatorAdmissionReport, type EvaluatorAuditInput, type EvaluatorAuditObservation, type EvaluatorAuditPlan, type EvaluatorAuditPlanInput, type EvaluatorErrorRate, EvidencePerturbation, FileSystemOutcomeStore, FileSystemOutcomeStoreOptions, type GoldenItem, type GuardDriftInput, type GuardDriftInterval, type GuardDriftMeasure, type GuardDriftReport, type GuardMeasure, InMemoryOutcomeStore, JudgeAgreement, type JudgeCalibrationCellVerdict, type JudgeCalibrationGate, type JudgeCalibrationGateCell, type JudgeCalibrationGateConfig, type JudgeCalibrationGoldItem, JudgeCalibrationSet, JudgeConfusion, type JudgeDimensionCalibration, JudgeExampleAgreement, JudgeGateDecision, JudgeGateInput, JudgeGatePolicy, JudgeGateRefusedError, JudgeGateStatus, type JudgePanelCalibration, type JudgePanelOutput, type JudgePanelPrompt, JudgeRun, JudgeRunMeta, type JudgeSentinelOptions, type MeasureCoverage, type MeasureMovementValidity, type MeasureOutcomeValidity, type MeasureReference, type MeasureSelection, type MeasureValidityInput, type MeasureValidityReason, type MeasureValidityReport, type MeasuredChange, OrdinalForecast, OutcomeFilter, OutcomeMetricSpec, OutcomePair, type OutcomeReduction, OutcomeStore, OutcomeStoreError, OwnerVerdict, PerturbationKind, PerturbedField, PerturbedPlant, Plant, PlantEvidence, PlantExpectation, PlantKind, PlantKindCounts, PlantManifest, PlantOutcome, type PositionalBiasResult, type ProbabilityPolicyAuditInput, type ProbabilityPolicyAuditReport, type RubricDimensionGuide, RubricOutcomeExclusion, RubricOutcomePair, RubricPredictiveValidityInput, RubricPredictiveValidityReport, RubricRanking, SeedPlantsOptions, SeededGradingSet, type SelfPreferenceResult, type SentinelMetricName, type SentinelMetrics, type SentinelReport, type SentinelSetOptions, type SentinelSnapshot, type SentinelStore, type SentinelThresholds, type SentinelTrend, type SnapshotMeta, UnseededRejection, type VerbosityBiasResult, addCalibrationVerdicts, assertJudgeMayGate, auditEvaluator, auditProbabilityPolicy, brierScore, calibrateJudge, calibrateJudgeContinuous, calibrateJudgePanel, calibrationCurve, calibrationFromPairs, catchRate, clusterBootstrapMean, continuousAgreement, correlationStudy, definePlant, evalHealthStamp, evaluatorAdmissionPolicySchema, evaluatorAuditObservationSchema, fileSentinelStore, gateJudgeCalibration, guardDrift, judgeGateDecision, judgeSentinelReport, measureJudgeAgreement, measureValidityStudy, multiclassBrierScore, perturbEvidence, planEvaluatorAudit, plantByPerturbation, positionalBias, rankedProbabilityScore, registerCalibrationSet, rubricPredictiveValidity, seedPlants, selfPreference, snapshotFromAgreement, snapshotFromCalibration, snapshotFromJudgeAgreement, snapshotFromSentinelSet, validateSentinelSnapshot, verbosityBias };
6
+ export { type CalibrateJudgePanelInput, CalibrationBin, CalibrationExample, CalibrationMerge, CalibrationOptions, CalibrationPair, CalibrationReport, type CalibrationResult, type CandidateScore, CatchRateReport, CatchRateStatus, CategoricalForecast, type ClimbedMeasure, ClusterBootstrapOptions, ClusterBootstrapResult, ClusteredObservation, type ContinuousAgreement, type ContinuousAgreementOptions, type ContinuousCalibrationResult, type CorrelationInterval, CorrelationResult, CorrelationStudyOptions, CorrelationStudyResult, DEFAULT_JUDGE_GATE_POLICY, DeploymentOutcome, type EvalHealthStamp, EvalMetricSpec, type EvaluatorAdmissionPolicy, type EvaluatorAdmissionReport, type EvaluatorAuditInput, type EvaluatorAuditObservation, type EvaluatorAuditPlan, type EvaluatorAuditPlanInput, type EvaluatorErrorRate, EvidencePerturbation, FileSystemOutcomeStore, FileSystemOutcomeStoreOptions, type GoldenItem, type GuardDriftInput, type GuardDriftInterval, type GuardDriftMeasure, type GuardDriftReport, type GuardMeasure, InMemoryOutcomeStore, JudgeAgreement, type JudgeCalibrationCellVerdict, type JudgeCalibrationGate, type JudgeCalibrationGateCell, type JudgeCalibrationGateConfig, type JudgeCalibrationGoldItem, JudgeCalibrationSet, JudgeConfusion, type JudgeDimensionCalibration, JudgeExampleAgreement, JudgeGateDecision, JudgeGateInput, JudgeGatePolicy, JudgeGateRefusedError, JudgeGateStatus, type JudgePanelCalibration, type JudgePanelOutput, type JudgePanelPrompt, JudgeRun, JudgeRunMeta, type JudgeSentinelOptions, type MeasureCoverage, type MeasureExposureBins, type MeasureMovementValidity, type MeasureOutcomeValidity, type MeasureReference, type MeasureSelection, type MeasureValidityInput, type MeasureValidityReason, type MeasureValidityReport, type MeasuredChange, OrdinalForecast, OutcomeFilter, OutcomeMetricSpec, OutcomePair, type OutcomeReduction, OutcomeStore, OutcomeStoreError, OwnerVerdict, PerturbationKind, PerturbedField, PerturbedPlant, Plant, PlantEvidence, PlantExpectation, PlantKind, PlantKindCounts, PlantManifest, PlantOutcome, type PositionalBiasResult, type ProbabilityPolicyAuditInput, type ProbabilityPolicyAuditReport, type RubricDimensionGuide, RubricOutcomeExclusion, RubricOutcomePair, RubricPredictiveValidityInput, RubricPredictiveValidityReport, RubricRanking, SeedPlantsOptions, SeededGradingSet, type SelfPreferenceResult, type SentinelMetricName, type SentinelMetrics, type SentinelReport, type SentinelSetOptions, type SentinelSnapshot, type SentinelStore, type SentinelThresholds, type SentinelTrend, type SnapshotMeta, UnseededRejection, type VerbosityBiasResult, addCalibrationVerdicts, assertJudgeMayGate, auditEvaluator, auditProbabilityPolicy, brierScore, calibrateJudge, calibrateJudgeContinuous, calibrateJudgePanel, calibrationCurve, calibrationFromPairs, catchRate, clusterBootstrapMean, continuousAgreement, correlationStudy, definePlant, evalHealthStamp, evaluatorAdmissionPolicySchema, evaluatorAuditObservationSchema, fileSentinelStore, gateJudgeCalibration, guardDrift, judgeGateDecision, judgeSentinelReport, measureJudgeAgreement, measureValidityStudy, multiclassBrierScore, perturbEvidence, planEvaluatorAudit, plantByPerturbation, positionalBias, rankedProbabilityScore, registerCalibrationSet, rubricPredictiveValidity, seedPlants, selfPreference, snapshotFromAgreement, snapshotFromCalibration, snapshotFromJudgeAgreement, snapshotFromSentinelSet, validateSentinelSnapshot, verbosityBias };