@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.
- package/CHANGELOG.md +46 -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-wpWa71ul.js} +11 -10
- package/dist/benchmark-command-wpWa71ul.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-eO9qpGE9.js} +269 -55
- package/dist/{runtime-rollouts-BNrm5nC_.js.map → runtime-rollouts-eO9qpGE9.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,42 @@ 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
|
|
1710
1728
|
});
|
|
1711
1729
|
}
|
|
1712
1730
|
}
|
|
@@ -1718,30 +1736,166 @@ async function blobValue(runDir, ref) {
|
|
|
1718
1736
|
if (ref === void 0 || !/^sha256:[0-9a-f]{64}$/u.test(ref)) return void 0;
|
|
1719
1737
|
return readJson(join(runDir, "blobs", `${ref.replace(":", "-")}.json`));
|
|
1720
1738
|
}
|
|
1721
|
-
/**
|
|
1722
|
-
async function
|
|
1723
|
-
const
|
|
1739
|
+
/** Verify generic evidence before classifying it; unreadable bytes cannot identify their kind. */
|
|
1740
|
+
async function executionEvidenceValue(runDir, ref) {
|
|
1741
|
+
const value = await blobValue(runDir, ref);
|
|
1742
|
+
try {
|
|
1743
|
+
return value !== void 0 && hashCanonical(jsonDocument(value)) === ref ? value : void 0;
|
|
1744
|
+
} catch {
|
|
1745
|
+
return;
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
/** Keep a structured task whole. Picking only `instruction` would discard its conditioning. */
|
|
1749
|
+
function taskText(input) {
|
|
1750
|
+
if (typeof input === "string") return input;
|
|
1751
|
+
return input === void 0 || input === null ? void 0 : JSON.stringify(input);
|
|
1752
|
+
}
|
|
1753
|
+
/** A cumulative capture cannot rewrite or remove already-retained conversation or child identity. */
|
|
1754
|
+
function extendsSession(previous, next) {
|
|
1755
|
+
if (previous.parentNativeSessionId !== next.parentNativeSessionId) return false;
|
|
1756
|
+
const before = toChatMessages(previous);
|
|
1757
|
+
const after = toChatMessages(next);
|
|
1758
|
+
const bindings = harnessSessionBindings(next);
|
|
1759
|
+
const messageIds = new Set(next.messages.map((message) => message.id));
|
|
1760
|
+
if (bindings === null || messageIds.size !== next.messages.length) return false;
|
|
1761
|
+
const { calls, snapshots } = bindings;
|
|
1762
|
+
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));
|
|
1763
|
+
}
|
|
1764
|
+
/** Verify every attempt, retaining partial executions as audit evidence. */
|
|
1765
|
+
async function nodeSessions(runDir, harness, id, fact, options) {
|
|
1766
|
+
const executions = fact.executions.length > 0 ? fact.executions : [{
|
|
1724
1767
|
taskRef: fact.taskRef,
|
|
1725
|
-
outRef: fact.outRef
|
|
1768
|
+
outRef: fact.outRef,
|
|
1769
|
+
captures: []
|
|
1726
1770
|
}];
|
|
1727
1771
|
const sessions = [];
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1772
|
+
const native = /* @__PURE__ */ new Map();
|
|
1773
|
+
const nativePositions = /* @__PURE__ */ new Map();
|
|
1774
|
+
const captures = [];
|
|
1775
|
+
const recoverable = /* @__PURE__ */ new Set();
|
|
1776
|
+
const gaps = [];
|
|
1777
|
+
for (const [index, execution] of executions.entries()) {
|
|
1778
|
+
let verified = false;
|
|
1779
|
+
let hasNativeMessages = false;
|
|
1780
|
+
let foundCapture = false;
|
|
1781
|
+
for (const capture of execution.captures) {
|
|
1782
|
+
const value = await executionEvidenceValue(runDir, capture.ref);
|
|
1783
|
+
const wrapper = recordOrNull(value);
|
|
1784
|
+
if (value !== void 0 && wrapper?.kind !== "harness-transcript") continue;
|
|
1785
|
+
foundCapture = true;
|
|
1786
|
+
const binding = recordOrNull(wrapper?.node);
|
|
1787
|
+
const rootId = text(binding?.rootId);
|
|
1788
|
+
const attemptId = text(binding?.attemptId);
|
|
1789
|
+
const receipt = recordOrNull(wrapper?.harnessTranscript);
|
|
1790
|
+
const taskRef = text(wrapper?.taskRef);
|
|
1791
|
+
const resultRef = text(wrapper?.outRef);
|
|
1792
|
+
let reason = null;
|
|
1793
|
+
let read = [];
|
|
1794
|
+
if (value === void 0) reason = "execution evidence blob unavailable, malformed or failed content verification";
|
|
1795
|
+
else if (wrapper?.schemaVersion !== 1) reason = "native evidence wrapper failed content verification";
|
|
1796
|
+
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";
|
|
1797
|
+
else if (execution.taskRef !== void 0 && taskRef !== execution.taskRef) reason = "native evidence task does not match execution input";
|
|
1798
|
+
else if (execution.outRef !== void 0 && resultRef !== execution.outRef) reason = "native evidence result does not match execution output";
|
|
1799
|
+
else if (receipt?.status === "unavailable") {
|
|
1800
|
+
reason = text(receipt.reason) ?? "native capture unavailable";
|
|
1801
|
+
recoverable.add(capture.ref);
|
|
1802
|
+
} else if (!options.readNativeTranscript) reason = "verified native transcript loader unavailable";
|
|
1803
|
+
else try {
|
|
1804
|
+
const loaded = await options.readNativeTranscript({
|
|
1805
|
+
runDir,
|
|
1806
|
+
nodeId: id,
|
|
1807
|
+
rootId,
|
|
1808
|
+
attemptId,
|
|
1809
|
+
taskRef,
|
|
1810
|
+
resultRef,
|
|
1811
|
+
receipt
|
|
1812
|
+
});
|
|
1813
|
+
if (!loaded.succeeded) reason = loaded.error;
|
|
1814
|
+
else {
|
|
1815
|
+
read = loaded.value.sessions;
|
|
1816
|
+
if (read.length === 0) reason = "native transcript family is empty";
|
|
1817
|
+
else if (!read.some((session) => session.parentNativeSessionId === null)) reason = "native transcript forest has no root";
|
|
1818
|
+
else if (read.some((session) => session.integrity.truncated || session.integrity.unparsedRecords > 0 || session.integrity.gaps.length > 0)) reason = "native transcript family has capture gaps";
|
|
1819
|
+
else if (read.some((session) => session.ending.status === "open" || session.ending.status === "aborted")) reason = "native transcript family has an unfinished session";
|
|
1820
|
+
}
|
|
1821
|
+
} catch (error) {
|
|
1822
|
+
reason = error instanceof Error ? error.message : String(error);
|
|
1823
|
+
}
|
|
1824
|
+
if (reason === null && read.some((session) => {
|
|
1825
|
+
const previous = native.get(`${session.harness}:${session.nativeSessionId}`);
|
|
1826
|
+
return previous !== void 0 && !extendsSession(previous, session);
|
|
1827
|
+
})) reason = "native cumulative snapshot conflicts with retained conversation or child identity";
|
|
1828
|
+
const projected = {
|
|
1829
|
+
execution_index: index,
|
|
1830
|
+
evidence_ref: capture.ref,
|
|
1831
|
+
root_id: rootId ?? null,
|
|
1832
|
+
attempt_id: attemptId ?? null,
|
|
1833
|
+
task_ref: taskRef ?? null,
|
|
1834
|
+
result_ref: resultRef ?? null,
|
|
1835
|
+
transcript_ref: text(receipt?.transcriptRef) ?? null,
|
|
1836
|
+
verified: reason === null,
|
|
1837
|
+
gap: reason,
|
|
1838
|
+
native_session_ids: read.map((session) => session.nativeSessionId)
|
|
1839
|
+
};
|
|
1840
|
+
if (projected.verified) {
|
|
1841
|
+
for (const prior of captures) if (recoverable.has(prior.evidence_ref) && sameNativeCaptureIdentity(prior, projected)) prior.resolved_by = projected.evidence_ref;
|
|
1842
|
+
verified = true;
|
|
1843
|
+
}
|
|
1844
|
+
captures.push(projected);
|
|
1845
|
+
for (const session of read) {
|
|
1846
|
+
const key = `${session.harness}:${session.nativeSessionId}`;
|
|
1847
|
+
const previous = native.get(key);
|
|
1848
|
+
if (previous !== void 0 && !extendsSession(previous, session)) {
|
|
1849
|
+
if (session.parentNativeSessionId === null) hasNativeMessages = true;
|
|
1850
|
+
continue;
|
|
1851
|
+
}
|
|
1852
|
+
native.set(key, session);
|
|
1853
|
+
if (session.parentNativeSessionId !== null) continue;
|
|
1854
|
+
hasNativeMessages = true;
|
|
1855
|
+
const position = nativePositions.get(key);
|
|
1856
|
+
if (position === void 0) {
|
|
1857
|
+
nativePositions.set(key, sessions.length);
|
|
1858
|
+
sessions.push(session);
|
|
1859
|
+
} else sessions[position] = session;
|
|
1860
|
+
}
|
|
1861
|
+
execution.taskRef ??= taskRef;
|
|
1862
|
+
execution.outRef ??= resultRef;
|
|
1863
|
+
}
|
|
1864
|
+
if (!foundCapture) gaps.push(`execution ${index}: no attempt-bound native transcript evidence`);
|
|
1865
|
+
if (execution.outRef === void 0) gaps.push(`execution ${index}: execution result unavailable`);
|
|
1866
|
+
if (verified || hasNativeMessages) continue;
|
|
1867
|
+
const [input, result] = await Promise.all([blobValue(runDir, execution.taskRef), blobValue(runDir, execution.outRef)]);
|
|
1868
|
+
const task = taskText(input);
|
|
1731
1869
|
const answer = text(result) ?? text(recordOrNull(result)?.content);
|
|
1732
1870
|
const stream = recordOrNull(result)?.events;
|
|
1733
1871
|
const events = Array.isArray(stream) ? stream : [];
|
|
1734
|
-
if (task === void 0
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1872
|
+
if (task === void 0) gaps.push(`execution ${index}: execution input unavailable`);
|
|
1873
|
+
if (result === void 0) gaps.push(`execution ${index}: execution output blob unavailable`);
|
|
1874
|
+
if (task !== void 0 || answer !== void 0 || events.length > 0) {
|
|
1875
|
+
const session = sandboxEventsSession({
|
|
1876
|
+
harness,
|
|
1877
|
+
nativeSessionId: `${id}:${index}`,
|
|
1878
|
+
task: task ?? "",
|
|
1879
|
+
answer: answer ?? "",
|
|
1880
|
+
events
|
|
1881
|
+
});
|
|
1882
|
+
if (task === void 0) session.messages = session.messages.filter((message) => message.id !== `${id}:${index}:task`);
|
|
1883
|
+
sessions.push(session);
|
|
1884
|
+
}
|
|
1743
1885
|
}
|
|
1744
|
-
|
|
1886
|
+
const nativeSessions = [...native.values()];
|
|
1887
|
+
const keys = new Set(nativeSessions.map((session) => `${session.harness}:${session.nativeSessionId}`));
|
|
1888
|
+
for (const session of nativeSessions) {
|
|
1889
|
+
if (session.parentNativeSessionId !== null && !keys.has(`${session.harness}:${session.parentNativeSessionId}`)) gaps.push(`native parent ${session.parentNativeSessionId} unavailable`);
|
|
1890
|
+
for (const child of session.children) if (!keys.has(`${session.harness}:${child.nativeSessionId}`)) gaps.push(`native child ${child.nativeSessionId} unavailable`);
|
|
1891
|
+
}
|
|
1892
|
+
for (const capture of unresolvedNativeCaptures(captures)) gaps.push(`execution ${capture.execution_index}: ${capture.gap}`);
|
|
1893
|
+
return {
|
|
1894
|
+
sessions,
|
|
1895
|
+
native: nativeSessions,
|
|
1896
|
+
captures,
|
|
1897
|
+
gaps
|
|
1898
|
+
};
|
|
1745
1899
|
}
|
|
1746
1900
|
/**
|
|
1747
1901
|
* The root's outcome under the caller's verdict. A run stopped on its success reads `cancelled`;
|
|
@@ -1784,16 +1938,34 @@ async function runtimeRunRolloutLines(runDir, options = {}) {
|
|
|
1784
1938
|
const facts = await journalFacts(runDir);
|
|
1785
1939
|
const lines = [];
|
|
1786
1940
|
const otlp = /* @__PURE__ */ new Map();
|
|
1941
|
+
const captureGaps = [];
|
|
1787
1942
|
for (const node of tree.nodes) {
|
|
1788
|
-
const fact = facts.get(node.rollout_id) ?? {
|
|
1943
|
+
const fact = facts.get(node.rollout_id) ?? {
|
|
1944
|
+
executions: [],
|
|
1945
|
+
roots: /* @__PURE__ */ new Set()
|
|
1946
|
+
};
|
|
1789
1947
|
const producer = fact.model === void 0 ? null : producerOf(fact.model);
|
|
1790
1948
|
const license = licenseClassOfName(producer?.model) ?? licenseClassOfName(producer?.harness);
|
|
1791
|
-
const
|
|
1949
|
+
const episode = await nodeSessions(runDir, producer?.harness ?? node.policy.harness ?? "sandbox", node.rollout_id, fact, options);
|
|
1950
|
+
if (tree.gaps.some((gap) => gap.code === "journal-unavailable" || gap.code === "source-row-malformed")) episode.gaps.push("supervision journal has unreadable execution evidence");
|
|
1951
|
+
const sessions = episode.sessions;
|
|
1952
|
+
const inventory = harnessSessionToolInventory(sessions);
|
|
1953
|
+
for (const message of episode.gaps) captureGaps.push({
|
|
1954
|
+
code: "transcript-capture-incomplete",
|
|
1955
|
+
nodeId: node.rollout_id,
|
|
1956
|
+
message
|
|
1957
|
+
});
|
|
1792
1958
|
const messages = sessions.flatMap((session) => toChatMessages(session));
|
|
1793
1959
|
const spans = sessions.map((session) => toOtlpSpans(session)).filter((s) => s.length > 1).flat();
|
|
1794
|
-
otlp.set(node.rollout_id, spans
|
|
1960
|
+
otlp.set(node.rollout_id, toJsonl(spans));
|
|
1961
|
+
const task = {
|
|
1962
|
+
...node.task,
|
|
1963
|
+
...options.split === void 0 ? {} : { split: options.split },
|
|
1964
|
+
...options.instanceId === void 0 ? {} : { instance_id: options.instanceId }
|
|
1965
|
+
};
|
|
1795
1966
|
lines.push({
|
|
1796
1967
|
...node,
|
|
1968
|
+
task,
|
|
1797
1969
|
policy: {
|
|
1798
1970
|
...node.policy,
|
|
1799
1971
|
...producer === null ? {} : {
|
|
@@ -1804,17 +1976,59 @@ async function runtimeRunRolloutLines(runDir, options = {}) {
|
|
|
1804
1976
|
...license === null ? {} : { license_class: license }
|
|
1805
1977
|
},
|
|
1806
1978
|
messages: sessions.length === 0 ? node.messages : messages,
|
|
1807
|
-
|
|
1979
|
+
tool_defs: inventory.tools,
|
|
1980
|
+
provenance: {
|
|
1981
|
+
...episode.gaps.length === 0 ? wholeEpisode(node.provenance) : {
|
|
1982
|
+
...node.provenance,
|
|
1983
|
+
lossy_projection: true,
|
|
1984
|
+
gap: [node.provenance.gap, ...episode.gaps].filter(Boolean).join("; ")
|
|
1985
|
+
},
|
|
1986
|
+
native_captures: episode.captures,
|
|
1987
|
+
...inventory.gap === void 0 ? {} : { tool_definitions_gap: inventory.gap }
|
|
1988
|
+
},
|
|
1808
1989
|
outcome: judged(node, verdict, fact.unansweredSince)
|
|
1809
1990
|
});
|
|
1991
|
+
for (const session of episode.native.filter((session) => session.parentNativeSessionId !== null)) {
|
|
1992
|
+
const child = harnessSessionRolloutLine(session, {
|
|
1993
|
+
harness: session.harness,
|
|
1994
|
+
format: session.format,
|
|
1995
|
+
nativeSessionId: session.nativeSessionId,
|
|
1996
|
+
parentNativeSessionId: session.parentNativeSessionId,
|
|
1997
|
+
path: runDir,
|
|
1998
|
+
files: session.integrity.sourceFiles.map((file) => file.path),
|
|
1999
|
+
home: null,
|
|
2000
|
+
cwd: session.cwd,
|
|
2001
|
+
mtimeMs: 0,
|
|
2002
|
+
truncated: session.integrity.truncated
|
|
2003
|
+
}, node.provenance.captured_at);
|
|
2004
|
+
const childId = (nativeId) => `${node.rollout_id}:native:${session.harness}:${nativeId}`;
|
|
2005
|
+
const parentIsRoot = episode.native.some((parent) => parent.harness === session.harness && parent.nativeSessionId === session.parentNativeSessionId && parent.parentNativeSessionId === null);
|
|
2006
|
+
const line = {
|
|
2007
|
+
...child,
|
|
2008
|
+
rollout_id: childId(session.nativeSessionId),
|
|
2009
|
+
parent_rollout_id: parentIsRoot ? node.rollout_id : childId(session.parentNativeSessionId),
|
|
2010
|
+
run_id: node.run_id,
|
|
2011
|
+
task,
|
|
2012
|
+
provenance: {
|
|
2013
|
+
...child.provenance,
|
|
2014
|
+
native_captures: episode.captures,
|
|
2015
|
+
...episode.gaps.length > 0 ? {
|
|
2016
|
+
lossy_projection: true,
|
|
2017
|
+
gap: [child.provenance.gap, ...episode.gaps].join("; ")
|
|
2018
|
+
} : {}
|
|
2019
|
+
}
|
|
2020
|
+
};
|
|
2021
|
+
lines.push(line);
|
|
2022
|
+
otlp.set(line.rollout_id, toJsonl(toOtlpSpans(session)));
|
|
2023
|
+
}
|
|
1810
2024
|
}
|
|
1811
2025
|
return {
|
|
1812
2026
|
runDir,
|
|
1813
2027
|
lines,
|
|
1814
|
-
gaps: tree.gaps.filter((gap) => verdict === null || gap.code !== "root-reward-unavailable"),
|
|
2028
|
+
gaps: [...tree.gaps.filter((gap) => verdict === null || gap.code !== "root-reward-unavailable"), ...captureGaps],
|
|
1815
2029
|
otlp
|
|
1816
2030
|
};
|
|
1817
2031
|
}
|
|
1818
2032
|
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
2033
|
|
|
1820
|
-
//# sourceMappingURL=runtime-rollouts-
|
|
2034
|
+
//# sourceMappingURL=runtime-rollouts-eO9qpGE9.js.map
|