@tangle-network/agent-eval 2.0.5 → 2.0.9
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 +24 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/{agent-profile-CcOq7bOO.d.ts → agent-profile-ORN4aArD.d.ts} +5 -5
- package/dist/{agent-profile-CcOq7bOO.d.ts.map → agent-profile-ORN4aArD.d.ts.map} +1 -1
- package/dist/analyst/index.d.ts +15 -15
- package/dist/analyst/index.js +18 -14
- package/dist/analyst/index.js.map +1 -1
- package/dist/{analyze-runs-C_9cXPZn.js → analyze-runs-CE_5VKh2.js} +6 -5
- package/dist/{analyze-runs-C_9cXPZn.js.map → analyze-runs-CE_5VKh2.js.map} +1 -1
- package/dist/analyze-runs-DT693FJ7.d.ts +65 -0
- package/dist/analyze-runs-DT693FJ7.d.ts.map +1 -0
- package/dist/app-grade/index.d.ts +4 -4
- package/dist/app-grade/index.js +1 -1
- package/dist/{benchmark-command-MfXRocwZ.js → benchmark-command-DLg8E4y8.js} +16 -9
- package/dist/benchmark-command-DLg8E4y8.js.map +1 -0
- package/dist/benchmarks/index.d.ts +4 -4
- package/dist/benchmarks/index.js +4 -4
- package/dist/builder-eval/index.js +2 -2
- package/dist/calibration-CrORXMWx.d.ts +128 -0
- package/dist/calibration-CrORXMWx.d.ts.map +1 -0
- package/dist/{calibration-Cfoup0xz.js → calibration-Dz8mQb5P.js} +2 -2
- package/dist/{calibration-Cfoup0xz.js.map → calibration-Dz8mQb5P.js.map} +1 -1
- package/dist/campaign/index.d.ts +8 -8
- package/dist/campaign/index.js +12 -11
- package/dist/{campaign-DfSWSreo.js → campaign-C_S3MOYa.js} +1589 -14
- package/dist/campaign-C_S3MOYa.js.map +1 -0
- package/dist/{campaign-evidence-D_oBFfLc.js → campaign-evidence-BTfzZo1u.js} +4 -4
- package/dist/{campaign-evidence-D_oBFfLc.js.map → campaign-evidence-BTfzZo1u.js.map} +1 -1
- package/dist/{campaign-evidence-BmMs8YJt.d.ts → campaign-evidence-CM4FBOkX.d.ts} +5 -5
- package/dist/{campaign-evidence-BmMs8YJt.d.ts.map → campaign-evidence-CM4FBOkX.d.ts.map} +1 -1
- package/dist/{cluster-Bj90LK-1.d.ts → chat-client-uQNXGuO4.d.ts} +3 -240
- package/dist/chat-client-uQNXGuO4.d.ts.map +1 -0
- package/dist/cli.js +6 -6
- package/dist/cluster-C-K0N2br.d.ts +241 -0
- package/dist/cluster-C-K0N2br.d.ts.map +1 -0
- package/dist/{cluster-bootstrap-DPzVy3_K.js → cluster-bootstrap-DXbnIdm8.js} +3 -2
- package/dist/{cluster-bootstrap-DPzVy3_K.js.map → cluster-bootstrap-DXbnIdm8.js.map} +1 -1
- package/dist/{completion-verifier-Cy38EpGE.d.ts → completion-verifier-C7wipJOK.d.ts} +2 -2
- package/dist/{completion-verifier-Cy38EpGE.d.ts.map → completion-verifier-C7wipJOK.d.ts.map} +1 -1
- package/dist/contract/index.d.ts +14 -12
- package/dist/contract/index.js +13 -11
- package/dist/contract/index.js.map +1 -1
- package/dist/{decision-point-C46p-p9v.js → decision-point-CfqtnGop.js} +3 -3
- package/dist/{decision-point-C46p-p9v.js.map → decision-point-CfqtnGop.js.map} +1 -1
- package/dist/{default-registry-CUuorCWZ.d.ts → default-registry-Bskl2HzV.d.ts} +6 -7
- package/dist/default-registry-Bskl2HzV.d.ts.map +1 -0
- package/dist/{default-registry-IkE3byrA.js → default-registry-kps1SOaD.js} +27 -15
- package/dist/default-registry-kps1SOaD.js.map +1 -0
- package/dist/define-agent-eval-Dnh4jXLX.js +96 -0
- package/dist/define-agent-eval-Dnh4jXLX.js.map +1 -0
- package/dist/define-agent-eval-tu3anVlk.d.ts +52 -0
- package/dist/define-agent-eval-tu3anVlk.d.ts.map +1 -0
- package/dist/diagnosis/index.d.ts +3 -3
- package/dist/diagnosis/index.js +1 -1
- package/dist/{dspy-rlm-engine-DE11iBcC.js → dspy-rlm-engine-DQbPdT_o.js} +8 -4
- package/dist/{dspy-rlm-engine-DE11iBcC.js.map → dspy-rlm-engine-DQbPdT_o.js.map} +1 -1
- package/dist/{emitter-BjW3NnX-.js → emitter-xN9wGTVw.js} +9 -2
- package/dist/{emitter-BjW3NnX-.js.map → emitter-xN9wGTVw.js.map} +1 -1
- package/dist/{eval-campaign-Cyk-tkLh.js → eval-campaign-DswSn7Gm.js} +3 -3
- package/dist/{eval-campaign-Cyk-tkLh.js.map → eval-campaign-DswSn7Gm.js.map} +1 -1
- package/dist/{evaluation-DfyLPVL1.d.ts → evaluation-C4-tf3Z_.d.ts} +4 -4
- package/dist/{evaluation-DfyLPVL1.d.ts.map → evaluation-C4-tf3Z_.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/{exact-types-CiCXYhNK.d.ts → exact-types-CUsSMW3n.d.ts} +2 -2
- package/dist/{exact-types-CiCXYhNK.d.ts.map → exact-types-CUsSMW3n.d.ts.map} +1 -1
- package/dist/{execution-insight-wUNXxo5Y.d.ts → execution-insight-YihQrSqd.d.ts} +2 -2
- package/dist/{execution-insight-wUNXxo5Y.d.ts.map → execution-insight-YihQrSqd.d.ts.map} +1 -1
- package/dist/experiment/index.d.ts +5 -5
- package/dist/experiment/index.js +10 -184
- package/dist/experiment/index.js.map +1 -1
- package/dist/{external-optimizer-process-4QdcF7Kd.js → external-optimizer-process-CVi1x2nb.js} +2 -2
- package/dist/{external-optimizer-process-4QdcF7Kd.js.map → external-optimizer-process-CVi1x2nb.js.map} +1 -1
- package/dist/{external-optimizer-subprocess-BW0ZWUUr.js → external-optimizer-subprocess-mV-2swJI.js} +3 -357
- package/dist/external-optimizer-subprocess-mV-2swJI.js.map +1 -0
- package/dist/{feedback-trajectory-HJticMDz.d.ts → feedback-trajectory-D7hgL6y5.d.ts} +3 -3
- package/dist/{feedback-trajectory-HJticMDz.d.ts.map → feedback-trajectory-D7hgL6y5.d.ts.map} +1 -1
- package/dist/finding-scope-B_As3F_v.js +359 -0
- package/dist/finding-scope-B_As3F_v.js.map +1 -0
- package/dist/{findings-store-BxpV-hfH.js → findings-store-CZy5kUDo.js} +26 -19
- package/dist/findings-store-CZy5kUDo.js.map +1 -0
- package/dist/fuzz.js +1 -1
- package/dist/{harness-session-lines-CSxKR6no.js → harness-session-lines-CTh1-uOb.js} +21 -19
- package/dist/harness-session-lines-CTh1-uOb.js.map +1 -0
- package/dist/{index-Ucp54Pcl.d.ts → index--vDCtdaj.d.ts} +7 -8
- package/dist/index--vDCtdaj.d.ts.map +1 -0
- package/dist/{index-CKjqN9_U.d.ts → index-CIqYaySd.d.ts} +89 -3
- package/dist/index-CIqYaySd.d.ts.map +1 -0
- package/dist/{index-C6TG1LwA.d.ts → index-Cav3abKy.d.ts} +256 -131
- package/dist/index-Cav3abKy.d.ts.map +1 -0
- package/dist/{index-CR-guIiZ.d.ts → index-DmMHTDjT.d.ts} +10 -8
- package/dist/index-DmMHTDjT.d.ts.map +1 -0
- package/dist/{index-oX0TuJFv.d.ts → index-Er8TKQ3q.d.ts} +4 -4
- package/dist/{index-oX0TuJFv.d.ts.map → index-Er8TKQ3q.d.ts.map} +1 -1
- package/dist/{index-B_k8aY9k.d.ts → index-moZnazVj.d.ts} +22 -21
- package/dist/index-moZnazVj.d.ts.map +1 -0
- package/dist/index.d.ts +33 -30
- package/dist/index.js +27 -24
- package/dist/index.js.map +1 -1
- package/dist/{analyze-runs-Ke0WbAf6.d.ts → insight-report-DYofCMLx.d.ts} +4 -64
- package/dist/insight-report-DYofCMLx.d.ts.map +1 -0
- package/dist/{integrity-B9320cw1.d.ts → integrity-BJGstiCh.d.ts} +2 -2
- package/dist/{integrity-B9320cw1.d.ts.map → integrity-BJGstiCh.d.ts.map} +1 -1
- package/dist/{judge-gate-DqlzOBOm.js → judge-gate-DANg5FLq.js} +2 -2
- package/dist/{judge-gate-DqlzOBOm.js.map → judge-gate-DANg5FLq.js.map} +1 -1
- package/dist/{kind-factory-BDd4rhML.js → kind-factory-B-xCxG7p.js} +33 -5
- package/dist/kind-factory-B-xCxG7p.js.map +1 -0
- package/dist/llm-judge-DFoSy4Qn.js +476 -0
- package/dist/llm-judge-DFoSy4Qn.js.map +1 -0
- package/dist/{matrix-DlSrRl_v.d.ts → matrix-OgdWQBQa.d.ts} +6 -2
- package/dist/matrix-OgdWQBQa.d.ts.map +1 -0
- package/dist/measure-validity-plan-B1_qYlsk.d.ts +143 -0
- package/dist/measure-validity-plan-B1_qYlsk.d.ts.map +1 -0
- package/dist/measure-validity-plan-t0YQRzJQ.js +117 -0
- package/dist/measure-validity-plan-t0YQRzJQ.js.map +1 -0
- package/dist/meta-eval/index.d.ts +5 -3
- package/dist/meta-eval/index.js +664 -14
- package/dist/meta-eval/index.js.map +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +458 -4
- package/dist/multishot/index.d.ts.map +1 -1
- package/dist/multishot/index.js +926 -47
- package/dist/multishot/index.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/dist/{llm-judge-DQJTQx01.js → optimization-method-D4CpYsVA.js} +18 -482
- package/dist/optimization-method-D4CpYsVA.js.map +1 -0
- package/dist/{outcome-observations-DL3CC8w1.js → outcome-observations-DEh8_V_P.js} +31 -6
- package/dist/outcome-observations-DEh8_V_P.js.map +1 -0
- package/dist/outcome-store-CHtuvstd.d.ts +56 -0
- package/dist/outcome-store-CHtuvstd.d.ts.map +1 -0
- package/dist/{paired-arms-DZhH3FGu.js → paired-arms-B6EXnI47.js} +3 -2
- package/dist/{paired-arms-DZhH3FGu.js.map → paired-arms-B6EXnI47.js.map} +1 -1
- package/dist/{paired-promotion-decision-ChHBuuHV.d.ts → paired-promotion-decision-DuvRdnsW.d.ts} +2 -2
- package/dist/{paired-promotion-decision-ChHBuuHV.d.ts.map → paired-promotion-decision-DuvRdnsW.d.ts.map} +1 -1
- package/dist/{paired-promotion-decision-Dn3-jaq4.js → paired-promotion-decision-xYe881cD.js} +3 -2
- package/dist/{paired-promotion-decision-Dn3-jaq4.js.map → paired-promotion-decision-xYe881cD.js.map} +1 -1
- package/dist/{paired-promotion-power-BlzXdgMD.js → paired-promotion-power-DirShsIs.js} +3 -3
- package/dist/{paired-promotion-power-BlzXdgMD.js.map → paired-promotion-power-DirShsIs.js.map} +1 -1
- package/dist/paired-tests-CXcD_B80.js +688 -0
- package/dist/paired-tests-CXcD_B80.js.map +1 -0
- package/dist/pareto-DIVE5D0T.js +81 -0
- package/dist/pareto-DIVE5D0T.js.map +1 -0
- package/dist/pipelines/index.d.ts +2 -1
- package/dist/pipelines/index.d.ts.map +1 -1
- package/dist/pipelines/index.js +1 -1
- package/dist/{sequential-BphITa5b.js → power-DTg6u30w.js} +181 -4
- package/dist/power-DTg6u30w.js.map +1 -0
- package/dist/{prime-protocol-iEaSEGZB.d.ts → prime-protocol-Jm2pWh--.d.ts} +2 -2
- package/dist/{prime-protocol-iEaSEGZB.d.ts.map → prime-protocol-Jm2pWh--.d.ts.map} +1 -1
- package/dist/{promotion-gate-CGkxh36r.d.ts → promotion-gate-BXgcORnM.d.ts} +2 -2
- package/dist/{promotion-gate-CGkxh36r.d.ts.map → promotion-gate-BXgcORnM.d.ts.map} +1 -1
- package/dist/{promotion-policy-CxDIh-9p.js → promotion-policy-Z5E-C32U.js} +4 -4
- package/dist/{promotion-policy-CxDIh-9p.js.map → promotion-policy-Z5E-C32U.js.map} +1 -1
- package/dist/{proposal-findings-DedMih-u.js → proposal-findings-CfRFCFXS.js} +2 -2
- package/dist/{proposal-findings-DedMih-u.js.map → proposal-findings-CfRFCFXS.js.map} +1 -1
- package/dist/{registry-V8o2kZtn.d.ts → registry-DEZDECdr.d.ts} +4 -4
- package/dist/{registry-V8o2kZtn.d.ts.map → registry-DEZDECdr.d.ts.map} +1 -1
- package/dist/{release-confidence-BLHOMK5Q.js → release-confidence-Cndq1hwi.js} +2 -2
- package/dist/{release-confidence-BLHOMK5Q.js.map → release-confidence-Cndq1hwi.js.map} +1 -1
- package/dist/reporting.d.ts +5 -5
- package/dist/reporting.js +6 -5
- package/dist/reporting.js.map +1 -1
- package/dist/{research-report-D6XIK0eK.d.ts → research-report-CIgUe1lv.d.ts} +2 -2
- package/dist/{research-report-D6XIK0eK.d.ts.map → research-report-CIgUe1lv.d.ts.map} +1 -1
- package/dist/{researcher---DhHG4J.d.ts → researcher-CY_byuZl.d.ts} +4 -4
- package/dist/{researcher---DhHG4J.d.ts.map → researcher-CY_byuZl.d.ts.map} +1 -1
- package/dist/{reward-hacking-DKAflk2c.js → reward-hacking-DMTm1OBd.js} +2 -2
- package/dist/{reward-hacking-DKAflk2c.js.map → reward-hacking-DMTm1OBd.js.map} +1 -1
- package/dist/rl.d.ts +9 -8
- package/dist/rl.d.ts.map +1 -1
- package/dist/rl.js +11 -10
- package/dist/rl.js.map +1 -1
- package/dist/rollout/index.d.ts +2 -2
- package/dist/rollout/index.js +2 -2
- package/dist/{rollout-DVwpCHBC.js → rollout-B_lrpd9a.js} +2 -2
- package/dist/{rollout-DVwpCHBC.js.map → rollout-B_lrpd9a.js.map} +1 -1
- package/dist/{rubric-predictive-validity--6z0q8s6.js → rubric-predictive-validity-BXJ92Jp_.js} +3 -9
- package/dist/rubric-predictive-validity-BXJ92Jp_.js.map +1 -0
- package/dist/{rubric-predictive-validity-C9wc7f_D.d.ts → rubric-predictive-validity-DH94_0Q1.d.ts} +3 -56
- package/dist/rubric-predictive-validity-DH94_0Q1.d.ts.map +1 -0
- package/dist/{run-improvement-loop-CtLyPb5-.d.ts → run-improvement-loop-BaPDVbW8.d.ts} +384 -11
- package/dist/run-improvement-loop-BaPDVbW8.d.ts.map +1 -0
- package/dist/{run-record-Bqg0NZ_e.js → run-record-CuO8ErrI.js} +3 -2
- package/dist/run-record-CuO8ErrI.js.map +1 -0
- package/dist/{runtime-rollouts-DdUijr_t.js → runtime-rollouts-Vv-BAqmq.js} +3 -3
- package/dist/{runtime-rollouts-DdUijr_t.js.map → runtime-rollouts-Vv-BAqmq.js.map} +1 -1
- package/dist/search/index.d.ts +2 -2
- package/dist/search/index.js +2 -2
- package/dist/{search-kernel-DXA1EhnN.d.ts → search-kernel-BzTeb89p.d.ts} +3 -3
- package/dist/{search-kernel-DXA1EhnN.d.ts.map → search-kernel-BzTeb89p.d.ts.map} +1 -1
- package/dist/{pareto-Bg75Gajo.js → search-kernel-DOPW08Hx.js} +6 -88
- package/dist/search-kernel-DOPW08Hx.js.map +1 -0
- package/dist/{search-summary-B1x1Vmzh.js → search-summary-CYOHZAAy.js} +4 -4
- package/dist/{search-summary-B1x1Vmzh.js.map → search-summary-CYOHZAAy.js.map} +1 -1
- package/dist/{define-agent-eval-B6uE3gNu.js → self-improve-CIFqccHV.js} +8 -97
- package/dist/self-improve-CIFqccHV.js.map +1 -0
- package/dist/{define-agent-eval-D17XsdAt.d.ts → self-improve-DY8ZY4lY.d.ts} +8 -54
- package/dist/self-improve-DY8ZY4lY.d.ts.map +1 -0
- package/dist/{sequential-BhbTSxpt.d.ts → sequential-B9iROM1S.d.ts} +2 -2
- package/dist/{sequential-BhbTSxpt.d.ts.map → sequential-B9iROM1S.d.ts.map} +1 -1
- package/dist/{sequential-ux_XrjBf.js → sequential-tZjGysXY.js} +3 -3
- package/dist/{sequential-ux_XrjBf.js.map → sequential-tZjGysXY.js.map} +1 -1
- package/dist/{skillopt-optimization-method-D_swD0Cy.js → skillopt-optimization-method-CbHBkopM.js} +9 -8
- package/dist/{skillopt-optimization-method-D_swD0Cy.js.map → skillopt-optimization-method-CbHBkopM.js.map} +1 -1
- package/dist/{statistical-heldout-CaS4T-43.js → statistical-heldout-C7Jjo5nP.js} +3 -3
- package/dist/{statistical-heldout-CaS4T-43.js.map → statistical-heldout-C7Jjo5nP.js.map} +1 -1
- package/dist/{statistics-DSidA5I2.js → statistics-BPl13X3G.js} +208 -700
- package/dist/statistics-BPl13X3G.js.map +1 -0
- package/dist/statistics.d.ts +3 -3
- package/dist/statistics.js +3 -2
- package/dist/{store-otlp-CR9fWum6.js → store-otlp-CdeW7NWq.js} +2 -2
- package/dist/{store-otlp-CR9fWum6.js.map → store-otlp-CdeW7NWq.js.map} +1 -1
- package/dist/{store-tool-spans-tkdUJWup.js → store-tool-spans-CVX-jfkk.js} +3 -3
- package/dist/{store-tool-spans-tkdUJWup.js.map → store-tool-spans-CVX-jfkk.js.map} +1 -1
- package/dist/{store-tool-spans-C47hUUVM.d.ts → store-tool-spans-Dq8r0PbJ.d.ts} +4 -5
- package/dist/store-tool-spans-Dq8r0PbJ.d.ts.map +1 -0
- package/dist/{summary-report-CI4J6gxU.js → summary-report-DzbnK81K.js} +15 -7
- package/dist/summary-report-DzbnK81K.js.map +1 -0
- package/dist/summary-report-figures-CJHygLgw.d.ts.map +1 -1
- package/dist/supervisor-run/index.d.ts +1 -1
- package/dist/supervisor-run/index.js +1 -1
- package/dist/{systemone-MXhFSYdy.d.ts → systemone-BuSZTI88.d.ts} +8 -7
- package/dist/systemone-BuSZTI88.d.ts.map +1 -0
- package/dist/{systemone-review-C9kbs3zD.d.ts → systemone-review-mlfxWdLz.d.ts} +2 -2
- package/dist/{systemone-review-C9kbs3zD.d.ts.map → systemone-review-mlfxWdLz.d.ts.map} +1 -1
- package/dist/systemone.d.ts +3 -3
- package/dist/systemone.js +1 -1
- package/dist/{tool-groups-BSd08M7B.d.ts → tool-groups-PNDX8fd-.d.ts} +2 -3
- package/dist/tool-groups-PNDX8fd-.d.ts.map +1 -0
- package/dist/{tool-waste-u7JJ_BlE.js → tool-waste-783VCo1y.js} +3 -2
- package/dist/{tool-waste-u7JJ_BlE.js.map → tool-waste-783VCo1y.js.map} +1 -1
- package/dist/tool-waste-B01AMpID.d.ts +121 -0
- package/dist/tool-waste-B01AMpID.d.ts.map +1 -0
- package/dist/{trace-questions-CJANeK9P.d.ts → trace-questions-DBtr4jWi.d.ts} +2 -3
- package/dist/trace-questions-DBtr4jWi.d.ts.map +1 -0
- package/dist/trace-repair/index.d.ts +1 -1
- package/dist/trace-repair/index.js +1 -1
- package/dist/traces.d.ts +4 -5
- package/dist/traces.d.ts.map +1 -1
- package/dist/traces.js +4 -4
- package/dist/trajectory-B3o6Ald_.d.ts +100 -0
- package/dist/trajectory-B3o6Ald_.d.ts.map +1 -0
- package/dist/trajectory-replay/index.js +1 -1
- package/dist/{tree-DQMlcNFI.js → tree-CtlQQL1w.js} +6 -4
- package/dist/{tree-DQMlcNFI.js.map → tree-CtlQQL1w.js.map} +1 -1
- package/dist/{types-DD1eUTLn.d.ts → types-BO948H-U.d.ts} +7 -4
- package/dist/{types-DD1eUTLn.d.ts.map → types-BO948H-U.d.ts.map} +1 -1
- package/dist/{types-AGUuvnae.d.ts → types-CKNAzCSA.d.ts} +158 -3
- package/dist/types-CKNAzCSA.d.ts.map +1 -0
- package/dist/{types-BLv2Ngla.d.ts → types-D-WF1KM3.d.ts} +2 -2
- package/dist/{types-BLv2Ngla.d.ts.map → types-D-WF1KM3.d.ts.map} +1 -1
- package/dist/types-DK4vNv5q.js.map +1 -1
- package/dist/{types-CE9JMZhk.d.ts → types-DbeIGi73.d.ts} +2 -2
- package/dist/{types-CE9JMZhk.d.ts.map → types-DbeIGi73.d.ts.map} +1 -1
- package/dist/types-_tlhWGUq.js.map +1 -1
- package/dist/wire/index.d.ts +4 -4
- package/dist/world/index.d.ts +529 -0
- package/dist/world/index.d.ts.map +1 -0
- package/dist/world/index.js +1356 -0
- package/dist/world/index.js.map +1 -0
- package/docs/campaign-proposers.md +7 -0
- package/docs/concepts.md +2 -0
- package/docs/design/statistics-decisions.md +31 -0
- package/docs/eval-surface-map.md +4 -1
- package/docs/feature-guide.md +2 -0
- package/docs/multi-turn-optimization.md +80 -0
- package/docs/outcome-validity.md +69 -0
- package/docs/public-api.md +86 -31
- package/docs/trace-analysis.md +1 -0
- package/docs/world.md +104 -0
- package/package.json +7 -2
- package/dist/analyze-runs-Ke0WbAf6.d.ts.map +0 -1
- package/dist/benchmark-command-MfXRocwZ.js.map +0 -1
- package/dist/campaign-DfSWSreo.js.map +0 -1
- package/dist/cluster-Bj90LK-1.d.ts.map +0 -1
- package/dist/default-registry-CUuorCWZ.d.ts.map +0 -1
- package/dist/default-registry-IkE3byrA.js.map +0 -1
- package/dist/define-agent-eval-B6uE3gNu.js.map +0 -1
- package/dist/define-agent-eval-D17XsdAt.d.ts.map +0 -1
- package/dist/engine-BZVXOc6n.d.ts +0 -152
- package/dist/engine-BZVXOc6n.d.ts.map +0 -1
- package/dist/external-optimizer-subprocess-BW0ZWUUr.js.map +0 -1
- package/dist/findings-store-BxpV-hfH.js.map +0 -1
- package/dist/harness-session-lines-CSxKR6no.js.map +0 -1
- package/dist/index-B_k8aY9k.d.ts.map +0 -1
- package/dist/index-C6TG1LwA.d.ts.map +0 -1
- package/dist/index-CKjqN9_U.d.ts.map +0 -1
- package/dist/index-CR-guIiZ.d.ts.map +0 -1
- package/dist/index-Ucp54Pcl.d.ts.map +0 -1
- package/dist/interval-CWyxqDpE.d.ts +0 -43
- package/dist/interval-CWyxqDpE.d.ts.map +0 -1
- package/dist/kind-factory-BDd4rhML.js.map +0 -1
- package/dist/llm-judge-DQJTQx01.js.map +0 -1
- package/dist/matrix-DlSrRl_v.d.ts.map +0 -1
- package/dist/outcome-observations-DL3CC8w1.js.map +0 -1
- package/dist/pareto-Bg75Gajo.js.map +0 -1
- package/dist/rubric-predictive-validity--6z0q8s6.js.map +0 -1
- package/dist/rubric-predictive-validity-C9wc7f_D.d.ts.map +0 -1
- package/dist/run-improvement-loop-CtLyPb5-.d.ts.map +0 -1
- package/dist/run-record-Bqg0NZ_e.js.map +0 -1
- package/dist/sequential-BphITa5b.js.map +0 -1
- package/dist/statistics-DSidA5I2.js.map +0 -1
- package/dist/store-tool-spans-C47hUUVM.d.ts.map +0 -1
- package/dist/summary-report-CI4J6gxU.js.map +0 -1
- package/dist/systemone-MXhFSYdy.d.ts.map +0 -1
- package/dist/tool-groups-BSd08M7B.d.ts.map +0 -1
- package/dist/tool-waste-CIhtU1ad.d.ts +0 -217
- package/dist/tool-waste-CIhtU1ad.d.ts.map +0 -1
- package/dist/trace-questions-CJANeK9P.d.ts.map +0 -1
- package/dist/types-AGUuvnae.d.ts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as RunRecord } from "./run-record-kuOr3BCF.js";
|
|
2
|
-
import { B as FindingTreatment } from "./types-
|
|
3
|
-
import { E as PairedBootstrapResult, I as McNemarResult, R as RiskDifferenceResult, T as PairedBootstrapOptions, r as EProcessState } from "./index-
|
|
2
|
+
import { B as FindingTreatment } from "./types-CKNAzCSA.js";
|
|
3
|
+
import { E as PairedBootstrapResult, I as McNemarResult, R as RiskDifferenceResult, T as PairedBootstrapOptions, r as EProcessState } from "./index-CIqYaySd.js";
|
|
4
4
|
import { r as LedgerHash } from "./canonical-CGXS21f_.js";
|
|
5
|
-
import { R as Scenario, a as CampaignResult, b as GenerationRecord, h as GateContext, j as MutableSurface, p as Gate, v as GateResult, w as JudgeScore } from "./types-
|
|
6
|
-
import { a as PairedPromotionDecision, i as PairedMcNemarEvidence, r as PairedDecisionStatistic, t as PairedDecisionMethod } from "./paired-promotion-decision-
|
|
5
|
+
import { R as Scenario, a as CampaignResult, b as GenerationRecord, h as GateContext, j as MutableSurface, p as Gate, v as GateResult, w as JudgeScore } from "./types-BO948H-U.js";
|
|
6
|
+
import { a as PairedPromotionDecision, i as PairedMcNemarEvidence, r as PairedDecisionStatistic, t as PairedDecisionMethod } from "./paired-promotion-decision-DuvRdnsW.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
declare const reservationSchema: z.ZodObject<{
|
|
9
9
|
requestId: z.ZodString;
|
|
@@ -999,4 +999,4 @@ declare function createCampaignEvidenceReceipt<S extends Scenario, A>(input: {
|
|
|
999
999
|
context: CampaignEvidenceContext;
|
|
1000
1000
|
}): EvidenceReceipt;
|
|
1001
1001
|
export { Objective as $, SequentialPairedGateOptions as A, signManifest as B, heldoutSignificance as C, FinalEvidenceError as Ct, SequentialGateDecision as D, FinalEvidenceRecord as Dt, SequentialDecideOptions as E, FinalEvidenceOutcome as Et, HypothesisResult as F, EvidenceVector as G, AxisEvidence as H, SignedManifest as I, PromotionObjective as J, ObjectiveSource as K, SignedManifestAlgo as L, sequentialDecide as M, sequentialPairedGate as N, SequentialObservation as O, FinalEvidenceReservation as Ot, HypothesisManifest as P, paretoSignificanceGate as Q, hashJson as R, dimensionRegressions as S, FinalEvidenceConflictError as St, SequentialDecideFn as T, FinalEvidenceMeasurement as Tt, AxisVerdict as U, verifyManifest as V, BuildEvidenceVectorOptions as W, buildEvidenceVector as X, PromotionPolicy as Y, paretoPolicy as Z, verifyAttestation as _, pairArms as _t, EvidenceAuthorityKind as a, powerPreflight as at, HeldoutSignificanceOptions as b, ArmPopulationReading as bt, EvidenceReceiptVerification as c, MatchedRunRecordPair as ct, verifyEvidenceReceipt as d, PairRunRecordsResult as dt, ParetoResult as et, ATTESTATION_ALGORITHM as f, PairedArmRow as ft, attest as g, comparePairedArms as gt, AttestedReport as h, PairedMetricDelta as ht, EvidenceAuthority as i, PowerPreflightOptions as it, SequentialStreamState as j, SequentialPairedGate as k, openFinalEvidenceLedger as kt, createEvidenceReceipt as l, PairArmsOptions as lt, AttestationVerification as m, PairedCorrectness as mt, createCampaignEvidenceReceipt as n, paretoFrontier as nt, EvidenceBinding as o, ComparePairedArmsOptions as ot, AttestationProvenance as p, PairedArmsComparison as pt, ParetoSignificanceGateOptions as q, CreateEvidenceReceiptInput as r, PowerPreflight as rt, EvidenceReceipt as s, MatchedPair as st, CampaignEvidenceContext as t, dominates as tt, isIndependentEvidence as u, PairArmsResult as ut, DimensionRegression as v, pairRunRecords as vt, pairHoldout as w, FinalEvidenceLedger as wt, PairedHoldout as x, ArmPopulationSummary as xt, HeldoutSignificance as y, ArmAssignment as yt, manifestContentDigest as z };
|
|
1002
|
-
//# sourceMappingURL=campaign-evidence-
|
|
1002
|
+
//# sourceMappingURL=campaign-evidence-CM4FBOkX.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"campaign-evidence-
|
|
1
|
+
{"version":3,"file":"campaign-evidence-CM4FBOkX.d.ts","names":["_$__evidence_receipt0.EvidenceReceipt"],"sources":["../src/experiment/final-evidence.ts","../src/arm-populations.ts","../src/paired-arms.ts","../src/campaign/gates/power-preflight.ts","../src/pareto.ts","../src/campaign/gates/promotion-policy.ts","../src/pre-registration.ts","../src/campaign/gates/sequential.ts","../src/campaign/gates/statistical-heldout.ts","../src/attestation.ts","../src/experiment/evidence-receipt.ts","../src/experiment/campaign-evidence.ts"],"mappings":";;;;;;;cASM,mBAAiB,EAAA;;;;;;;;GAUZ,EAAA,KAAA;;KAGC,2BAA2B,EAAE,aAAa;cAEhD,mBAAiB,EAAA;;;GAKZ,EAAA,KAAA;KAEC,2BAA2B,EAAE,aAAa;UAgCrC;EACf,aAAa;EACb,iBAAiB;EACjB;IAAY,aAAa;IAA0B,WAAW;;;KAGpD,qBAAqB;EAC3B;EAAiB,OAAO;;EACxB;EAAkB;IAAS;IAA8C;;;UAE9D;EACf,QACE,OAAO,2BACN,QAAQ;IAAuB,QAAQ;IAAqB;;EAC/D,OACE,mBACA,aAAa,2BACZ,QAAQ;IAAuB,QAAQ;IAAqB;;EAC/D,QAAQ,QAAQ,qBAAqB;;;cAI1B,2BAA2B;WAE3B;EAAA,YAAA,8CACT;;;cAQS,mCAAmC;EAClC,YAAA;;;iBA4KE,wBAAwB;EAAW;IAAiB;;UCxQnD;EACf;EACA;EACA;EACA,YAAY;;UAEG;EACf;EACA;EACA;EACA;;EAEA;EACA,SAAS;IAAiB;IAAW;IAAiB;IAAoB;;;UAE3D;EACf;EACA,aAAa;EACb;EACA;IAAa;IAAgB;IAAmB;;EAChD,YAAY;EACZ,UAAU;;;;UCoBK;;;EAGf;;;;;EAKA;;EAEA;;EAEA;;EAEA;IAAc;IAAwB;;;EAEtC,YAAY;;EAEZ,UAAU;;UAGK;;EAEf;;EAEA;;;UAIe;EACf;;;;EAIA;EACA,UAAU;EACV,WAAW;;UAGI;;EAEf,OAAO;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A;;WAEA;;WAEA;WACA,WAAW;;WAEX;;WAEA;;UAGM;WACN,SAAS;WACT,aAAa;;UAGP;WACN;WACA;;UAGM,mCAAmC,KAAK;;;;;;;iBAQzC,sBACd,OAAO,4BACP,YAAY,wBACX;;;;;iBA4Ba,sBAAsB,SAAS,kBAAkB;;;;;;iBAkCjD,sBAAsB,SAAS;;KCjJnC,0BAA0B,KACpC;EAOI,YAAY,KAAK;;;iBAGP,8BAA8B,UAAU,UAAU,GAAG;EACnE,UAAU,eAAe,GAAG;EAC5B,SAAS;EACT,SAAS;IAAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as CustomTokenPricing } from "./cost-ledger-CSP-OfFe.js";
|
|
2
2
|
import { t as AgentEvalError } from "./errors-E9I2hldP.js";
|
|
3
3
|
/**
|
|
4
4
|
* Judge model-family classification + cross-family enforcement.
|
|
@@ -610,242 +610,5 @@ interface MockTransportOpts extends BaseTransportOpts {
|
|
|
610
610
|
* is safe to share across analysts in a single registry run.
|
|
611
611
|
*/
|
|
612
612
|
declare function createChatClient(opts: CreateChatClientOpts): ChatClient;
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
persona: string;
|
|
616
|
-
label: string;
|
|
617
|
-
thesis: string;
|
|
618
|
-
dimensions: string[];
|
|
619
|
-
turns: Turn[];
|
|
620
|
-
artifactChecks: ArtifactCheck[];
|
|
621
|
-
systemPromptAppend?: string;
|
|
622
|
-
}
|
|
623
|
-
interface Turn {
|
|
624
|
-
user: string;
|
|
625
|
-
expectedBehaviors: string[];
|
|
626
|
-
adversarial?: boolean;
|
|
627
|
-
feedbackType?: 'correction' | 'rejection' | 'vague' | 'contradictory' | 'escalation';
|
|
628
|
-
}
|
|
629
|
-
interface ArtifactCheck {
|
|
630
|
-
type: 'vault_file_exists' | 'vault_file_contains' | 'block_extracted' | 'code_valid' | 'generation_produced' | 'tool_created' | string;
|
|
631
|
-
target: string;
|
|
632
|
-
contains?: string;
|
|
633
|
-
minCount?: number;
|
|
634
|
-
description: string;
|
|
635
|
-
}
|
|
636
|
-
interface JudgeRubric {
|
|
637
|
-
name: string;
|
|
638
|
-
description: string;
|
|
639
|
-
dimensions: RubricDimension[];
|
|
640
|
-
}
|
|
641
|
-
interface RubricDimension {
|
|
642
|
-
name: string;
|
|
643
|
-
description: string;
|
|
644
|
-
anchor_low: string;
|
|
645
|
-
anchor_high: string;
|
|
646
|
-
weight: number;
|
|
647
|
-
}
|
|
648
|
-
interface ScenarioResult {
|
|
649
|
-
scenarioId: string;
|
|
650
|
-
persona: string;
|
|
651
|
-
turns: TurnResult[];
|
|
652
|
-
artifactResults: ArtifactResult[];
|
|
653
|
-
judgeScores: DimensionJudgeScore[];
|
|
654
|
-
judgeErrors: number;
|
|
655
|
-
overallScore: number;
|
|
656
|
-
totalDurationMs: number;
|
|
657
|
-
artifacts: CollectedArtifacts;
|
|
658
|
-
/** Agent and judge spend attributed to this scenario. */
|
|
659
|
-
cost?: CostLedgerSummary;
|
|
660
|
-
}
|
|
661
|
-
interface TurnResult {
|
|
662
|
-
turnIndex: number;
|
|
663
|
-
userMessage: string;
|
|
664
|
-
agentResponse: string;
|
|
665
|
-
durationMs: number;
|
|
666
|
-
blocksExtracted: {
|
|
667
|
-
type: string;
|
|
668
|
-
title: string;
|
|
669
|
-
}[];
|
|
670
|
-
containsCode: boolean;
|
|
671
|
-
containsToolCall: boolean;
|
|
672
|
-
}
|
|
673
|
-
interface ArtifactResult {
|
|
674
|
-
check: ArtifactCheck;
|
|
675
|
-
passed: boolean;
|
|
676
|
-
detail?: string;
|
|
677
|
-
}
|
|
678
|
-
interface DimensionJudgeScore {
|
|
679
|
-
judgeName: string;
|
|
680
|
-
dimension: string;
|
|
681
|
-
score: number;
|
|
682
|
-
reasoning: string;
|
|
683
|
-
evidence?: string;
|
|
684
|
-
}
|
|
685
|
-
interface CollectedArtifacts {
|
|
686
|
-
vaultFiles: {
|
|
687
|
-
path: string;
|
|
688
|
-
content: string;
|
|
689
|
-
}[];
|
|
690
|
-
blocksExtracted: {
|
|
691
|
-
type: string;
|
|
692
|
-
fields: Record<string, string>;
|
|
693
|
-
}[];
|
|
694
|
-
codeBlocks: {
|
|
695
|
-
language: string;
|
|
696
|
-
code: string;
|
|
697
|
-
}[];
|
|
698
|
-
toolCalls: string[];
|
|
699
|
-
}
|
|
700
|
-
interface RouteMap {
|
|
701
|
-
signup?: string;
|
|
702
|
-
login?: string;
|
|
703
|
-
workspaces?: string;
|
|
704
|
-
threads?: string;
|
|
705
|
-
chat?: string;
|
|
706
|
-
tasks?: string;
|
|
707
|
-
events?: string;
|
|
708
|
-
approvals?: string;
|
|
709
|
-
vault?: string;
|
|
710
|
-
generations?: string;
|
|
711
|
-
[key: string]: string | undefined;
|
|
712
|
-
}
|
|
713
|
-
interface ProductClientConfig {
|
|
714
|
-
baseUrl: string;
|
|
715
|
-
routes: RouteMap;
|
|
716
|
-
/** Per-request timeout in ms before the request is aborted. Default 30s. */
|
|
717
|
-
timeoutMs?: number;
|
|
718
|
-
}
|
|
719
|
-
interface ScenarioFile {
|
|
720
|
-
id: string;
|
|
721
|
-
category: string;
|
|
722
|
-
persona: string;
|
|
723
|
-
label: string;
|
|
724
|
-
thesis: string;
|
|
725
|
-
isControl?: boolean;
|
|
726
|
-
rubric?: {
|
|
727
|
-
dimensions: {
|
|
728
|
-
name: string;
|
|
729
|
-
description: string;
|
|
730
|
-
weight: number;
|
|
731
|
-
}[];
|
|
732
|
-
};
|
|
733
|
-
turns: Turn[];
|
|
734
|
-
artifactChecks: ArtifactCheck[];
|
|
735
|
-
}
|
|
736
|
-
interface CompletionCriterion {
|
|
737
|
-
name: string;
|
|
738
|
-
check: (state: DriverState) => boolean;
|
|
739
|
-
progress?: (state: DriverState) => number;
|
|
740
|
-
}
|
|
741
|
-
/**
|
|
742
|
-
* How hard the simulated user pushes back. The driver LLM scales its tone
|
|
743
|
-
* and follow-up aggression to this:
|
|
744
|
-
* cooperative — forgiving early adopter; accepts reasonable answers.
|
|
745
|
-
* demanding — experienced professional; rejects vague or hedged answers.
|
|
746
|
-
* relentless — senior partner reviewing for a client who will litigate;
|
|
747
|
-
* interrogates every claim, accepts nothing undefended.
|
|
748
|
-
*/
|
|
749
|
-
type PersonaRigor = 'cooperative' | 'demanding' | 'relentless';
|
|
750
|
-
interface PersonaConfig {
|
|
751
|
-
id: string;
|
|
752
|
-
role: string;
|
|
753
|
-
goal: string;
|
|
754
|
-
completionCriteria: CompletionCriterion[];
|
|
755
|
-
maxTurns: number;
|
|
756
|
-
/** How adversarial the simulated user is. Defaults to 'demanding'. */
|
|
757
|
-
rigor?: PersonaRigor;
|
|
758
|
-
/**
|
|
759
|
-
* Domain expertise the simulated user holds — quoted into the driver
|
|
760
|
-
* prompt so it challenges the agent with authority instead of vague
|
|
761
|
-
* dissatisfaction. e.g. "a 15-year M&A partner who knows GAAP
|
|
762
|
-
* working-capital mechanics cold".
|
|
763
|
-
*/
|
|
764
|
-
expertise?: string;
|
|
765
|
-
/**
|
|
766
|
-
* Substantive issues a senior professional in this role would
|
|
767
|
-
* interrogate — traps the scenario hides, claims that must be defended.
|
|
768
|
-
* The driver probes these without revealing them verbatim; the agent
|
|
769
|
-
* must surface them on its own.
|
|
770
|
-
*/
|
|
771
|
-
pressurePoints?: string[];
|
|
772
|
-
/**
|
|
773
|
-
* Curveballs the driver may inject once the agent is coasting — changed
|
|
774
|
-
* facts, a hostile counterparty position, a new constraint. Forces the
|
|
775
|
-
* agent to re-derive rather than recite.
|
|
776
|
-
*/
|
|
777
|
-
curveballs?: string[];
|
|
778
|
-
}
|
|
779
|
-
interface DriverState {
|
|
780
|
-
tasks: number;
|
|
781
|
-
events: number;
|
|
782
|
-
proposals: {
|
|
783
|
-
pending: number;
|
|
784
|
-
approved: number;
|
|
785
|
-
rejected: number;
|
|
786
|
-
};
|
|
787
|
-
vaultFiles: string[];
|
|
788
|
-
codeBlocks: number;
|
|
789
|
-
generations: number;
|
|
790
|
-
}
|
|
791
|
-
interface JudgeInput {
|
|
792
|
-
scenario: ProductScenario;
|
|
793
|
-
turns: TurnResult[];
|
|
794
|
-
artifacts: CollectedArtifacts;
|
|
795
|
-
/** Shared ledger for paid built-in judges. Direct calls default to an uncapped ledger. */
|
|
796
|
-
costLedger?: CostLedgerHandle;
|
|
797
|
-
costPhase?: string;
|
|
798
|
-
costTags?: Record<string, string>;
|
|
799
|
-
signal?: AbortSignal;
|
|
800
|
-
}
|
|
801
|
-
type JudgeFn = (chat: ChatClient, input: JudgeInput) => Promise<DimensionJudgeScore[]>;
|
|
802
|
-
interface CheckResult {
|
|
803
|
-
name: string;
|
|
804
|
-
passed: boolean;
|
|
805
|
-
expected: string;
|
|
806
|
-
actual: string;
|
|
807
|
-
}
|
|
808
|
-
declare const DEFAULT_BOOTSTRAP_SEED = 12648430;
|
|
809
|
-
type BootstrapInterval = {
|
|
810
|
-
low: number;
|
|
811
|
-
high: number;
|
|
812
|
-
resamples: number;
|
|
813
|
-
clusters: number;
|
|
814
|
-
};
|
|
815
|
-
interface ClusterResampleOptions<T> {
|
|
816
|
-
resamples?: number;
|
|
817
|
-
seed?: number;
|
|
818
|
-
level?: number;
|
|
819
|
-
/** Whole clusters are drawn within each stratum, preserving its cluster count. */
|
|
820
|
-
strata?: (item: T, index: number) => string;
|
|
821
|
-
}
|
|
822
|
-
/** Percentile bootstrap; degenerate resamples are omitted, with NaN bounds if none remain. */
|
|
823
|
-
declare function clusterBootstrap<T>(items: readonly T[], cluster: (item: T, index: number) => string, statistic: (sample: T[]) => number, { resamples, seed, level, strata }?: ClusterResampleOptions<T>): BootstrapInterval;
|
|
824
|
-
interface PlaceboBandOptions<T> {
|
|
825
|
-
/** Epoch milliseconds; pass one same-cell history per call. */
|
|
826
|
-
timestamp: (row: T) => number;
|
|
827
|
-
cluster: (row: T) => string;
|
|
828
|
-
/** The exact estimator used on the sealed before/after arms, including failure scoring. */
|
|
829
|
-
statistic: (before: T[], after: T[]) => number;
|
|
830
|
-
clustersPerArm: number;
|
|
831
|
-
delta: number;
|
|
832
|
-
/** Optional preselected epoch-ms boundaries; otherwise use UTC hour boundaries. */
|
|
833
|
-
boundaries?: readonly number[];
|
|
834
|
-
/** Sealed steps on the measured stage, in epoch milliseconds. */
|
|
835
|
-
steps?: readonly number[];
|
|
836
|
-
}
|
|
837
|
-
interface PlaceboBandResult {
|
|
838
|
-
status: 'calibrated' | 'uncalibrated';
|
|
839
|
-
n: number;
|
|
840
|
-
K: number;
|
|
841
|
-
clustersPerArm: number;
|
|
842
|
-
boundaries: number[];
|
|
843
|
-
deltas: number[];
|
|
844
|
-
low: number | null;
|
|
845
|
-
high: number | null;
|
|
846
|
-
q025: number | null;
|
|
847
|
-
q975: number | null;
|
|
848
|
-
}
|
|
849
|
-
declare function placeboBand<T>(history: readonly T[], options: PlaceboBandOptions<T>): PlaceboBandResult;
|
|
850
|
-
export { InMemoryRawProviderSink as $, ChatResponse as A, LlmCallRequest as B, ScenarioFile as C, ChatCallOpts as D, TurnResult as E, MockTransportOpts as F, LlmThinkingMode as G, LlmChargeBounds as H, OpenAiCompatibleTransportOpts as I, LlmToolChoice as J, LlmTokenLogprob as K, SandboxSdkTransportOpts as L, CreateChatClientOpts as M, CustomTransportOpts as N, ChatClient as O, DEFAULT_JUDGE_MODEL as P, FileSystemRawProviderSinkOptions as Q, createChatClient as R, RubricDimension as S, judgeFamily as St, Turn as T, LlmClientOptions as U, LlmCallResult as V, LlmMessage as W, LlmUsage as X, LlmToolDefinition as Y, FileSystemRawProviderSink as Z, JudgeRubric as _, describeServedModelCheck as _t, PlaceboBandResult as a, RawProviderSink as at, ProductScenario as b, JudgeFamily as bt, ArtifactCheck as c, AssertServedModelOptions as ct, CollectedArtifacts as d, ServedModelPolicy as dt, InMemoryRawProviderSinkOptions as et, CompletionCriterion as f, ServedModelVerdict as ft, JudgeInput as g, checkServedModel as gt, JudgeFn as h, assertServedModels as ht, PlaceboBandOptions as i, RawProviderEvent as it, ChatTransport as j, ChatRequest as k, ArtifactResult as l, ModelSubstitutionError as lt, DriverState as m, assertServedModel as mt, ClusterResampleOptions as n, ProviderRedactor as nt, clusterBootstrap as o, RawProviderSinkFilter as ot, DimensionJudgeScore as p, assertCrossFamilyServed as pt, LlmToolCall as q, DEFAULT_BOOTSTRAP_SEED as r, RawProviderDirection as rt, placeboBand as s, AssertCrossFamilyServedOptions as st, BootstrapInterval as t, NoopRawProviderSink as tt, CheckResult as u, ServedModelCheck as ut, PersonaConfig as v, AssertCrossFamilyOptions as vt, ScenarioResult as w, RouteMap as x, assertCrossFamily as xt, ProductClientConfig as y, CrossFamilyError as yt, LlmCallMetadata as z };
|
|
851
|
-
//# sourceMappingURL=cluster-Bj90LK-1.d.ts.map
|
|
613
|
+
export { ProviderRedactor as A, ServedModelVerdict as B, LlmToolDefinition as C, InMemoryRawProviderSink as D, FileSystemRawProviderSinkOptions as E, AssertCrossFamilyServedOptions as F, describeServedModelCheck as G, assertServedModel as H, AssertServedModelOptions as I, JudgeFamily as J, AssertCrossFamilyOptions as K, ModelSubstitutionError as L, RawProviderEvent as M, RawProviderSink as N, InMemoryRawProviderSinkOptions as O, RawProviderSinkFilter as P, ServedModelCheck as R, LlmToolChoice as S, FileSystemRawProviderSink as T, assertServedModels as U, assertCrossFamilyServed as V, checkServedModel as W, judgeFamily as X, assertCrossFamily as Y, LlmClientOptions as _, ChatTransport as a, LlmTokenLogprob as b, DEFAULT_JUDGE_MODEL as c, SandboxSdkTransportOpts as d, createChatClient as f, LlmChargeBounds as g, LlmCallResult as h, ChatResponse as i, RawProviderDirection as j, NoopRawProviderSink as k, MockTransportOpts as l, LlmCallRequest as m, ChatClient as n, CreateChatClientOpts as o, LlmCallMetadata as p, CrossFamilyError as q, ChatRequest as r, CustomTransportOpts as s, ChatCallOpts as t, OpenAiCompatibleTransportOpts as u, LlmMessage as v, LlmUsage as w, LlmToolCall as x, LlmThinkingMode as y, ServedModelPolicy as z };
|
|
614
|
+
//# sourceMappingURL=chat-client-uQNXGuO4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-client-uQNXGuO4.d.ts","names":[],"sources":["../src/judge-families.ts","../src/integrity/served-model.ts","../src/trace/raw-provider-sink.ts","../src/llm-client/contract.ts","../src/analyst/chat-client.ts"],"mappings":";;;;;;;;;;;;KAWY;;;;;;;iBAsEI,YAAY,kBAAkB;UAc7B;;EAEf;;;;EAIA;;cAGW,yBAAyB;WAGlB,UAAU;WACV;EAFhB,YAAA,iBACgB,UAAU,eACV;;;;;;;;;;;;;;;iBAoBJ,kBACd,kBACA,OAAM,2BACL;;KCtFS;;;;;;;;;;;UAYK;;EAEf;;EAEA;EACA,iBAAiB;;EAEjB,cAAc;EACd,SAAS;;EAET;;;;;;;;;;;;iBAuDc,iBACd,mBACA,oCACC;cAkDU,+BAA+B;WAGxB,QAAQ,cAAc;EADtC,YAAA,iBACgB,QAAQ,cAAc;;;;;;;;;KAc9B;UAWK;;;;;;EAMf;;;;;EAKA;;EAEA;;;iBA0Bc,yBAAyB,OAAO;;;;;;iBAchC,kBACd,mBACA,mCACA,OAAM,2BACL;;;;;iBAea,mBACd,OAAO;EAAgB;EAAmB;IAC1C,OAAM,2BACL;UAec,uCAAuC;;EAEtD;;;;;;;;EAQA;;EAEA;;;;;;;;;;;iBAuBc,wBACd,OAAO;EAAgB;EAAmB;IAC1C,OAAM,iCACL;;;;;;;;;;;;;;;;;;;;;;;;;;;KC5SS;UAEK;;EAEf;;EAEA;EACA;;;;;;EAMA;EACA;;EAEA;;EAEA;;EAEA;EACA,WAAW;;EAEX;;EAEA;EACA;EACA,iBAAiB;EACjB;EACA,kBAAkB;EAClB;;EAEA;;EAEA;;UAGe;EACf;EACA;EACA,YAAY;EACZ;;UAGe;EACf,OAAO,OAAO,mBAAmB;;EAEjC,MAAM,SAAS,wBAAwB,QAAQ;;EAE/C,UAAU;;KAGA,oBAAoB,OAAO,qBAAqB;UA2B3C;EACf,WAAW;;cAGA,mCAAmC;UACtC;UACA;EAEI,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AW;;WAEX;;WAEA;;EAGT,KAAK,KAAK,aAAa,OAAO,eAAe,QAAQ;;;cAI1C;KAED;UAMK,oBAAoB,KAAK;;EAExC;;KAGU,eAAe;UAEV;;EAEf,SAAS;;EAET;;EAEA;;EAEA;;KAKU,uBACR,0BACA,sBACA,gCACA;UAEM;EACR;;EAEA;;;;;;UAOe,gCAAgC;EAC/C;EACA,OAAO,KAAK,aAAa,OAAO,iBAAiB,QAAQ;;;UAI1C,4BAA4B;EAC3C;EACA,OAAO,KAAK,aAAa,OAAO,iBAAiB,QAAQ;;;;;;;;;;;;;;;;;;;;UAqB1C,sCACP,mBACN,KACE;EAcJ;;EAEA;;EAEA;;EAEA;;EAEA;IAAe;IAAc;;;;;;;UAOd,0BAA0B;EACzC;EACA,UAAU,KAAK,aAAa,OAAO,iBAAiB,QAAQ;;;;;;iBAO9C,iBAAiB,MAAM,uBAAuB"}
|
package/dist/cli.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { c as errorMessage } from "./errors-DeEEV9Vx.js";
|
|
3
3
|
import { i as replaySearchLedgerText } from "./search-ledger-C7t68cmy.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as renderSearchSummary } from "./search-summary-
|
|
4
|
+
import { o as operatorYield, s as INSUFFICIENT_FROM } from "./search-kernel-DOPW08Hx.js";
|
|
5
|
+
import { t as renderSearchSummary } from "./search-summary-CYOHZAAy.js";
|
|
6
6
|
import { l as SEARCH_LEDGER_BATCH_MAX_BYTES, m as SearchRunKindSchema, r as shipSearchLedger, s as hostedTenantFromEnv, t as SearchShipConflictError } from "./search-shipper-CmDW9dU6.js";
|
|
7
7
|
import { n as createChatClient } from "./chat-client-CvyDOQBv.js";
|
|
8
8
|
import { a as privacyHit, f as appendRolloutLines, n as runRolloutReleaseCli, r as PRIVACY_RULE_NAMES, u as gateReceiptRolloutLines } from "./hf-dataset-B0s2ZAhQ.js";
|
|
9
|
-
import { i as harnessSessionRolloutLines, n as harnessSessionRefs } from "./harness-session-lines-
|
|
10
|
-
import { t as runAnalystBenchmarkCommand } from "./benchmark-command-
|
|
9
|
+
import { i as harnessSessionRolloutLines, n as harnessSessionRefs } from "./harness-session-lines-CTh1-uOb.js";
|
|
10
|
+
import { t as runAnalystBenchmarkCommand } from "./benchmark-command-DLg8E4y8.js";
|
|
11
11
|
import { i as buildOpenApi, l as handleVersion, o as runRpcBatch, r as startServerAsync, s as runRpcOnce } from "./server-1fzBCxMh.js";
|
|
12
|
-
import { b as editCreditText, f as landscape, g as surfaceTextEdits, l as metaSearch, m as formatLandscape, n as taskMatrix, o as skillManifold, r as formatSkillManifold, s as renderMetaSearchText, t as tree, v as front, y as editCredit } from "./tree-
|
|
13
|
-
import { a as analyzeSupervisorRun, i as renderSupervisorRunMarkdown, r as renderSupervisorRunHeadline, t as runtimeRunRolloutLines } from "./runtime-rollouts-
|
|
12
|
+
import { b as editCreditText, f as landscape, g as surfaceTextEdits, l as metaSearch, m as formatLandscape, n as taskMatrix, o as skillManifold, r as formatSkillManifold, s as renderMetaSearchText, t as tree, v as front, y as editCredit } from "./tree-CtlQQL1w.js";
|
|
13
|
+
import { a as analyzeSupervisorRun, i as renderSupervisorRunMarkdown, r as renderSupervisorRunHeadline, t as runtimeRunRolloutLines } from "./runtime-rollouts-Vv-BAqmq.js";
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
15
15
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { l as CostLedgerSummary, o as CostLedgerHandle } from "./cost-ledger-CSP-OfFe.js";
|
|
2
|
+
import { n as ChatClient } from "./chat-client-uQNXGuO4.js";
|
|
3
|
+
interface ProductScenario {
|
|
4
|
+
id: string;
|
|
5
|
+
persona: string;
|
|
6
|
+
label: string;
|
|
7
|
+
thesis: string;
|
|
8
|
+
dimensions: string[];
|
|
9
|
+
turns: Turn[];
|
|
10
|
+
artifactChecks: ArtifactCheck[];
|
|
11
|
+
systemPromptAppend?: string;
|
|
12
|
+
}
|
|
13
|
+
interface Turn {
|
|
14
|
+
user: string;
|
|
15
|
+
expectedBehaviors: string[];
|
|
16
|
+
adversarial?: boolean;
|
|
17
|
+
feedbackType?: 'correction' | 'rejection' | 'vague' | 'contradictory' | 'escalation';
|
|
18
|
+
}
|
|
19
|
+
interface ArtifactCheck {
|
|
20
|
+
type: 'vault_file_exists' | 'vault_file_contains' | 'block_extracted' | 'code_valid' | 'generation_produced' | 'tool_created' | string;
|
|
21
|
+
target: string;
|
|
22
|
+
contains?: string;
|
|
23
|
+
minCount?: number;
|
|
24
|
+
description: string;
|
|
25
|
+
}
|
|
26
|
+
interface JudgeRubric {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
dimensions: RubricDimension[];
|
|
30
|
+
}
|
|
31
|
+
interface RubricDimension {
|
|
32
|
+
name: string;
|
|
33
|
+
description: string;
|
|
34
|
+
anchor_low: string;
|
|
35
|
+
anchor_high: string;
|
|
36
|
+
weight: number;
|
|
37
|
+
}
|
|
38
|
+
interface ScenarioResult {
|
|
39
|
+
scenarioId: string;
|
|
40
|
+
persona: string;
|
|
41
|
+
turns: TurnResult[];
|
|
42
|
+
artifactResults: ArtifactResult[];
|
|
43
|
+
judgeScores: DimensionJudgeScore[];
|
|
44
|
+
judgeErrors: number;
|
|
45
|
+
overallScore: number;
|
|
46
|
+
totalDurationMs: number;
|
|
47
|
+
artifacts: CollectedArtifacts;
|
|
48
|
+
/** Agent and judge spend attributed to this scenario. */
|
|
49
|
+
cost?: CostLedgerSummary;
|
|
50
|
+
}
|
|
51
|
+
interface TurnResult {
|
|
52
|
+
turnIndex: number;
|
|
53
|
+
userMessage: string;
|
|
54
|
+
agentResponse: string;
|
|
55
|
+
durationMs: number;
|
|
56
|
+
blocksExtracted: {
|
|
57
|
+
type: string;
|
|
58
|
+
title: string;
|
|
59
|
+
}[];
|
|
60
|
+
containsCode: boolean;
|
|
61
|
+
containsToolCall: boolean;
|
|
62
|
+
}
|
|
63
|
+
interface ArtifactResult {
|
|
64
|
+
check: ArtifactCheck;
|
|
65
|
+
passed: boolean;
|
|
66
|
+
detail?: string;
|
|
67
|
+
}
|
|
68
|
+
interface DimensionJudgeScore {
|
|
69
|
+
judgeName: string;
|
|
70
|
+
dimension: string;
|
|
71
|
+
score: number;
|
|
72
|
+
reasoning: string;
|
|
73
|
+
evidence?: string;
|
|
74
|
+
}
|
|
75
|
+
interface CollectedArtifacts {
|
|
76
|
+
vaultFiles: {
|
|
77
|
+
path: string;
|
|
78
|
+
content: string;
|
|
79
|
+
}[];
|
|
80
|
+
blocksExtracted: {
|
|
81
|
+
type: string;
|
|
82
|
+
fields: Record<string, string>;
|
|
83
|
+
}[];
|
|
84
|
+
codeBlocks: {
|
|
85
|
+
language: string;
|
|
86
|
+
code: string;
|
|
87
|
+
}[];
|
|
88
|
+
toolCalls: string[];
|
|
89
|
+
}
|
|
90
|
+
interface RouteMap {
|
|
91
|
+
signup?: string;
|
|
92
|
+
login?: string;
|
|
93
|
+
workspaces?: string;
|
|
94
|
+
threads?: string;
|
|
95
|
+
chat?: string;
|
|
96
|
+
tasks?: string;
|
|
97
|
+
events?: string;
|
|
98
|
+
approvals?: string;
|
|
99
|
+
vault?: string;
|
|
100
|
+
generations?: string;
|
|
101
|
+
[key: string]: string | undefined;
|
|
102
|
+
}
|
|
103
|
+
interface ProductClientConfig {
|
|
104
|
+
baseUrl: string;
|
|
105
|
+
routes: RouteMap;
|
|
106
|
+
/** Per-request timeout in ms before the request is aborted. Default 30s. */
|
|
107
|
+
timeoutMs?: number;
|
|
108
|
+
}
|
|
109
|
+
interface ScenarioFile {
|
|
110
|
+
id: string;
|
|
111
|
+
category: string;
|
|
112
|
+
persona: string;
|
|
113
|
+
label: string;
|
|
114
|
+
thesis: string;
|
|
115
|
+
isControl?: boolean;
|
|
116
|
+
rubric?: {
|
|
117
|
+
dimensions: {
|
|
118
|
+
name: string;
|
|
119
|
+
description: string;
|
|
120
|
+
weight: number;
|
|
121
|
+
}[];
|
|
122
|
+
};
|
|
123
|
+
turns: Turn[];
|
|
124
|
+
artifactChecks: ArtifactCheck[];
|
|
125
|
+
}
|
|
126
|
+
interface CompletionCriterion {
|
|
127
|
+
name: string;
|
|
128
|
+
check: (state: DriverState) => boolean;
|
|
129
|
+
progress?: (state: DriverState) => number;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* How hard the simulated user pushes back. The driver LLM scales its tone
|
|
133
|
+
* and follow-up aggression to this:
|
|
134
|
+
* cooperative — forgiving early adopter; accepts reasonable answers.
|
|
135
|
+
* demanding — experienced professional; rejects vague or hedged answers.
|
|
136
|
+
* relentless — senior partner reviewing for a client who will litigate;
|
|
137
|
+
* interrogates every claim, accepts nothing undefended.
|
|
138
|
+
*/
|
|
139
|
+
type PersonaRigor = 'cooperative' | 'demanding' | 'relentless';
|
|
140
|
+
interface PersonaConfig {
|
|
141
|
+
id: string;
|
|
142
|
+
role: string;
|
|
143
|
+
goal: string;
|
|
144
|
+
completionCriteria: CompletionCriterion[];
|
|
145
|
+
maxTurns: number;
|
|
146
|
+
/** How adversarial the simulated user is. Defaults to 'demanding'. */
|
|
147
|
+
rigor?: PersonaRigor;
|
|
148
|
+
/**
|
|
149
|
+
* Domain expertise the simulated user holds — quoted into the driver
|
|
150
|
+
* prompt so it challenges the agent with authority instead of vague
|
|
151
|
+
* dissatisfaction. e.g. "a 15-year M&A partner who knows GAAP
|
|
152
|
+
* working-capital mechanics cold".
|
|
153
|
+
*/
|
|
154
|
+
expertise?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Substantive issues a senior professional in this role would
|
|
157
|
+
* interrogate — traps the scenario hides, claims that must be defended.
|
|
158
|
+
* The driver probes these without revealing them verbatim; the agent
|
|
159
|
+
* must surface them on its own.
|
|
160
|
+
*/
|
|
161
|
+
pressurePoints?: string[];
|
|
162
|
+
/**
|
|
163
|
+
* Curveballs the driver may inject once the agent is coasting — changed
|
|
164
|
+
* facts, a hostile counterparty position, a new constraint. Forces the
|
|
165
|
+
* agent to re-derive rather than recite.
|
|
166
|
+
*/
|
|
167
|
+
curveballs?: string[];
|
|
168
|
+
}
|
|
169
|
+
interface DriverState {
|
|
170
|
+
tasks: number;
|
|
171
|
+
events: number;
|
|
172
|
+
proposals: {
|
|
173
|
+
pending: number;
|
|
174
|
+
approved: number;
|
|
175
|
+
rejected: number;
|
|
176
|
+
};
|
|
177
|
+
vaultFiles: string[];
|
|
178
|
+
codeBlocks: number;
|
|
179
|
+
generations: number;
|
|
180
|
+
}
|
|
181
|
+
interface JudgeInput {
|
|
182
|
+
scenario: ProductScenario;
|
|
183
|
+
turns: TurnResult[];
|
|
184
|
+
artifacts: CollectedArtifacts;
|
|
185
|
+
/** Shared ledger for paid built-in judges. Direct calls default to an uncapped ledger. */
|
|
186
|
+
costLedger?: CostLedgerHandle;
|
|
187
|
+
costPhase?: string;
|
|
188
|
+
costTags?: Record<string, string>;
|
|
189
|
+
signal?: AbortSignal;
|
|
190
|
+
}
|
|
191
|
+
type JudgeFn = (chat: ChatClient, input: JudgeInput) => Promise<DimensionJudgeScore[]>;
|
|
192
|
+
interface CheckResult {
|
|
193
|
+
name: string;
|
|
194
|
+
passed: boolean;
|
|
195
|
+
expected: string;
|
|
196
|
+
actual: string;
|
|
197
|
+
}
|
|
198
|
+
declare const DEFAULT_BOOTSTRAP_SEED = 12648430;
|
|
199
|
+
type BootstrapInterval = {
|
|
200
|
+
low: number;
|
|
201
|
+
high: number;
|
|
202
|
+
resamples: number;
|
|
203
|
+
clusters: number;
|
|
204
|
+
};
|
|
205
|
+
interface ClusterResampleOptions<T> {
|
|
206
|
+
resamples?: number;
|
|
207
|
+
seed?: number;
|
|
208
|
+
level?: number;
|
|
209
|
+
/** Whole clusters are drawn within each stratum, preserving its cluster count. */
|
|
210
|
+
strata?: (item: T, index: number) => string;
|
|
211
|
+
}
|
|
212
|
+
/** Percentile bootstrap; degenerate resamples are omitted, with NaN bounds if none remain. */
|
|
213
|
+
declare function clusterBootstrap<T>(items: readonly T[], cluster: (item: T, index: number) => string, statistic: (sample: T[]) => number, { resamples, seed, level, strata }?: ClusterResampleOptions<T>): BootstrapInterval;
|
|
214
|
+
interface PlaceboBandOptions<T> {
|
|
215
|
+
/** Epoch milliseconds; pass one same-cell history per call. */
|
|
216
|
+
timestamp: (row: T) => number;
|
|
217
|
+
cluster: (row: T) => string;
|
|
218
|
+
/** The exact estimator used on the sealed before/after arms, including failure scoring. */
|
|
219
|
+
statistic: (before: T[], after: T[]) => number;
|
|
220
|
+
clustersPerArm: number;
|
|
221
|
+
delta: number;
|
|
222
|
+
/** Optional preselected epoch-ms boundaries; otherwise use UTC hour boundaries. */
|
|
223
|
+
boundaries?: readonly number[];
|
|
224
|
+
/** Sealed steps on the measured stage, in epoch milliseconds. */
|
|
225
|
+
steps?: readonly number[];
|
|
226
|
+
}
|
|
227
|
+
interface PlaceboBandResult {
|
|
228
|
+
status: 'calibrated' | 'uncalibrated';
|
|
229
|
+
n: number;
|
|
230
|
+
K: number;
|
|
231
|
+
clustersPerArm: number;
|
|
232
|
+
boundaries: number[];
|
|
233
|
+
deltas: number[];
|
|
234
|
+
low: number | null;
|
|
235
|
+
high: number | null;
|
|
236
|
+
q025: number | null;
|
|
237
|
+
q975: number | null;
|
|
238
|
+
}
|
|
239
|
+
declare function placeboBand<T>(history: readonly T[], options: PlaceboBandOptions<T>): PlaceboBandResult;
|
|
240
|
+
export { RubricDimension as C, TurnResult as D, Turn as E, RouteMap as S, ScenarioResult as T, JudgeRubric as _, PlaceboBandResult as a, ProductClientConfig as b, ArtifactCheck as c, CollectedArtifacts as d, CompletionCriterion as f, JudgeInput as g, JudgeFn as h, PlaceboBandOptions as i, ArtifactResult as l, DriverState as m, ClusterResampleOptions as n, clusterBootstrap as o, DimensionJudgeScore as p, DEFAULT_BOOTSTRAP_SEED as r, placeboBand as s, BootstrapInterval as t, CheckResult as u, PersonaConfig as v, ScenarioFile as w, ProductScenario as x, PersonaRigor as y };
|
|
241
|
+
//# sourceMappingURL=cluster-C-K0N2br.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cluster-C-K0N2br.d.ts","names":[],"sources":["../src/types.ts","../src/statistics/cluster.ts"],"mappings":";;UAKiB;EACf;EACA;EACA;EACA;EACA;EACA,OAAO;EACP,gBAAgB;EAChB;;UAGe;EACf;EACA;EACA;EACA;;UAKe;EACf;EAQA;EACA;EACA;EACA;;UAKe;EACf;EACA;EACA,YAAY;;UAGG;EACf;EACA;EACA;EACA;EACA;;UAKe;EACf;EACA;EACA,OAAO;EACP,iBAAiB;EACjB,aAAa;EACb;EACA;EACA;EACA,WAAW;;EAEX,OAAO;;UAGQ;EACf;EACA;EACA;EACA;EACA;IAAmB;IAAc;;EACjC;EACA;;UAGe;EACf,OAAO;EACP;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;;UAGe;EACf;IAAc;IAAc;;EAC5B;IAAmB;IAAc,QAAQ;;EACzC;IAAc;IAAkB;;EAChC;;UAKe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;GACC;;UAGc;EACf;EACA,QAAQ;;EAER;;UAKe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;IACE;MACE;MACA;MACA;;;EAGJ,OAAO;EACP,gBAAgB;;UAKD;EACf;EACA,QAAQ,OAAO;EACf,YAAY,OAAO;;;;;;;;;;KAWT;UAEK;EACf;EACA;EACA;EACA,oBAAoB;EACpB;;EAEA,QAAQ;;;;;;;EAOR;;;;;;;EAOA;;;;;;EAMA;;UAGe;EACf;EACA;EACA;IAAa;IAAiB;IAAkB;;EAChD;EACA;EACA;;UAGe;EACf,UAAU;EACV,OAAO;EACP,WAAW;;EAEX,aAAa;EACb;EACA,WAAW;EACX,SAAS;;KAGC,WAAW,MAAM,YAAY,OAAO,eAAe,QAAQ;UAItD;EACf;EACA;EACA;EACA;;cC1NW;KACD;EAAsB;EAAa;EAAc;EAAmB;;UAC/D,uBAAuB;EACtC;EACA;EACA;;EAEA,UAAU,MAAM,GAAG;;;iBAIL,iBAAiB,GAC/B,gBAAgB,KAChB,UAAU,MAAM,GAAG,0BACnB,YAAY,QAAQ,kBAElB,WACA,MACA,OACA,WACC,uBAAuB,KACzB;UA2Cc,mBAAmB;;EAElC,YAAY,KAAK;EACjB,UAAU,KAAK;;EAEf,YAAY,QAAQ,KAAK,OAAO;EAChC;EACA;;EAEA;;EAEA;;UAEe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGc,YAAY,GAC1B,kBAAkB,KAClB,SAAS,mBAAmB,KAC3B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { s as ValidationError } from "./errors-DeEEV9Vx.js";
|
|
2
|
-
import {
|
|
2
|
+
import { w as seedFromData } from "./paired-tests-CXcD_B80.js";
|
|
3
|
+
import { nt as clusterBootstrap } from "./statistics-BPl13X3G.js";
|
|
3
4
|
// src/meta-eval/cluster-bootstrap.ts
|
|
4
5
|
/** Observation-weighted mean through the shared stratified cluster bootstrap. */
|
|
5
6
|
function clusterBootstrapMean(observations, options = {}) {
|
|
@@ -21,4 +22,4 @@ function clusterBootstrapMean(observations, options = {}) {
|
|
|
21
22
|
}
|
|
22
23
|
export { clusterBootstrapMean as t };
|
|
23
24
|
|
|
24
|
-
//# sourceMappingURL=cluster-bootstrap-
|
|
25
|
+
//# sourceMappingURL=cluster-bootstrap-DXbnIdm8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster-bootstrap-
|
|
1
|
+
{"version":3,"file":"cluster-bootstrap-DXbnIdm8.js","names":[],"sources":["../src/meta-eval/cluster-bootstrap.ts"],"sourcesContent":["import { ValidationError } from '../errors'\nimport { clusterBootstrap } from '../statistics/cluster'\nimport { seedFromData } from '../statistics/internal'\n\n/** One observation and the source cluster it belongs to. */\nexport interface ClusteredObservation {\n cluster: string\n value: number\n stratum?: string\n}\n\nexport interface ClusterBootstrapOptions {\n /** Confidence level. Default 0.95. */\n confidence?: number\n /** Bootstrap resample count. Default 2000. */\n resamples?: number\n /** Deterministic seed. If omitted, derived from the values for reproducible intervals. */\n seed?: number\n}\n\nexport interface ClusterBootstrapResult {\n n: number\n clusters: number\n /** Mean over observations, each observation weighted equally. */\n mean: number\n low: number\n high: number\n confidence: number\n resamples: number\n}\n\n/** Observation-weighted mean through the shared stratified cluster bootstrap. */\nexport function clusterBootstrapMean(\n observations: readonly ClusteredObservation[],\n options: ClusterBootstrapOptions = {},\n): ClusterBootstrapResult {\n if (\n !observations.length ||\n (options.resamples !== undefined &&\n (!Number.isSafeInteger(options.resamples) || options.resamples < 1))\n ) {\n throw new ValidationError('clusterBootstrapMean: requires observations and positive resamples')\n }\n if (observations.some((row) => !Number.isFinite(row.value))) {\n throw new ValidationError('clusterBootstrapMean: value must be finite')\n }\n const confidence = options.confidence ?? 0.95\n const mean = (rows: readonly ClusteredObservation[]) =>\n rows.reduce((sum, row) => sum + row.value, 0) / rows.length\n return {\n ...clusterBootstrap(observations, (row) => row.cluster, mean, {\n level: confidence,\n seed: options.seed ?? seedFromData([observations.map((row) => row.value)]),\n ...(options.resamples === undefined ? {} : { resamples: options.resamples }),\n strata: (row) => row.stratum ?? '',\n }),\n n: observations.length,\n mean: mean(observations),\n confidence,\n }\n}\n"],"mappings":";;;;;AAgCA,SAAgB,qBACd,cACA,UAAmC,CAAC,GACZ;CACxB,IACE,CAAC,aAAa,UACb,QAAQ,cAAc,KAAA,MACpB,CAAC,OAAO,cAAc,QAAQ,SAAS,KAAK,QAAQ,YAAY,IAEnE,MAAM,IAAI,gBAAgB,oEAAoE;CAEhG,IAAI,aAAa,MAAM,QAAQ,CAAC,OAAO,SAAS,IAAI,KAAK,CAAC,GACxD,MAAM,IAAI,gBAAgB,4CAA4C;CAExE,MAAM,aAAa,QAAQ,cAAc;CACzC,MAAM,QAAQ,SACZ,KAAK,QAAQ,KAAK,QAAQ,MAAM,IAAI,OAAO,CAAC,IAAI,KAAK;CACvD,OAAO;EACL,GAAG,iBAAiB,eAAe,QAAQ,IAAI,SAAS,MAAM;GAC5D,OAAO;GACP,MAAM,QAAQ,QAAQ,aAAa,CAAC,aAAa,KAAK,QAAQ,IAAI,KAAK,CAAC,CAAC;GACzE,GAAI,QAAQ,cAAc,KAAA,IAAY,CAAC,IAAI,EAAE,WAAW,QAAQ,UAAU;GAC1E,SAAS,QAAQ,IAAI,WAAW;EAClC,CAAC;EACD,GAAG,aAAa;EAChB,MAAM,KAAK,YAAY;EACvB;CACF;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as CostLedgerHandle } from "./cost-ledger-CSP-OfFe.js";
|
|
2
|
-
import {
|
|
2
|
+
import { N as RawProviderSink, n as ChatClient } from "./chat-client-uQNXGuO4.js";
|
|
3
3
|
import { a as CheckerIdentity, n as VerdictCertification, t as DefaultVerdict, x as VerificationStrategySource } from "./verdict-D_qiBQ6_.js";
|
|
4
4
|
/** An artifact an agent produced, as completion and produced-state checks read it. */
|
|
5
5
|
interface ValidatedArtifact {
|
|
@@ -166,4 +166,4 @@ interface LlmCorrectnessCheckerOpts {
|
|
|
166
166
|
*/
|
|
167
167
|
declare function createLlmCorrectnessChecker(chat: ChatClient, opts?: LlmCorrectnessCheckerOpts): CorrectnessChecker;
|
|
168
168
|
export { ProducedProposal as a, SatisfiedBy as c, createLlmCorrectnessChecker as d, verifyCompletion as f, LlmCorrectnessCheckerOpts as i, TaskGold as l, CompletionVerdict as n, ProducedState as o, CorrectnessChecker as r, RequirementCheck as s, CompletionRequirement as t, completionVerdict as u };
|
|
169
|
-
//# sourceMappingURL=completion-verifier-
|
|
169
|
+
//# sourceMappingURL=completion-verifier-C7wipJOK.d.ts.map
|
package/dist/{completion-verifier-Cy38EpGE.d.ts.map → completion-verifier-C7wipJOK.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion-verifier-
|
|
1
|
+
{"version":3,"file":"completion-verifier-C7wipJOK.d.ts","names":[],"sources":["../src/artifact-validator.ts","../src/completion-verifier.ts"],"mappings":";;;;UACiB;;EAEf;;EAEA;;EAEA;;EAEA,QAAQ;;EAER,WAAW;;;KCiCD;UAEK;;EAEf;;EAEA;;EAEA;;EAEA,cAAc;;UAGC;EACf;EACA,cAAc;;UAGC;EACf;EACA;EACA;;EAEA;;;UAIe;;EAEf,WAAW;;EAEX,WAAW;;EAEX;;UAGe;EACf;EACA;;EAEA;;;;;;EAMA;;EAEA;;;;;;;;;EASA;;EAEA;;EAEA;;;;;UAMe,0BAA0B;EACzC;EACA,cAAc;;EAEd;;EAEA;;EAEA;;;;;;;;;iBAUc,kBAAkB;EAChC;EACA,cAAc;;;EAGd,gBAAgB;IACd;;;;;;UAqCa;EACf,UAAU;EACV,SAAS;EACT;;;;;;;;;;;;UAae;GAEb,aAAa,uBACb,kBACC;IAAU;IAAkB;;EAC/B,cAAc;;;;;;;;;iBAsLM,iBACpB,MAAM,UACN,OAAO,eACP,kBAAkB,qBACjB,QAAQ;UAyGM;;EAEf;;EAEA,aAAa;EACb;EACA,WAAW;EACX,SAAS;;EAET;;;;;;EAMA;;;;;;EAMA,UAAU;;;;;;;;iBA2CI,4BACd,MAAM,YACN,OAAM,4BACL"}
|