@tangle-network/agent-eval 1.0.39 → 2.0.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.
- package/CHANGELOG.md +75 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/{agent-profile-BKgR30kv.d.ts → agent-profile-BSgtn-k-.d.ts} +247 -168
- package/dist/agent-profile-BSgtn-k-.d.ts.map +1 -0
- package/dist/{agent-profile-DgbRJpSi.js → agent-profile-CCw6EXWW.js} +2 -2
- package/dist/{agent-profile-DgbRJpSi.js.map → agent-profile-CCw6EXWW.js.map} +1 -1
- package/dist/{agent-profile-cell-7Mt0wBkl.js → agent-profile-cell-CUthydZB.js} +2 -2
- package/dist/{agent-profile-cell-7Mt0wBkl.js.map → agent-profile-cell-CUthydZB.js.map} +1 -1
- package/dist/analyst/index.d.ts +13 -13
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +15 -15
- package/dist/analyst/index.js.map +1 -1
- package/dist/{analyze-runs-DqHx3Q_g.js → analyze-runs-C_9cXPZn.js} +9 -9
- package/dist/{analyze-runs-DqHx3Q_g.js.map → analyze-runs-C_9cXPZn.js.map} +1 -1
- package/dist/{analyze-runs-Ctuz-dd3.d.ts → analyze-runs-zEI7yAH_.d.ts} +2 -2
- package/dist/{analyze-runs-Ctuz-dd3.d.ts.map → analyze-runs-zEI7yAH_.d.ts.map} +1 -1
- package/dist/app-grade/index.d.ts +3 -3
- package/dist/app-grade/index.js +3 -3
- package/dist/authenticity/index.d.ts.map +1 -1
- package/dist/authenticity/index.js.map +1 -1
- package/dist/{benchmark-command-BpmrrgzA.js → benchmark-command-XLXa7I98.js} +14 -13
- package/dist/benchmark-command-XLXa7I98.js.map +1 -0
- package/dist/benchmarks/index.d.ts +8 -4
- package/dist/benchmarks/index.d.ts.map +1 -1
- package/dist/benchmarks/index.js +11 -6
- package/dist/benchmarks/index.js.map +1 -1
- package/dist/builder-eval/index.d.ts +1 -1
- package/dist/builder-eval/index.js +3 -3
- package/dist/{calibration-BBhY1QM6.js → calibration-Cfoup0xz.js} +3 -3
- package/dist/{calibration-BBhY1QM6.js.map → calibration-Cfoup0xz.js.map} +1 -1
- package/dist/campaign/index.d.ts +9 -9
- package/dist/campaign/index.js +16 -15
- package/dist/{campaign-UzOUBIwA.js → campaign-BlmkAwFD.js} +23 -23
- package/dist/campaign-BlmkAwFD.js.map +1 -0
- package/dist/{statistical-heldout-RmdXoz2e.d.ts → campaign-evidence-BVKG5o32.d.ts} +418 -418
- package/dist/campaign-evidence-BVKG5o32.d.ts.map +1 -0
- package/dist/{campaign-evidence-BX8OveG5.js → campaign-evidence-CsUE_lwc.js} +79 -26
- package/dist/campaign-evidence-CsUE_lwc.js.map +1 -0
- package/dist/{canonical-gLeHiqzd.d.ts → canonical-CGXS21f_.d.ts} +8 -5
- package/dist/{canonical-gLeHiqzd.d.ts.map → canonical-CGXS21f_.d.ts.map} +1 -1
- package/dist/{canonical-BANK6NOj.js → canonical-DKgL_Wby.js} +30 -8
- package/dist/canonical-DKgL_Wby.js.map +1 -0
- package/dist/{chat-client-DmPB31_2.js → chat-client-DqAXFLi-.js} +2 -2
- package/dist/{chat-client-DmPB31_2.js.map → chat-client-DqAXFLi-.js.map} +1 -1
- package/dist/{chat-json-call-Rfhu7JbJ.js → chat-json-call-CB6sQ6sv.js} +2 -2
- package/dist/{chat-json-call-Rfhu7JbJ.js.map → chat-json-call-CB6sQ6sv.js.map} +1 -1
- package/dist/{claim-C6LRiwz1.js → claim-BWEXwwBk.js} +2 -2
- package/dist/{claim-C6LRiwz1.js.map → claim-BWEXwwBk.js.map} +1 -1
- package/dist/cli.js +11 -11
- package/dist/{client-BIFwUg7I.d.ts → client-DUMIaMob.d.ts} +2 -2
- package/dist/{client-BIFwUg7I.d.ts.map → client-DUMIaMob.d.ts.map} +1 -1
- package/dist/cluster-CSd0LE_M.d.ts.map +1 -1
- package/dist/{cluster-bootstrap-ClPYIWoX.js → cluster-bootstrap-DPzVy3_K.js} +2 -2
- package/dist/{cluster-bootstrap-ClPYIWoX.js.map → cluster-bootstrap-DPzVy3_K.js.map} +1 -1
- package/dist/{completion-verifier-C3q1T96h.js → completion-verifier-DiG3y43g.js} +6 -6
- package/dist/{completion-verifier-C3q1T96h.js.map → completion-verifier-DiG3y43g.js.map} +1 -1
- package/dist/containment-order-GCJ-y_FV.js +56 -0
- package/dist/containment-order-GCJ-y_FV.js.map +1 -0
- package/dist/contract/index.d.ts +11 -11
- package/dist/contract/index.js +16 -16
- package/dist/contract/index.js.map +1 -1
- package/dist/cost-ledger-1CwUnVOd.js.map +1 -1
- package/dist/{decision-point-BN1YQNqk.js → decision-point-gt5JgqZ0.js} +8 -8
- package/dist/{decision-point-BN1YQNqk.js.map → decision-point-gt5JgqZ0.js.map} +1 -1
- package/dist/{default-registry-C5x2jyD6.d.ts → default-registry-DH_tl-V1.d.ts} +7 -7
- package/dist/{default-registry-C5x2jyD6.d.ts.map → default-registry-DH_tl-V1.d.ts.map} +1 -1
- package/dist/{default-registry-DSo3tnsW.js → default-registry-Y9AaKLmG.js} +8 -8
- package/dist/default-registry-Y9AaKLmG.js.map +1 -0
- package/dist/{define-agent-eval-4KGwzIVt.d.ts → define-agent-eval-BDxV_ONM.d.ts} +18 -10
- package/dist/define-agent-eval-BDxV_ONM.d.ts.map +1 -0
- package/dist/{define-agent-eval-C6zFzxp7.js → define-agent-eval-Cq-bdF4O.js} +16 -13
- package/dist/define-agent-eval-Cq-bdF4O.js.map +1 -0
- package/dist/diagnosis/index.d.ts +3 -3
- package/dist/diagnosis/index.d.ts.map +1 -1
- package/dist/diagnosis/index.js +1 -1
- package/dist/diagnosis/index.js.map +1 -1
- package/dist/{dspy-rlm-engine-EC-Pkdf-.js → dspy-rlm-engine-CHpTzYvZ.js} +4 -3
- package/dist/dspy-rlm-engine-CHpTzYvZ.js.map +1 -0
- package/dist/{emitter-DhQ65mza.js → emitter-BjW3NnX-.js} +15 -6
- package/dist/emitter-BjW3NnX-.js.map +1 -0
- package/dist/{emitter-mAXC5PSN.d.ts → emitter-Cw8ijO3v.d.ts} +4 -4
- package/dist/{emitter-mAXC5PSN.d.ts.map → emitter-Cw8ijO3v.d.ts.map} +1 -1
- package/dist/{engine-B2w3ARpj.d.ts → engine-3y87jnX0.d.ts} +2 -2
- package/dist/{engine-B2w3ARpj.d.ts.map → engine-3y87jnX0.d.ts.map} +1 -1
- package/dist/errors-DeEEV9Vx.js.map +1 -1
- package/dist/{eval-campaign-CWWh-1p1.js → eval-campaign-Cyk-tkLh.js} +5 -5
- package/dist/{eval-campaign-CWWh-1p1.js.map → eval-campaign-Cyk-tkLh.js.map} +1 -1
- package/dist/{evaluation-CQ-uAbqF.d.ts → evaluation-RODuDmCe.d.ts} +4 -4
- package/dist/{evaluation-CQ-uAbqF.d.ts.map → evaluation-RODuDmCe.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/{exact-types-B0_jA3V7.d.ts → exact-types-C4Rug7fG.d.ts} +2 -2
- package/dist/{exact-types-B0_jA3V7.d.ts.map → exact-types-C4Rug7fG.d.ts.map} +1 -1
- package/dist/{execution-insight-9No6Si55.d.ts → execution-insight-iOsr1Zi8.d.ts} +2 -2
- package/dist/{execution-insight-9No6Si55.d.ts.map → execution-insight-iOsr1Zi8.d.ts.map} +1 -1
- package/dist/experiment/index.d.ts +4 -4
- package/dist/experiment/index.d.ts.map +1 -1
- package/dist/experiment/index.js +10 -10
- package/dist/experiment/index.js.map +1 -1
- package/dist/{exporters-C9AwGDDK.js → exporters-CKFtnWmX.js} +2 -2
- package/dist/{exporters-C9AwGDDK.js.map → exporters-CKFtnWmX.js.map} +1 -1
- package/dist/external-optimizer-contracts-eKQTutGZ.js +123 -0
- package/dist/external-optimizer-contracts-eKQTutGZ.js.map +1 -0
- package/dist/{external-optimizer-process-DFEPdWJY.js → external-optimizer-process-CkAc1xBa.js} +22 -26
- package/dist/external-optimizer-process-CkAc1xBa.js.map +1 -0
- package/dist/{external-optimizer-subprocess-BspZ0bZb.js → external-optimizer-subprocess-B48Ie4qQ.js} +10 -124
- package/dist/external-optimizer-subprocess-B48Ie4qQ.js.map +1 -0
- package/dist/extract-usage-ISFqhfDz.js.map +1 -1
- package/dist/{feedback-trajectory-FamLu3Wt.d.ts → feedback-trajectory-B5hTr9w5.d.ts} +4 -4
- package/dist/{feedback-trajectory-FamLu3Wt.d.ts.map → feedback-trajectory-B5hTr9w5.d.ts.map} +1 -1
- package/dist/{finding-composition-BMgspnVI.js → finding-composition-CyWSTcAY.js} +2 -2
- package/dist/{finding-composition-BMgspnVI.js.map → finding-composition-CyWSTcAY.js.map} +1 -1
- package/dist/{findings-store-71J302Ls.js → findings-store-Rx9ZJgHV.js} +6 -6
- package/dist/{findings-store-71J302Ls.js.map → findings-store-Rx9ZJgHV.js.map} +1 -1
- package/dist/fuzz.d.ts.map +1 -1
- package/dist/fuzz.js +1 -1
- package/dist/fuzz.js.map +1 -1
- package/dist/{harness-session-lines-Fd5aeSDV.js → harness-session-lines-CSxKR6no.js} +3 -3
- package/dist/{harness-session-lines-Fd5aeSDV.js.map → harness-session-lines-CSxKR6no.js.map} +1 -1
- package/dist/{hf-dataset-kthWy7xl.js → hf-dataset-B0s2ZAhQ.js} +4 -4
- package/dist/{hf-dataset-kthWy7xl.js.map → hf-dataset-B0s2ZAhQ.js.map} +1 -1
- package/dist/hosted/index.d.ts +2 -2
- package/dist/hosted/index.js +1 -1
- package/dist/{index-BsTGJf2M.d.ts → index-BJTUL2Ff.d.ts} +42 -30
- package/dist/index-BJTUL2Ff.d.ts.map +1 -0
- package/dist/{index-Bhc7H9e0.d.ts → index-CX8_WfqS.d.ts} +5 -5
- package/dist/{index-Bhc7H9e0.d.ts.map → index-CX8_WfqS.d.ts.map} +1 -1
- package/dist/{index-DtW7KhyE.d.ts → index-D-nKkzsI.d.ts} +3 -3
- package/dist/{index-DtW7KhyE.d.ts.map → index-D-nKkzsI.d.ts.map} +1 -1
- package/dist/{index-RBV2Y-7X.d.ts → index-D1NRaf5U.d.ts} +7 -7
- package/dist/{index-RBV2Y-7X.d.ts.map → index-D1NRaf5U.d.ts.map} +1 -1
- package/dist/{index-Bcy00QoN.d.ts → index-DcGHcBpR.d.ts} +86 -86
- package/dist/index-DcGHcBpR.d.ts.map +1 -0
- package/dist/{index-CzEGCOWM.d.ts → index-FLyheOVA.d.ts} +9 -9
- package/dist/index-FLyheOVA.d.ts.map +1 -0
- package/dist/{index-lRKqfyg4.d.ts → index-qy6buL6y.d.ts} +2 -2
- package/dist/{index-lRKqfyg4.d.ts.map → index-qy6buL6y.d.ts.map} +1 -1
- package/dist/index.d.ts +31 -31
- package/dist/index.js +41 -41
- package/dist/index.js.map +1 -1
- package/dist/{integrity-BSs9dgKW.js → integrity-BF0tJK21.js} +3 -3
- package/dist/{integrity-BSs9dgKW.js.map → integrity-BF0tJK21.js.map} +1 -1
- package/dist/{journal-DQsbHGjX.js → journal-3y-btqaP.js} +2 -2
- package/dist/{journal-DQsbHGjX.js.map → journal-3y-btqaP.js.map} +1 -1
- package/dist/journal-file-AekB57Er.js.map +1 -1
- package/dist/{json-recovery-b7O9WVTF.js → json-recovery-BRUCeQxo.js} +2 -2
- package/dist/{json-recovery-b7O9WVTF.js.map → json-recovery-BRUCeQxo.js.map} +1 -1
- package/dist/{judge-gate-LbmZU-pA.js → judge-gate-TBv2jeO0.js} +3 -3
- package/dist/{judge-gate-LbmZU-pA.js.map → judge-gate-TBv2jeO0.js.map} +1 -1
- package/dist/{kind-factory-BTUq1Byh.js → kind-factory-DfNsTe-q.js} +22 -4
- package/dist/kind-factory-DfNsTe-q.js.map +1 -0
- package/dist/ledger-core/index.d.ts +2 -2
- package/dist/ledger-core/index.js +3 -3
- package/dist/{ledger-core-7e6sXmhV.js → ledger-core-auznoaD7.js} +3 -3
- package/dist/ledger-core-auznoaD7.js.map +1 -0
- package/dist/{llm-client-CdHo3SH0.js → llm-client-gRPgIJyz.js} +2 -2
- package/dist/{llm-client-CdHo3SH0.js.map → llm-client-gRPgIJyz.js.map} +1 -1
- package/dist/{llm-judge-lUQCBY1e.js → llm-judge-CThv1Rog.js} +197 -66
- package/dist/llm-judge-CThv1Rog.js.map +1 -0
- package/dist/{matrix-BKzNwIWb.d.ts → matrix-CfJ5vhfq.d.ts} +2 -2
- package/dist/{matrix-BKzNwIWb.d.ts.map → matrix-CfJ5vhfq.d.ts.map} +1 -1
- package/dist/meta-eval/index.d.ts +1 -1
- package/dist/meta-eval/index.js +9 -9
- package/dist/{mint-VN-qtJTc.js → mint-B4n1pRRd.js} +12 -6
- package/dist/mint-B4n1pRRd.js.map +1 -0
- package/dist/{model-comparison-BZr_Hu00.js → model-comparison-CgnVh4Ph.js} +3 -3
- package/dist/{model-comparison-BZr_Hu00.js.map → model-comparison-CgnVh4Ph.js.map} +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/multishot/index.js +1 -1
- package/dist/multishot/index.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/dist/{outcome-observations-YFFmdGGW.js → outcome-observations-DL3CC8w1.js} +2 -2
- package/dist/{outcome-observations-YFFmdGGW.js.map → outcome-observations-DL3CC8w1.js.map} +1 -1
- package/dist/{paired-arms-DH376s4-.js → paired-arms-DZhH3FGu.js} +3 -3
- package/dist/{paired-arms-DH376s4-.js.map → paired-arms-DZhH3FGu.js.map} +1 -1
- package/dist/{paired-promotion-decision-BoWHWL1i.js → paired-promotion-decision-Dn3-jaq4.js} +2 -2
- package/dist/{paired-promotion-decision-BoWHWL1i.js.map → paired-promotion-decision-Dn3-jaq4.js.map} +1 -1
- package/dist/{paired-promotion-decision-BBSxTo-h.d.ts → paired-promotion-decision-Il-Nv-n4.d.ts} +2 -2
- package/dist/{paired-promotion-decision-BBSxTo-h.d.ts.map → paired-promotion-decision-Il-Nv-n4.d.ts.map} +1 -1
- package/dist/{paired-promotion-power-BXH3gzvs.js → paired-promotion-power-BlzXdgMD.js} +3 -3
- package/dist/{paired-promotion-power-BXH3gzvs.js.map → paired-promotion-power-BlzXdgMD.js.map} +1 -1
- package/dist/{pareto-BNWWbLNl.js → pareto-Bg75Gajo.js} +7 -7
- package/dist/{pareto-BNWWbLNl.js.map → pareto-Bg75Gajo.js.map} +1 -1
- package/dist/pipelines/index.d.ts +3 -3
- package/dist/pipelines/index.d.ts.map +1 -1
- package/dist/pipelines/index.js +19 -33
- package/dist/pipelines/index.js.map +1 -1
- package/dist/{prime-protocol-BR0xy0cF.d.ts → prime-protocol-CdNaCQy5.d.ts} +2 -2
- package/dist/{prime-protocol-BR0xy0cF.d.ts.map → prime-protocol-CdNaCQy5.d.ts.map} +1 -1
- package/dist/profile-cell.js +1 -1
- package/dist/{promotion-gate-XiTqW22r.d.ts → promotion-gate-DKAvMFlS.d.ts} +2 -2
- package/dist/{promotion-gate-XiTqW22r.d.ts.map → promotion-gate-DKAvMFlS.d.ts.map} +1 -1
- package/dist/{promotion-policy-CfgRPGx0.js → promotion-policy-CxDIh-9p.js} +4 -4
- package/dist/{promotion-policy-CfgRPGx0.js.map → promotion-policy-CxDIh-9p.js.map} +1 -1
- package/dist/{proposal-findings-DFQvA-k5.js → proposal-findings-DnR7zdUc.js} +2 -2
- package/dist/{proposal-findings-DFQvA-k5.js.map → proposal-findings-DnR7zdUc.js.map} +1 -1
- package/dist/{query-Ck6KhcDo.js → query-Dhjkwqyx.js} +2 -2
- package/dist/{query-Ck6KhcDo.js.map → query-Dhjkwqyx.js.map} +1 -1
- package/dist/{registry-D23oO0_f.d.ts → registry-LqAf_laP.d.ts} +3 -3
- package/dist/{registry-D23oO0_f.d.ts.map → registry-LqAf_laP.d.ts.map} +1 -1
- package/dist/{release-confidence-BdidB0mG.js → release-confidence-BLHOMK5Q.js} +3 -3
- package/dist/{release-confidence-BdidB0mG.js.map → release-confidence-BLHOMK5Q.js.map} +1 -1
- package/dist/reporting.d.ts +4 -4
- package/dist/reporting.js +5 -5
- package/dist/{research-report-BGKsOqkF.d.ts → research-report-BauFJiqu.d.ts} +2 -2
- package/dist/{research-report-BGKsOqkF.d.ts.map → research-report-BauFJiqu.d.ts.map} +1 -1
- package/dist/{researcher-k925Q6Jb.d.ts → researcher-B4e2Z92k.d.ts} +3 -3
- package/dist/{researcher-k925Q6Jb.d.ts.map → researcher-B4e2Z92k.d.ts.map} +1 -1
- package/dist/{reward-hacking-DNiHskry.js → reward-hacking-DKAflk2c.js} +2 -2
- package/dist/{reward-hacking-DNiHskry.js.map → reward-hacking-DKAflk2c.js.map} +1 -1
- package/dist/rl.d.ts +155 -39
- package/dist/rl.d.ts.map +1 -1
- package/dist/rl.js +420 -76
- package/dist/rl.js.map +1 -1
- package/dist/rollout/index.d.ts +4 -4
- package/dist/rollout/index.js +6 -6
- package/dist/{rollout-DDMkK_Lw.js → rollout-B6LlGRSq.js} +9 -9
- package/dist/rollout-B6LlGRSq.js.map +1 -0
- package/dist/{rollout-nodes-DzmHlPAC.js → rollout-nodes-Vas6OSxX.js} +2 -2
- package/dist/{rollout-nodes-DzmHlPAC.js.map → rollout-nodes-Vas6OSxX.js.map} +1 -1
- package/dist/{rubric-predictive-validity-Cln7r56F.js → rubric-predictive-validity--6z0q8s6.js} +2 -2
- package/dist/{rubric-predictive-validity-Cln7r56F.js.map → rubric-predictive-validity--6z0q8s6.js.map} +1 -1
- package/dist/{index-OvU1UXKC.d.ts → run-improvement-loop-B1OKCm2D.d.ts} +1682 -1640
- package/dist/run-improvement-loop-B1OKCm2D.d.ts.map +1 -0
- package/dist/{run-record-c860wUR8.js → run-record-Bqg0NZ_e.js} +19 -4
- package/dist/run-record-Bqg0NZ_e.js.map +1 -0
- package/dist/{run-record-Dx64nPcX.js → run-record-CqUft6Yf.js} +2 -2
- package/dist/{run-record-Dx64nPcX.js.map → run-record-CqUft6Yf.js.map} +1 -1
- package/dist/{runtime-rollouts-CALol_Y4.js → runtime-rollouts-DdUijr_t.js} +7 -7
- package/dist/runtime-rollouts-DdUijr_t.js.map +1 -0
- package/dist/{schema-BTTzvMnn.d.ts → schema-BfSoJjD-.d.ts} +5 -1
- package/dist/schema-BfSoJjD-.d.ts.map +1 -0
- package/dist/{schema-b18jtzZw.js → schema-Bh9CfSZT.js} +3 -1
- package/dist/schema-Bh9CfSZT.js.map +1 -0
- package/dist/schema-CkIvnmLU.d.ts.map +1 -1
- package/dist/schema-D-xu3MU_.js.map +1 -1
- package/dist/search/index.d.ts +3 -3
- package/dist/search/index.d.ts.map +1 -1
- package/dist/search/index.js +3 -3
- package/dist/{search-kernel-DRHWY35J.d.ts → search-kernel-CuTvZlPS.d.ts} +5 -5
- package/dist/{search-kernel-DRHWY35J.d.ts.map → search-kernel-CuTvZlPS.d.ts.map} +1 -1
- package/dist/{search-ledger-oyqxZhry.js → search-ledger-C7t68cmy.js} +7 -7
- package/dist/{search-ledger-oyqxZhry.js.map → search-ledger-C7t68cmy.js.map} +1 -1
- package/dist/{search-ledger-file-DoHCYYLt.js → search-ledger-file-QuIbgz6b.js} +2 -2
- package/dist/search-ledger-file-QuIbgz6b.js.map +1 -0
- package/dist/{search-ledger-types-qiYRUo_N.d.ts → search-ledger-types-BhZE848w.d.ts} +2 -2
- package/dist/{search-ledger-types-qiYRUo_N.d.ts.map → search-ledger-types-BhZE848w.d.ts.map} +1 -1
- package/dist/{search-shipper-BwqeQ61l.js → search-shipper-CmDW9dU6.js} +3 -3
- package/dist/{search-shipper-BwqeQ61l.js.map → search-shipper-CmDW9dU6.js.map} +1 -1
- package/dist/{search-summary-CNHpHFfw.js → search-summary-B1x1Vmzh.js} +5 -5
- package/dist/{search-summary-CNHpHFfw.js.map → search-summary-B1x1Vmzh.js.map} +1 -1
- package/dist/{sequential-93xxuiiG.js → sequential-BphITa5b.js} +4 -4
- package/dist/{sequential-93xxuiiG.js.map → sequential-BphITa5b.js.map} +1 -1
- package/dist/{sequential-B-zx24n_.d.ts → sequential-DqOJZO2V.d.ts} +2 -2
- package/dist/{sequential-B-zx24n_.d.ts.map → sequential-DqOJZO2V.d.ts.map} +1 -1
- package/dist/{sequential-C6k0Wrb7.js → sequential-ux_XrjBf.js} +3 -3
- package/dist/{sequential-C6k0Wrb7.js.map → sequential-ux_XrjBf.js.map} +1 -1
- package/dist/{served-model-qhLmbutL.js → served-model-BXmeKm7D.js} +2 -2
- package/dist/{served-model-qhLmbutL.js.map → served-model-BXmeKm7D.js.map} +1 -1
- package/dist/{server-DnoEi4Sb.js → server-BxHJyclG.js} +4 -4
- package/dist/{server-DnoEi4Sb.js.map → server-BxHJyclG.js.map} +1 -1
- package/dist/{skillopt-optimization-method-Dch9LiNR.js → skillopt-optimization-method-CHW9mphc.js} +397 -70
- package/dist/skillopt-optimization-method-CHW9mphc.js.map +1 -0
- package/dist/{statistical-heldout-BvcAVtof.js → statistical-heldout-CaS4T-43.js} +3 -3
- package/dist/{statistical-heldout-BvcAVtof.js.map → statistical-heldout-CaS4T-43.js.map} +1 -1
- package/dist/{statistics-CHs0jlsY.js → statistics-DSidA5I2.js} +184 -184
- package/dist/statistics-DSidA5I2.js.map +1 -0
- package/dist/statistics.d.ts +1 -1
- package/dist/statistics.js +1 -1
- package/dist/{store-otlp-DQK9hCtH.js → store-otlp-DCQTz9lS.js} +2 -2
- package/dist/{store-otlp-DQK9hCtH.js.map → store-otlp-DCQTz9lS.js.map} +1 -1
- package/dist/{store-tool-spans-C1lZKvvl.d.ts → store-tool-spans-B0UYrcl7.d.ts} +5 -5
- package/dist/{store-tool-spans-C1lZKvvl.d.ts.map → store-tool-spans-B0UYrcl7.d.ts.map} +1 -1
- package/dist/{store-tool-spans-BRR9hsPP.js → store-tool-spans-D2-S3OdE.js} +4 -4
- package/dist/{store-tool-spans-BRR9hsPP.js.map → store-tool-spans-D2-S3OdE.js.map} +1 -1
- package/dist/storyboard/index.d.ts.map +1 -1
- package/dist/storyboard/index.js.map +1 -1
- package/dist/{summary-report-CXiE1UrA.js → summary-report-CI4J6gxU.js} +4 -4
- package/dist/{summary-report-CXiE1UrA.js.map → summary-report-CI4J6gxU.js.map} +1 -1
- package/dist/supervisor-run/index.d.ts +2 -2
- package/dist/supervisor-run/index.d.ts.map +1 -1
- package/dist/supervisor-run/index.js +3 -3
- package/dist/{systemone-B_3Vd395.d.ts → systemone-nAN8fBy9.d.ts} +8 -8
- package/dist/{systemone-B_3Vd395.d.ts.map → systemone-nAN8fBy9.d.ts.map} +1 -1
- package/dist/systemone-protocol.js +1 -1
- package/dist/{systemone-review-ZAN-5m_2.d.ts → systemone-review-e2ElIpD_.d.ts} +3 -3
- package/dist/{systemone-review-ZAN-5m_2.d.ts.map → systemone-review-e2ElIpD_.d.ts.map} +1 -1
- package/dist/{systemone-review-CqNNZMiD.js → systemone-review-ir3Cbejl.js} +3 -3
- package/dist/{systemone-review-CqNNZMiD.js.map → systemone-review-ir3Cbejl.js.map} +1 -1
- package/dist/systemone.d.ts +3 -3
- package/dist/systemone.js +2 -2
- package/dist/{tool-groups-BOH1E-E4.d.ts → tool-groups-sRVCeevR.d.ts} +3 -3
- package/dist/tool-groups-sRVCeevR.d.ts.map +1 -0
- package/dist/tool-waste-CIhtU1ad.d.ts +217 -0
- package/dist/tool-waste-CIhtU1ad.d.ts.map +1 -0
- package/dist/{tool-waste-DzLI-JJg.js → tool-waste-u7JJ_BlE.js} +3 -3
- package/dist/{tool-waste-DzLI-JJg.js.map → tool-waste-u7JJ_BlE.js.map} +1 -1
- package/dist/{trace-questions-DBsrgY_H.d.ts → trace-questions-BN-LSfkA.d.ts} +3 -3
- package/dist/{trace-questions-DBsrgY_H.d.ts.map → trace-questions-BN-LSfkA.d.ts.map} +1 -1
- package/dist/trace-repair/index.d.ts +1 -1
- package/dist/trace-repair/index.d.ts.map +1 -1
- package/dist/trace-repair/index.js +4 -4
- package/dist/trace-repair/index.js.map +1 -1
- package/dist/traces.d.ts +4 -4
- package/dist/traces.js +6 -6
- package/dist/{training-admission-xaDOlQ_U.d.ts → training-admission-DGZCyntI.d.ts} +2 -2
- package/dist/{training-admission-xaDOlQ_U.d.ts.map → training-admission-DGZCyntI.d.ts.map} +1 -1
- package/dist/trajectory-CKVZaQoQ.js +144 -0
- package/dist/trajectory-CKVZaQoQ.js.map +1 -0
- package/dist/trajectory-replay/index.d.ts.map +1 -1
- package/dist/trajectory-replay/index.js +24 -11
- package/dist/trajectory-replay/index.js.map +1 -1
- package/dist/{tree-0r6gPODs.js → tree-DQMlcNFI.js} +18 -6
- package/dist/tree-DQMlcNFI.js.map +1 -0
- package/dist/{types-DmYd2Igl.d.ts → types-BJ27EWAS.d.ts} +8 -8
- package/dist/{types-DmYd2Igl.d.ts.map → types-BJ27EWAS.d.ts.map} +1 -1
- package/dist/{types-ClDpBoLt.d.ts → types-CDWfUYOq.d.ts} +2 -2
- package/dist/{types-ClDpBoLt.d.ts.map → types-CDWfUYOq.d.ts.map} +1 -1
- package/dist/{types-_dfu6Ox2.d.ts → types-DI7YKvDI.d.ts} +3 -3
- package/dist/{types-_dfu6Ox2.d.ts.map → types-DI7YKvDI.d.ts.map} +1 -1
- package/dist/{types-C8AyaiFi.js → types-_tlhWGUq.js} +2 -2
- package/dist/{types-C8AyaiFi.js.map → types-_tlhWGUq.js.map} +1 -1
- package/dist/{types-DGqGbNY4.d.ts → types-pMk2rgP9.d.ts} +20 -6
- package/dist/{types-DGqGbNY4.d.ts.map → types-pMk2rgP9.d.ts.map} +1 -1
- package/dist/{verdict-CKo1iZkI.js → verdict-5PVtsWT_.js} +2 -2
- package/dist/{verdict-CKo1iZkI.js.map → verdict-5PVtsWT_.js.map} +1 -1
- package/dist/{verdict-cache-DfzlHLdf.js → verdict-cache-BPaYxfG8.js} +2 -2
- package/dist/verdict-cache-BPaYxfG8.js.map +1 -0
- package/dist/wire/index.d.ts +3 -3
- package/dist/wire/index.js +1 -1
- package/docs/campaign-proposers.md +14 -1
- package/docs/public-api.md +323 -85
- package/docs/rollout.md +2 -2
- package/docs/search-ledger.md +14 -2
- package/docs/statistical-evidence.md +9 -3
- package/docs/trajectory-replay.md +4 -0
- package/package.json +1 -1
- package/dist/agent-profile-BKgR30kv.d.ts.map +0 -1
- package/dist/benchmark-command-BpmrrgzA.js.map +0 -1
- package/dist/campaign-UzOUBIwA.js.map +0 -1
- package/dist/campaign-evidence-BX8OveG5.js.map +0 -1
- package/dist/canonical-BANK6NOj.js.map +0 -1
- package/dist/default-registry-DSo3tnsW.js.map +0 -1
- package/dist/define-agent-eval-4KGwzIVt.d.ts.map +0 -1
- package/dist/define-agent-eval-C6zFzxp7.js.map +0 -1
- package/dist/dspy-rlm-engine-EC-Pkdf-.js.map +0 -1
- package/dist/emitter-DhQ65mza.js.map +0 -1
- package/dist/external-optimizer-process-DFEPdWJY.js.map +0 -1
- package/dist/external-optimizer-subprocess-BspZ0bZb.js.map +0 -1
- package/dist/index-Bcy00QoN.d.ts.map +0 -1
- package/dist/index-BsTGJf2M.d.ts.map +0 -1
- package/dist/index-CzEGCOWM.d.ts.map +0 -1
- package/dist/index-OvU1UXKC.d.ts.map +0 -1
- package/dist/kind-factory-BTUq1Byh.js.map +0 -1
- package/dist/ledger-core-7e6sXmhV.js.map +0 -1
- package/dist/llm-judge-lUQCBY1e.js.map +0 -1
- package/dist/mint-VN-qtJTc.js.map +0 -1
- package/dist/rollout-DDMkK_Lw.js.map +0 -1
- package/dist/run-record-c860wUR8.js.map +0 -1
- package/dist/runtime-rollouts-CALol_Y4.js.map +0 -1
- package/dist/schema-BTTzvMnn.d.ts.map +0 -1
- package/dist/schema-b18jtzZw.js.map +0 -1
- package/dist/search-ledger-file-DoHCYYLt.js.map +0 -1
- package/dist/skillopt-optimization-method-Dch9LiNR.js.map +0 -1
- package/dist/statistical-heldout-RmdXoz2e.d.ts.map +0 -1
- package/dist/statistics-CHs0jlsY.js.map +0 -1
- package/dist/tool-groups-BOH1E-E4.d.ts.map +0 -1
- package/dist/tool-waste-CUASoTtk.d.ts +0 -139
- package/dist/tool-waste-CUASoTtk.d.ts.map +0 -1
- package/dist/trajectory-O3GDHmev.js +0 -55
- package/dist/trajectory-O3GDHmev.js.map +0 -1
- package/dist/tree-0r6gPODs.js.map +0 -1
- package/dist/verdict-cache-DfzlHLdf.js.map +0 -1
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import { s as ValidationError } from "./errors-DeEEV9Vx.js";
|
|
2
|
-
import { a as hashCanonical, i as compareCodeUnits, r as canonicalString, t as LEDGER_HASH_PATTERN } from "./canonical-
|
|
3
|
-
import { c as searchCellRunId, i as modelHasSnapshot } from "./run-record-
|
|
4
|
-
import { n as compareModelIdentities, t as captureModelTreatment } from "./model-comparison-
|
|
5
|
-
import { dt as weightedComposite, pt as mean$1, rt as confidenceInterval, ut as summarizeNumberSeries } from "./statistics-
|
|
2
|
+
import { a as hashCanonical, i as compareCodeUnits, r as canonicalString, t as LEDGER_HASH_PATTERN } from "./canonical-DKgL_Wby.js";
|
|
3
|
+
import { c as searchCellRunId, i as modelHasSnapshot } from "./run-record-CqUft6Yf.js";
|
|
4
|
+
import { n as compareModelIdentities, t as captureModelTreatment } from "./model-comparison-CgnVh4Ph.js";
|
|
5
|
+
import { dt as weightedComposite, pt as mean$1, rt as confidenceInterval, ut as summarizeNumberSeries } from "./statistics-DSidA5I2.js";
|
|
6
6
|
import { t as mulberry32 } from "./random-DrzcgC7F.js";
|
|
7
|
-
import { r as minimumPairsForPairedDeltaTest } from "./paired-promotion-decision-
|
|
8
|
-
import { a as heldoutSignificance, i as dimensionRegressions, o as pairHoldout } from "./statistical-heldout-
|
|
9
|
-
import { a as mapConcurrent } from "./journal-
|
|
10
|
-
import { n as contentHash } from "./verdict-cache-
|
|
11
|
-
import { r as projectCampaignCellQuality, t as campaignCellCostProvenance } from "./run-record-
|
|
7
|
+
import { r as minimumPairsForPairedDeltaTest } from "./paired-promotion-decision-Dn3-jaq4.js";
|
|
8
|
+
import { a as heldoutSignificance, i as dimensionRegressions, o as pairHoldout } from "./statistical-heldout-CaS4T-43.js";
|
|
9
|
+
import { a as mapConcurrent } from "./journal-3y-btqaP.js";
|
|
10
|
+
import { n as contentHash } from "./verdict-cache-BPaYxfG8.js";
|
|
11
|
+
import { r as projectCampaignCellQuality, t as campaignCellCostProvenance } from "./run-record-Bqg0NZ_e.js";
|
|
12
12
|
import { n as CostAccountingIncompleteError, t as CostLedger } from "./cost-ledger-1CwUnVOd.js";
|
|
13
|
-
import { A as
|
|
13
|
+
import { A as campaignCoverage, D as assertCampaignDesign, M as campaignSplitDigest, O as assertCampaignSplitIdentity, P as formatCoverageFailures, S as FinalEvidenceError, f as campaignBreakdown, h as campaignMeanCompositeOrNull, j as campaignScenarioIdentity, k as assertCompleteCampaign, m as campaignMeanComposite, w as BackendIntegrityError, x as FinalEvidenceConflictError } from "./campaign-evidence-CsUE_lwc.js";
|
|
14
14
|
import { t as deepFreezeCanonicalJson } from "./deep-freeze-CK8-2W7p.js";
|
|
15
|
-
import {
|
|
16
|
-
import { c as surfaceDispatchRef, l as surfaceHash, o as renderSurfaceDiff, s as surfaceContentHash, u as surfaceHashMatches } from "./json-recovery-
|
|
17
|
-
import { r as summarizeEvaluationUnits, t as defineEvaluationClaim } from "./claim-
|
|
18
|
-
import { a as validateSearchLedgerEvent, d as searchNodeId, f as searchTaskSetDigest, i as replaySearchLedgerText, n as openSearchLedger, u as searchCellId } from "./search-ledger-
|
|
19
|
-
import { D as CLAIM_OPERATION, O as SEARCH_KERNEL_SOURCE, b as estimateNode, i as runSearch, k as searchExpansionIndex, n as paretoFrontier, o as searchPolicyView, r as paretoFrontierWithCrowding, s as EXPANSION_OPERATORS } from "./pareto-
|
|
15
|
+
import { b as createRunCostLedger, x as fsCampaignStorage } from "./external-optimizer-subprocess-B48Ie4qQ.js";
|
|
16
|
+
import { c as surfaceDispatchRef, l as surfaceHash, o as renderSurfaceDiff, s as surfaceContentHash, u as surfaceHashMatches } from "./json-recovery-BRUCeQxo.js";
|
|
17
|
+
import { r as summarizeEvaluationUnits, t as defineEvaluationClaim } from "./claim-BWEXwwBk.js";
|
|
18
|
+
import { a as validateSearchLedgerEvent, d as searchNodeId, f as searchTaskSetDigest, i as replaySearchLedgerText, n as openSearchLedger, u as searchCellId } from "./search-ledger-C7t68cmy.js";
|
|
19
|
+
import { D as CLAIM_OPERATION, O as SEARCH_KERNEL_SOURCE, b as estimateNode, i as runSearch, k as searchExpansionIndex, n as paretoFrontier, o as searchPolicyView, r as paretoFrontierWithCrowding, s as EXPANSION_OPERATORS } from "./pareto-Bg75Gajo.js";
|
|
20
20
|
import { c as redactText, m as detectPersonalData, n as REDACTION_VERSION, p as detectCredential } from "./redact-zp_ILC4l.js";
|
|
21
|
-
import { t as detectRewardHacking } from "./reward-hacking-
|
|
22
|
-
import { t as assertProposalFindings } from "./proposal-findings-
|
|
23
|
-
import { n as searchProposerView, t as renderSearchSummary } from "./search-summary-CNHpHFfw.js";
|
|
21
|
+
import { t as detectRewardHacking } from "./reward-hacking-DKAflk2c.js";
|
|
22
|
+
import { t as assertProposalFindings } from "./proposal-findings-DnR7zdUc.js";
|
|
24
23
|
import { i as stripFencedJson, n as isRecord } from "./json-DtvZNAU9.js";
|
|
25
|
-
import {
|
|
24
|
+
import { c as isExternalTextCandidate } from "./external-optimizer-contracts-eKQTutGZ.js";
|
|
25
|
+
import { n as searchProposerView, t as renderSearchSummary } from "./search-summary-B1x1Vmzh.js";
|
|
26
|
+
import { a as maximumChargeForLlmRequest, i as costReceiptFromLlmError, r as costReceiptFromLlm } from "./llm-client-gRPgIJyz.js";
|
|
26
27
|
import { t as JudgeParseError } from "./judges-BLxg5p8E.js";
|
|
27
28
|
import { createHash } from "node:crypto";
|
|
28
29
|
import { z } from "zod";
|
|
29
30
|
import { writeFileSync } from "node:fs";
|
|
30
31
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
32
|
+
import { toW3CTraceId } from "@tangle-network/agent-trace-contract";
|
|
31
33
|
import { homedir, tmpdir } from "node:os";
|
|
32
34
|
import { execSync } from "node:child_process";
|
|
33
35
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -104,7 +106,7 @@ function computeAggregates(cells, judges, seed, cost) {
|
|
|
104
106
|
return {
|
|
105
107
|
byJudge,
|
|
106
108
|
byScenario,
|
|
107
|
-
cost:
|
|
109
|
+
cost: withUncapturedAgentSpend(cost, [{ cells }]),
|
|
108
110
|
cellsExecuted: cells.filter((cell) => !cell.error?.startsWith("skipped:") && cell.errorStage !== "dispatch" && !(cell.error && cell.errorStage === void 0)).length,
|
|
109
111
|
cellsSkipped: cells.filter((c) => c.error?.startsWith("skipped:")).length,
|
|
110
112
|
cellsCached: cells.filter((c) => c.cached).length,
|
|
@@ -119,12 +121,16 @@ function computeAggregates(cells, judges, seed, cost) {
|
|
|
119
121
|
};
|
|
120
122
|
}
|
|
121
123
|
/**
|
|
122
|
-
*
|
|
123
|
-
* capture. A
|
|
124
|
-
* ledger
|
|
124
|
+
* A cost read from the ledger, made incomplete by each executed cell whose agent spend the ledger
|
|
125
|
+
* did not capture. A ledger read counts only recorded calls, so an agent that paid outside the
|
|
126
|
+
* ledger would otherwise read as complete. A labeled campaign prefixes its reasons, so cells that
|
|
127
|
+
* share an id across arms stay distinct.
|
|
125
128
|
*/
|
|
126
|
-
function
|
|
127
|
-
const uncaptured = cells.filter((cell) => !cell.error?.startsWith("skipped:") && cell.costProvenance.kind === "uncaptured")
|
|
129
|
+
function withUncapturedAgentSpend(cost, campaigns) {
|
|
130
|
+
const uncaptured = campaigns.flatMap((campaign) => (campaign?.cells ?? []).filter((cell) => !cell.error?.startsWith("skipped:") && cell.costProvenance.kind === "uncaptured").map((cell) => ({
|
|
131
|
+
cell,
|
|
132
|
+
label: campaign?.label
|
|
133
|
+
})));
|
|
128
134
|
if (uncaptured.length === 0) return cost;
|
|
129
135
|
return {
|
|
130
136
|
...cost,
|
|
@@ -132,9 +138,9 @@ function withUncapturedAgentCells(cost, cells) {
|
|
|
132
138
|
kind: "uncaptured",
|
|
133
139
|
usd: null
|
|
134
140
|
},
|
|
135
|
-
usageComplete: cost.usageComplete && uncaptured.every((cell) => cell.tokenUsage.tokensKnown !== false),
|
|
141
|
+
...cost.usageComplete === void 0 ? {} : { usageComplete: cost.usageComplete && uncaptured.every(({ cell }) => cell.tokenUsage.tokensKnown !== false) },
|
|
136
142
|
accountingComplete: false,
|
|
137
|
-
incompleteReasons: [.../* @__PURE__ */ new Set([...cost.incompleteReasons, ...uncaptured.map((cell) => `agent spend for cell '${cell.cellId}' was not captured by the cost ledger`)])]
|
|
143
|
+
incompleteReasons: [.../* @__PURE__ */ new Set([...cost.incompleteReasons, ...uncaptured.map(({ cell, label }) => `${label ? `${label}: ` : ""}agent spend for cell '${cell.cellId}' was not captured by the cost ledger`)])]
|
|
138
144
|
};
|
|
139
145
|
}
|
|
140
146
|
function aggregate(samples, seed) {
|
|
@@ -432,13 +438,13 @@ function openAttempt(args, cellDir, attemptCostTags) {
|
|
|
432
438
|
}, null, 2));
|
|
433
439
|
artifactsByPath[`${args.slot.cellId}/${attemptPrefix}/identity.json`] = identityPath;
|
|
434
440
|
storage.write(join(cellDir, "latest-attempt.json"), JSON.stringify(attempt));
|
|
435
|
-
const trace = args.buildTraceWriter(args.slot.cellId, traceDir);
|
|
441
|
+
const trace = args.buildTraceWriter(args.slot.cellId, traceDir, attempt);
|
|
436
442
|
const paid = { started: false };
|
|
437
443
|
const artifacts = {
|
|
438
444
|
async write(path, content) {
|
|
439
445
|
const fullPath = resolve(artifactDir, path);
|
|
440
446
|
const artifactPath = relative(artifactDir, fullPath);
|
|
441
|
-
if (!artifactPath || artifactPath === ".." || artifactPath.startsWith(
|
|
447
|
+
if (!artifactPath || artifactPath === ".." || artifactPath.startsWith(`..${sep}`) || isAbsolute(artifactPath)) throw new Error("Artifact path must remain inside this execution attempt");
|
|
442
448
|
storage.ensureDir(join(fullPath, ".."));
|
|
443
449
|
storage.write(fullPath, content);
|
|
444
450
|
artifactsByPath[`${args.slot.cellId}/${attemptPrefix}/artifacts/${artifactPath.split(sep).join("/")}`] = fullPath;
|
|
@@ -704,6 +710,8 @@ async function executeCell(args) {
|
|
|
704
710
|
timeoutMs: args.dispatchShutdownTimeoutMs
|
|
705
711
|
});
|
|
706
712
|
const costCallIds = args.costLedger.list({ tags: costTags }).map((receipt) => receipt.callId).sort();
|
|
713
|
+
await trace.flush();
|
|
714
|
+
const traceRef = trace.traceRef?.() ?? { unknown: `the trace writer of campaign cell ${args.slot.cellId} exposes no trace identity` };
|
|
707
715
|
const cell = withCurrentAgentEvidence({
|
|
708
716
|
manifestHash: args.manifestHash,
|
|
709
717
|
attempt,
|
|
@@ -720,13 +728,13 @@ async function executeCell(args) {
|
|
|
720
728
|
durationMs: Date.now() - startMs,
|
|
721
729
|
seed: args.slot.cellSeed,
|
|
722
730
|
cached: false,
|
|
731
|
+
traceRef,
|
|
723
732
|
...args.attempt > 1 ? { retryAttempts: args.attempt - 1 } : {},
|
|
724
733
|
...failure ? { errorStage: failure.stage } : {},
|
|
725
734
|
...failure?.judge ? { errorJudge: failure.judge } : {},
|
|
726
735
|
error: errorMessage
|
|
727
736
|
}, args.costLedger, costTags);
|
|
728
737
|
let retry = failure ? recordCellFailure(args, run, failure, cell, costTags, fatalCellError) : false;
|
|
729
|
-
await trace.flush();
|
|
730
738
|
const resultPath = join(attemptDir, "result.json");
|
|
731
739
|
storage.write(resultPath, JSON.stringify(cell));
|
|
732
740
|
artifactsByPath[`${args.slot.cellId}/${attemptPrefix}/result.json`] = resultPath;
|
|
@@ -805,9 +813,19 @@ function enforceDispatchUsage(cell, mode) {
|
|
|
805
813
|
}
|
|
806
814
|
console.warn(`[runCampaign] expectUsage: ${msg}`);
|
|
807
815
|
}
|
|
816
|
+
/**
|
|
817
|
+
* The default writer keeps an attempt's ended spans in `<attempt>/trace/spans.jsonl`.
|
|
818
|
+
* Its trace id is the W3C id of the attempt's run, `<runAttemptId>/<cellId>/attempt-<n>`,
|
|
819
|
+
* derived by the trace contract's one run-id rule, and every span it writes
|
|
820
|
+
* carries it as `traceId`, so the id finds the file and the file proves the id.
|
|
821
|
+
* A span opened and never ended is not written; `traceRef` counts it as dropped.
|
|
822
|
+
*/
|
|
808
823
|
function defaultBuildTraceWriter(storage) {
|
|
809
|
-
return (cellId, dir) => {
|
|
824
|
+
return (cellId, dir, attempt) => {
|
|
825
|
+
const traceId = toW3CTraceId(`${attempt.runAttemptId}/${cellId}/attempt-${attempt.number}`);
|
|
810
826
|
const spans = [];
|
|
827
|
+
const open = /* @__PURE__ */ new Set();
|
|
828
|
+
let flushed;
|
|
811
829
|
return {
|
|
812
830
|
span(name, attributes) {
|
|
813
831
|
const startMs = Date.now();
|
|
@@ -815,12 +833,16 @@ function defaultBuildTraceWriter(storage) {
|
|
|
815
833
|
name,
|
|
816
834
|
cellId,
|
|
817
835
|
startMs,
|
|
818
|
-
...attributes ?? {}
|
|
836
|
+
...attributes ?? {},
|
|
837
|
+
traceId
|
|
819
838
|
};
|
|
839
|
+
open.add(record);
|
|
820
840
|
return {
|
|
821
841
|
end(endAttrs) {
|
|
822
842
|
record.durationMs = Date.now() - startMs;
|
|
823
843
|
if (endAttrs) Object.assign(record, endAttrs);
|
|
844
|
+
record.traceId = traceId;
|
|
845
|
+
open.delete(record);
|
|
824
846
|
spans.push(record);
|
|
825
847
|
},
|
|
826
848
|
setAttribute(key, value) {
|
|
@@ -830,6 +852,19 @@ function defaultBuildTraceWriter(storage) {
|
|
|
830
852
|
},
|
|
831
853
|
async flush() {
|
|
832
854
|
storage.write(join(dir, "spans.jsonl"), spans.map((s) => JSON.stringify(s)).join("\n"));
|
|
855
|
+
flushed = {
|
|
856
|
+
written: spans.length,
|
|
857
|
+
dropped: open.size
|
|
858
|
+
};
|
|
859
|
+
},
|
|
860
|
+
traceRef() {
|
|
861
|
+
if (flushed === void 0) return { unknown: `the trace of campaign cell ${cellId} was never flushed` };
|
|
862
|
+
return {
|
|
863
|
+
traceId,
|
|
864
|
+
execRunId: null,
|
|
865
|
+
spansWritten: flushed.written,
|
|
866
|
+
spansDropped: flushed.dropped
|
|
867
|
+
};
|
|
833
868
|
}
|
|
834
869
|
};
|
|
835
870
|
};
|
|
@@ -951,6 +986,18 @@ function planCampaignRun(opts) {
|
|
|
951
986
|
* primitive but live in `presets/run-improvement-loop.ts`. This file keeps
|
|
952
987
|
* the core orchestrator minimal — Phase 1 of the Pass A track.
|
|
953
988
|
*/
|
|
989
|
+
/** The writer `tracing: 'off'` gives every attempt: it keeps no span and names no trace. */
|
|
990
|
+
function discardingTraceWriter(cellId) {
|
|
991
|
+
const span = {
|
|
992
|
+
end: () => void 0,
|
|
993
|
+
setAttribute: () => void 0
|
|
994
|
+
};
|
|
995
|
+
return {
|
|
996
|
+
span: () => span,
|
|
997
|
+
flush: async () => void 0,
|
|
998
|
+
traceRef: () => ({ unknown: `tracing is off for the campaign that measured cell ${cellId}` })
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
954
1001
|
/**
|
|
955
1002
|
* Core campaign orchestrator: fan scenarios through dispatch, score with judges, aggregate bootstrap CIs, and persist reproducible `CampaignResult` records.
|
|
956
1003
|
*/
|
|
@@ -971,6 +1018,9 @@ async function runCampaign(opts) {
|
|
|
971
1018
|
if (typeof cellRetry.retryable !== "function") throw new Error("runCampaign: cellRetry.retryable must be a function");
|
|
972
1019
|
if (cellRetry.retryResult !== void 0 && typeof cellRetry.retryResult !== "function") throw new Error("runCampaign: cellRetry.retryResult must be a function");
|
|
973
1020
|
}
|
|
1021
|
+
if (opts.tracing !== void 0 && opts.tracing !== "on" && opts.tracing !== "off") throw new Error("runCampaign: tracing must be 'on' or 'off'");
|
|
1022
|
+
if (opts.tracing === "off" && opts.buildTraceWriter !== void 0) throw new Error("runCampaign: tracing 'off' discards every span, so it cannot be combined with buildTraceWriter; set one");
|
|
1023
|
+
const buildTraceWriter = opts.tracing === "off" ? discardingTraceWriter : opts.buildTraceWriter ?? defaultBuildTraceWriter(storage);
|
|
974
1024
|
if (typeof opts.runDir !== "string" || opts.runDir.trim().length === 0) throw new Error("runCampaign: runDir is required and must be a non-empty string");
|
|
975
1025
|
opts.runDir = resolveRunDir(opts.runDir, opts.repo);
|
|
976
1026
|
storage.ensureDir(opts.runDir);
|
|
@@ -1027,7 +1077,7 @@ async function runCampaign(opts) {
|
|
|
1027
1077
|
resumable,
|
|
1028
1078
|
now,
|
|
1029
1079
|
storage,
|
|
1030
|
-
buildTraceWriter
|
|
1080
|
+
buildTraceWriter,
|
|
1031
1081
|
signal,
|
|
1032
1082
|
dispatchTimeoutMs: opts.dispatchTimeoutMs,
|
|
1033
1083
|
dispatchShutdownTimeoutMs,
|
|
@@ -2590,6 +2640,23 @@ function quoteArg(arg) {
|
|
|
2590
2640
|
}
|
|
2591
2641
|
// src/campaign/presets/run-final-comparison.ts
|
|
2592
2642
|
/** Compare a search-selected surface without changing the search's selection. */
|
|
2643
|
+
/** Each holdout campaign a final comparison dispatched, labeled by arm; a reused arm counts once. */
|
|
2644
|
+
function finalComparisonCampaigns(comparison) {
|
|
2645
|
+
return [
|
|
2646
|
+
{
|
|
2647
|
+
label: "holdout.baseline",
|
|
2648
|
+
cells: comparison.baselineOnHoldout.cells
|
|
2649
|
+
},
|
|
2650
|
+
...comparison.winnerOnHoldout === comparison.baselineOnHoldout ? [] : [{
|
|
2651
|
+
label: "holdout.winner",
|
|
2652
|
+
cells: comparison.winnerOnHoldout.cells
|
|
2653
|
+
}],
|
|
2654
|
+
...comparison.neutralizedOnHoldout ? [{
|
|
2655
|
+
label: "holdout.neutralized",
|
|
2656
|
+
cells: comparison.neutralizedOnHoldout.cells
|
|
2657
|
+
}] : []
|
|
2658
|
+
];
|
|
2659
|
+
}
|
|
2593
2660
|
async function runFinalComparison(opts) {
|
|
2594
2661
|
opts = {
|
|
2595
2662
|
...opts,
|
|
@@ -3154,28 +3221,63 @@ function round(value) {
|
|
|
3154
3221
|
}
|
|
3155
3222
|
// src/campaign/search-campaign-cell.ts
|
|
3156
3223
|
/**
|
|
3157
|
-
*
|
|
3158
|
-
* composite
|
|
3159
|
-
* never retryable, because `runCampaign` already
|
|
3160
|
-
* its tokens and cost, with an uncaptured cost
|
|
3161
|
-
*
|
|
3224
|
+
* Project a campaign cell onto what `cell-settled` records: `passed` with the
|
|
3225
|
+
* composite, each judge's composite and each judge dimension when every judge
|
|
3226
|
+
* scored it, else `errored`, never retryable, because `runCampaign` already
|
|
3227
|
+
* applied its own retry policy; its tokens and cost, with an uncaptured cost
|
|
3228
|
+
* kept as a lower bound; the attempt that produced it and the trace its spans
|
|
3229
|
+
* went to.
|
|
3162
3230
|
*/
|
|
3163
|
-
function
|
|
3164
|
-
|
|
3231
|
+
function campaignCellMeasurement(cell) {
|
|
3232
|
+
const measurement = {
|
|
3233
|
+
cellId: cell.cellId,
|
|
3234
|
+
scenarioId: cell.scenarioId,
|
|
3235
|
+
rep: cell.rep,
|
|
3236
|
+
attempt: cell.attempt ? {
|
|
3237
|
+
runAttemptId: cell.attempt.runAttemptId,
|
|
3238
|
+
number: cell.attempt.number
|
|
3239
|
+
} : null,
|
|
3240
|
+
cached: cell.cached,
|
|
3165
3241
|
outcome: campaignCellOutcome(cell),
|
|
3166
3242
|
accounting: campaignCellAccounting(cell),
|
|
3243
|
+
...cell.resolvedModel === void 0 ? {} : { resolvedModel: cell.resolvedModel },
|
|
3244
|
+
durationMs: cell.durationMs
|
|
3245
|
+
};
|
|
3246
|
+
return {
|
|
3247
|
+
...measurement,
|
|
3248
|
+
traceRef: cell.traceRef ?? campaignCellTraceUnknown(measurement)
|
|
3249
|
+
};
|
|
3250
|
+
}
|
|
3251
|
+
/**
|
|
3252
|
+
* What `cell-settled` records for one campaign cell, or for its measurement:
|
|
3253
|
+
* the outcome and accounting of `campaignCellMeasurement`, the model the cell
|
|
3254
|
+
* resolved, else the declared one, its duration, and the trace its trace
|
|
3255
|
+
* writer named. A cell or measurement recorded before cells carried a trace
|
|
3256
|
+
* keeps an unknown reference that names the attempt whose trace writer
|
|
3257
|
+
* received its spans.
|
|
3258
|
+
*/
|
|
3259
|
+
function campaignCellSearchResult(cell, input) {
|
|
3260
|
+
const measurement = "outcome" in cell ? cell : campaignCellMeasurement(cell);
|
|
3261
|
+
return {
|
|
3262
|
+
outcome: measurement.outcome,
|
|
3263
|
+
accounting: measurement.accounting,
|
|
3167
3264
|
identity: {
|
|
3168
3265
|
...input.execution,
|
|
3169
|
-
model:
|
|
3266
|
+
model: measurement.resolvedModel === void 0 ? input.execution.model : searchModelIdentity(measurement.resolvedModel, input.execution.model.provider)
|
|
3170
3267
|
},
|
|
3171
|
-
wallMs:
|
|
3268
|
+
wallMs: measurement.durationMs,
|
|
3172
3269
|
placement: {
|
|
3173
3270
|
lane: input.lane,
|
|
3174
3271
|
boxId: null
|
|
3175
3272
|
},
|
|
3176
|
-
traceRef:
|
|
3273
|
+
traceRef: measurement.traceRef ?? campaignCellTraceUnknown(measurement)
|
|
3177
3274
|
};
|
|
3178
3275
|
}
|
|
3276
|
+
/** The trace reference of a cell recorded before cells carried one. */
|
|
3277
|
+
function campaignCellTraceUnknown({ cellId, attempt }) {
|
|
3278
|
+
const prefix = `runCampaign assigns no trace id; campaign cell ${cellId}`;
|
|
3279
|
+
return { unknown: attempt === null ? `${prefix} records no attempt` : `${prefix} wrote its spans through the trace writer of attempt ${attempt.runAttemptId}/attempt-${attempt.number}` };
|
|
3280
|
+
}
|
|
3179
3281
|
/** A provider-reported model: a snapshot when its name pins one, else a moving alias. */
|
|
3180
3282
|
function searchModelIdentity(model, provider) {
|
|
3181
3283
|
return modelHasSnapshot(model) ? {
|
|
@@ -3199,7 +3301,14 @@ function campaignCellOutcome(cell) {
|
|
|
3199
3301
|
}
|
|
3200
3302
|
};
|
|
3201
3303
|
const metrics = { composite: quality.score };
|
|
3202
|
-
for (const [judge, score] of Object.entries(quality.successfulJudgeScores))
|
|
3304
|
+
for (const [judge, score] of Object.entries(quality.successfulJudgeScores)) {
|
|
3305
|
+
metrics[`judge.${judge}`] = score.composite;
|
|
3306
|
+
for (const [dimension, value] of Object.entries(score.dimensions)) {
|
|
3307
|
+
const key = `dimension.${judge}.${dimension}`;
|
|
3308
|
+
if (Object.hasOwn(metrics, key)) throw new Error(`campaign cell ${cell.cellId}: two dimensions share the metric '${key}'`);
|
|
3309
|
+
metrics[key] = value;
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3203
3312
|
return {
|
|
3204
3313
|
status: "passed",
|
|
3205
3314
|
score: quality.score,
|
|
@@ -3216,7 +3325,7 @@ function campaignCellAccounting(cell) {
|
|
|
3216
3325
|
status: "known",
|
|
3217
3326
|
inputTokens: usage.input,
|
|
3218
3327
|
outputTokens: usage.output,
|
|
3219
|
-
cachedTokens: 0
|
|
3328
|
+
cachedTokens: usage.cached ?? 0
|
|
3220
3329
|
},
|
|
3221
3330
|
cost: cell.costProvenance.kind === "uncaptured" ? {
|
|
3222
3331
|
status: "unknown",
|
|
@@ -4469,7 +4578,15 @@ var SurfaceNodes = class {
|
|
|
4469
4578
|
const reps = this.opts.reps ?? 1;
|
|
4470
4579
|
const coverage = campaignCoverage(campaign.cells, this.opts.scenarios, reps, (this.opts.judges?.length ?? 0) > 0);
|
|
4471
4580
|
const expansion = nodeId === state.rootNodeId ? -1 : this.generationOf(state, this.origin(state, nodeId).expansion);
|
|
4472
|
-
return toScoredSurfaceOutcome(surfaceHash(this.surface(state, nodeId)), campaign, coverage, expansion);
|
|
4581
|
+
return toScoredSurfaceOutcome(surfaceHash(this.surface(state, nodeId)), campaign, coverage, expansion, this.evidence());
|
|
4582
|
+
}
|
|
4583
|
+
/** How a breakdown shows each scenario's evidence: the hook the external
|
|
4584
|
+
* optimizers' callbacks use, with the scenarios it receives. */
|
|
4585
|
+
evidence() {
|
|
4586
|
+
return {
|
|
4587
|
+
scenarios: this.opts.scenarios,
|
|
4588
|
+
...this.opts.describeArtifact ? { describeArtifact: this.opts.describeArtifact } : {}
|
|
4589
|
+
};
|
|
4473
4590
|
}
|
|
4474
4591
|
/** The Pareto frontier over every measured, complete node. */
|
|
4475
4592
|
frontier(state) {
|
|
@@ -4526,7 +4643,7 @@ var SurfaceNodes = class {
|
|
|
4526
4643
|
candidate(state, nodeId, expansion) {
|
|
4527
4644
|
const campaign = this.campaign(state, nodeId);
|
|
4528
4645
|
const coverage = campaignCoverage(campaign.cells, this.opts.scenarios, this.opts.reps ?? 1, (this.opts.judges?.length ?? 0) > 0);
|
|
4529
|
-
const breakdown = campaignBreakdown(campaign);
|
|
4646
|
+
const breakdown = campaignBreakdown(campaign, this.evidence());
|
|
4530
4647
|
const child = this.proposal(state, expansion).children.find((entry) => state.nodeIdForDigest(entry.node.artifactDigest) === nodeId);
|
|
4531
4648
|
return {
|
|
4532
4649
|
surfaceHash: surfaceHash(this.surface(state, nodeId)),
|
|
@@ -4567,7 +4684,7 @@ var SurfaceNodes = class {
|
|
|
4567
4684
|
return blob;
|
|
4568
4685
|
}
|
|
4569
4686
|
async campaignRun(runDir, surface, input) {
|
|
4570
|
-
const { baselineSurface: _baselineSurface, premeasuredBaseline: _premeasuredBaseline, dispatchWithSurface, proposer: _proposer, populationSize: _populationSize, maxGenerations: _maxGenerations, candidateConcurrency: _candidateConcurrency, maxImprovementShots: _maxImprovementShots, findings: _findings, analyzeGeneration: _analyzeGeneration, policy: _policy, searchLedger: _searchLedger, ...campaignOptions } = this.opts;
|
|
4687
|
+
const { baselineSurface: _baselineSurface, premeasuredBaseline: _premeasuredBaseline, dispatchWithSurface, proposer: _proposer, populationSize: _populationSize, maxGenerations: _maxGenerations, candidateConcurrency: _candidateConcurrency, maxImprovementShots: _maxImprovementShots, findings: _findings, analyzeGeneration: _analyzeGeneration, policy: _policy, searchLedger: _searchLedger, describeArtifact: _describeArtifact, ...campaignOptions } = this.opts;
|
|
4571
4688
|
return runCampaign({
|
|
4572
4689
|
...campaignOptions,
|
|
4573
4690
|
signal: input.signal ?? this.opts.signal,
|
|
@@ -4653,8 +4770,8 @@ function computeParetoFrontier(scored) {
|
|
|
4653
4770
|
}));
|
|
4654
4771
|
return paretoFrontier(scored, objectives).frontier;
|
|
4655
4772
|
}
|
|
4656
|
-
function toScoredSurfaceOutcome(hash, campaign, coverage, generation) {
|
|
4657
|
-
const breakdown = campaignBreakdown(campaign);
|
|
4773
|
+
function toScoredSurfaceOutcome(hash, campaign, coverage, generation, evidence) {
|
|
4774
|
+
const breakdown = campaignBreakdown(campaign, evidence);
|
|
4658
4775
|
return {
|
|
4659
4776
|
split: "search",
|
|
4660
4777
|
generation,
|
|
@@ -4964,25 +5081,30 @@ function optimizationResult(run, baselineSurface, result) {
|
|
|
4964
5081
|
const firstEdge = state.edge(state.node(result.leader).edgeIds[0]);
|
|
4965
5082
|
const winnerRationale = firstEdge.operator === "seed" || !("sha256" in firstEdge.rationale) ? void 0 : recorder.readBlob(firstEdge.rationale).text;
|
|
4966
5083
|
const expansions = nodes.generations(state);
|
|
5084
|
+
const generations = nodes.history(state, policy).map((record) => ({
|
|
5085
|
+
record,
|
|
5086
|
+
surfaces: nodes.expansionNodes(state, expansions[record.generationIndex]).map((nodeId) => {
|
|
5087
|
+
const surface = nodes.surface(state, nodeId);
|
|
5088
|
+
return {
|
|
5089
|
+
surfaceHash: surfaceHash(surface),
|
|
5090
|
+
surface,
|
|
5091
|
+
campaign: nodes.campaign(state, nodeId)
|
|
5092
|
+
};
|
|
5093
|
+
})
|
|
5094
|
+
}));
|
|
5095
|
+
const baselineCampaign = nodes.campaign(state, state.rootNodeId);
|
|
4967
5096
|
return {
|
|
4968
|
-
generations
|
|
4969
|
-
record,
|
|
4970
|
-
surfaces: nodes.expansionNodes(state, expansions[record.generationIndex]).map((nodeId) => {
|
|
4971
|
-
const surface = nodes.surface(state, nodeId);
|
|
4972
|
-
return {
|
|
4973
|
-
surfaceHash: surfaceHash(surface),
|
|
4974
|
-
surface,
|
|
4975
|
-
campaign: nodes.campaign(state, nodeId)
|
|
4976
|
-
};
|
|
4977
|
-
})
|
|
4978
|
-
})),
|
|
5097
|
+
generations,
|
|
4979
5098
|
baselineSurface,
|
|
4980
5099
|
winnerSurface,
|
|
4981
5100
|
winnerSurfaceHash: surfaceHash(winnerSurface),
|
|
4982
5101
|
...firstEdge.operator !== "seed" && firstEdge.label ? { winnerLabel: firstEdge.label } : {},
|
|
4983
5102
|
...winnerRationale ? { winnerRationale } : {},
|
|
4984
|
-
baselineCampaign
|
|
4985
|
-
cost: costLedger.summary(),
|
|
5103
|
+
baselineCampaign,
|
|
5104
|
+
cost: withUncapturedAgentSpend(costLedger.summary(), searchCampaigns({
|
|
5105
|
+
baselineCampaign,
|
|
5106
|
+
generations
|
|
5107
|
+
})),
|
|
4986
5108
|
searchHistory: recorder.receipt({
|
|
4987
5109
|
producerId: opts.proposer.kind,
|
|
4988
5110
|
runId: runDir
|
|
@@ -4990,6 +5112,15 @@ function optimizationResult(run, baselineSurface, result) {
|
|
|
4990
5112
|
paretoFrontier: nodes.frontier(state)
|
|
4991
5113
|
};
|
|
4992
5114
|
}
|
|
5115
|
+
/** Each distinct campaign a search measured, labeled by its surface. */
|
|
5116
|
+
function searchCampaigns(search) {
|
|
5117
|
+
const labeled = /* @__PURE__ */ new Map([[search.baselineCampaign, "search.baseline"]]);
|
|
5118
|
+
for (const generation of search.generations) for (const { surfaceHash: hash, campaign } of generation.surfaces) if (!labeled.has(campaign)) labeled.set(campaign, `search.${hash.slice(0, 12)}`);
|
|
5119
|
+
return [...labeled].map(([campaign, label]) => ({
|
|
5120
|
+
label,
|
|
5121
|
+
cells: campaign.cells
|
|
5122
|
+
}));
|
|
5123
|
+
}
|
|
4993
5124
|
/** The default ledger and identities when the caller binds none. Revisions are
|
|
4994
5125
|
* content digests of what the caller declared, and each uri names what its
|
|
4995
5126
|
* digest covers: the dispatch ref, the proposer kind, the kernel. */
|
|
@@ -5141,7 +5272,7 @@ async function runImprovementLoop(opts) {
|
|
|
5141
5272
|
...optimization,
|
|
5142
5273
|
...comparison,
|
|
5143
5274
|
prResult,
|
|
5144
|
-
cost: costLedger.summary()
|
|
5275
|
+
cost: withUncapturedAgentSpend(costLedger.summary(), [...searchCampaigns(optimization), ...finalComparisonCampaigns(comparison)])
|
|
5145
5276
|
};
|
|
5146
5277
|
}
|
|
5147
5278
|
// src/campaign/optimization-cost.ts
|
|
@@ -6041,6 +6172,6 @@ function parseResponse(name, response, schema, llmCall) {
|
|
|
6041
6172
|
function firstString(value) {
|
|
6042
6173
|
return typeof value === "string" && value.trim() ? value : void 0;
|
|
6043
6174
|
}
|
|
6044
|
-
export {
|
|
6175
|
+
export { reserveFinalEvidence as $, campaignCellMeasurement as A, captureJudge as B, surfaceDiff as C, createSearchHistoryReceipt as D, assertSearchHistoryMatchesState as E, asha as F, scoreRedTeamOutput as G, DEFAULT_RED_TEAM_CORPUS as H, uniform as I, assertIndependentEvaluationSplit as J, Dataset as K, finalComparisonCampaigns as L, searchModelIdentity as M, searchProposalExecution as N, verifySearchHistoryArtifact as O, searchReceiptAccounting as P, prepareSearchFinalEvidence as Q, runFinalComparison as R, searchEdgeId as S, assertSearchHistoryAdmissionOptions as T, redTeamDataset as U, defaultProductionGate as V, redTeamReport as W, evaluationUnitMap as X, captureFinalEvidencePolicy as Y, exposeFinalEvidence as Z, crowdedFrontierParent as _, clamp01 as a, cellReceiptModels as at, SearchRecorder as b, readGepaCandidatePopulationArtifact as c, withUncapturedAgentSpend as ct, optimizationTokenUsageFromSummary as d, withFinalEvidenceSources as et, runImprovementLoop as f, beam as g, aide as h, aggregateRunScore as i, resolveRunDir as it, campaignCellSearchResult as j, verifySearchHistoryReceipt as k, combineComparisonCosts as l, computeManifestHash as lt, isProposedCandidate as m, isTransientTransportFailure as n, runCampaign as nt, executeOptimizationMethod as o, buildCellSchedule as ot, runOptimization as p, runCanaries as q, transientDispatchFailure as r, planCampaignRun as rt, assertGepaCandidatePopulationSummary as s, cellCachePath as st, llmJudge as t, runEval as tt, costFromLedgerSummary as u, incumbent as v, surfaceNode as w, developmentClaim as x, incumbentWithOperatorBandit as y, openAutoPr as z };
|
|
6045
6176
|
|
|
6046
|
-
//# sourceMappingURL=llm-judge-
|
|
6177
|
+
//# sourceMappingURL=llm-judge-CThv1Rog.js.map
|