@tangle-network/agent-eval 2.0.7 → 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 (314) hide show
  1. package/CHANGELOG.md +80 -16
  2. package/dist/adapters/http.d.ts +2 -2
  3. package/dist/{agent-profile-CRdalpZv.d.ts → agent-profile-_JzxgLDM.d.ts} +11 -5
  4. package/dist/{agent-profile-CRdalpZv.d.ts.map → agent-profile-_JzxgLDM.d.ts.map} +1 -1
  5. package/dist/analyst/index.d.ts +14 -13
  6. package/dist/analyst/index.d.ts.map +1 -1
  7. package/dist/analyst/index.js +34 -13
  8. package/dist/analyst/index.js.map +1 -1
  9. package/dist/analyze-runs-Izz_ZeWg.d.ts +65 -0
  10. package/dist/analyze-runs-Izz_ZeWg.d.ts.map +1 -0
  11. package/dist/{analyze-runs-C_9cXPZn.js → analyze-runs-xhH2Qxoc.js} +6 -5
  12. package/dist/{analyze-runs-C_9cXPZn.js.map → analyze-runs-xhH2Qxoc.js.map} +1 -1
  13. package/dist/app-grade/index.d.ts +4 -4
  14. package/dist/app-grade/index.js +1 -1
  15. package/dist/{benchmark-command-DkBMUDwy.js → benchmark-command-CGQXNFj7.js} +12 -8
  16. package/dist/benchmark-command-CGQXNFj7.js.map +1 -0
  17. package/dist/benchmarks/index.d.ts +4 -4
  18. package/dist/benchmarks/index.js +4 -4
  19. package/dist/builder-eval/index.js +2 -2
  20. package/dist/calibration-CrORXMWx.d.ts +128 -0
  21. package/dist/calibration-CrORXMWx.d.ts.map +1 -0
  22. package/dist/{calibration-Cfoup0xz.js → calibration-Dz8mQb5P.js} +2 -2
  23. package/dist/{calibration-Cfoup0xz.js.map → calibration-Dz8mQb5P.js.map} +1 -1
  24. package/dist/campaign/index.d.ts +8 -8
  25. package/dist/campaign/index.js +13 -12
  26. package/dist/{campaign-DfSWSreo.js → campaign-eus7YRs2.js} +1590 -15
  27. package/dist/campaign-eus7YRs2.js.map +1 -0
  28. package/dist/{campaign-evidence-BojANgU7.d.ts → campaign-evidence-BOcX4w0r.d.ts} +5 -5
  29. package/dist/{campaign-evidence-BojANgU7.d.ts.map → campaign-evidence-BOcX4w0r.d.ts.map} +1 -1
  30. package/dist/{campaign-evidence-D_oBFfLc.js → campaign-evidence-KM5GTsHG.js} +5 -5
  31. package/dist/{campaign-evidence-D_oBFfLc.js.map → campaign-evidence-KM5GTsHG.js.map} +1 -1
  32. package/dist/{cluster-Bj90LK-1.d.ts → chat-client-BlTooBDA.d.ts} +9 -241
  33. package/dist/chat-client-BlTooBDA.d.ts.map +1 -0
  34. package/dist/{chat-client-CvyDOQBv.js → chat-client-Oyot5tyo.js} +2 -2
  35. package/dist/{chat-client-CvyDOQBv.js.map → chat-client-Oyot5tyo.js.map} +1 -1
  36. package/dist/{chat-json-call-DMrwmB-k.js → chat-json-call-DTmv2uNY.js} +2 -2
  37. package/dist/{chat-json-call-DMrwmB-k.js.map → chat-json-call-DTmv2uNY.js.map} +1 -1
  38. package/dist/cli.js +7 -7
  39. package/dist/cluster-BJ0nW3P7.d.ts +241 -0
  40. package/dist/cluster-BJ0nW3P7.d.ts.map +1 -0
  41. package/dist/{cluster-bootstrap-DPzVy3_K.js → cluster-bootstrap-CTC8Dd30.js} +3 -2
  42. package/dist/{cluster-bootstrap-DPzVy3_K.js.map → cluster-bootstrap-CTC8Dd30.js.map} +1 -1
  43. package/dist/{completion-verifier-DsotH2l3.js → completion-verifier-CCPG2Yc0.js} +3 -3
  44. package/dist/{completion-verifier-DsotH2l3.js.map → completion-verifier-CCPG2Yc0.js.map} +1 -1
  45. package/dist/{completion-verifier-Cy38EpGE.d.ts → completion-verifier-CQOC3_bm.d.ts} +2 -2
  46. package/dist/{completion-verifier-Cy38EpGE.d.ts.map → completion-verifier-CQOC3_bm.d.ts.map} +1 -1
  47. package/dist/contract/index.d.ts +14 -12
  48. package/dist/contract/index.js +14 -12
  49. package/dist/contract/index.js.map +1 -1
  50. package/dist/{decision-point-C46p-p9v.js → decision-point-CfqtnGop.js} +3 -3
  51. package/dist/{decision-point-C46p-p9v.js.map → decision-point-CfqtnGop.js.map} +1 -1
  52. package/dist/{default-registry-BWFPtmuI.js → default-registry-Rs5uzlfJ.js} +4 -4
  53. package/dist/{default-registry-BWFPtmuI.js.map → default-registry-Rs5uzlfJ.js.map} +1 -1
  54. package/dist/{default-registry-xoX0PMCb.d.ts → default-registry-X8McMoUV.d.ts} +6 -6
  55. package/dist/{default-registry-xoX0PMCb.d.ts.map → default-registry-X8McMoUV.d.ts.map} +1 -1
  56. package/dist/define-agent-eval-D8ntOXqV.js +96 -0
  57. package/dist/define-agent-eval-D8ntOXqV.js.map +1 -0
  58. package/dist/define-agent-eval-DH5-xi-F.d.ts +52 -0
  59. package/dist/define-agent-eval-DH5-xi-F.d.ts.map +1 -0
  60. package/dist/diagnosis/index.d.ts +3 -3
  61. package/dist/diagnosis/index.js +1 -1
  62. package/dist/{dspy-rlm-engine-r7YpKLhS.js → dspy-rlm-engine-ChE1PUM5.js} +3 -3
  63. package/dist/{dspy-rlm-engine-r7YpKLhS.js.map → dspy-rlm-engine-ChE1PUM5.js.map} +1 -1
  64. package/dist/{emitter-BjW3NnX-.js → emitter-xN9wGTVw.js} +9 -2
  65. package/dist/{emitter-BjW3NnX-.js.map → emitter-xN9wGTVw.js.map} +1 -1
  66. package/dist/{eval-campaign-Cyk-tkLh.js → eval-campaign-BciGnrGy.js} +3 -3
  67. package/dist/{eval-campaign-Cyk-tkLh.js.map → eval-campaign-BciGnrGy.js.map} +1 -1
  68. package/dist/{evaluation-X5E22NQK.d.ts → evaluation-CjZH6gW0.d.ts} +4 -4
  69. package/dist/{evaluation-X5E22NQK.d.ts.map → evaluation-CjZH6gW0.d.ts.map} +1 -1
  70. package/dist/evaluation.d.ts +1 -1
  71. package/dist/{exact-types-DjuabhUV.d.ts → exact-types-BIHqYBYf.d.ts} +2 -2
  72. package/dist/{exact-types-DjuabhUV.d.ts.map → exact-types-BIHqYBYf.d.ts.map} +1 -1
  73. package/dist/{execution-insight-CE20Bxq0.d.ts → execution-insight-YihQrSqd.d.ts} +2 -2
  74. package/dist/{execution-insight-CE20Bxq0.d.ts.map → execution-insight-YihQrSqd.d.ts.map} +1 -1
  75. package/dist/experiment/index.d.ts +5 -5
  76. package/dist/experiment/index.js +10 -184
  77. package/dist/experiment/index.js.map +1 -1
  78. package/dist/{external-optimizer-contracts-ZDBfbZ_s.js → external-optimizer-contracts-BFV8lnhl.js} +7 -2
  79. package/dist/{external-optimizer-contracts-ZDBfbZ_s.js.map → external-optimizer-contracts-BFV8lnhl.js.map} +1 -1
  80. package/dist/{external-optimizer-process-4QdcF7Kd.js → external-optimizer-process-B6emPodQ.js} +3 -3
  81. package/dist/{external-optimizer-process-4QdcF7Kd.js.map → external-optimizer-process-B6emPodQ.js.map} +1 -1
  82. package/dist/{external-optimizer-subprocess-BW0ZWUUr.js → external-optimizer-subprocess-_O06eDVA.js} +35 -376
  83. package/dist/external-optimizer-subprocess-_O06eDVA.js.map +1 -0
  84. package/dist/{feedback-trajectory-BMkJezPc.d.ts → feedback-trajectory-CoQPmSJV.d.ts} +3 -3
  85. package/dist/{feedback-trajectory-BMkJezPc.d.ts.map → feedback-trajectory-CoQPmSJV.d.ts.map} +1 -1
  86. package/dist/finding-scope-B_As3F_v.js +359 -0
  87. package/dist/finding-scope-B_As3F_v.js.map +1 -0
  88. package/dist/{findings-store-DV8WA5nD.js → findings-store-CvYUzQBR.js} +4 -4
  89. package/dist/{findings-store-DV8WA5nD.js.map → findings-store-CvYUzQBR.js.map} +1 -1
  90. package/dist/fuzz.js +1 -1
  91. package/dist/{index-C6TG1LwA.d.ts → index-BSb3fJyZ.d.ts} +318 -131
  92. package/dist/index-BSb3fJyZ.d.ts.map +1 -0
  93. package/dist/{index-CKjqN9_U.d.ts → index-Bk1XEkP7.d.ts} +99 -3
  94. package/dist/index-Bk1XEkP7.d.ts.map +1 -0
  95. package/dist/{index-DAFZRMlF.d.ts → index-BmWw8zN6.d.ts} +10 -8
  96. package/dist/index-BmWw8zN6.d.ts.map +1 -0
  97. package/dist/{index-DKpMyD_Z.d.ts → index-CCOaNmh2.d.ts} +7 -7
  98. package/dist/{index-DKpMyD_Z.d.ts.map → index-CCOaNmh2.d.ts.map} +1 -1
  99. package/dist/{index-xEM_SoCl.d.ts → index-ZffK_5sD.d.ts} +22 -20
  100. package/dist/index-ZffK_5sD.d.ts.map +1 -0
  101. package/dist/{index-BqAPIToS.d.ts → index-aRalB_Ma.d.ts} +3 -3
  102. package/dist/{index-BqAPIToS.d.ts.map → index-aRalB_Ma.d.ts.map} +1 -1
  103. package/dist/index.d.ts +33 -29
  104. package/dist/index.js +28 -25
  105. package/dist/index.js.map +1 -1
  106. package/dist/{analyze-runs-xjKBBqIB.d.ts → insight-report-DYofCMLx.d.ts} +4 -64
  107. package/dist/insight-report-DYofCMLx.d.ts.map +1 -0
  108. package/dist/{integrity-BF0tJK21.js → integrity-DacT3oJ1.js} +2 -2
  109. package/dist/{integrity-BF0tJK21.js.map → integrity-DacT3oJ1.js.map} +1 -1
  110. package/dist/{integrity-B9320cw1.d.ts → integrity-DotDLWtj.d.ts} +2 -2
  111. package/dist/{integrity-B9320cw1.d.ts.map → integrity-DotDLWtj.d.ts.map} +1 -1
  112. package/dist/{judge-gate-DqlzOBOm.js → judge-gate-CpD3wmcf.js} +3 -3
  113. package/dist/{judge-gate-DqlzOBOm.js.map → judge-gate-CpD3wmcf.js.map} +1 -1
  114. package/dist/{llm-client-Dw4x6EdE.js → llm-client-Dk8lBnMh.js} +15 -2
  115. package/dist/{llm-client-Dw4x6EdE.js.map → llm-client-Dk8lBnMh.js.map} +1 -1
  116. package/dist/llm-judge-DYmEdo3M.js +476 -0
  117. package/dist/llm-judge-DYmEdo3M.js.map +1 -0
  118. package/dist/{matrix-CqZSpwgN.d.ts → matrix-BDl7hoBr.d.ts} +6 -2
  119. package/dist/matrix-BDl7hoBr.d.ts.map +1 -0
  120. package/dist/measure-validity-plan-BReXzcVh.d.ts +201 -0
  121. package/dist/measure-validity-plan-BReXzcVh.d.ts.map +1 -0
  122. package/dist/measure-validity-plan-CJkBNzX_.js +154 -0
  123. package/dist/measure-validity-plan-CJkBNzX_.js.map +1 -0
  124. package/dist/meta-eval/index.d.ts +5 -3
  125. package/dist/meta-eval/index.js +808 -15
  126. package/dist/meta-eval/index.js.map +1 -1
  127. package/dist/multishot/golden/index.d.ts +1 -1
  128. package/dist/multishot/index.d.ts +497 -4
  129. package/dist/multishot/index.d.ts.map +1 -1
  130. package/dist/multishot/index.js +1000 -48
  131. package/dist/multishot/index.js.map +1 -1
  132. package/dist/node-transport-DJno8V46.js +62 -0
  133. package/dist/node-transport-DJno8V46.js.map +1 -0
  134. package/dist/openapi.json +1 -1
  135. package/dist/{llm-judge-DQJTQx01.js → optimization-method-4JlbMxd2.js} +38 -513
  136. package/dist/optimization-method-4JlbMxd2.js.map +1 -0
  137. package/dist/{outcome-observations-DL3CC8w1.js → outcome-observations-DEh8_V_P.js} +31 -6
  138. package/dist/outcome-observations-DEh8_V_P.js.map +1 -0
  139. package/dist/outcome-store-CHtuvstd.d.ts +56 -0
  140. package/dist/outcome-store-CHtuvstd.d.ts.map +1 -0
  141. package/dist/{paired-arms-DZhH3FGu.js → paired-arms-CJH5Q0wx.js} +3 -2
  142. package/dist/{paired-arms-DZhH3FGu.js.map → paired-arms-CJH5Q0wx.js.map} +1 -1
  143. package/dist/{paired-promotion-decision-Dn3-jaq4.js → paired-promotion-decision-BtfVwEAk.js} +3 -2
  144. package/dist/{paired-promotion-decision-Dn3-jaq4.js.map → paired-promotion-decision-BtfVwEAk.js.map} +1 -1
  145. package/dist/{paired-promotion-decision-ChHBuuHV.d.ts → paired-promotion-decision-DJlI4z_k.d.ts} +2 -2
  146. package/dist/{paired-promotion-decision-ChHBuuHV.d.ts.map → paired-promotion-decision-DJlI4z_k.d.ts.map} +1 -1
  147. package/dist/{paired-promotion-power-BlzXdgMD.js → paired-promotion-power-DG1avBKf.js} +3 -3
  148. package/dist/{paired-promotion-power-BlzXdgMD.js.map → paired-promotion-power-DG1avBKf.js.map} +1 -1
  149. package/dist/paired-tests-CXcD_B80.js +688 -0
  150. package/dist/paired-tests-CXcD_B80.js.map +1 -0
  151. package/dist/pareto-DIVE5D0T.js +81 -0
  152. package/dist/pareto-DIVE5D0T.js.map +1 -0
  153. package/dist/pipelines/index.d.ts +2 -1
  154. package/dist/pipelines/index.d.ts.map +1 -1
  155. package/dist/pipelines/index.js +1 -1
  156. package/dist/{sequential-BphITa5b.js → power-COie_o6E.js} +181 -4
  157. package/dist/power-COie_o6E.js.map +1 -0
  158. package/dist/{prime-protocol-Cv6_47rh.d.ts → prime-protocol-BRMk6dGI.d.ts} +2 -2
  159. package/dist/{prime-protocol-Cv6_47rh.d.ts.map → prime-protocol-BRMk6dGI.d.ts.map} +1 -1
  160. package/dist/{promotion-gate-CGkxh36r.d.ts → promotion-gate-B0VTBoXg.d.ts} +2 -2
  161. package/dist/{promotion-gate-CGkxh36r.d.ts.map → promotion-gate-B0VTBoXg.d.ts.map} +1 -1
  162. package/dist/{promotion-policy-CxDIh-9p.js → promotion-policy-BgI7PsQn.js} +4 -4
  163. package/dist/{promotion-policy-CxDIh-9p.js.map → promotion-policy-BgI7PsQn.js.map} +1 -1
  164. package/dist/{proposal-findings-DedMih-u.js → proposal-findings-CfRFCFXS.js} +2 -2
  165. package/dist/{proposal-findings-DedMih-u.js.map → proposal-findings-CfRFCFXS.js.map} +1 -1
  166. package/dist/{registry-CIjC6SdV.d.ts → registry-BeInzotS.d.ts} +4 -4
  167. package/dist/{registry-CIjC6SdV.d.ts.map → registry-BeInzotS.d.ts.map} +1 -1
  168. package/dist/{release-confidence-BLHOMK5Q.js → release-confidence-Cndq1hwi.js} +2 -2
  169. package/dist/{release-confidence-BLHOMK5Q.js.map → release-confidence-Cndq1hwi.js.map} +1 -1
  170. package/dist/reporting.d.ts +5 -5
  171. package/dist/reporting.js +6 -5
  172. package/dist/reporting.js.map +1 -1
  173. package/dist/{research-report-D6XIK0eK.d.ts → research-report-CL5_UqCX.d.ts} +2 -2
  174. package/dist/{research-report-D6XIK0eK.d.ts.map → research-report-CL5_UqCX.d.ts.map} +1 -1
  175. package/dist/{researcher---DhHG4J.d.ts → researcher-BOpZP_Ja.d.ts} +4 -4
  176. package/dist/{researcher---DhHG4J.d.ts.map → researcher-BOpZP_Ja.d.ts.map} +1 -1
  177. package/dist/{reward-hacking-DKAflk2c.js → reward-hacking-DMTm1OBd.js} +2 -2
  178. package/dist/{reward-hacking-DKAflk2c.js.map → reward-hacking-DMTm1OBd.js.map} +1 -1
  179. package/dist/rl.d.ts +9 -8
  180. package/dist/rl.d.ts.map +1 -1
  181. package/dist/rl.js +11 -10
  182. package/dist/rl.js.map +1 -1
  183. package/dist/rollout/index.d.ts +2 -2
  184. package/dist/rollout/index.js +1 -1
  185. package/dist/{rollout-B_lrpd9a.js → rollout--rSr43Pd.js} +2 -2
  186. package/dist/{rollout-B_lrpd9a.js.map → rollout--rSr43Pd.js.map} +1 -1
  187. package/dist/{rollout-nodes-Vas6OSxX.js → rollout-nodes-DFxKpIr2.js} +39 -10
  188. package/dist/rollout-nodes-DFxKpIr2.js.map +1 -0
  189. package/dist/{rubric-predictive-validity--6z0q8s6.js → rubric-predictive-validity-BXJ92Jp_.js} +3 -9
  190. package/dist/rubric-predictive-validity-BXJ92Jp_.js.map +1 -0
  191. package/dist/{rubric-predictive-validity-C9wc7f_D.d.ts → rubric-predictive-validity-DH94_0Q1.d.ts} +3 -56
  192. package/dist/rubric-predictive-validity-DH94_0Q1.d.ts.map +1 -0
  193. package/dist/{run-improvement-loop-BfwOUudy.d.ts → run-improvement-loop-BeHu5D9Z.d.ts} +396 -11
  194. package/dist/run-improvement-loop-BeHu5D9Z.d.ts.map +1 -0
  195. package/dist/{run-record-Bqg0NZ_e.js → run-record-CuO8ErrI.js} +3 -2
  196. package/dist/run-record-CuO8ErrI.js.map +1 -0
  197. package/dist/{runtime-rollouts-drQynu3t.js → runtime-rollouts-CE0MbQPq.js} +55 -8
  198. package/dist/runtime-rollouts-CE0MbQPq.js.map +1 -0
  199. package/dist/search/index.d.ts +2 -2
  200. package/dist/search/index.js +2 -2
  201. package/dist/{search-kernel-DJq9bUDU.d.ts → search-kernel-CJZ-ZSV1.d.ts} +3 -3
  202. package/dist/{search-kernel-DJq9bUDU.d.ts.map → search-kernel-CJZ-ZSV1.d.ts.map} +1 -1
  203. package/dist/{pareto-Bg75Gajo.js → search-kernel-mZc79S6N.js} +6 -88
  204. package/dist/search-kernel-mZc79S6N.js.map +1 -0
  205. package/dist/{search-summary-B1x1Vmzh.js → search-summary-CCgP2qXz.js} +4 -4
  206. package/dist/{search-summary-B1x1Vmzh.js.map → search-summary-CCgP2qXz.js.map} +1 -1
  207. package/dist/{define-agent-eval-Cjc0wWnO.d.ts → self-improve-B1fsNejr.d.ts} +8 -54
  208. package/dist/self-improve-B1fsNejr.d.ts.map +1 -0
  209. package/dist/{define-agent-eval-B6uE3gNu.js → self-improve-C_Bcdmv8.js} +9 -97
  210. package/dist/self-improve-C_Bcdmv8.js.map +1 -0
  211. package/dist/{sequential-BhbTSxpt.d.ts → sequential-CHplorpC.d.ts} +2 -2
  212. package/dist/{sequential-BhbTSxpt.d.ts.map → sequential-CHplorpC.d.ts.map} +1 -1
  213. package/dist/{sequential-ux_XrjBf.js → sequential-DR-pnYQ7.js} +3 -3
  214. package/dist/{sequential-ux_XrjBf.js.map → sequential-DR-pnYQ7.js.map} +1 -1
  215. package/dist/{server-1fzBCxMh.js → server-aZFmRucn.js} +3 -3
  216. package/dist/{server-1fzBCxMh.js.map → server-aZFmRucn.js.map} +1 -1
  217. package/dist/{skillopt-optimization-method-D_swD0Cy.js → skillopt-optimization-method-DHk1K757.js} +95 -40
  218. package/dist/skillopt-optimization-method-DHk1K757.js.map +1 -0
  219. package/dist/{statistical-heldout-CaS4T-43.js → statistical-heldout-CL_7mI5C.js} +3 -3
  220. package/dist/{statistical-heldout-CaS4T-43.js.map → statistical-heldout-CL_7mI5C.js.map} +1 -1
  221. package/dist/{statistics-DSidA5I2.js → statistics-AKnVFnK-.js} +233 -700
  222. package/dist/statistics-AKnVFnK-.js.map +1 -0
  223. package/dist/statistics.d.ts +3 -3
  224. package/dist/statistics.js +3 -2
  225. package/dist/{store-tool-spans-DniaFwjM.d.ts → store-tool-spans-M3WxeRrG.d.ts} +4 -4
  226. package/dist/{store-tool-spans-DniaFwjM.d.ts.map → store-tool-spans-M3WxeRrG.d.ts.map} +1 -1
  227. package/dist/{summary-report-CI4J6gxU.js → summary-report-DyBkOC6V.js} +15 -7
  228. package/dist/summary-report-DyBkOC6V.js.map +1 -0
  229. package/dist/summary-report-figures-CJHygLgw.d.ts.map +1 -1
  230. package/dist/supervisor-run/index.d.ts +12 -2
  231. package/dist/supervisor-run/index.d.ts.map +1 -1
  232. package/dist/supervisor-run/index.js +3 -3
  233. package/dist/{systemone-DzY-2Zri.d.ts → systemone-4PadCE4C.d.ts} +8 -7
  234. package/dist/systemone-4PadCE4C.d.ts.map +1 -0
  235. package/dist/{systemone-review-CXecR_m-.d.ts → systemone-review-DpAXWDkL.d.ts} +2 -2
  236. package/dist/{systemone-review-CXecR_m-.d.ts.map → systemone-review-DpAXWDkL.d.ts.map} +1 -1
  237. package/dist/systemone.d.ts +3 -3
  238. package/dist/systemone.js +1 -1
  239. package/dist/{tool-groups-DF6OqhoG.d.ts → tool-groups-SlnoQNyT.d.ts} +2 -2
  240. package/dist/tool-groups-SlnoQNyT.d.ts.map +1 -0
  241. package/dist/tool-waste-B01AMpID.d.ts +121 -0
  242. package/dist/tool-waste-B01AMpID.d.ts.map +1 -0
  243. package/dist/{tool-waste-u7JJ_BlE.js → tool-waste-BZnYSa6J.js} +3 -2
  244. package/dist/{tool-waste-u7JJ_BlE.js.map → tool-waste-BZnYSa6J.js.map} +1 -1
  245. package/dist/{trace-questions-DO8y3J-E.d.ts → trace-questions-ybyF0B6N.d.ts} +2 -2
  246. package/dist/{trace-questions-DO8y3J-E.d.ts.map → trace-questions-ybyF0B6N.d.ts.map} +1 -1
  247. package/dist/trace-repair/index.d.ts +1 -1
  248. package/dist/trace-repair/index.js +1 -1
  249. package/dist/traces.d.ts +4 -4
  250. package/dist/traces.js +1 -1
  251. package/dist/trajectory-B3o6Ald_.d.ts +100 -0
  252. package/dist/trajectory-B3o6Ald_.d.ts.map +1 -0
  253. package/dist/trajectory-replay/index.js +1 -1
  254. package/dist/{tree-DQMlcNFI.js → tree-CiIe-f3f.js} +6 -4
  255. package/dist/{tree-DQMlcNFI.js.map → tree-CiIe-f3f.js.map} +1 -1
  256. package/dist/{types-fuOwNq1C.d.ts → types-B1W3v8dT.d.ts} +3 -2
  257. package/dist/types-B1W3v8dT.d.ts.map +1 -0
  258. package/dist/{types-BMSDkS8l.d.ts → types-D5XtEH9Q.d.ts} +11 -4
  259. package/dist/{types-BMSDkS8l.d.ts.map → types-D5XtEH9Q.d.ts.map} +1 -1
  260. package/dist/types-DK4vNv5q.js.map +1 -1
  261. package/dist/{types-D_PfKC59.d.ts → types-an-CUndX.d.ts} +2 -2
  262. package/dist/{types-D_PfKC59.d.ts.map → types-an-CUndX.d.ts.map} +1 -1
  263. package/dist/{types-BLv2Ngla.d.ts → types-xVtEOBhO.d.ts} +31 -8
  264. package/dist/types-xVtEOBhO.d.ts.map +1 -0
  265. package/dist/wire/index.d.ts +2 -2
  266. package/dist/wire/index.js +1 -1
  267. package/dist/world/index.d.ts +529 -0
  268. package/dist/world/index.d.ts.map +1 -0
  269. package/dist/world/index.js +1356 -0
  270. package/dist/world/index.js.map +1 -0
  271. package/docs/campaign-proposers.md +7 -0
  272. package/docs/concepts.md +2 -0
  273. package/docs/design/statistics-decisions.md +48 -0
  274. package/docs/eval-surface-map.md +5 -2
  275. package/docs/feature-guide.md +3 -1
  276. package/docs/multi-turn-optimization.md +84 -0
  277. package/docs/outcome-validity.md +108 -0
  278. package/docs/public-api.md +89 -34
  279. package/docs/{multi-shot-optimization.md → trajectory-optimization.md} +1 -1
  280. package/docs/world.md +104 -0
  281. package/package.json +6 -1
  282. package/dist/analyze-runs-xjKBBqIB.d.ts.map +0 -1
  283. package/dist/benchmark-command-DkBMUDwy.js.map +0 -1
  284. package/dist/campaign-DfSWSreo.js.map +0 -1
  285. package/dist/cluster-Bj90LK-1.d.ts.map +0 -1
  286. package/dist/define-agent-eval-B6uE3gNu.js.map +0 -1
  287. package/dist/define-agent-eval-Cjc0wWnO.d.ts.map +0 -1
  288. package/dist/external-optimizer-subprocess-BW0ZWUUr.js.map +0 -1
  289. package/dist/index-C6TG1LwA.d.ts.map +0 -1
  290. package/dist/index-CKjqN9_U.d.ts.map +0 -1
  291. package/dist/index-DAFZRMlF.d.ts.map +0 -1
  292. package/dist/index-xEM_SoCl.d.ts.map +0 -1
  293. package/dist/interval-CWyxqDpE.d.ts +0 -43
  294. package/dist/interval-CWyxqDpE.d.ts.map +0 -1
  295. package/dist/llm-judge-DQJTQx01.js.map +0 -1
  296. package/dist/matrix-CqZSpwgN.d.ts.map +0 -1
  297. package/dist/outcome-observations-DL3CC8w1.js.map +0 -1
  298. package/dist/pareto-Bg75Gajo.js.map +0 -1
  299. package/dist/rollout-nodes-Vas6OSxX.js.map +0 -1
  300. package/dist/rubric-predictive-validity--6z0q8s6.js.map +0 -1
  301. package/dist/rubric-predictive-validity-C9wc7f_D.d.ts.map +0 -1
  302. package/dist/run-improvement-loop-BfwOUudy.d.ts.map +0 -1
  303. package/dist/run-record-Bqg0NZ_e.js.map +0 -1
  304. package/dist/runtime-rollouts-drQynu3t.js.map +0 -1
  305. package/dist/sequential-BphITa5b.js.map +0 -1
  306. package/dist/skillopt-optimization-method-D_swD0Cy.js.map +0 -1
  307. package/dist/statistics-DSidA5I2.js.map +0 -1
  308. package/dist/summary-report-CI4J6gxU.js.map +0 -1
  309. package/dist/systemone-DzY-2Zri.d.ts.map +0 -1
  310. package/dist/tool-groups-DF6OqhoG.d.ts.map +0 -1
  311. package/dist/tool-waste-CIhtU1ad.d.ts +0 -217
  312. package/dist/tool-waste-CIhtU1ad.d.ts.map +0 -1
  313. package/dist/types-BLv2Ngla.d.ts.map +0 -1
  314. package/dist/types-fuOwNq1C.d.ts.map +0 -1
@@ -1,20 +1,21 @@
1
1
  import { d as CostReceipt, l as CostLedgerSummary, o as CostLedgerHandle, p as CostUsage, r as CostBreakdown, u as CostProvenance } from "./cost-ledger-CSP-OfFe.js";
2
2
  import { c as ValidationError, t as AgentEvalError } from "./errors-E9I2hldP.js";
3
3
  import { a as RunRecord, c as RunSplitTag } from "./run-record-kuOr3BCF.js";
4
- import { dt as TraceAnalysisStore, i as AnalystFinding, p as AnalystUsageReceipt, u as AnalystRunResult, v as ProposalFinding } from "./types-fuOwNq1C.js";
5
- import { O as ChatClient, dt as ServedModelPolicy, z as LlmCallMetadata } from "./cluster-Bj90LK-1.js";
6
- import { E as PairedBootstrapResult } from "./index-CKjqN9_U.js";
4
+ import { dt as TraceAnalysisStore, i as AnalystFinding, p as AnalystUsageReceipt, u as AnalystRunResult, v as ProposalFinding } from "./types-B1W3v8dT.js";
5
+ import { n as ChatClient, p as LlmCallMetadata, z as ServedModelPolicy } from "./chat-client-BlTooBDA.js";
6
+ import { E as PairedBootstrapResult } from "./index-Bk1XEkP7.js";
7
7
  import { E as SearchExecutionIdentity, G as SearchSplit, V as SearchProposer, i as SearchArtifactRef, nt as EvaluationClaim, rt as EvaluationUnitSummary, tt as SearchUnknown } from "./search-ledger-types-BhZE848w.js";
8
8
  import { r as LedgerHash } from "./canonical-CGXS21f_.js";
9
- import { C as JudgeDimension, H as SurfaceProposer, N as ParetoParent, O as LabeledScenarioSource, R as Scenario, S as JudgeConfig, _ as GateDecision, a as CampaignResult, b as GenerationRecord, c as CampaignTraceWriter, d as DispatchContext, f as DispatchFn, g as GateContribution, i as CampaignCostMeter, j as MutableSurface, k as LabeledScenarioStore, l as CodeSurface, o as CampaignScenarioIdentity, p as Gate, r as CampaignCellResult, u as ComponentSurface, v as GateResult, y as GenerationCandidate } from "./types-BMSDkS8l.js";
10
- import { Dt as FinalEvidenceRecord, pt as PairedArmsComparison, s as EvidenceReceipt, t as CampaignEvidenceContext, wt as FinalEvidenceLedger } from "./campaign-evidence-BojANgU7.js";
11
- import { Q as SearchRecorder, X as SearchLedgerBinding, Y as RegisterSearchNodeInput, _t as CampaignStorage, et as SearchRunIdentity, ft as SearchHistoryReceipt, i as RunSearchOptions, lt as SearchHistoryCoverage, st as SearchHistoryAdmissionOptions, v as SearchPolicy } from "./search-kernel-DJq9bUDU.js";
12
- import { a as PairedPromotionDecision } from "./paired-promotion-decision-ChHBuuHV.js";
9
+ import { C as JudgeDimension, H as SurfaceProposer, N as ParetoParent, O as LabeledScenarioSource, R as Scenario, S as JudgeConfig, _ as GateDecision, a as CampaignResult, b as GenerationRecord, c as CampaignTraceWriter, d as DispatchContext, f as DispatchFn, g as GateContribution, i as CampaignCostMeter, j as MutableSurface, k as LabeledScenarioStore, l as CodeSurface, o as CampaignScenarioIdentity, p as Gate, r as CampaignCellResult, u as ComponentSurface, v as GateResult, y as GenerationCandidate } from "./types-D5XtEH9Q.js";
10
+ import { Dt as FinalEvidenceRecord, pt as PairedArmsComparison, s as EvidenceReceipt, t as CampaignEvidenceContext, wt as FinalEvidenceLedger } from "./campaign-evidence-BOcX4w0r.js";
11
+ import { Q as SearchRecorder, X as SearchLedgerBinding, Y as RegisterSearchNodeInput, _t as CampaignStorage, et as SearchRunIdentity, ft as SearchHistoryReceipt, i as RunSearchOptions, lt as SearchHistoryCoverage, st as SearchHistoryAdmissionOptions, v as SearchPolicy } from "./search-kernel-CJZ-ZSV1.js";
12
+ import { a as PairedPromotionDecision } from "./paired-promotion-decision-DJlI4z_k.js";
13
13
  import { n as ModelTreatment, t as ModelComparison } from "./model-comparison-BHNL8Qrn.js";
14
- import { D as ExternalTextCandidate, E as ExternalOptimizerWireCounts, F as AnalystBenchmarkCase, O as ExternalTextEvaluationRequest, T as ExternalOptimizerRunnerCommand, Z as AnalystIssueExpectation, g as ExternalOptimizerEvaluationObservation, p as ExternalOptimizerCallbackLimits, t as AgentProfile$1, v as ExternalOptimizerModelBudget, w as ExternalOptimizerResumeMode, y as ExternalOptimizerModelCall, z as AnalystBenchmarkLabelState } from "./agent-profile-CRdalpZv.js";
14
+ import { D as ExternalTextCandidate, E as ExternalOptimizerWireCounts, F as AnalystBenchmarkCase, O as ExternalTextEvaluationRequest, T as ExternalOptimizerRunnerCommand, Z as AnalystIssueExpectation, g as ExternalOptimizerEvaluationObservation, p as ExternalOptimizerCallbackLimits, t as AgentProfile$1, v as ExternalOptimizerModelBudget, w as ExternalOptimizerResumeMode, y as ExternalOptimizerModelCall, z as AnalystBenchmarkLabelState } from "./agent-profile-_JzxgLDM.js";
15
15
  import { r as DatasetScenario, t as Dataset } from "./dataset-DThC1S6G.js";
16
16
  import { t as DetectRewardHackingInput } from "./reward-hacking-4DsGTccp.js";
17
- import { n as CompletionVerdict, o as ProducedState, r as CorrectnessChecker, t as CompletionRequirement } from "./completion-verifier-Cy38EpGE.js";
17
+ import { n as CompletionVerdict, o as ProducedState, r as CorrectnessChecker, t as CompletionRequirement } from "./completion-verifier-CQOC3_bm.js";
18
+ import { t as CalibrationBin } from "./calibration-CrORXMWx.js";
18
19
  import { f as TraceSpanEvent, t as HostedClient } from "./client-DUMIaMob.js";
19
20
  import { AgentProfile } from "@tangle-network/agent-interface";
20
21
  import { z } from "zod";
@@ -991,6 +992,11 @@ interface OptimizationMethodProvenance {
991
992
  gepaCandidatePopulation?: GepaCandidatePopulationSummary;
992
993
  /** Opaque Runtime execution evidence for every invoked optimizer-model call. */
993
994
  modelExecutions?: ExternalOptimizerExecutionSummary;
995
+ /**
996
+ * Optimizer-model proxy traffic on the OpenAI wire: admitted requests, their
997
+ * successes, and requests refused for the request or cost limit.
998
+ */
999
+ optimizerModelRequests?: ExternalOptimizerWireCounts;
994
1000
  /** Anthropic-endpoint proxy traffic from agent CLI engines, when enabled. */
995
1001
  anthropicEndpoint?: ExternalOptimizerWireCounts;
996
1002
  }
@@ -1824,6 +1830,8 @@ interface OptimizationMethodScore {
1824
1830
  }>;
1825
1831
  winnerSurface: MutableSurface;
1826
1832
  composition?: OptimizationMethodComposition;
1833
+ /** The caller gate's decision on this winner against the baseline's final test cells. */
1834
+ gate?: GateResult;
1827
1835
  /** 1-based, by descending lift. */
1828
1836
  rank: number;
1829
1837
  }
@@ -1889,6 +1897,11 @@ interface CompareOptimizationMethodsOptions<TScenario extends Scenario, TArtifac
1889
1897
  /** Scores a surface on a scenario. The methods and final test share this function. */
1890
1898
  dispatchWithSurface: (surface: MutableSurface, scenario: TScenario, ctx: DispatchContext) => Promise<TArtifact>;
1891
1899
  judges: JudgeConfig<TArtifact, TScenario>[];
1900
+ /** Decides each method's winner against the baseline on the final test
1901
+ * cells, such as `conversationGate` for the simulated-user identity check.
1902
+ * Its `admitHeldOut` refuses `testScenarios` before any spend, and a gate
1903
+ * that throws refuses the comparison. */
1904
+ gate?: Gate<TArtifact, TScenario>;
1892
1905
  /** How every method's optimizer is shown a non-string artifact; see
1893
1906
  * `OptimizationMethodInput.describeArtifact`. */
1894
1907
  describeArtifact?: DescribeArtifact<TArtifact, TScenario>;
@@ -2054,6 +2067,52 @@ interface ScoreboardRenderOptions {
2054
2067
  * rows in, same bytes out (no clock/random), so it is safe to snapshot.
2055
2068
  */
2056
2069
  declare function renderScoreboardMarkdown(rows: readonly ScoreboardRow[], opts?: ScoreboardRenderOptions): string;
2070
+ /**
2071
+ * A profile against the baseline after the family adjustment. `better` and `worse`: the nominal
2072
+ * interval excludes zero and the Holm-adjusted p over the page's family is at most 1 - level.
2073
+ * `candidate`: the nominal interval excludes zero but the adjusted p does not pass.
2074
+ * `unresolved`: the nominal interval includes zero, or there is no paired case.
2075
+ */
2076
+ type ProfileMatrixVerdict = 'better' | 'worse' | 'candidate' | 'unresolved';
2077
+ /** The family of profile-against-baseline comparisons the verdicts control the error over. */
2078
+ interface ProfileMatrixFamily {
2079
+ method: 'holm';
2080
+ /** Familywise error rate the verdicts control: 1 - level. */
2081
+ alpha: number;
2082
+ /** Comparisons with a p-value, one per profile other than the baseline. */
2083
+ comparisons: number;
2084
+ }
2085
+ /** A share measured on each pair of runs: its mean over the pairs, and the lowest and highest. */
2086
+ interface ProfileMatrixPairwiseShare {
2087
+ mean: number;
2088
+ min: number;
2089
+ max: number;
2090
+ }
2091
+ /** How much one profile's runs differ with nothing changed between them. */
2092
+ interface ProfileMatrixRunStability {
2093
+ profileId: string;
2094
+ runs: number;
2095
+ /** Cases every run of this profile scored; every number below is on them. */
2096
+ n: number;
2097
+ /** Each run's mean score, in run order; null when `n` is 0. */
2098
+ runQuality: {
2099
+ run: number;
2100
+ quality: number | null;
2101
+ }[];
2102
+ /** Highest run quality minus the lowest; null when `n` is 0. */
2103
+ spread: number | null;
2104
+ /** Share of cases one run got right and the other did not, over run pairs; null when `n` is 0. */
2105
+ correctnessDisagreement: ProfileMatrixPairwiseShare | null;
2106
+ /** Share of the cases both runs answered where the answers differ; null without such a case. */
2107
+ answerDisagreement: ProfileMatrixPairwiseShare | null;
2108
+ /**
2109
+ * Half-width of the range, at the analysis level, within which two runs of this profile land
2110
+ * on the panel's common cases with nothing changed: z·√(m / n), where m is the mean squared
2111
+ * per-case score difference between two runs (for right/wrong scores, the correctness
2112
+ * disagreement) and each case's change is taken as independent. Null without common cases.
2113
+ */
2114
+ rerunMargin: number | null;
2115
+ }
2057
2116
  interface BackendIntegrityReport {
2058
2117
  /** Total records inspected. */
2059
2118
  totalRecords: number;
@@ -2307,6 +2366,292 @@ interface FinalizedProfileMatrixResult<TArtifact, TScenario extends Scenario> ex
2307
2366
  declare function createProfileMatrixPlan<TScenario extends Scenario, TArtifact>(opts: CreateProfileMatrixPlanOptions<TScenario, TArtifact>): ProfileMatrixPlan<TScenario, TArtifact>;
2308
2367
  declare function runProfileMatrixSegment<TScenario extends Scenario, TArtifact>(opts: RunProfileMatrixSegmentOptions<TScenario, TArtifact>): Promise<ProfileMatrixSegmentResult<TArtifact, TScenario>>;
2309
2368
  declare function finalizeProfileMatrix<TScenario extends Scenario, TArtifact>(opts: FinalizeProfileMatrixOptions<TScenario, TArtifact>): Promise<FinalizedProfileMatrixResult<TArtifact, TScenario>>;
2369
+ interface RaceProfileMatrixOptions<TScenario extends Scenario, TArtifact> extends Omit<RunProfileMatrixSegmentOptions<TScenario, TArtifact>, 'segmentId' | 'rows'> {
2370
+ /** Profile id kept to the end whatever its standing; the final comparison is against it. */
2371
+ baseline: string;
2372
+ /** Cases seen after each batch, strictly increasing. Default: `firstBatch`, doubling until every case is in. */
2373
+ batches?: readonly number[];
2374
+ /** Cases in the first batch when `batches` is not given. Default 8. */
2375
+ firstBatch?: number;
2376
+ /** Most cells (one profile on one case and rep) the race may run; a batch that would pass it is not started. */
2377
+ cellBudget?: number;
2378
+ /** Independent unit per case id; every raced case needs one. Default one unit per case. */
2379
+ clusters?: Readonly<Record<string, string>>;
2380
+ /** Interval level of each elimination. Default 0.95. */
2381
+ level?: number;
2382
+ /** `shuffled` (default) orders cases by a draw seeded with the plan seed; `plan` keeps the plan's order. */
2383
+ caseOrder?: 'shuffled' | 'plan';
2384
+ }
2385
+ interface ProfileMatrixRaceStanding {
2386
+ profileId: string;
2387
+ /** Cases both this profile and the leader scored. */
2388
+ n: number;
2389
+ /** Independent clusters among those cases. */
2390
+ clusters: number;
2391
+ /** Mean paired difference from the leader; null without a shared scored case. */
2392
+ difference: number | null;
2393
+ low: number | null;
2394
+ high: number | null;
2395
+ /** Exact cluster sign-flip p-value for a zero difference. */
2396
+ pValue: number | null;
2397
+ /** Paired cases a test needs for 80% power at the observed difference. */
2398
+ casesToResolve: number | null;
2399
+ dropped: boolean;
2400
+ reason?: string;
2401
+ }
2402
+ interface ProfileMatrixRaceBatch {
2403
+ batch: number;
2404
+ casesSeen: number;
2405
+ cellsRun: number;
2406
+ leader: string;
2407
+ standings: ProfileMatrixRaceStanding[];
2408
+ }
2409
+ interface ProfileMatrixRaceFinalRow {
2410
+ profileId: string;
2411
+ quality: number | null;
2412
+ /** Paired difference from the baseline on the final cases; null on the baseline itself. */
2413
+ vsBaseline: ProfileMatrixPairedDifference | null;
2414
+ }
2415
+ interface ProfileMatrixRaceResult {
2416
+ matrixId: string;
2417
+ planDigest: string;
2418
+ baseline: string;
2419
+ leader: string;
2420
+ survivors: string[];
2421
+ stoppedBecause: 'one-left' | 'cell-budget' | 'batches-ended';
2422
+ casesRaced: string[];
2423
+ cellsRun: number;
2424
+ /** Cells the complete plan holds. */
2425
+ plannedCells: number;
2426
+ log: ProfileMatrixRaceBatch[];
2427
+ /** Survivors on the cases every survivor scored. */
2428
+ final: {
2429
+ cases: number;
2430
+ rows: ProfileMatrixRaceFinalRow[];
2431
+ };
2432
+ records: RunRecord[];
2433
+ /** The race chose its leader on these cases, so the leader's score here reads high. */
2434
+ selectionBias: string;
2435
+ }
2436
+ /**
2437
+ * Successive halving over a profile-matrix plan. After each batch a profile
2438
+ * whose paired interval against the current leader lies wholly below zero is
2439
+ * dropped, as is one whose cells in the batch produced no score; the baseline
2440
+ * is always kept. The race stops when one profile is left, the next batch
2441
+ * would pass `cellBudget`, or the batch list ends.
2442
+ */
2443
+ declare function raceProfileMatrix<TScenario extends Scenario, TArtifact>(opts: RaceProfileMatrixOptions<TScenario, TArtifact>): Promise<ProfileMatrixRaceResult>;
2444
+ /** A cost drawn against quality. `seconds` is the latency axis. */
2445
+ type ProfileMatrixCostAxis = 'usd' | 'tokens' | 'seconds';
2446
+ interface ProfileMatrixReportOptions {
2447
+ /** A `runProfileMatrix` or `raceProfileMatrix` result, or the RunRecords alone. */
2448
+ source: {
2449
+ readonly records: readonly RunRecord[];
2450
+ } | readonly RunRecord[];
2451
+ /** Profile id (`candidateId`) every paired difference is measured against. */
2452
+ baseline: string;
2453
+ /** Profiles to compare, in display order. Default: every profile in the records, baseline first. */
2454
+ profiles?: readonly string[];
2455
+ /**
2456
+ * Share of the baseline's scored cases a profile must also have scored to join the
2457
+ * common-set panels, in (0, 1]. Default 0.9. When the source is a race result, its
2458
+ * survivors form the panel instead.
2459
+ */
2460
+ minCoverage?: number;
2461
+ /** Independent unit per case id. Every scored case needs one; default one unit per case. */
2462
+ clusters?: Readonly<Record<string, string>>;
2463
+ /** Slice per case id for the slice heatmap. */
2464
+ slices?: Readonly<Record<string, string>>;
2465
+ /** Factor levels per profile id, such as model, harness, effort or instructions. */
2466
+ factors?: Readonly<Record<string, Readonly<Record<string, string>>>>;
2467
+ /** Costs to draw against quality. Default all three; an axis without measurements is reported, not drawn. */
2468
+ costAxes?: readonly ProfileMatrixCostAxis[];
2469
+ /** A case counts as correct at or above this score. Default 0.5, which pass/fail scores do not notice. */
2470
+ passScore?: number;
2471
+ /** The profile's own forecast, in [0, 1], that its answer is correct, when it returned one. */
2472
+ probabilityOf?: (record: RunRecord) => number | undefined;
2473
+ /**
2474
+ * The answer a record gave, such as its label, so the run-to-run panel can count answers that
2475
+ * change between runs; without it the panel counts only changes of correctness.
2476
+ */
2477
+ answerOf?: (record: RunRecord) => string | undefined;
2478
+ /** A race over these profiles: the page prints its elimination log and its selection-bias note. */
2479
+ race?: ProfileMatrixRaceResult;
2480
+ /** Interval level. Default 0.95. */
2481
+ level?: number;
2482
+ title?: string;
2483
+ }
2484
+ interface ProfileMatrixInterval {
2485
+ estimate: number;
2486
+ /** Null when the interval is undefined, as with fewer than two clusters. */
2487
+ low: number | null;
2488
+ high: number | null;
2489
+ }
2490
+ /** One profile against another on the cases both scored. */
2491
+ interface ProfileMatrixPairedDifference extends ProfileMatrixInterval {
2492
+ /** Cases both profiles scored. */
2493
+ n: number;
2494
+ /** Independent clusters among those cases. */
2495
+ clusters: number;
2496
+ /** Exact cluster sign-flip p-value for a zero difference. */
2497
+ pValue: number | null;
2498
+ /** Share of the paired cases where exactly one of the two profiles was correct. */
2499
+ discordance: number;
2500
+ /** Paired cases a two-sided test needs for 80% power at the observed difference; null at a zero difference. Ignores clustering. */
2501
+ casesToResolve: number | null;
2502
+ }
2503
+ interface ProfileMatrixProfileStats {
2504
+ profileId: string;
2505
+ factors: Readonly<Record<string, string>>;
2506
+ /** Distinct runs among this profile's records by `outcome.raw.rep`; a record without one is run 0. */
2507
+ runs: number;
2508
+ casesAttempted: number;
2509
+ casesScored: number;
2510
+ /** Share of this profile's records without a score: a dispatch or judge failure. */
2511
+ failureRate: number;
2512
+ /** Share of the baseline's scored cases this profile also scored. */
2513
+ coverage: number;
2514
+ /** In the common-set panels: the frontiers, error overlap, difficulty, slices and power. */
2515
+ panel: boolean;
2516
+ /** Cases this profile and the baseline both scored, the n of `vsBaseline`; on the baseline, its own scored cases. */
2517
+ pairedN: number;
2518
+ /** The race batch whose standings dropped this profile. */
2519
+ droppedAtBatch?: number;
2520
+ /** Mean score on this profile's own scored cases. */
2521
+ ownQuality: ProfileMatrixInterval | null;
2522
+ /** Mean score on the common set; null outside the panel. */
2523
+ quality: ProfileMatrixInterval | null;
2524
+ /** Paired difference from the baseline on the cases both scored; absent on the baseline. */
2525
+ vsBaseline?: ProfileMatrixPairedDifference;
2526
+ /** Holm-adjusted `vsBaseline.pValue` over the family; null without a p-value. */
2527
+ adjustedPValue?: number | null;
2528
+ /** Standing against the baseline after the family adjustment; absent on the baseline. */
2529
+ verdict?: ProfileMatrixVerdict;
2530
+ /** Mean per common case; null outside the panel or when a record in it did not measure that cost. */
2531
+ costPerCase: Record<ProfileMatrixCostAxis, number | null>;
2532
+ /** Common-set total divided by the common cases answered correctly; null outside the panel or with none correct. */
2533
+ costPerCorrect: Record<ProfileMatrixCostAxis, number | null>;
2534
+ /** Seconds per common case; null outside the panel. */
2535
+ latency: {
2536
+ p50: number;
2537
+ p90: number;
2538
+ } | null;
2539
+ }
2540
+ interface ProfileMatrixAxisSummary {
2541
+ axis: ProfileMatrixCostAxis;
2542
+ drawn: boolean;
2543
+ /** What the axis measures, or why it is not drawn. */
2544
+ note: string;
2545
+ /** Panel profiles on the quality-versus-this-axis Pareto set, cheapest first. */
2546
+ frontier: string[];
2547
+ }
2548
+ interface ProfileMatrixFactorEffect {
2549
+ factor: string;
2550
+ level: string;
2551
+ /** The baseline's level of this factor, or its most common level. */
2552
+ reference: string;
2553
+ /** Profile pairs that differ only in this factor; zero means the effect is confounded. */
2554
+ matchedPairs: number;
2555
+ /** Cases at least one matched pair scored on both sides. */
2556
+ n: number;
2557
+ /** Fewest and most cases one matched pair shares; null without a matched pair. */
2558
+ pairCases: {
2559
+ min: number;
2560
+ max: number;
2561
+ } | null;
2562
+ /** Mean over those cases of the matched pairs' mean difference on each case. */
2563
+ effect: ProfileMatrixInterval | null;
2564
+ pValue: number | null;
2565
+ }
2566
+ interface ProfileMatrixSliceCell {
2567
+ profileId: string;
2568
+ slice: string;
2569
+ /** Common cases in the slice. */
2570
+ n: number;
2571
+ quality: number | null;
2572
+ }
2573
+ interface ProfileMatrixErrorOverlap {
2574
+ a: string;
2575
+ b: string;
2576
+ /** Share of common cases both got wrong. */
2577
+ bothWrong: number;
2578
+ /** Share of common cases exactly one got right. */
2579
+ disagree: number;
2580
+ }
2581
+ interface ProfileMatrixCaseDifficulty {
2582
+ caseId: string;
2583
+ slice?: string;
2584
+ /** Panel profiles that got the case right. */
2585
+ solved: number;
2586
+ /** Panel profiles that scored the case. */
2587
+ scored: number;
2588
+ share: number;
2589
+ }
2590
+ interface ProfileMatrixCalibration {
2591
+ profileId: string;
2592
+ n: number;
2593
+ ece: number;
2594
+ brier: number;
2595
+ bins: CalibrationBin[];
2596
+ }
2597
+ interface ProfileMatrixPower {
2598
+ n: number;
2599
+ clusters: number;
2600
+ /** Median share of common cases on which a panel profile and the baseline disagree on correctness. */
2601
+ discordance: number;
2602
+ /** Smallest paired difference detected with 80% power; null when not even a difference of 1 is. */
2603
+ detectable: number | null;
2604
+ /** False when this many clusters cannot reach the level by an exact sign-flip test at any effect. */
2605
+ certifiable: boolean;
2606
+ minClusters: number;
2607
+ }
2608
+ interface ProfileMatrixAnalysis {
2609
+ title: string;
2610
+ baseline: string;
2611
+ level: number;
2612
+ passScore: number;
2613
+ /** True when every per-case score is 0 or 1. */
2614
+ passFail: boolean;
2615
+ minCoverage: number;
2616
+ /** `coverage`: profiles at `minCoverage` or above; `race-survivors`: the source race's survivors. */
2617
+ panelRule: 'coverage' | 'race-survivors';
2618
+ /** Profiles in the common-set panels, baseline first. */
2619
+ panelProfiles: string[];
2620
+ /** Cases every panel profile scored: the set the frontiers, overlap, difficulty, slices and power use. */
2621
+ commonCases: string[];
2622
+ commonClusters: number;
2623
+ axes: ProfileMatrixAxisSummary[];
2624
+ /** Every profile, baseline first; `panel` marks the panel profiles. */
2625
+ profiles: ProfileMatrixProfileStats[];
2626
+ /** The comparisons each profile's `verdict` is adjusted over. */
2627
+ family: ProfileMatrixFamily;
2628
+ /** Every profile with two or more runs, in profile order. */
2629
+ stability: ProfileMatrixRunStability[];
2630
+ factorEffects: ProfileMatrixFactorEffect[];
2631
+ /** Slice names, the slice with the most common cases first. */
2632
+ slices: string[];
2633
+ sliceCells: ProfileMatrixSliceCell[];
2634
+ errorOverlap: ProfileMatrixErrorOverlap[];
2635
+ /** Share of common cases at least one panel profile got right. */
2636
+ oracle: number | null;
2637
+ difficulty: ProfileMatrixCaseDifficulty[];
2638
+ calibration: ProfileMatrixCalibration[];
2639
+ power: ProfileMatrixPower | null;
2640
+ }
2641
+ /**
2642
+ * Compare profile-matrix cells against one baseline: quality with clustered
2643
+ * intervals, paired differences, the cost and latency frontiers, factor main
2644
+ * effects, slices, error overlap, item difficulty, calibration and power.
2645
+ *
2646
+ * A profile run more than once (its records carry `outcome.raw.rep`, as campaign
2647
+ * records do) scores each case at its mean over the runs, and `stability` measures
2648
+ * how far its runs differ with nothing changed. Each verdict against the baseline
2649
+ * is Holm-adjusted over every profile-against-baseline comparison, so with dozens
2650
+ * of profiles one lucky interval reads as a candidate, not a win.
2651
+ */
2652
+ declare function analyzeProfileMatrix(options: ProfileMatrixReportOptions): ProfileMatrixAnalysis;
2653
+ /** Render the decision page for a profile matrix or a race over one. */
2654
+ declare function renderProfileMatrixReport(options: ProfileMatrixReportOptions): string;
2310
2655
  interface LoopProvenanceCandidate {
2311
2656
  /** Generation index this candidate was proposed in. */
2312
2657
  generation: number;
@@ -2502,6 +2847,46 @@ interface EmitLoopProvenanceArgs<TArtifact, TScenario extends Scenario> extends
2502
2847
  * collector never fails the loop (the durable artifact is the source of truth).
2503
2848
  */
2504
2849
  declare function emitLoopProvenance<TArtifact, TScenario extends Scenario>(args: EmitLoopProvenanceArgs<TArtifact, TScenario>): Promise<EmitLoopProvenanceResult>;
2850
+ interface RepeatReliabilityOptions<TArtifact> {
2851
+ /** Repeats every success must hold over: pass^k. A scenario with fewer scored
2852
+ * repeats than `k` reports no pass^k and is listed as incomplete. */
2853
+ k: number;
2854
+ /** Objective success of one repeat, decided by code from the artifact. */
2855
+ success: (artifact: TArtifact) => boolean;
2856
+ /** Independent sampling unit for each scenario; scenarios sharing a unit are
2857
+ * averaged before units are weighted equally. Default: each scenario is its
2858
+ * own unit. */
2859
+ independentUnitByScenarioId?: ReadonlyMap<string, string>;
2860
+ }
2861
+ interface ScenarioRepeatReliability {
2862
+ scenarioId: string;
2863
+ unit: string;
2864
+ /** Scored repeats: cells that produced an artifact without an error. */
2865
+ repeats: number;
2866
+ successes: number;
2867
+ meanSuccess: number;
2868
+ /** Unbiased pass^k over the scored repeats; null below `k` repeats. */
2869
+ passAllK: number | null;
2870
+ }
2871
+ interface RepeatReliability {
2872
+ k: number;
2873
+ /** Scenarios in first-seen cell order. */
2874
+ scenarios: ScenarioRepeatReliability[];
2875
+ /** Independent units with at least one scored repeat. */
2876
+ units: number;
2877
+ /** Mean success, each unit weighted equally; null with no scored repeat. */
2878
+ meanSuccess: number | null;
2879
+ /** pass^k, each unit weighted equally over its complete scenarios; null when
2880
+ * no scenario has `k` scored repeats. */
2881
+ passAllK: number | null;
2882
+ /** Scenarios with fewer than `k` scored repeats. */
2883
+ incompleteScenarios: string[];
2884
+ /** Cells that failed in dispatch or judging. They are a service or
2885
+ * measurement failure, never a counted agent failure. */
2886
+ failedCells: number;
2887
+ }
2888
+ /** pass^k beside mean success over a campaign's seeded repeats. */
2889
+ declare function repeatReliability<TArtifact>(cells: ReadonlyArray<CampaignCellResult<TArtifact>>, opts: RepeatReliabilityOptions<TArtifact>): RepeatReliability;
2505
2890
  type RetainedDispatchOutcome<T> = {
2506
2891
  succeeded: true;
2507
2892
  value: T;
@@ -3006,5 +3391,5 @@ interface RunImprovementLoopResult<TArtifact, TScenario extends Scenario> extend
3006
3391
  * Gated-promotion shell over `runOptimization`: scores the winner against the baseline on a holdout set, runs the release gate, and optionally opens a PR.
3007
3392
  */
3008
3393
  declare function runImprovementLoop<TScenario extends Scenario, TArtifact>(opts: RunImprovementLoopOptions<TScenario, TArtifact>): Promise<RunImprovementLoopResult<TArtifact, TScenario>>;
3009
- export { emitLoopProvenance as $, ExternalTextEvaluationResponse as $n, CrossSurfacePairEvidence as $r, GepaEvaluationImport as $t, SkillOptRunnerCommand as A, planCampaignRun as Ai, CanaryEvaluation as An, CrossSurfaceAdditionRejectionReason as Ar, scoreUserStory as At, RetainedDispatchOptions as B, withFinalEvidenceSources as Bi, EvalFixtureScenario as Bn, CrossSurfaceComponentEvidence as Br, OptimizationMethodPairwise as Bt, codeSurfaceIdentityMaterial as C, CampaignCellFailureReceipt as Ci, RedTeamCategory as Cn, ExternalOptimizerObservationArtifact as Cr, PlaybackStep as Ct, surfaceDispatchRef as D, CampaignRunPlan as Di, redTeamReport as Dn, analyzeCrossSurfaceInteractions as Dr, UserStory as Dt, surfaceContentHash as E, runCampaign as Ei, redTeamDataset as En, readExternalOptimizerObservationArtifact as Er, ScoreboardSummary as Et, acquireSingleRunLock as F, cellCachePath as Fi, composeGate as Fn, CrossSurfaceCandidateComparison as Fr, RuntimeEventLike as Ft, EmitLoopProvenanceResult as G, campaignSplitDigest as Gi, loadEvalFixture as Gn, CrossSurfaceIneligibilityReason as Gr, neutralizeText as Gt, createRetainedDispatch as H, assertCampaignDesign as Hi, LoadEvalFixtureScenariosOptions as Hn, CrossSurfaceDistribution as Hr, compareOptimizationMethods as Ht, DiscriminationScore as I, FinalEvidencePolicy as Ii, EvalFixture as In, CrossSurfaceCandidateEvidence as Ir, ToolCallEventLike as It, LoopProvenanceCandidate as J, SearchLedgerIntegrityError as Ji, externalTextOptimizationMethod as Jn, CrossSurfaceInteractionPath as Jr, RolloutArgumentDiffOptions as Jt, LoopProvenanceArgsFromResult as K, campaignSplitDigestFromIdentities as Ki, loadEvalFixtureScenarios as Kn, CrossSurfaceInteractionAwareSelection as Kr, FsLabeledScenarioStoreOptions as Kt, ScenarioSignal as L, FinalEvidenceUse as Li, EvalFixtureFile as Ln, CrossSurfaceCandidateOutcome as Lr, extractProducedState as Lt, skillOptOptimizationMethod as M, CacheRead as Mi, CanaryOptions as Mn, CrossSurfaceBestSingleSelection as Mr, userStoryScoreboard as Mt, SingleRunLock as N, CellScheduleSlot as Ni, CanaryReport as Nn, CrossSurfaceBootstrapPolicy as Nr, ArtifactEventLike as Nt, surfaceHash as O, CampaignRunPlanCell as Oi, scoreRedTeamOutput as On, AnalyzeCrossSurfaceInteractionsInput as Or, UserStoryVerdict as Ot, SingleRunLockOptions as P, buildCellSchedule as Pi, runCanaries as Pn, CrossSurfaceCandidate as Pr, ProposalEventLike as Pt, canonicalDigest as Q, ExternalOptimizationExample as Qn, CrossSurfacePairCompatibility as Qr, ExternalSearchOptimizer as Qt, scoreDiscrimination as R, captureFinalEvidencePolicy as Ri, EvalFixtureLoadOptions as Rn, CrossSurfaceCandidateSummary as Rr, CompareOptimizationMethodsOptions as Rt, assertCodeSurfaceIdentity as S, runEval as Si, RedTeamCase as Sn, ExternalOptimizerExecutionSummary as Sr, PlaybackDriver as St, renderSurfaceDiff as T, RunCampaignOptions as Ti, RedTeamReport as Tn, ExternalOptimizerSubmittedCandidate as Tr, ScoreboardRow as Tt, BuildLoopProvenanceArgs as U, campaignCoverage as Ui, PlanEvalFixtureRunOptions as Un, CrossSurfaceEligibility as Ur, scopedOptimizationMethod as Ut, RetainedDispatchOutcome as V, CampaignCoverage as Vi, EvalFixtureValidationMode as Vn, CrossSurfaceCompositionStep as Vr, OptimizationMethodScore as Vt, EmitLoopProvenanceArgs as W, campaignScenarioIdentity as Wi, discoverEvalFixtures as Wn, CrossSurfaceEvidenceBreakdown as Wr, sequentialOptimizationMethod as Wt, LoopProvenanceOptimizationMethod as X, ExternalTextOptimizerContext as Xn, CrossSurfaceInteractionTask as Xr, ScoredRollout as Xt, LoopProvenanceEvidence as Y, ExternalTextOptimizationMethodConfig as Yn, CrossSurfaceInteractionReport as Yr, RolloutCall as Yt, LoopProvenanceRecord as Z, ExternalTextOptimizerResult as Zn, CrossSurfaceNaiveStackSelection as Zr, UngroundedLiteralReport as Zt, PhoenixEvaluationResultLike as _, llmJudge as _i, DefaultProductionGateCheck as _n, GepaCandidatePopulationArtifact as _r, BackendIntegrityError as _t, RunOptimizationOptions as a, CrossSurfaceSelections as ai, GepaEngineOptions as an, OptimizationMethodResult as ar, ProfileMatrixRow as at, isTransientTransportFailure as b, openAutoPr as bi, defaultProductionGate as bn, GepaCandidateSelectionScore as br, summarizeBackendIntegrity as bt, CodeSurfaceVerification as c, BuildTraceAnalystSurfaceDispatchOptions as ci, GepaOptimizationRecipe as cn, ArtifactEvidenceOptions as cr, createProfileMatrixPlan as ct, WorktreeAdapter as d, ReferenceEquivalenceJudgeInput as di, OpenAICompatibleOptimizerModel as dn, DescribeArtifact as dr, ProfileDispatchFn as dt, CrossSurfacePairIncompatibilityReason as ei, GepaPopulationImport as en, decodeExternalTextCandidate as er, CreateProfileMatrixPlanOptions as et, gitWorktreeAdapter as f, ReferenceEquivalenceJudgeOptions as fi, OptimizerModelBudget as fn, campaignBreakdown as fr, ProfileSummary as ft, AutoevalsScorerLike as g, LlmJudgeOptions as gi, heldOutGate as gn, costFromLedgerSummary as gr, runProfileMatrix as gt, AutoevalsScoreLike as h, LlmJudgeDimension as hi, HeldOutGateOptions as hn, OptimizationTokenUsage as hr, ScenarioRollup as ht, PremeasuredOptimizationBaseline as i, CrossSurfaceSelectionPolicy as ii, GepaAdaptiveEngineRun as in, OptimizationMethodProvenance as ir, ProfileMatrixPlan as it, SkillOptTrainerConfig as j, CacheIssueReason as ji, CanaryKind as jn, CrossSurfaceAttemptCompleteness as jr, scoreboardSummary as jt, SkillOptOptimizationMethodConfig as k, PlanCampaignRunOptions as ki, CanaryAlert as kn, CrossSurfaceAdditionDecision as kr, renderScoreboardMarkdown as kt, GitWorktreeAdapterOptions as l, TraceAnalystArtifact as li, GepaRunnerCommand as ln, CampaignBreakdown as lr, finalizeProfileMatrix as lt, verifyCodeSurface as m, ReferenceEquivalenceScenario as mi, neutralizationGate as mn, ComparisonCost as mr, RunProfileMatrixResult as mt, RunImprovementLoopResult as n, CrossSurfaceRankedSingle as ni, importExternalEvaluations as nn, OptimizationMethodComposition as nr, FinalizedProfileMatrixResult as nt, RunOptimizationResult as o, CrossSurfaceTaskRow as oi, GepaEngineRun as on, OptimizationMethodRunOptions as or, ProfileMatrixSegmentResult as ot, resolveWorktreePath as p, ReferenceEquivalenceJudgeResult as pi, NeutralizationGateOptions as pn, campaignMeanComposite as pr, RunProfileMatrixOptions as pt, LoopProvenanceBackend as q, SearchLedgerError as qi, planEvalFixtureRun as qn, CrossSurfaceInteractionEffect as qr, RolloutArgumentDiff as qt, runImprovementLoop as r, CrossSurfaceRelativeCost as ri, importGepaPopulation as rn, OptimizationMethodInput as rr, ProfileMatrixCoverage as rt, runOptimization as s, measureCampaignCost as si, GepaOptimizationMethodConfig as sn, OptimizationPackageSource as sr, RunProfileMatrixSegmentOptions as st, RunImprovementLoopOptions as t, CrossSurfacePairwiseEntry as ti, externalSurface as tn, OptimizationMethod as tr, FinalizeProfileMatrixOptions as tt, Worktree as u, TraceAnalystScenario as ui, gepaOptimizationMethod as un, CampaignComparisonUnits as ur, runProfileMatrixSegment as ut, PhoenixEvaluatorLike as v, OpenAutoPrOptions as vi, DefaultProductionGateOptions as vn, GepaCandidatePopulationCandidate as vr, BackendIntegrityReport as vt, componentSurfaceIdentityMaterial as w, CampaignCellRetryPolicy as wi, RedTeamFinding as wn, ExternalOptimizerObservationSummary as wr, ScoreboardRenderOptions as wt, transientDispatchFailure as x, RunEvalOptions as xi, DEFAULT_RED_TEAM_CORPUS as xn, readGepaCandidatePopulationArtifact as xr, PlaybackContext as xt, TransientFailureOptions as y, OpenAutoPrResult as yi, DefaultProductionRewardHackingOptions as yn, GepaCandidatePopulationSummary as yr, assertRealBackend as yt, resolveRunDir as z, prepareSearchFinalEvidence as zi, EvalFixtureRunPlan as zn, CrossSurfaceComponent as zr, OptimizationMethodComparison as zt };
3010
- //# sourceMappingURL=run-improvement-loop-BfwOUudy.d.ts.map
3394
+ export { LoopProvenanceEvidence as $, CampaignCellRetryPolicy as $i, RedTeamFinding as $n, ExternalOptimizerObservationSummary as $r, ScoreboardRenderOptions as $t, SkillOptRunnerCommand as A, CrossSurfacePairwiseEntry as Ai, externalSurface as An, OptimizationMethod as Ar, ProfileMatrixRow as At, RetainedDispatchOptions as B, ReferenceEquivalenceJudgeInput as Bi, OpenAICompatibleOptimizerModel as Bn, DescribeArtifact as Br, ScenarioRollup as Bt, codeSurfaceIdentityMaterial as C, SearchLedgerIntegrityError as Ca, CrossSurfaceInteractionPath as Ci, RolloutArgumentDiffOptions as Cn, externalTextOptimizationMethod as Cr, RaceProfileMatrixOptions as Ct, surfaceDispatchRef as D, CrossSurfacePairCompatibility as Di, ExternalSearchOptimizer as Dn, ExternalOptimizationExample as Dr, FinalizedProfileMatrixResult as Dt, surfaceContentHash as E, CrossSurfaceNaiveStackSelection as Ei, UngroundedLiteralReport as En, ExternalTextOptimizerResult as Er, FinalizeProfileMatrixOptions as Et, acquireSingleRunLock as F, CrossSurfaceTaskRow as Fi, GepaEngineRun as Fn, OptimizationMethodRunOptions as Fr, runProfileMatrixSegment as Ft, ScenarioRepeatReliability as G, LlmJudgeOptions as Gi, heldOutGate as Gn, costFromLedgerSummary as Gr, summarizeBackendIntegrity as Gt, createRetainedDispatch as H, ReferenceEquivalenceJudgeResult as Hi, NeutralizationGateOptions as Hn, campaignMeanComposite as Hr, BackendIntegrityError as Ht, DiscriminationScore as I, measureCampaignCost as Ii, GepaOptimizationMethodConfig as In, OptimizationPackageSource as Ir, ProfileDispatchFn as It, EmitLoopProvenanceArgs as J, OpenAutoPrResult as Ji, DefaultProductionRewardHackingOptions as Jn, GepaCandidatePopulationSummary as Jr, ProfileMatrixRunStability as Jt, repeatReliability as K, llmJudge as Ki, DefaultProductionGateCheck as Kn, GepaCandidatePopulationArtifact as Kr, ProfileMatrixFamily as Kt, ScenarioSignal as L, BuildTraceAnalystSurfaceDispatchOptions as Li, GepaOptimizationRecipe as Ln, ArtifactEvidenceOptions as Lr, ProfileSummary as Lt, skillOptOptimizationMethod as M, CrossSurfaceRelativeCost as Mi, importGepaPopulation as Mn, OptimizationMethodInput as Mr, RunProfileMatrixSegmentOptions as Mt, SingleRunLock as N, CrossSurfaceSelectionPolicy as Ni, GepaAdaptiveEngineRun as Nn, OptimizationMethodProvenance as Nr, createProfileMatrixPlan as Nt, surfaceHash as O, CrossSurfacePairEvidence as Oi, GepaEvaluationImport as On, ExternalTextEvaluationResponse as Or, ProfileMatrixCoverage as Ot, SingleRunLockOptions as P, CrossSurfaceSelections as Pi, GepaEngineOptions as Pn, OptimizationMethodResult as Pr, finalizeProfileMatrix as Pt, LoopProvenanceCandidate as Q, CampaignCellFailureReceipt as Qi, RedTeamCategory as Qn, ExternalOptimizerObservationArtifact as Qr, PlaybackStep as Qt, scoreDiscrimination as R, TraceAnalystArtifact as Ri, GepaRunnerCommand as Rn, CampaignBreakdown as Rr, RunProfileMatrixOptions as Rt, assertCodeSurfaceIdentity as S, SearchLedgerError as Sa, CrossSurfaceInteractionEffect as Si, RolloutArgumentDiff as Sn, planEvalFixtureRun as Sr, ProfileMatrixRaceStanding as St, renderSurfaceDiff as T, CrossSurfaceInteractionTask as Ti, ScoredRollout as Tn, ExternalTextOptimizerContext as Tr, CreateProfileMatrixPlanOptions as Tt, RepeatReliability as U, ReferenceEquivalenceScenario as Ui, neutralizationGate as Un, ComparisonCost as Ur, BackendIntegrityReport as Ut, RetainedDispatchOutcome as V, ReferenceEquivalenceJudgeOptions as Vi, OptimizerModelBudget as Vn, campaignBreakdown as Vr, runProfileMatrix as Vt, RepeatReliabilityOptions as W, LlmJudgeDimension as Wi, HeldOutGateOptions as Wn, OptimizationTokenUsage as Wr, assertRealBackend as Wt, LoopProvenanceArgsFromResult as X, RunEvalOptions as Xi, DEFAULT_RED_TEAM_CORPUS as Xn, readGepaCandidatePopulationArtifact as Xr, PlaybackContext as Xt, EmitLoopProvenanceResult as Y, openAutoPr as Yi, defaultProductionGate as Yn, GepaCandidateSelectionScore as Yr, ProfileMatrixVerdict as Yt, LoopProvenanceBackend as Z, runEval as Zi, RedTeamCase as Zn, ExternalOptimizerExecutionSummary as Zr, PlaybackDriver as Zt, PhoenixEvaluationResultLike as _, assertCampaignDesign as _a, CrossSurfaceDistribution as _i, compareOptimizationMethods as _n, LoadEvalFixtureScenariosOptions as _r, ProfileMatrixSliceCell as _t, RunOptimizationOptions as a, planCampaignRun as aa, CrossSurfaceAdditionRejectionReason as ai, scoreUserStory as an, CanaryEvaluation as ar, ProfileMatrixAnalysis as at, isTransientTransportFailure as b, campaignSplitDigest as ba, CrossSurfaceIneligibilityReason as bi, neutralizeText as bn, loadEvalFixture as br, ProfileMatrixRaceFinalRow as bt, CodeSurfaceVerification as c, CellScheduleSlot as ca, CrossSurfaceBootstrapPolicy as ci, ArtifactEventLike as cn, CanaryReport as cr, ProfileMatrixCaseDifficulty as ct, WorktreeAdapter as d, FinalEvidencePolicy as da, CrossSurfaceCandidateEvidence as di, ToolCallEventLike as dn, EvalFixture as dr, ProfileMatrixFactorEffect as dt, RunCampaignOptions as ea, ExternalOptimizerSubmittedCandidate as ei, ScoreboardRow as en, RedTeamReport as er, LoopProvenanceOptimizationMethod as et, gitWorktreeAdapter as f, FinalEvidenceUse as fa, CrossSurfaceCandidateOutcome as fi, extractProducedState as fn, EvalFixtureFile as fr, ProfileMatrixInterval as ft, AutoevalsScorerLike as g, CampaignCoverage as ga, CrossSurfaceCompositionStep as gi, OptimizationMethodScore as gn, EvalFixtureValidationMode as gr, ProfileMatrixReportOptions as gt, AutoevalsScoreLike as h, withFinalEvidenceSources as ha, CrossSurfaceComponentEvidence as hi, OptimizationMethodPairwise as hn, EvalFixtureScenario as hr, ProfileMatrixProfileStats as ht, PremeasuredOptimizationBaseline as i, PlanCampaignRunOptions as ia, CrossSurfaceAdditionDecision as ii, renderScoreboardMarkdown as in, CanaryAlert as ir, renderProfileMatrixReport as it, SkillOptTrainerConfig as j, CrossSurfaceRankedSingle as ji, importExternalEvaluations as jn, OptimizationMethodComposition as jr, ProfileMatrixSegmentResult as jt, SkillOptOptimizationMethodConfig as k, CrossSurfacePairIncompatibilityReason as ki, GepaPopulationImport as kn, decodeExternalTextCandidate as kr, ProfileMatrixPlan as kt, GitWorktreeAdapterOptions as l, buildCellSchedule as la, CrossSurfaceCandidate as li, ProposalEventLike as ln, runCanaries as lr, ProfileMatrixCostAxis as lt, verifyCodeSurface as m, prepareSearchFinalEvidence as ma, CrossSurfaceComponent as mi, OptimizationMethodComparison as mn, EvalFixtureRunPlan as mr, ProfileMatrixPower as mt, RunImprovementLoopResult as n, CampaignRunPlan as na, analyzeCrossSurfaceInteractions as ni, UserStory as nn, redTeamReport as nr, canonicalDigest as nt, RunOptimizationResult as o, CacheIssueReason as oa, CrossSurfaceAttemptCompleteness as oi, scoreboardSummary as on, CanaryKind as or, ProfileMatrixAxisSummary as ot, resolveWorktreePath as p, captureFinalEvidencePolicy as pa, CrossSurfaceCandidateSummary as pi, CompareOptimizationMethodsOptions as pn, EvalFixtureLoadOptions as pr, ProfileMatrixPairedDifference as pt, BuildLoopProvenanceArgs as q, OpenAutoPrOptions as qi, DefaultProductionGateOptions as qn, GepaCandidatePopulationCandidate as qr, ProfileMatrixPairwiseShare as qt, runImprovementLoop as r, CampaignRunPlanCell as ra, AnalyzeCrossSurfaceInteractionsInput as ri, UserStoryVerdict as rn, scoreRedTeamOutput as rr, emitLoopProvenance as rt, runOptimization as s, CacheRead as sa, CrossSurfaceBestSingleSelection as si, userStoryScoreboard as sn, CanaryOptions as sr, ProfileMatrixCalibration as st, RunImprovementLoopOptions as t, runCampaign as ta, readExternalOptimizerObservationArtifact as ti, ScoreboardSummary as tn, redTeamDataset as tr, LoopProvenanceRecord as tt, Worktree as u, cellCachePath as ua, CrossSurfaceCandidateComparison as ui, RuntimeEventLike as un, composeGate as ur, ProfileMatrixErrorOverlap as ut, PhoenixEvaluatorLike as v, campaignCoverage as va, CrossSurfaceEligibility as vi, scopedOptimizationMethod as vn, PlanEvalFixtureRunOptions as vr, analyzeProfileMatrix as vt, componentSurfaceIdentityMaterial as w, CrossSurfaceInteractionReport as wi, RolloutCall as wn, ExternalTextOptimizationMethodConfig as wr, raceProfileMatrix as wt, transientDispatchFailure as x, campaignSplitDigestFromIdentities as xa, CrossSurfaceInteractionAwareSelection as xi, FsLabeledScenarioStoreOptions as xn, loadEvalFixtureScenarios as xr, ProfileMatrixRaceResult as xt, TransientFailureOptions as y, campaignScenarioIdentity as ya, CrossSurfaceEvidenceBreakdown as yi, sequentialOptimizationMethod as yn, discoverEvalFixtures as yr, ProfileMatrixRaceBatch as yt, resolveRunDir as z, TraceAnalystScenario as zi, gepaOptimizationMethod as zn, CampaignComparisonUnits as zr, RunProfileMatrixResult as zt };
3395
+ //# sourceMappingURL=run-improvement-loop-BeHu5D9Z.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-improvement-loop-BeHu5D9Z.d.ts","names":["_$__external_optimizer_process0.ExternalTextEvaluationRequest","AgentProfile","AgentProfile"],"sources":["../src/campaign/search-ledger-errors.ts","../src/campaign/coverage.ts","../src/campaign/final-evidence.ts","../src/campaign/cell-schedule.ts","../src/campaign/cell-cache.ts","../src/campaign/plan-campaign-run.ts","../src/campaign/run-campaign.ts","../src/campaign/presets/run-eval.ts","../src/campaign/auto-pr.ts","../src/llm-judge.ts","../src/reference-equivalence-judge.ts","../src/campaign/analyst-surface.ts","../src/campaign/cost-breakdown.ts","../src/campaign/cross-surface-types.ts","../src/campaign/cross-surface-interaction.ts","../src/campaign/external-optimizer-observations.ts","../src/campaign/gepa-candidate-population.ts","../src/campaign/optimization-cost.ts","../src/campaign/score-utils.ts","../src/campaign/optimization-method.ts","../src/campaign/external-text-evaluation.ts","../src/campaign/external-text-optimization-contract.ts","../src/campaign/external-text-optimization.ts","../src/campaign/fixtures.ts","../src/campaign/gates/compose.ts","../src/canary.ts","../src/red-team.ts","../src/campaign/gates/default-production-gate.ts","../src/campaign/gates/heldout-gate.ts","../src/campaign/gates/neutralization-gate.ts","../src/campaign/optimizer-model.ts","../src/campaign/gepa-optimization-method.ts","../src/campaign/gepa-search-import.ts","../src/campaign/grounded-reflection.ts","../src/campaign/labeled-store/fs-adapter.ts","../src/campaign/neutralize.ts","../src/campaign/optimization-method-composition.ts","../src/campaign/presets/compare-optimization-methods.ts","../src/produced-state.ts","../src/campaign/presets/playback.ts","../src/campaign/presets/profile-matrix-stability.ts","../src/integrity/backend-integrity.ts","../src/campaign/presets/run-profile-matrix.ts","../src/campaign/presets/segmented-profile-matrix.ts","../src/campaign/presets/race-profile-matrix.ts","../src/campaign/presets/profile-matrix-analysis.ts","../src/campaign/presets/profile-matrix-report.ts","../src/campaign/provenance.ts","../src/campaign/repeat-reliability.ts","../src/campaign/retained-dispatch.ts","../src/campaign/run-dir.ts","../src/campaign/scenario-selection.ts","../src/campaign/single-run-lock.ts","../src/campaign/skillopt-optimization-method.ts","../src/campaign/surface-identity.ts","../src/campaign/transient-failure.ts","../src/campaign/upstream-evaluators.ts","../src/campaign/worktree/index.ts","../src/campaign/presets/run-optimization.ts","../src/campaign/presets/run-improvement-loop.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;cAGa,0BAA0B;;cAG1B,mCAAmC;UCE/B;EACf;EACA;EACA;EACA,iBA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;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf,aAAa;EACb;EACA;EACA;EACA;;KAGU;UAWK;EACf;EACA,SAAS;;UAGM;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf,WAAW;EACX,SAAS;EACT,OAAO;EACP,OAAO,eAAe;EACtB,QAAQ;EACR,QAAQ;;EAER,sBAAsB;;EAEtB,aAAa;;UAGE;EACf;EACA;EACA;;EAEA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR,cAAc,eAAe;;UAGd;EACf;EACA;EACA;EACA;EACA;;UAGe;EACf;;EAEA;EACA;;UAGe;EACf,SAAS;EACT;EACA;EACA;EACA;EACA,eAAe;EACf,gBAAgB;;KAGN;UAYK;EACf;EACA,SAAS;EACT;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,4BAA4B,iCAAiC;EAC7D,wBAAwB,eAAe;EACvC,QAAQ;EACR,QAAQ;EACR,aAAa;EACb,eAAe;;UAGA;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA,SAAS;;UAGM;;EAEf;EACA;;KAGU;UAaK;EACf;EACA;EACA;EACA;EACA;EACA,uBAAuB;EACvB;EACA;EACA,SAAS;;UAGM;EACf;EACA;EACA,YAAY;EACZ;;;UAIe;EACf;EACA;EACA;EACA;EACA,OAAO;;UAGQ;;EAEf;;EAEA;EACA;;EAEA;EACA;;EAEA,gBAAgB;;EAEhB,OAAO;;UAGQ;EACf,YAAY;EACZ,YAAY;EACZ,kBAAkB;;UAGH,8BACf,aAAa,sBAAsB;EAEnC;EACA;EACA;EACA;;EAEA,MAAM;EACN,iBAAiB;EACjB,iBAAiB;EACjB,YAAY;EACZ,UAAU;EACV,YAAY;;;;;;;iBC9QE,gCAAgC,aAAa,qBAC3D,OAAO,qCAAqC,QAC3C,8BAA8B;UC7ChB;EACf;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;;UAGe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EAEA;;;EAGA;EACA,kBAAkB,eAAe,WAAW;;EAE5C,MAAM;;EAEN,eAAe;;EAEf,gBAAgB;;KCrnBN,0BACV,kBAAkB,UAClB,aACE,uBAAuB,WAAW;;;EAGpC,kBAAkB;EAClB,QAAQ;EACR,gBAAgB;;EAEhB;;EAEA,iBAAiB;;;EAGjB;;;;;;;;;EASA;;;;EAIA,MAAM,KAAK,WAAW;;;;;EAKtB;;EAEA;EACA;;;;;;;;EAQA,cAAc,eAAe,gBAAgB,iBAAiB,mBAAmB;;UAGlE,yBAAyB,WAAW,kBAAkB,kBAC7D,sBAAsB,WAAW;EACzC,mBAAmB,eAAe,WAAW;EAC7C,iBAAiB,eAAe,WAAW;EAC3C,uBAAuB,eAAe,WAAW;EACjD,qBAAqB;EACrB,YAAY,QAAQ,WAAW,KAAK,WAAW;EAC/C,QAAQ;EACR,gBAAgB;EAChB,iBAAiB;;;;EAIjB;;;;;EAKA;EACA,WAAW,kBAAkB;;;;;iBAMT,mBAAmB,kBAAkB,UAAU,WACnE,MAAM,0BAA0B,WAAW,aAC1C,QAAQ,yBAAyB,WAAW"}
@@ -1,5 +1,5 @@
1
1
  import { l as validateRunRecord } from "./run-record-CqUft6Yf.js";
2
- import { pt as mean } from "./statistics-DSidA5I2.js";
2
+ import { _ as mean } from "./paired-tests-CXcD_B80.js";
3
3
  // src/campaign/run-record.ts
4
4
  /**
5
5
  * A campaign cell carried a judge score without a `dimensions` record.
@@ -41,6 +41,7 @@ function campaignCellToRunRecord(cell, options) {
41
41
  tokens_output: cell.tokenUsage.output,
42
42
  tokens_known: cell.tokenUsage.tokensKnown === false ? 0 : 1,
43
43
  latency_ms: cell.durationMs,
44
+ ...cell.dispatchMs === void 0 ? {} : { dispatch_ms: cell.dispatchMs },
44
45
  ...execution.executionErrorCount === void 0 ? {} : { execution_error_count: execution.executionErrorCount },
45
46
  ...judgeErrorCount > 0 ? { judge_error_count: judgeErrorCount } : {},
46
47
  ...execution.unclassifiedErrorCount === void 0 ? {} : { unclassified_error_count: execution.unclassifiedErrorCount }
@@ -232,4 +233,4 @@ function finiteMetrics(metrics) {
232
233
  }
233
234
  export { campaignCellToRunRecord as n, projectCampaignCellQuality as r, campaignCellCostProvenance as t };
234
235
 
235
- //# sourceMappingURL=run-record-Bqg0NZ_e.js.map
236
+ //# sourceMappingURL=run-record-CuO8ErrI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-record-CuO8ErrI.js","names":[],"sources":["../src/campaign/run-record.ts"],"sourcesContent":["import type { AgentProfileCell } from '../agent-profile-cell'\nimport type { CostProvenance } from '../cost-ledger'\nimport type {\n JudgeScoresRecord,\n RunCostProvenance,\n RunOutcome,\n RunRecord,\n RunSearchCoordinates,\n RunSplitTag,\n RunTerminalOutcome,\n RunTraceRef,\n} from '../run-record'\nimport { validateRunRecord } from '../run-record'\nimport { mean } from '../statistics/mean'\nimport type { CampaignCellResult, JudgeScore } from './types'\n\ninterface CampaignCellRunRecordOptions {\n /** With `search`, this must be `searchCellRunId(search)`. */\n runId: string\n experimentId: string\n candidateId: string\n model: string\n promptHash: string\n configHash: string\n commitSha: string\n splitTag: RunSplitTag\n seed?: number\n scenarioId?: string\n /** Estimated total for a cell that proved no spend at all. A cell that\n * proved part of its spend keeps that floor instead. */\n defaultCostUsd?: number\n agentProfile?: AgentProfileCell\n raw?: Record<string, number>\n search?: RunSearchCoordinates\n}\n\ninterface CampaignCellQualityProjection {\n score?: number\n judgeScores?: JudgeScoresRecord\n successfulJudgeScores: Record<string, JudgeScore>\n failedJudges: string[]\n raw: Record<string, number>\n}\n\n/**\n * A campaign cell carried a judge score without a `dimensions` record.\n *\n * Two exported types share the name `JudgeScore`: the campaign verdict\n * (`{ dimensions, composite, notes }` from `@tangle-network/agent-eval/campaign`)\n * and the root export's flat per-dimension row (`{ judgeName, dimension, score }`\n * from `@tangle-network/agent-eval`). Campaign aggregation accepts only the\n * campaign shape; the flat shape previously crashed here with an opaque\n * TypeError deep inside aggregation.\n */\nexport class CampaignJudgeScoreShapeError extends TypeError {\n constructor(judgeName: string) {\n super(\n `campaign cell judge '${judgeName}' carries a score without a 'dimensions' record. ` +\n `Use the campaign JudgeScore ({ dimensions, composite, notes }) from ` +\n `'@tangle-network/agent-eval/campaign'; the root export's JudgeScore ` +\n `({ judgeName, dimension, score }) is a different type with the same name.`,\n )\n this.name = 'CampaignJudgeScoreShapeError'\n }\n}\n\ninterface CampaignCellExecutionEvidence {\n terminalOutcome: RunTerminalOutcome\n executionErrorCount?: number\n judgeErrorCount?: number\n unclassifiedErrorCount?: number\n terminalFailureReason?: string\n}\n\n/**\n * Project one campaign cell into the canonical run format.\n *\n * A dispatch error establishes terminal execution failure. A judge error only\n * establishes that quality measurement failed after dispatch completed.\n * Failures without a stage remain unknown. No failure becomes a zero-quality\n * label.\n */\nexport function campaignCellToRunRecord<TArtifact>(\n cell: CampaignCellResult<TArtifact>,\n options: CampaignCellRunRecordOptions,\n): RunRecord {\n const quality = projectCampaignCellQuality(cell)\n const execution = campaignCellExecutionEvidence(cell)\n const judgeErrorCount = Math.max(\n quality.raw.judge_error_count ?? 0,\n execution.judgeErrorCount ?? 0,\n )\n const costProvenance = campaignCellRunCostProvenance(cell, options.defaultCostUsd)\n const costUsd = costProvenance.usd\n const raw: Record<string, number> = {\n ...finiteMetrics(options.raw),\n ...quality.raw,\n rep: cell.rep,\n duration_ms: cell.durationMs,\n ...(costUsd === null ? {} : { cost_usd: costUsd }),\n tokens_input: cell.tokenUsage.input,\n tokens_output: cell.tokenUsage.output,\n tokens_known: cell.tokenUsage.tokensKnown === false ? 0 : 1,\n latency_ms: cell.durationMs,\n ...(cell.dispatchMs === undefined ? {} : { dispatch_ms: cell.dispatchMs }),\n ...(execution.executionErrorCount === undefined\n ? {}\n : { execution_error_count: execution.executionErrorCount }),\n ...(judgeErrorCount > 0 ? { judge_error_count: judgeErrorCount } : {}),\n ...(execution.unclassifiedErrorCount === undefined\n ? {}\n : { unclassified_error_count: execution.unclassifiedErrorCount }),\n }\n if (typeof cell.generation === 'number') raw.generation = cell.generation\n if (cell.tokenUsage.reasoning !== undefined) {\n raw.tokens_reasoning = cell.tokenUsage.reasoning\n }\n if (cell.tokenUsage.cached !== undefined) raw.tokens_cached = cell.tokenUsage.cached\n if (cell.tokenUsage.cacheWrite !== undefined) {\n raw.tokens_cache_write = cell.tokenUsage.cacheWrite\n }\n if (cell.tokenUsage.tokensKnown !== false && costUsd !== null && costUsd > 0) {\n raw.tokens_per_dollar = (cell.tokenUsage.input + cell.tokenUsage.output) / costUsd\n }\n if (costUsd !== null && quality.score !== undefined && quality.score > 0.01) {\n raw.cost_per_quality = costUsd / quality.score\n }\n\n const traceRef = campaignCellRunTraceRef(cell)\n const outcome: RunOutcome = {\n raw,\n ...(quality.judgeScores ? { judgeScores: quality.judgeScores } : {}),\n }\n if (quality.score !== undefined) {\n if (options.splitTag === 'holdout') outcome.holdoutScore = quality.score\n else outcome.searchScore = quality.score\n }\n\n return validateRunRecord({\n runId: options.runId,\n experimentId: options.experimentId,\n candidateId: options.candidateId,\n seed: options.seed ?? cell.seed,\n model: options.model,\n promptHash: options.promptHash,\n configHash: options.configHash,\n commitSha: options.commitSha,\n wallMs: cell.durationMs,\n costUsd,\n costProvenance,\n tokenUsage: { ...cell.tokenUsage },\n terminalOutcome: execution.terminalOutcome,\n ...(execution.terminalFailureReason\n ? { terminalFailureReason: execution.terminalFailureReason }\n : {}),\n outcome,\n splitTag: options.splitTag,\n scenarioId: options.scenarioId ?? cell.scenarioId,\n ...(options.agentProfile ? { agentProfile: options.agentProfile } : {}),\n ...(options.search ? { search: options.search } : {}),\n ...(traceRef ? { traceRef } : {}),\n })\n}\n\n/**\n * The trace the cell's measuring attempt wrote, as a RunRecord names it. A\n * cell whose trace is unknown (a writer with no trace identity, tracing off,\n * a record from before cells named their trace) leaves the record without\n * one, so an unknown trace never reads as a known one.\n */\nfunction campaignCellRunTraceRef<TArtifact>(\n cell: CampaignCellResult<TArtifact>,\n): RunTraceRef | undefined {\n const ref = cell.traceRef\n if (ref === undefined || !('traceId' in ref)) return undefined\n return {\n traceId: ref.traceId,\n ...(ref.execRunId === null ? {} : { execRunId: ref.execRunId }),\n }\n}\n\n/**\n * A cell's cost as a RunRecord states it. An uncaptured cell's `costUsd` is\n * the spend its receipts proved, so a positive one is the run's floor. The\n * caller's `defaultCostUsd` stands in only when nothing was proved: a proven\n * floor is never replaced by a guess.\n */\nfunction campaignCellRunCostProvenance<TArtifact>(\n cell: CampaignCellResult<TArtifact>,\n defaultCostUsd: number | undefined,\n): RunCostProvenance {\n const provenance = campaignCellCostProvenance(cell)\n if (provenance.kind !== 'uncaptured') return provenance\n if (cell.costUsd > 0) return { kind: 'lower-bound', usd: null, knownLowerBoundUsd: cell.costUsd }\n return defaultCostUsd === undefined ? provenance : { kind: 'estimated', usd: defaultCostUsd }\n}\n\n/**\n * Validate the cost fields that cross campaign cache and RunRecord boundaries.\n * `costUsd` is a known subtotal for uncaptured cells, but it must equal the\n * authoritative total whenever that total is observed or estimated.\n */\nexport function campaignCellCostProvenance<TArtifact>(\n cell: Pick<CampaignCellResult<TArtifact>, 'cellId' | 'costUsd' | 'costProvenance'>,\n): CostProvenance {\n if (!Number.isFinite(cell.costUsd) || cell.costUsd < 0) {\n throw new Error(`campaign cell '${cell.cellId}' has invalid costUsd`)\n }\n const provenance = cell.costProvenance\n if (!provenance || typeof provenance !== 'object') {\n throw new Error(`campaign cell '${cell.cellId}' has no costProvenance`)\n }\n if (provenance.kind === 'uncaptured') {\n if (provenance.usd !== null) {\n throw new Error(`campaign cell '${cell.cellId}' has invalid uncaptured costProvenance`)\n }\n return { kind: 'uncaptured', usd: null }\n }\n if (\n (provenance.kind !== 'observed' && provenance.kind !== 'estimated') ||\n !Number.isFinite(provenance.usd) ||\n provenance.usd < 0\n ) {\n throw new Error(`campaign cell '${cell.cellId}' has invalid costProvenance`)\n }\n if (provenance.usd !== cell.costUsd) {\n throw new Error(`campaign cell '${cell.cellId}' has costUsd inconsistent with costProvenance`)\n }\n return { kind: provenance.kind, usd: provenance.usd }\n}\n\nfunction campaignCellExecutionEvidence<TArtifact>(\n cell: CampaignCellResult<TArtifact>,\n): CampaignCellExecutionEvidence {\n if (cell.errorStage === 'dispatch') {\n return {\n terminalOutcome: 'failed',\n executionErrorCount: 1,\n ...(cell.error ? { terminalFailureReason: cell.error } : {}),\n }\n }\n if (cell.errorStage === 'judge') {\n return {\n terminalOutcome: 'succeeded',\n executionErrorCount: 0,\n judgeErrorCount: 1,\n }\n }\n if (!cell.error) {\n return { terminalOutcome: 'succeeded', executionErrorCount: 0 }\n }\n return {\n terminalOutcome: 'unknown',\n unclassifiedErrorCount: 1,\n }\n}\n\n/**\n * Produce the only task-quality view used by campaign aggregates and exports.\n *\n * Successful judge results remain available for diagnosis after another judge\n * fails, but a task score exists only for an error-free cell whose reported\n * judge values are all finite.\n */\nexport function projectCampaignCellQuality<TArtifact>(\n cell: CampaignCellResult<TArtifact>,\n): CampaignCellQualityProjection {\n if (cell.errorStage === 'dispatch') {\n return { successfulJudgeScores: {}, failedJudges: [], raw: {} }\n }\n\n const perJudge: Record<string, Record<string, number>> = {}\n const successfulJudgeScores: Record<string, JudgeScore> = {}\n const dimensionValues = new Map<string, number[]>()\n const composites: number[] = []\n const notes: string[] = []\n const failedJudges = new Set<string>(\n cell.errorStage === 'judge' ? [cell.errorJudge ?? 'unknown-judge'] : [],\n )\n const raw: Record<string, number> = {}\n\n for (const [judgeName, score] of Object.entries(cell.judgeScores)) {\n const dimensionsShape = (score as { dimensions?: unknown }).dimensions\n if (\n typeof dimensionsShape !== 'object' ||\n dimensionsShape === null ||\n Array.isArray(dimensionsShape)\n ) {\n throw new CampaignJudgeScoreShapeError(judgeName)\n }\n const finiteDimensions = Object.values(score.dimensions).every(Number.isFinite)\n if (score.failed || !Number.isFinite(score.composite) || !finiteDimensions) {\n failedJudges.add(judgeName)\n continue\n }\n\n composites.push(score.composite)\n successfulJudgeScores[judgeName] = score\n const dimensions = { ...score.dimensions }\n perJudge[judgeName] = dimensions\n for (const [dimension, value] of Object.entries(dimensions)) {\n raw[`${judgeName}.${dimension}`] = value\n const values = dimensionValues.get(dimension) ?? []\n values.push(value)\n dimensionValues.set(dimension, values)\n }\n if (score.notes) notes.push(`${judgeName}: ${score.notes}`)\n for (const failedJudge of score.failedJudges ?? []) {\n failedJudges.add(`${judgeName}/${failedJudge}`)\n }\n }\n\n if (failedJudges.size > 0) raw.judge_error_count = failedJudges.size\n const sortedFailedJudges = [...failedJudges].sort()\n if (composites.length === 0) {\n return {\n successfulJudgeScores,\n failedJudges: sortedFailedJudges,\n raw,\n }\n }\n\n const composite = mean(composites)\n const perDimMean = Object.fromEntries(\n [...dimensionValues.entries()].map(([dimension, values]) => [dimension, mean(values)]),\n )\n const complete =\n cell.error === undefined && cell.errorStage === undefined && failedJudges.size === 0\n if (complete) raw.composite = composite\n\n return {\n ...(complete ? { score: composite } : {}),\n raw,\n successfulJudgeScores,\n failedJudges: sortedFailedJudges,\n judgeScores: {\n perJudge,\n perDimMean,\n composite,\n ...(sortedFailedJudges.length > 0 ? { failedJudges: sortedFailedJudges } : {}),\n ...(notes.length > 0 ? { notes: notes.join(' | ') } : {}),\n },\n }\n}\n\nfunction finiteMetrics(metrics: Record<string, number> | undefined): Record<string, number> {\n const finite: Record<string, number> = {}\n for (const [key, value] of Object.entries(metrics ?? {})) {\n if (Number.isFinite(value)) finite[key] = value\n }\n return finite\n}\n"],"mappings":";;;;;;;;;;;;;AAsDA,IAAa,+BAAb,cAAkD,UAAU;CAC1D,YAAY,WAAmB;EAC7B,MACE,wBAAwB,UAAU,mQAIpC;EACA,KAAK,OAAO;CACd;AACF;;;;;;;;;AAkBA,SAAgB,wBACd,MACA,SACW;CACX,MAAM,UAAU,2BAA2B,IAAI;CAC/C,MAAM,YAAY,8BAA8B,IAAI;CACpD,MAAM,kBAAkB,KAAK,IAC3B,QAAQ,IAAI,qBAAqB,GACjC,UAAU,mBAAmB,CAC/B;CACA,MAAM,iBAAiB,8B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