@tangle-network/agent-eval 1.0.29 → 1.0.32
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.
- package/CHANGELOG.md +67 -0
- package/README.md +1 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/{agent-profile-BF1WLMco.d.ts → agent-profile-BpLyM2kL.d.ts} +2 -2
- package/dist/{agent-profile-BF1WLMco.d.ts.map → agent-profile-BpLyM2kL.d.ts.map} +1 -1
- package/dist/{agent-profile-cell-3kYxUsK2.d.ts → agent-profile-cell-BTsrta0H.d.ts} +2 -9
- package/dist/agent-profile-cell-BTsrta0H.d.ts.map +1 -0
- package/dist/agent-profile-cell-CT5JYueM.js.map +1 -1
- package/dist/analyst/index.d.ts +13 -13
- package/dist/analyst/index.js +11 -11
- package/dist/{analyze-runs-BaziIw93.d.ts → analyze-runs-DfUDLaCk.d.ts} +6 -16
- package/dist/analyze-runs-DfUDLaCk.d.ts.map +1 -0
- package/dist/{analyze-runs-BCSHzqna.js → analyze-runs-YagfYgfx.js} +5 -5
- package/dist/{analyze-runs-BCSHzqna.js.map → analyze-runs-YagfYgfx.js.map} +1 -1
- package/dist/app-grade/index.d.ts +3 -5
- package/dist/app-grade/index.d.ts.map +1 -1
- package/dist/app-grade/index.js +2 -6
- package/dist/app-grade/index.js.map +1 -1
- package/dist/{benchmark-command-DRAHkn4D.js → benchmark-command-CTmr-oo4.js} +11 -10
- package/dist/benchmark-command-CTmr-oo4.js.map +1 -0
- package/dist/benchmarks/index.d.ts +7 -6
- package/dist/benchmarks/index.d.ts.map +1 -1
- package/dist/benchmarks/index.js +13 -5
- package/dist/benchmarks/index.js.map +1 -1
- package/dist/builder-eval/index.js +1 -1
- package/dist/{calibration-Cf-wpqqO.js → calibration-DE2WQmlX.js} +2 -2
- package/dist/{calibration-Cf-wpqqO.js.map → calibration-DE2WQmlX.js.map} +1 -1
- package/dist/campaign/index.d.ts +8 -8
- package/dist/campaign/index.js +14 -14
- package/dist/{campaign-Cqz2vk2p.js → campaign-CtdTo5em.js} +15 -15
- package/dist/{campaign-Cqz2vk2p.js.map → campaign-CtdTo5em.js.map} +1 -1
- package/dist/{campaign-evidence-CVNKiK0q.js → campaign-evidence-BS2-OSFN.js} +4 -4
- package/dist/{campaign-evidence-CVNKiK0q.js.map → campaign-evidence-BS2-OSFN.js.map} +1 -1
- package/dist/cli.js +9 -8
- package/dist/cli.js.map +1 -1
- package/dist/{cluster-bootstrap-B0MTOBRU.js → cluster-bootstrap-ClPYIWoX.js} +2 -2
- package/dist/{cluster-bootstrap-B0MTOBRU.js.map → cluster-bootstrap-ClPYIWoX.js.map} +1 -1
- package/dist/contract/index.d.ts +12 -11
- package/dist/contract/index.js +56 -34
- package/dist/contract/index.js.map +1 -1
- package/dist/{decision-point-CQOczIIH.js → decision-point-DvX1Z4Ue.js} +3 -3
- package/dist/{decision-point-CQOczIIH.js.map → decision-point-DvX1Z4Ue.js.map} +1 -1
- package/dist/{default-registry-DoIBhuS-.d.ts → default-registry-2Ziw-0sL.d.ts} +7 -7
- package/dist/{default-registry-DoIBhuS-.d.ts.map → default-registry-2Ziw-0sL.d.ts.map} +1 -1
- package/dist/{default-registry-D-xd7KxV.js → default-registry-DeiYGNKW.js} +3 -3
- package/dist/{default-registry-D-xd7KxV.js.map → default-registry-DeiYGNKW.js.map} +1 -1
- package/dist/{define-agent-eval-Be2Ser8j.d.ts → define-agent-eval-DmCV1TZo.d.ts} +7 -7
- package/dist/{define-agent-eval-Be2Ser8j.d.ts.map → define-agent-eval-DmCV1TZo.d.ts.map} +1 -1
- package/dist/{define-agent-eval-BLVewqJm.js → define-agent-eval-GgvRcpNL.js} +7 -7
- package/dist/{define-agent-eval-BLVewqJm.js.map → define-agent-eval-GgvRcpNL.js.map} +1 -1
- package/dist/diagnosis/index.d.ts +4 -3
- package/dist/diagnosis/index.d.ts.map +1 -1
- package/dist/diagnosis/index.js +1 -1
- package/dist/{dspy-rlm-engine-BS_jxE0P.js → dspy-rlm-engine-DJ_4E-PM.js} +3 -3
- package/dist/{dspy-rlm-engine-BS_jxE0P.js.map → dspy-rlm-engine-DJ_4E-PM.js.map} +1 -1
- package/dist/{engine-CPBhCLJR.d.ts → engine-yaSDTpEa.d.ts} +2 -2
- package/dist/{engine-CPBhCLJR.d.ts.map → engine-yaSDTpEa.d.ts.map} +1 -1
- package/dist/{eval-campaign-DpkToY_w.js → eval-campaign-bpSlwr6t.js} +2 -2
- package/dist/{eval-campaign-DpkToY_w.js.map → eval-campaign-bpSlwr6t.js.map} +1 -1
- package/dist/{evaluation-BjRgUyst.d.ts → evaluation-BQQ2ga5W.d.ts} +4 -4
- package/dist/{evaluation-BjRgUyst.d.ts.map → evaluation-BQQ2ga5W.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/{exact-types-DEnrf7NX.d.ts → exact-types-xrjBO9sb.d.ts} +2 -2
- package/dist/{exact-types-DEnrf7NX.d.ts.map → exact-types-xrjBO9sb.d.ts.map} +1 -1
- package/dist/execution-insight-B-My58JW.d.ts +14 -0
- package/dist/execution-insight-B-My58JW.d.ts.map +1 -0
- package/dist/experiment/index.d.ts +3 -3
- package/dist/experiment/index.js +7 -7
- package/dist/{exporters-BKZLt1Px.js → exporters-CfKvJlti.js} +70 -43
- package/dist/exporters-CfKvJlti.js.map +1 -0
- package/dist/{external-optimizer-process-m9xln7zN.js → external-optimizer-process-jiq4CZD0.js} +2 -2
- package/dist/{external-optimizer-process-m9xln7zN.js.map → external-optimizer-process-jiq4CZD0.js.map} +1 -1
- package/dist/{external-optimizer-subprocess-GO6s84Ov.js → external-optimizer-subprocess-DUOcOqly.js} +2 -2
- package/dist/{external-optimizer-subprocess-GO6s84Ov.js.map → external-optimizer-subprocess-DUOcOqly.js.map} +1 -1
- package/dist/failure-cluster-OvKQ0BTq.d.ts +32 -0
- package/dist/failure-cluster-OvKQ0BTq.d.ts.map +1 -0
- package/dist/{failure-cluster-DOoa7CBg.d.ts → failure-taxonomy-C_SQZ_SJ.d.ts} +2 -30
- package/dist/failure-taxonomy-C_SQZ_SJ.d.ts.map +1 -0
- package/dist/{feedback-trajectory-DxkG5EPi.d.ts → feedback-trajectory-BbwTH49m.d.ts} +3 -3
- package/dist/{feedback-trajectory-DxkG5EPi.d.ts.map → feedback-trajectory-BbwTH49m.d.ts.map} +1 -1
- package/dist/{findings-store-CTy71Lnr.js → findings-store-B7JpmgJx.js} +3 -3
- package/dist/{findings-store-CTy71Lnr.js.map → findings-store-B7JpmgJx.js.map} +1 -1
- package/dist/fuzz.js +1 -1
- package/dist/harness-session-lines-hAxOvmtP.js +205 -0
- package/dist/harness-session-lines-hAxOvmtP.js.map +1 -0
- package/dist/{hf-dataset-Bv114tzB.js → hf-dataset-Cc81I0vQ.js} +65 -141
- package/dist/hf-dataset-Cc81I0vQ.js.map +1 -0
- package/dist/hosted/index.js +1 -1
- package/dist/{index-BI9ecONy.d.ts → index-8hbrQwdR.d.ts} +26 -11
- package/dist/index-8hbrQwdR.d.ts.map +1 -0
- package/dist/{index-AjfEHHA8.d.ts → index-BFpDeCuS.d.ts} +7 -7
- package/dist/{index-AjfEHHA8.d.ts.map → index-BFpDeCuS.d.ts.map} +1 -1
- package/dist/{index-DHWFYUVW.d.ts → index-Bcy00QoN.d.ts} +87 -144
- package/dist/index-Bcy00QoN.d.ts.map +1 -0
- package/dist/{index-BriU7rfL.d.ts → index-BfxYoHGF.d.ts} +226 -6
- package/dist/index-BfxYoHGF.d.ts.map +1 -0
- package/dist/{index-D-0mg-eu.d.ts → index-BnqugnsM.d.ts} +31 -11
- package/dist/index-BnqugnsM.d.ts.map +1 -0
- package/dist/{index-C8a9Dyan.d.ts → index-BwJtNdaj.d.ts} +21 -24
- package/dist/index-BwJtNdaj.d.ts.map +1 -0
- package/dist/{index-VSN1IZQp.d.ts → index-Yec_iihg.d.ts} +4 -3
- package/dist/index-Yec_iihg.d.ts.map +1 -0
- package/dist/index.d.ts +34 -31
- package/dist/index.js +21 -21
- package/dist/{integrity-BHM4voOx.js → integrity-BSs9dgKW.js} +3 -3
- package/dist/{integrity-BHM4voOx.js.map → integrity-BSs9dgKW.js.map} +1 -1
- package/dist/{journal-CTX5uK-n.js → journal-F3msN9OD.js} +5 -399
- package/dist/journal-F3msN9OD.js.map +1 -0
- package/dist/journal-file-AekB57Er.js +400 -0
- package/dist/journal-file-AekB57Er.js.map +1 -0
- package/dist/judge-calibration-DnrbQaXI.d.ts +144 -0
- package/dist/judge-calibration-DnrbQaXI.d.ts.map +1 -0
- package/dist/{judge-gate-DsoI5tx7.js → judge-gate-MP1rHOB4.js} +2 -2
- package/dist/{judge-gate-DsoI5tx7.js.map → judge-gate-MP1rHOB4.js.map} +1 -1
- package/dist/ledger-core/index.js +3 -2
- package/dist/{ledger-core-24IxvmVY.js → ledger-core-COxrkkZi.js} +2 -2
- package/dist/{ledger-core-24IxvmVY.js.map → ledger-core-COxrkkZi.js.map} +1 -1
- package/dist/{llm-judge-DzAT7Wka.js → llm-judge-Cc33WVHX.js} +102 -27
- package/dist/llm-judge-Cc33WVHX.js.map +1 -0
- package/dist/{matrix-DdniPG_M.d.ts → matrix-D0fEU0fq.d.ts} +2 -2
- package/dist/{matrix-DdniPG_M.d.ts.map → matrix-D0fEU0fq.d.ts.map} +1 -1
- package/dist/meta-eval/index.d.ts +3 -3
- package/dist/meta-eval/index.js +6 -6
- package/dist/{mint-Ck92efNo.js → mint-g8elU5yW.js} +11 -35
- package/dist/mint-g8elU5yW.js.map +1 -0
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/{outcome-observations-DPkH-LHQ.js → outcome-observations-YFFmdGGW.js} +2 -2
- package/dist/{outcome-observations-DPkH-LHQ.js.map → outcome-observations-YFFmdGGW.js.map} +1 -1
- package/dist/{paired-arms-DjMEtYI9.js → paired-arms-CMSTbLqX.js} +2 -2
- package/dist/{paired-arms-DjMEtYI9.js.map → paired-arms-CMSTbLqX.js.map} +1 -1
- package/dist/{paired-promotion-decision-DawN2o0G.d.ts → paired-promotion-decision-BBSxTo-h.d.ts} +2 -2
- package/dist/{paired-promotion-decision-DawN2o0G.d.ts.map → paired-promotion-decision-BBSxTo-h.d.ts.map} +1 -1
- package/dist/{paired-promotion-decision-Bi9__RQS.js → paired-promotion-decision-BoWHWL1i.js} +2 -2
- package/dist/{paired-promotion-decision-Bi9__RQS.js.map → paired-promotion-decision-BoWHWL1i.js.map} +1 -1
- package/dist/{paired-promotion-power-D03cUj9E.js → paired-promotion-power-BXH3gzvs.js} +3 -3
- package/dist/{paired-promotion-power-D03cUj9E.js.map → paired-promotion-power-BXH3gzvs.js.map} +1 -1
- package/dist/{pareto-UzjB3ZBk.js → pareto-B226QGVD.js} +54 -47
- package/dist/pareto-B226QGVD.js.map +1 -0
- package/dist/pipelines/index.d.ts +1 -1
- package/dist/pipelines/index.js +1 -1
- package/dist/{prime-protocol-RUPtoYiI.d.ts → prime-protocol-3aHqoxSH.d.ts} +2 -2
- package/dist/{prime-protocol-RUPtoYiI.d.ts.map → prime-protocol-3aHqoxSH.d.ts.map} +1 -1
- package/dist/profile-cell.d.ts +2 -2
- package/dist/{promotion-gate-DG_PSJx_.d.ts → promotion-gate-D-ffRHFQ.d.ts} +3 -3
- package/dist/{promotion-gate-DG_PSJx_.d.ts.map → promotion-gate-D-ffRHFQ.d.ts.map} +1 -1
- package/dist/{promotion-policy-DCgftbnd.js → promotion-policy-CfgRPGx0.js} +4 -4
- package/dist/{promotion-policy-DCgftbnd.js.map → promotion-policy-CfgRPGx0.js.map} +1 -1
- package/dist/{proposal-findings-CS6LoGGp.js → proposal-findings-BFtn6Lcx.js} +2 -2
- package/dist/{proposal-findings-CS6LoGGp.js.map → proposal-findings-BFtn6Lcx.js.map} +1 -1
- package/dist/{registry-BqoX13FD.d.ts → registry-x5n4GeBx.d.ts} +3 -3
- package/dist/{registry-BqoX13FD.d.ts.map → registry-x5n4GeBx.d.ts.map} +1 -1
- package/dist/{release-confidence-B4Xxdpmn.js → release-confidence-baM0TqCx.js} +2 -2
- package/dist/{release-confidence-B4Xxdpmn.js.map → release-confidence-baM0TqCx.js.map} +1 -1
- package/dist/reporting.d.ts +13 -6
- package/dist/reporting.d.ts.map +1 -1
- package/dist/reporting.js +5 -5
- package/dist/{summary-report-9kwI6jFQ.d.ts → research-report-CUbXuGX-.d.ts} +6 -121
- package/dist/research-report-CUbXuGX-.d.ts.map +1 -0
- package/dist/{researcher-BuojS14L.d.ts → researcher-D6D7q9uQ.d.ts} +4 -4
- package/dist/{researcher-BuojS14L.d.ts.map → researcher-D6D7q9uQ.d.ts.map} +1 -1
- package/dist/{reward-hacking-BYiDFbIl.js → reward-hacking-DNiHskry.js} +2 -2
- package/dist/{reward-hacking-BYiDFbIl.js.map → reward-hacking-DNiHskry.js.map} +1 -1
- package/dist/{reward-hacking-CIdVwVe4.d.ts → reward-hacking-_CAip56v.d.ts} +2 -2
- package/dist/{reward-hacking-CIdVwVe4.d.ts.map → reward-hacking-_CAip56v.d.ts.map} +1 -1
- package/dist/rl.d.ts +35 -17
- package/dist/rl.d.ts.map +1 -1
- package/dist/rl.js +116 -24
- package/dist/rl.js.map +1 -1
- package/dist/rollout/index.d.ts +5 -6
- package/dist/rollout/index.js +7 -6
- package/dist/{rollout-B86tqluQ.js → rollout-CCh4eSB3.js} +6 -5
- package/dist/{rollout-B86tqluQ.js.map → rollout-CCh4eSB3.js.map} +1 -1
- package/dist/{rollout-nodes-DhSPJ2X7.js → rollout-nodes-DzmHlPAC.js} +2 -2
- package/dist/rollout-nodes-DzmHlPAC.js.map +1 -0
- package/dist/{rubric-predictive-validity-Bbi88Aut.d.ts → rubric-predictive-validity-BTN3nNhC.d.ts} +2 -2
- package/dist/{rubric-predictive-validity-Bbi88Aut.d.ts.map → rubric-predictive-validity-BTN3nNhC.d.ts.map} +1 -1
- package/dist/{rubric-predictive-validity-DL7gJ51F.js → rubric-predictive-validity-Cln7r56F.js} +2 -2
- package/dist/{rubric-predictive-validity-DL7gJ51F.js.map → rubric-predictive-validity-Cln7r56F.js.map} +1 -1
- package/dist/{run-record-DTTx9Ktr.js → run-record-CbrxTcCO.js} +2 -2
- package/dist/{run-record-DTTx9Ktr.js.map → run-record-CbrxTcCO.js.map} +1 -1
- package/dist/{run-record-pBlhZizT.d.ts → run-record-hti3ETmO.d.ts} +2 -2
- package/dist/{run-record-pBlhZizT.d.ts.map → run-record-hti3ETmO.d.ts.map} +1 -1
- package/dist/{runtime-rollouts-BNrm5nC_.js → runtime-rollouts-C_hBaYXe.js} +279 -55
- package/dist/{runtime-rollouts-BNrm5nC_.js.map → runtime-rollouts-C_hBaYXe.js.map} +1 -1
- package/dist/{schema-PDKQ_iNE.d.ts → schema-BTTzvMnn.d.ts} +24 -5
- package/dist/schema-BTTzvMnn.d.ts.map +1 -0
- package/dist/{schema-ChIZfnqY.js → schema-b18jtzZw.js} +56 -3
- package/dist/schema-b18jtzZw.js.map +1 -0
- package/dist/search/index.d.ts +2 -2
- package/dist/search/index.js +2 -2
- package/dist/{search-kernel-C4XnLKIW.d.ts → search-kernel-IpyhPDQd.d.ts} +287 -276
- package/dist/search-kernel-IpyhPDQd.d.ts.map +1 -0
- package/dist/{search-ledger-9liYyZf5.js → search-ledger-D_ENQh0d.js} +4 -4
- package/dist/{search-ledger-9liYyZf5.js.map → search-ledger-D_ENQh0d.js.map} +1 -1
- package/dist/{search-ledger-file-BhOdgYIt.js → search-ledger-file-J8Xh9pU_.js} +3 -3
- package/dist/{search-ledger-file-BhOdgYIt.js.map → search-ledger-file-J8Xh9pU_.js.map} +1 -1
- package/dist/{search-shipper-B6tMNx1I.js → search-shipper-BUf7s92U.js} +3 -3
- package/dist/{search-shipper-B6tMNx1I.js.map → search-shipper-BUf7s92U.js.map} +1 -1
- package/dist/{search-summary-CISbbxyr.js → search-summary-B2RpvkkQ.js} +5 -5
- package/dist/{search-summary-CISbbxyr.js.map → search-summary-B2RpvkkQ.js.map} +1 -1
- package/dist/{sequential-1-T2oi1_.d.ts → sequential-B-zx24n_.d.ts} +2 -2
- package/dist/{sequential-1-T2oi1_.d.ts.map → sequential-B-zx24n_.d.ts.map} +1 -1
- package/dist/{sequential-Ko7T-zvu.js → sequential-C6k0Wrb7.js} +3 -3
- package/dist/{sequential-Ko7T-zvu.js.map → sequential-C6k0Wrb7.js.map} +1 -1
- package/dist/{sequential-9TVb5Nu5.js → sequential-pLr7Ukad.js} +3 -3
- package/dist/{sequential-9TVb5Nu5.js.map → sequential-pLr7Ukad.js.map} +1 -1
- package/dist/{single-run-lock-CUj2tjxT.js → single-run-lock-BSKsoeQF.js} +2 -2
- package/dist/{single-run-lock-CUj2tjxT.js.map → single-run-lock-BSKsoeQF.js.map} +1 -1
- package/dist/{skillopt-optimization-method-BtX7xXDd.js → skillopt-optimization-method-BnR2yh-a.js} +11 -11
- package/dist/{skillopt-optimization-method-BtX7xXDd.js.map → skillopt-optimization-method-BnR2yh-a.js.map} +1 -1
- package/dist/{statistical-heldout-Bx1QUDNy.d.ts → statistical-heldout-AvgLVFp6.d.ts} +6 -6
- package/dist/{statistical-heldout-Bx1QUDNy.d.ts.map → statistical-heldout-AvgLVFp6.d.ts.map} +1 -1
- package/dist/{statistical-heldout-DLO4Ebos.js → statistical-heldout-BvcAVtof.js} +3 -3
- package/dist/{statistical-heldout-DLO4Ebos.js.map → statistical-heldout-BvcAVtof.js.map} +1 -1
- package/dist/{statistics-CvvC-MPv.js → statistics-CHs0jlsY.js} +184 -2
- package/dist/statistics-CHs0jlsY.js.map +1 -0
- package/dist/statistics.d.ts +2 -2
- package/dist/statistics.js +2 -2
- package/dist/{store-tool-spans-kCDPEwjL.d.ts → store-tool-spans-Bm0-YhHG.d.ts} +5 -5
- package/dist/{store-tool-spans-kCDPEwjL.d.ts.map → store-tool-spans-Bm0-YhHG.d.ts.map} +1 -1
- package/dist/{summary-report-BEhqoxrA.js → summary-report-BgdIlM_w.js} +3 -3
- package/dist/{summary-report-BEhqoxrA.js.map → summary-report-BgdIlM_w.js.map} +1 -1
- package/dist/summary-report-figures-BoFCoiOP.d.ts +112 -0
- package/dist/summary-report-figures-BoFCoiOP.d.ts.map +1 -0
- package/dist/supervisor-run/index.d.ts +32 -8
- package/dist/supervisor-run/index.d.ts.map +1 -1
- package/dist/supervisor-run/index.js +3 -3
- package/dist/{systemone-CSwi1hp-.d.ts → systemone-DPVj7a1g.d.ts} +7 -7
- package/dist/{systemone-CSwi1hp-.d.ts.map → systemone-DPVj7a1g.d.ts.map} +1 -1
- package/dist/{systemone-review-WpWosn3a.d.ts → systemone-review-CrnsTRav.d.ts} +2 -2
- package/dist/{systemone-review-WpWosn3a.d.ts.map → systemone-review-CrnsTRav.d.ts.map} +1 -1
- package/dist/systemone.d.ts +3 -3
- package/dist/systemone.js +1 -1
- package/dist/{tool-groups-Bcasvncd.d.ts → tool-groups-5pgmtTmE.d.ts} +3 -3
- package/dist/tool-groups-5pgmtTmE.d.ts.map +1 -0
- package/dist/{tool-waste-BqSmmPUz.js → tool-waste-DWSohyd3.js} +2 -2
- package/dist/{tool-waste-BqSmmPUz.js.map → tool-waste-DWSohyd3.js.map} +1 -1
- package/dist/{trace-questions-DI42jXPj.d.ts → trace-questions-ETZDn5ax.d.ts} +3 -3
- package/dist/{trace-questions-DI42jXPj.d.ts.map → trace-questions-ETZDn5ax.d.ts.map} +1 -1
- package/dist/trace-repair/index.d.ts +2 -2
- package/dist/trace-repair/index.js +1 -1
- package/dist/traces.d.ts +4 -4
- package/dist/training-admission-xaDOlQ_U.d.ts +31 -0
- package/dist/training-admission-xaDOlQ_U.d.ts.map +1 -0
- package/dist/{tree-D2cNtu9m.js → tree-DA_WI1aV.js} +5 -5
- package/dist/{tree-D2cNtu9m.js.map → tree-DA_WI1aV.js.map} +1 -1
- package/dist/{types-DbGSC2No.d.ts → types-Dtt11Ppr.d.ts} +2 -2
- package/dist/{types-DbGSC2No.d.ts.map → types-Dtt11Ppr.d.ts.map} +1 -1
- package/dist/{types-CLGrB4Sv.d.ts → types-_dfu6Ox2.d.ts} +4 -4
- package/dist/{types-CLGrB4Sv.d.ts.map → types-_dfu6Ox2.d.ts.map} +1 -1
- package/dist/{types-ByrbgALT.d.ts → types-qJwFZTqa.d.ts} +7 -6
- package/dist/types-qJwFZTqa.d.ts.map +1 -0
- package/dist/{types-CEgIBy0W.d.ts → types-rf0yhJmW.d.ts} +3 -3
- package/dist/{types-CEgIBy0W.d.ts.map → types-rf0yhJmW.d.ts.map} +1 -1
- package/dist/wire/index.d.ts +1 -1
- package/docs/adopt-stack.md +2 -0
- package/docs/concepts.md +4 -1
- package/docs/design/statistics-decisions.md +17 -0
- package/docs/rollout.md +124 -4
- package/docs/search-ledger.md +18 -1
- package/docs/trace-analysis.md +11 -3
- package/package.json +3 -3
- package/dist/agent-profile-cell-3kYxUsK2.d.ts.map +0 -1
- package/dist/analyze-runs-BaziIw93.d.ts.map +0 -1
- package/dist/benchmark-command-DRAHkn4D.js.map +0 -1
- package/dist/exporters-BKZLt1Px.js.map +0 -1
- package/dist/exporters-dQKYD_Zo.d.ts +0 -159
- package/dist/exporters-dQKYD_Zo.d.ts.map +0 -1
- package/dist/failure-cluster-DOoa7CBg.d.ts.map +0 -1
- package/dist/hf-dataset-Bv114tzB.js.map +0 -1
- package/dist/index-BI9ecONy.d.ts.map +0 -1
- package/dist/index-BriU7rfL.d.ts.map +0 -1
- package/dist/index-C8a9Dyan.d.ts.map +0 -1
- package/dist/index-D-0mg-eu.d.ts.map +0 -1
- package/dist/index-DHWFYUVW.d.ts.map +0 -1
- package/dist/index-VSN1IZQp.d.ts.map +0 -1
- package/dist/journal-CTX5uK-n.js.map +0 -1
- package/dist/llm-judge-DzAT7Wka.js.map +0 -1
- package/dist/mint-Ck92efNo.js.map +0 -1
- package/dist/pareto-UzjB3ZBk.js.map +0 -1
- package/dist/reward-ap_R9mCH.d.ts +0 -53
- package/dist/reward-ap_R9mCH.d.ts.map +0 -1
- package/dist/rollout-nodes-DhSPJ2X7.js.map +0 -1
- package/dist/schema-ChIZfnqY.js.map +0 -1
- package/dist/schema-PDKQ_iNE.d.ts.map +0 -1
- package/dist/search-kernel-C4XnLKIW.d.ts.map +0 -1
- package/dist/statistics-CvvC-MPv.js.map +0 -1
- package/dist/summary-report-9kwI6jFQ.d.ts.map +0 -1
- package/dist/tool-groups-Bcasvncd.d.ts.map +0 -1
- package/dist/types-ByrbgALT.d.ts.map +0 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { a as hashCanonical } from "./canonical-CicJlINA.js";
|
|
1
|
+
import { a as hashCanonical, o as jsonDocument } from "./canonical-CicJlINA.js";
|
|
2
2
|
import { l as unscreenedRewardFields, o as screenedRewardFields } from "./reward-DqMfaEax.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ut as summarizeNumberSeries } from "./statistics-CHs0jlsY.js";
|
|
4
4
|
import { t as roundDecimal } from "./round-decimal-ZmjAQPo1.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { T as licenseClassOfName, h as unresolvedNativeCaptures, m as sameNativeCaptureIdentity } from "./schema-b18jtzZw.js";
|
|
6
|
+
import { n as toJsonl } from "./exporters-CfKvJlti.js";
|
|
7
|
+
import { a as harnessSessionToolInventory, r as harnessSessionRolloutLine, t as harnessSessionBindings } from "./harness-session-lines-hAxOvmtP.js";
|
|
8
|
+
import { _ as showMeasured, a as readTerminalRecord, c as parseJsonRecord, d as recordOrNull, f as workerSourceKey, g as isUnavailable, h as SUPERVISOR_RUN_SCHEMA, l as parseJsonl, n as supervisorRunRolloutLinesFromFacts, o as asRecord, p as NO_SOURCE_LIMITS, s as nonEmptyString, u as parseSupervisorTree, v as unavailable, y as expandJournalEventGroup } from "./rollout-nodes-DzmHlPAC.js";
|
|
7
9
|
import { basename, join } from "node:path";
|
|
8
10
|
import { readFile, readdir, stat } from "node:fs/promises";
|
|
9
11
|
import { sandboxEventsSession, toChatMessages, toOtlpSpans } from "@tangle-network/harness-sessions";
|
|
@@ -1623,22 +1625,9 @@ function renderSupervisorRollupMarkdown(rollup, title = "Round rollup") {
|
|
|
1623
1625
|
}
|
|
1624
1626
|
// src/supervisor-run/runtime-rollouts.ts
|
|
1625
1627
|
/**
|
|
1626
|
-
*
|
|
1627
|
-
*
|
|
1628
|
-
*
|
|
1629
|
-
* - Producer: each node's `materialized` receipt names the model it ran on
|
|
1630
|
-
* (`opencode/zai-coding-plan/glm-5.3` → harness, provider, model), and the
|
|
1631
|
-
* root's `root-segment` names the root's. The license class follows.
|
|
1632
|
-
* - Episode: each execution's input (`execution-input.taskRef`) and result
|
|
1633
|
-
* (`execution-result.outRef`, a `{content, events}` blob), read as Sandbox
|
|
1634
|
-
* sessions in order, so a node steered twice keeps both turns and every tool
|
|
1635
|
-
* call. A node with no event stream stays a lossy projection.
|
|
1636
|
-
* - A node respawned under the same id (a reopened run) is one row.
|
|
1637
|
-
* - Reward: the caller's `RunVerdict` on the root row. The caller owns what
|
|
1638
|
-
* its check means; this reader owns how a reward is screened and when a
|
|
1639
|
-
* stopped episode is whole.
|
|
1640
|
-
*
|
|
1641
|
-
* Every read is of files Runtime already wrote; nothing in the run dir is changed.
|
|
1628
|
+
* Project retained Runtime records to canonical rollout rows without changing source files.
|
|
1629
|
+
* Preserve structured inputs, harness-scoped child lineage and attempt-bound native capture.
|
|
1630
|
+
* The owner verifies complete transcript families; unreadable evidence references remain gaps.
|
|
1642
1631
|
*/
|
|
1643
1632
|
/** `opencode/zai-coding-plan/glm-5.3` → harness, provider, model. */
|
|
1644
1633
|
function producerOf(id) {
|
|
@@ -1659,7 +1648,7 @@ function producerOf(id) {
|
|
|
1659
1648
|
model: id
|
|
1660
1649
|
};
|
|
1661
1650
|
}
|
|
1662
|
-
/**
|
|
1651
|
+
/** Only the transcript projection gap is discharged; independent workspace gaps remain. */
|
|
1663
1652
|
function wholeEpisode({ lossy_projection: _, gap, ...kept }) {
|
|
1664
1653
|
const workspace = gap?.match(/workspace capture evidence \w+/u)?.[0];
|
|
1665
1654
|
return workspace === void 0 ? kept : {
|
|
@@ -1672,7 +1661,10 @@ async function journalFacts(runDir) {
|
|
|
1672
1661
|
const facts = /* @__PURE__ */ new Map();
|
|
1673
1662
|
const raw = await readFile(join(runDir, "spawn-journal.jsonl"), "utf8").catch(() => "");
|
|
1674
1663
|
const node = (id) => {
|
|
1675
|
-
const fact = facts.get(id) ?? {
|
|
1664
|
+
const fact = facts.get(id) ?? {
|
|
1665
|
+
executions: [],
|
|
1666
|
+
roots: /* @__PURE__ */ new Set()
|
|
1667
|
+
};
|
|
1676
1668
|
facts.set(id, fact);
|
|
1677
1669
|
return fact;
|
|
1678
1670
|
};
|
|
@@ -1683,8 +1675,10 @@ async function journalFacts(runDir) {
|
|
|
1683
1675
|
const event = recordOrNull(entry.event);
|
|
1684
1676
|
const id = text(event?.id);
|
|
1685
1677
|
if (event === null || id === void 0) continue;
|
|
1686
|
-
if (event.kind === "spawned")
|
|
1687
|
-
|
|
1678
|
+
if (event.kind === "spawned") {
|
|
1679
|
+
for (const root of [text(entry.root), text(event.ownedTreeRoot)]) if (root !== void 0) node(id).roots.add(root);
|
|
1680
|
+
node(id).taskRef ??= text(recordOrNull(event.identity)?.taskDigest);
|
|
1681
|
+
} else if (event.kind === "materialized") {
|
|
1688
1682
|
const model = recordOrNull(recordOrNull(event.receipt)?.model);
|
|
1689
1683
|
if (model?.status === "known" && text(model.id)) node(id).model = text(model.id);
|
|
1690
1684
|
} else if (event.kind === "root-segment") {
|
|
@@ -1695,18 +1689,43 @@ async function journalFacts(runDir) {
|
|
|
1695
1689
|
text(to?.provider),
|
|
1696
1690
|
model
|
|
1697
1691
|
].join("/");
|
|
1698
|
-
} else if (event.kind === "
|
|
1692
|
+
} else if (event.kind === "execution-bound") node(id).attemptId = text(recordOrNull(event.binding)?.attemptId);
|
|
1693
|
+
else if (event.kind === "settled" && text(event.outRef)) node(id).outRef = text(event.outRef);
|
|
1699
1694
|
else if (event.kind === "execution-input") {
|
|
1700
1695
|
const fact = node(id);
|
|
1701
|
-
|
|
1702
|
-
fact.
|
|
1696
|
+
const at = text(event.at);
|
|
1697
|
+
fact.executions.push({
|
|
1698
|
+
taskRef: text(event.taskRef),
|
|
1699
|
+
at,
|
|
1700
|
+
captures: []
|
|
1701
|
+
});
|
|
1702
|
+
fact.unansweredSince ??= at;
|
|
1703
1703
|
} else if (event.kind === "execution-result" && text(event.outRef)) {
|
|
1704
1704
|
const fact = node(id);
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1705
|
+
let execution = fact.executions.at(-1);
|
|
1706
|
+
if (execution === void 0 || execution.outRef !== void 0) {
|
|
1707
|
+
execution = {
|
|
1708
|
+
taskRef: fact.taskRef,
|
|
1709
|
+
captures: []
|
|
1710
|
+
};
|
|
1711
|
+
fact.executions.push(execution);
|
|
1712
|
+
}
|
|
1713
|
+
execution.outRef = text(event.outRef);
|
|
1714
|
+
fact.unansweredSince = fact.executions.find((item) => item.outRef === void 0)?.at;
|
|
1715
|
+
} else if (event.kind === "execution-evidence" && text(event.outRef)) {
|
|
1716
|
+
const fact = node(id);
|
|
1717
|
+
let execution = fact.executions.at(-1);
|
|
1718
|
+
if (execution === void 0) {
|
|
1719
|
+
execution = {
|
|
1720
|
+
taskRef: fact.taskRef,
|
|
1721
|
+
captures: []
|
|
1722
|
+
};
|
|
1723
|
+
fact.executions.push(execution);
|
|
1724
|
+
}
|
|
1725
|
+
if (!fact.executions.some((item) => item.captures.some((capture) => capture.ref === event.outRef))) execution.captures.push({
|
|
1726
|
+
ref: event.outRef,
|
|
1727
|
+
attemptId: fact.attemptId,
|
|
1728
|
+
rowAttemptId: text(event.attemptId)
|
|
1710
1729
|
});
|
|
1711
1730
|
}
|
|
1712
1731
|
}
|
|
@@ -1718,30 +1737,175 @@ async function blobValue(runDir, ref) {
|
|
|
1718
1737
|
if (ref === void 0 || !/^sha256:[0-9a-f]{64}$/u.test(ref)) return void 0;
|
|
1719
1738
|
return readJson(join(runDir, "blobs", `${ref.replace(":", "-")}.json`));
|
|
1720
1739
|
}
|
|
1721
|
-
/**
|
|
1722
|
-
async function
|
|
1723
|
-
const
|
|
1740
|
+
/** Verify generic evidence before classifying it; unreadable bytes cannot identify their kind. */
|
|
1741
|
+
async function executionEvidenceValue(runDir, ref) {
|
|
1742
|
+
const value = await blobValue(runDir, ref);
|
|
1743
|
+
try {
|
|
1744
|
+
return value !== void 0 && hashCanonical(jsonDocument(value)) === ref ? value : void 0;
|
|
1745
|
+
} catch {
|
|
1746
|
+
return;
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
/** Keep a structured task whole. Picking only `instruction` would discard its conditioning. */
|
|
1750
|
+
function taskText(input) {
|
|
1751
|
+
if (typeof input === "string") return input;
|
|
1752
|
+
return input === void 0 || input === null ? void 0 : JSON.stringify(input);
|
|
1753
|
+
}
|
|
1754
|
+
/** A cumulative capture cannot rewrite or remove already-retained conversation or child identity. */
|
|
1755
|
+
function extendsSession(previous, next) {
|
|
1756
|
+
if (previous.parentNativeSessionId !== next.parentNativeSessionId) return false;
|
|
1757
|
+
const before = toChatMessages(previous);
|
|
1758
|
+
const after = toChatMessages(next);
|
|
1759
|
+
const bindings = harnessSessionBindings(next);
|
|
1760
|
+
const messageIds = new Set(next.messages.map((message) => message.id));
|
|
1761
|
+
if (bindings === null || messageIds.size !== next.messages.length) return false;
|
|
1762
|
+
const { calls, snapshots } = bindings;
|
|
1763
|
+
return after.length >= before.length && hashCanonical(jsonDocument(before)) === hashCanonical(jsonDocument(after.slice(0, before.length))) && previous.messages.every((message, index) => next.messages[index]?.id === message.id && next.messages[index]?.modelCallId === message.modelCallId) && previous.modelCalls.every((call) => calls.has(call.id) && calls.get(call.id).toolDefinitionSnapshotId === call.toolDefinitionSnapshotId && calls.get(call.id).provider === call.provider && calls.get(call.id).servedModel === call.servedModel && calls.get(call.id).requestedModel === call.requestedModel) && (previous.toolDefinitionSnapshots ?? []).every((snapshot) => snapshots.has(snapshot.id) && hashCanonical(jsonDocument(snapshots.get(snapshot.id))) === hashCanonical(jsonDocument(snapshot))) && previous.children.every((child) => next.children.some((item) => item.nativeSessionId === child.nativeSessionId && item.toolCallId === child.toolCallId));
|
|
1764
|
+
}
|
|
1765
|
+
/** The evidence row names the attempt; older Runtime records carry it in the record's `node`. */
|
|
1766
|
+
function evidenceAttempt(row, recorded) {
|
|
1767
|
+
if (row !== void 0 && recorded !== void 0 && row !== recorded) return { gap: `native evidence attempt differs: execution-evidence row ${row}, record ${recorded}` };
|
|
1768
|
+
const attemptId = row ?? recorded;
|
|
1769
|
+
if (attemptId === void 0) return { gap: "native evidence attempt missing from the execution-evidence row and the record" };
|
|
1770
|
+
return { attemptId };
|
|
1771
|
+
}
|
|
1772
|
+
/** Verify every attempt, retaining partial executions as audit evidence. */
|
|
1773
|
+
async function nodeSessions(runDir, harness, id, fact, options) {
|
|
1774
|
+
const executions = fact.executions.length > 0 ? fact.executions : [{
|
|
1724
1775
|
taskRef: fact.taskRef,
|
|
1725
|
-
outRef: fact.outRef
|
|
1776
|
+
outRef: fact.outRef,
|
|
1777
|
+
captures: []
|
|
1726
1778
|
}];
|
|
1727
1779
|
const sessions = [];
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1780
|
+
const native = /* @__PURE__ */ new Map();
|
|
1781
|
+
const nativePositions = /* @__PURE__ */ new Map();
|
|
1782
|
+
const captures = [];
|
|
1783
|
+
const recoverable = /* @__PURE__ */ new Set();
|
|
1784
|
+
const gaps = [];
|
|
1785
|
+
for (const [index, execution] of executions.entries()) {
|
|
1786
|
+
let verified = false;
|
|
1787
|
+
let hasNativeMessages = false;
|
|
1788
|
+
let foundCapture = false;
|
|
1789
|
+
for (const capture of execution.captures) {
|
|
1790
|
+
const value = await executionEvidenceValue(runDir, capture.ref);
|
|
1791
|
+
const wrapper = recordOrNull(value);
|
|
1792
|
+
if (value !== void 0 && wrapper?.kind !== "harness-transcript") continue;
|
|
1793
|
+
foundCapture = true;
|
|
1794
|
+
const binding = recordOrNull(wrapper?.node);
|
|
1795
|
+
const rootId = text(binding?.rootId);
|
|
1796
|
+
const attempt = evidenceAttempt(capture.rowAttemptId, text(binding?.attemptId));
|
|
1797
|
+
const attemptId = attempt.attemptId;
|
|
1798
|
+
const receipt = recordOrNull(wrapper?.harnessTranscript);
|
|
1799
|
+
const taskRef = text(wrapper?.taskRef);
|
|
1800
|
+
const resultRef = text(wrapper?.outRef);
|
|
1801
|
+
let reason = null;
|
|
1802
|
+
let read = [];
|
|
1803
|
+
if (value === void 0) reason = "execution evidence blob unavailable, malformed or failed content verification";
|
|
1804
|
+
else if (wrapper?.schemaVersion !== 1) reason = "native evidence wrapper failed content verification";
|
|
1805
|
+
else if (attempt.gap !== void 0) reason = attempt.gap;
|
|
1806
|
+
else if (!rootId || !attemptId || binding?.nodeId !== id || capture.attemptId !== attemptId || !fact.roots.has(rootId)) reason = "native evidence has no matching execution-bound attempt or spawn root";
|
|
1807
|
+
else if (execution.taskRef !== void 0 && taskRef !== execution.taskRef) reason = "native evidence task does not match execution input";
|
|
1808
|
+
else if (execution.outRef !== void 0 && resultRef !== execution.outRef) reason = "native evidence result does not match execution output";
|
|
1809
|
+
else if (receipt?.status === "unavailable") {
|
|
1810
|
+
reason = text(receipt.reason) ?? "native capture unavailable";
|
|
1811
|
+
recoverable.add(capture.ref);
|
|
1812
|
+
} else if (!options.readNativeTranscript) reason = "verified native transcript loader unavailable";
|
|
1813
|
+
else try {
|
|
1814
|
+
const loaded = await options.readNativeTranscript({
|
|
1815
|
+
runDir,
|
|
1816
|
+
nodeId: id,
|
|
1817
|
+
rootId,
|
|
1818
|
+
attemptId,
|
|
1819
|
+
taskRef,
|
|
1820
|
+
resultRef,
|
|
1821
|
+
receipt
|
|
1822
|
+
});
|
|
1823
|
+
if (!loaded.succeeded) reason = loaded.error;
|
|
1824
|
+
else {
|
|
1825
|
+
read = loaded.value.sessions;
|
|
1826
|
+
if (read.length === 0) reason = "native transcript family is empty";
|
|
1827
|
+
else if (!read.some((session) => session.parentNativeSessionId === null)) reason = "native transcript forest has no root";
|
|
1828
|
+
else if (read.some((session) => session.integrity.truncated || session.integrity.unparsedRecords > 0 || session.integrity.gaps.length > 0)) reason = "native transcript family has capture gaps";
|
|
1829
|
+
else if (read.some((session) => session.ending.status === "open" || session.ending.status === "aborted")) reason = "native transcript family has an unfinished session";
|
|
1830
|
+
}
|
|
1831
|
+
} catch (error) {
|
|
1832
|
+
reason = error instanceof Error ? error.message : String(error);
|
|
1833
|
+
}
|
|
1834
|
+
if (reason === null && read.some((session) => {
|
|
1835
|
+
const previous = native.get(`${session.harness}:${session.nativeSessionId}`);
|
|
1836
|
+
return previous !== void 0 && !extendsSession(previous, session);
|
|
1837
|
+
})) reason = "native cumulative snapshot conflicts with retained conversation or child identity";
|
|
1838
|
+
const projected = {
|
|
1839
|
+
execution_index: index,
|
|
1840
|
+
evidence_ref: capture.ref,
|
|
1841
|
+
root_id: rootId ?? null,
|
|
1842
|
+
attempt_id: attemptId ?? null,
|
|
1843
|
+
task_ref: taskRef ?? null,
|
|
1844
|
+
result_ref: resultRef ?? null,
|
|
1845
|
+
transcript_ref: text(receipt?.transcriptRef) ?? null,
|
|
1846
|
+
verified: reason === null,
|
|
1847
|
+
gap: reason,
|
|
1848
|
+
native_session_ids: read.map((session) => session.nativeSessionId)
|
|
1849
|
+
};
|
|
1850
|
+
if (projected.verified) {
|
|
1851
|
+
for (const prior of captures) if (recoverable.has(prior.evidence_ref) && sameNativeCaptureIdentity(prior, projected)) prior.resolved_by = projected.evidence_ref;
|
|
1852
|
+
verified = true;
|
|
1853
|
+
}
|
|
1854
|
+
captures.push(projected);
|
|
1855
|
+
for (const session of read) {
|
|
1856
|
+
const key = `${session.harness}:${session.nativeSessionId}`;
|
|
1857
|
+
const previous = native.get(key);
|
|
1858
|
+
if (previous !== void 0 && !extendsSession(previous, session)) {
|
|
1859
|
+
if (session.parentNativeSessionId === null) hasNativeMessages = true;
|
|
1860
|
+
continue;
|
|
1861
|
+
}
|
|
1862
|
+
native.set(key, session);
|
|
1863
|
+
if (session.parentNativeSessionId !== null) continue;
|
|
1864
|
+
hasNativeMessages = true;
|
|
1865
|
+
const position = nativePositions.get(key);
|
|
1866
|
+
if (position === void 0) {
|
|
1867
|
+
nativePositions.set(key, sessions.length);
|
|
1868
|
+
sessions.push(session);
|
|
1869
|
+
} else sessions[position] = session;
|
|
1870
|
+
}
|
|
1871
|
+
execution.taskRef ??= taskRef;
|
|
1872
|
+
execution.outRef ??= resultRef;
|
|
1873
|
+
}
|
|
1874
|
+
if (!foundCapture) gaps.push(`execution ${index}: no attempt-bound native transcript evidence`);
|
|
1875
|
+
if (execution.outRef === void 0) gaps.push(`execution ${index}: execution result unavailable`);
|
|
1876
|
+
if (verified || hasNativeMessages) continue;
|
|
1877
|
+
const [input, result] = await Promise.all([blobValue(runDir, execution.taskRef), blobValue(runDir, execution.outRef)]);
|
|
1878
|
+
const task = taskText(input);
|
|
1731
1879
|
const answer = text(result) ?? text(recordOrNull(result)?.content);
|
|
1732
1880
|
const stream = recordOrNull(result)?.events;
|
|
1733
1881
|
const events = Array.isArray(stream) ? stream : [];
|
|
1734
|
-
if (task === void 0
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1882
|
+
if (task === void 0) gaps.push(`execution ${index}: execution input unavailable`);
|
|
1883
|
+
if (result === void 0) gaps.push(`execution ${index}: execution output blob unavailable`);
|
|
1884
|
+
if (task !== void 0 || answer !== void 0 || events.length > 0) {
|
|
1885
|
+
const session = sandboxEventsSession({
|
|
1886
|
+
harness,
|
|
1887
|
+
nativeSessionId: `${id}:${index}`,
|
|
1888
|
+
task: task ?? "",
|
|
1889
|
+
answer: answer ?? "",
|
|
1890
|
+
events
|
|
1891
|
+
});
|
|
1892
|
+
if (task === void 0) session.messages = session.messages.filter((message) => message.id !== `${id}:${index}:task`);
|
|
1893
|
+
sessions.push(session);
|
|
1894
|
+
}
|
|
1743
1895
|
}
|
|
1744
|
-
|
|
1896
|
+
const nativeSessions = [...native.values()];
|
|
1897
|
+
const keys = new Set(nativeSessions.map((session) => `${session.harness}:${session.nativeSessionId}`));
|
|
1898
|
+
for (const session of nativeSessions) {
|
|
1899
|
+
if (session.parentNativeSessionId !== null && !keys.has(`${session.harness}:${session.parentNativeSessionId}`)) gaps.push(`native parent ${session.parentNativeSessionId} unavailable`);
|
|
1900
|
+
for (const child of session.children) if (!keys.has(`${session.harness}:${child.nativeSessionId}`)) gaps.push(`native child ${child.nativeSessionId} unavailable`);
|
|
1901
|
+
}
|
|
1902
|
+
for (const capture of unresolvedNativeCaptures(captures)) gaps.push(`execution ${capture.execution_index}: ${capture.gap}`);
|
|
1903
|
+
return {
|
|
1904
|
+
sessions,
|
|
1905
|
+
native: nativeSessions,
|
|
1906
|
+
captures,
|
|
1907
|
+
gaps
|
|
1908
|
+
};
|
|
1745
1909
|
}
|
|
1746
1910
|
/**
|
|
1747
1911
|
* The root's outcome under the caller's verdict. A run stopped on its success reads `cancelled`;
|
|
@@ -1784,16 +1948,34 @@ async function runtimeRunRolloutLines(runDir, options = {}) {
|
|
|
1784
1948
|
const facts = await journalFacts(runDir);
|
|
1785
1949
|
const lines = [];
|
|
1786
1950
|
const otlp = /* @__PURE__ */ new Map();
|
|
1951
|
+
const captureGaps = [];
|
|
1787
1952
|
for (const node of tree.nodes) {
|
|
1788
|
-
const fact = facts.get(node.rollout_id) ?? {
|
|
1953
|
+
const fact = facts.get(node.rollout_id) ?? {
|
|
1954
|
+
executions: [],
|
|
1955
|
+
roots: /* @__PURE__ */ new Set()
|
|
1956
|
+
};
|
|
1789
1957
|
const producer = fact.model === void 0 ? null : producerOf(fact.model);
|
|
1790
1958
|
const license = licenseClassOfName(producer?.model) ?? licenseClassOfName(producer?.harness);
|
|
1791
|
-
const
|
|
1959
|
+
const episode = await nodeSessions(runDir, producer?.harness ?? node.policy.harness ?? "sandbox", node.rollout_id, fact, options);
|
|
1960
|
+
if (tree.gaps.some((gap) => gap.code === "journal-unavailable" || gap.code === "source-row-malformed")) episode.gaps.push("supervision journal has unreadable execution evidence");
|
|
1961
|
+
const sessions = episode.sessions;
|
|
1962
|
+
const inventory = harnessSessionToolInventory(sessions);
|
|
1963
|
+
for (const message of episode.gaps) captureGaps.push({
|
|
1964
|
+
code: "transcript-capture-incomplete",
|
|
1965
|
+
nodeId: node.rollout_id,
|
|
1966
|
+
message
|
|
1967
|
+
});
|
|
1792
1968
|
const messages = sessions.flatMap((session) => toChatMessages(session));
|
|
1793
1969
|
const spans = sessions.map((session) => toOtlpSpans(session)).filter((s) => s.length > 1).flat();
|
|
1794
|
-
otlp.set(node.rollout_id, spans
|
|
1970
|
+
otlp.set(node.rollout_id, toJsonl(spans));
|
|
1971
|
+
const task = {
|
|
1972
|
+
...node.task,
|
|
1973
|
+
...options.split === void 0 ? {} : { split: options.split },
|
|
1974
|
+
...options.instanceId === void 0 ? {} : { instance_id: options.instanceId }
|
|
1975
|
+
};
|
|
1795
1976
|
lines.push({
|
|
1796
1977
|
...node,
|
|
1978
|
+
task,
|
|
1797
1979
|
policy: {
|
|
1798
1980
|
...node.policy,
|
|
1799
1981
|
...producer === null ? {} : {
|
|
@@ -1804,17 +1986,59 @@ async function runtimeRunRolloutLines(runDir, options = {}) {
|
|
|
1804
1986
|
...license === null ? {} : { license_class: license }
|
|
1805
1987
|
},
|
|
1806
1988
|
messages: sessions.length === 0 ? node.messages : messages,
|
|
1807
|
-
|
|
1989
|
+
tool_defs: inventory.tools,
|
|
1990
|
+
provenance: {
|
|
1991
|
+
...episode.gaps.length === 0 ? wholeEpisode(node.provenance) : {
|
|
1992
|
+
...node.provenance,
|
|
1993
|
+
lossy_projection: true,
|
|
1994
|
+
gap: [node.provenance.gap, ...episode.gaps].filter(Boolean).join("; ")
|
|
1995
|
+
},
|
|
1996
|
+
native_captures: episode.captures,
|
|
1997
|
+
...inventory.gap === void 0 ? {} : { tool_definitions_gap: inventory.gap }
|
|
1998
|
+
},
|
|
1808
1999
|
outcome: judged(node, verdict, fact.unansweredSince)
|
|
1809
2000
|
});
|
|
2001
|
+
for (const session of episode.native.filter((session) => session.parentNativeSessionId !== null)) {
|
|
2002
|
+
const child = harnessSessionRolloutLine(session, {
|
|
2003
|
+
harness: session.harness,
|
|
2004
|
+
format: session.format,
|
|
2005
|
+
nativeSessionId: session.nativeSessionId,
|
|
2006
|
+
parentNativeSessionId: session.parentNativeSessionId,
|
|
2007
|
+
path: runDir,
|
|
2008
|
+
files: session.integrity.sourceFiles.map((file) => file.path),
|
|
2009
|
+
home: null,
|
|
2010
|
+
cwd: session.cwd,
|
|
2011
|
+
mtimeMs: 0,
|
|
2012
|
+
truncated: session.integrity.truncated
|
|
2013
|
+
}, node.provenance.captured_at);
|
|
2014
|
+
const childId = (nativeId) => `${node.rollout_id}:native:${session.harness}:${nativeId}`;
|
|
2015
|
+
const parentIsRoot = episode.native.some((parent) => parent.harness === session.harness && parent.nativeSessionId === session.parentNativeSessionId && parent.parentNativeSessionId === null);
|
|
2016
|
+
const line = {
|
|
2017
|
+
...child,
|
|
2018
|
+
rollout_id: childId(session.nativeSessionId),
|
|
2019
|
+
parent_rollout_id: parentIsRoot ? node.rollout_id : childId(session.parentNativeSessionId),
|
|
2020
|
+
run_id: node.run_id,
|
|
2021
|
+
task,
|
|
2022
|
+
provenance: {
|
|
2023
|
+
...child.provenance,
|
|
2024
|
+
native_captures: episode.captures,
|
|
2025
|
+
...episode.gaps.length > 0 ? {
|
|
2026
|
+
lossy_projection: true,
|
|
2027
|
+
gap: [child.provenance.gap, ...episode.gaps].join("; ")
|
|
2028
|
+
} : {}
|
|
2029
|
+
}
|
|
2030
|
+
};
|
|
2031
|
+
lines.push(line);
|
|
2032
|
+
otlp.set(line.rollout_id, toJsonl(toOtlpSpans(session)));
|
|
2033
|
+
}
|
|
1810
2034
|
}
|
|
1811
2035
|
return {
|
|
1812
2036
|
runDir,
|
|
1813
2037
|
lines,
|
|
1814
|
-
gaps: tree.gaps.filter((gap) => verdict === null || gap.code !== "root-reward-unavailable"),
|
|
2038
|
+
gaps: [...tree.gaps.filter((gap) => verdict === null || gap.code !== "root-reward-unavailable"), ...captureGaps],
|
|
1815
2039
|
otlp
|
|
1816
2040
|
};
|
|
1817
2041
|
}
|
|
1818
2042
|
export { analyzeSupervisorRun as a, readRuntimeSupervisorRun as c, renderSupervisorRunMarkdown as i, analyzeSupervisorRunSources as l, renderSupervisorRollupMarkdown as n, findSupervisorRunDirs as o, renderSupervisorRunHeadline as r, isRuntimeSupervisorRunDir as s, runtimeRunRolloutLines as t, parsePatch as u };
|
|
1819
2043
|
|
|
1820
|
-
//# sourceMappingURL=runtime-rollouts-
|
|
2044
|
+
//# sourceMappingURL=runtime-rollouts-C_hBaYXe.js.map
|