@tangle-network/agent-eval 1.0.29 → 1.0.31

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 (292) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +1 -0
  3. package/dist/adapters/http.d.ts +2 -2
  4. package/dist/{agent-profile-BF1WLMco.d.ts → agent-profile-BpLyM2kL.d.ts} +2 -2
  5. package/dist/{agent-profile-BF1WLMco.d.ts.map → agent-profile-BpLyM2kL.d.ts.map} +1 -1
  6. package/dist/{agent-profile-cell-3kYxUsK2.d.ts → agent-profile-cell-BTsrta0H.d.ts} +2 -9
  7. package/dist/agent-profile-cell-BTsrta0H.d.ts.map +1 -0
  8. package/dist/agent-profile-cell-CT5JYueM.js.map +1 -1
  9. package/dist/analyst/index.d.ts +13 -13
  10. package/dist/analyst/index.js +11 -11
  11. package/dist/{analyze-runs-BaziIw93.d.ts → analyze-runs-DfUDLaCk.d.ts} +6 -16
  12. package/dist/analyze-runs-DfUDLaCk.d.ts.map +1 -0
  13. package/dist/{analyze-runs-BCSHzqna.js → analyze-runs-YagfYgfx.js} +5 -5
  14. package/dist/{analyze-runs-BCSHzqna.js.map → analyze-runs-YagfYgfx.js.map} +1 -1
  15. package/dist/app-grade/index.d.ts +3 -5
  16. package/dist/app-grade/index.d.ts.map +1 -1
  17. package/dist/app-grade/index.js +2 -6
  18. package/dist/app-grade/index.js.map +1 -1
  19. package/dist/{benchmark-command-DRAHkn4D.js → benchmark-command-wpWa71ul.js} +11 -10
  20. package/dist/benchmark-command-wpWa71ul.js.map +1 -0
  21. package/dist/benchmarks/index.d.ts +7 -6
  22. package/dist/benchmarks/index.d.ts.map +1 -1
  23. package/dist/benchmarks/index.js +13 -5
  24. package/dist/benchmarks/index.js.map +1 -1
  25. package/dist/builder-eval/index.js +1 -1
  26. package/dist/{calibration-Cf-wpqqO.js → calibration-DE2WQmlX.js} +2 -2
  27. package/dist/{calibration-Cf-wpqqO.js.map → calibration-DE2WQmlX.js.map} +1 -1
  28. package/dist/campaign/index.d.ts +8 -8
  29. package/dist/campaign/index.js +14 -14
  30. package/dist/{campaign-Cqz2vk2p.js → campaign-CtdTo5em.js} +15 -15
  31. package/dist/{campaign-Cqz2vk2p.js.map → campaign-CtdTo5em.js.map} +1 -1
  32. package/dist/{campaign-evidence-CVNKiK0q.js → campaign-evidence-BS2-OSFN.js} +4 -4
  33. package/dist/{campaign-evidence-CVNKiK0q.js.map → campaign-evidence-BS2-OSFN.js.map} +1 -1
  34. package/dist/cli.js +9 -8
  35. package/dist/cli.js.map +1 -1
  36. package/dist/{cluster-bootstrap-B0MTOBRU.js → cluster-bootstrap-ClPYIWoX.js} +2 -2
  37. package/dist/{cluster-bootstrap-B0MTOBRU.js.map → cluster-bootstrap-ClPYIWoX.js.map} +1 -1
  38. package/dist/contract/index.d.ts +12 -11
  39. package/dist/contract/index.js +56 -34
  40. package/dist/contract/index.js.map +1 -1
  41. package/dist/{decision-point-CQOczIIH.js → decision-point-DvX1Z4Ue.js} +3 -3
  42. package/dist/{decision-point-CQOczIIH.js.map → decision-point-DvX1Z4Ue.js.map} +1 -1
  43. package/dist/{default-registry-DoIBhuS-.d.ts → default-registry-2Ziw-0sL.d.ts} +7 -7
  44. package/dist/{default-registry-DoIBhuS-.d.ts.map → default-registry-2Ziw-0sL.d.ts.map} +1 -1
  45. package/dist/{default-registry-D-xd7KxV.js → default-registry-DeiYGNKW.js} +3 -3
  46. package/dist/{default-registry-D-xd7KxV.js.map → default-registry-DeiYGNKW.js.map} +1 -1
  47. package/dist/{define-agent-eval-Be2Ser8j.d.ts → define-agent-eval-DmCV1TZo.d.ts} +7 -7
  48. package/dist/{define-agent-eval-Be2Ser8j.d.ts.map → define-agent-eval-DmCV1TZo.d.ts.map} +1 -1
  49. package/dist/{define-agent-eval-BLVewqJm.js → define-agent-eval-GgvRcpNL.js} +7 -7
  50. package/dist/{define-agent-eval-BLVewqJm.js.map → define-agent-eval-GgvRcpNL.js.map} +1 -1
  51. package/dist/diagnosis/index.d.ts +4 -3
  52. package/dist/diagnosis/index.d.ts.map +1 -1
  53. package/dist/diagnosis/index.js +1 -1
  54. package/dist/{dspy-rlm-engine-BS_jxE0P.js → dspy-rlm-engine-DJ_4E-PM.js} +3 -3
  55. package/dist/{dspy-rlm-engine-BS_jxE0P.js.map → dspy-rlm-engine-DJ_4E-PM.js.map} +1 -1
  56. package/dist/{engine-CPBhCLJR.d.ts → engine-yaSDTpEa.d.ts} +2 -2
  57. package/dist/{engine-CPBhCLJR.d.ts.map → engine-yaSDTpEa.d.ts.map} +1 -1
  58. package/dist/{eval-campaign-DpkToY_w.js → eval-campaign-bpSlwr6t.js} +2 -2
  59. package/dist/{eval-campaign-DpkToY_w.js.map → eval-campaign-bpSlwr6t.js.map} +1 -1
  60. package/dist/{evaluation-BjRgUyst.d.ts → evaluation-BQQ2ga5W.d.ts} +4 -4
  61. package/dist/{evaluation-BjRgUyst.d.ts.map → evaluation-BQQ2ga5W.d.ts.map} +1 -1
  62. package/dist/evaluation.d.ts +1 -1
  63. package/dist/{exact-types-DEnrf7NX.d.ts → exact-types-xrjBO9sb.d.ts} +2 -2
  64. package/dist/{exact-types-DEnrf7NX.d.ts.map → exact-types-xrjBO9sb.d.ts.map} +1 -1
  65. package/dist/execution-insight-B-My58JW.d.ts +14 -0
  66. package/dist/execution-insight-B-My58JW.d.ts.map +1 -0
  67. package/dist/experiment/index.d.ts +3 -3
  68. package/dist/experiment/index.js +7 -7
  69. package/dist/{exporters-BKZLt1Px.js → exporters-CfKvJlti.js} +70 -43
  70. package/dist/exporters-CfKvJlti.js.map +1 -0
  71. package/dist/{external-optimizer-process-m9xln7zN.js → external-optimizer-process-jiq4CZD0.js} +2 -2
  72. package/dist/{external-optimizer-process-m9xln7zN.js.map → external-optimizer-process-jiq4CZD0.js.map} +1 -1
  73. package/dist/{external-optimizer-subprocess-GO6s84Ov.js → external-optimizer-subprocess-DUOcOqly.js} +2 -2
  74. package/dist/{external-optimizer-subprocess-GO6s84Ov.js.map → external-optimizer-subprocess-DUOcOqly.js.map} +1 -1
  75. package/dist/failure-cluster-OvKQ0BTq.d.ts +32 -0
  76. package/dist/failure-cluster-OvKQ0BTq.d.ts.map +1 -0
  77. package/dist/{failure-cluster-DOoa7CBg.d.ts → failure-taxonomy-C_SQZ_SJ.d.ts} +2 -30
  78. package/dist/failure-taxonomy-C_SQZ_SJ.d.ts.map +1 -0
  79. package/dist/{feedback-trajectory-DxkG5EPi.d.ts → feedback-trajectory-BbwTH49m.d.ts} +3 -3
  80. package/dist/{feedback-trajectory-DxkG5EPi.d.ts.map → feedback-trajectory-BbwTH49m.d.ts.map} +1 -1
  81. package/dist/{findings-store-CTy71Lnr.js → findings-store-B7JpmgJx.js} +3 -3
  82. package/dist/{findings-store-CTy71Lnr.js.map → findings-store-B7JpmgJx.js.map} +1 -1
  83. package/dist/fuzz.js +1 -1
  84. package/dist/harness-session-lines-hAxOvmtP.js +205 -0
  85. package/dist/harness-session-lines-hAxOvmtP.js.map +1 -0
  86. package/dist/{hf-dataset-Bv114tzB.js → hf-dataset-Cc81I0vQ.js} +65 -141
  87. package/dist/hf-dataset-Cc81I0vQ.js.map +1 -0
  88. package/dist/hosted/index.js +1 -1
  89. package/dist/{index-BI9ecONy.d.ts → index-8hbrQwdR.d.ts} +26 -11
  90. package/dist/index-8hbrQwdR.d.ts.map +1 -0
  91. package/dist/{index-AjfEHHA8.d.ts → index-BFpDeCuS.d.ts} +7 -7
  92. package/dist/{index-AjfEHHA8.d.ts.map → index-BFpDeCuS.d.ts.map} +1 -1
  93. package/dist/{index-DHWFYUVW.d.ts → index-Bcy00QoN.d.ts} +87 -144
  94. package/dist/index-Bcy00QoN.d.ts.map +1 -0
  95. package/dist/{index-BriU7rfL.d.ts → index-BfxYoHGF.d.ts} +226 -6
  96. package/dist/index-BfxYoHGF.d.ts.map +1 -0
  97. package/dist/{index-D-0mg-eu.d.ts → index-BnqugnsM.d.ts} +31 -11
  98. package/dist/index-BnqugnsM.d.ts.map +1 -0
  99. package/dist/{index-C8a9Dyan.d.ts → index-BwJtNdaj.d.ts} +21 -24
  100. package/dist/index-BwJtNdaj.d.ts.map +1 -0
  101. package/dist/{index-VSN1IZQp.d.ts → index-Yec_iihg.d.ts} +4 -3
  102. package/dist/index-Yec_iihg.d.ts.map +1 -0
  103. package/dist/index.d.ts +34 -31
  104. package/dist/index.js +21 -21
  105. package/dist/{integrity-BHM4voOx.js → integrity-BSs9dgKW.js} +3 -3
  106. package/dist/{integrity-BHM4voOx.js.map → integrity-BSs9dgKW.js.map} +1 -1
  107. package/dist/{journal-CTX5uK-n.js → journal-F3msN9OD.js} +5 -399
  108. package/dist/journal-F3msN9OD.js.map +1 -0
  109. package/dist/journal-file-AekB57Er.js +400 -0
  110. package/dist/journal-file-AekB57Er.js.map +1 -0
  111. package/dist/judge-calibration-DnrbQaXI.d.ts +144 -0
  112. package/dist/judge-calibration-DnrbQaXI.d.ts.map +1 -0
  113. package/dist/{judge-gate-DsoI5tx7.js → judge-gate-MP1rHOB4.js} +2 -2
  114. package/dist/{judge-gate-DsoI5tx7.js.map → judge-gate-MP1rHOB4.js.map} +1 -1
  115. package/dist/ledger-core/index.js +3 -2
  116. package/dist/{ledger-core-24IxvmVY.js → ledger-core-COxrkkZi.js} +2 -2
  117. package/dist/{ledger-core-24IxvmVY.js.map → ledger-core-COxrkkZi.js.map} +1 -1
  118. package/dist/{llm-judge-DzAT7Wka.js → llm-judge-Cc33WVHX.js} +102 -27
  119. package/dist/llm-judge-Cc33WVHX.js.map +1 -0
  120. package/dist/{matrix-DdniPG_M.d.ts → matrix-D0fEU0fq.d.ts} +2 -2
  121. package/dist/{matrix-DdniPG_M.d.ts.map → matrix-D0fEU0fq.d.ts.map} +1 -1
  122. package/dist/meta-eval/index.d.ts +3 -3
  123. package/dist/meta-eval/index.js +6 -6
  124. package/dist/{mint-Ck92efNo.js → mint-g8elU5yW.js} +11 -35
  125. package/dist/mint-g8elU5yW.js.map +1 -0
  126. package/dist/multishot/golden/index.d.ts +1 -1
  127. package/dist/multishot/index.d.ts +2 -2
  128. package/dist/openapi.json +1 -1
  129. package/dist/{outcome-observations-DPkH-LHQ.js → outcome-observations-YFFmdGGW.js} +2 -2
  130. package/dist/{outcome-observations-DPkH-LHQ.js.map → outcome-observations-YFFmdGGW.js.map} +1 -1
  131. package/dist/{paired-arms-DjMEtYI9.js → paired-arms-CMSTbLqX.js} +2 -2
  132. package/dist/{paired-arms-DjMEtYI9.js.map → paired-arms-CMSTbLqX.js.map} +1 -1
  133. package/dist/{paired-promotion-decision-DawN2o0G.d.ts → paired-promotion-decision-BBSxTo-h.d.ts} +2 -2
  134. package/dist/{paired-promotion-decision-DawN2o0G.d.ts.map → paired-promotion-decision-BBSxTo-h.d.ts.map} +1 -1
  135. package/dist/{paired-promotion-decision-Bi9__RQS.js → paired-promotion-decision-BoWHWL1i.js} +2 -2
  136. package/dist/{paired-promotion-decision-Bi9__RQS.js.map → paired-promotion-decision-BoWHWL1i.js.map} +1 -1
  137. package/dist/{paired-promotion-power-D03cUj9E.js → paired-promotion-power-BXH3gzvs.js} +3 -3
  138. package/dist/{paired-promotion-power-D03cUj9E.js.map → paired-promotion-power-BXH3gzvs.js.map} +1 -1
  139. package/dist/{pareto-UzjB3ZBk.js → pareto-B226QGVD.js} +54 -47
  140. package/dist/pareto-B226QGVD.js.map +1 -0
  141. package/dist/pipelines/index.d.ts +1 -1
  142. package/dist/pipelines/index.js +1 -1
  143. package/dist/{prime-protocol-RUPtoYiI.d.ts → prime-protocol-3aHqoxSH.d.ts} +2 -2
  144. package/dist/{prime-protocol-RUPtoYiI.d.ts.map → prime-protocol-3aHqoxSH.d.ts.map} +1 -1
  145. package/dist/profile-cell.d.ts +2 -2
  146. package/dist/{promotion-gate-DG_PSJx_.d.ts → promotion-gate-D-ffRHFQ.d.ts} +3 -3
  147. package/dist/{promotion-gate-DG_PSJx_.d.ts.map → promotion-gate-D-ffRHFQ.d.ts.map} +1 -1
  148. package/dist/{promotion-policy-DCgftbnd.js → promotion-policy-CfgRPGx0.js} +4 -4
  149. package/dist/{promotion-policy-DCgftbnd.js.map → promotion-policy-CfgRPGx0.js.map} +1 -1
  150. package/dist/{proposal-findings-CS6LoGGp.js → proposal-findings-BFtn6Lcx.js} +2 -2
  151. package/dist/{proposal-findings-CS6LoGGp.js.map → proposal-findings-BFtn6Lcx.js.map} +1 -1
  152. package/dist/{registry-BqoX13FD.d.ts → registry-x5n4GeBx.d.ts} +3 -3
  153. package/dist/{registry-BqoX13FD.d.ts.map → registry-x5n4GeBx.d.ts.map} +1 -1
  154. package/dist/{release-confidence-B4Xxdpmn.js → release-confidence-baM0TqCx.js} +2 -2
  155. package/dist/{release-confidence-B4Xxdpmn.js.map → release-confidence-baM0TqCx.js.map} +1 -1
  156. package/dist/reporting.d.ts +13 -6
  157. package/dist/reporting.d.ts.map +1 -1
  158. package/dist/reporting.js +5 -5
  159. package/dist/{summary-report-9kwI6jFQ.d.ts → research-report-CUbXuGX-.d.ts} +6 -121
  160. package/dist/research-report-CUbXuGX-.d.ts.map +1 -0
  161. package/dist/{researcher-BuojS14L.d.ts → researcher-D6D7q9uQ.d.ts} +4 -4
  162. package/dist/{researcher-BuojS14L.d.ts.map → researcher-D6D7q9uQ.d.ts.map} +1 -1
  163. package/dist/{reward-hacking-BYiDFbIl.js → reward-hacking-DNiHskry.js} +2 -2
  164. package/dist/{reward-hacking-BYiDFbIl.js.map → reward-hacking-DNiHskry.js.map} +1 -1
  165. package/dist/{reward-hacking-CIdVwVe4.d.ts → reward-hacking-_CAip56v.d.ts} +2 -2
  166. package/dist/{reward-hacking-CIdVwVe4.d.ts.map → reward-hacking-_CAip56v.d.ts.map} +1 -1
  167. package/dist/rl.d.ts +35 -17
  168. package/dist/rl.d.ts.map +1 -1
  169. package/dist/rl.js +116 -24
  170. package/dist/rl.js.map +1 -1
  171. package/dist/rollout/index.d.ts +5 -6
  172. package/dist/rollout/index.js +7 -6
  173. package/dist/{rollout-B86tqluQ.js → rollout-CCh4eSB3.js} +6 -5
  174. package/dist/{rollout-B86tqluQ.js.map → rollout-CCh4eSB3.js.map} +1 -1
  175. package/dist/{rollout-nodes-DhSPJ2X7.js → rollout-nodes-DzmHlPAC.js} +2 -2
  176. package/dist/rollout-nodes-DzmHlPAC.js.map +1 -0
  177. package/dist/{rubric-predictive-validity-Bbi88Aut.d.ts → rubric-predictive-validity-BTN3nNhC.d.ts} +2 -2
  178. package/dist/{rubric-predictive-validity-Bbi88Aut.d.ts.map → rubric-predictive-validity-BTN3nNhC.d.ts.map} +1 -1
  179. package/dist/{rubric-predictive-validity-DL7gJ51F.js → rubric-predictive-validity-Cln7r56F.js} +2 -2
  180. package/dist/{rubric-predictive-validity-DL7gJ51F.js.map → rubric-predictive-validity-Cln7r56F.js.map} +1 -1
  181. package/dist/{run-record-DTTx9Ktr.js → run-record-CbrxTcCO.js} +2 -2
  182. package/dist/{run-record-DTTx9Ktr.js.map → run-record-CbrxTcCO.js.map} +1 -1
  183. package/dist/{run-record-pBlhZizT.d.ts → run-record-hti3ETmO.d.ts} +2 -2
  184. package/dist/{run-record-pBlhZizT.d.ts.map → run-record-hti3ETmO.d.ts.map} +1 -1
  185. package/dist/{runtime-rollouts-BNrm5nC_.js → runtime-rollouts-eO9qpGE9.js} +269 -55
  186. package/dist/{runtime-rollouts-BNrm5nC_.js.map → runtime-rollouts-eO9qpGE9.js.map} +1 -1
  187. package/dist/{schema-PDKQ_iNE.d.ts → schema-BTTzvMnn.d.ts} +24 -5
  188. package/dist/schema-BTTzvMnn.d.ts.map +1 -0
  189. package/dist/{schema-ChIZfnqY.js → schema-b18jtzZw.js} +56 -3
  190. package/dist/schema-b18jtzZw.js.map +1 -0
  191. package/dist/search/index.d.ts +2 -2
  192. package/dist/search/index.js +2 -2
  193. package/dist/{search-kernel-C4XnLKIW.d.ts → search-kernel-IpyhPDQd.d.ts} +287 -276
  194. package/dist/search-kernel-IpyhPDQd.d.ts.map +1 -0
  195. package/dist/{search-ledger-9liYyZf5.js → search-ledger-D_ENQh0d.js} +4 -4
  196. package/dist/{search-ledger-9liYyZf5.js.map → search-ledger-D_ENQh0d.js.map} +1 -1
  197. package/dist/{search-ledger-file-BhOdgYIt.js → search-ledger-file-J8Xh9pU_.js} +3 -3
  198. package/dist/{search-ledger-file-BhOdgYIt.js.map → search-ledger-file-J8Xh9pU_.js.map} +1 -1
  199. package/dist/{search-shipper-B6tMNx1I.js → search-shipper-BUf7s92U.js} +3 -3
  200. package/dist/{search-shipper-B6tMNx1I.js.map → search-shipper-BUf7s92U.js.map} +1 -1
  201. package/dist/{search-summary-CISbbxyr.js → search-summary-B2RpvkkQ.js} +5 -5
  202. package/dist/{search-summary-CISbbxyr.js.map → search-summary-B2RpvkkQ.js.map} +1 -1
  203. package/dist/{sequential-1-T2oi1_.d.ts → sequential-B-zx24n_.d.ts} +2 -2
  204. package/dist/{sequential-1-T2oi1_.d.ts.map → sequential-B-zx24n_.d.ts.map} +1 -1
  205. package/dist/{sequential-Ko7T-zvu.js → sequential-C6k0Wrb7.js} +3 -3
  206. package/dist/{sequential-Ko7T-zvu.js.map → sequential-C6k0Wrb7.js.map} +1 -1
  207. package/dist/{sequential-9TVb5Nu5.js → sequential-pLr7Ukad.js} +3 -3
  208. package/dist/{sequential-9TVb5Nu5.js.map → sequential-pLr7Ukad.js.map} +1 -1
  209. package/dist/{single-run-lock-CUj2tjxT.js → single-run-lock-BSKsoeQF.js} +2 -2
  210. package/dist/{single-run-lock-CUj2tjxT.js.map → single-run-lock-BSKsoeQF.js.map} +1 -1
  211. package/dist/{skillopt-optimization-method-BtX7xXDd.js → skillopt-optimization-method-BnR2yh-a.js} +11 -11
  212. package/dist/{skillopt-optimization-method-BtX7xXDd.js.map → skillopt-optimization-method-BnR2yh-a.js.map} +1 -1
  213. package/dist/{statistical-heldout-Bx1QUDNy.d.ts → statistical-heldout-AvgLVFp6.d.ts} +6 -6
  214. package/dist/{statistical-heldout-Bx1QUDNy.d.ts.map → statistical-heldout-AvgLVFp6.d.ts.map} +1 -1
  215. package/dist/{statistical-heldout-DLO4Ebos.js → statistical-heldout-BvcAVtof.js} +3 -3
  216. package/dist/{statistical-heldout-DLO4Ebos.js.map → statistical-heldout-BvcAVtof.js.map} +1 -1
  217. package/dist/{statistics-CvvC-MPv.js → statistics-CHs0jlsY.js} +184 -2
  218. package/dist/statistics-CHs0jlsY.js.map +1 -0
  219. package/dist/statistics.d.ts +2 -2
  220. package/dist/statistics.js +2 -2
  221. package/dist/{store-tool-spans-kCDPEwjL.d.ts → store-tool-spans-Bm0-YhHG.d.ts} +5 -5
  222. package/dist/{store-tool-spans-kCDPEwjL.d.ts.map → store-tool-spans-Bm0-YhHG.d.ts.map} +1 -1
  223. package/dist/{summary-report-BEhqoxrA.js → summary-report-BgdIlM_w.js} +3 -3
  224. package/dist/{summary-report-BEhqoxrA.js.map → summary-report-BgdIlM_w.js.map} +1 -1
  225. package/dist/summary-report-figures-BoFCoiOP.d.ts +112 -0
  226. package/dist/summary-report-figures-BoFCoiOP.d.ts.map +1 -0
  227. package/dist/supervisor-run/index.d.ts +32 -8
  228. package/dist/supervisor-run/index.d.ts.map +1 -1
  229. package/dist/supervisor-run/index.js +3 -3
  230. package/dist/{systemone-CSwi1hp-.d.ts → systemone-DPVj7a1g.d.ts} +7 -7
  231. package/dist/{systemone-CSwi1hp-.d.ts.map → systemone-DPVj7a1g.d.ts.map} +1 -1
  232. package/dist/{systemone-review-WpWosn3a.d.ts → systemone-review-CrnsTRav.d.ts} +2 -2
  233. package/dist/{systemone-review-WpWosn3a.d.ts.map → systemone-review-CrnsTRav.d.ts.map} +1 -1
  234. package/dist/systemone.d.ts +3 -3
  235. package/dist/systemone.js +1 -1
  236. package/dist/{tool-groups-Bcasvncd.d.ts → tool-groups-5pgmtTmE.d.ts} +3 -3
  237. package/dist/tool-groups-5pgmtTmE.d.ts.map +1 -0
  238. package/dist/{tool-waste-BqSmmPUz.js → tool-waste-DWSohyd3.js} +2 -2
  239. package/dist/{tool-waste-BqSmmPUz.js.map → tool-waste-DWSohyd3.js.map} +1 -1
  240. package/dist/{trace-questions-DI42jXPj.d.ts → trace-questions-ETZDn5ax.d.ts} +3 -3
  241. package/dist/{trace-questions-DI42jXPj.d.ts.map → trace-questions-ETZDn5ax.d.ts.map} +1 -1
  242. package/dist/trace-repair/index.d.ts +2 -2
  243. package/dist/trace-repair/index.js +1 -1
  244. package/dist/traces.d.ts +4 -4
  245. package/dist/training-admission-xaDOlQ_U.d.ts +31 -0
  246. package/dist/training-admission-xaDOlQ_U.d.ts.map +1 -0
  247. package/dist/{tree-D2cNtu9m.js → tree-DA_WI1aV.js} +5 -5
  248. package/dist/{tree-D2cNtu9m.js.map → tree-DA_WI1aV.js.map} +1 -1
  249. package/dist/{types-DbGSC2No.d.ts → types-Dtt11Ppr.d.ts} +2 -2
  250. package/dist/{types-DbGSC2No.d.ts.map → types-Dtt11Ppr.d.ts.map} +1 -1
  251. package/dist/{types-CLGrB4Sv.d.ts → types-_dfu6Ox2.d.ts} +4 -4
  252. package/dist/{types-CLGrB4Sv.d.ts.map → types-_dfu6Ox2.d.ts.map} +1 -1
  253. package/dist/{types-ByrbgALT.d.ts → types-qJwFZTqa.d.ts} +7 -6
  254. package/dist/types-qJwFZTqa.d.ts.map +1 -0
  255. package/dist/{types-CEgIBy0W.d.ts → types-rf0yhJmW.d.ts} +3 -3
  256. package/dist/{types-CEgIBy0W.d.ts.map → types-rf0yhJmW.d.ts.map} +1 -1
  257. package/dist/wire/index.d.ts +1 -1
  258. package/docs/adopt-stack.md +2 -0
  259. package/docs/concepts.md +4 -1
  260. package/docs/design/statistics-decisions.md +17 -0
  261. package/docs/rollout.md +124 -4
  262. package/docs/search-ledger.md +18 -1
  263. package/docs/trace-analysis.md +11 -3
  264. package/package.json +3 -3
  265. package/dist/agent-profile-cell-3kYxUsK2.d.ts.map +0 -1
  266. package/dist/analyze-runs-BaziIw93.d.ts.map +0 -1
  267. package/dist/benchmark-command-DRAHkn4D.js.map +0 -1
  268. package/dist/exporters-BKZLt1Px.js.map +0 -1
  269. package/dist/exporters-dQKYD_Zo.d.ts +0 -159
  270. package/dist/exporters-dQKYD_Zo.d.ts.map +0 -1
  271. package/dist/failure-cluster-DOoa7CBg.d.ts.map +0 -1
  272. package/dist/hf-dataset-Bv114tzB.js.map +0 -1
  273. package/dist/index-BI9ecONy.d.ts.map +0 -1
  274. package/dist/index-BriU7rfL.d.ts.map +0 -1
  275. package/dist/index-C8a9Dyan.d.ts.map +0 -1
  276. package/dist/index-D-0mg-eu.d.ts.map +0 -1
  277. package/dist/index-DHWFYUVW.d.ts.map +0 -1
  278. package/dist/index-VSN1IZQp.d.ts.map +0 -1
  279. package/dist/journal-CTX5uK-n.js.map +0 -1
  280. package/dist/llm-judge-DzAT7Wka.js.map +0 -1
  281. package/dist/mint-Ck92efNo.js.map +0 -1
  282. package/dist/pareto-UzjB3ZBk.js.map +0 -1
  283. package/dist/reward-ap_R9mCH.d.ts +0 -53
  284. package/dist/reward-ap_R9mCH.d.ts.map +0 -1
  285. package/dist/rollout-nodes-DhSPJ2X7.js.map +0 -1
  286. package/dist/schema-ChIZfnqY.js.map +0 -1
  287. package/dist/schema-PDKQ_iNE.d.ts.map +0 -1
  288. package/dist/search-kernel-C4XnLKIW.d.ts.map +0 -1
  289. package/dist/statistics-CvvC-MPv.js.map +0 -1
  290. package/dist/summary-report-9kwI6jFQ.d.ts.map +0 -1
  291. package/dist/tool-groups-Bcasvncd.d.ts.map +0 -1
  292. package/dist/types-ByrbgALT.d.ts.map +0 -1
package/dist/rl.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { s as ValidationError } from "./errors-DeEEV9Vx.js";
2
- import { a as hashCanonical, i as compareCodeUnits } from "./canonical-CicJlINA.js";
2
+ import { a as hashCanonical, i as compareCodeUnits, o as jsonDocument } from "./canonical-CicJlINA.js";
3
3
  import { o as runTaskScore } from "./run-record-DmX_ESC5.js";
4
- import { a as wilcoxonSignedRank, ft as medianInPlace, p as pairedBootstrap } from "./statistics-CvvC-MPv.js";
5
- import { t as decidePairedPromotion } from "./paired-promotion-decision-Bi9__RQS.js";
6
- import { n as campaignCellToRunRecord } from "./run-record-DTTx9Ktr.js";
7
- import { n as extractVerifiableReward, r as extractVerifiableRewardsFromRecords, t as detectRewardHacking } from "./reward-hacking-BYiDFbIl.js";
8
- import { t as runEvalCampaign } from "./eval-campaign-DpkToY_w.js";
9
- import { s as assertRewardGate } from "./schema-ChIZfnqY.js";
10
- import { n as isTrainingLineEligible, o as toSftRows, t as isSplitEligible } from "./exporters-BKZLt1Px.js";
11
- import { t as mintRolloutRows } from "./mint-Ck92efNo.js";
12
- import { t as evaluateInterimReleaseConfidence } from "./sequential-Ko7T-zvu.js";
13
- import { o as validateOutcomeMetricSpecifications, t as assertUniqueObservationIds } from "./outcome-observations-DPkH-LHQ.js";
4
+ import { _t as medianInPlace, u as wilcoxonSignedRank, v as pairedBootstrap } from "./statistics-CHs0jlsY.js";
5
+ import { t as decidePairedPromotion } from "./paired-promotion-decision-BoWHWL1i.js";
6
+ import { n as campaignCellToRunRecord } from "./run-record-CbrxTcCO.js";
7
+ import { n as extractVerifiableReward, r as extractVerifiableRewardsFromRecords, t as detectRewardHacking } from "./reward-hacking-DNiHskry.js";
8
+ import { t as runEvalCampaign } from "./eval-campaign-bpSlwr6t.js";
9
+ import { s as assertRewardGate } from "./schema-b18jtzZw.js";
10
+ import { a as toSftRows, c as trainingAdmission, t as isTrainingLineEligible } from "./exporters-CfKvJlti.js";
11
+ import { t as mintRolloutRows } from "./mint-g8elU5yW.js";
12
+ import { t as evaluateInterimReleaseConfidence } from "./sequential-C6k0Wrb7.js";
13
+ import { o as validateOutcomeMetricSpecifications, t as assertUniqueObservationIds } from "./outcome-observations-YFFmdGGW.js";
14
14
  import { n as prepareSystemOneReview } from "./systemone-review-BusEIzsg.js";
15
- import { t as rubricPredictiveValidity } from "./rubric-predictive-validity-DL7gJ51F.js";
15
+ import { t as rubricPredictiveValidity } from "./rubric-predictive-validity-Cln7r56F.js";
16
16
  import { n as InMemoryOutcomeStore, t as FileSystemOutcomeStore } from "./outcome-store-TarrcfHG.js";
17
17
  import { createHash } from "node:crypto";
18
18
  import { existsSync, readFileSync } from "node:fs";
@@ -1009,7 +1009,7 @@ function resolveInvocation(index, id) {
1009
1009
  * rules). It runs on every resolved line before any item is admitted, so the
1010
1010
  * whole batch fails before a single row is built.
1011
1011
  *
1012
- * Pure: it reports what it dropped and prints nothing.
1012
+ * Resolved invocation decisions reach `onAdmission`; exclusions are announced when no observer is supplied.
1013
1013
  */
1014
1014
  function auditInvocationAdmission(items, idsOf, context, requirement, inspect) {
1015
1015
  if (context === void 0 || context === null) throw new Error(`${requirement.exporter}: a ${requirement.contextType} is required — ${requirement.because} Pass \`{ lines: (await mintRolloutRows(...)).rows }\`.`);
@@ -1045,9 +1045,15 @@ function auditInvocationAdmission(items, idsOf, context, requirement, inspect) {
1045
1045
  continue;
1046
1046
  }
1047
1047
  if (lines.some(isLineRealnessGated)) {
1048
+ for (const line of lines) trainingAdmission(line, "preference", context);
1048
1049
  audit.gatedDrops++;
1049
1050
  continue;
1050
1051
  }
1052
+ const excluded = lines.map((line) => trainingAdmission(line, "preference", context)).filter((decision) => decision.reason !== null);
1053
+ if (excluded.length > 0) {
1054
+ if (!context.onAdmission) console.warn(`[${requirement.exporter}] excluded item: ${excluded.map((d) => `${d.rollout_id} (${d.reason})`).join(", ")}`);
1055
+ continue;
1056
+ }
1051
1057
  audit.admitted.push(item);
1052
1058
  }
1053
1059
  return audit;
@@ -1183,10 +1189,25 @@ function toDpoJsonl(rows) {
1183
1189
  async function toGrpoRows(lines, lookups) {
1184
1190
  return grpoRowsFromLines(lines, lookups);
1185
1191
  }
1192
+ const lookupKey = (line, lookups) => lookups.lookupBy === "rollout" ? line.rollout_id : line.run_id;
1193
+ /** Run-keyed lookups cannot tell one run's invocations apart; refuse before resolving text. */
1194
+ function runKeyedLookupGuard(lines, lookups, format) {
1195
+ const runCounts = /* @__PURE__ */ new Map();
1196
+ for (const line of lines) runCounts.set(line.run_id, (runCounts.get(line.run_id) ?? 0) + 1);
1197
+ return (line) => {
1198
+ if (lookups.lookupBy !== "rollout" && (runCounts.get(line.run_id) ?? 0) > 1) throw new Error(`${format} export: run ${line.run_id} names multiple invocations; use lookupBy: 'rollout'`);
1199
+ };
1200
+ }
1186
1201
  async function grpoRowsFromLines(lines, lookups) {
1202
+ const requireRunKey = runKeyedLookupGuard(lines, lookups, "GRPO");
1187
1203
  const grouped = /* @__PURE__ */ new Map();
1188
1204
  for (const line of lines) {
1189
- if (!isSplitEligible(line, lookups)) continue;
1205
+ const admission = trainingAdmission(line, "reward", lookups);
1206
+ if (admission.reason !== null) {
1207
+ if (!lookups.onAdmission) console.warn(`[GRPO export] excluded ${line.rollout_id} (${admission.reason})`);
1208
+ continue;
1209
+ }
1210
+ requireRunKey(line);
1190
1211
  const arr = grouped.get(line.task.instance_id) ?? [];
1191
1212
  arr.push(line);
1192
1213
  grouped.set(line.task.instance_id, arr);
@@ -1204,10 +1225,10 @@ async function grpoRowsFromLines(lines, lookups) {
1204
1225
  });
1205
1226
  }
1206
1227
  if (scored.length < 2) continue;
1207
- const prompts = await Promise.all(scored.map(({ line }) => Promise.resolve(lookups.promptOf(line.run_id))));
1228
+ const prompts = await Promise.all(scored.map(({ line }) => Promise.resolve(lookups.promptOf(lookupKey(line, lookups)))));
1208
1229
  const prompt = prompts[0];
1209
1230
  if (prompts.some((value) => value !== prompt)) throw new Error(`toGrpoRows: scenario "${scenarioId}" resolves to different prompt text within one group`);
1210
- const completions = await Promise.all(scored.map(({ line }) => Promise.resolve(lookups.completionOf(line.run_id))));
1231
+ const completions = await Promise.all(scored.map(({ line }) => Promise.resolve(lookups.completionOf(lookupKey(line, lookups)))));
1211
1232
  const rewards = scored.map(({ reward }) => reward);
1212
1233
  const runIds = scored.map(({ line }) => line.run_id);
1213
1234
  rows.push({
@@ -1217,6 +1238,7 @@ async function grpoRowsFromLines(lines, lookups) {
1217
1238
  runIds,
1218
1239
  meta: {
1219
1240
  scenarioId,
1241
+ rolloutIds: scored.map(({ line }) => line.rollout_id),
1220
1242
  n: completions.length,
1221
1243
  meanReward: rewards.reduce((s, x) => s + x, 0) / rewards.length
1222
1244
  }
@@ -1237,7 +1259,7 @@ function toGrpoJsonl(rows) {
1237
1259
  * `rollout/exporters.toSftRows`: same fail-closed policy (realness-gated lines
1238
1260
  * are dropped, not zeroed; `search` ships by default, held-out needs
1239
1261
  * `allowHeldOutTrainingData`, `splitFilter` names an explicit slice) and the
1240
- * same copied-context drop. This adapter adds only the legacy text lookups: a
1262
+ * same copied-context loss mask. This adapter adds only the legacy text lookups: a
1241
1263
  * line whose transcript was captured is exported as captured, tool turns
1242
1264
  * included, and a gap line (empty `messages`, `provenance.gap` set) is
1243
1265
  * recovered from `promptOf` / `completionOf` / `systemOf`. `meta.transcriptSource`
@@ -1247,18 +1269,25 @@ function toGrpoJsonl(rows) {
1247
1269
  async function toSftRowsWithLookups(lines, lookups) {
1248
1270
  for (const line of lines) assertRewardGate(line, "SFT export");
1249
1271
  const include = lookups.include ?? (() => true);
1272
+ const requireRunKey = runKeyedLookupGuard(lines, lookups, "SFT");
1250
1273
  const rows = [];
1251
1274
  for (const line of lines) {
1252
1275
  if (!isTrainingLineEligible(line, lookups) || !include(line)) continue;
1253
1276
  const captured = line.messages.length > 0;
1277
+ if (!captured) requireRunKey(line);
1254
1278
  const messages = captured ? line.messages : await recoveredTranscript(line, lookups);
1255
1279
  const [row] = toSftRows([{
1256
1280
  ...line,
1257
1281
  messages
1258
- }], lookups);
1282
+ }], {
1283
+ ...lookups,
1284
+ onAdmission: void 0
1285
+ });
1259
1286
  if (row === void 0) continue;
1260
1287
  rows.push({
1261
1288
  messages: row.messages,
1289
+ message_loss_mask: row.message_loss_mask,
1290
+ tools: row.tools,
1262
1291
  meta: {
1263
1292
  runId: line.run_id,
1264
1293
  rolloutId: line.rollout_id,
@@ -1278,7 +1307,7 @@ async function toSftRowsWithLookups(lines, lookups) {
1278
1307
  /** A gap line's transcript from the text lookups. Blank or non-string text is refused. */
1279
1308
  async function recoveredTranscript(line, lookups) {
1280
1309
  const system = lookups.systemOf?.(line);
1281
- const [prompt, completion] = await Promise.all([Promise.resolve(lookups.promptOf(line.run_id)), Promise.resolve(lookups.completionOf(line.run_id))]);
1310
+ const [prompt, completion] = await Promise.all([Promise.resolve(lookups.promptOf(lookupKey(line, lookups))), Promise.resolve(lookups.completionOf(lookupKey(line, lookups)))]);
1282
1311
  if (typeof prompt !== "string" || prompt.trim() === "" || typeof completion !== "string" || completion.trim() === "" || system != null && typeof system !== "string") throw new Error(`SFT export: rollout ${line.rollout_id} has invalid text lookups`);
1283
1312
  const messages = [];
1284
1313
  if (system) messages.push({
@@ -1375,6 +1404,30 @@ function admitPrmTriples(triples, context) {
1375
1404
  return admitUngatedByInvocation(triples, (t) => [t.prefixRunId, t.rejectedRunId], context, PRM_CONTEXT_REQUIREMENT, (line) => assertPrmTrainableLine(line, context.mintedWithMaxSteps));
1376
1405
  }
1377
1406
  // src/rl/dataset.ts
1407
+ /**
1408
+ * RL dataset packaging + datasheet — the publishable, sellable bundle.
1409
+ *
1410
+ * The format exporters (`toGrpoRows` / `toSftRowsWithLookups` / `toDpoRows`) already
1411
+ * produce trainer-ready shapes (prime-rl GRPO, TRL DPO, conversational SFT).
1412
+ * What turns that into a dataset someone can PUBLISH or BUY is the provenance
1413
+ * + a datasheet: which models produced it, which prompt/agent versions, how the
1414
+ * reward was derived (deterministic verifiable vs probabilistic judge — the
1415
+ * credibility axis a buyer checks first), the split discipline, the reward
1416
+ * distribution, the quality gates, the license, and the intended/out-of-scope
1417
+ * uses. This module computes those facts from `MintedRolloutLine[]` and renders a
1418
+ * "Datasheet for Datasets" (Gebru et al. 2018) card alongside the format files.
1419
+ *
1420
+ * It composes the existing `rl/exporters` — it does not reimplement any trainer
1421
+ * format. The renderers token-identity step (DeepSeek/Kimi/Qwen tokenization
1422
+ * with per-token loss masks) is a downstream Python stage that consumes the
1423
+ * `messages`/`completions` this bundle emits.
1424
+ *
1425
+ * Input discipline: the bundle is built from `MintedRolloutLine[]`. The datasheet's
1426
+ * reward distribution ships INSIDE the published artifact, so it has to be
1427
+ * derived from exactly the same gated number as the rows it describes —
1428
+ * otherwise the provenance a buyer checks first is a lie. Taking the same
1429
+ * gated input as the exporters is what guarantees that.
1430
+ */
1378
1431
  const DATASET_FORMAT_SET = /* @__PURE__ */ new Set([
1379
1432
  "grpo",
1380
1433
  "sft",
@@ -1467,24 +1520,49 @@ function computeStatsFromLines(lines) {
1467
1520
  */
1468
1521
  async function buildRlDataset(lines, lookups, config, preferences) {
1469
1522
  if (lines.length === 0) throw new Error("buildRlDataset: no rollout lines — refusing to package an empty dataset");
1523
+ const ids = /* @__PURE__ */ new Set();
1524
+ for (const line of lines) {
1525
+ if (ids.has(line.rollout_id)) throw new Error(`buildRlDataset: duplicate rollout_id ${line.rollout_id}; each invocation must have one canonical row`);
1526
+ ids.add(line.rollout_id);
1527
+ }
1470
1528
  const formats = validateDatasetFormats(config.formats === void 0 ? ["sft"] : config.formats);
1471
1529
  const files = {};
1472
1530
  const rowCounts = {};
1531
+ const decisions = /* @__PURE__ */ new Map();
1532
+ const report = (format) => (decision) => {
1533
+ decisions.set(`${format}:${decision.rollout_id}`, {
1534
+ ...decision,
1535
+ format
1536
+ });
1537
+ lookups.onAdmission?.(decision);
1538
+ };
1473
1539
  if (formats.includes("grpo")) {
1474
- const rows = await toGrpoRows(lines, lookups);
1540
+ const rows = await toGrpoRows(lines, {
1541
+ ...lookups,
1542
+ onAdmission: report("grpo")
1543
+ });
1475
1544
  requireRows("grpo", rows.length);
1476
1545
  files["train.grpo.jsonl"] = toGrpoJsonl(rows);
1477
1546
  rowCounts.grpo = rows.length;
1478
1547
  }
1479
1548
  if (formats.includes("sft")) {
1480
- const rows = await toSftRowsWithLookups(lines, lookups);
1549
+ const rows = await toSftRowsWithLookups(lines, {
1550
+ ...lookups,
1551
+ onAdmission: report("sft")
1552
+ });
1481
1553
  requireRows("sft", rows.length);
1482
1554
  files["train.sft.jsonl"] = toSftJsonl(rows);
1483
1555
  rowCounts.sft = rows.length;
1484
1556
  }
1485
1557
  if (formats.includes("dpo")) {
1486
1558
  if (!preferences) throw new Error("buildRlDataset: format 'dpo' requires `preferences` (triples + lookups)");
1487
- const rows = await toDpoRows(preferences.triples, preferences.lookups, { lines });
1559
+ const rows = await toDpoRows(preferences.triples, preferences.lookups, {
1560
+ lines,
1561
+ allowHeldOutTrainingData: lookups.allowHeldOutTrainingData,
1562
+ splitFilter: lookups.splitFilter,
1563
+ allowLicenseClasses: lookups.allowLicenseClasses,
1564
+ onAdmission: report("dpo")
1565
+ });
1488
1566
  requireRows("dpo", rows.length);
1489
1567
  files["train.dpo.jsonl"] = toDpoJsonl(rows);
1490
1568
  rowCounts.dpo = rows.length;
@@ -1494,8 +1572,22 @@ async function buildRlDataset(lines, lookups, config, preferences) {
1494
1572
  ...config,
1495
1573
  formats,
1496
1574
  rowCounts,
1497
- stats: computeStatsFromLines(lines)
1498
- };
1575
+ stats: computeStatsFromLines(lines),
1576
+ sourceSha256: hashCanonical(lines.map((line) => hashCanonical(jsonDocument(line))).sort(compareCodeUnits)),
1577
+ admission: Object.fromEntries(formats.map((format) => {
1578
+ const selected = [...decisions.values()].filter((decision) => decision.format === format);
1579
+ const reasons = {};
1580
+ for (const decision of selected) if (decision.reason !== null) reasons[decision.reason] = (reasons[decision.reason] ?? 0) + 1;
1581
+ const eligible = selected.filter((decision) => decision.reason === null).length;
1582
+ return [format, {
1583
+ considered: selected.length,
1584
+ eligible,
1585
+ excluded: selected.length - eligible,
1586
+ reasons
1587
+ }];
1588
+ }))
1589
+ };
1590
+ files["admission.jsonl"] = `${[...decisions.values()].map((decision) => JSON.stringify(decision)).join("\n")}\n`;
1499
1591
  files["manifest.json"] = `${JSON.stringify(manifest, null, 2)}\n`;
1500
1592
  files["DATASHEET.md"] = datasheetToMarkdown(manifest);
1501
1593
  return {