@tangle-network/agent-eval 0.135.4 → 0.137.0

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 (211) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +4 -2
  3. package/dist/{agent-profile-cell-OhuTee9n.js → agent-profile-cell-CbfBm2g6.js} +2 -2
  4. package/dist/{agent-profile-cell-OhuTee9n.js.map → agent-profile-cell-CbfBm2g6.js.map} +1 -1
  5. package/dist/{agent-profile-cell-CCm3l2v2.d.ts → agent-profile-cell-Cw0PVwDr.d.ts} +2 -2
  6. package/dist/{agent-profile-cell-CCm3l2v2.d.ts.map → agent-profile-cell-Cw0PVwDr.d.ts.map} +1 -1
  7. package/dist/analyst/index.d.ts +139 -17
  8. package/dist/analyst/index.d.ts.map +1 -1
  9. package/dist/analyst/index.js +606 -4
  10. package/dist/analyst/index.js.map +1 -1
  11. package/dist/{analyze-runs-jjCmF8pU.js → analyze-runs-BScZvqMV.js} +6 -6
  12. package/dist/{analyze-runs-jjCmF8pU.js.map → analyze-runs-BScZvqMV.js.map} +1 -1
  13. package/dist/{analyze-runs-Cda5Xkj1.d.ts → analyze-runs-PVtnfjvA.d.ts} +6 -6
  14. package/dist/{analyze-runs-Cda5Xkj1.d.ts.map → analyze-runs-PVtnfjvA.d.ts.map} +1 -1
  15. package/dist/{baseline-BUeFcgrn.js → baseline-C-GocmIW.js} +2 -2
  16. package/dist/{baseline-BUeFcgrn.js.map → baseline-C-GocmIW.js.map} +1 -1
  17. package/dist/benchmark-CHX4orG7.d.ts +184 -0
  18. package/dist/benchmark-CHX4orG7.d.ts.map +1 -0
  19. package/dist/benchmark-YDrpumqB.js +414 -0
  20. package/dist/benchmark-YDrpumqB.js.map +1 -0
  21. package/dist/benchmarks/index.d.ts +1 -1
  22. package/dist/benchmarks/index.js +1 -1
  23. package/dist/{benchmarks-Dfgm9ts5.js → benchmarks-DCLkQOmc.js} +3 -3
  24. package/dist/{benchmarks-Dfgm9ts5.js.map → benchmarks-DCLkQOmc.js.map} +1 -1
  25. package/dist/builder-eval/index.js +2 -2
  26. package/dist/campaign/index.d.ts +6 -6
  27. package/dist/campaign/index.js +3 -3
  28. package/dist/{campaign-Dz8uQnhC.js → campaign-lgObcHFC.js} +212 -78
  29. package/dist/campaign-lgObcHFC.js.map +1 -0
  30. package/dist/cli.js +1 -1
  31. package/dist/client-C8L6h6Wf.d.ts +202 -0
  32. package/dist/client-C8L6h6Wf.d.ts.map +1 -0
  33. package/dist/completion-verifier-DSyRNVzU.d.ts +240 -0
  34. package/dist/completion-verifier-DSyRNVzU.d.ts.map +1 -0
  35. package/dist/contract/index.d.ts +10 -9
  36. package/dist/contract/index.d.ts.map +1 -1
  37. package/dist/contract/index.js +10 -10
  38. package/dist/control.d.ts +2 -2
  39. package/dist/control.js +1 -1
  40. package/dist/{cost-ledger-DHAjwNj7.js → cost-ledger-D-5_-dhi.js} +2 -2
  41. package/dist/{cost-ledger-DHAjwNj7.js.map → cost-ledger-D-5_-dhi.js.map} +1 -1
  42. package/dist/{cost-ledger-fGS_u_O1.d.ts → cost-ledger-D2o6JOrL.d.ts} +2 -2
  43. package/dist/{cost-ledger-fGS_u_O1.d.ts.map → cost-ledger-D2o6JOrL.d.ts.map} +1 -1
  44. package/dist/{dataset-BvtnC8Dc.d.ts → dataset-v_Y5902-.d.ts} +2 -2
  45. package/dist/{dataset-BvtnC8Dc.d.ts.map → dataset-v_Y5902-.d.ts.map} +1 -1
  46. package/dist/{default-registry-CHmdy2An.js → default-registry-CLXbRt0f.js} +119 -38
  47. package/dist/default-registry-CLXbRt0f.js.map +1 -0
  48. package/dist/{default-registry-Brxr728w.d.ts → default-registry-Dc5D_Loc.d.ts} +63 -137
  49. package/dist/default-registry-Dc5D_Loc.d.ts.map +1 -0
  50. package/dist/{errors-8YnH8WlF.js → errors-D-LKuDhb.js} +8 -2
  51. package/dist/errors-D-LKuDhb.js.map +1 -0
  52. package/dist/{errors-CEk209JS.d.ts → errors-DkfjIDvD.d.ts} +9 -3
  53. package/dist/errors-DkfjIDvD.d.ts.map +1 -0
  54. package/dist/{eval-campaign-Cc8WZJ6b.js → eval-campaign-CHqfLnff.js} +6 -6
  55. package/dist/{eval-campaign-Cc8WZJ6b.js.map → eval-campaign-CHqfLnff.js.map} +1 -1
  56. package/dist/{extract-usage-DIQpN-ww.js → extract-usage-p-56bh8q.js} +3 -3
  57. package/dist/{extract-usage-DIQpN-ww.js.map → extract-usage-p-56bh8q.js.map} +1 -1
  58. package/dist/{feedback-trajectory-CVaeREXV.d.ts → feedback-trajectory-N_F0PwHz.d.ts} +90 -3
  59. package/dist/feedback-trajectory-N_F0PwHz.d.ts.map +1 -0
  60. package/dist/fuzz.d.ts +1 -1
  61. package/dist/fuzz.js +2 -2
  62. package/dist/hosted/index.d.ts +3 -2
  63. package/dist/hosted/index.d.ts.map +1 -1
  64. package/dist/index-BipJlj-C.d.ts +316 -0
  65. package/dist/index-BipJlj-C.d.ts.map +1 -0
  66. package/dist/{index-CQsJcqch.d.ts → index-BnP1QJUv.d.ts} +5 -5
  67. package/dist/{index-CQsJcqch.d.ts.map → index-BnP1QJUv.d.ts.map} +1 -1
  68. package/dist/{index-B4Fjfo5U.d.ts → index-C-Pr4OWg.d.ts} +88 -317
  69. package/dist/index-C-Pr4OWg.d.ts.map +1 -0
  70. package/dist/{index-DuhJaaiH.d.ts → index-DEb46kc6.d.ts} +2 -2
  71. package/dist/{index-DuhJaaiH.d.ts.map → index-DEb46kc6.d.ts.map} +1 -1
  72. package/dist/{index-C2fkZhv_.d.ts → index-DRNl6g_N.d.ts} +3 -3
  73. package/dist/{index-C2fkZhv_.d.ts.map → index-DRNl6g_N.d.ts.map} +1 -1
  74. package/dist/{index-AbhwHp0V.d.ts → index-U3RHOShi.d.ts} +2 -2
  75. package/dist/{index-AbhwHp0V.d.ts.map → index-U3RHOShi.d.ts.map} +1 -1
  76. package/dist/index.d.ts +29 -70
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +507 -33
  79. package/dist/index.js.map +1 -1
  80. package/dist/{client-DcvgkaZi.d.ts → insight-report-B9ooYH_g.d.ts} +5 -203
  81. package/dist/insight-report-B9ooYH_g.d.ts.map +1 -0
  82. package/dist/integrity-CCXTftiL.js +1360 -0
  83. package/dist/integrity-CCXTftiL.js.map +1 -0
  84. package/dist/{integrity-rmVhXWA7.d.ts → integrity-CKxosZ5Z.d.ts} +3 -3
  85. package/dist/{integrity-rmVhXWA7.d.ts.map → integrity-CKxosZ5Z.d.ts.map} +1 -1
  86. package/dist/{integrity-BzRbCHzi.js → integrity-fdt8XPAv.js} +2 -2
  87. package/dist/{integrity-BzRbCHzi.js.map → integrity-fdt8XPAv.js.map} +1 -1
  88. package/dist/ledger-core/index.d.ts +1 -1
  89. package/dist/ledger-core/index.js +1 -1
  90. package/dist/{ledger-core-DAKFKRzi.js → ledger-core-t6sItivm.js} +85 -85
  91. package/dist/{ledger-core-DAKFKRzi.js.map → ledger-core-t6sItivm.js.map} +1 -1
  92. package/dist/{llm-client-DHx8pzyJ.js → llm-client-DKB25jV8.js} +3 -3
  93. package/dist/{llm-client-DHx8pzyJ.js.map → llm-client-DKB25jV8.js.map} +1 -1
  94. package/dist/meta-eval/index.d.ts +2 -2
  95. package/dist/meta-eval/index.js +3 -3
  96. package/dist/{mint-DyRUc9k6.js → mint-Ctwk079K.js} +4 -4
  97. package/dist/{mint-DyRUc9k6.js.map → mint-Ctwk079K.js.map} +1 -1
  98. package/dist/multishot/index.d.ts +2 -2
  99. package/dist/openapi.json +1 -1
  100. package/dist/{paired-arms-BbFKrAU-.js → paired-arms-iZ08VFMN.js} +3 -3
  101. package/dist/{paired-arms-BbFKrAU-.js.map → paired-arms-iZ08VFMN.js.map} +1 -1
  102. package/dist/pipelines/index.js +2 -2
  103. package/dist/profile-cell.d.ts +1 -1
  104. package/dist/profile-cell.js +1 -1
  105. package/dist/{propose-review-control-SQ-n9-We.js → propose-review-control-DLXz4FCX.js} +2 -2
  106. package/dist/{propose-review-control-SQ-n9-We.js.map → propose-review-control-DLXz4FCX.js.map} +1 -1
  107. package/dist/registry-BdM7SuTr.d.ts +124 -0
  108. package/dist/registry-BdM7SuTr.d.ts.map +1 -0
  109. package/dist/{release-report-DooPguBc.js → release-report-B5XPBvAU.js} +4 -4
  110. package/dist/{release-report-DooPguBc.js.map → release-report-B5XPBvAU.js.map} +1 -1
  111. package/dist/{release-report-DpBxGGI1.d.ts → release-report-CofgVNZt.d.ts} +4 -4
  112. package/dist/{release-report-DpBxGGI1.d.ts.map → release-report-CofgVNZt.d.ts.map} +1 -1
  113. package/dist/{replay-C6wRg47C.js → replay-Bju0T8Ls.js} +248 -8
  114. package/dist/replay-Bju0T8Ls.js.map +1 -0
  115. package/dist/{replay-BRfMIs81.d.ts → replay-K8FaC0CB.d.ts} +227 -52
  116. package/dist/replay-K8FaC0CB.d.ts.map +1 -0
  117. package/dist/reporting.d.ts +4 -4
  118. package/dist/reporting.js +4 -4
  119. package/dist/{researcher-Doo95b50.d.ts → researcher-Da0Wj-bt.d.ts} +6 -7
  120. package/dist/researcher-Da0Wj-bt.d.ts.map +1 -0
  121. package/dist/{reward-hacking-D-QqXvg-.d.ts → reward-hacking-CQ3hTCO3.d.ts} +2 -2
  122. package/dist/{reward-hacking-D-QqXvg-.d.ts.map → reward-hacking-CQ3hTCO3.d.ts.map} +1 -1
  123. package/dist/{reward-hacking-a-kYs0-i.js → reward-hacking-GyN0kMd8.js} +3 -3
  124. package/dist/{reward-hacking-a-kYs0-i.js.map → reward-hacking-GyN0kMd8.js.map} +1 -1
  125. package/dist/rl.d.ts +6 -6
  126. package/dist/rl.js +9 -9
  127. package/dist/rollout/index.d.ts +1 -1
  128. package/dist/rollout/index.js +3 -3
  129. package/dist/{rollout-DLSUIWLu.js → rollout-DQFl0UXA.js} +2 -2
  130. package/dist/{rollout-DLSUIWLu.js.map → rollout-DQFl0UXA.js.map} +1 -1
  131. package/dist/{rubric-predictive-validity-BJf-8ejY.js → rubric-predictive-validity-BRR632r1.js} +2 -2
  132. package/dist/{rubric-predictive-validity-BJf-8ejY.js.map → rubric-predictive-validity-BRR632r1.js.map} +1 -1
  133. package/dist/{rubric-predictive-validity-C1dCLcvb.d.ts → rubric-predictive-validity-C4sztLR3.d.ts} +2 -2
  134. package/dist/{rubric-predictive-validity-C1dCLcvb.d.ts.map → rubric-predictive-validity-C4sztLR3.d.ts.map} +1 -1
  135. package/dist/{run-evidence-DokQtX0-.d.ts → run-evidence-BDIircdA.d.ts} +3 -3
  136. package/dist/{run-evidence-DokQtX0-.d.ts.map → run-evidence-BDIircdA.d.ts.map} +1 -1
  137. package/dist/{run-record-DcObtIGh.d.ts → run-record-BPCa2rQ8.d.ts} +4 -4
  138. package/dist/{run-record-DcObtIGh.d.ts.map → run-record-BPCa2rQ8.d.ts.map} +1 -1
  139. package/dist/{run-record-BIwU2wdV.js → run-record-vRgqWmJw.js} +3 -3
  140. package/dist/{run-record-BIwU2wdV.js.map → run-record-vRgqWmJw.js.map} +1 -1
  141. package/dist/{semantic-concept-judge-Btozx3Vc.js → semantic-concept-judge-Bz64IckK.js} +4 -4
  142. package/dist/{semantic-concept-judge-Btozx3Vc.js.map → semantic-concept-judge-Bz64IckK.js.map} +1 -1
  143. package/dist/{server-Bz3WQJs6.js → server-KjXZZUDX.js} +3 -3
  144. package/dist/{server-Bz3WQJs6.js.map → server-KjXZZUDX.js.map} +1 -1
  145. package/dist/{skill-usage-BDQVPIG1.d.ts → skill-usage-CFDLLlhF.d.ts} +25 -47
  146. package/dist/skill-usage-CFDLLlhF.d.ts.map +1 -0
  147. package/dist/{skillopt-optimization-method-CwSYkv35.d.ts → skillopt-optimization-method-BpbnlvAZ.d.ts} +11 -12
  148. package/dist/skillopt-optimization-method-BpbnlvAZ.d.ts.map +1 -0
  149. package/dist/{skillopt-optimization-method-0UmPD6aP.js → skillopt-optimization-method-f4o9sUT4.js} +7 -7
  150. package/dist/{skillopt-optimization-method-0UmPD6aP.js.map → skillopt-optimization-method-f4o9sUT4.js.map} +1 -1
  151. package/dist/{statistics-CnGCLLqc.js → statistics-ByxzSiOM.js} +2 -2
  152. package/dist/{statistics-CnGCLLqc.js.map → statistics-ByxzSiOM.js.map} +1 -1
  153. package/dist/{statistics-CKOqre5S.d.ts → statistics-_7P642CN.d.ts} +2 -2
  154. package/dist/{statistics-CKOqre5S.d.ts.map → statistics-_7P642CN.d.ts.map} +1 -1
  155. package/dist/{summary-report-BEk8OFLs.js → summary-report-9A5y7EsK.js} +4 -4
  156. package/dist/{summary-report-BEk8OFLs.js.map → summary-report-9A5y7EsK.js.map} +1 -1
  157. package/dist/{summary-report-CPMINBqs.d.ts → summary-report-DHipz9Kx.d.ts} +3 -3
  158. package/dist/{summary-report-CPMINBqs.d.ts.map → summary-report-DHipz9Kx.d.ts.map} +1 -1
  159. package/dist/supervisor-run/index.d.ts +3 -2
  160. package/dist/supervisor-run/index.js +3 -2
  161. package/dist/{supervisor-run-B7lUGoyZ.js → supervisor-run-B2EWUmQY.js} +221 -519
  162. package/dist/supervisor-run-B2EWUmQY.js.map +1 -0
  163. package/dist/{test-graded-scenario-BsqWLmPt.js → test-graded-scenario-JHcKQNpq.js} +2 -2
  164. package/dist/{test-graded-scenario-BsqWLmPt.js.map → test-graded-scenario-JHcKQNpq.js.map} +1 -1
  165. package/dist/tools-DZk2Jn64.js +1876 -0
  166. package/dist/tools-DZk2Jn64.js.map +1 -0
  167. package/dist/traces.d.ts +6 -7
  168. package/dist/traces.js +5 -6
  169. package/dist/{types-DVjczBM9.d.ts → types-CKswbJGO.d.ts} +260 -6
  170. package/dist/types-CKswbJGO.d.ts.map +1 -0
  171. package/dist/{types-DiWLru6Z.d.ts → types-CTGbIm57.d.ts} +5 -5
  172. package/dist/{types-DiWLru6Z.d.ts.map → types-CTGbIm57.d.ts.map} +1 -1
  173. package/dist/types-CTvKfr5F.d.ts +804 -0
  174. package/dist/types-CTvKfr5F.d.ts.map +1 -0
  175. package/dist/{index-C61Wi7yg.d.ts → types-Dea6tiVI.d.ts} +47 -235
  176. package/dist/types-Dea6tiVI.d.ts.map +1 -0
  177. package/dist/wire/index.d.ts +3 -3
  178. package/dist/wire/index.js +1 -1
  179. package/docs/feedback-trajectories.md +100 -1
  180. package/docs/trace-analysis.md +374 -58
  181. package/package.json +7 -3
  182. package/dist/analyst-BkTS3C58.d.ts +0 -89
  183. package/dist/analyst-BkTS3C58.d.ts.map +0 -1
  184. package/dist/analyst-j5je5J7c.js +0 -152
  185. package/dist/analyst-j5je5J7c.js.map +0 -1
  186. package/dist/campaign-Dz8uQnhC.js.map +0 -1
  187. package/dist/client-DcvgkaZi.d.ts.map +0 -1
  188. package/dist/default-registry-Brxr728w.d.ts.map +0 -1
  189. package/dist/default-registry-CHmdy2An.js.map +0 -1
  190. package/dist/errors-8YnH8WlF.js.map +0 -1
  191. package/dist/errors-CEk209JS.d.ts.map +0 -1
  192. package/dist/feedback-trajectory-CVaeREXV.d.ts.map +0 -1
  193. package/dist/index-B4Fjfo5U.d.ts.map +0 -1
  194. package/dist/index-C61Wi7yg.d.ts.map +0 -1
  195. package/dist/llm-client-BiK4HW0u.d.ts +0 -290
  196. package/dist/llm-client-BiK4HW0u.d.ts.map +0 -1
  197. package/dist/raw-provider-sink-BU29Sh8h.d.ts +0 -134
  198. package/dist/raw-provider-sink-BU29Sh8h.d.ts.map +0 -1
  199. package/dist/replay-BRfMIs81.d.ts.map +0 -1
  200. package/dist/replay-C6wRg47C.js.map +0 -1
  201. package/dist/researcher-Doo95b50.d.ts.map +0 -1
  202. package/dist/skill-usage-BDQVPIG1.d.ts.map +0 -1
  203. package/dist/skillopt-optimization-method-CwSYkv35.d.ts.map +0 -1
  204. package/dist/store-CxJry_cs.d.ts +0 -229
  205. package/dist/store-CxJry_cs.d.ts.map +0 -1
  206. package/dist/supervisor-run-B7lUGoyZ.js.map +0 -1
  207. package/dist/tools-D8yTtNSN.js +0 -1190
  208. package/dist/tools-D8yTtNSN.js.map +0 -1
  209. package/dist/types-Cc3qbqzj.d.ts +0 -387
  210. package/dist/types-Cc3qbqzj.d.ts.map +0 -1
  211. package/dist/types-DVjczBM9.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-CTvKfr5F.d.ts","names":[],"sources":["../src/trace/raw-provider-sink.ts","../src/llm-client.ts","../src/analyst/chat-client.ts","../src/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8BY;UAEK;;EAEf;;EAEA;EACA;;;;;;EAMA;EACA;;EAEA;;EAEA;;EAEA;EACA,WAAW;;EAEX;;EAEA;EACA;EACA,iBAAiB;EACjB;EACA,kBAAkB;EAClB;;EAEA;;EAEA;;UAGe;EACf;EACA;EACA,YAAY;EACZ;;UAGe;EACf,OAAO,OAAO,mBAAmB;;EAEjC,MAAM,SAAS,wBAAwB,QAAQ;;EAE/C,UAAU;;KAGA,oBAAoB,OAAO,qBAAqB;;;;;;iBAmB5C,wBAAwB,OAAO,mBAAmB;UA8CjD;EACf,WAAW;;cAGA,mCAAmC;UACtC;UACA;EAER,YAAY,OAAM;EAIZ,OAAO,OAAO,mBAAmB;EAIjC,KAAK,SAAQ,wBAA6B,QAAQ;EAUxD;;cAKW,+BAA+B;EACpC,UAAU;;;;;;;EASV,QAAQ,QAAQ;;UAOP;;EAEf;;EAEA;;EAEA;EACA,WAAW;;cAGA,qCAAqC;UACxC;UACA;UACA;UACA;UACA;UACA;UACA;EAER,YAAY,MAAM;UAOJ;UAON;EAKF,OAAO,OAAO,mBAAmB;EAYjC,KAAK,SAAQ,wBAA6B,QAAQ;;;;;;iBAkC1C,oBAAoB;;;UChPnB;EACf;;;;;EAKA,kBAEI;IACM;IAAc;;IACd;IAAmB;MAAa;MAAa;;;;KAI7C;UAEK;EACf;EACA,UAAU;;EAEV;;EAEA;IAAe;IAAc,QAAQ;;EACrC;EACA;;EAEA,WAAW;;EAEX;;;;;;iBAOc,2BACd,SAAS,KAAK,iFACd,UAAS,mBACR;UAgCc;EACf;EAC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MAAkB;MAAe;;IAC5C;MAAa;MAAkB;MAAe;;;;UAMjC;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;GACC;;UAGc;EACf;EACA,QAAQ;;EAER;;UAKe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;IACE;MACE;MACA;MACA;;;EAGJ,OAAO;EACP,gBAAgB;;UAKD;EACf;EACA,QAAQ,OAAO;EACf,YAAY,OAAO;;UAGJ;EACf;EACA;;;;;;;;;;KAWU;UAEK;EACf;EACA;EACA;EACA,oBAAoB;EACpB,mBAAmB;EACnB;EACA;;EAEA,QAAQ;;;;;;;EAOR;;;;;;;EAOA;;;;;;EAMA;;UAGe;EACf;EACA;EACA;IAAa;IAAiB;IAAkB;;EAChD;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;IAAa;IAAiB;IAAkB;;EAChD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;;EAEA;;EAEA;;;;;;EAMA;EACA;EACA,SAAS;EACT,YAAY;EACZ;EACA;EACA;;UAKe;EACf,WAAW;EACX,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;;EAEA,aAAa;;UAGE;EACf,UAAU;EACV,OAAO;EACP,WAAW;;EAEX,aAAa;EACb;EACA,WAAW;EACX,SAAS;;KAGC,WAAW,MAAM,YAAY,OAAO,eAAe,QAAQ;UAItD;EACf;EACA;EACA;EACA;EACA,QAAQ;;UAGO;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA"}
@@ -1,4 +1,4 @@
1
- import { b as RolloutSplit, h as RolloutLine } from "./schema-Cef2cFmb.js";
1
+ import { h as RolloutLine } from "./schema-Cef2cFmb.js";
2
2
  //#region src/supervisor-run/types.d.ts
3
3
  /** A metric that could not be computed, with the reason its artifact was missing. */
4
4
  interface Unavailable {
@@ -10,8 +10,19 @@ declare function unavailable(reason: string): Unavailable;
10
10
  declare function isUnavailable(v: unknown): v is Unavailable;
11
11
  /** Render a measured scalar for the markdown/headline: `0` and `unavailable` stay distinct. */
12
12
  declare function showMeasured(v: Measured<number | string | boolean | null>): string;
13
- /** One worker's logs, as read. `null` = the artifact did not exist. */
13
+ /** The two invocation roles a recursive supervision tree can contain. */
14
+ type SupervisorRunNodeRole = 'supervisor' | 'worker';
15
+ /**
16
+ * One worker's logs, as read. `null` means the artifact did not exist; `''`
17
+ * means the artifact was captured and contained no rows.
18
+ */
14
19
  interface WorkerLogSource {
20
+ /**
21
+ * Stable journal node id. Readers should set this whenever their source has
22
+ * one; `label` remains the compatibility join for older stores.
23
+ */
24
+ readonly workerId?: string;
25
+ /** Human-readable task label. It is not required to be unique. */
15
26
  readonly label: string;
16
27
  /** Worker event stream — started / progress / finished / message events (JSONL). */
17
28
  readonly events: string | null;
@@ -41,6 +52,10 @@ interface WorkerLogSource {
41
52
  * `null` on a field means the source DOES carry that fact.
42
53
  */
43
54
  interface SourceLimits {
55
+ /** Reason manager input/output token totals are unavailable (null = recorded). */
56
+ readonly managerTokens: string | null;
57
+ /** Reason worker input/output token totals are unavailable (null = recorded). */
58
+ readonly workerTokens: string | null;
44
59
  /** Reason inference spend has no price in this store (null = the store prices it). */
45
60
  readonly spendUsd: string | null;
46
61
  /** Reason workers carry no pass/fail verdict (null = verdicts are recorded). */
@@ -67,7 +82,11 @@ interface SupervisorRunSources {
67
82
  readonly arm: string | null;
68
83
  /** Identity of the supervision-tree store this was read from; null = none found. */
69
84
  readonly supRunDir: string | null;
70
- /** Supervision journal — spawned / settled / cancelled / metered events (JSONL). */
85
+ /**
86
+ * Supervision journal — spawned / settled / cancelled / metered events (JSONL).
87
+ * Recursive readers put `role: 'supervisor' | 'worker'` on spawned rows;
88
+ * settled `verdict` may be a legacy string or `{ valid, score, ... }`.
89
+ */
71
90
  readonly journal: string | null;
72
91
  /** Per-brain-call tap (JSONL): finish_reason, completion tokens, requested max tokens. */
73
92
  readonly brainLog: string | null;
@@ -134,6 +153,8 @@ interface SupervisorRunReader {
134
153
  declare const SUPERVISOR_RUN_SCHEMA = "tangle.supervisor-run@1";
135
154
  declare const SUPERVISOR_RUN_ROLLUP_SCHEMA = "tangle.supervisor-run-rollup@1";
136
155
  interface SteerBreakdown {
156
+ /** Stable journal node id when the reader retained one. */
157
+ readonly workerId: string | null;
137
158
  readonly worker: string;
138
159
  /** Steer requests durably queued to this worker's inbox. */
139
160
  readonly queued: number;
@@ -158,9 +179,9 @@ interface OrchestrationMetrics {
158
179
  readonly waves: Measured<number>;
159
180
  readonly waveSizes: Measured<readonly number[]>;
160
181
  readonly maxConcurrency: Measured<number>;
161
- /** Worker spawns issued after the first settlement — the retry/respawn tail. */
182
+ /** Direct-child spawns issued after that parent's first direct-child settlement. */
162
183
  readonly respawns: Measured<number>;
163
- /** Labels spawned more than once (a literal retry of the same subtask). */
184
+ /** Labels spawned more than once by the same parent. */
164
185
  readonly repeatedLabels: Measured<readonly string[]>;
165
186
  /** Longest parent chain below the root, in worker hops. */
166
187
  readonly delegationDepth: Measured<number>;
@@ -181,9 +202,9 @@ interface DecisionMetrics {
181
202
  readonly rejected: Measured<number>;
182
203
  /** Worker verified green but delivered no patch bytes — output with nothing to accept. */
183
204
  readonly emptyPass: Measured<number>;
184
- /** Settlements the brain observed before issuing its next spawn (evidence→respawn). */
205
+ /** Direct-child settlements a parent observed before issuing its next direct-child spawn. */
185
206
  readonly observeThenRespawn: Measured<number>;
186
- /** Respawns with no settled evidence in front of them. */
207
+ /** Parent-local respawns with no direct-child settlement in front of them. */
187
208
  readonly respawnWithoutEvidence: Measured<number>;
188
209
  /** Steer + question traffic on the live down/up legs — the only "review while running" signal. */
189
210
  readonly reviewActions: Measured<number>;
@@ -203,7 +224,11 @@ interface RoleSpend {
203
224
  readonly source: string;
204
225
  }
205
226
  interface PerWorkerRow {
227
+ /** Stable journal node id when the reader retained one. */
228
+ readonly workerId: string | null;
206
229
  readonly worker: string;
230
+ /** Explicit journal role after the worker source was joined to its spawn. */
231
+ readonly role: SupervisorRunNodeRole | null;
207
232
  readonly wallMs: number | null;
208
233
  /** `null` = this store does not attribute tokens per worker (NOT "zero tokens"). */
209
234
  readonly tokensIn: number | null;
@@ -211,6 +236,8 @@ interface PerWorkerRow {
211
236
  readonly usd: number | null;
212
237
  readonly patchBytes: number | null;
213
238
  readonly passed: boolean | null;
239
+ /** Numeric verdict score exactly as recorded; null means no score was recorded. */
240
+ readonly score: number | null;
214
241
  }
215
242
  interface WallDistribution {
216
243
  readonly n: number;
@@ -310,238 +337,23 @@ interface SupervisorRunRollup {
310
337
  /**
311
338
  * A supervision tree expressed in the canonical rollout row type: one
312
339
  * `RolloutLine` per invocation, joined by `parent_rollout_id`. The root row
313
- * carries `role: 'supervisor'`; every spawned worker carries `role: 'worker'`
314
- * with the root as its parent.
340
+ * carries `role: 'supervisor'`; nested supervisors retain that role and leaf
341
+ * invocations carry `role: 'worker'`.
315
342
  */
316
343
  interface SupervisorRunTree {
317
344
  readonly rootId: string | null;
318
345
  readonly nodes: readonly RolloutLine[];
319
- /** Why a node could not be recovered, in read order. */
320
- readonly gaps: readonly string[];
321
- }
322
- //#endregion
323
- //#region src/supervisor-run/analyze.d.ts
324
- interface Tokens {
325
- input: number;
326
- output: number;
327
- cacheRead: number;
328
- cacheWrite: number;
329
- /** False when the event carried no cache counters at all — not "zero cached". */
330
- hasCache: boolean;
331
- }
332
- interface SpendLike {
333
- tokens: Tokens;
334
- usd: number;
335
- }
336
- interface SpawnRow {
337
- id: string;
338
- parent: string | null;
339
- label: string;
340
- at: number | null;
341
- }
342
- interface CloseRow {
343
- id: string;
344
- kind: 'settled' | 'cancelled';
345
- status: string | null;
346
- verdict: string | null;
347
- at: number | null;
348
- spend: SpendLike;
349
- /** False when the close event carried no spend object — not "spent nothing". */
350
- hasSpend: boolean;
351
- }
352
- interface WorkerLogFacts {
353
- started: number | null;
354
- /** True once a `finished` event was seen — independent of whether its `at` parsed. */
355
- finished: boolean;
356
- finishedAt: number | null;
357
- passed: boolean | null;
358
- /** `patchBytes` as reported by the finished event (not the patch file's size). */
359
- finishedPatchBytes: number | null;
360
- evidenceBytes: number;
361
- steersQueued: number;
362
- steersDelivered: number;
363
- questions: number;
364
- }
365
- /**
366
- * The tree + timeline the report is computed from, exposed because the rollout-row
367
- * minter needs exactly the same parse (one parser, two consumers).
368
- */
369
- interface SupervisorTreeFacts {
370
- readonly rootId: string | null;
371
- readonly spawns: readonly SpawnRow[];
372
- readonly closes: readonly CloseRow[];
373
- readonly workerSpawns: readonly SpawnRow[];
374
- readonly workerCloses: readonly CloseRow[];
375
- readonly brain: {
376
- tokensIn: number;
377
- tokensOut: number;
378
- cacheRead: number;
379
- cacheWrite: number;
380
- /** False when no metered event carried cache counters — not "nothing cached". */
381
- hasCache: boolean;
382
- usd: number;
383
- meteredCount: number;
384
- };
385
- readonly workerLogs: ReadonlyMap<string, WorkerLogFacts>;
386
- readonly startedAt: number | null;
387
- readonly completedAt: number | null;
388
- }
389
- declare function parseSupervisorTree(src: SupervisorRunSources): SupervisorTreeFacts;
390
- /**
391
- * Analyze already-read supervisor-run bytes. Pure and synchronous: same bytes
392
- * in, same report out (modulo `generatedAt`, which `now` pins in tests).
393
- */
394
- declare function analyzeSupervisorRunSources(src: SupervisorRunSources, now?: () => number): SupervisorRunReport;
395
- /** Unified-diff stats. Counts `+++ b/<path>` targets, body +/- lines, and test-file touches. */
396
- declare function parsePatch(text: string): PatchStats;
397
- /**
398
- * Aggregate many supervisor-run reports. A metric no run could measure stays
399
- * `unavailable` rather than becoming a 0-valued mean, and cells whose steer
400
- * count was unavailable are counted separately from cells that measured zero.
401
- */
402
- declare function rollupSupervisorRuns(reports: readonly SupervisorRunReport[]): SupervisorRunRollup;
403
- //#endregion
404
- //#region src/supervisor-run/claude-code-reader.d.ts
405
- /** Tool names that spawn a child agent. `Task` is the older name for `Agent`. */
406
- declare const DEFAULT_SPAWN_TOOLS: readonly ['Agent', 'Task'];
407
- /** Tool names that deliver a message to an ALREADY-RUNNING child agent. */
408
- declare const DEFAULT_STEER_TOOLS: readonly ['SendMessage'];
409
- /** Tool names that stop a running child agent. */
410
- declare const DEFAULT_CANCEL_TOOLS: readonly ['TaskStop', 'KillAgent'];
411
- interface ClaudeCodeReaderOptions {
412
- /** The main session transcript: `~/.claude/projects/<slug>/<sessionId>.jsonl`. */
413
- readonly transcriptPath: string;
414
- /**
415
- * Directory of child transcripts. Defaults to `<transcript-dir>/<sessionId>/subagents`.
416
- * `null` skips the join, and every per-worker token count becomes unavailable.
417
- */
418
- readonly subagentsDir?: string | null;
419
- readonly runRef?: string;
420
- readonly instanceId?: string | null;
421
- readonly arm?: string | null;
422
- readonly spawnTools?: readonly string[];
423
- readonly steerTools?: readonly string[];
424
- readonly cancelTools?: readonly string[];
346
+ /** Typed reasons a rollout field could not be recovered, in read order. */
347
+ readonly gaps: readonly SupervisorRunTreeGap[];
425
348
  }
426
- /**
427
- * Read a Claude Code session (plus its subagent transcripts) as supervision-tree
428
- * source bytes. Never throws on a missing artifact.
429
- */
430
- declare function readClaudeCodeSupervisorRun(opts: ClaudeCodeReaderOptions): Promise<SupervisorRunSources>;
431
- /** A `SupervisorRunReader` over a Claude Code session — the same contract loops implements. */
432
- declare function claudeCodeSupervisorRunReader(opts: ClaudeCodeReaderOptions): SupervisorRunReader;
433
- //#endregion
434
- //#region src/supervisor-run/loops-reader.d.ts
435
- /** Locate the (single) supervisor run dir under `<ws>/.loops/supervisor`. */
436
- declare function findSupervisorRunDirIn(ws: string): Promise<string | null>;
437
- interface LoopsReaderOptions {
438
- /** Override the workspace dir (default `<runDir>/ws`). */
439
- readonly ws?: string;
440
- /** Delivered patch path (default: `patchPath` from result.json). */
441
- readonly patchPath?: string;
442
- /** opencode sqlite store; set to `null` to skip the worker-token join entirely. */
443
- readonly opencodeDb?: string | null;
444
- /** Ledger to fall back to when the run has no `judge.json` (matched on iid + arm + runDir). */
445
- readonly ledgerPath?: string;
349
+ /** Stable machine-readable reasons emitted while minting a supervisor tree. */
350
+ type SupervisorRunTreeGapCode = 'journal-unavailable' | 'source-row-malformed' | 'root-spawn-unavailable' | 'root-reward-unavailable' | 'child-reward-unavailable' | 'node-schema-invalid';
351
+ interface SupervisorRunTreeGap {
352
+ readonly code: SupervisorRunTreeGapCode;
353
+ readonly message: string;
354
+ readonly nodeId?: string;
355
+ readonly count?: number;
446
356
  }
447
- /**
448
- * Read a loops supervisor run directory into source bytes. Never throws on a
449
- * missing artifact — an absent file becomes a `null` field, which is what makes
450
- * the dependent metric `unavailable` instead of 0.
451
- */
452
- declare function readLoopsSupervisorRun(runDir: string, opts?: LoopsReaderOptions): Promise<SupervisorRunSources>;
453
- /** The loops on-disk layout, as a `SupervisorRunReader`. */
454
- declare function loopsSupervisorRunReader(runDir: string, opts?: LoopsReaderOptions): SupervisorRunReader;
455
- /**
456
- * Analyze a supervisor run. Accepts a run directory (read through the loops
457
- * reader), any `SupervisorRunReader`, or already-read source bytes — so a
458
- * caller with its own store never has to touch the filesystem layout.
459
- */
460
- declare function analyzeSupervisorRun(input: string | SupervisorRunReader | SupervisorRunSources, opts?: LoopsReaderOptions): Promise<SupervisorRunReport>;
461
- interface WriteSupervisorRunOptions extends LoopsReaderOptions {
462
- /** Append the headline block here (the experiment's run log). */
463
- readonly appendHeadlineTo?: string;
464
- /** Also console.log the headline (default true). */
465
- readonly echo?: boolean;
466
- /**
467
- * Write `run-report.{json,md}` here instead of into the run dir. Set when
468
- * reporting over a run directory that must stay READ-ONLY (a live run, an
469
- * archived generation).
470
- */
471
- readonly reportDir?: string;
472
- }
473
- /**
474
- * Read a completed run, write `run-report.json` + `run-report.md` beside its
475
- * artifacts, and append the headline block to the run log. Never throws on a
476
- * missing artifact — a run that produced nothing still yields a report whose
477
- * every metric says why.
478
- */
479
- declare function writeSupervisorRunReport(runDir: string, opts?: WriteSupervisorRunOptions): Promise<SupervisorRunReport>;
480
- /**
481
- * File stem for out-of-tree reports. Built from the run path's identifying
482
- * segments — candidate tag (the segment under `arm-runs/`), rep, instance, arm
483
- * — so two runs of the same instance from different candidates/reps never
484
- * overwrite each other.
485
- */
486
- declare function supervisorReportStem(runDir: string): string;
487
- /**
488
- * Best-effort wrapper for a hot path: a reporting failure must never kill a run
489
- * that already produced real work. Returns null and logs the reason instead.
490
- */
491
- declare function writeSupervisorRunReportSafe(runDir: string, opts?: WriteSupervisorRunOptions): Promise<SupervisorRunReport | null>;
492
- /**
493
- * Report every run under an experiment `outDir` (any depth of
494
- * `runs/<iid>/<arm>`), write each run's report, and write the rollup at
495
- * `<outDir>/run-report-round.{json,md}`.
496
- */
497
- declare function reportSupervisorRound(outDir: string, opts?: WriteSupervisorRunOptions & {
498
- title?: string;
499
- }): Promise<SupervisorRunRollup>;
500
- /** Every `<...>/runs/<iid>/<arm>` directory under `root`. */
501
- declare function findSupervisorRunDirs(root: string): Promise<string[]>;
502
- //#endregion
503
- //#region src/supervisor-run/render.d.ts
504
- /**
505
- * The block appended to a run log after every run — the answers an operator asks
506
- * for, in the log tail, with no extra command.
507
- */
508
- declare function renderSupervisorRunHeadline(r: SupervisorRunReport): string;
509
- declare function renderSupervisorRunMarkdown(r: SupervisorRunReport): string;
510
- declare function renderSupervisorRollupMarkdown(rollup: SupervisorRunRollup, title?: string): string;
511
- //#endregion
512
- //#region src/supervisor-run/rollout-nodes.d.ts
513
- interface SupervisorRolloutOptions {
514
- /** Benchmark/suite id for `task.suite`. Defaults to `'supervisor-run'`. */
515
- readonly suite?: string;
516
- /** `task.split`. Defaults to `'search'` (the trainable pool). */
517
- readonly split?: RolloutSplit;
518
- /** Replicate index. Defaults to 0. */
519
- readonly rep?: number;
520
- /** Sampling seed the campaign pinned. Defaults to null (not recorded). */
521
- readonly seed?: number | null;
522
- /** `run_id` for every node. Defaults to the supervisor root id, else `runRef`. */
523
- readonly runId?: string;
524
- /** Harness that drove the supervisor. */
525
- readonly supervisorHarness?: string | null;
526
- /** Harness that drove the workers. */
527
- readonly workerHarness?: string | null;
528
- /** Model the supervisor ran on. */
529
- readonly supervisorModel?: string | null;
530
- /** Model the workers ran on. */
531
- readonly workerModel?: string | null;
532
- readonly experimentId?: string | null;
533
- readonly candidateId?: string | null;
534
- readonly generation?: number | null;
535
- readonly candidateIndex?: number | null;
536
- /** Pins `provenance.captured_at`; defaults to now. */
537
- readonly capturedAt?: string;
538
- }
539
- /**
540
- * Mint the supervision tree as rollout rows. Returns the rows plus the gaps
541
- * that made any of them incomplete — same unavailable-vs-zero discipline as
542
- * the report: a row with no transcript says WHY, it never pretends to be empty.
543
- */
544
- declare function supervisorRunRolloutLines(src: SupervisorRunSources, opts?: SupervisorRolloutOptions): SupervisorRunTree;
545
357
  //#endregion
546
- export { isUnavailable as $, rollupSupervisorRuns as A, RollupCellRow as B, CloseRow as C, analyzeSupervisorRunSources as D, WorkerLogFacts as E, OrchestrationMetrics as F, SupervisorRunReader as G, SUPERVISOR_RUN_SCHEMA as H, OutcomeMetrics as I, SupervisorRunSources as J, SupervisorRunReport as K, PatchStats as L, EconomicsMetrics as M, Measured as N, parsePatch as O, NO_SOURCE_LIMITS as P, WorkerLogSource as Q, PerWorkerRow as R, readClaudeCodeSupervisorRun as S, SupervisorTreeFacts as T, SourceLimits as U, SUPERVISOR_RUN_ROLLUP_SCHEMA as V, SteerBreakdown as W, Unavailable as X, SupervisorRunTree as Y, WallDistribution as Z, ClaudeCodeReaderOptions as _, renderSupervisorRunMarkdown as a, DEFAULT_STEER_TOOLS as b, analyzeSupervisorRun as c, loopsSupervisorRunReader as d, showMeasured as et, readLoopsSupervisorRun as f, writeSupervisorRunReportSafe as g, writeSupervisorRunReport as h, renderSupervisorRunHeadline as i, DecisionMetrics as j, parseSupervisorTree as k, findSupervisorRunDirIn as l, supervisorReportStem as m, supervisorRunRolloutLines as n, LoopsReaderOptions as o, reportSupervisorRound as p, SupervisorRunRollup as q, renderSupervisorRollupMarkdown as r, WriteSupervisorRunOptions as s, SupervisorRolloutOptions as t, unavailable as tt, findSupervisorRunDirs as u, DEFAULT_CANCEL_TOOLS as v, SpawnRow as w, claudeCodeSupervisorRunReader as x, DEFAULT_SPAWN_TOOLS as y, RoleSpend as z };
547
- //# sourceMappingURL=index-C61Wi7yg.d.ts.map
358
+ export { Unavailable as C, showMeasured as D, isUnavailable as E, unavailable as O, SupervisorRunTreeGapCode as S, WorkerLogSource as T, SupervisorRunReport as _, OrchestrationMetrics as a, SupervisorRunTree as b, PerWorkerRow as c, SUPERVISOR_RUN_ROLLUP_SCHEMA as d, SUPERVISOR_RUN_SCHEMA as f, SupervisorRunReader as g, SupervisorRunNodeRole as h, NO_SOURCE_LIMITS as i, RoleSpend as l, SteerBreakdown as m, EconomicsMetrics as n, OutcomeMetrics as o, SourceLimits as p, Measured as r, PatchStats as s, DecisionMetrics as t, RollupCellRow as u, SupervisorRunRollup as v, WallDistribution as w, SupervisorRunTreeGap as x, SupervisorRunSources as y };
359
+ //# sourceMappingURL=types-Dea6tiVI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-Dea6tiVI.d.ts","names":[],"sources":["../src/supervisor-run/types.ts"],"mappings":";;;UAiCiB;WACN;;;KAIC,SAAS,KAAK,IAAI;iBAEd,YAAY,iBAAiB;iBAI7B,cAAc,aAAa,KAAK;;iBAKhC,aAAa,GAAG;;KAWpB;;;;;UAMK;;;;;WAKN;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;;;;;;;;;;;;;UAcM;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;;cAIE,kBAAkB;;;;;;;;;;UAiBd;;WAEN;WACA;;WAEA;;WAEA;;;;;;WAMA;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB;;WAEA;;;;;;;WAOA;;WAEA;;WAEA;;WAEA;;;;;WAKA;IACP;IACA;IACA;IACA;;IAEA;IACA;;WAEO;;WAEA,QAAQ;;;;;;WAMR;;;;;WAKA;;;;;;UAOM;;WAEN;EACT,QAAQ,QAAQ;;cAOL;cACA;UAEI;;WAEN;WACA;;WAEA;;WAEA;;UAGM;W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WACf,kBAAkB;;;;;;;;UASZ;WACN;WACA,gBAAgB;;WAEhB,eAAe;;;KAId;UAQK;WACN,MAAM;WACN;WACA;WACA"}
@@ -1,7 +1,7 @@
1
- import { c as CostLedgerHandle } from "../cost-ledger-fGS_u_O1.js";
1
+ import { c as CostLedgerHandle } from "../cost-ledger-D2o6JOrL.js";
2
+ import { Z as LlmRouteRequirements, q as LlmClientOptions } from "../types-CTvKfr5F.js";
2
3
  import { s as TraceStore } from "../store-CT9YIIve.js";
3
- import { o as LlmClientOptions, u as LlmRouteRequirements } from "../llm-client-BiK4HW0u.js";
4
- import { h as FeedbackTrajectoryStore } from "../feedback-trajectory-CVaeREXV.js";
4
+ import { _ as FeedbackTrajectoryStore } from "../feedback-trajectory-N_F0PwHz.js";
5
5
  import { z } from "zod";
6
6
  import { ServerType } from "@hono/node-server";
7
7
  import { Hono } from "hono";
@@ -1,2 +1,2 @@
1
- import { A as TraceEventSchema, C as HealthResponseSchema, D as RubricDimensionSchema, E as ListRubricsResponseSchema, F as hashRubric, M as TracesIngestResponseSchema, N as VersionResponseSchema, O as RubricInfoSchema, P as WIRE_VERSION, S as FeedbackTrajectorySchema, T as JudgeResultSchema, _ as ErrorResponseSchema, a as runRpcBatch, b as FeedbackIngestResponseSchema, c as WireError, d as handleListRubrics, f as handleTracesIngest, g as listBuiltinRubrics, h as getBuiltinRubric, i as dispatchRpc, j as TracesIngestRequestSchema, k as RubricSchema, l as handleFeedbackIngest, m as BUILTIN_RUBRICS, n as startServer, o as runRpcOnce, p as handleVersion, r as startServerAsync, s as buildOpenApi, t as createApp, u as handleJudge, v as FailureModeSchema, w as JudgeRequestSchema, x as FeedbackLabelSchema, y as FeedbackAttemptSchema } from "../server-Bz3WQJs6.js";
1
+ import { A as TraceEventSchema, C as HealthResponseSchema, D as RubricDimensionSchema, E as ListRubricsResponseSchema, F as hashRubric, M as TracesIngestResponseSchema, N as VersionResponseSchema, O as RubricInfoSchema, P as WIRE_VERSION, S as FeedbackTrajectorySchema, T as JudgeResultSchema, _ as ErrorResponseSchema, a as runRpcBatch, b as FeedbackIngestResponseSchema, c as WireError, d as handleListRubrics, f as handleTracesIngest, g as listBuiltinRubrics, h as getBuiltinRubric, i as dispatchRpc, j as TracesIngestRequestSchema, k as RubricSchema, l as handleFeedbackIngest, m as BUILTIN_RUBRICS, n as startServer, o as runRpcOnce, p as handleVersion, r as startServerAsync, s as buildOpenApi, t as createApp, u as handleJudge, v as FailureModeSchema, w as JudgeRequestSchema, x as FeedbackLabelSchema, y as FeedbackAttemptSchema } from "../server-KjXZZUDX.js";
2
2
  export { BUILTIN_RUBRICS, ErrorResponseSchema, FailureModeSchema, FeedbackAttemptSchema, FeedbackIngestResponseSchema, FeedbackLabelSchema, FeedbackTrajectorySchema, HealthResponseSchema, JudgeRequestSchema, JudgeResultSchema, ListRubricsResponseSchema, RubricDimensionSchema, RubricInfoSchema, RubricSchema, TraceEventSchema, TracesIngestRequestSchema, TracesIngestResponseSchema, VersionResponseSchema, WIRE_VERSION, WireError, buildOpenApi, createApp, dispatchRpc, getBuiltinRubric, handleFeedbackIngest, handleJudge, handleListRubrics, handleTracesIngest, handleVersion, hashRubric, listBuiltinRubrics, runRpcBatch, runRpcOnce, startServer, startServerAsync };
@@ -55,7 +55,7 @@ const optimizerRows = feedbackTrajectoriesToOptimizerRows([trajectory])
55
55
 
56
56
  ## What Belongs In Core
57
57
 
58
- `agent-eval` owns the substrate:
58
+ `agent-eval` owns the shared data model:
59
59
 
60
60
  - trajectory and label schemas
61
61
  - in-memory and JSONL-backed stores
@@ -74,6 +74,105 @@ Downstream repos own domain adapters:
74
74
  - which budgets and metrics matter
75
75
  - where task-local data is stored
76
76
 
77
+ ## Trace Analyst Bridge
78
+
79
+ Trace findings are hypotheses until another signal confirms them.
80
+ Use `analystRunToReviewRequests()` to populate a review queue.
81
+ Use `analystRunToFeedbackTrajectory()` immediately to archive the run, even when review has not started.
82
+ The archived trajectory cannot become optimizer input until every finding has one independent decision and the run has one independent completeness assessment.
83
+
84
+ ```ts
85
+ import {
86
+ analystRunDigest,
87
+ analystRunToFeedbackTrajectory,
88
+ analystRunToReviewRequests,
89
+ feedbackTrajectoryToOptimizerRow,
90
+ } from '@tangle-network/agent-eval'
91
+
92
+ const runDigest = analystRunDigest(analystRun)
93
+ const requests = analystRunToReviewRequests(analystRun)
94
+ await reviewQueue.add(requests)
95
+
96
+ const archived = analystRunToFeedbackTrajectory(analystRun, {
97
+ task: { intent: 'Explain the failed agent run.' },
98
+ reviewRequests: requests,
99
+ })
100
+
101
+ await trajectoryStore.save(archived)
102
+
103
+ declare const reviewedFindingIds: ReadonlySet<string>
104
+ declare const reviewReasons: ReadonlyMap<string, string>
105
+ declare const missedIssues: Array<{
106
+ id: string
107
+ reason: string
108
+ evidence?: Array<{ kind: 'span'; uri: string }>
109
+ }>
110
+ const requestsByFindingId = new Map(requests.map((request) => [request.findingId, request]))
111
+
112
+ const reviewed = analystRunToFeedbackTrajectory(analystRun, {
113
+ task: { intent: 'Explain the failed agent run.' },
114
+ reviewRequests: requests,
115
+ reviewDecisions: [
116
+ ...analystRun.findings.map((finding) => ({
117
+ runDigest,
118
+ findingId: finding.finding_id,
119
+ findingDigest: requestsByFindingId.get(finding.finding_id)!.findingDigest,
120
+ verdict: reviewedFindingIds.has(finding.finding_id) ? 'confirmed' as const : 'rejected' as const,
121
+ source: 'user' as const,
122
+ reviewerId: 'reviewer-42',
123
+ reviewId: 'trace-review-918',
124
+ reason: reviewReasons.get(finding.finding_id) ?? 'Reviewed against the cited evidence.',
125
+ decidedAt: new Date().toISOString(),
126
+ })),
127
+ {
128
+ runDigest,
129
+ verdict: 'completeness_assessed',
130
+ missedIssues,
131
+ source: 'user',
132
+ reviewerId: 'reviewer-42',
133
+ reviewId: 'trace-review-918',
134
+ reason: 'Reviewed the full run for findings the analyst omitted.',
135
+ decidedAt: new Date().toISOString(),
136
+ },
137
+ ],
138
+ })
139
+
140
+ const optimizerRow = feedbackTrajectoryToOptimizerRow(reviewed)
141
+ ```
142
+
143
+ Review requests, generic labels, and run-level outcomes do not validate findings.
144
+ Every request id includes the digest of the complete analyst run, so the same finding in two runs produces two request ids.
145
+ Every decision must echo that run digest and cannot be replayed onto another run.
146
+ Each finding decision must name a known finding and echo its full content digest.
147
+ The reviewer identity must differ from every analyst that produced the run.
148
+ The completeness assessment records unique missed issue ids, reasons, and optional evidence.
149
+ Duplicate, unknown, incomplete, mutated, and self-reviewed data throws instead of being filtered.
150
+ The optimizer score is F1 over confirmed findings and independently identified misses.
151
+ A run with no findings and no missed issues scores `1`.
152
+ The run-level outcome remains context and does not replace that score.
153
+
154
+ Every run needs one `completeness_assessed` decision from an independent reviewer or environment check:
155
+
156
+ ```ts
157
+ const cleanRunDigest = analystRunDigest(cleanRun)
158
+ const reviewedCleanRun = analystRunToFeedbackTrajectory(cleanRun, {
159
+ task: { intent: 'Check whether the run has a reportable failure.' },
160
+ reviewDecisions: [{
161
+ runDigest: cleanRunDigest,
162
+ verdict: 'completeness_assessed',
163
+ missedIssues: [],
164
+ source: 'environment',
165
+ reviewerId: 'release-test-suite',
166
+ reviewId: 'release-check-284',
167
+ reason: 'The independent release checks found no omitted reportable failure.',
168
+ decidedAt: new Date().toISOString(),
169
+ }],
170
+ })
171
+ ```
172
+
173
+ A raw zero-finding run is still valid archival data.
174
+ It is not learning data until completeness is independently assessed.
175
+
77
176
  ## Label Sources
78
177
 
79
178
  Labels can come from multiple places: