@tangle-network/agent-eval 0.150.1 → 0.161.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 +178 -1
- package/README.md +7 -3
- package/dist/{active-curriculum-C4mk67HP.js → active-curriculum-CD5TU2yW.js} +3 -13
- package/dist/active-curriculum-CD5TU2yW.js.map +1 -0
- package/dist/{agent-profile-cell-BkcRDikH.d.ts → agent-profile-cell-CTOZJUuE.d.ts} +4 -2
- package/dist/agent-profile-cell-CTOZJUuE.d.ts.map +1 -0
- package/dist/analyst/index.d.ts +19 -36
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +8 -8
- package/dist/analyst/index.js.map +1 -1
- package/dist/{backend-integrity-DOCa_QrR.d.ts → backend-integrity-DxuQCu_A.d.ts} +4 -3
- package/dist/backend-integrity-DxuQCu_A.d.ts.map +1 -0
- package/dist/{benchmark-BtAWA8nT.d.ts → benchmark-CGPp-kDC.d.ts} +3 -3
- package/dist/{benchmark-BtAWA8nT.d.ts.map → benchmark-CGPp-kDC.d.ts.map} +1 -1
- package/dist/{benchmark-command-CAFwbH0L.js → benchmark-command-BVtaq_ve.js} +26 -31
- package/dist/benchmark-command-BVtaq_ve.js.map +1 -0
- package/dist/benchmarks/index.d.ts +6 -19
- package/dist/benchmarks/index.d.ts.map +1 -1
- package/dist/benchmarks/index.js +4 -4
- package/dist/benchmarks/index.js.map +1 -1
- package/dist/builder-eval/index.d.ts +3 -3
- package/dist/builder-eval/index.js +3 -3
- package/dist/campaign/index.d.ts +9 -9
- package/dist/campaign/index.js +7 -7
- package/dist/{campaign-CN_7xJdV.js → campaign-BSmOwskD.js} +77 -795
- package/dist/campaign-BSmOwskD.js.map +1 -0
- package/dist/{canonical-D-XsTQ6_.js → canonical-IL-Bu-14.js} +26 -2
- package/dist/canonical-IL-Bu-14.js.map +1 -0
- package/dist/{capture-fetch-BBVFzhkk.d.ts → capture-fetch-CqwsJkkG.d.ts} +3 -3
- package/dist/{capture-fetch-BBVFzhkk.d.ts.map → capture-fetch-CqwsJkkG.d.ts.map} +1 -1
- package/dist/{chat-client-2bVfrzhN.js → chat-client-DlMlAeYI.js} +5 -55
- package/dist/{chat-client-2bVfrzhN.js.map → chat-client-DlMlAeYI.js.map} +1 -1
- package/dist/chat-json-call-6g5sJobJ.js +53 -0
- package/dist/chat-json-call-6g5sJobJ.js.map +1 -0
- package/dist/cli.js +54 -19
- package/dist/cli.js.map +1 -1
- package/dist/{client-LIuo-KPv.js → client-CX7KqIdB.js} +3 -3
- package/dist/client-CX7KqIdB.js.map +1 -0
- package/dist/{client-kPQYT_56.d.ts → client-L9VVPkim.d.ts} +4 -4
- package/dist/{client-kPQYT_56.d.ts.map → client-L9VVPkim.d.ts.map} +1 -1
- package/dist/contract/index.d.ts +13 -27
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +14 -17
- package/dist/contract/index.js.map +1 -1
- package/dist/{counterfactual--bpysZF0.d.ts → counterfactual-BaFUWK3H.d.ts} +4 -4
- package/dist/{counterfactual--bpysZF0.d.ts.map → counterfactual-BaFUWK3H.d.ts.map} +1 -1
- package/dist/{counterfactual-lDfCx0Uz.js → counterfactual-D_VWavVm.js} +2 -2
- package/dist/{counterfactual-lDfCx0Uz.js.map → counterfactual-D_VWavVm.js.map} +1 -1
- package/dist/{dataset-CJjKqQfA.d.ts → dataset-DQqhOCPt.d.ts} +5 -4
- package/dist/{dataset-CJjKqQfA.d.ts.map → dataset-DQqhOCPt.d.ts.map} +1 -1
- package/dist/{default-registry-Cw0Ohdoj.d.ts → default-registry-G9CKMNkc.d.ts} +7 -8
- package/dist/{default-registry-Cw0Ohdoj.d.ts.map → default-registry-G9CKMNkc.d.ts.map} +1 -1
- package/dist/{define-agent-eval-CEQWL9Hy.d.ts → define-agent-eval-Dx1JnPEa.d.ts} +26 -6
- package/dist/define-agent-eval-Dx1JnPEa.d.ts.map +1 -0
- package/dist/{define-agent-eval-rqNyVhVV.js → define-agent-eval-h-s-sI-v.js} +17 -11
- package/dist/define-agent-eval-h-s-sI-v.js.map +1 -0
- package/dist/{descriptive-B5MwKfbf.js → descriptive-jDOuI6mz.js} +22 -2
- package/dist/descriptive-jDOuI6mz.js.map +1 -0
- package/dist/{dspy-rlm-engine-DHI0WrUU.js → dspy-rlm-engine-DptEII26.js} +95 -15
- package/dist/dspy-rlm-engine-DptEII26.js.map +1 -0
- package/dist/{emitter-CPBAhxum.js → emitter-BpYFQPj4.js} +2 -18
- package/dist/emitter-BpYFQPj4.js.map +1 -0
- package/dist/{emitter-DGQGoLyj.d.ts → emitter-D_jYSGRd.d.ts} +4 -20
- package/dist/{emitter-DGQGoLyj.d.ts.map → emitter-D_jYSGRd.d.ts.map} +1 -1
- package/dist/{engine-BLzhNzoY.d.ts → engine-Cu5qD5Fc.d.ts} +9 -11
- package/dist/{engine-BLzhNzoY.d.ts.map → engine-Cu5qD5Fc.d.ts.map} +1 -1
- package/dist/{eval-campaign-C4jmuM-b.js → eval-campaign-BsXWL2-2.js} +17 -28
- package/dist/eval-campaign-BsXWL2-2.js.map +1 -0
- package/dist/{exact-types-ccQAyut1.d.ts → exact-types-qnexxJ1Z.d.ts} +2 -2
- package/dist/{exact-types-ccQAyut1.d.ts.map → exact-types-qnexxJ1Z.d.ts.map} +1 -1
- package/dist/{exec-y-DCLqK7.js → exec-D9WpA2p-.js} +2 -2
- package/dist/exec-D9WpA2p-.js.map +1 -0
- package/dist/experiment/index.d.ts +45 -11
- package/dist/experiment/index.d.ts.map +1 -1
- package/dist/experiment/index.js +30 -11
- package/dist/experiment/index.js.map +1 -1
- package/dist/{experiment-tracker-0MhuPArU.d.ts → experiment-tracker-DCO6Cz4s.d.ts} +2 -2
- package/dist/{experiment-tracker-0MhuPArU.d.ts.map → experiment-tracker-DCO6Cz4s.d.ts.map} +1 -1
- package/dist/{exporters-q9iL-2Jf.js → exporters-Df7TgHFv.js} +3 -3
- package/dist/exporters-Df7TgHFv.js.map +1 -0
- package/dist/{external-optimizer-contracts-DbLsm4Po.d.ts → external-optimizer-contracts-szBJ_1vh.d.ts} +2 -2
- package/dist/{external-optimizer-contracts-DbLsm4Po.d.ts.map → external-optimizer-contracts-szBJ_1vh.d.ts.map} +1 -1
- package/dist/{external-optimizer-process-Bhmzngf-.js → external-optimizer-process-WosTBChy.js} +4 -4
- package/dist/{external-optimizer-process-Bhmzngf-.js.map → external-optimizer-process-WosTBChy.js.map} +1 -1
- package/dist/{external-optimizer-subprocess-Dn90UqN2.js → external-optimizer-subprocess-BIWbHpgD.js} +10 -6
- package/dist/external-optimizer-subprocess-BIWbHpgD.js.map +1 -0
- package/dist/{failure-cluster-BLURuWG4.d.ts → failure-cluster-CXL8NbEw.d.ts} +3 -3
- package/dist/{failure-cluster-BLURuWG4.d.ts.map → failure-cluster-CXL8NbEw.d.ts.map} +1 -1
- package/dist/{feedback-trajectory-DpTTjo0q.d.ts → feedback-trajectory-B3ZHaHV_.d.ts} +7 -7
- package/dist/{feedback-trajectory-DpTTjo0q.d.ts.map → feedback-trajectory-B3ZHaHV_.d.ts.map} +1 -1
- package/dist/fuzz.js +1 -1
- package/dist/{hf-dataset-XggBupCr.js → hf-dataset-D8_RNIis.js} +4 -4
- package/dist/{hf-dataset-XggBupCr.js.map → hf-dataset-D8_RNIis.js.map} +1 -1
- package/dist/hosted/index.d.ts +3 -14
- package/dist/hosted/index.d.ts.map +1 -1
- package/dist/hosted/index.js +2 -2
- package/dist/{index-CTKpu9ry.d.ts → index-CGtH1piv.d.ts} +48 -26
- package/dist/index-CGtH1piv.d.ts.map +1 -0
- package/dist/{index-BNPtkBPf.d.ts → index-D-IiQIBB.d.ts} +5 -10
- package/dist/index-D-IiQIBB.d.ts.map +1 -0
- package/dist/{index-IQccV3Ou.d.ts → index-D-V8gCs_.d.ts} +13 -90
- package/dist/index-D-V8gCs_.d.ts.map +1 -0
- package/dist/{index-B8Ui1mr1.d.ts → index-lfaSeKSD.d.ts} +18 -2
- package/dist/index-lfaSeKSD.d.ts.map +1 -0
- package/dist/index-vrJugRal.d.ts +1 -0
- package/dist/index.d.ts +68 -125
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +61 -112
- package/dist/index.js.map +1 -1
- package/dist/{insight-report-BeT8KCgI.d.ts → insight-report-DRe8LB6d.d.ts} +4 -4
- package/dist/{insight-report-BeT8KCgI.d.ts.map → insight-report-DRe8LB6d.d.ts.map} +1 -1
- package/dist/{integrity-DysDBWDu.js → integrity-CyWSSoQS.js} +17 -4
- package/dist/integrity-CyWSSoQS.js.map +1 -0
- package/dist/{integrity-B0dZ96EO.d.ts → integrity-DUNX9Fao.d.ts} +3 -3
- package/dist/{integrity-B0dZ96EO.d.ts.map → integrity-DUNX9Fao.d.ts.map} +1 -1
- package/dist/{judge-calibration-DZkWrm5H.js → judge-calibration-zZjLz8hr.js} +2 -2
- package/dist/{judge-calibration-DZkWrm5H.js.map → judge-calibration-zZjLz8hr.js.map} +1 -1
- package/dist/{kind-factory-DmAa0h3K.js → kind-factory-DY8FdoXf.js} +3 -71
- package/dist/kind-factory-DY8FdoXf.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-DTae9rv_.js → ledger-core-BOzlRygb.js} +2 -2
- package/dist/{ledger-core-DTae9rv_.js.map → ledger-core-BOzlRygb.js.map} +1 -1
- package/dist/{llm-client-Bg32RW0j.js → llm-client-hgDieDNN.js} +53 -98
- package/dist/llm-client-hgDieDNN.js.map +1 -0
- package/dist/{llm-judge-CVq33oz1.js → llm-judge-BhasIPFT.js} +1136 -78
- package/dist/llm-judge-BhasIPFT.js.map +1 -0
- package/dist/{matrix-DrVnRp4G.d.ts → matrix-eXKRMHnL.d.ts} +74 -72
- package/dist/matrix-eXKRMHnL.d.ts.map +1 -0
- package/dist/meta-eval/index.d.ts +8 -6
- package/dist/meta-eval/index.d.ts.map +1 -1
- package/dist/meta-eval/index.js +9 -7
- package/dist/meta-eval/index.js.map +1 -1
- package/dist/{mint-BV6tLVWl.js → mint-DfODW1KW.js} +3 -3
- package/dist/{mint-BV6tLVWl.js.map → mint-DfODW1KW.js.map} +1 -1
- package/dist/multishot/golden/index.d.ts +2 -8
- package/dist/multishot/golden/index.d.ts.map +1 -1
- package/dist/multishot/golden/index.js +56 -86
- package/dist/multishot/golden/index.js.map +1 -1
- package/dist/multishot/index.d.ts +11 -46
- package/dist/multishot/index.d.ts.map +1 -1
- package/dist/multishot/index.js +30 -83
- package/dist/multishot/index.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/dist/{opencode-sqlite-DJWAXLms.js → opencode-sqlite-eK6HW6dr.js} +2 -6
- package/dist/{opencode-sqlite-DJWAXLms.js.map → opencode-sqlite-eK6HW6dr.js.map} +1 -1
- package/dist/pipelines/index.d.ts +5 -5
- package/dist/pipelines/index.js +3 -3
- package/dist/{pre-registration-zFSLEiFU.d.ts → pre-registration-CzFCcwYk.d.ts} +55 -40
- package/dist/pre-registration-CzFCcwYk.d.ts.map +1 -0
- package/dist/pre-registration-KN9jkh58.js +110 -0
- package/dist/pre-registration-KN9jkh58.js.map +1 -0
- package/dist/{produced-state-jfk8Du3b.js → produced-state-DZ89riy5.js} +8 -8
- package/dist/produced-state-DZ89riy5.js.map +1 -0
- package/dist/profile-cell.d.ts +1 -1
- package/dist/profile-cell.js +31 -5
- package/dist/profile-cell.js.map +1 -1
- package/dist/{promotion-policy-DLOUkYhI.d.ts → promotion-policy-DtnOIZvk.d.ts} +2 -2
- package/dist/{promotion-policy-DLOUkYhI.d.ts.map → promotion-policy-DtnOIZvk.d.ts.map} +1 -1
- package/dist/{query-Di7eEQ79.js → query-CHmMP42p.js} +20 -11
- package/dist/query-CHmMP42p.js.map +1 -0
- package/dist/{query-CJ_DX8vl.d.ts → query-DxPYqpmT.d.ts} +10 -4
- package/dist/query-DxPYqpmT.d.ts.map +1 -0
- package/dist/raw-provider-sink-BU29Sh8h.d.ts +134 -0
- package/dist/raw-provider-sink-BU29Sh8h.d.ts.map +1 -0
- package/dist/{registry-BQwrSYpC.d.ts → registry-8You7OK1.d.ts} +5 -7
- package/dist/{registry-BQwrSYpC.d.ts.map → registry-8You7OK1.d.ts.map} +1 -1
- package/dist/{release-confidence-BknrpBnO.js → release-confidence-DKfD2RYU.js} +28 -14
- package/dist/release-confidence-DKfD2RYU.js.map +1 -0
- package/dist/{release-confidence-4XrqlpFD.d.ts → release-confidence-Dqt0NFep.d.ts} +7 -6
- package/dist/release-confidence-Dqt0NFep.d.ts.map +1 -0
- package/dist/reporting.d.ts +3 -3
- package/dist/reporting.js +3 -3
- package/dist/{researcher-DJnoUE8c.d.ts → researcher-Cz565b7D.d.ts} +34 -21
- package/dist/researcher-Cz565b7D.d.ts.map +1 -0
- package/dist/{reward-hacking-62tojkQd.d.ts → reward-hacking-MBf7qpSB.d.ts} +2 -2
- package/dist/{reward-hacking-62tojkQd.d.ts.map → reward-hacking-MBf7qpSB.d.ts.map} +1 -1
- package/dist/{reward-hacking-DKI9T52l.js → reward-hacking-t4lB1yt8.js} +3 -3
- package/dist/{reward-hacking-DKI9T52l.js.map → reward-hacking-t4lB1yt8.js.map} +1 -1
- package/dist/rl.d.ts +11 -42
- package/dist/rl.d.ts.map +1 -1
- package/dist/rl.js +41 -24
- package/dist/rl.js.map +1 -1
- package/dist/rollout/index.d.ts +3 -3
- package/dist/rollout/index.js +7 -7
- package/dist/{rollout-ytVQ7WT8.js → rollout-Dm2tSdiQ.js} +6 -6
- package/dist/{rollout-ytVQ7WT8.js.map → rollout-Dm2tSdiQ.js.map} +1 -1
- package/dist/{rubric-predictive-validity-Cwwyd7ah.js → rubric-predictive-validity-CK8SCOg-.js} +6 -16
- package/dist/rubric-predictive-validity-CK8SCOg-.js.map +1 -0
- package/dist/{rubric-predictive-validity-C7LnNvF2.d.ts → rubric-predictive-validity-CxycqzX5.d.ts} +4 -3
- package/dist/rubric-predictive-validity-CxycqzX5.d.ts.map +1 -0
- package/dist/{run-record-D2lDdSAz.js → run-record-BC0ebuRP.js} +2 -2
- package/dist/{run-record-D2lDdSAz.js.map → run-record-BC0ebuRP.js.map} +1 -1
- package/dist/{run-record-DVV82Gwh.d.ts → run-record-VVy4T9OW.d.ts} +3 -3
- package/dist/{run-record-DVV82Gwh.d.ts.map → run-record-VVy4T9OW.d.ts.map} +1 -1
- package/dist/{schema-BtVldJ3T.d.ts → schema-Bjgdsn73.d.ts} +2 -4
- package/dist/{schema-BtVldJ3T.d.ts.map → schema-Bjgdsn73.d.ts.map} +1 -1
- package/dist/{schema-Cef2cFmb.d.ts → schema-BzWDXhOR.d.ts} +2 -5
- package/dist/schema-BzWDXhOR.d.ts.map +1 -0
- package/dist/{schema-C6DW4ZHR.js → schema-C1aaAxTf.js} +2 -2
- package/dist/schema-C1aaAxTf.js.map +1 -0
- package/dist/{schema-CRhEY1SO.js → schema-k6ZBftVv.js} +2 -8
- package/dist/{schema-CRhEY1SO.js.map → schema-k6ZBftVv.js.map} +1 -1
- package/dist/{semantic-concept-judge-laMCnTLn.js → semantic-concept-judge-BSkKKHeq.js} +14 -38
- package/dist/semantic-concept-judge-BSkKKHeq.js.map +1 -0
- package/dist/{sequential-eprocess-CbUt2htw.js → sequential-eprocess-D1jKoihe.js} +49 -2
- package/dist/sequential-eprocess-D1jKoihe.js.map +1 -0
- package/dist/{sequential-C458DXNf.js → sequential-rYW-Ophm.js} +41 -16
- package/dist/sequential-rYW-Ophm.js.map +1 -0
- package/dist/{series-convergence-BxKEgBwA.d.ts → series-convergence-D9WgpXGi.d.ts} +2 -2
- package/dist/{series-convergence-BxKEgBwA.d.ts.map → series-convergence-D9WgpXGi.d.ts.map} +1 -1
- package/dist/{server-dIWwF3j_.js → server-BtFd4uzB.js} +19 -42
- package/dist/server-BtFd4uzB.js.map +1 -0
- package/dist/{skillopt-optimization-method-DLeUcK-K.js → skillopt-optimization-method-DbaekMcn.js} +794 -8
- package/dist/skillopt-optimization-method-DbaekMcn.js.map +1 -0
- package/dist/{skillopt-optimization-method-BDD_o1xE.d.ts → skillopt-optimization-method-x7TTF23P.d.ts} +20 -7
- package/dist/{skillopt-optimization-method-BDD_o1xE.d.ts.map → skillopt-optimization-method-x7TTF23P.d.ts.map} +1 -1
- package/dist/{statistical-heldout-_woZ9q9j.d.ts → statistical-heldout-Cy3EhjlC.d.ts} +21 -8
- package/dist/statistical-heldout-Cy3EhjlC.d.ts.map +1 -0
- package/dist/{steps-AmkT-GIM.d.ts → steps-CiNVJry_.d.ts} +2 -17
- package/dist/steps-CiNVJry_.d.ts.map +1 -0
- package/dist/{store-CT9YIIve.d.ts → store-B06JdC56.d.ts} +2 -2
- package/dist/{store-CT9YIIve.d.ts.map → store-B06JdC56.d.ts.map} +1 -1
- package/dist/{store-otlp-CDYWW_8N.js → store-otlp-C_Rq5I4D.js} +2 -2
- package/dist/{store-otlp-CDYWW_8N.js.map → store-otlp-C_Rq5I4D.js.map} +1 -1
- package/dist/{store-tool-spans-Br2_IUhm.d.ts → store-tool-spans-DPUG7UUY.d.ts} +6 -6
- package/dist/{store-tool-spans-Br2_IUhm.d.ts.map → store-tool-spans-DPUG7UUY.d.ts.map} +1 -1
- package/dist/{store-tool-spans-CykkbOlv.js → store-tool-spans-Dlh9vkFK.js} +3 -3
- package/dist/{store-tool-spans-CykkbOlv.js.map → store-tool-spans-Dlh9vkFK.js.map} +1 -1
- package/dist/storyboard/index.d.ts +1 -1
- package/dist/{summary-report-Blysd6Z2.js → summary-report-BI5hUtvK.js} +7 -17
- package/dist/summary-report-BI5hUtvK.js.map +1 -0
- package/dist/{summary-report-B__Y5ub3.d.ts → summary-report-CC07PhEL.d.ts} +6 -5
- package/dist/summary-report-CC07PhEL.d.ts.map +1 -0
- package/dist/supervisor-run/index.d.ts +27 -18
- package/dist/supervisor-run/index.d.ts.map +1 -1
- package/dist/supervisor-run/index.js +104 -26
- package/dist/supervisor-run/index.js.map +1 -1
- package/dist/{task-failure-attributes--ZTP3tYO.js → task-failure-attributes-DTl-7-Kw.js} +3 -3
- package/dist/{task-failure-attributes--ZTP3tYO.js.map → task-failure-attributes-DTl-7-Kw.js.map} +1 -1
- package/dist/{tool-groups-B4tqh8jB.d.ts → tool-groups-Ci8i9ErB.d.ts} +3 -3
- package/dist/tool-groups-Ci8i9ErB.d.ts.map +1 -0
- package/dist/{tool-waste-BDdBZG1F.js → tool-waste-BqzmVdJk.js} +4 -4
- package/dist/{tool-waste-BDdBZG1F.js.map → tool-waste-BqzmVdJk.js.map} +1 -1
- package/dist/{tool-waste-DjRDEsuI.d.ts → tool-waste-Dro0gJi3.d.ts} +4 -4
- package/dist/{tool-waste-DjRDEsuI.d.ts.map → tool-waste-Dro0gJi3.d.ts.map} +1 -1
- package/dist/trace-repair/index.d.ts +4 -77
- package/dist/trace-repair/index.d.ts.map +1 -1
- package/dist/trace-repair/index.js +5 -15
- package/dist/trace-repair/index.js.map +1 -1
- package/dist/traces.d.ts +13 -23
- package/dist/traces.d.ts.map +1 -1
- package/dist/traces.js +9 -20
- package/dist/traces.js.map +1 -1
- package/dist/{trajectory-YC15QDYQ.d.ts → trajectory-Bi157Gun.d.ts} +3 -3
- package/dist/{trajectory-YC15QDYQ.d.ts.map → trajectory-Bi157Gun.d.ts.map} +1 -1
- package/dist/trajectory-replay/index.d.ts +5 -5
- package/dist/trajectory-replay/index.js +5 -5
- package/dist/{provenance-oA4-zUqm.d.ts → transient-failure-DKF5Mofa.d.ts} +468 -13
- package/dist/transient-failure-DKF5Mofa.d.ts.map +1 -0
- package/dist/types-B3jzCp0p.js.map +1 -1
- package/dist/{types-CLAwnY-L.d.ts → types-BPb2Kf_C2.d.ts} +3 -3
- package/dist/types-BPb2Kf_C2.d.ts.map +1 -0
- package/dist/types-Bfk0uxRj.d.ts +443 -0
- package/dist/types-Bfk0uxRj.d.ts.map +1 -0
- package/dist/{types-DdFNuyxQ.d.ts → types-D4s7Z6nq.d.ts} +30 -6
- package/dist/types-D4s7Z6nq.d.ts.map +1 -0
- package/dist/{types-B2NsbrNy.d.ts → types-D9ssmxKL.d.ts} +3 -3
- package/dist/{types-B2NsbrNy.d.ts.map → types-D9ssmxKL.d.ts.map} +1 -1
- package/dist/{types-yLK8gXE9.d.ts → types-DeIUdzNd.d.ts} +160 -10
- package/dist/types-DeIUdzNd.d.ts.map +1 -0
- package/dist/{verdict-BndeTAh_.js → verdict-B0xltqu6.js} +2 -2
- package/dist/{verdict-BndeTAh_.js.map → verdict-B0xltqu6.js.map} +1 -1
- package/dist/verdict-cache-CdVVTVmn.js +88 -0
- package/dist/verdict-cache-CdVVTVmn.js.map +1 -0
- package/dist/wire/index.d.ts +21 -111
- package/dist/wire/index.d.ts.map +1 -1
- package/dist/wire/index.js +2 -2
- package/docs/adapters-observability.md +9 -23
- package/docs/building-doctrine.md +3 -3
- package/docs/campaign-proposers.md +54 -15
- package/docs/concepts.md +3 -4
- package/docs/design/statistics-decisions.md +89 -1
- package/docs/eval-surface-map.md +14 -0
- package/docs/experiment.md +19 -2
- package/docs/feedback-trajectories.md +1 -1
- package/docs/multishot-golden-records.md +4 -4
- package/docs/public-api.md +1616 -0
- package/docs/research-report-methodology.md +1 -1
- package/docs/search-history-receipts.md +39 -1
- package/docs/trace-analysis.md +1 -1
- package/docs/trace-repair-admission.md +1 -1
- package/docs/trace-repair-continuation.md +1 -1
- package/docs/verdicts.md +24 -0
- package/docs/wire-protocol.md +1 -1
- package/package.json +6 -2
- package/dist/active-curriculum-C4mk67HP.js.map +0 -1
- package/dist/agent-profile-cell-BkcRDikH.d.ts.map +0 -1
- package/dist/backend-integrity-DOCa_QrR.d.ts.map +0 -1
- package/dist/benchmark-command-CAFwbH0L.js.map +0 -1
- package/dist/campaign-CN_7xJdV.js.map +0 -1
- package/dist/canonical-D-XsTQ6_.js.map +0 -1
- package/dist/client-LIuo-KPv.js.map +0 -1
- package/dist/define-agent-eval-CEQWL9Hy.d.ts.map +0 -1
- package/dist/define-agent-eval-rqNyVhVV.js.map +0 -1
- package/dist/descriptive-B5MwKfbf.js.map +0 -1
- package/dist/dspy-rlm-engine-DHI0WrUU.js.map +0 -1
- package/dist/emitter-CPBAhxum.js.map +0 -1
- package/dist/eval-campaign-C4jmuM-b.js.map +0 -1
- package/dist/exec-y-DCLqK7.js.map +0 -1
- package/dist/exporters-q9iL-2Jf.js.map +0 -1
- package/dist/external-optimizer-subprocess-Dn90UqN2.js.map +0 -1
- package/dist/index-B8Ui1mr1.d.ts.map +0 -1
- package/dist/index-BNPtkBPf.d.ts.map +0 -1
- package/dist/index-C1ravkGA.d.ts +0 -1
- package/dist/index-CTKpu9ry.d.ts.map +0 -1
- package/dist/index-IQccV3Ou.d.ts.map +0 -1
- package/dist/integrity-DysDBWDu.js.map +0 -1
- package/dist/kind-factory-DmAa0h3K.js.map +0 -1
- package/dist/llm-client-Bg32RW0j.js.map +0 -1
- package/dist/llm-judge-CVq33oz1.js.map +0 -1
- package/dist/matrix-DrVnRp4G.d.ts.map +0 -1
- package/dist/pre-registration-DakwTRXk.js +0 -96
- package/dist/pre-registration-DakwTRXk.js.map +0 -1
- package/dist/pre-registration-zFSLEiFU.d.ts.map +0 -1
- package/dist/produced-state-jfk8Du3b.js.map +0 -1
- package/dist/provenance-oA4-zUqm.d.ts.map +0 -1
- package/dist/query-CJ_DX8vl.d.ts.map +0 -1
- package/dist/query-Di7eEQ79.js.map +0 -1
- package/dist/release-confidence-4XrqlpFD.d.ts.map +0 -1
- package/dist/release-confidence-BknrpBnO.js.map +0 -1
- package/dist/researcher-DJnoUE8c.d.ts.map +0 -1
- package/dist/rubric-predictive-validity-C7LnNvF2.d.ts.map +0 -1
- package/dist/rubric-predictive-validity-Cwwyd7ah.js.map +0 -1
- package/dist/schema-C6DW4ZHR.js.map +0 -1
- package/dist/schema-Cef2cFmb.d.ts.map +0 -1
- package/dist/semantic-concept-judge-laMCnTLn.js.map +0 -1
- package/dist/sequential-C458DXNf.js.map +0 -1
- package/dist/sequential-eprocess-CbUt2htw.js.map +0 -1
- package/dist/server-dIWwF3j_.js.map +0 -1
- package/dist/skillopt-optimization-method-DLeUcK-K.js.map +0 -1
- package/dist/statistical-heldout-_woZ9q9j.d.ts.map +0 -1
- package/dist/steps-AmkT-GIM.d.ts.map +0 -1
- package/dist/summary-report-B__Y5ub3.d.ts.map +0 -1
- package/dist/summary-report-Blysd6Z2.js.map +0 -1
- package/dist/tool-groups-B4tqh8jB.d.ts.map +0 -1
- package/dist/types-CLAwnY-L.d.ts.map +0 -1
- package/dist/types-DdFNuyxQ.d.ts.map +0 -1
- package/dist/types-jUBXJ7Iz.d.ts +0 -884
- package/dist/types-jUBXJ7Iz.d.ts.map +0 -1
- package/dist/types-yLK8gXE9.d.ts.map +0 -1
- package/dist/verdict-cache-mZf5FEiY.js +0 -107
- package/dist/verdict-cache-mZf5FEiY.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,56 +1,58 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
|
|
2
2
|
import { i as JudgeError, o as NotFoundError, r as ConfigError, s as ValidationError, t as AgentEvalError } from "./errors-Dngq5h35.js";
|
|
3
|
-
import { r as
|
|
4
|
-
import { a as CODING_HARNESSES, c as agentProfileId, d as harnessAxisOf, i as verifyCompletion, l as agentProfileModelId, n as completionVerdict, o as HARNESS_NATIVE_MODEL, r as createLlmCorrectnessChecker, s as agentProfileHash, t as extractProducedState, u as expandProfileAxes } from "./produced-state-
|
|
3
|
+
import { r as canonicalString } from "./canonical-IL-Bu-14.js";
|
|
4
|
+
import { a as CODING_HARNESSES, c as agentProfileId, d as harnessAxisOf, i as verifyCompletion, l as agentProfileModelId, n as completionVerdict, o as HARNESS_NATIVE_MODEL, r as createLlmCorrectnessChecker, s as agentProfileHash, t as extractProducedState, u as expandProfileAxes } from "./produced-state-DZ89riy5.js";
|
|
5
|
+
import { n as hashJson, r as manifestContentDigest } from "./pre-registration-KN9jkh58.js";
|
|
5
6
|
import { AGENT_PROFILE_KINDS, agentProfileCellHashMaterial, agentProfileCellKey, buildAgentProfileCell, groupRunsByAgentProfileCell, toAgentProfileJson, verifyAgentProfileCell } from "./profile-cell.js";
|
|
6
7
|
import { c as mulberry32 } from "./internal-BDHPCnjk.js";
|
|
7
|
-
import { a as spearmanR, i as ranks, n as partialCredit, o as
|
|
8
|
-
import { i as verbosityBias, n as calibrateJudgeContinuous, r as continuousAgreement, t as calibrateJudge } from "./judge-calibration-
|
|
9
|
-
import { a as budgetBreachView, c as corpusInterRaterAgreementFromJudgeScores, i as failureClusterView, l as interRaterReliability, n as computeToolUseMetrics, o as classifyFailure, r as judgeAgreementView, s as corpusInterRaterAgreement, t as toolWasteView } from "./tool-waste-
|
|
8
|
+
import { a as spearmanR, c as weightedMean, i as ranks, n as partialCredit, o as summarizeNumberSeries, r as pearsonR, s as weightedComposite, t as confidenceInterval } from "./descriptive-jDOuI6mz.js";
|
|
9
|
+
import { i as verbosityBias, n as calibrateJudgeContinuous, r as continuousAgreement, t as calibrateJudge } from "./judge-calibration-zZjLz8hr.js";
|
|
10
|
+
import { a as budgetBreachView, c as corpusInterRaterAgreementFromJudgeScores, i as failureClusterView, l as interRaterReliability, n as computeToolUseMetrics, o as classifyFailure, r as judgeAgreementView, s as corpusInterRaterAgreement, t as toolWasteView } from "./tool-waste-BqzmVdJk.js";
|
|
10
11
|
import { i as pairedCohensDz, n as cohensD, r as interpretCliffs, t as cliffsDelta } from "./effect-sizes-DiH8MGOH.js";
|
|
11
12
|
import { a as requiredSampleSize, c as holm, i as requiredPairedSampleSize, n as mcnemarRequiredN, o as benjaminiHochberg, r as pairedMde, s as bonferroni, t as mcnemarPower } from "./power-and-mde-CHIrXJll.js";
|
|
12
13
|
import { _ as passAtK, a as MANN_WHITNEY_EXACT_MAX_STATES, c as mannWhitneyU, d as isBinaryOutcomeVector, f as mcnemar, g as pairedRiskDifferenceScore, h as pairedRiskDifferenceExact, i as DEFAULT_PERMUTATIONS, l as wilcoxonSignedRank, m as pairedRiskDifference, n as pairArms, o as MANN_WHITNEY_EXACT_MAX_WORK, p as pairedBinaryScale, r as pairRunRecords, s as WILCOXON_EXACT_MAX_N, t as comparePairedArms, v as wilson } from "./paired-arms-D-XRF_fy.js";
|
|
13
14
|
import { a as pairedSignTest, i as pairedDeltaTieFraction, n as DECISION_PAIRED_DELTA_STATISTIC, o as pairedTTest, r as pairedBootstrap, t as BOOTSTRAP_GATE_MIN_N } from "./paired-tests-BHIhYVdu.js";
|
|
14
|
-
import { t as eProcess } from "./sequential-eprocess-
|
|
15
|
+
import { t as eProcess } from "./sequential-eprocess-D1jKoihe.js";
|
|
15
16
|
import { n as iqr, r as welchsTTest } from "./baseline-BhPRQBVn.js";
|
|
16
|
-
import {
|
|
17
|
-
import { a as judgeSpans, c as runsForScenario, n as argHash } from "./query-
|
|
18
|
-
import { i as analyzeRuns, o as checkCanaries, r as selfImprove, t as defineAgentEval } from "./define-agent-eval-
|
|
17
|
+
import { a as isToolSpan, i as isLlmSpan, r as isJudgeSpan, t as FAILURE_CLASSES } from "./schema-k6ZBftVv.js";
|
|
18
|
+
import { a as judgeSpans, c as runsForScenario, n as argHash } from "./query-CHmMP42p.js";
|
|
19
|
+
import { i as analyzeRuns, o as checkCanaries, r as selfImprove, t as defineAgentEval } from "./define-agent-eval-h-s-sI-v.js";
|
|
19
20
|
import { r as observedSplitScore, t as isRealnessGated } from "./reward-nw2xZGZG.js";
|
|
20
|
-
import { a as parseRunRecordSafe, c as validateRunRecord, i as modelHasSnapshot, n as UNKNOWN_MODEL, o as roundTripRunRecord, r as isRunRecord, s as runTaskScore, t as RunRecordValidationError } from "./run-record-
|
|
21
|
-
import { a as summaryTable, n as gainHistogram, r as paretoChart } from "./summary-report-
|
|
22
|
-
import { n as contentHash, r as fileVerdictCache, t as canonicalJson } from "./verdict-cache-
|
|
23
|
-
import {
|
|
21
|
+
import { a as parseRunRecordSafe, c as validateRunRecord, i as modelHasSnapshot, n as UNKNOWN_MODEL, o as roundTripRunRecord, r as isRunRecord, s as runTaskScore, t as RunRecordValidationError } from "./run-record-BC0ebuRP.js";
|
|
22
|
+
import { a as summaryTable, n as gainHistogram, r as paretoChart } from "./summary-report-BI5hUtvK.js";
|
|
23
|
+
import { n as contentHash, r as fileVerdictCache, t as canonicalJson } from "./verdict-cache-CdVVTVmn.js";
|
|
24
|
+
import { $ as scoreRedTeamOutput, G as parseReflectionResponse, N as surfaceContentHash, Q as redTeamReport, W as buildReflectionPrompt, X as DEFAULT_RED_TEAM_CORPUS, Z as redTeamDataset, b as dominates, ct as summarizeBackendIntegrity, et as runCanaries, i as transientDispatchFailure, nt as runCampaign, ot as BackendIntegrityError, st as assertRealBackend, t as llmJudge, x as paretoFrontier } from "./llm-judge-BhasIPFT.js";
|
|
24
25
|
import { a as resolveModelPricing, i as isModelPriced, n as estimateCost, r as estimateTokens, t as MODEL_PRICING } from "./metrics-Qv-cpptD.js";
|
|
25
26
|
import { a as CostLedgerPersistenceError, c as costForTokenPricing, i as CostLedger, l as costForUsage, n as CostCallConflictError, o as CostReceiptCaptureError, r as CostCeilingReachedError, s as CostReservationExceededError, t as CostAccountingIncompleteError, u as modelPriceKey } from "./cost-ledger-B1qx30B4.js";
|
|
26
27
|
import { n as REDACTION_VERSION, r as redactString, t as DEFAULT_REDACTION_RULES } from "./redact-7Aq1ukl-.js";
|
|
27
28
|
import { c as pairedDecisionShape, l as minimumPairsForPairedDeltaTest, s as decidePairedPromotion, u as pairedDeltaTest } from "./power-preflight-DEw-uC7q.js";
|
|
28
29
|
import { n as clamp01, t as aggregateRunScore } from "./run-score-lDzV0X8j.js";
|
|
29
30
|
import { n as makeFinding, r as makeProposalFinding, t as computeFindingId } from "./types-BI4fT3HN.js";
|
|
30
|
-
import { n as equivalenceVerdict, t as certificationEvidenceDigest } from "./verdict-
|
|
31
|
-
import { t as TraceEmitter } from "./emitter-
|
|
31
|
+
import { n as equivalenceVerdict, t as certificationEvidenceDigest } from "./verdict-B0xltqu6.js";
|
|
32
|
+
import { t as TraceEmitter } from "./emitter-BpYFQPj4.js";
|
|
32
33
|
import { t as buildTrajectory } from "./trajectory-D_7rLrvE.js";
|
|
33
|
-
import { t as runCounterfactual } from "./counterfactual-
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
34
|
+
import { t as runCounterfactual } from "./counterfactual-D_VWavVm.js";
|
|
35
|
+
import { c as createBoundedTraceAnalysisStore, f as DEFAULT_TRACE_ANALYST_BUDGETS, p as TRACE_ANALYST_TRUNCATION_MARKER_PREFIX, t as createTraceAnalyst } from "./kind-factory-DY8FdoXf.js";
|
|
36
|
+
import { _ as assertUniqueFindingIds, a as DEFAULT_TRACE_ANALYST_KINDS, b as snapshotAnalystRun, g as analystRunDigest, h as analystFindingDigest, l as FAILURE_MODE_KIND_SPEC, n as buildDefaultAnalystRegistry, r as AnalystRegistry, t as createChatClient, v as completedAnalystReviewQuality, x as validateAnalystReviewDecisions, y as readAnalystReview } from "./chat-client-DlMlAeYI.js";
|
|
36
37
|
import { OUTPUT_VALUE } from "./trace-attributes.js";
|
|
37
38
|
import { r as extractUsageFromSse, t as extractUsage } from "./extract-usage-BrQ8mCLX.js";
|
|
38
39
|
import { n as InMemoryRawProviderSink, r as NoopRawProviderSink, t as FileSystemRawProviderSink } from "./raw-provider-sink-BQd7mzyT.js";
|
|
39
|
-
import { S as captureFetchToRawSink, d as inferDomainKeywords, h as analyzeTraces, l as describeTraceInsightScope, m as tokenizeDomainWords, n as toolSpansToTraceAnalysisStore, o as buildTraceInsightContext, p as scoreTraceInsightReadiness, s as buildTraceInsightPrompt, u as domainEvidencePattern, y as exportRunAsOtlp } from "./store-tool-spans-
|
|
40
|
+
import { S as captureFetchToRawSink, d as inferDomainKeywords, h as analyzeTraces, l as describeTraceInsightScope, m as tokenizeDomainWords, n as toolSpansToTraceAnalysisStore, o as buildTraceInsightContext, p as scoreTraceInsightReadiness, s as buildTraceInsightPrompt, u as domainEvidencePattern, y as exportRunAsOtlp } from "./store-tool-spans-Dlh9vkFK.js";
|
|
40
41
|
import { n as assertRunCaptured, t as RunIntegrityError } from "./integrity-Cy9WHAtb.js";
|
|
41
42
|
import { n as InMemoryTraceStore, t as FileSystemTraceStore } from "./store-DNe_Uv1Q.js";
|
|
42
43
|
import { t as packageVersion$1 } from "./package-version-D7lQHt_-.js";
|
|
43
|
-
import {
|
|
44
|
-
import { t as runEvalCampaign } from "./eval-campaign-C4jmuM-b.js";
|
|
44
|
+
import { t as runEvalCampaign } from "./eval-campaign-BsXWL2-2.js";
|
|
45
45
|
import { i as improvementVerdict, n as computeExperimentStats } from "./experiment-tracker-Ym6rEQT1.js";
|
|
46
|
-
import "./rollout-
|
|
47
|
-
import { t as mintRolloutRows } from "./mint-
|
|
46
|
+
import "./rollout-Dm2tSdiQ.js";
|
|
47
|
+
import { t as mintRolloutRows } from "./mint-DfODW1KW.js";
|
|
48
48
|
import { n as pairedEvalueSequence, t as evaluateInterimReleaseConfidence } from "./sequential-CzK5DarL.js";
|
|
49
|
-
import { t as
|
|
50
|
-
import {
|
|
49
|
+
import { S as judgeFamily, _ as assertServedModels, b as CrossFamilyError, d as stripFencedJson, f as ModelSubstitutionError, h as assertServedModel, i as backoffMs, l as isTransientLlmError, m as assertCrossFamilyServed, o as costReceiptFromLlm, p as ServedCrossFamilyError, r as LlmResponseError, s as costReceiptFromLlmError, t as LlmCallError, u as maximumChargeForLlmRequest, v as checkServedModel, x as assertCrossFamily, y as servedModelAcceptable } from "./llm-client-hgDieDNN.js";
|
|
50
|
+
import { t as createDspyRlmTraceEngine } from "./dspy-rlm-engine-DptEII26.js";
|
|
51
|
+
import { a as diffFindings, n as runSemanticConceptJudge, r as FindingsStore, t as SEMANTIC_CONCEPT_JUDGE_VERSION } from "./semantic-concept-judge-BSkKKHeq.js";
|
|
51
52
|
import { t as analyzeSeries } from "./series-convergence-CjO2QdRW.js";
|
|
52
|
-
import { i as otlpTextToTraceAnalysisStore, n as OtlpFileTraceStore } from "./store-otlp-
|
|
53
|
-
import {
|
|
53
|
+
import { i as otlpTextToTraceAnalysisStore, n as OtlpFileTraceStore } from "./store-otlp-C_Rq5I4D.js";
|
|
54
|
+
import { t as paidJsonChat } from "./chat-json-call-6g5sJobJ.js";
|
|
55
|
+
import { n as evaluateReleaseConfidence, r as bootstrapCi } from "./release-confidence-DKfD2RYU.js";
|
|
54
56
|
import { createHash } from "node:crypto";
|
|
55
57
|
import { accessSync, appendFileSync, constants, cpSync, existsSync, mkdirSync, promises, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
56
58
|
import { basename, delimiter, dirname, extname, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -2728,22 +2730,16 @@ function fingerprintAction(action, policies) {
|
|
|
2728
2730
|
if (policies?.actionFingerprint) return policies.actionFingerprint(action);
|
|
2729
2731
|
return stableFingerprint(action);
|
|
2730
2732
|
}
|
|
2733
|
+
/** Default state/action fingerprint: the value itself for a string, `String(value)`
|
|
2734
|
+
* for a number, boolean, null or undefined, and RFC 8785 canonical JSON for
|
|
2735
|
+
* everything else. A value with no canonical JSON form (an `undefined`-valued
|
|
2736
|
+
* field, a non-finite number, a class instance) throws: two states that differ
|
|
2737
|
+
* in such a field must not fingerprint alike, and a caller with such state
|
|
2738
|
+
* supplies `stopPolicies.stateFingerprint` / `actionFingerprint`. */
|
|
2731
2739
|
function stableFingerprint(value) {
|
|
2732
2740
|
if (typeof value === "string") return value;
|
|
2733
2741
|
if (typeof value === "number" || typeof value === "boolean" || value == null) return String(value);
|
|
2734
|
-
|
|
2735
|
-
return JSON.stringify(sortForFingerprint(value));
|
|
2736
|
-
} catch {
|
|
2737
|
-
return String(value);
|
|
2738
|
-
}
|
|
2739
|
-
}
|
|
2740
|
-
function sortForFingerprint(value) {
|
|
2741
|
-
if (Array.isArray(value)) return value.map(sortForFingerprint);
|
|
2742
|
-
if (!value || typeof value !== "object") return value;
|
|
2743
|
-
const record = value;
|
|
2744
|
-
const sorted = {};
|
|
2745
|
-
for (const key of Object.keys(record).sort()) sorted[key] = sortForFingerprint(record[key]);
|
|
2746
|
-
return sorted;
|
|
2742
|
+
return canonicalString(value);
|
|
2747
2743
|
}
|
|
2748
2744
|
function abortReason(signal) {
|
|
2749
2745
|
const reason = signal.reason;
|
|
@@ -5638,9 +5634,9 @@ function clampUnit(value) {
|
|
|
5638
5634
|
* SAME backend config, so the judge can't silently re-route through a
|
|
5639
5635
|
* different (often paid) backend than the agent.
|
|
5640
5636
|
*
|
|
5641
|
-
* The bug class:
|
|
5642
|
-
*
|
|
5643
|
-
*
|
|
5637
|
+
* The bug class: a consumer rewires the agent onto one backend but leaves the
|
|
5638
|
+
* judge bound to another. Cost is billed against the second backend, the eval
|
|
5639
|
+
* reports the first backend's model, and the data is unusable.
|
|
5644
5640
|
* Four consumers hand-roll this comparison (legal at `canonical.ts:702-795`);
|
|
5645
5641
|
* this is the one substrate copy.
|
|
5646
5642
|
*
|
|
@@ -5656,7 +5652,7 @@ var SingleBackendError = class extends AgentEvalError {
|
|
|
5656
5652
|
this.name = "SingleBackendError";
|
|
5657
5653
|
}
|
|
5658
5654
|
};
|
|
5659
|
-
function stripSlash
|
|
5655
|
+
function stripSlash(url) {
|
|
5660
5656
|
return url.replace(/\/+$/, "");
|
|
5661
5657
|
}
|
|
5662
5658
|
/**
|
|
@@ -5671,7 +5667,7 @@ function assertSingleBackend(agent, judge, opts = {}) {
|
|
|
5671
5667
|
agent: agent.kind,
|
|
5672
5668
|
judge: judge.kind
|
|
5673
5669
|
});
|
|
5674
|
-
if (stripSlash
|
|
5670
|
+
if (stripSlash(agent.baseUrl) !== stripSlash(judge.baseUrl)) divergences.push({
|
|
5675
5671
|
field: "baseUrl",
|
|
5676
5672
|
agent: agent.baseUrl,
|
|
5677
5673
|
judge: judge.baseUrl
|
|
@@ -5708,30 +5704,6 @@ function assertSingleBackend(agent, judge, opts = {}) {
|
|
|
5708
5704
|
}
|
|
5709
5705
|
//#endregion
|
|
5710
5706
|
//#region src/intent-match-judge.ts
|
|
5711
|
-
/**
|
|
5712
|
-
* Intent-match judge — "did the agent build the right APP, ignoring
|
|
5713
|
-
* whether every feature is wired up?"
|
|
5714
|
-
*
|
|
5715
|
-
* Distinct from {@link runSemanticConceptJudge} which scores per-concept
|
|
5716
|
-
* presence. The semantic judge can return 0/4 concepts present even
|
|
5717
|
-
* when the agent built a thoughtful, polished, on-brief app that just
|
|
5718
|
-
* lacks one or two features. The semantic judge can also return 4/4
|
|
5719
|
-
* present even when the agent shipped the wrong project (keyword-rich
|
|
5720
|
-
* stub).
|
|
5721
|
-
*
|
|
5722
|
-
* Intent-match asks ONE question:
|
|
5723
|
-
* "Looking at the agent's work as a whole — independent of feature
|
|
5724
|
-
* coverage — is this an honest attempt at the user's request?"
|
|
5725
|
-
*
|
|
5726
|
-
* Returns a 0–1 score and a 1-sentence evidence string. Use as a sanity
|
|
5727
|
-
* check on `completenessScore`-style metrics: if intent-match is high
|
|
5728
|
-
* and concept count is low, the agent built the right thing but is
|
|
5729
|
-
* missing features (ship and iterate). If intent-match is low, the
|
|
5730
|
-
* agent built the wrong thing (reject regardless of concept count).
|
|
5731
|
-
*
|
|
5732
|
-
* Soft-fails on LLM/JSON error (`available: false`) so callers can
|
|
5733
|
-
* treat failure as "judge skipped."
|
|
5734
|
-
*/
|
|
5735
5707
|
const INTENT_MATCH_JUDGE_VERSION = "intent-match-judge-v1-2026-04-24";
|
|
5736
5708
|
const DEFAULT_MODEL = "claude-sonnet-4-6";
|
|
5737
5709
|
const DEFAULT_TIMEOUT = 3e5;
|
|
@@ -5802,16 +5774,17 @@ Return STRICT JSON. No prose outside.`;
|
|
|
5802
5774
|
/**
|
|
5803
5775
|
* Run the intent-match judge. Soft-fails to available=false on error.
|
|
5804
5776
|
*/
|
|
5805
|
-
async function runIntentMatchJudge(input, options
|
|
5777
|
+
async function runIntentMatchJudge(input, options) {
|
|
5806
5778
|
const start = Date.now();
|
|
5807
5779
|
const opts = {
|
|
5808
|
-
|
|
5780
|
+
chat: options.chat,
|
|
5781
|
+
model: options.model ?? options.chat.defaultModel ?? DEFAULT_MODEL,
|
|
5809
5782
|
timeoutMs: options.timeoutMs ?? DEFAULT_TIMEOUT,
|
|
5810
5783
|
maxTokens: options.maxTokens ?? DEFAULT_MAX_TOKENS,
|
|
5811
5784
|
maxSourceChars: options.maxSourceChars ?? DEFAULT_MAX_SOURCE,
|
|
5812
5785
|
maxPerFileChars: options.maxPerFileChars ?? DEFAULT_MAX_PER_FILE,
|
|
5813
5786
|
maxHtmlChars: options.maxHtmlChars ?? DEFAULT_MAX_HTML,
|
|
5814
|
-
|
|
5787
|
+
...options.pricing ? { pricing: options.pricing } : {},
|
|
5815
5788
|
costLedger: options.costLedger ?? new CostLedger(),
|
|
5816
5789
|
costPhase: options.costPhase ?? "judge.intent-match",
|
|
5817
5790
|
costTags: options.costTags ?? {},
|
|
@@ -5846,25 +5819,20 @@ async function runIntentMatchJudge(input, options = {}) {
|
|
|
5846
5819
|
maxTokens: opts.maxTokens,
|
|
5847
5820
|
timeoutMs: opts.timeoutMs
|
|
5848
5821
|
};
|
|
5849
|
-
const paid = await
|
|
5822
|
+
const paid = await paidJsonChat({
|
|
5823
|
+
chat: opts.chat,
|
|
5824
|
+
request,
|
|
5825
|
+
ledger: opts.costLedger,
|
|
5850
5826
|
channel: "judge",
|
|
5851
5827
|
phase: opts.costPhase,
|
|
5852
5828
|
actor: "intent-match",
|
|
5853
|
-
|
|
5854
|
-
...Object.keys(opts.costTags).length > 0 ? { tags: opts.costTags } : {},
|
|
5855
|
-
maximumCharge: maximumChargeForLlmRequest(request, opts.llm),
|
|
5829
|
+
tags: opts.costTags,
|
|
5856
5830
|
signal: opts.signal,
|
|
5857
|
-
|
|
5858
|
-
...opts.llm,
|
|
5859
|
-
signal,
|
|
5860
|
-
idempotencyKey: callId
|
|
5861
|
-
}),
|
|
5862
|
-
receipt: ({ result }) => costReceiptFromLlm(result),
|
|
5863
|
-
receiptFromError: costReceiptFromLlmError
|
|
5831
|
+
...opts.pricing ? { pricing: opts.pricing } : {}
|
|
5864
5832
|
});
|
|
5865
5833
|
receipt = paid.receipt;
|
|
5866
5834
|
if (!paid.succeeded) throw paid.error;
|
|
5867
|
-
const { value } = paid
|
|
5835
|
+
const { value } = paid;
|
|
5868
5836
|
const score = Math.max(0, Math.min(1, Number(value?.score ?? 0)));
|
|
5869
5837
|
return {
|
|
5870
5838
|
kind: "intent-match",
|
|
@@ -6972,9 +6940,6 @@ function jsonlRunRecordBackend(path, opts = {}) {
|
|
|
6972
6940
|
* never be scored as a dead id.
|
|
6973
6941
|
*/
|
|
6974
6942
|
const REASONING_BUDGET_EXHAUSTED = /reasoning[\s_-]?budget[\s_-]?exhausted/i;
|
|
6975
|
-
function stripSlash(url) {
|
|
6976
|
-
return url.replace(/\/+$/, "");
|
|
6977
|
-
}
|
|
6978
6943
|
/** Extract `error.message` (then top-level `message`) from a chat-completions error body. */
|
|
6979
6944
|
function errorMessage(body) {
|
|
6980
6945
|
if (body == null || typeof body !== "object") return null;
|
|
@@ -6994,9 +6959,6 @@ function errorMessage(body) {
|
|
|
6994
6959
|
* unconfigured (a 401 `model_not_found` from the router) is caught.
|
|
6995
6960
|
*/
|
|
6996
6961
|
async function preflightModels(opts) {
|
|
6997
|
-
const fetchImpl = opts.fetchImpl ?? fetch;
|
|
6998
|
-
const baseUrl = stripSlash(opts.baseUrl);
|
|
6999
|
-
const authHeaders = { authorization: `Bearer ${opts.apiKey}` };
|
|
7000
6962
|
const maxTokens = opts.probeMaxTokens ?? 64;
|
|
7001
6963
|
if (!Number.isInteger(maxTokens) || maxTokens <= 0) return {
|
|
7002
6964
|
succeeded: false,
|
|
@@ -7005,16 +6967,13 @@ async function preflightModels(opts) {
|
|
|
7005
6967
|
};
|
|
7006
6968
|
let served;
|
|
7007
6969
|
try {
|
|
7008
|
-
const res = await
|
|
7009
|
-
method: "GET",
|
|
7010
|
-
headers: authHeaders
|
|
7011
|
-
});
|
|
6970
|
+
const res = await opts.request({ kind: "list-models" });
|
|
7012
6971
|
if (!res.ok) {
|
|
7013
6972
|
const text = await res.text().catch(() => "");
|
|
7014
6973
|
return {
|
|
7015
6974
|
succeeded: false,
|
|
7016
6975
|
value: null,
|
|
7017
|
-
error: `preflightModels:
|
|
6976
|
+
error: `preflightModels: list-models → ${res.status} ${text.slice(0, 400)}`
|
|
7018
6977
|
};
|
|
7019
6978
|
}
|
|
7020
6979
|
const body = await res.json();
|
|
@@ -7024,7 +6983,7 @@ async function preflightModels(opts) {
|
|
|
7024
6983
|
return {
|
|
7025
6984
|
succeeded: false,
|
|
7026
6985
|
value: null,
|
|
7027
|
-
error: `preflightModels:
|
|
6986
|
+
error: `preflightModels: list-models failed — ${err instanceof Error ? err.message : String(err)}`
|
|
7028
6987
|
};
|
|
7029
6988
|
}
|
|
7030
6989
|
const results = [];
|
|
@@ -7043,20 +7002,10 @@ async function preflightModels(opts) {
|
|
|
7043
7002
|
continue;
|
|
7044
7003
|
}
|
|
7045
7004
|
try {
|
|
7046
|
-
const res = await
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
"content-type": "application/json"
|
|
7051
|
-
},
|
|
7052
|
-
body: JSON.stringify({
|
|
7053
|
-
model,
|
|
7054
|
-
messages: [{
|
|
7055
|
-
role: "user",
|
|
7056
|
-
content: "ping"
|
|
7057
|
-
}],
|
|
7058
|
-
max_tokens: maxTokens
|
|
7059
|
-
})
|
|
7005
|
+
const res = await opts.request({
|
|
7006
|
+
kind: "probe",
|
|
7007
|
+
model,
|
|
7008
|
+
maxOutputTokens: maxTokens
|
|
7060
7009
|
});
|
|
7061
7010
|
let detail = null;
|
|
7062
7011
|
let substitution = null;
|
|
@@ -7083,7 +7032,7 @@ async function preflightModels(opts) {
|
|
|
7083
7032
|
return {
|
|
7084
7033
|
succeeded: false,
|
|
7085
7034
|
value: null,
|
|
7086
|
-
error: `preflightModels: probe
|
|
7035
|
+
error: `preflightModels: probe (model ${model}) failed — ${err instanceof Error ? err.message : String(err)}`
|
|
7087
7036
|
};
|
|
7088
7037
|
}
|
|
7089
7038
|
}
|
|
@@ -7285,6 +7234,6 @@ function rankRows(rows, weights) {
|
|
|
7285
7234
|
})).sort((a, b) => b.mean - a.mean);
|
|
7286
7235
|
}
|
|
7287
7236
|
//#endregion
|
|
7288
|
-
export { AGENT_PROFILE_KINDS, AgentEvalError, AnalystRegistry, BOOTSTRAP_GATE_MIN_N, BackendIntegrityError, BudgetBreachError, BudgetGuard, CODING_HARNESSES, ConfigError, CostAccountingIncompleteError, CostCallConflictError, CostCeilingReachedError, CostLedger, CostLedgerPersistenceError, CostReceiptCaptureError, CostReservationExceededError, CostTracker, CrossFamilyError, DECISION_PAIRED_DELTA_STATISTIC, DEFAULT_PERMUTATIONS, DEFAULT_REDACTION_RULES, DEFAULT_RED_TEAM_CORPUS, DEFAULT_TRACE_ANALYST_BUDGETS, DEFAULT_TRACE_ANALYST_KINDS, ERROR_COUNT_PATTERNS, EquivalenceProtocolError, FAILURE_CLASSES, FAILURE_MODE_KIND_SPEC, FileSystemFeedbackTrajectoryStore, FileSystemRawProviderSink, FileSystemTraceStore, FindingsStore, HARNESS_NATIVE_MODEL, HeldOutGate, InMemoryFeedbackTrajectoryStore, InMemoryRawProviderSink, InMemoryTraceStore, JudgeError, LlmCallError,
|
|
7237
|
+
export { AGENT_PROFILE_KINDS, AgentEvalError, AnalystRegistry, BOOTSTRAP_GATE_MIN_N, BackendIntegrityError, BudgetBreachError, BudgetGuard, CODING_HARNESSES, ConfigError, CostAccountingIncompleteError, CostCallConflictError, CostCeilingReachedError, CostLedger, CostLedgerPersistenceError, CostReceiptCaptureError, CostReservationExceededError, CostTracker, CrossFamilyError, DECISION_PAIRED_DELTA_STATISTIC, DEFAULT_PERMUTATIONS, DEFAULT_REDACTION_RULES, DEFAULT_RED_TEAM_CORPUS, DEFAULT_TRACE_ANALYST_BUDGETS, DEFAULT_TRACE_ANALYST_KINDS, ERROR_COUNT_PATTERNS, EquivalenceProtocolError, FAILURE_CLASSES, FAILURE_MODE_KIND_SPEC, FileSystemFeedbackTrajectoryStore, FileSystemRawProviderSink, FileSystemTraceStore, FindingsStore, HARNESS_NATIVE_MODEL, HeldOutGate, InMemoryFeedbackTrajectoryStore, InMemoryRawProviderSink, InMemoryTraceStore, JudgeError, LlmCallError, LlmResponseError, MANN_WHITNEY_EXACT_MAX_STATES, MANN_WHITNEY_EXACT_MAX_WORK, MODEL_PRICING, ModelSubstitutionError, MultiLayerVerifier, NoopRawProviderSink, NotFoundError, OUTPUT_VALUE, OtlpFileTraceStore, PairwiseSteeringOptimizer, ProductClient, PromptRegistry, REDACTION_VERSION, RunIntegrityError, RunRecordValidationError, SEMANTIC_CONCEPT_JUDGE_VERSION, ServedCrossFamilyError, TRACE_ANALYST_TRUNCATION_MARKER_PREFIX, TraceEmitter, UNKNOWN_MODEL, VERIFICATION_STRATEGIES, VERIFICATION_STRATEGY_SOURCES, ValidationError, WILCOXON_EXACT_MAX_N, acquisitionPlansForKnowledgeGaps, agentProfileCellHashMaterial, agentProfileCellKey, agentProfileHash, agentProfileId, aggregateJudgeVerdicts, aggregateRunScore, analystFindingDigest, analystRunDigest, analystRunToFeedbackTrajectory, analystRunToReviewRequests, analyzeAntiSlop, analyzeRuns, analyzeSeries, analyzeTraces, argHash, assertCapabilityHeadroom, assertCrossFamily, assertCrossFamilyServed, assertNoHiddenLeak, assertProductBenchmarkRun, assertRealBackend, assertRunCaptured, assertServedModel, assertServedModels, assertSingleBackend, assignFeedbackSplit, benjaminiHochberg, blendHeldout, blockingKnowledgeEval, bonferroni, bootstrapCi, budgetBreachView, buildAgentProfileCell, buildDefaultAnalystRegistry, buildEquivalenceRecord, buildReflectionPrompt, buildTraceInsightContext, buildTraceInsightPrompt, buildTrajectory, calibrateJudge, calibrateJudgeContinuous, canonicalJson, capabilityHeadroom, captureFetchToRawSink, certificationEvidenceDigest, checkCanaries, checkServedModel, checkTraceContracts, clamp01, classifyFailure, cliffsDelta, cohensD, comparePairedArms, completionVerdict, computeExperimentStats, computeFindingId, computeToolUseMetrics, confidenceInterval, contentHash, continuousAgreement, controlRunToFeedbackTrajectory, corpusInterRaterAgreement, corpusInterRaterAgreementFromJudgeScores, costForTokenPricing, costForUsage, costReceiptFromLlm, costReceiptFromLlmError, createAntiSlopJudge, createBoundedTraceAnalysisStore, createChatClient, createDspyRlmTraceEngine, createFeedbackTrajectory, createLlmCorrectnessChecker, createLlmReviewer, createTraceAnalyst, decidePairedPromotion, defaultBlendWeights, defineAgentEval, defineEquivalenceCheck, deployGateLayer, describeTraceInsightScope, diffFindings, diffScorecard, discoverPersonas, domainEvidencePattern, dominates, eProcess, ensembleJudge, equivalenceVerdict, errorStreakDetector, estimateCost, estimateTokens, evaluateActionPolicy, evaluateInterimReleaseConfidence, evaluateOracles, evaluateReleaseConfidence, expandProfileAxes, exportProductBenchmark, exportProductBenchmarkRuns, exportRunAsOtlp, extractErrorCount, extractProducedState, extractUsage, extractUsageFromSse, failureClusterView, feedbackTrajectoriesToDatasetScenarios, feedbackTrajectoriesToOptimizerRows, feedbackTrajectoryToOptimizerRow, fileVerdictCache, formatScorecardDiff, gainHistogram, gateTreatmentApplied, gradeOnHidden, gradeSemanticStatus, groupRunsByAgentProfileCell, harnessAxisOf, hashContent, hashJson, hiddenGrade, holm, improvementVerdict, inMemoryReviewStore, inferDomainKeywords, interRaterReliability, interpretCliffs, iqr, isBinaryOutcomeVector, isJudgeSpan, isLlmSpan, isModelPriced, isRunRecord, isToolSpan, isTransientLlmError, jsonShape, jsonlReviewStore, jsonlRunRecordBackend, judgeAgreementView, judgeFamily, judgeSpans, knowledgeReadinessTracePayload, leaderboard, llmJudge, loadScorecard, localCommandRunner, makeFinding, makeProposalFinding, manifestContentDigest, mannWhitneyU, maximumChargeForLlmRequest, mcnemar, mcnemarPower, mcnemarRequiredN, minimumPairsForPairedDeltaTest, mintRolloutRows, modelHasSnapshot, modelPriceKey, mulberry32, notBlocked, objectiveEval, observeAll, otlpTextToTraceAnalysisStore, pairArms, pairRunRecords, pairedBinaryScale, pairedBootstrap, pairedCohensDz, pairedDeltaTest, pairedDeltaTieFraction, pairedEvalueSequence, pairedMde, pairedRiskDifference, pairedRiskDifferenceExact, pairedRiskDifferenceScore, pairedSignTest, pairedTTest, paretoChart, paretoFrontier, parseReflectionResponse, parseRunRecordSafe, partialCredit, partitionHeldOut, passAtK, pearsonR, preflightModels, productBenchmarkRepoIdentity, profile_exports as profile, projectRuntimeTrajectoryEvidence, proposeSynthesisTargets, ranks, readProductBenchmarkManifest, recordRuns, recordRunsToScorecard, redTeamDataset, redTeamReport, redactString, regexMatches, renderPreferenceMemoryMarkdown, repeatedActionDetector, requiredPairedSampleSize, requiredSampleSize, resolveModelPricing, resolveSeat, roundTripRunRecord, routeFields, runAgentControlLoop, runCampaign, runCanaries, runCounterfactual, runEquivalenceCheck, runEvalCampaign, runIntentMatchJudge, runKeywordCoverageJudge, runKeywordCoverageJudgeUrl, runProposeReview, runProposeReviewAsControlLoop, runSemanticConceptJudge, runTaskScore, runsForScenario, scoreKnowledgeReadiness, scoreRedTeamOutput, scoreTraceInsightReadiness, seatPresets, selfImprove, servedModelAcceptable, spearmanR, stripFencedJson, subjectiveEval, summarizeBackendIntegrity, summarizeNumberSeries, summarizePreferenceMemory, summaryTable, textInSnapshot, toAgentProfileJson, tokenizeDomainWords, toolSpansToTraceAnalysisStore, toolWasteView, traceContract, transientDispatchFailure, urlContains, userQuestionsForKnowledgeGaps, validateRunRecord, verbosityBias, verifyAgentProfileCell, verifyCompletion, viteDeployRunner, weightedComposite, weightedMean, wilcoxonSignedRank, wilson, withAssignedFeedbackSplit, withHeldoutBlend, withJudgeRetry, wranglerDeployRunner };
|
|
7289
7238
|
|
|
7290
7239
|
//# sourceMappingURL=index.js.map
|