@tangle-network/agent-eval 2.0.7 → 2.0.9

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 (285) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/adapters/http.d.ts +2 -2
  3. package/dist/{agent-profile-CRdalpZv.d.ts → agent-profile-ORN4aArD.d.ts} +5 -5
  4. package/dist/{agent-profile-CRdalpZv.d.ts.map → agent-profile-ORN4aArD.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 +9 -9
  8. package/dist/{analyze-runs-C_9cXPZn.js → analyze-runs-CE_5VKh2.js} +6 -5
  9. package/dist/{analyze-runs-C_9cXPZn.js.map → analyze-runs-CE_5VKh2.js.map} +1 -1
  10. package/dist/analyze-runs-DT693FJ7.d.ts +65 -0
  11. package/dist/analyze-runs-DT693FJ7.d.ts.map +1 -0
  12. package/dist/app-grade/index.d.ts +4 -4
  13. package/dist/app-grade/index.js +1 -1
  14. package/dist/{benchmark-command-DkBMUDwy.js → benchmark-command-DLg8E4y8.js} +9 -6
  15. package/dist/benchmark-command-DLg8E4y8.js.map +1 -0
  16. package/dist/benchmarks/index.d.ts +4 -4
  17. package/dist/benchmarks/index.js +4 -4
  18. package/dist/builder-eval/index.js +2 -2
  19. package/dist/calibration-CrORXMWx.d.ts +128 -0
  20. package/dist/calibration-CrORXMWx.d.ts.map +1 -0
  21. package/dist/{calibration-Cfoup0xz.js → calibration-Dz8mQb5P.js} +2 -2
  22. package/dist/{calibration-Cfoup0xz.js.map → calibration-Dz8mQb5P.js.map} +1 -1
  23. package/dist/campaign/index.d.ts +8 -8
  24. package/dist/campaign/index.js +12 -11
  25. package/dist/{campaign-DfSWSreo.js → campaign-C_S3MOYa.js} +1589 -14
  26. package/dist/campaign-C_S3MOYa.js.map +1 -0
  27. package/dist/{campaign-evidence-D_oBFfLc.js → campaign-evidence-BTfzZo1u.js} +4 -4
  28. package/dist/{campaign-evidence-D_oBFfLc.js.map → campaign-evidence-BTfzZo1u.js.map} +1 -1
  29. package/dist/{campaign-evidence-BojANgU7.d.ts → campaign-evidence-CM4FBOkX.d.ts} +5 -5
  30. package/dist/{campaign-evidence-BojANgU7.d.ts.map → campaign-evidence-CM4FBOkX.d.ts.map} +1 -1
  31. package/dist/{cluster-Bj90LK-1.d.ts → chat-client-uQNXGuO4.d.ts} +3 -240
  32. package/dist/chat-client-uQNXGuO4.d.ts.map +1 -0
  33. package/dist/cli.js +5 -5
  34. package/dist/cluster-C-K0N2br.d.ts +241 -0
  35. package/dist/cluster-C-K0N2br.d.ts.map +1 -0
  36. package/dist/{cluster-bootstrap-DPzVy3_K.js → cluster-bootstrap-DXbnIdm8.js} +3 -2
  37. package/dist/{cluster-bootstrap-DPzVy3_K.js.map → cluster-bootstrap-DXbnIdm8.js.map} +1 -1
  38. package/dist/{completion-verifier-Cy38EpGE.d.ts → completion-verifier-C7wipJOK.d.ts} +2 -2
  39. package/dist/{completion-verifier-Cy38EpGE.d.ts.map → completion-verifier-C7wipJOK.d.ts.map} +1 -1
  40. package/dist/contract/index.d.ts +14 -12
  41. package/dist/contract/index.js +13 -11
  42. package/dist/contract/index.js.map +1 -1
  43. package/dist/{decision-point-C46p-p9v.js → decision-point-CfqtnGop.js} +3 -3
  44. package/dist/{decision-point-C46p-p9v.js.map → decision-point-CfqtnGop.js.map} +1 -1
  45. package/dist/{default-registry-xoX0PMCb.d.ts → default-registry-Bskl2HzV.d.ts} +6 -6
  46. package/dist/{default-registry-xoX0PMCb.d.ts.map → default-registry-Bskl2HzV.d.ts.map} +1 -1
  47. package/dist/{default-registry-BWFPtmuI.js → default-registry-kps1SOaD.js} +2 -2
  48. package/dist/{default-registry-BWFPtmuI.js.map → default-registry-kps1SOaD.js.map} +1 -1
  49. package/dist/define-agent-eval-Dnh4jXLX.js +96 -0
  50. package/dist/define-agent-eval-Dnh4jXLX.js.map +1 -0
  51. package/dist/define-agent-eval-tu3anVlk.d.ts +52 -0
  52. package/dist/define-agent-eval-tu3anVlk.d.ts.map +1 -0
  53. package/dist/diagnosis/index.d.ts +3 -3
  54. package/dist/diagnosis/index.js +1 -1
  55. package/dist/{dspy-rlm-engine-r7YpKLhS.js → dspy-rlm-engine-DQbPdT_o.js} +2 -2
  56. package/dist/{dspy-rlm-engine-r7YpKLhS.js.map → dspy-rlm-engine-DQbPdT_o.js.map} +1 -1
  57. package/dist/{emitter-BjW3NnX-.js → emitter-xN9wGTVw.js} +9 -2
  58. package/dist/{emitter-BjW3NnX-.js.map → emitter-xN9wGTVw.js.map} +1 -1
  59. package/dist/{eval-campaign-Cyk-tkLh.js → eval-campaign-DswSn7Gm.js} +3 -3
  60. package/dist/{eval-campaign-Cyk-tkLh.js.map → eval-campaign-DswSn7Gm.js.map} +1 -1
  61. package/dist/{evaluation-X5E22NQK.d.ts → evaluation-C4-tf3Z_.d.ts} +4 -4
  62. package/dist/{evaluation-X5E22NQK.d.ts.map → evaluation-C4-tf3Z_.d.ts.map} +1 -1
  63. package/dist/evaluation.d.ts +1 -1
  64. package/dist/{exact-types-DjuabhUV.d.ts → exact-types-CUsSMW3n.d.ts} +2 -2
  65. package/dist/{exact-types-DjuabhUV.d.ts.map → exact-types-CUsSMW3n.d.ts.map} +1 -1
  66. package/dist/{execution-insight-CE20Bxq0.d.ts → execution-insight-YihQrSqd.d.ts} +2 -2
  67. package/dist/{execution-insight-CE20Bxq0.d.ts.map → execution-insight-YihQrSqd.d.ts.map} +1 -1
  68. package/dist/experiment/index.d.ts +5 -5
  69. package/dist/experiment/index.js +10 -184
  70. package/dist/experiment/index.js.map +1 -1
  71. package/dist/{external-optimizer-process-4QdcF7Kd.js → external-optimizer-process-CVi1x2nb.js} +2 -2
  72. package/dist/{external-optimizer-process-4QdcF7Kd.js.map → external-optimizer-process-CVi1x2nb.js.map} +1 -1
  73. package/dist/{external-optimizer-subprocess-BW0ZWUUr.js → external-optimizer-subprocess-mV-2swJI.js} +3 -357
  74. package/dist/external-optimizer-subprocess-mV-2swJI.js.map +1 -0
  75. package/dist/{feedback-trajectory-BMkJezPc.d.ts → feedback-trajectory-D7hgL6y5.d.ts} +3 -3
  76. package/dist/{feedback-trajectory-BMkJezPc.d.ts.map → feedback-trajectory-D7hgL6y5.d.ts.map} +1 -1
  77. package/dist/finding-scope-B_As3F_v.js +359 -0
  78. package/dist/finding-scope-B_As3F_v.js.map +1 -0
  79. package/dist/{findings-store-DV8WA5nD.js → findings-store-CZy5kUDo.js} +2 -2
  80. package/dist/{findings-store-DV8WA5nD.js.map → findings-store-CZy5kUDo.js.map} +1 -1
  81. package/dist/fuzz.js +1 -1
  82. package/dist/{index-DKpMyD_Z.d.ts → index--vDCtdaj.d.ts} +7 -7
  83. package/dist/{index-DKpMyD_Z.d.ts.map → index--vDCtdaj.d.ts.map} +1 -1
  84. package/dist/{index-CKjqN9_U.d.ts → index-CIqYaySd.d.ts} +89 -3
  85. package/dist/index-CIqYaySd.d.ts.map +1 -0
  86. package/dist/{index-C6TG1LwA.d.ts → index-Cav3abKy.d.ts} +256 -131
  87. package/dist/index-Cav3abKy.d.ts.map +1 -0
  88. package/dist/{index-DAFZRMlF.d.ts → index-DmMHTDjT.d.ts} +10 -8
  89. package/dist/index-DmMHTDjT.d.ts.map +1 -0
  90. package/dist/{index-BqAPIToS.d.ts → index-Er8TKQ3q.d.ts} +3 -3
  91. package/dist/{index-BqAPIToS.d.ts.map → index-Er8TKQ3q.d.ts.map} +1 -1
  92. package/dist/{index-xEM_SoCl.d.ts → index-moZnazVj.d.ts} +22 -20
  93. package/dist/index-moZnazVj.d.ts.map +1 -0
  94. package/dist/index.d.ts +33 -29
  95. package/dist/index.js +23 -20
  96. package/dist/index.js.map +1 -1
  97. package/dist/{analyze-runs-xjKBBqIB.d.ts → insight-report-DYofCMLx.d.ts} +4 -64
  98. package/dist/insight-report-DYofCMLx.d.ts.map +1 -0
  99. package/dist/{integrity-B9320cw1.d.ts → integrity-BJGstiCh.d.ts} +2 -2
  100. package/dist/{integrity-B9320cw1.d.ts.map → integrity-BJGstiCh.d.ts.map} +1 -1
  101. package/dist/{judge-gate-DqlzOBOm.js → judge-gate-DANg5FLq.js} +2 -2
  102. package/dist/{judge-gate-DqlzOBOm.js.map → judge-gate-DANg5FLq.js.map} +1 -1
  103. package/dist/llm-judge-DFoSy4Qn.js +476 -0
  104. package/dist/llm-judge-DFoSy4Qn.js.map +1 -0
  105. package/dist/{matrix-CqZSpwgN.d.ts → matrix-OgdWQBQa.d.ts} +6 -2
  106. package/dist/matrix-OgdWQBQa.d.ts.map +1 -0
  107. package/dist/measure-validity-plan-B1_qYlsk.d.ts +143 -0
  108. package/dist/measure-validity-plan-B1_qYlsk.d.ts.map +1 -0
  109. package/dist/measure-validity-plan-t0YQRzJQ.js +117 -0
  110. package/dist/measure-validity-plan-t0YQRzJQ.js.map +1 -0
  111. package/dist/meta-eval/index.d.ts +5 -3
  112. package/dist/meta-eval/index.js +664 -14
  113. package/dist/meta-eval/index.js.map +1 -1
  114. package/dist/multishot/golden/index.d.ts +1 -1
  115. package/dist/multishot/index.d.ts +458 -4
  116. package/dist/multishot/index.d.ts.map +1 -1
  117. package/dist/multishot/index.js +926 -47
  118. package/dist/multishot/index.js.map +1 -1
  119. package/dist/openapi.json +1 -1
  120. package/dist/{llm-judge-DQJTQx01.js → optimization-method-D4CpYsVA.js} +18 -482
  121. package/dist/optimization-method-D4CpYsVA.js.map +1 -0
  122. package/dist/{outcome-observations-DL3CC8w1.js → outcome-observations-DEh8_V_P.js} +31 -6
  123. package/dist/outcome-observations-DEh8_V_P.js.map +1 -0
  124. package/dist/outcome-store-CHtuvstd.d.ts +56 -0
  125. package/dist/outcome-store-CHtuvstd.d.ts.map +1 -0
  126. package/dist/{paired-arms-DZhH3FGu.js → paired-arms-B6EXnI47.js} +3 -2
  127. package/dist/{paired-arms-DZhH3FGu.js.map → paired-arms-B6EXnI47.js.map} +1 -1
  128. package/dist/{paired-promotion-decision-ChHBuuHV.d.ts → paired-promotion-decision-DuvRdnsW.d.ts} +2 -2
  129. package/dist/{paired-promotion-decision-ChHBuuHV.d.ts.map → paired-promotion-decision-DuvRdnsW.d.ts.map} +1 -1
  130. package/dist/{paired-promotion-decision-Dn3-jaq4.js → paired-promotion-decision-xYe881cD.js} +3 -2
  131. package/dist/{paired-promotion-decision-Dn3-jaq4.js.map → paired-promotion-decision-xYe881cD.js.map} +1 -1
  132. package/dist/{paired-promotion-power-BlzXdgMD.js → paired-promotion-power-DirShsIs.js} +3 -3
  133. package/dist/{paired-promotion-power-BlzXdgMD.js.map → paired-promotion-power-DirShsIs.js.map} +1 -1
  134. package/dist/paired-tests-CXcD_B80.js +688 -0
  135. package/dist/paired-tests-CXcD_B80.js.map +1 -0
  136. package/dist/pareto-DIVE5D0T.js +81 -0
  137. package/dist/pareto-DIVE5D0T.js.map +1 -0
  138. package/dist/pipelines/index.d.ts +2 -1
  139. package/dist/pipelines/index.d.ts.map +1 -1
  140. package/dist/pipelines/index.js +1 -1
  141. package/dist/{sequential-BphITa5b.js → power-DTg6u30w.js} +181 -4
  142. package/dist/power-DTg6u30w.js.map +1 -0
  143. package/dist/{prime-protocol-Cv6_47rh.d.ts → prime-protocol-Jm2pWh--.d.ts} +2 -2
  144. package/dist/{prime-protocol-Cv6_47rh.d.ts.map → prime-protocol-Jm2pWh--.d.ts.map} +1 -1
  145. package/dist/{promotion-gate-CGkxh36r.d.ts → promotion-gate-BXgcORnM.d.ts} +2 -2
  146. package/dist/{promotion-gate-CGkxh36r.d.ts.map → promotion-gate-BXgcORnM.d.ts.map} +1 -1
  147. package/dist/{promotion-policy-CxDIh-9p.js → promotion-policy-Z5E-C32U.js} +4 -4
  148. package/dist/{promotion-policy-CxDIh-9p.js.map → promotion-policy-Z5E-C32U.js.map} +1 -1
  149. package/dist/{proposal-findings-DedMih-u.js → proposal-findings-CfRFCFXS.js} +2 -2
  150. package/dist/{proposal-findings-DedMih-u.js.map → proposal-findings-CfRFCFXS.js.map} +1 -1
  151. package/dist/{registry-CIjC6SdV.d.ts → registry-DEZDECdr.d.ts} +4 -4
  152. package/dist/{registry-CIjC6SdV.d.ts.map → registry-DEZDECdr.d.ts.map} +1 -1
  153. package/dist/{release-confidence-BLHOMK5Q.js → release-confidence-Cndq1hwi.js} +2 -2
  154. package/dist/{release-confidence-BLHOMK5Q.js.map → release-confidence-Cndq1hwi.js.map} +1 -1
  155. package/dist/reporting.d.ts +5 -5
  156. package/dist/reporting.js +6 -5
  157. package/dist/reporting.js.map +1 -1
  158. package/dist/{research-report-D6XIK0eK.d.ts → research-report-CIgUe1lv.d.ts} +2 -2
  159. package/dist/{research-report-D6XIK0eK.d.ts.map → research-report-CIgUe1lv.d.ts.map} +1 -1
  160. package/dist/{researcher---DhHG4J.d.ts → researcher-CY_byuZl.d.ts} +4 -4
  161. package/dist/{researcher---DhHG4J.d.ts.map → researcher-CY_byuZl.d.ts.map} +1 -1
  162. package/dist/{reward-hacking-DKAflk2c.js → reward-hacking-DMTm1OBd.js} +2 -2
  163. package/dist/{reward-hacking-DKAflk2c.js.map → reward-hacking-DMTm1OBd.js.map} +1 -1
  164. package/dist/rl.d.ts +9 -8
  165. package/dist/rl.d.ts.map +1 -1
  166. package/dist/rl.js +11 -10
  167. package/dist/rl.js.map +1 -1
  168. package/dist/rollout/index.d.ts +2 -2
  169. package/dist/{rubric-predictive-validity--6z0q8s6.js → rubric-predictive-validity-BXJ92Jp_.js} +3 -9
  170. package/dist/rubric-predictive-validity-BXJ92Jp_.js.map +1 -0
  171. package/dist/{rubric-predictive-validity-C9wc7f_D.d.ts → rubric-predictive-validity-DH94_0Q1.d.ts} +3 -56
  172. package/dist/rubric-predictive-validity-DH94_0Q1.d.ts.map +1 -0
  173. package/dist/{run-improvement-loop-BfwOUudy.d.ts → run-improvement-loop-BaPDVbW8.d.ts} +384 -11
  174. package/dist/run-improvement-loop-BaPDVbW8.d.ts.map +1 -0
  175. package/dist/{run-record-Bqg0NZ_e.js → run-record-CuO8ErrI.js} +3 -2
  176. package/dist/run-record-CuO8ErrI.js.map +1 -0
  177. package/dist/{runtime-rollouts-drQynu3t.js → runtime-rollouts-Vv-BAqmq.js} +2 -2
  178. package/dist/{runtime-rollouts-drQynu3t.js.map → runtime-rollouts-Vv-BAqmq.js.map} +1 -1
  179. package/dist/search/index.d.ts +2 -2
  180. package/dist/search/index.js +2 -2
  181. package/dist/{search-kernel-DJq9bUDU.d.ts → search-kernel-BzTeb89p.d.ts} +3 -3
  182. package/dist/{search-kernel-DJq9bUDU.d.ts.map → search-kernel-BzTeb89p.d.ts.map} +1 -1
  183. package/dist/{pareto-Bg75Gajo.js → search-kernel-DOPW08Hx.js} +6 -88
  184. package/dist/search-kernel-DOPW08Hx.js.map +1 -0
  185. package/dist/{search-summary-B1x1Vmzh.js → search-summary-CYOHZAAy.js} +4 -4
  186. package/dist/{search-summary-B1x1Vmzh.js.map → search-summary-CYOHZAAy.js.map} +1 -1
  187. package/dist/{define-agent-eval-B6uE3gNu.js → self-improve-CIFqccHV.js} +8 -97
  188. package/dist/self-improve-CIFqccHV.js.map +1 -0
  189. package/dist/{define-agent-eval-Cjc0wWnO.d.ts → self-improve-DY8ZY4lY.d.ts} +8 -54
  190. package/dist/self-improve-DY8ZY4lY.d.ts.map +1 -0
  191. package/dist/{sequential-BhbTSxpt.d.ts → sequential-B9iROM1S.d.ts} +2 -2
  192. package/dist/{sequential-BhbTSxpt.d.ts.map → sequential-B9iROM1S.d.ts.map} +1 -1
  193. package/dist/{sequential-ux_XrjBf.js → sequential-tZjGysXY.js} +3 -3
  194. package/dist/{sequential-ux_XrjBf.js.map → sequential-tZjGysXY.js.map} +1 -1
  195. package/dist/{skillopt-optimization-method-D_swD0Cy.js → skillopt-optimization-method-CbHBkopM.js} +9 -8
  196. package/dist/{skillopt-optimization-method-D_swD0Cy.js.map → skillopt-optimization-method-CbHBkopM.js.map} +1 -1
  197. package/dist/{statistical-heldout-CaS4T-43.js → statistical-heldout-C7Jjo5nP.js} +3 -3
  198. package/dist/{statistical-heldout-CaS4T-43.js.map → statistical-heldout-C7Jjo5nP.js.map} +1 -1
  199. package/dist/{statistics-DSidA5I2.js → statistics-BPl13X3G.js} +208 -700
  200. package/dist/statistics-BPl13X3G.js.map +1 -0
  201. package/dist/statistics.d.ts +3 -3
  202. package/dist/statistics.js +3 -2
  203. package/dist/{store-tool-spans-DniaFwjM.d.ts → store-tool-spans-Dq8r0PbJ.d.ts} +4 -4
  204. package/dist/{store-tool-spans-DniaFwjM.d.ts.map → store-tool-spans-Dq8r0PbJ.d.ts.map} +1 -1
  205. package/dist/{summary-report-CI4J6gxU.js → summary-report-DzbnK81K.js} +15 -7
  206. package/dist/summary-report-DzbnK81K.js.map +1 -0
  207. package/dist/summary-report-figures-CJHygLgw.d.ts.map +1 -1
  208. package/dist/supervisor-run/index.d.ts +1 -1
  209. package/dist/supervisor-run/index.js +1 -1
  210. package/dist/{systemone-DzY-2Zri.d.ts → systemone-BuSZTI88.d.ts} +8 -7
  211. package/dist/systemone-BuSZTI88.d.ts.map +1 -0
  212. package/dist/{systemone-review-CXecR_m-.d.ts → systemone-review-mlfxWdLz.d.ts} +2 -2
  213. package/dist/{systemone-review-CXecR_m-.d.ts.map → systemone-review-mlfxWdLz.d.ts.map} +1 -1
  214. package/dist/systemone.d.ts +3 -3
  215. package/dist/systemone.js +1 -1
  216. package/dist/{tool-groups-DF6OqhoG.d.ts → tool-groups-PNDX8fd-.d.ts} +2 -2
  217. package/dist/tool-groups-PNDX8fd-.d.ts.map +1 -0
  218. package/dist/{tool-waste-u7JJ_BlE.js → tool-waste-783VCo1y.js} +3 -2
  219. package/dist/{tool-waste-u7JJ_BlE.js.map → tool-waste-783VCo1y.js.map} +1 -1
  220. package/dist/tool-waste-B01AMpID.d.ts +121 -0
  221. package/dist/tool-waste-B01AMpID.d.ts.map +1 -0
  222. package/dist/{trace-questions-DO8y3J-E.d.ts → trace-questions-DBtr4jWi.d.ts} +2 -2
  223. package/dist/{trace-questions-DO8y3J-E.d.ts.map → trace-questions-DBtr4jWi.d.ts.map} +1 -1
  224. package/dist/trace-repair/index.d.ts +1 -1
  225. package/dist/trace-repair/index.js +1 -1
  226. package/dist/traces.d.ts +4 -4
  227. package/dist/traces.js +1 -1
  228. package/dist/trajectory-B3o6Ald_.d.ts +100 -0
  229. package/dist/trajectory-B3o6Ald_.d.ts.map +1 -0
  230. package/dist/trajectory-replay/index.js +1 -1
  231. package/dist/{tree-DQMlcNFI.js → tree-CtlQQL1w.js} +6 -4
  232. package/dist/{tree-DQMlcNFI.js.map → tree-CtlQQL1w.js.map} +1 -1
  233. package/dist/{types-BMSDkS8l.d.ts → types-BO948H-U.d.ts} +7 -4
  234. package/dist/{types-BMSDkS8l.d.ts.map → types-BO948H-U.d.ts.map} +1 -1
  235. package/dist/{types-fuOwNq1C.d.ts → types-CKNAzCSA.d.ts} +3 -2
  236. package/dist/types-CKNAzCSA.d.ts.map +1 -0
  237. package/dist/{types-BLv2Ngla.d.ts → types-D-WF1KM3.d.ts} +2 -2
  238. package/dist/{types-BLv2Ngla.d.ts.map → types-D-WF1KM3.d.ts.map} +1 -1
  239. package/dist/types-DK4vNv5q.js.map +1 -1
  240. package/dist/{types-D_PfKC59.d.ts → types-DbeIGi73.d.ts} +2 -2
  241. package/dist/{types-D_PfKC59.d.ts.map → types-DbeIGi73.d.ts.map} +1 -1
  242. package/dist/wire/index.d.ts +4 -4
  243. package/dist/world/index.d.ts +529 -0
  244. package/dist/world/index.d.ts.map +1 -0
  245. package/dist/world/index.js +1356 -0
  246. package/dist/world/index.js.map +1 -0
  247. package/docs/campaign-proposers.md +7 -0
  248. package/docs/concepts.md +2 -0
  249. package/docs/design/statistics-decisions.md +31 -0
  250. package/docs/eval-surface-map.md +4 -1
  251. package/docs/feature-guide.md +2 -0
  252. package/docs/multi-turn-optimization.md +80 -0
  253. package/docs/outcome-validity.md +69 -0
  254. package/docs/public-api.md +86 -31
  255. package/docs/world.md +104 -0
  256. package/package.json +6 -1
  257. package/dist/analyze-runs-xjKBBqIB.d.ts.map +0 -1
  258. package/dist/benchmark-command-DkBMUDwy.js.map +0 -1
  259. package/dist/campaign-DfSWSreo.js.map +0 -1
  260. package/dist/cluster-Bj90LK-1.d.ts.map +0 -1
  261. package/dist/define-agent-eval-B6uE3gNu.js.map +0 -1
  262. package/dist/define-agent-eval-Cjc0wWnO.d.ts.map +0 -1
  263. package/dist/external-optimizer-subprocess-BW0ZWUUr.js.map +0 -1
  264. package/dist/index-C6TG1LwA.d.ts.map +0 -1
  265. package/dist/index-CKjqN9_U.d.ts.map +0 -1
  266. package/dist/index-DAFZRMlF.d.ts.map +0 -1
  267. package/dist/index-xEM_SoCl.d.ts.map +0 -1
  268. package/dist/interval-CWyxqDpE.d.ts +0 -43
  269. package/dist/interval-CWyxqDpE.d.ts.map +0 -1
  270. package/dist/llm-judge-DQJTQx01.js.map +0 -1
  271. package/dist/matrix-CqZSpwgN.d.ts.map +0 -1
  272. package/dist/outcome-observations-DL3CC8w1.js.map +0 -1
  273. package/dist/pareto-Bg75Gajo.js.map +0 -1
  274. package/dist/rubric-predictive-validity--6z0q8s6.js.map +0 -1
  275. package/dist/rubric-predictive-validity-C9wc7f_D.d.ts.map +0 -1
  276. package/dist/run-improvement-loop-BfwOUudy.d.ts.map +0 -1
  277. package/dist/run-record-Bqg0NZ_e.js.map +0 -1
  278. package/dist/sequential-BphITa5b.js.map +0 -1
  279. package/dist/statistics-DSidA5I2.js.map +0 -1
  280. package/dist/summary-report-CI4J6gxU.js.map +0 -1
  281. package/dist/systemone-DzY-2Zri.d.ts.map +0 -1
  282. package/dist/tool-groups-DF6OqhoG.d.ts.map +0 -1
  283. package/dist/tool-waste-CIhtU1ad.d.ts +0 -217
  284. package/dist/tool-waste-CIhtU1ad.d.ts.map +0 -1
  285. package/dist/types-fuOwNq1C.d.ts.map +0 -1
@@ -0,0 +1,529 @@
1
+ import { n as ChatClient, v as LlmMessage } from "../chat-client-uQNXGuO4.js";
2
+ /** One thing the agent can spend on. Every field is public. */
3
+ interface WorldLever {
4
+ id: string;
5
+ label: string;
6
+ /** What the lever is and what is publicly known about it. */
7
+ description: string;
8
+ /** Suggested starting daily spend. */
9
+ startRate: number;
10
+ /** Recommended ceiling on daily spend; exceeding it is allowed. */
11
+ guidelineRate: number;
12
+ /** Hard ceiling on daily spend; the world refuses more. */
13
+ maxRate: number;
14
+ /** Spending on this lever needs a granted approval that covers the rate. */
15
+ requiresApproval: boolean;
16
+ /** Public estimate of when results from a day's spend usually land. */
17
+ resultLagDays: {
18
+ from: number;
19
+ to: number;
20
+ };
21
+ }
22
+ /** A slow, lasting penalty for driving a lever too hard. */
23
+ interface WorldLeverWear {
24
+ /** Spend over any 7 days above which the lever's health falls. */
25
+ weeklyLoad: number;
26
+ /** Health lost per day at twice the weekly load; scales with the excess. */
27
+ damagePerDay: number;
28
+ /** Health regained per day at or under the weekly load. */
29
+ recoveryPerDay: number;
30
+ /** Health never falls below this share of full yield. */
31
+ floor: number;
32
+ }
33
+ /** The hidden truth about one lever. */
34
+ interface WorldLeverKey {
35
+ /** Outcomes per unit of spend at full ramp and health, under saturation. */
36
+ yield: number;
37
+ /** Days between a day's spend and each outcome it produces landing. */
38
+ delayDays: {
39
+ min: number;
40
+ median: number;
41
+ max: number;
42
+ };
43
+ /** Sigma of the lognormal shock one week applies to a lever's yield. */
44
+ weeklyNoise: number;
45
+ /** Consecutive days of spend needed to reach full yield; 1 is immediate.
46
+ * A day without spend starts the ramp over. */
47
+ rampDays: number;
48
+ /** Daily spend above which each extra unit earns `marginalYield` of the yield. */
49
+ saturationRate: number;
50
+ marginalYield: number;
51
+ wear?: WorldLeverWear;
52
+ }
53
+ /** What the scorer treats as enough evidence to kill or scale a lever. */
54
+ interface WorldEvidenceRule {
55
+ /** A decision is supported once this many outcomes have landed, or once the
56
+ * lever's matured spend is large enough that a break-even lever would have
57
+ * landed this many. */
58
+ minOutcomes: number;
59
+ /** A day's net change by at least this factor is a decision the rule
60
+ * judges: a raise is a scale-up, a cut, to zero included, is a cut. */
61
+ scaleFactor: number;
62
+ }
63
+ /** Everything hidden from the agent. */
64
+ interface WorldScenarioKey {
65
+ levers: Readonly<Record<string, WorldLeverKey>>;
66
+ evidence: WorldEvidenceRule;
67
+ }
68
+ interface WorldScenario {
69
+ id: string;
70
+ title: string;
71
+ /** What the agent is told at the start of every session. */
72
+ brief: string;
73
+ /** Calendar date of day 0, as YYYY-MM-DD. */
74
+ startDate: string;
75
+ /** The episode ends at the start of this day; only outcomes landed before it count. */
76
+ horizonDays: number;
77
+ /** Days between one agent session and the next. */
78
+ sessionEveryDays: number;
79
+ /** Starting budget. Unspent budget keeps its face value in the end state. */
80
+ budget: number;
81
+ /** Unit the budget and every rate are stated in. */
82
+ currency: string;
83
+ /** The thing levers produce and what one of them is worth in budget units. */
84
+ outcome: {
85
+ unit: string;
86
+ value: number;
87
+ };
88
+ /** Days between an approval request and its decision. */
89
+ approvalDelayDays: number;
90
+ levers: readonly WorldLever[];
91
+ key: WorldScenarioKey;
92
+ }
93
+ type WorldApprovalStatus = 'pending' | 'granted';
94
+ interface WorldApproval {
95
+ id: string;
96
+ lever: string;
97
+ /** Highest daily rate the approval covers. */
98
+ maxDailyRate: number;
99
+ reason: string;
100
+ requestedDay: number;
101
+ decisionDay: number;
102
+ status: WorldApprovalStatus;
103
+ }
104
+ /** The agent-side inputs that change the world. Replaying them in order on
105
+ * the same scenario and seed reproduces the episode's end state. */
106
+ type WorldAction = {
107
+ kind: 'set_rate';
108
+ day: number;
109
+ lever: string;
110
+ dailyRate: number;
111
+ } | {
112
+ kind: 'spend_once';
113
+ day: number;
114
+ lever: string;
115
+ amount: number;
116
+ } | {
117
+ kind: 'request_approval';
118
+ day: number;
119
+ lever: string;
120
+ maxDailyRate: number;
121
+ reason: string;
122
+ };
123
+ type WorldRefusal = 'unknown_tool' | 'invalid_input' | 'unknown_lever' | 'over_max_rate' | 'approval_missing' | 'insufficient_budget' | 'episode_over' | 'call_limit' | 'session_closed';
124
+ interface WorldToolResult {
125
+ ok: boolean;
126
+ /** Set when the world refused the call. */
127
+ refused?: WorldRefusal;
128
+ /** Plain-language account of the refusal or the effect. */
129
+ message: string;
130
+ /** Public data returned by the call. */
131
+ data?: unknown;
132
+ }
133
+ /** One tool call, as the decision log keeps it. */
134
+ interface WorldLogEntry {
135
+ seq: number;
136
+ session: number;
137
+ day: number;
138
+ tool: string;
139
+ input: unknown;
140
+ result: WorldToolResult;
141
+ /** The state change the call made, when it made one. */
142
+ action?: WorldAction;
143
+ /** What the world knew about the lever when a rate was changed. Built from
144
+ * hidden state, so it lives in the log and never in a tool result. */
145
+ evidence?: WorldDecisionEvidence;
146
+ }
147
+ interface WorldDecisionEvidence {
148
+ lever: string;
149
+ /** The lever's standing rate when the day began, before this session's changes. */
150
+ rateAtDayStart: number;
151
+ /** Outcomes landed by the decision. */
152
+ landed: number;
153
+ /** Spend old enough that every outcome it produced had landed by the decision. */
154
+ maturedSpend: number;
155
+ }
156
+ interface WorldToolDefinition {
157
+ name: string;
158
+ description: string;
159
+ /** JSON Schema of the input object. */
160
+ inputSchema: Record<string, unknown>;
161
+ }
162
+ /** What one agent session receives. Nothing else crosses between sessions. */
163
+ interface WorldSession {
164
+ index: number;
165
+ day: number;
166
+ /** Calendar date of `day`, as YYYY-MM-DD. */
167
+ date: string;
168
+ daysLeft: number;
169
+ brief: string;
170
+ /** The notes the agent saved in earlier sessions, by key. */
171
+ notes: Readonly<Record<string, string>>;
172
+ tools: readonly WorldToolDefinition[];
173
+ call(name: string, input?: unknown): WorldToolResult;
174
+ }
175
+ /** An agent is whatever acts in one session. A model-backed agent runs its
176
+ * tool loop here; a scripted policy calls the same tools from code. */
177
+ type WorldAgent = (session: WorldSession) => Promise<void> | void;
178
+ interface WorldLeverEndState {
179
+ rate: number;
180
+ health: number;
181
+ spent: number;
182
+ /** Outcomes landed before the horizon. */
183
+ landed: number;
184
+ /** Outcomes paid for that had not landed by the horizon. */
185
+ inFlight: number;
186
+ /** Days the trailing 7-day spend sat above the lever's weekly load. */
187
+ overdriveDays: number;
188
+ }
189
+ interface WorldEndState {
190
+ day: number;
191
+ budgetLeft: number;
192
+ spent: number;
193
+ outcomes: number;
194
+ /** `budgetLeft + outcomes * outcome.value`: what the episode is scored on. */
195
+ value: number;
196
+ levers: Record<string, WorldLeverEndState>;
197
+ approvals: WorldApproval[];
198
+ }
199
+ interface WorldPrematureDecision {
200
+ seq: number;
201
+ day: number;
202
+ lever: string;
203
+ kind: 'cut' | 'scale';
204
+ landed: number;
205
+ maturedSpend: number;
206
+ }
207
+ interface WorldDecisionCost {
208
+ seq: number;
209
+ day: number;
210
+ action: WorldAction;
211
+ /** End value with this one action removed, minus the end value with it, on
212
+ * the episode's own seed. Positive: the episode would have ended higher
213
+ * without the action. Luck is in this number. */
214
+ realizedCost: number;
215
+ /** The same difference averaged over fresh noise seeds, every other action
216
+ * held fixed: what the action cost in expectation. */
217
+ expectedCost: number;
218
+ }
219
+ interface WorldScore {
220
+ /** End-state value: budget left plus the value of landed outcomes. */
221
+ value: number;
222
+ /** `value` minus the starting budget, which is what doing nothing scores. */
223
+ gain: number;
224
+ /** Refused calls by reason. `approval_missing` is an attempted spend with no
225
+ * recorded approval. */
226
+ refused: Partial<Record<WorldRefusal, number>>;
227
+ /** Deep cuts and scale-ups made before the lever's evidence met the scenario's rule. */
228
+ prematureDecisions: WorldPrematureDecision[];
229
+ /** Lever-days spent above a wear threshold. */
230
+ overdriveDays: number;
231
+ /** Value of outcomes paid for that landed too late to count. */
232
+ lateValue: number;
233
+ /** Sessions in which the agent threw. They are a service failure, not a
234
+ * choice: an episode with any is not a clean measurement of the agent. */
235
+ failedSessions: number;
236
+ }
237
+ interface WorldSessionRecord {
238
+ index: number;
239
+ day: number;
240
+ calls: number;
241
+ /** Message of an error the agent threw; the episode continued without it. */
242
+ error?: string;
243
+ }
244
+ interface WorldEpisode {
245
+ scenarioId: string;
246
+ /** Digest of the whole scenario, key included. */
247
+ scenarioDigest: string;
248
+ seed: number;
249
+ sessions: WorldSessionRecord[];
250
+ log: WorldLogEntry[];
251
+ /** Notes held when the episode ended. */
252
+ notes: Record<string, string>;
253
+ end: WorldEndState;
254
+ score: WorldScore;
255
+ }
256
+ /** What one model call returned, without its text. */
257
+ interface ChatWorldResponse {
258
+ /** Model id the provider echoed; null when it echoed none. */
259
+ servedModel: string | null;
260
+ finishReason: string | null;
261
+ toolCalls: number;
262
+ contentChars: number;
263
+ completionTokens: number;
264
+ reasoningTokens: number | null;
265
+ }
266
+ interface ChatWorldSessionTranscript {
267
+ session: number;
268
+ day: number;
269
+ /** Every message of the session, the system prompt included. */
270
+ messages: LlmMessage[];
271
+ /** One entry per model call, empty completions included. */
272
+ responses: ChatWorldResponse[];
273
+ /** `answered`: the model replied in words without a tool call. `turn_limit`:
274
+ * it was cut off. `empty`: it kept returning neither words nor a tool call.
275
+ * `failed`: a model call threw, and the driver records the session's error. */
276
+ ended: 'answered' | 'turn_limit' | 'empty' | 'failed';
277
+ }
278
+ interface ChatWorldAgentOptions {
279
+ client: ChatClient;
280
+ /** Default: the client's default model. */
281
+ model?: string;
282
+ /** System prompt of the agent under test. */
283
+ systemPrompt: string;
284
+ /** The first user message of a session. Default: `worldSessionPrompt`. A
285
+ * binding that adds its product's own per-turn context wraps that. */
286
+ sessionPrompt?: (session: WorldSession) => string;
287
+ /** Model calls one session may make. Default 16. */
288
+ maxTurnsPerSession?: number;
289
+ /** Times in a row an empty completion, neither words nor a tool call, is
290
+ * asked again before the session ends as `empty`. Default 2. */
291
+ emptyRetries?: number;
292
+ maxTokens?: number;
293
+ temperature?: number;
294
+ /** Called with each finished session's transcript. */
295
+ onSession?: (transcript: ChatWorldSessionTranscript) => Promise<void> | void;
296
+ }
297
+ /** The first user message of a session: all the agent is given. */
298
+ export declare function worldSessionPrompt(session: WorldSession): string;
299
+ /** An agent that plays each session as a tool loop against a chat model. */
300
+ export declare function chatWorldAgent(opts: ChatWorldAgentOptions): WorldAgent;
301
+ interface WorldPolicyRow {
302
+ policy: string;
303
+ /** End value per seed, in seed order. */
304
+ values: number[];
305
+ mean: number;
306
+ /** Sample standard deviation across seeds. */
307
+ stddev: number;
308
+ min: number;
309
+ max: number;
310
+ /** Mean end value minus the starting budget. */
311
+ meanGain: number;
312
+ /** Refused spends with no recorded approval, summed over seeds. */
313
+ unapprovedSpendAttempts: number;
314
+ /** Deep cuts and scale-ups made before the evidence rule was met, summed over seeds. */
315
+ prematureDecisions: number;
316
+ /** Sessions in which the policy threw, summed over seeds. */
317
+ failedSessions: number;
318
+ }
319
+ interface WorldPolicyContrast {
320
+ better: string;
321
+ worse: string;
322
+ /** `better - worse` end value per seed. */
323
+ differences: number[];
324
+ meanDifference: number;
325
+ minDifference: number;
326
+ /** Seeds on which `better` ended higher. */
327
+ wins: number;
328
+ /** The larger of the two policies' standard deviations across seeds. */
329
+ seedNoise: number;
330
+ /** Exact one-sided sign test on the per-seed differences. */
331
+ signTestP: number;
332
+ /** `better` ended higher on every seed, by more than twice the seed noise on
333
+ * average, and neither policy had a failed session. */
334
+ beyondNoise: boolean;
335
+ }
336
+ interface CompareWorldPoliciesOptions {
337
+ scenario: WorldScenario;
338
+ /** At least two distinct seeds; every policy runs every seed. */
339
+ seeds: readonly number[];
340
+ /** Policy name to a factory called once per episode with its seed. */
341
+ policies: Readonly<Record<string, (seed: number) => WorldAgent>>;
342
+ /** `[better, worse]` pairs to test. */
343
+ contrasts?: ReadonlyArray<readonly [string, string]>;
344
+ }
345
+ interface WorldPolicyComparison {
346
+ scenarioId: string;
347
+ scenarioDigest: string;
348
+ seeds: number[];
349
+ rows: WorldPolicyRow[];
350
+ contrasts: WorldPolicyContrast[];
351
+ episodes: Record<string, WorldEpisode[]>;
352
+ }
353
+ /** Run every policy on every seed and report each row and each contrast. */
354
+ export declare function compareWorldPolicies(opts: CompareWorldPoliciesOptions): Promise<WorldPolicyComparison>;
355
+ /** A world's whole state as plain data, for a driver whose sessions run in
356
+ * separate processes. */
357
+ interface WorldSnapshot {
358
+ scenarioDigest: string;
359
+ seed: number;
360
+ state: unknown;
361
+ }
362
+ type WorldActionOutcome = {
363
+ ok: true;
364
+ message: string;
365
+ action: WorldAction;
366
+ evidence?: WorldDecisionEvidence;
367
+ } | {
368
+ ok: false;
369
+ refused: WorldRefusal;
370
+ message: string;
371
+ };
372
+ interface WorldStatusLever extends WorldLever {
373
+ dailyRate: number;
374
+ /** Highest daily rate a granted approval covers; absent when none is needed. */
375
+ approvedMaxRate?: number;
376
+ spent: number;
377
+ outcomes: number;
378
+ }
379
+ interface WorldStatus {
380
+ day: number;
381
+ date: string;
382
+ daysLeft: number;
383
+ horizonDays: number;
384
+ sessionEveryDays: number;
385
+ budgetLeft: number;
386
+ spent: number;
387
+ outcomes: number;
388
+ outcomeUnit: string;
389
+ outcomeValue: number;
390
+ currency: string;
391
+ approvalDelayDays: number;
392
+ levers: WorldStatusLever[];
393
+ approvals: WorldApproval[];
394
+ }
395
+ interface WorldResultRow {
396
+ lever: string;
397
+ fromDay: number;
398
+ /** Last day of the period, inclusive. */
399
+ toDay: number;
400
+ fromDate: string;
401
+ spend: number;
402
+ /** Outcomes that landed in the period, whenever their spend was made. */
403
+ outcomes: number;
404
+ }
405
+ export declare class World {
406
+ readonly scenario: WorldScenario;
407
+ readonly seed: number;
408
+ readonly scenarioDigest: string;
409
+ private state;
410
+ constructor(scenario: WorldScenario, seed: number);
411
+ /** Rebuild a world from `snapshot()`. The scenario and seed must be the ones it was taken from. */
412
+ static restore(scenario: WorldScenario, snapshot: WorldSnapshot): World;
413
+ snapshot(): WorldSnapshot;
414
+ get day(): number;
415
+ get daysLeft(): number;
416
+ get over(): boolean;
417
+ /** Calendar date of a day, by default today. */
418
+ date(day?: number): string;
419
+ /** The simulated instant: midnight UTC at the start of today. */
420
+ now(): Date;
421
+ /** Run the world forward. Time moves only here, and stops at the horizon. */
422
+ advance(days: number): void;
423
+ get notes(): Readonly<Record<string, string>>;
424
+ status(): WorldStatus;
425
+ /** Spend and landed outcomes for every finished day, by week or by day. */
426
+ results(opts?: {
427
+ lever?: string;
428
+ by?: 'week' | 'day';
429
+ }): WorldResultRow[];
430
+ /** Set a lever's standing daily spend, from today on. */
431
+ setRate(leverId: string, dailyRate: number): WorldActionOutcome;
432
+ /** Add a one-off spend to today, on top of the lever's standing rate. */
433
+ spendOnce(leverId: string, amount: number): WorldActionOutcome;
434
+ /** Ask for approval to run a gated lever up to a daily rate. The decision
435
+ * lands `approvalDelayDays` later. */
436
+ requestApproval(leverId: string, maxDailyRate: number, reason: string): WorldActionOutcome;
437
+ /** Keep a note for later sessions. Notes are the only memory the world carries. */
438
+ saveNote(key: string, text: string): {
439
+ ok: true;
440
+ } | {
441
+ ok: false;
442
+ message: string;
443
+ };
444
+ /** Apply a recorded action. Used to replay an episode. */
445
+ apply(action: WorldAction): WorldActionOutcome;
446
+ /** How much a lever's results can say so far. Hidden from the agent. */
447
+ evidence(leverId: string): WorldDecisionEvidence;
448
+ end(): WorldEndState;
449
+ private onceToday;
450
+ /** `plannedDailySpend` is everything the lever would spend today: its
451
+ * standing rate and its one-offs. A change that only lowers spend passes
452
+ * the cap and the approval check. */
453
+ private spendCheck;
454
+ private decideApprovals;
455
+ private stream;
456
+ private weekShock;
457
+ private simulateDay;
458
+ }
459
+ interface RunWorldEpisodeOptions {
460
+ scenario: WorldScenario;
461
+ seed: number;
462
+ agent: WorldAgent;
463
+ /** Tool calls one session may make before the world refuses more. Default 64. */
464
+ maxCallsPerSession?: number;
465
+ /** Called after each session, before the clock moves. */
466
+ onSession?: (record: WorldSessionRecord, world: World) => Promise<void> | void;
467
+ }
468
+ /** Run one agent through one episode of a scenario. */
469
+ export declare function runWorldEpisode(opts: RunWorldEpisodeOptions): Promise<WorldEpisode>;
470
+ export declare const launchQuarterScenario: WorldScenario;
471
+ interface EvidencePolicyOptions {
472
+ /** `matured` sets every landed outcome against the spend old enough to have
473
+ * landed, by the lever's public lag. `latest` sets the last period's landed
474
+ * outcomes against the last period's spend. */
475
+ evidence: 'matured' | 'latest';
476
+ /** Days of counted spend a lever needs before it is judged. */
477
+ minEvidenceDays: number;
478
+ /** Standard errors the return must clear break-even by, in either
479
+ * direction, before the lever is killed or scaled. Zero acts on the point
480
+ * estimate. */
481
+ confidence: number;
482
+ /** Factor a winning lever's rate is raised by. */
483
+ scaleStep: number;
484
+ /** The rate a lever is never raised above. */
485
+ ceiling: 'guideline' | 'max';
486
+ /** Stop a lever once its results would land after the horizon, and never
487
+ * plan more spend than the budget left. */
488
+ planAhead: boolean;
489
+ }
490
+ /** Never acts. Its end value is the starting budget: the floor every policy is read against. */
491
+ export declare const doNothingPolicy: WorldAgent;
492
+ /** Sets random rates across the whole allowed range each session. */
493
+ export declare function randomPolicy(seed: number): WorldAgent;
494
+ /** Starts every lever at its suggested rate, then kills and scales on the
495
+ * evidence rule its options state. */
496
+ export declare function evidencePolicy(opts: EvidencePolicyOptions): WorldAgent;
497
+ /** Waits for a lever's matured results to clear break-even by two standard
498
+ * errors, moves in small steps, stays inside the guidelines and plans to the
499
+ * horizon. */
500
+ export declare const patientPolicy: WorldAgent;
501
+ /** Acts on last period's number at the first review: kills what is under
502
+ * break-even, doubles what is over it, up to the hard cap. */
503
+ export declare const impulsivePolicy: WorldAgent;
504
+ /** Starts every lever at its suggested rate and never changes it. Patience
505
+ * has to beat this too, or the scenario only rewards sitting still. */
506
+ export declare const setAndHoldPolicy: WorldAgent;
507
+ /** A reference that reads the key. Each lever is two tiers of spend, up to
508
+ * its saturation or wear limit and above it; tiers are funded best return
509
+ * first until the budget is planned, and a tier stops once its results would
510
+ * land too late to pay. It is a strong informed plan, not a proven optimum. */
511
+ export declare function informedPolicy(scenario: WorldScenario): WorldAgent;
512
+ /** The accepted actions of a log, in the order they were taken. */
513
+ export declare function worldActions(log: readonly WorldLogEntry[]): WorldAction[];
514
+ /** Re-run a scenario and seed under a list of actions. An action the world
515
+ * refuses on replay is skipped, as it would have been live. */
516
+ export declare function replayWorld(scenario: WorldScenario, seed: number, actions: readonly WorldAction[]): WorldEndState;
517
+ interface WorldDecisionCostOptions {
518
+ /** Fresh noise seeds the expected cost is averaged over. Default 20. */
519
+ noiseSeeds?: number;
520
+ }
521
+ /** Price every accepted action of an episode by replaying the episode without
522
+ * it, costliest in expectation first. The other actions stay as recorded, so
523
+ * a removed rate change leaves the lever at its previous rate until the next
524
+ * recorded change. */
525
+ export declare function worldDecisionCosts(scenario: WorldScenario, episode: Pick<WorldEpisode, 'seed' | 'log'>, opts?: WorldDecisionCostOptions): WorldDecisionCost[];
526
+ /** Tool definitions for a scenario. Built from its public half only. */
527
+ export declare function worldTools(scenario: WorldScenario): WorldToolDefinition[];
528
+ export type { ChatWorldAgentOptions, ChatWorldResponse, ChatWorldSessionTranscript, CompareWorldPoliciesOptions, EvidencePolicyOptions, RunWorldEpisodeOptions, WorldAction, WorldActionOutcome, WorldAgent, WorldApproval, WorldApprovalStatus, WorldDecisionCost, WorldDecisionCostOptions, WorldDecisionEvidence, WorldEndState, WorldEpisode, WorldEvidenceRule, WorldLever, WorldLeverEndState, WorldLeverKey, WorldLeverWear, WorldLogEntry, WorldPolicyComparison, WorldPolicyContrast, WorldPolicyRow, WorldPrematureDecision, WorldRefusal, WorldResultRow, WorldScenario, WorldScenarioKey, WorldScore, WorldSession, WorldSessionRecord, WorldSnapshot, WorldStatus, WorldStatusLever, WorldToolDefinition, WorldToolResult };
529
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/world/types.ts","../../src/world/chat-agent.ts","../../src/world/compare.ts","../../src/world/world.ts","../../src/world/episode.ts","../../src/world/launch-quarter.ts","../../src/world/policies.ts","../../src/world/score.ts","../../src/world/tools.ts"],"mappings":";;UASiB;EACf;EACA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;IAAiB;IAAc;;;;UAIhB;;EAEf;;EAEA;;EAEA;;EAEA;;;UAIe;;EAEf;;EAEA;IAAa;IAAa;IAAgB;;;EAE1C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