@tangle-network/agent-eval 0.216.1 → 0.217.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 (521) hide show
  1. package/CHANGELOG.md +102 -57
  2. package/README.md +2 -2
  3. package/dist/adapters/http.d.ts +2 -2
  4. package/dist/{agent-profile-VFcQncbW.d.ts → agent-profile-DTt8uGP9.d.ts} +4 -17
  5. package/dist/agent-profile-DTt8uGP9.d.ts.map +1 -0
  6. package/dist/{agent-profile-cell-BK8mlqlq.js → agent-profile-cell-B1V1gUZs.js} +4 -53
  7. package/dist/agent-profile-cell-B1V1gUZs.js.map +1 -0
  8. package/dist/{agent-profile-cell-BNp-Js9F.d.ts → agent-profile-cell-BcpFbNd5.d.ts} +2 -22
  9. package/dist/agent-profile-cell-BcpFbNd5.d.ts.map +1 -0
  10. package/dist/{agreement-irr-BEWLIF3_.js → agreement-irr-BhAqjluA.js} +5 -5
  11. package/dist/agreement-irr-BhAqjluA.js.map +1 -0
  12. package/dist/analyst/index.d.ts +36 -169
  13. package/dist/analyst/index.d.ts.map +1 -1
  14. package/dist/analyst/index.js +17 -192
  15. package/dist/analyst/index.js.map +1 -1
  16. package/dist/{analyze-runs-C84irm4i.js → analyze-runs-DqPJaJ4X.js} +225 -21
  17. package/dist/analyze-runs-DqPJaJ4X.js.map +1 -0
  18. package/dist/{analyze-runs-D68fd-su.d.ts → analyze-runs-DyeNcenW.d.ts} +5 -5
  19. package/dist/{analyze-runs-D68fd-su.d.ts.map → analyze-runs-DyeNcenW.d.ts.map} +1 -1
  20. package/dist/authenticity/index.d.ts +0 -23
  21. package/dist/authenticity/index.d.ts.map +1 -1
  22. package/dist/authenticity/index.js +1 -34
  23. package/dist/authenticity/index.js.map +1 -1
  24. package/dist/{benchmark-command-By0vh8q7.js → benchmark-command-xQK8nOI6.js} +554 -89
  25. package/dist/benchmark-command-xQK8nOI6.js.map +1 -0
  26. package/dist/benchmarks/index.d.ts +5 -6
  27. package/dist/benchmarks/index.d.ts.map +1 -1
  28. package/dist/benchmarks/index.js +4 -4
  29. package/dist/benchmarks/index.js.map +1 -1
  30. package/dist/builder-eval/index.d.ts +3 -3
  31. package/dist/builder-eval/index.js +2 -2
  32. package/dist/builder-eval/index.js.map +1 -1
  33. package/dist/campaign/index.d.ts +7 -7
  34. package/dist/campaign/index.js +15 -15
  35. package/dist/{campaign-BudZ70zo.js → campaign-CJGkxAQ6.js} +23 -530
  36. package/dist/campaign-CJGkxAQ6.js.map +1 -0
  37. package/dist/{campaign-evidence-Clrn4hBV.js → campaign-evidence-CQYw8_0H.js} +10 -18
  38. package/dist/{campaign-evidence-Clrn4hBV.js.map → campaign-evidence-CQYw8_0H.js.map} +1 -1
  39. package/dist/{canonical-B2RqLofv.js → canonical-Dq2hOQ8L.js} +2 -2
  40. package/dist/{canonical-B2RqLofv.js.map → canonical-Dq2hOQ8L.js.map} +1 -1
  41. package/dist/cell-spend-DEWR3nj-.js +90 -0
  42. package/dist/cell-spend-DEWR3nj-.js.map +1 -0
  43. package/dist/{chat-client-l-MVDlDk.js → chat-client-ldqxYYTN.js} +2 -2
  44. package/dist/{chat-client-l-MVDlDk.js.map → chat-client-ldqxYYTN.js.map} +1 -1
  45. package/dist/{chat-json-call-puMArmtW.js → chat-json-call-DavzexSp.js} +3 -2
  46. package/dist/chat-json-call-DavzexSp.js.map +1 -0
  47. package/dist/{claim-q4HQhK1G.js → claim-BPVuyHuy.js} +3 -3
  48. package/dist/{claim-q4HQhK1G.js.map → claim-BPVuyHuy.js.map} +1 -1
  49. package/dist/cli.js +113 -12
  50. package/dist/cli.js.map +1 -1
  51. package/dist/{client-BzL9niqi.d.ts → client-hwo3cJjR.d.ts} +3 -16
  52. package/dist/client-hwo3cJjR.d.ts.map +1 -0
  53. package/dist/{cluster-bootstrap-qcUWYFl-.js → cluster-bootstrap-DEwwhl0C.js} +3 -3
  54. package/dist/{cluster-bootstrap-qcUWYFl-.js.map → cluster-bootstrap-DEwwhl0C.js.map} +1 -1
  55. package/dist/{produced-state-BsDmnwxc.js → completion-verifier-B_jw6C9p.js} +9 -64
  56. package/dist/completion-verifier-B_jw6C9p.js.map +1 -0
  57. package/dist/contract/index.d.ts +12 -12
  58. package/dist/contract/index.js +25 -401
  59. package/dist/contract/index.js.map +1 -1
  60. package/dist/{cost-ledger-BP8V4kUQ.js → cost-ledger-D0352Z4d.js} +4 -8
  61. package/dist/cost-ledger-D0352Z4d.js.map +1 -0
  62. package/dist/dataset-DQqhOCPt.d.ts.map +1 -1
  63. package/dist/{default-registry-COhk9g36.js → default-registry-ClYjq3QE.js} +8 -11
  64. package/dist/default-registry-ClYjq3QE.js.map +1 -0
  65. package/dist/{default-registry-DzHiGruW.d.ts → default-registry-DXgLmoDI.d.ts} +7 -50
  66. package/dist/default-registry-DXgLmoDI.d.ts.map +1 -0
  67. package/dist/{define-agent-eval-CNTPzIkp.js → define-agent-eval-BDxNlP3D.js} +10 -10
  68. package/dist/{define-agent-eval-CNTPzIkp.js.map → define-agent-eval-BDxNlP3D.js.map} +1 -1
  69. package/dist/{define-agent-eval-WSck0CZJ.d.ts → define-agent-eval-BIkH_gAR.d.ts} +8 -8
  70. package/dist/define-agent-eval-BIkH_gAR.d.ts.map +1 -0
  71. package/dist/{descriptive-DboxPZrG.js → descriptive-CVNy48rR.js} +2 -2
  72. package/dist/{descriptive-DboxPZrG.js.map → descriptive-CVNy48rR.js.map} +1 -1
  73. package/dist/diagnosis/index.d.ts +4 -14
  74. package/dist/diagnosis/index.d.ts.map +1 -1
  75. package/dist/diagnosis/index.js +67 -28
  76. package/dist/diagnosis/index.js.map +1 -1
  77. package/dist/{dspy-rlm-engine-LRCu61m5.js → dspy-rlm-engine-DhdCr1Dc.js} +5 -10
  78. package/dist/dspy-rlm-engine-DhdCr1Dc.js.map +1 -0
  79. package/dist/{emitter-HcCmFQl_.d.ts → emitter-DABYYTcH.d.ts} +5 -5
  80. package/dist/emitter-DABYYTcH.d.ts.map +1 -0
  81. package/dist/emitter-DbMXUIVP.js.map +1 -1
  82. package/dist/{engine-3A_4jOlI.d.ts → engine-BvZ0R-36.d.ts} +17 -21
  83. package/dist/engine-BvZ0R-36.d.ts.map +1 -0
  84. package/dist/{equal-terms-BtdXayCJ.js → equal-terms-DbPGcVtI.js} +2 -2
  85. package/dist/equal-terms-DbPGcVtI.js.map +1 -0
  86. package/dist/{errors-DVZiqS7K.js → errors-BcOs5MKW.js} +2 -8
  87. package/dist/{errors-DVZiqS7K.js.map → errors-BcOs5MKW.js.map} +1 -1
  88. package/dist/{eval-campaign-90jeaCAI.js → eval-campaign-BLEfBGbA.js} +6 -6
  89. package/dist/{eval-campaign-90jeaCAI.js.map → eval-campaign-BLEfBGbA.js.map} +1 -1
  90. package/dist/{evaluation-6Yoi74gM.d.ts → evaluation-jTjC_QQD.d.ts} +7 -7
  91. package/dist/evaluation-jTjC_QQD.d.ts.map +1 -0
  92. package/dist/evaluation.d.ts +2 -2
  93. package/dist/evaluation.js +1 -1
  94. package/dist/evaluation.js.map +1 -1
  95. package/dist/{exact-types-ClugMJfI.d.ts → exact-types-CflbJ9f3.d.ts} +2 -2
  96. package/dist/{exact-types-ClugMJfI.d.ts.map → exact-types-CflbJ9f3.d.ts.map} +1 -1
  97. package/dist/{exec-ChJ6d5if.js → exec-CpbtOXVt.js} +2 -24
  98. package/dist/{exec-ChJ6d5if.js.map → exec-CpbtOXVt.js.map} +1 -1
  99. package/dist/execution-tracks-CpgFPpS5.js.map +1 -1
  100. package/dist/experiment/index.d.ts +9 -112
  101. package/dist/experiment/index.d.ts.map +1 -1
  102. package/dist/experiment/index.js +149 -241
  103. package/dist/experiment/index.js.map +1 -1
  104. package/dist/{exporters-X4xwla8A.js → exporters-Cl6IeNAu.js} +3 -3
  105. package/dist/exporters-Cl6IeNAu.js.map +1 -0
  106. package/dist/{exporters-ChTnR90l.d.ts → exporters-Dk3oEbK_.d.ts} +2 -4
  107. package/dist/{exporters-ChTnR90l.d.ts.map → exporters-Dk3oEbK_.d.ts.map} +1 -1
  108. package/dist/{external-optimizer-process-BjMGUuds.js → external-optimizer-process-KVFGvYX1.js} +4 -3
  109. package/dist/external-optimizer-process-KVFGvYX1.js.map +1 -0
  110. package/dist/{external-optimizer-subprocess-BqW0hHcI.js → external-optimizer-subprocess-XIHBOSKt.js} +9 -11
  111. package/dist/external-optimizer-subprocess-XIHBOSKt.js.map +1 -0
  112. package/dist/{extract-usage-BrnzRJ6H.js → extract-usage-BZLU01kR.js} +2 -23
  113. package/dist/{extract-usage-BrnzRJ6H.js.map → extract-usage-BZLU01kR.js.map} +1 -1
  114. package/dist/{failure-cluster-CbgEDcFJ.d.ts → failure-cluster-DN0t63Z0.d.ts} +4 -43
  115. package/dist/failure-cluster-DN0t63Z0.d.ts.map +1 -0
  116. package/dist/{failure-taxonomy-CjabTATj.js → failure-taxonomy-Bx5oWqaW.js} +2 -19
  117. package/dist/{failure-taxonomy-CjabTATj.js.map → failure-taxonomy-Bx5oWqaW.js.map} +1 -1
  118. package/dist/{feedback-trajectory-C4EG0nNH.d.ts → feedback-trajectory-BWmhRBGu.d.ts} +7 -9
  119. package/dist/feedback-trajectory-BWmhRBGu.d.ts.map +1 -0
  120. package/dist/{semantic-concept-judge-BQF8te0T.js → findings-store-BMVQtEsm.js} +9 -249
  121. package/dist/findings-store-BMVQtEsm.js.map +1 -0
  122. package/dist/fuzz.d.ts +19 -62
  123. package/dist/fuzz.d.ts.map +1 -1
  124. package/dist/fuzz.js +62 -108
  125. package/dist/fuzz.js.map +1 -1
  126. package/dist/{hf-dataset-BR2yhuNn.js → hf-dataset-D9f7-oX7.js} +4 -24
  127. package/dist/hf-dataset-D9f7-oX7.js.map +1 -0
  128. package/dist/hosted/index.d.ts +2 -2
  129. package/dist/hosted/index.js +2 -2
  130. package/dist/{index-DHKEAv3s.d.ts → index-9jJ2fKSX.d.ts} +2 -64
  131. package/dist/index-9jJ2fKSX.d.ts.map +1 -0
  132. package/dist/{index-DV-jSzxF.d.ts → index-BLGqZ81N.d.ts} +10 -15
  133. package/dist/{index-DV-jSzxF.d.ts.map → index-BLGqZ81N.d.ts.map} +1 -1
  134. package/dist/{index-DPcngtwt.d.ts → index-BiT6RtNH.d.ts} +11 -36
  135. package/dist/index-BiT6RtNH.d.ts.map +1 -0
  136. package/dist/{index-BO41eGj5.d.ts → index-CX-GAUpw.d.ts} +3 -7
  137. package/dist/index-CX-GAUpw.d.ts.map +1 -0
  138. package/dist/{index-BFRO6chs.d.ts → index-CiRwLv2R.d.ts} +5 -69
  139. package/dist/index-CiRwLv2R.d.ts.map +1 -0
  140. package/dist/{index-CyszSg4O.d.ts → index-ZuWx52WG.d.ts} +115 -347
  141. package/dist/index-ZuWx52WG.d.ts.map +1 -0
  142. package/dist/index.d.ts +211 -218
  143. package/dist/index.d.ts.map +1 -1
  144. package/dist/index.js +402 -1040
  145. package/dist/index.js.map +1 -1
  146. package/dist/{integrity-dLiDe2kD.js → integrity-DOd9Q86O.js} +7 -9
  147. package/dist/integrity-DOd9Q86O.js.map +1 -0
  148. package/dist/{integrity-BXOsAb3i.js → integrity-W4CADcFc.js} +3 -7
  149. package/dist/{integrity-BXOsAb3i.js.map → integrity-W4CADcFc.js.map} +1 -1
  150. package/dist/{integrity-DAMEDFaC.d.ts → integrity-_qgZLA5p.d.ts} +4 -6
  151. package/dist/{integrity-DAMEDFaC.d.ts.map → integrity-_qgZLA5p.d.ts.map} +1 -1
  152. package/dist/{internal-Epl-YBZW.js → internal-BTK91Bqt.js} +3 -3
  153. package/dist/{internal-Epl-YBZW.js.map → internal-BTK91Bqt.js.map} +1 -1
  154. package/dist/{interval-CELpye1n.js → interval-Dq9gt7jx.js} +3 -3
  155. package/dist/{interval-CELpye1n.js.map → interval-Dq9gt7jx.js.map} +1 -1
  156. package/dist/{journal-DfRz9kps.js → journal-CR4QikYp.js} +110 -110
  157. package/dist/journal-CR4QikYp.js.map +1 -0
  158. package/dist/json-BhdsJaOQ.js +111 -0
  159. package/dist/json-BhdsJaOQ.js.map +1 -0
  160. package/dist/{judge-calibration-BpCy5XQl.js → judge-calibration-BkXMIWA4.js} +3 -3
  161. package/dist/{judge-calibration-BpCy5XQl.js.map → judge-calibration-BkXMIWA4.js.map} +1 -1
  162. package/dist/{judge-gate-iY9s4L44.js → judge-gate-Co5tuh57.js} +4 -27
  163. package/dist/{judge-gate-iY9s4L44.js.map → judge-gate-Co5tuh57.js.map} +1 -1
  164. package/dist/{judge-gate-CE7CQAgt.d.ts → judge-gate-DsL0yFcb.d.ts} +8 -9
  165. package/dist/judge-gate-DsL0yFcb.d.ts.map +1 -0
  166. package/dist/{kind-factory-BobI5Jy3.js → kind-factory-Gy4fXixd.js} +88 -17
  167. package/dist/kind-factory-Gy4fXixd.js.map +1 -0
  168. package/dist/ledger-core/index.d.ts +2 -2
  169. package/dist/ledger-core/index.js +4 -4
  170. package/dist/{ledger-core-Gq7yp8lP.js → ledger-core-DrJhbms9.js} +5 -84
  171. package/dist/ledger-core-DrJhbms9.js.map +1 -0
  172. package/dist/{llm-client-CyBAoYiX.js → llm-client-BshCREn6.js} +6 -108
  173. package/dist/llm-client-BshCREn6.js.map +1 -0
  174. package/dist/{llm-judge-CG12SQJq.js → llm-judge-C8jMTNNG.js} +24 -32
  175. package/dist/llm-judge-C8jMTNNG.js.map +1 -0
  176. package/dist/matrix/index.d.ts +3 -3
  177. package/dist/matrix/index.js +3 -2
  178. package/dist/{matrix-Dm0BQW7U.js → matrix-B8l-Nsxd.js} +3 -88
  179. package/dist/matrix-B8l-Nsxd.js.map +1 -0
  180. package/dist/{matrix-DSrSxjjy.d.ts → matrix-DHe-dwVJ.d.ts} +9 -18
  181. package/dist/matrix-DHe-dwVJ.d.ts.map +1 -0
  182. package/dist/{mean-DHoMiudD.js → mean-BbA_JCzW.js} +39 -5
  183. package/dist/mean-BbA_JCzW.js.map +1 -0
  184. package/dist/meta-eval/index.d.ts +5 -5
  185. package/dist/meta-eval/index.js +10 -10
  186. package/dist/metrics-BKaPBtIG.js.map +1 -1
  187. package/dist/{mint-DNU8QPG4.d.ts → mint-BRZXuwRi.d.ts} +4 -4
  188. package/dist/{mint-DNU8QPG4.d.ts.map → mint-BRZXuwRi.d.ts.map} +1 -1
  189. package/dist/{mint-QaD5cA0u.js → mint-zszyYlpA.js} +4 -4
  190. package/dist/{mint-QaD5cA0u.js.map → mint-zszyYlpA.js.map} +1 -1
  191. package/dist/{multi-layer-verifier-BUaQ4C17.d.ts → multi-layer-verifier-DEgMUk6v.d.ts} +2 -2
  192. package/dist/{multi-layer-verifier-BUaQ4C17.d.ts.map → multi-layer-verifier-DEgMUk6v.d.ts.map} +1 -1
  193. package/dist/{multiplicity-DQUFcbW4.js → multiplicity-Sg0U7h8j.js} +2 -2
  194. package/dist/{multiplicity-DQUFcbW4.js.map → multiplicity-Sg0U7h8j.js.map} +1 -1
  195. package/dist/multishot/golden/index.d.ts +1 -23
  196. package/dist/multishot/golden/index.d.ts.map +1 -1
  197. package/dist/multishot/golden/index.js +3 -3
  198. package/dist/multishot/golden/index.js.map +1 -1
  199. package/dist/multishot/index.d.ts +3 -12
  200. package/dist/multishot/index.d.ts.map +1 -1
  201. package/dist/multishot/index.js +4 -3
  202. package/dist/multishot/index.js.map +1 -1
  203. package/dist/openapi.json +114 -10
  204. package/dist/{otel-spans-B9tUXRHF.js → otel-spans-CdN909k1.js} +3 -3
  205. package/dist/{otel-spans-B9tUXRHF.js.map → otel-spans-CdN909k1.js.map} +1 -1
  206. package/dist/{paired-arms-CwMGJsrS.js → paired-arms-Ct4LTKc1.js} +32 -9
  207. package/dist/paired-arms-Ct4LTKc1.js.map +1 -0
  208. package/dist/{paired-binary-CvpFHfKZ.js → paired-binary-B_nejA44.js} +3 -36
  209. package/dist/paired-binary-B_nejA44.js.map +1 -0
  210. package/dist/{paired-promotion-decision-DPKz8ZnF.d.ts → paired-promotion-decision-CQMJ5xGN.d.ts} +2 -34
  211. package/dist/paired-promotion-decision-CQMJ5xGN.d.ts.map +1 -0
  212. package/dist/{paired-promotion-decision-DsAPYGCm.js → paired-promotion-decision-D0SHb-ZL.js} +3 -3
  213. package/dist/{paired-promotion-decision-DsAPYGCm.js.map → paired-promotion-decision-D0SHb-ZL.js.map} +1 -1
  214. package/dist/{pareto-Cm6ndrWN.js → pareto-BzsxidFD.js} +11 -11
  215. package/dist/pareto-BzsxidFD.js.map +1 -0
  216. package/dist/pipelines/index.d.ts +16 -19
  217. package/dist/pipelines/index.d.ts.map +1 -1
  218. package/dist/pipelines/index.js +4 -68
  219. package/dist/pipelines/index.js.map +1 -1
  220. package/dist/{power-and-mde-Hj2ubb4B.js → power-and-mde-N5nU4_Ly.js} +3 -3
  221. package/dist/{power-and-mde-Hj2ubb4B.js.map → power-and-mde-N5nU4_Ly.js.map} +1 -1
  222. package/dist/{prime-protocol-CHKgA3a6.js → prime-protocol-BFgGrEMP.js} +3 -3
  223. package/dist/prime-protocol-BFgGrEMP.js.map +1 -0
  224. package/dist/{prime-protocol-HiB9HX7E.d.ts → prime-protocol-BWG2DQIk.d.ts} +3 -21
  225. package/dist/prime-protocol-BWG2DQIk.d.ts.map +1 -0
  226. package/dist/profile-cell.d.ts +2 -2
  227. package/dist/profile-cell.js +2 -2
  228. package/dist/{promotion-gate-BawrdPYr.d.ts → promotion-gate-DaY95yU6.d.ts} +7 -8
  229. package/dist/{promotion-gate-BawrdPYr.d.ts.map → promotion-gate-DaY95yU6.d.ts.map} +1 -1
  230. package/dist/{promotion-policy-KO57gbyV.js → promotion-policy-6A8osGr_.js} +4 -4
  231. package/dist/{promotion-policy-KO57gbyV.js.map → promotion-policy-6A8osGr_.js.map} +1 -1
  232. package/dist/{proposal-findings-CY1xKn_a.js → proposal-findings-BbWidvUk.js} +3 -3
  233. package/dist/proposal-findings-BbWidvUk.js.map +1 -0
  234. package/dist/{query-BUCZCK7F.js → query-B_RZ36an.js} +5 -5
  235. package/dist/query-B_RZ36an.js.map +1 -0
  236. package/dist/{query-DK1nWcmp.d.ts → query-Cmv_U8vf.d.ts} +4 -24
  237. package/dist/{query-DK1nWcmp.d.ts.map → query-Cmv_U8vf.d.ts.map} +1 -1
  238. package/dist/{random-ByUSnV9w.js → random-DDDcC7YU.js} +2 -2
  239. package/dist/{random-ByUSnV9w.js.map → random-DDDcC7YU.js.map} +1 -1
  240. package/dist/{raw-provider-sink-DoHz4JNG.js → raw-provider-sink-75w4FWBj.js} +2 -2
  241. package/dist/{raw-provider-sink-DoHz4JNG.js.map → raw-provider-sink-75w4FWBj.js.map} +1 -1
  242. package/dist/{redact-mtCCcT8z.d.ts → redact-DXdlFb_U.d.ts} +2 -3
  243. package/dist/redact-DXdlFb_U.d.ts.map +1 -0
  244. package/dist/{redact-B5xXKqQ3.js → redact-mtkTiJVk.js} +2 -7
  245. package/dist/{redact-B5xXKqQ3.js.map → redact-mtkTiJVk.js.map} +1 -1
  246. package/dist/{registry-D7_hm2fK.d.ts → registry-ssNoHzwD.d.ts} +4 -4
  247. package/dist/{registry-D7_hm2fK.d.ts.map → registry-ssNoHzwD.d.ts.map} +1 -1
  248. package/dist/{release-confidence-CpuP65S5.js → release-confidence-CYIFH-fp.js} +6 -11
  249. package/dist/release-confidence-CYIFH-fp.js.map +1 -0
  250. package/dist/{report-command-SC9nqb4M.js → render-C-w2EZ6p.js} +205 -363
  251. package/dist/render-C-w2EZ6p.js.map +1 -0
  252. package/dist/reporting.d.ts +6 -6
  253. package/dist/reporting.js +8 -8
  254. package/dist/{researcher-CEcfku-T.d.ts → researcher-0ABVIdGa.d.ts} +9 -9
  255. package/dist/{researcher-CEcfku-T.d.ts.map → researcher-0ABVIdGa.d.ts.map} +1 -1
  256. package/dist/{reward-CpCmAM8L.d.ts → reward-DrZ71vnf.d.ts} +3 -26
  257. package/dist/reward-DrZ71vnf.d.ts.map +1 -0
  258. package/dist/{reward-hacking-E0d-WVcP.js → reward-hacking-ByuETaIb.js} +3 -3
  259. package/dist/{reward-hacking-E0d-WVcP.js.map → reward-hacking-ByuETaIb.js.map} +1 -1
  260. package/dist/{reward-hacking-RVdZ6Kkt.d.ts → reward-hacking-E52wq86n.d.ts} +5 -18
  261. package/dist/reward-hacking-E52wq86n.d.ts.map +1 -0
  262. package/dist/reward-nw2xZGZG.js.map +1 -1
  263. package/dist/rl.d.ts +117 -295
  264. package/dist/rl.d.ts.map +1 -1
  265. package/dist/rl.js +27 -747
  266. package/dist/rl.js.map +1 -1
  267. package/dist/rollout/index.d.ts +5 -5
  268. package/dist/rollout/index.js +7 -8
  269. package/dist/{rollout-DZV1t2Wg.js → rollout-D6C50mfA.js} +88 -13
  270. package/dist/rollout-D6C50mfA.js.map +1 -0
  271. package/dist/{rubric-predictive-validity-DaFW70y9.js → rubric-predictive-validity-D3_oI72N.js} +3 -3
  272. package/dist/{rubric-predictive-validity-DaFW70y9.js.map → rubric-predictive-validity-D3_oI72N.js.map} +1 -1
  273. package/dist/{rubric-predictive-validity-C03EC7ZE.d.ts → rubric-predictive-validity-DiwT8PbL.d.ts} +2 -2
  274. package/dist/{rubric-predictive-validity-C03EC7ZE.d.ts.map → rubric-predictive-validity-DiwT8PbL.d.ts.map} +1 -1
  275. package/dist/{run-record-C1E24G2A.d.ts → run-record-CaxbLq6Y.d.ts} +4 -10
  276. package/dist/run-record-CaxbLq6Y.d.ts.map +1 -0
  277. package/dist/{run-record-C5e7FjhJ.js → run-record-CysKLB93.js} +3 -3
  278. package/dist/run-record-CysKLB93.js.map +1 -0
  279. package/dist/{run-record-Boc5IUTp.js → run-record-DhEJgoPz.js} +4 -4
  280. package/dist/{run-record-Boc5IUTp.js.map → run-record-DhEJgoPz.js.map} +1 -1
  281. package/dist/sandbox-harness-BlSOu4LX.d.ts.map +1 -1
  282. package/dist/{schema-CSf6qWgZ.js → schema-Bt2vLFm3.js} +2 -14
  283. package/dist/schema-Bt2vLFm3.js.map +1 -0
  284. package/dist/schema-C-ziyJD7.d.ts.map +1 -1
  285. package/dist/{schema-2g7trUwH.d.ts → schema-D6EVKzTB.d.ts} +4 -5
  286. package/dist/schema-D6EVKzTB.d.ts.map +1 -0
  287. package/dist/{schema-BuiujZ-g.js → schema-DxcKTzbi.js} +2 -2
  288. package/dist/schema-DxcKTzbi.js.map +1 -0
  289. package/dist/search/index.d.ts +3 -31
  290. package/dist/search/index.d.ts.map +1 -1
  291. package/dist/search/index.js +4 -4
  292. package/dist/{search-kernel-DyNEa6IU.d.ts → search-kernel-DxqjBxA-.d.ts} +10 -27
  293. package/dist/search-kernel-DxqjBxA-.d.ts.map +1 -0
  294. package/dist/{search-ledger-CVUGLDZp.js → search-ledger-TUvB5gWH.js} +7 -7
  295. package/dist/{search-ledger-CVUGLDZp.js.map → search-ledger-TUvB5gWH.js.map} +1 -1
  296. package/dist/{search-ledger-file-DDQUgvCg.js → search-ledger-file-UKCO2r8a.js} +4 -4
  297. package/dist/search-ledger-file-UKCO2r8a.js.map +1 -0
  298. package/dist/{search-shipper-BOSD46qv.js → search-shipper-Cw2z3-td.js} +4 -4
  299. package/dist/search-shipper-Cw2z3-td.js.map +1 -0
  300. package/dist/{search-summary-BQCSWf1g.js → search-summary-DQIvJsSB.js} +5 -5
  301. package/dist/{search-summary-BQCSWf1g.js.map → search-summary-DQIvJsSB.js.map} +1 -1
  302. package/dist/{sequential-CzK5DarL.js → sequential-BVv1sjsw.js} +2 -32
  303. package/dist/{sequential-CzK5DarL.js.map → sequential-BVv1sjsw.js.map} +1 -1
  304. package/dist/{sequential-Bf_pbE50.js → sequential-CimQrbjv.js} +5 -5
  305. package/dist/sequential-CimQrbjv.js.map +1 -0
  306. package/dist/{sequential-BhsrMupG.d.ts → sequential-KwGspfeR.d.ts} +2 -9
  307. package/dist/{sequential-BhsrMupG.d.ts.map → sequential-KwGspfeR.d.ts.map} +1 -1
  308. package/dist/{sequential-eprocess-DM_qENCl.js → sequential-eprocess-DodI6RoF.js} +2 -2
  309. package/dist/{sequential-eprocess-DM_qENCl.js.map → sequential-eprocess-DodI6RoF.js.map} +1 -1
  310. package/dist/{server-e9oWO_bN.js → server-DoVbqqtJ.js} +101 -101
  311. package/dist/server-DoVbqqtJ.js.map +1 -0
  312. package/dist/{single-run-lock-CV9Eyd_q.js → single-run-lock-U58yf8N6.js} +2 -2
  313. package/dist/{single-run-lock-CV9Eyd_q.js.map → single-run-lock-U58yf8N6.js.map} +1 -1
  314. package/dist/{skillopt-optimization-method-BiwA8nfX.js → skillopt-optimization-method-kyL94-ri.js} +17 -95
  315. package/dist/skillopt-optimization-method-kyL94-ri.js.map +1 -0
  316. package/dist/{spans-BHAUXMGN.d.ts → spans-CVngGij3.d.ts} +2 -2
  317. package/dist/{spans-BHAUXMGN.d.ts.map → spans-CVngGij3.d.ts.map} +1 -1
  318. package/dist/{statistical-heldout-42NlCNDe.js → statistical-heldout-Bksv92Th.js} +3 -3
  319. package/dist/statistical-heldout-Bksv92Th.js.map +1 -0
  320. package/dist/{statistical-heldout-CYpGaoDH.d.ts → statistical-heldout-C9AbgREN.d.ts} +8 -67
  321. package/dist/statistical-heldout-C9AbgREN.d.ts.map +1 -0
  322. package/dist/{steps-Bg5-KVx1.d.ts → steps-DlepJPwD.d.ts} +2 -56
  323. package/dist/steps-DlepJPwD.d.ts.map +1 -0
  324. package/dist/{store-C4avFjIi.d.ts → store-B3nWRy3B.d.ts} +2 -2
  325. package/dist/{store-C4avFjIi.d.ts.map → store-B3nWRy3B.d.ts.map} +1 -1
  326. package/dist/{store-otlp-DJ9dtA5x.js → store-otlp-BteDAbHK.js} +3 -3
  327. package/dist/{store-otlp-DJ9dtA5x.js.map → store-otlp-BteDAbHK.js.map} +1 -1
  328. package/dist/{store-tool-spans-CIX5arAG.js → store-tool-spans-D5l_OfTJ.js} +8 -8
  329. package/dist/store-tool-spans-D5l_OfTJ.js.map +1 -0
  330. package/dist/{store-tool-spans-DdCSPa7C.d.ts → store-tool-spans-DZS0HWVf.d.ts} +9 -18
  331. package/dist/store-tool-spans-DZS0HWVf.d.ts.map +1 -0
  332. package/dist/storyboard/index.d.ts +4 -11
  333. package/dist/storyboard/index.d.ts.map +1 -1
  334. package/dist/storyboard/index.js +1 -16
  335. package/dist/storyboard/index.js.map +1 -1
  336. package/dist/{summary-report-V_JACR4Y.js → summary-report-BsXJoYX5.js} +88 -10
  337. package/dist/summary-report-BsXJoYX5.js.map +1 -0
  338. package/dist/{summary-report-bdFDXq0b.d.ts → summary-report-DM7tlml1.d.ts} +10 -19
  339. package/dist/summary-report-DM7tlml1.d.ts.map +1 -0
  340. package/dist/supervisor-run/index.d.ts +60 -28
  341. package/dist/supervisor-run/index.d.ts.map +1 -1
  342. package/dist/supervisor-run/index.js +4 -458
  343. package/dist/supervisor-run/index.js.map +1 -1
  344. package/dist/{systemone-BomhHr2c.d.ts → systemone-Bp_Ac0p1.d.ts} +5 -5
  345. package/dist/{systemone-BomhHr2c.d.ts.map → systemone-Bp_Ac0p1.d.ts.map} +1 -1
  346. package/dist/systemone-protocol.js +1 -1
  347. package/dist/{systemone-review-CUVcQJu6.d.ts → systemone-review-CwE6JGIp.d.ts} +2 -2
  348. package/dist/{systemone-review-CUVcQJu6.d.ts.map → systemone-review-CwE6JGIp.d.ts.map} +1 -1
  349. package/dist/{systemone-review-D7sXwsqq.js → systemone-review-DzdOJ8I6.js} +3 -3
  350. package/dist/{systemone-review-D7sXwsqq.js.map → systemone-review-DzdOJ8I6.js.map} +1 -1
  351. package/dist/systemone.d.ts +5 -5
  352. package/dist/systemone.js +5 -5
  353. package/dist/systemone.js.map +1 -1
  354. package/dist/{task-failure-attributes-hEmASjix.js → task-failure-attributes-BMsblaDh.js} +3 -3
  355. package/dist/task-failure-attributes-BMsblaDh.js.map +1 -0
  356. package/dist/{terminal-record-DZyQZ3pz.js → terminal-record-78g6E4vh.js} +5 -5
  357. package/dist/terminal-record-78g6E4vh.js.map +1 -0
  358. package/dist/{tool-groups-C3NEcdCM.d.ts → tool-groups-DyNz2JZ_.d.ts} +3 -3
  359. package/dist/tool-groups-DyNz2JZ_.d.ts.map +1 -0
  360. package/dist/{tool-waste-BKgvd-TP.d.ts → tool-waste-CkjzWmeY.d.ts} +25 -28
  361. package/dist/tool-waste-CkjzWmeY.d.ts.map +1 -0
  362. package/dist/{tool-waste-BlesqTqW.js → tool-waste-DLsjS_p-.js} +5 -5
  363. package/dist/{tool-waste-BlesqTqW.js.map → tool-waste-DLsjS_p-.js.map} +1 -1
  364. package/dist/{trace-questions-CM2CAocU.d.ts → trace-questions-xxwgsuMi.d.ts} +4 -9
  365. package/dist/{trace-questions-CM2CAocU.d.ts.map → trace-questions-xxwgsuMi.d.ts.map} +1 -1
  366. package/dist/trace-repair/index.d.ts +14 -211
  367. package/dist/trace-repair/index.d.ts.map +1 -1
  368. package/dist/trace-repair/index.js +865 -981
  369. package/dist/trace-repair/index.js.map +1 -1
  370. package/dist/traces.d.ts +18 -46
  371. package/dist/traces.d.ts.map +1 -1
  372. package/dist/traces.js +13 -13
  373. package/dist/traces.js.map +1 -1
  374. package/dist/trajectory-replay/index.d.ts +3 -117
  375. package/dist/trajectory-replay/index.d.ts.map +1 -1
  376. package/dist/trajectory-replay/index.js +98 -56
  377. package/dist/trajectory-replay/index.js.map +1 -1
  378. package/dist/{tree-C1XYeXvy.js → tree-BGRglkKd.js} +13 -10
  379. package/dist/tree-BGRglkKd.js.map +1 -0
  380. package/dist/{types-B3jzCp0p.js → types-BXgASBCL.js} +2 -2
  381. package/dist/{types-B3jzCp0p.js.map → types-BXgASBCL.js.map} +1 -1
  382. package/dist/{types-C1tnkEgM.d.ts → types-CW8ewATZ.d.ts} +4 -113
  383. package/dist/types-CW8ewATZ.d.ts.map +1 -0
  384. package/dist/{types-BqkVmHfv.d.ts → types-CmXY0PQf.d.ts} +2 -4
  385. package/dist/types-CmXY0PQf.d.ts.map +1 -0
  386. package/dist/{types-C02qtnG8.d.ts → types-D-mgRzlh.d.ts} +7 -28
  387. package/dist/types-D-mgRzlh.d.ts.map +1 -0
  388. package/dist/{types-Cq8mSbq8.d.ts → types-D8GhJoHk.d.ts} +7 -9
  389. package/dist/{types-Cq8mSbq8.d.ts.map → types-D8GhJoHk.d.ts.map} +1 -1
  390. package/dist/{types-IXD2HJzu.js → types-DqFMNTgK.js} +2 -4
  391. package/dist/types-DqFMNTgK.js.map +1 -0
  392. package/dist/{types-Cbe2fWBa.d.ts → types-DtMbFw6U.d.ts} +3 -3
  393. package/dist/{types-Cbe2fWBa.d.ts.map → types-DtMbFw6U.d.ts.map} +1 -1
  394. package/dist/{verdict-Dl0tiT1X.js → verdict-BGQmxQ8A.js} +3 -3
  395. package/dist/verdict-BGQmxQ8A.js.map +1 -0
  396. package/dist/{verdict-E4eRNf7-.d.ts → verdict-C24NELtN.d.ts} +2 -15
  397. package/dist/{verdict-E4eRNf7-.d.ts.map → verdict-C24NELtN.d.ts.map} +1 -1
  398. package/dist/{verdict-cache-Bm8EKL2s.js → verdict-cache-CL_7tePD.js} +2 -2
  399. package/dist/verdict-cache-CL_7tePD.js.map +1 -0
  400. package/dist/wire/index.d.ts +31 -410
  401. package/dist/wire/index.d.ts.map +1 -1
  402. package/dist/wire/index.js +2 -2
  403. package/docs/changes/jev-evidence-review.md +1 -1
  404. package/docs/changes/jev-product-adoption.md +1 -1
  405. package/docs/changes/jev-recorded-evidence.md +1 -1
  406. package/docs/design/statistics-decisions.md +17 -17
  407. package/docs/design.md +1 -1
  408. package/docs/evaluation-integrity.md +1 -1
  409. package/docs/proofs/campaign-attempt-retention-20261001/README.md +2 -2
  410. package/docs/public-api.md +138 -529
  411. package/docs/rollout.md +1 -1
  412. package/docs/trace-repair-admission.md +1 -1
  413. package/docs/wire-protocol.md +1 -1
  414. package/package.json +1 -1
  415. package/dist/active-curriculum-B_Lc9kfO.js +0 -61
  416. package/dist/active-curriculum-B_Lc9kfO.js.map +0 -1
  417. package/dist/agent-profile-VFcQncbW.d.ts.map +0 -1
  418. package/dist/agent-profile-cell-BK8mlqlq.js.map +0 -1
  419. package/dist/agent-profile-cell-BNp-Js9F.d.ts.map +0 -1
  420. package/dist/agreement-irr-BEWLIF3_.js.map +0 -1
  421. package/dist/analyze-runs-C84irm4i.js.map +0 -1
  422. package/dist/baseline-Udi_PLuT.js +0 -259
  423. package/dist/baseline-Udi_PLuT.js.map +0 -1
  424. package/dist/benchmark-CXmVVHH2.js +0 -562
  425. package/dist/benchmark-CXmVVHH2.js.map +0 -1
  426. package/dist/benchmark-command-By0vh8q7.js.map +0 -1
  427. package/dist/campaign-BudZ70zo.js.map +0 -1
  428. package/dist/chat-json-call-puMArmtW.js.map +0 -1
  429. package/dist/claude-jsonl-dZir12m6.js +0 -86
  430. package/dist/claude-jsonl-dZir12m6.js.map +0 -1
  431. package/dist/client-BzL9niqi.d.ts.map +0 -1
  432. package/dist/cost-ledger-BP8V4kUQ.js.map +0 -1
  433. package/dist/counterfactual-CPaWN99-.d.ts +0 -60
  434. package/dist/counterfactual-CPaWN99-.d.ts.map +0 -1
  435. package/dist/counterfactual-Dn3veueY.js +0 -98
  436. package/dist/counterfactual-Dn3veueY.js.map +0 -1
  437. package/dist/default-registry-COhk9g36.js.map +0 -1
  438. package/dist/default-registry-DzHiGruW.d.ts.map +0 -1
  439. package/dist/define-agent-eval-WSck0CZJ.d.ts.map +0 -1
  440. package/dist/dspy-rlm-engine-LRCu61m5.js.map +0 -1
  441. package/dist/effect-sizes-BhzEpXMc.js +0 -82
  442. package/dist/effect-sizes-BhzEpXMc.js.map +0 -1
  443. package/dist/emitter-HcCmFQl_.d.ts.map +0 -1
  444. package/dist/engine-3A_4jOlI.d.ts.map +0 -1
  445. package/dist/equal-terms-BtdXayCJ.js.map +0 -1
  446. package/dist/evaluation-6Yoi74gM.d.ts.map +0 -1
  447. package/dist/exporters-X4xwla8A.js.map +0 -1
  448. package/dist/external-optimizer-process-BjMGUuds.js.map +0 -1
  449. package/dist/external-optimizer-subprocess-BqW0hHcI.js.map +0 -1
  450. package/dist/failure-cluster-CbgEDcFJ.d.ts.map +0 -1
  451. package/dist/feedback-trajectory-C4EG0nNH.d.ts.map +0 -1
  452. package/dist/hf-dataset-BR2yhuNn.js.map +0 -1
  453. package/dist/index-BFRO6chs.d.ts.map +0 -1
  454. package/dist/index-BO41eGj5.d.ts.map +0 -1
  455. package/dist/index-CyszSg4O.d.ts.map +0 -1
  456. package/dist/index-DHKEAv3s.d.ts.map +0 -1
  457. package/dist/index-DPcngtwt.d.ts.map +0 -1
  458. package/dist/integrity-dLiDe2kD.js.map +0 -1
  459. package/dist/journal-DfRz9kps.js.map +0 -1
  460. package/dist/judge-gate-CE7CQAgt.d.ts.map +0 -1
  461. package/dist/kind-factory-BobI5Jy3.js.map +0 -1
  462. package/dist/ledger-core-Gq7yp8lP.js.map +0 -1
  463. package/dist/llm-client-CyBAoYiX.js.map +0 -1
  464. package/dist/llm-judge-CG12SQJq.js.map +0 -1
  465. package/dist/matrix-DSrSxjjy.d.ts.map +0 -1
  466. package/dist/matrix-Dm0BQW7U.js.map +0 -1
  467. package/dist/mean-DHoMiudD.js.map +0 -1
  468. package/dist/normal-DsJZtrJc.js +0 -25
  469. package/dist/normal-DsJZtrJc.js.map +0 -1
  470. package/dist/paired-arms-CwMGJsrS.js.map +0 -1
  471. package/dist/paired-binary-CvpFHfKZ.js.map +0 -1
  472. package/dist/paired-promotion-decision-DPKz8ZnF.d.ts.map +0 -1
  473. package/dist/pareto-Cm6ndrWN.js.map +0 -1
  474. package/dist/prime-protocol-CHKgA3a6.js.map +0 -1
  475. package/dist/prime-protocol-HiB9HX7E.d.ts.map +0 -1
  476. package/dist/produced-state-BsDmnwxc.js.map +0 -1
  477. package/dist/proposal-findings-CY1xKn_a.js.map +0 -1
  478. package/dist/query-BUCZCK7F.js.map +0 -1
  479. package/dist/redact-mtCCcT8z.d.ts.map +0 -1
  480. package/dist/release-confidence-CpuP65S5.js.map +0 -1
  481. package/dist/report-command-SC9nqb4M.js.map +0 -1
  482. package/dist/reward-CpCmAM8L.d.ts.map +0 -1
  483. package/dist/reward-hacking-RVdZ6Kkt.d.ts.map +0 -1
  484. package/dist/rollout-DZV1t2Wg.js.map +0 -1
  485. package/dist/run-record-C1E24G2A.d.ts.map +0 -1
  486. package/dist/run-record-C5e7FjhJ.js.map +0 -1
  487. package/dist/schema-2g7trUwH.d.ts.map +0 -1
  488. package/dist/schema-BuiujZ-g.js.map +0 -1
  489. package/dist/schema-CSf6qWgZ.js.map +0 -1
  490. package/dist/search-kernel-DyNEa6IU.d.ts.map +0 -1
  491. package/dist/search-ledger-file-DDQUgvCg.js.map +0 -1
  492. package/dist/search-shipper-BOSD46qv.js.map +0 -1
  493. package/dist/semantic-concept-judge-BQF8te0T.js.map +0 -1
  494. package/dist/sequential-Bf_pbE50.js.map +0 -1
  495. package/dist/server-e9oWO_bN.js.map +0 -1
  496. package/dist/skillopt-optimization-method-BiwA8nfX.js.map +0 -1
  497. package/dist/statistical-heldout-42NlCNDe.js.map +0 -1
  498. package/dist/statistical-heldout-CYpGaoDH.d.ts.map +0 -1
  499. package/dist/steps-Bg5-KVx1.d.ts.map +0 -1
  500. package/dist/store-tool-spans-CIX5arAG.js.map +0 -1
  501. package/dist/store-tool-spans-DdCSPa7C.d.ts.map +0 -1
  502. package/dist/student-t-DVPW7CdL.js +0 -39
  503. package/dist/student-t-DVPW7CdL.js.map +0 -1
  504. package/dist/summary-report-V_JACR4Y.js.map +0 -1
  505. package/dist/summary-report-bdFDXq0b.d.ts.map +0 -1
  506. package/dist/task-failure-attributes-hEmASjix.js.map +0 -1
  507. package/dist/terminal-record-DZyQZ3pz.js.map +0 -1
  508. package/dist/tool-groups-C3NEcdCM.d.ts.map +0 -1
  509. package/dist/tool-waste-BKgvd-TP.d.ts.map +0 -1
  510. package/dist/trajectory-Y1fmdlw7.d.ts +0 -24
  511. package/dist/trajectory-Y1fmdlw7.d.ts.map +0 -1
  512. package/dist/tree-C1XYeXvy.js.map +0 -1
  513. package/dist/types-BqkVmHfv.d.ts.map +0 -1
  514. package/dist/types-C02qtnG8.d.ts.map +0 -1
  515. package/dist/types-C1tnkEgM.d.ts.map +0 -1
  516. package/dist/types-IXD2HJzu.js.map +0 -1
  517. package/dist/usage-receipt-Cx3xNeyB.js +0 -76
  518. package/dist/usage-receipt-Cx3xNeyB.js.map +0 -1
  519. package/dist/verdict-Dl0tiT1X.js.map +0 -1
  520. package/dist/verdict-cache-Bm8EKL2s.js.map +0 -1
  521. package/docs/design/self-improvement-evidence-audit.md +0 -263
@@ -1,115 +1,29 @@
1
- import { s as ValidationError, t as AgentEvalError } from "./errors-DVZiqS7K.js";
2
- import { a as hashCanonical, i as compareCodeUnits, r as canonicalString } from "./canonical-B2RqLofv.js";
3
- import { c as agentProfileId, d as harnessAxisOf, i as verifyCompletion, l as agentProfileModelId, s as agentProfileHash, t as extractProducedState } from "./produced-state-BsDmnwxc.js";
4
- import { o as buildAgentProfileCell } from "./agent-profile-cell-BK8mlqlq.js";
5
- import { c as validateRunRecord, i as modelHasSnapshot, n as UNKNOWN_MODEL, o as runTaskScore } from "./run-record-Boc5IUTp.js";
6
- import { i as pairedBootstrap } from "./mean-DHoMiudD.js";
7
- import { t as comparePairedArms } from "./paired-arms-CwMGJsrS.js";
8
- import { o as pairHoldout } from "./statistical-heldout-42NlCNDe.js";
9
- import { n as contentHash, t as canonicalJson } from "./verdict-cache-Bm8EKL2s.js";
10
- import { _ as labelTrustRank, at as resolveRunDir, c as executeOptimizationMethod, d as combineComparisonCosts, it as planCampaignRun, lt as cellCachePath, rt as runCampaign, ut as computeManifestHash } from "./llm-judge-CG12SQJq.js";
11
- import { n as campaignCellToRunRecord, r as projectCampaignCellQuality, t as campaignCellCostProvenance } from "./run-record-C5e7FjhJ.js";
12
- import { n as CostAccountingIncompleteError } from "./cost-ledger-BP8V4kUQ.js";
13
- import { B as assertCampaignDesign, N as surfaceContentHash, R as assertRealBackend, W as campaignScenarioIdentity, k as assertCodeSurfaceIdentity, z as summarizeBackendIntegrity } from "./campaign-evidence-Clrn4hBV.js";
14
- import { m as mapConcurrent } from "./journal-DfRz9kps.js";
15
- import { P as fsCampaignStorage } from "./external-optimizer-subprocess-BqW0hHcI.js";
16
- import "./pareto-Cm6ndrWN.js";
17
- import "./search-ledger-CVUGLDZp.js";
18
- import "./search-summary-BQCSWf1g.js";
19
- import { a as scoreAnalystFindings } from "./benchmark-CXmVVHH2.js";
20
- import "./external-optimizer-process-BjMGUuds.js";
21
- import "./skillopt-optimization-method-BiwA8nfX.js";
22
- import "./sequential-Bf_pbE50.js";
1
+ import { s as ValidationError, t as AgentEvalError } from "./errors-BcOs5MKW.js";
2
+ import { a as hashCanonical, i as compareCodeUnits, r as canonicalString } from "./canonical-Dq2hOQ8L.js";
3
+ import { c as agentProfileModelId, o as agentProfileHash, r as verifyCompletion, s as agentProfileId, u as harnessAxisOf } from "./completion-verifier-B_jw6C9p.js";
4
+ import { i as buildAgentProfileCell } from "./agent-profile-cell-B1V1gUZs.js";
5
+ import { c as validateRunRecord, i as modelHasSnapshot, n as UNKNOWN_MODEL, o as runTaskScore } from "./run-record-DhEJgoPz.js";
6
+ import { t as comparePairedArms } from "./paired-arms-Ct4LTKc1.js";
7
+ import { i as pairedBootstrap } from "./mean-BbA_JCzW.js";
8
+ import { o as pairHoldout } from "./statistical-heldout-Bksv92Th.js";
9
+ import { n as contentHash, t as canonicalJson } from "./verdict-cache-CL_7tePD.js";
10
+ import { $ as planCampaignRun, Q as runCampaign, et as resolveRunDir, nt as cellCachePath, rt as computeManifestHash, s as executeOptimizationMethod, u as combineComparisonCosts } from "./llm-judge-C8jMTNNG.js";
11
+ import { n as campaignCellToRunRecord, r as projectCampaignCellQuality, t as campaignCellCostProvenance } from "./run-record-CysKLB93.js";
12
+ import { C as assertCodeSurfaceIdentity, D as surfaceContentHash, M as assertRealBackend, N as summarizeBackendIntegrity, P as assertCampaignDesign, R as campaignScenarioIdentity } from "./campaign-evidence-CQYw8_0H.js";
13
+ import { a as mapConcurrent } from "./journal-CR4QikYp.js";
14
+ import { M as fsCampaignStorage } from "./external-optimizer-subprocess-XIHBOSKt.js";
15
+ import "./pareto-BzsxidFD.js";
16
+ import "./search-ledger-TUvB5gWH.js";
17
+ import "./search-summary-DQIvJsSB.js";
18
+ import "./external-optimizer-process-KVFGvYX1.js";
19
+ import "./skillopt-optimization-method-kyL94-ri.js";
20
+ import "./sequential-CimQrbjv.js";
23
21
  import { createHash } from "node:crypto";
24
- import { closeSync, constants, existsSync, fstatSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, readlinkSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
22
+ import { closeSync, constants, existsSync, fstatSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, readlinkSync, realpathSync, rmSync, statSync } from "node:fs";
25
23
  import { z } from "zod";
26
24
  import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
27
25
  import { devNull, tmpdir } from "node:os";
28
26
  import { execFileSync } from "node:child_process";
29
- //#region src/campaign/analyst-surface.ts
30
- function buildTraceAnalystSurfaceDispatch(options) {
31
- return async (surface, scenario, context) => {
32
- if (typeof surface !== "string") throw new TypeError(`buildTraceAnalystSurfaceDispatch requires a string prompt, received ${surface.kind}`);
33
- return options.analyze({
34
- instructions: surface,
35
- traceStore: scenario.traceStore,
36
- runId: `${context.cellId}:${scenario.id}`,
37
- signal: context.signal
38
- });
39
- };
40
- }
41
- function traceAnalystQualityJudge() {
42
- return {
43
- name: "trace-analyst-quality",
44
- judgeVersion: "agent-eval:trace-analyst-quality:v3",
45
- dimensions: [
46
- {
47
- key: "issue_recall",
48
- description: "share of labeled issues found"
49
- },
50
- {
51
- key: "finding_precision",
52
- description: "share of findings tied to a labeled issue"
53
- },
54
- {
55
- key: "f1",
56
- description: "harmonic mean of issue recall and finding precision"
57
- },
58
- {
59
- key: "critical_step_accuracy",
60
- description: "share of labeled causal steps cited"
61
- },
62
- {
63
- key: "citation_coverage",
64
- description: "share of findings with evidence citations"
65
- },
66
- {
67
- key: "citation_label_agreement",
68
- description: "share of citations matching a labeled case location"
69
- },
70
- {
71
- key: "clean",
72
- description: "1 when a clean case produces no findings"
73
- }
74
- ],
75
- appliesTo: (scenario) => scenario.kind === "trace-analyst" && scenario.labelState !== "unlabeled",
76
- score({ artifact, scenario }) {
77
- assertScorableScenario(scenario);
78
- return traceAnalystJudgeScore(scoreAnalystFindings({
79
- id: scenario.id,
80
- expectedIssues: scenario.expectedIssues,
81
- labeledEvidence: scenario.labeledEvidence
82
- }, artifact.findings));
83
- }
84
- };
85
- }
86
- function assertScorableScenario(scenario) {
87
- if (scenario.labelState === "unlabeled") throw new TypeError(`trace analyst scenario '${scenario.id}' has no quality labels`);
88
- if (scenario.labelState === "positive" && scenario.expectedIssues.length === 0) throw new TypeError(`positive trace analyst scenario '${scenario.id}' requires expected issues`);
89
- if (scenario.labelState === "trusted-negative" && scenario.expectedIssues.length > 0) throw new TypeError(`trusted-negative trace analyst scenario '${scenario.id}' cannot contain expected issues`);
90
- }
91
- function traceAnalystJudgeScore(score) {
92
- const dimensions = {
93
- issue_recall: score.issueRecall,
94
- finding_precision: score.findingPrecision,
95
- f1: score.f1,
96
- clean: score.predictionOnLabelEmptyCase ? 0 : 1
97
- };
98
- if (score.criticalStepAccuracy !== null) dimensions.critical_step_accuracy = score.criticalStepAccuracy;
99
- if (score.citationCoverage !== null) dimensions.citation_coverage = score.citationCoverage;
100
- if (score.citationLabelAgreement !== null) dimensions.citation_label_agreement = score.citationLabelAgreement;
101
- const notes = [
102
- `${score.matchedIssueIds.length}/${score.expectedIssueCount} issues found`,
103
- `${score.supportedFindingIndexes.length}/${score.supportedFindingIndexes.length + score.unsupportedFindingIndexes.length} findings supported`,
104
- `${score.unlabeledEvidence.length} citations outside labeled locations`
105
- ].join("; ");
106
- return {
107
- dimensions,
108
- composite: score.criticalStepAccuracy === null ? score.f1 : (score.f1 + score.criticalStepAccuracy) / 2,
109
- notes
110
- };
111
- }
112
- //#endregion
113
27
  //#region src/campaign/cross-surface-context.ts
114
28
  function validateCrossSurfaceInput(input) {
115
29
  assertNonEmptyUnique(input.taskOrder, "taskOrder");
@@ -1045,264 +959,6 @@ function neutralizationGate(options) {
1045
959
  };
1046
960
  }
1047
961
  //#endregion
1048
- //#region src/campaign/grounded-reflection.ts
1049
- /**
1050
- * Deterministic per-field diff of call arguments between passing and failing
1051
- * rollouts. A field set by failing rollouts but left unset by passing ones is
1052
- * the classic poison-input signature; a field whose values differ across the
1053
- * split points at the correct value. Feed `text` to the reviser verbatim.
1054
- */
1055
- function rolloutArgumentDiff(rollouts, opts = {}) {
1056
- const passThreshold = opts.passThreshold ?? 1;
1057
- const maxValues = opts.maxValuesPerField ?? 4;
1058
- const collect = (pass) => {
1059
- const byField = /* @__PURE__ */ new Map();
1060
- for (const r of rollouts) {
1061
- if (pass !== r.score >= passThreshold) continue;
1062
- for (const c of r.calls) for (const [k, v] of Object.entries(c.args)) {
1063
- const set = byField.get(k) ?? /* @__PURE__ */ new Set();
1064
- set.add(String(v));
1065
- byField.set(k, set);
1066
- }
1067
- }
1068
- return byField;
1069
- };
1070
- const passing = collect(true);
1071
- const failing = collect(false);
1072
- const lines = [];
1073
- for (const field of /* @__PURE__ */ new Set([...passing.keys(), ...failing.keys()])) {
1074
- const pv = [...passing.get(field) ?? []].slice(0, maxValues);
1075
- const fv = [...failing.get(field) ?? []].slice(0, maxValues);
1076
- const render = (vals) => vals.length ? JSON.stringify(vals) : "NOT SET (omitted)";
1077
- lines.push(` ${field}: passing runs -> ${render(pv)} | failing runs -> ${render(fv)}`);
1078
- }
1079
- const lower = (m) => {
1080
- const out = /* @__PURE__ */ new Set();
1081
- for (const vals of m.values()) for (const v of vals) out.add(v.toLowerCase());
1082
- return out;
1083
- };
1084
- return {
1085
- text: lines.join("\n") || " (no calls observed)",
1086
- passingValues: lower(passing),
1087
- failingValues: lower(failing)
1088
- };
1089
- }
1090
- /**
1091
- * Scan revised artifact text for single-quoted single-word literals (the
1092
- * "use exactly 'new'" pattern) that appear in no passing rollout's argument
1093
- * values. Multi-word quotes pass (they are prose, not prescriptions).
1094
- * Callers should reject on `harmful` (with a bounded retry) and at most log
1095
- * `ungrounded` - see the module header for why the severities differ.
1096
- */
1097
- function classifyUngroundedLiterals(text, diff) {
1098
- const ungrounded = /* @__PURE__ */ new Set();
1099
- for (const m of text.matchAll(/'([a-z][a-z_-]{1,19})'/gi)) {
1100
- const w = m[1].toLowerCase();
1101
- if (!diff.passingValues.has(w)) ungrounded.add(w);
1102
- }
1103
- const all = [...ungrounded];
1104
- return {
1105
- ungrounded: all,
1106
- harmful: all.filter((w) => diff.failingValues.has(w))
1107
- };
1108
- }
1109
- //#endregion
1110
- //#region src/campaign/labeled-store/fs-adapter.ts
1111
- /**
1112
- * Filesystem `LabeledScenarioStore` adapter. The default capture sink for
1113
- * traces + eval artifacts. Production deployments typically swap for a
1114
- * Turso/SQLite adapter (same interface).
1115
- *
1116
- * Records land as one JSONL file per source under `<root>/<source>.jsonl`.
1117
- * Each line is a `LabeledScenarioRecord`. Append-only — no in-place edits.
1118
- *
1119
- * Safety properties enforced at write-time:
1120
- *
1121
- * - **Provenance required**: writes without `source`, `sourceVersionHash`,
1122
- * `capturedAt`, `redactionStatus` are rejected. Closes the alignment
1123
- * reviewer's data-poisoning gap.
1124
- * - **Per-source rate limits**: optional `rateLimitBucket` + `maxWritesPerMinute`
1125
- * stops a single tenant/source from flooding the store.
1126
- *
1127
- * Safety properties enforced at sample-time:
1128
- *
1129
- * - **Required split + capturedBefore**: substrate refuses to sample without
1130
- * an explicit `split` ('train' | 'test') AND a temporal cutoff. Eliminates
1131
- * accidental train/test contamination.
1132
- * - **Default training-source filter**: when the store is sampled with
1133
- * `split: 'train'`, production-trace records are EXCLUDED unless the
1134
- * caller passes `filter.source: 'production-trace'` explicitly. Closes
1135
- * the contamination-by-default gap flagged by the senior eval engineer.
1136
- */
1137
- /** Typed rejection from a labeled-scenario store (bad provenance, rate limit, invalid sample args) — carries a stable string `code`. */
1138
- var LabeledScenarioStoreError = class extends Error {
1139
- code;
1140
- constructor(code, message) {
1141
- super(message);
1142
- this.code = code;
1143
- this.name = "LabeledScenarioStoreError";
1144
- }
1145
- };
1146
- /**
1147
- * Filesystem `LabeledScenarioStore`: appends one JSONL file per source with provenance and
1148
- * rate-limit guards. For tests, local dev, and small workloads — high-throughput lands in Turso.
1149
- */
1150
- var FsLabeledScenarioStore = class {
1151
- options;
1152
- now;
1153
- rateLimits = /* @__PURE__ */ new Map();
1154
- constructor(options) {
1155
- this.options = options;
1156
- if (!existsSync(options.root)) mkdirSync(options.root, { recursive: true });
1157
- this.now = options.now ?? Date.now;
1158
- }
1159
- async observe(write) {
1160
- this.assertProvenance(write);
1161
- this.assertRateLimit(write);
1162
- const record = this.toRecord(write);
1163
- appendLine(this.pathForSource(write.source), `${JSON.stringify(record)}\n`);
1164
- }
1165
- async sample(args) {
1166
- if (!args.split) throw new LabeledScenarioStoreError("split_required", "sample() requires an explicit `split` (train | test) — substrate refuses ambiguous reads");
1167
- if (!args.capturedBefore) throw new LabeledScenarioStoreError("capturedBefore_required", "sample() requires an explicit `capturedBefore` timestamp for temporal-split discipline");
1168
- const all = [];
1169
- for (const source of ALL_SOURCES) {
1170
- if (args.split === "train" && source === "production-trace") {
1171
- if (!sourceFilterContains(args.filter?.source, "production-trace")) continue;
1172
- }
1173
- const path = this.pathForSource(source);
1174
- if (!existsSync(path)) continue;
1175
- const lines = readFileSync(path, "utf8").split("\n").filter(Boolean);
1176
- for (const line of lines) {
1177
- let record;
1178
- try {
1179
- record = JSON.parse(line);
1180
- } catch {
1181
- continue;
1182
- }
1183
- if (!matchesFilter(record, args, source)) continue;
1184
- all.push(record);
1185
- }
1186
- }
1187
- all.sort((a, b) => {
1188
- if (a.capturedAt !== b.capturedAt) return compareCodeUnits(a.capturedAt, b.capturedAt);
1189
- return compareCodeUnits(a.recordHash, b.recordHash);
1190
- });
1191
- return all.slice(0, args.count);
1192
- }
1193
- async size() {
1194
- const bySource = {};
1195
- const byTrust = {
1196
- unverified: 0,
1197
- "verified-signal": 0,
1198
- "human-rated": 0
1199
- };
1200
- let total = 0;
1201
- for (const source of ALL_SOURCES) {
1202
- const path = this.pathForSource(source);
1203
- if (!existsSync(path)) {
1204
- bySource[source] = 0;
1205
- continue;
1206
- }
1207
- const lines = readFileSync(path, "utf8").split("\n").filter(Boolean);
1208
- bySource[source] = lines.length;
1209
- total += lines.length;
1210
- for (const line of lines) {
1211
- let trust = "unverified";
1212
- try {
1213
- trust = JSON.parse(line).labelTrust ?? "unverified";
1214
- } catch {}
1215
- byTrust[trust] += 1;
1216
- }
1217
- }
1218
- return {
1219
- train: total,
1220
- test: total,
1221
- bySource,
1222
- byTrust
1223
- };
1224
- }
1225
- assertProvenance(write) {
1226
- if (!write.source) throw new LabeledScenarioStoreError("missing_source", "LabeledScenarioWrite requires `source`");
1227
- if (!write.sourceVersionHash || write.sourceVersionHash.length === 0) throw new LabeledScenarioStoreError("missing_source_version", "LabeledScenarioWrite requires `sourceVersionHash` (git sha or substrate version)");
1228
- if (!write.capturedAt) throw new LabeledScenarioStoreError("missing_captured_at", "LabeledScenarioWrite requires `capturedAt` ISO timestamp");
1229
- if (!write.redactionStatus) throw new LabeledScenarioStoreError("missing_redaction_status", "LabeledScenarioWrite requires explicit `redactionStatus` — raw / redacted-pii / redacted-secrets / fully-redacted");
1230
- if (!ALL_SOURCES.includes(write.source)) throw new LabeledScenarioStoreError("unknown_source", `LabeledScenarioWrite.source must be one of: ${ALL_SOURCES.join(", ")}`);
1231
- }
1232
- assertRateLimit(write) {
1233
- const cap = this.options.maxWritesPerMinutePerBucket;
1234
- if (!cap || !write.rateLimitBucket) return;
1235
- const now = this.now();
1236
- const windowMs = 6e4;
1237
- let state = this.rateLimits.get(write.rateLimitBucket);
1238
- if (!state || now - state.windowStartMs >= windowMs) {
1239
- state = {
1240
- bucket: write.rateLimitBucket,
1241
- windowStartMs: now,
1242
- count: 0
1243
- };
1244
- this.rateLimits.set(write.rateLimitBucket, state);
1245
- }
1246
- if (state.count >= cap) throw new LabeledScenarioStoreError("rate_limit_exceeded", `LabeledScenarioStore: bucket ${write.rateLimitBucket} exceeded ${cap} writes/min`);
1247
- state.count += 1;
1248
- }
1249
- toRecord(write) {
1250
- const recordHash = sha256$1(JSON.stringify({
1251
- id: write.scenario.id,
1252
- src: write.source,
1253
- at: write.capturedAt,
1254
- ver: write.sourceVersionHash
1255
- }));
1256
- return {
1257
- ...write,
1258
- recordHash,
1259
- split: "train"
1260
- };
1261
- }
1262
- pathForSource(source) {
1263
- return join(this.options.root, `${source}.jsonl`);
1264
- }
1265
- };
1266
- const ALL_SOURCES = [
1267
- "production-trace",
1268
- "eval-run",
1269
- "manual",
1270
- "red-team",
1271
- "synthetic"
1272
- ];
1273
- function sourceFilterContains(filter, needle) {
1274
- if (!filter) return false;
1275
- if (Array.isArray(filter)) return filter.includes(needle);
1276
- return filter === needle;
1277
- }
1278
- function matchesFilter(record, args, source) {
1279
- if (args.split === "train" && record.capturedAt >= args.capturedBefore) return false;
1280
- if (args.split === "test" && record.capturedAt < args.capturedBefore) return false;
1281
- const f = args.filter;
1282
- if (!f) return true;
1283
- if (f.kind && record.scenario.kind !== f.kind) return false;
1284
- if (f.source) {
1285
- if (!(Array.isArray(f.source) ? f.source : [f.source]).includes(source)) return false;
1286
- }
1287
- if (f.minComposite !== void 0 || f.maxComposite !== void 0) {
1288
- const composites = Object.values(record.judgeScores).map((s) => s.composite);
1289
- const max = composites.length === 0 ? 0 : Math.max(...composites);
1290
- if (f.minComposite !== void 0 && max < f.minComposite) return false;
1291
- if (f.maxComposite !== void 0 && max > f.maxComposite) return false;
1292
- }
1293
- if (f.minTrust !== void 0 && labelTrustRank(record.labelTrust) < labelTrustRank(f.minTrust)) return false;
1294
- return true;
1295
- }
1296
- function sha256$1(input) {
1297
- return createHash("sha256").update(input).digest("hex").slice(0, 16);
1298
- }
1299
- function appendLine(path, line) {
1300
- if (existsSync(path)) {
1301
- const existing = readFileSync(path, "utf8");
1302
- writeFileSync(path, existing + line);
1303
- } else writeFileSync(path, line);
1304
- }
1305
- //#endregion
1306
962
  //#region src/campaign/neutralize.ts
1307
963
  /**
1308
964
  * @module
@@ -1442,20 +1098,6 @@ function sequentialOptimizationMethod(options) {
1442
1098
  //#endregion
1443
1099
  //#region src/campaign/presets/playback.ts
1444
1100
  /**
1445
- * Adapt a `PlaybackDriver` into a `runProfileMatrix` dispatch. The artifact the
1446
- * matrix scores is the `ProducedState` extracted from the driver's event
1447
- * stream — grade it with `scoreUserStory` (or a judge wrapping it).
1448
- */
1449
- function makePlaybackDispatch(driver) {
1450
- return async (profile, scenario, ctx) => {
1451
- const events = await driver.run(scenario, {
1452
- ...ctx,
1453
- profile
1454
- });
1455
- return extractProducedState(events);
1456
- };
1457
- }
1458
- /**
1459
1101
  * Score one story's produced state against its requirements. Thin wrapper over
1460
1102
  * `verifyCompletion` that builds the gold from the story and returns a
1461
1103
  * per-requirement PASS/FAIL verdict. `checkCorrectness` is injected — a
@@ -2761,155 +2403,6 @@ function scoreDiscrimination(signals, opts) {
2761
2403
  };
2762
2404
  }).sort(compareDiscrimination);
2763
2405
  }
2764
- /**
2765
- * Select the top-`k` most discriminative scenario ids for a holdout, EXCLUDING
2766
- * fully saturated ties when enough non-tied scenarios exist (a tie in the
2767
- * holdout wastes a paired cell).
2768
- *
2769
- * Prefers non-tied scenarios; if fewer than `k` non-tied exist, fills with the
2770
- * least-saturated tied ones (tied scenarios are already ordered least-saturated
2771
- * first by `meanScore` asc). Deterministic. Throws if `k < 1`. If
2772
- * `signals.length <= k`, returns all ids in discrimination order.
2773
- */
2774
- function selectDiscriminative(signals, k, opts) {
2775
- if (k < 1) throw new Error(`selectDiscriminative: k must be >= 1 (got ${k})`);
2776
- const ranked = scoreDiscrimination(signals, opts);
2777
- if (ranked.length <= k) return ranked.map((s) => s.scenarioId);
2778
- const nonTied = ranked.filter((s) => !s.tied);
2779
- if (nonTied.length >= k) return nonTied.slice(0, k).map((s) => s.scenarioId);
2780
- const fill = ranked.filter((s) => s.tied).slice(0, k - nonTied.length);
2781
- return [...nonTied, ...fill].map((s) => s.scenarioId);
2782
- }
2783
- //#endregion
2784
- //#region src/campaign/upstream-evaluators.ts
2785
- function phoenixEvaluatorJudge(evaluator, options) {
2786
- if ((evaluator.optimizationDirection === "MINIMIZE" || evaluator.optimizationDirection === "NEUTRAL") && !options.toComposite) throw new TypeError(`phoenixEvaluatorJudge requires toComposite for a ${evaluator.optimizationDirection} evaluator`);
2787
- const paidCall = validatePaidEvaluation(evaluator.name, evaluator.kind, options.paidCall);
2788
- return upstreamJudge({
2789
- name: options.name ?? evaluator.name,
2790
- dimension: options.dimension,
2791
- judgeVersion: options.judgeVersion,
2792
- appliesTo: options.appliesTo,
2793
- toComposite: options.toComposite
2794
- }, async (input) => {
2795
- const result = await runUpstreamEvaluation({
2796
- name: evaluator.name,
2797
- kind: evaluator.kind,
2798
- signal: input.signal,
2799
- costLedger: input.costLedger,
2800
- costPhase: input.costPhase,
2801
- costTags: input.costTags,
2802
- scenarioId: input.scenario.id,
2803
- paidCall,
2804
- execute: (context) => evaluator.evaluate(options.mapInput({
2805
- artifact: input.artifact,
2806
- scenario: input.scenario
2807
- }), context)
2808
- });
2809
- if (result.score === void 0 || !Number.isFinite(result.score)) throw new Error(`${evaluator.name}: Phoenix evaluator returned no finite score`);
2810
- return {
2811
- score: result.score,
2812
- notes: [result.label, result.explanation].filter(Boolean).join(": ") || evaluator.name
2813
- };
2814
- });
2815
- }
2816
- function autoevalsScorerJudge(scorer, options) {
2817
- const paidCall = validatePaidEvaluation(options.name, options.kind, options.paidCall);
2818
- return upstreamJudge(options, async (input) => {
2819
- const result = await runUpstreamEvaluation({
2820
- name: options.name,
2821
- kind: options.kind,
2822
- signal: input.signal,
2823
- costLedger: input.costLedger,
2824
- costPhase: input.costPhase,
2825
- costTags: input.costTags,
2826
- scenarioId: input.scenario.id,
2827
- paidCall,
2828
- execute: (context) => scorer(options.mapInput({
2829
- artifact: input.artifact,
2830
- scenario: input.scenario
2831
- }), context)
2832
- });
2833
- if (result.score === null || !Number.isFinite(result.score)) throw new Error(`${options.name}: Autoevals scorer returned no finite score`);
2834
- return {
2835
- score: result.score,
2836
- notes: result.metadata ? JSON.stringify(result.metadata) : result.name
2837
- };
2838
- });
2839
- }
2840
- function upstreamJudge(options, evaluate) {
2841
- const dimension = options.dimension ?? options.name;
2842
- return {
2843
- name: options.name,
2844
- judgeVersion: options.judgeVersion,
2845
- dimensions: [{
2846
- key: dimension,
2847
- description: `Score from ${options.name}`
2848
- }],
2849
- appliesTo: options.appliesTo,
2850
- async score(input) {
2851
- const result = await evaluate(input);
2852
- const composite = options.toComposite ? options.toComposite(result.score) : result.score;
2853
- if (!Number.isFinite(composite)) throw new Error(`${options.name}: toComposite returned a non-finite score`);
2854
- return {
2855
- dimensions: { [dimension]: result.score },
2856
- composite,
2857
- notes: result.notes
2858
- };
2859
- }
2860
- };
2861
- }
2862
- function validatePaidEvaluation(name, kind, paidCall) {
2863
- if (kind === "CODE") {
2864
- if (paidCall) throw new TypeError(`${name}: CODE evaluator cannot declare paidCall`);
2865
- return;
2866
- }
2867
- if (!paidCall) throw new TypeError(`${name}: LLM evaluator requires paidCall cost and token capture`);
2868
- if (!paidCall.model.trim()) throw new TypeError(`${name}: paidCall.model must be non-empty`);
2869
- return paidCall;
2870
- }
2871
- async function runUpstreamEvaluation(input) {
2872
- if (input.kind === "CODE") return abortableEvaluation(input.signal, () => input.execute({ signal: input.signal }));
2873
- if (!input.paidCall) throw new CostAccountingIncompleteError(`${input.name}: missing paid-call configuration`);
2874
- if (!input.costLedger) throw new CostAccountingIncompleteError(`${input.name}: LLM evaluator requires the campaign cost ledger`);
2875
- const paid = await input.costLedger.runPaidCall({
2876
- channel: "judge",
2877
- phase: input.costPhase ?? "judge",
2878
- actor: input.name,
2879
- model: input.paidCall.model,
2880
- ...input.paidCall.maximumCharge ? { maximumCharge: input.paidCall.maximumCharge } : {},
2881
- tags: {
2882
- ...input.costTags,
2883
- scenarioId: input.scenarioId
2884
- },
2885
- signal: input.signal,
2886
- execute: (signal, callId) => Promise.resolve(input.execute({
2887
- signal,
2888
- callId
2889
- })),
2890
- receipt: input.paidCall.receipt,
2891
- ...input.paidCall.receiptFromError ? { receiptFromError: input.paidCall.receiptFromError } : {}
2892
- });
2893
- if (!paid.succeeded) throw paid.error;
2894
- const recorded = input.costLedger.list().find((receipt) => receipt.callId === paid.callId);
2895
- if (!recorded) throw new CostAccountingIncompleteError(`${input.name}: paid evaluator returned without a recorded cost receipt`);
2896
- if (recorded.costUnknown || recorded.usageUnknown) throw new CostAccountingIncompleteError(`${input.name}: paid evaluator returned without complete cost and token usage`);
2897
- return paid.value;
2898
- }
2899
- async function abortableEvaluation(signal, execute) {
2900
- if (signal.aborted) throw signal.reason;
2901
- let rejectAborted;
2902
- const aborted = new Promise((_resolve, reject) => {
2903
- rejectAborted = reject;
2904
- });
2905
- const onAbort = () => rejectAborted(signal.reason);
2906
- signal.addEventListener("abort", onAbort, { once: true });
2907
- try {
2908
- return await Promise.race([Promise.resolve().then(execute), aborted]);
2909
- } finally {
2910
- signal.removeEventListener("abort", onAbort);
2911
- }
2912
- }
2913
2406
  //#endregion
2914
2407
  //#region src/campaign/worktree/index.ts
2915
2408
  /**
@@ -3432,6 +2925,6 @@ function resolveWorktreePath(surface, worktreeDir) {
3432
2925
  return verifyCodeSurface(surface, worktreeDir).path;
3433
2926
  }
3434
2927
  //#endregion
3435
- export { loadEvalFixtureScenarios as A, FsLabeledScenarioStore as C, neutralizationGate as D, rolloutArgumentDiff as E, analyzeCrossSurfaceInteractions as M, buildTraceAnalystSurfaceDispatch as N, discoverEvalFixtures as O, traceAnalystQualityJudge as P, neutralizeText as S, classifyUngroundedLiterals as T, scoreUserStory as _, autoevalsScorerJudge as a, scopedOptimizationMethod as b, selectDiscriminative as c, finalizeProfileMatrix as d, runProfileMatrixSegment as f, renderScoreboardMarkdown as g, makePlaybackDispatch as h, verifyCodeSurface as i, planEvalFixtureRun as j, loadEvalFixture as k, createRetainedDispatch as l, runProfileMatrix as m, gitWorktreeAdapter as n, phoenixEvaluatorJudge as o, ProfileMatrixError as p, resolveWorktreePath as r, scoreDiscrimination as s, WorktreeAdapterError as t, createProfileMatrixPlan as u, scoreboardSummary as v, LabeledScenarioStoreError as w, sequentialOptimizationMethod as x, userStoryScoreboard as y };
2928
+ export { analyzeCrossSurfaceInteractions as S, neutralizationGate as _, createRetainedDispatch as a, loadEvalFixtureScenarios as b, runProfileMatrixSegment as c, scoreUserStory as d, scoreboardSummary as f, neutralizeText as g, sequentialOptimizationMethod as h, scoreDiscrimination as i, runProfileMatrix as l, scopedOptimizationMethod as m, resolveWorktreePath as n, createProfileMatrixPlan as o, userStoryScoreboard as p, verifyCodeSurface as r, finalizeProfileMatrix as s, gitWorktreeAdapter as t, renderScoreboardMarkdown as u, discoverEvalFixtures as v, planEvalFixtureRun as x, loadEvalFixture as y };
3436
2929
 
3437
- //# sourceMappingURL=campaign-BudZ70zo.js.map
2930
+ //# sourceMappingURL=campaign-CJGkxAQ6.js.map