@tangle-network/agent-eval 0.129.0 → 0.130.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 +14 -0
- package/README.md +1 -0
- package/dist/active-curriculum-C4mk67HP.js +214 -0
- package/dist/active-curriculum-C4mk67HP.js.map +1 -0
- package/dist/adversarial-smnADNFS.d.ts +21 -0
- package/dist/adversarial-smnADNFS.d.ts.map +1 -0
- package/dist/analyst/index.d.ts +81 -2872
- package/dist/analyst/index.d.ts.map +1 -0
- package/dist/analyst/index.js +319 -360
- package/dist/analyst/index.js.map +1 -1
- package/dist/analyst-BkTS3C58.d.ts +89 -0
- package/dist/analyst-BkTS3C58.d.ts.map +1 -0
- package/dist/analyst-LsnNpSkm.js +152 -0
- package/dist/analyst-LsnNpSkm.js.map +1 -0
- package/dist/analyze-runs-C1CavBMk.js +1067 -0
- package/dist/analyze-runs-C1CavBMk.js.map +1 -0
- package/dist/analyze-runs-FsgYCinh.d.ts +72 -0
- package/dist/analyze-runs-FsgYCinh.d.ts.map +1 -0
- package/dist/attribute-vocabulary-DLJ6303h.d.ts +54 -0
- package/dist/attribute-vocabulary-DLJ6303h.d.ts.map +1 -0
- package/dist/authenticity/index.d.ts +81 -79
- package/dist/authenticity/index.d.ts.map +1 -0
- package/dist/authenticity/index.js +209 -193
- package/dist/authenticity/index.js.map +1 -1
- package/dist/baseline-HsBvw_dk.js +550 -0
- package/dist/baseline-HsBvw_dk.js.map +1 -0
- package/dist/baseline-hG3K85h4.d.ts +125 -0
- package/dist/baseline-hG3K85h4.d.ts.map +1 -0
- package/dist/belief-state/index.d.ts +448 -1188
- package/dist/belief-state/index.d.ts.map +1 -0
- package/dist/belief-state/index.js +1617 -1709
- package/dist/belief-state/index.js.map +1 -1
- package/dist/benchmarks/index.d.ts +2 -891
- package/dist/benchmarks/index.js +2 -60
- package/dist/benchmarks-DviOvUNr.js +754 -0
- package/dist/benchmarks-DviOvUNr.js.map +1 -0
- package/dist/builder-eval/index.d.ts +150 -662
- package/dist/builder-eval/index.d.ts.map +1 -0
- package/dist/builder-eval/index.js +356 -345
- package/dist/builder-eval/index.js.map +1 -1
- package/dist/calibration-CNWWA6K8.js +94 -0
- package/dist/calibration-CNWWA6K8.js.map +1 -0
- package/dist/campaign/index.d.ts +5 -6381
- package/dist/campaign/index.js +3 -213
- package/dist/campaign-CBKZvQ1H.js +3885 -0
- package/dist/campaign-CBKZvQ1H.js.map +1 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +164 -175
- package/dist/cli.js.map +1 -1
- package/dist/client-C97NMzqi.d.ts +581 -0
- package/dist/client-C97NMzqi.d.ts.map +1 -0
- package/dist/client-CYzbdJOZ.js +637 -0
- package/dist/client-CYzbdJOZ.js.map +1 -0
- package/dist/code-agent-session-BjkMTQ7H.js +1390 -0
- package/dist/code-agent-session-BjkMTQ7H.js.map +1 -0
- package/dist/code-agent-session-DqqgOJaz.d.ts +143 -0
- package/dist/code-agent-session-DqqgOJaz.d.ts.map +1 -0
- package/dist/concurrency-DIxRZF_J.js +85 -0
- package/dist/concurrency-DIxRZF_J.js.map +1 -0
- package/dist/contract/index.d.ts +645 -5565
- package/dist/contract/index.d.ts.map +1 -0
- package/dist/contract/index.js +1730 -1938
- package/dist/contract/index.js.map +1 -1
- package/dist/control.d.ts +3 -1030
- package/dist/control.js +2 -33
- package/dist/cost-ledger-DIgQUFZZ.js +801 -0
- package/dist/cost-ledger-DIgQUFZZ.js.map +1 -0
- package/dist/cost-ledger-Dye6jCgg.d.ts +236 -0
- package/dist/cost-ledger-Dye6jCgg.d.ts.map +1 -0
- package/dist/dataset-BvtnC8Dc.d.ts +115 -0
- package/dist/dataset-BvtnC8Dc.d.ts.map +1 -0
- package/dist/default-registry-C-vFCSEc.js +2579 -0
- package/dist/default-registry-C-vFCSEc.js.map +1 -0
- package/dist/default-registry-CNPo-Vsb.d.ts +540 -0
- package/dist/default-registry-CNPo-Vsb.d.ts.map +1 -0
- package/dist/emitter-CPBAhxum.js +266 -0
- package/dist/emitter-CPBAhxum.js.map +1 -0
- package/dist/emitter-DGQGoLyj.d.ts +113 -0
- package/dist/emitter-DGQGoLyj.d.ts.map +1 -0
- package/dist/errors-8YnH8WlF.js +64 -0
- package/dist/errors-8YnH8WlF.js.map +1 -0
- package/dist/errors-CEk209JS.d.ts +76 -0
- package/dist/errors-CEk209JS.d.ts.map +1 -0
- package/dist/eval-campaign-DEm6c8ru.js +349 -0
- package/dist/eval-campaign-DEm6c8ru.js.map +1 -0
- package/dist/execution-tracks-CpgFPpS5.js +93 -0
- package/dist/execution-tracks-CpgFPpS5.js.map +1 -0
- package/dist/exporters-q9iL-2Jf.js +148 -0
- package/dist/exporters-q9iL-2Jf.js.map +1 -0
- package/dist/extract-usage-BrQ8mCLX.js +155 -0
- package/dist/extract-usage-BrQ8mCLX.js.map +1 -0
- package/dist/failure-cluster-CqcvCcdR.d.ts +59 -0
- package/dist/failure-cluster-CqcvCcdR.d.ts.map +1 -0
- package/dist/feedback-trajectory-CVaeREXV.d.ts +340 -0
- package/dist/feedback-trajectory-CVaeREXV.d.ts.map +1 -0
- package/dist/fuzz.d.ts +320 -646
- package/dist/fuzz.d.ts.map +1 -0
- package/dist/fuzz.js +670 -618
- package/dist/fuzz.js.map +1 -1
- package/dist/hf-dataset-DBJXXoY1.js +763 -0
- package/dist/hf-dataset-DBJXXoY1.js.map +1 -0
- package/dist/hosted/index.d.ts +11 -831
- package/dist/hosted/index.d.ts.map +1 -0
- package/dist/hosted/index.js +2 -37
- package/dist/index-2JJSA6-r2.d.ts +926 -0
- package/dist/index-2JJSA6-r2.d.ts.map +1 -0
- package/dist/index-6N0aYmpW.d.ts +217 -0
- package/dist/index-6N0aYmpW.d.ts.map +1 -0
- package/dist/index-BAvgST_9.d.ts +131 -0
- package/dist/index-BAvgST_9.d.ts.map +1 -0
- package/dist/index-BvnJuTGD.d.ts +68 -0
- package/dist/index-BvnJuTGD.d.ts.map +1 -0
- package/dist/index-C61Wi7yg.d.ts +547 -0
- package/dist/index-C61Wi7yg.d.ts.map +1 -0
- package/dist/index-CAPUUKaM.d.ts +335 -0
- package/dist/index-CAPUUKaM.d.ts.map +1 -0
- package/dist/index-DE5fb3EC.d.ts +2244 -0
- package/dist/index-DE5fb3EC.d.ts.map +1 -0
- package/dist/index-DSC51roc.d.ts +102 -0
- package/dist/index-DSC51roc.d.ts.map +1 -0
- package/dist/index.d.ts +3755 -15555
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11182 -11216
- package/dist/index.js.map +1 -1
- package/dist/integrity-BzRbCHzi.js +424 -0
- package/dist/integrity-BzRbCHzi.js.map +1 -0
- package/dist/integrity-rmVhXWA7.d.ts +61 -0
- package/dist/integrity-rmVhXWA7.d.ts.map +1 -0
- package/dist/judge-calibration-DFtEMlde.d.ts +146 -0
- package/dist/judge-calibration-DFtEMlde.d.ts.map +1 -0
- package/dist/ledger-core/index.d.ts +2 -0
- package/dist/ledger-core/index.js +2 -0
- package/dist/ledger-core-DtZz1RG0.js +388 -0
- package/dist/ledger-core-DtZz1RG0.js.map +1 -0
- package/dist/llm-client--GR4JbZE.js +687 -0
- package/dist/llm-client--GR4JbZE.js.map +1 -0
- package/dist/llm-client-B_nIBlYo.d.ts +290 -0
- package/dist/llm-client-B_nIBlYo.d.ts.map +1 -0
- package/dist/matrix/index.d.ts +3 -155
- package/dist/matrix/index.js +2 -8
- package/dist/matrix-BzQnu2S6.js +270 -0
- package/dist/matrix-BzQnu2S6.js.map +1 -0
- package/dist/meta-eval/index.d.ts +4 -1027
- package/dist/meta-eval/index.js +393 -390
- package/dist/meta-eval/index.js.map +1 -1
- package/dist/metrics-C9YY1OcL.js +239 -0
- package/dist/metrics-C9YY1OcL.js.map +1 -0
- package/dist/mint-yN2M2eh0.js +201 -0
- package/dist/mint-yN2M2eh0.js.map +1 -0
- package/dist/multi-layer-verifier-BHY1gWAc.d.ts +138 -0
- package/dist/multi-layer-verifier-BHY1gWAc.d.ts.map +1 -0
- package/dist/multishot/index.d.ts +273 -480
- package/dist/multishot/index.d.ts.map +1 -0
- package/dist/multishot/index.js +595 -548
- package/dist/multishot/index.js.map +1 -1
- package/dist/off-policy-DvgzvtIx.js +220 -0
- package/dist/off-policy-DvgzvtIx.js.map +1 -0
- package/dist/off-policy-mskQw8Mb.d.ts +153 -0
- package/dist/off-policy-mskQw8Mb.d.ts.map +1 -0
- package/dist/openapi.json +1 -1
- package/dist/opencode-sqlite-BGrHeDu3.js +318 -0
- package/dist/opencode-sqlite-BGrHeDu3.js.map +1 -0
- package/dist/outcome-store-BYHIuO0e.d.ts +65 -0
- package/dist/outcome-store-BYHIuO0e.d.ts.map +1 -0
- package/dist/outcome-store-ChBKlTd_.js +75 -0
- package/dist/outcome-store-ChBKlTd_.js.map +1 -0
- package/dist/paired-arms-D9D0wXj2.js +260 -0
- package/dist/paired-arms-D9D0wXj2.js.map +1 -0
- package/dist/pipelines/index.d.ts +95 -532
- package/dist/pipelines/index.d.ts.map +1 -0
- package/dist/pipelines/index.js +497 -478
- package/dist/pipelines/index.js.map +1 -1
- package/dist/pre-registration-DakwTRXk.js +96 -0
- package/dist/pre-registration-DakwTRXk.js.map +1 -0
- package/dist/propose-review-control-LhIWGzHl.js +1458 -0
- package/dist/propose-review-control-LhIWGzHl.js.map +1 -0
- package/dist/query-CJ_DX8vl.d.ts +28 -0
- package/dist/query-CJ_DX8vl.d.ts.map +1 -0
- package/dist/query-Di7eEQ79.js +83 -0
- package/dist/query-Di7eEQ79.js.map +1 -0
- package/dist/raw-provider-sink-BQd7mzyT.js +201 -0
- package/dist/raw-provider-sink-BQd7mzyT.js.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/redact-7Aq1ukl-.js +107 -0
- package/dist/redact-7Aq1ukl-.js.map +1 -0
- package/dist/release-report-Cz9NKH39.js +603 -0
- package/dist/release-report-Cz9NKH39.js.map +1 -0
- package/dist/release-report-mvB2G4_J.d.ts +244 -0
- package/dist/release-report-mvB2G4_J.d.ts.map +1 -0
- package/dist/replay-GnyotH0J.js +1741 -0
- package/dist/replay-GnyotH0J.js.map +1 -0
- package/dist/replay-OoidtG1E.d.ts +749 -0
- package/dist/replay-OoidtG1E.d.ts.map +1 -0
- package/dist/reporting.d.ts +6 -1312
- package/dist/reporting.js +6 -51
- package/dist/researcher-CwTdwXG1.d.ts +314 -0
- package/dist/researcher-CwTdwXG1.d.ts.map +1 -0
- package/dist/reward-hacking-eAnOsynk.d.ts +224 -0
- package/dist/reward-hacking-eAnOsynk.d.ts.map +1 -0
- package/dist/reward-hacking-qipEpKvY.js +596 -0
- package/dist/reward-hacking-qipEpKvY.js.map +1 -0
- package/dist/reward-nw2xZGZG.js +137 -0
- package/dist/reward-nw2xZGZG.js.map +1 -0
- package/dist/rl.d.ts +760 -4010
- package/dist/rl.d.ts.map +1 -0
- package/dist/rl.js +2325 -1958
- package/dist/rl.js.map +1 -1
- package/dist/rolldown-runtime-8H4AJuhK.js +14 -0
- package/dist/rollout/index.d.ts +3 -2087
- package/dist/rollout/index.js +8 -168
- package/dist/rollout-BOYjemfR.js +624 -0
- package/dist/rollout-BOYjemfR.js.map +1 -0
- package/dist/rubric-predictive-validity-B3xmbmS1.js +141 -0
- package/dist/rubric-predictive-validity-B3xmbmS1.js.map +1 -0
- package/dist/rubric-predictive-validity-Ku_clp_1.d.ts +74 -0
- package/dist/rubric-predictive-validity-Ku_clp_1.d.ts.map +1 -0
- package/dist/run-evidence-ClRX_8A9.d.ts +225 -0
- package/dist/run-evidence-ClRX_8A9.d.ts.map +1 -0
- package/dist/run-record-BuoE80Dq.js +467 -0
- package/dist/{chunk-56TAVBOK.js.map → run-record-BuoE80Dq.js.map} +1 -1
- package/dist/run-record-CnZu_gjl.d.ts +357 -0
- package/dist/run-record-CnZu_gjl.d.ts.map +1 -0
- package/dist/run-score-iEEAWiBY.js +41 -0
- package/dist/run-score-iEEAWiBY.js.map +1 -0
- package/dist/runtime-trajectory-1gyaTOoC.js +93 -0
- package/dist/runtime-trajectory-1gyaTOoC.js.map +1 -0
- package/dist/runtime-trajectory-BvSZcCHD.d.ts +50 -0
- package/dist/runtime-trajectory-BvSZcCHD.d.ts.map +1 -0
- package/dist/schema-BtVldJ3T.d.ts +206 -0
- package/dist/schema-BtVldJ3T.d.ts.map +1 -0
- package/dist/schema-C6DW4ZHR.js +821 -0
- package/dist/schema-C6DW4ZHR.js.map +1 -0
- package/dist/schema-CRhEY1SO.js +69 -0
- package/dist/schema-CRhEY1SO.js.map +1 -0
- package/dist/schema-Cef2cFmb.d.ts +408 -0
- package/dist/schema-Cef2cFmb.d.ts.map +1 -0
- package/dist/semantic-concept-judge-B6cWNJ2K.js +725 -0
- package/dist/semantic-concept-judge-B6cWNJ2K.js.map +1 -0
- package/dist/sequential-Br0mAPHA.js +148 -0
- package/dist/sequential-Br0mAPHA.js.map +1 -0
- package/dist/sequential-CYwq6Ff_.d.ts +141 -0
- package/dist/sequential-CYwq6Ff_.d.ts.map +1 -0
- package/dist/series-convergence-CjO2QdRW.js +43 -0
- package/dist/series-convergence-CjO2QdRW.js.map +1 -0
- package/dist/series-convergence-ofsqPWhs.d.ts +35 -0
- package/dist/series-convergence-ofsqPWhs.d.ts.map +1 -0
- package/dist/server-m5D9cvnG.js +1040 -0
- package/dist/server-m5D9cvnG.js.map +1 -0
- package/dist/skill-usage-C_pXm7lP.d.ts +534 -0
- package/dist/skill-usage-C_pXm7lP.d.ts.map +1 -0
- package/dist/skillopt-optimization-method-B7wX7XkF.d.ts +1739 -0
- package/dist/skillopt-optimization-method-B7wX7XkF.d.ts.map +1 -0
- package/dist/skillopt-optimization-method-D4ODwFVV.js +7712 -0
- package/dist/skillopt-optimization-method-D4ODwFVV.js.map +1 -0
- package/dist/statistics-Cmj6nynr.d.ts +514 -0
- package/dist/statistics-Cmj6nynr.d.ts.map +1 -0
- package/dist/statistics-CnnxdpOg.js +1437 -0
- package/dist/statistics-CnnxdpOg.js.map +1 -0
- package/dist/store-CT9YIIve.d.ts +117 -0
- package/dist/store-CT9YIIve.d.ts.map +1 -0
- package/dist/store-CxJry_cs.d.ts +229 -0
- package/dist/store-CxJry_cs.d.ts.map +1 -0
- package/dist/storyboard/index.d.ts +84 -203
- package/dist/storyboard/index.d.ts.map +1 -0
- package/dist/storyboard/index.js +609 -542
- package/dist/storyboard/index.js.map +1 -1
- package/dist/summary-report-BNs5nmXI.js +862 -0
- package/dist/summary-report-BNs5nmXI.js.map +1 -0
- package/dist/summary-report-Cj9gdw4i.d.ts +407 -0
- package/dist/summary-report-Cj9gdw4i.d.ts.map +1 -0
- package/dist/supervisor-run/index.d.ts +2 -959
- package/dist/supervisor-run/index.js +2 -65
- package/dist/supervisor-run-_lnTLM3z.js +1679 -0
- package/dist/supervisor-run-_lnTLM3z.js.map +1 -0
- package/dist/task-failure-attributes-CQZlB3et.js +311 -0
- package/dist/task-failure-attributes-CQZlB3et.js.map +1 -0
- package/dist/test-graded-scenario-BsqWLmPt.js +318 -0
- package/dist/test-graded-scenario-BsqWLmPt.js.map +1 -0
- package/dist/test-graded-scenario-D1TaI2va.d.ts +141 -0
- package/dist/test-graded-scenario-D1TaI2va.d.ts.map +1 -0
- package/dist/tools-BmuN627J.js +1085 -0
- package/dist/tools-BmuN627J.js.map +1 -0
- package/dist/trace-attributes.d.ts +2 -52
- package/dist/trace-attributes.js +131 -61
- package/dist/trace-attributes.js.map +1 -1
- package/dist/traces.d.ts +12 -2365
- package/dist/traces.js +12 -252
- package/dist/trajectory-D_7rLrvE.js +56 -0
- package/dist/trajectory-D_7rLrvE.js.map +1 -0
- package/dist/types-DGsxbAEd.d.ts +387 -0
- package/dist/types-DGsxbAEd.d.ts.map +1 -0
- package/dist/types-k9tZGKUg.d.ts +640 -0
- package/dist/types-k9tZGKUg.d.ts.map +1 -0
- package/dist/verdict-Dps8_okt.d.ts +37 -0
- package/dist/verdict-Dps8_okt.d.ts.map +1 -0
- package/dist/wire/index.d.ts +702 -1173
- package/dist/wire/index.d.ts.map +1 -0
- package/dist/wire/index.js +2 -81
- package/package.json +17 -9
- package/dist/benchmarks/index.js.map +0 -1
- package/dist/campaign/index.js.map +0 -1
- package/dist/chunk-2QU3YOPR.js +0 -7374
- package/dist/chunk-2QU3YOPR.js.map +0 -1
- package/dist/chunk-3OCR4R5I.js +0 -728
- package/dist/chunk-3OCR4R5I.js.map +0 -1
- package/dist/chunk-3RF76KTD.js +0 -84
- package/dist/chunk-3RF76KTD.js.map +0 -1
- package/dist/chunk-56TAVBOK.js +0 -698
- package/dist/chunk-5DTSBUL2.js +0 -159
- package/dist/chunk-5DTSBUL2.js.map +0 -1
- package/dist/chunk-7FO3TNPI.js +0 -232
- package/dist/chunk-7FO3TNPI.js.map +0 -1
- package/dist/chunk-7ZZMD7UK.js +0 -386
- package/dist/chunk-7ZZMD7UK.js.map +0 -1
- package/dist/chunk-BOD4O7OF.js +0 -40
- package/dist/chunk-BOD4O7OF.js.map +0 -1
- package/dist/chunk-BSO5JDQH.js +0 -2335
- package/dist/chunk-BSO5JDQH.js.map +0 -1
- package/dist/chunk-C6LXANRU.js +0 -1550
- package/dist/chunk-C6LXANRU.js.map +0 -1
- package/dist/chunk-DODXQREJ.js +0 -752
- package/dist/chunk-DODXQREJ.js.map +0 -1
- package/dist/chunk-DRYIUNWY.js +0 -622
- package/dist/chunk-DRYIUNWY.js.map +0 -1
- package/dist/chunk-E7QXT7SX.js +0 -183
- package/dist/chunk-E7QXT7SX.js.map +0 -1
- package/dist/chunk-EG66UGL4.js +0 -341
- package/dist/chunk-EG66UGL4.js.map +0 -1
- package/dist/chunk-FXTVJPYD.js +0 -576
- package/dist/chunk-FXTVJPYD.js.map +0 -1
- package/dist/chunk-G7MGMCZD.js +0 -153
- package/dist/chunk-G7MGMCZD.js.map +0 -1
- package/dist/chunk-GGE4NNQT.js +0 -65
- package/dist/chunk-GGE4NNQT.js.map +0 -1
- package/dist/chunk-H23X7XKK.js +0 -181
- package/dist/chunk-H23X7XKK.js.map +0 -1
- package/dist/chunk-HHWE3POT.js +0 -94
- package/dist/chunk-HHWE3POT.js.map +0 -1
- package/dist/chunk-HPWUNB47.js +0 -289
- package/dist/chunk-HPWUNB47.js.map +0 -1
- package/dist/chunk-IYCLP2N2.js +0 -766
- package/dist/chunk-IYCLP2N2.js.map +0 -1
- package/dist/chunk-JHCHEVET.js +0 -274
- package/dist/chunk-JHCHEVET.js.map +0 -1
- package/dist/chunk-JQSF5DQT.js +0 -701
- package/dist/chunk-JQSF5DQT.js.map +0 -1
- package/dist/chunk-K4DBDHLK.js +0 -158
- package/dist/chunk-K4DBDHLK.js.map +0 -1
- package/dist/chunk-K6N6XJJX.js +0 -306
- package/dist/chunk-K6N6XJJX.js.map +0 -1
- package/dist/chunk-M4YBQKIJ.js +0 -1040
- package/dist/chunk-M4YBQKIJ.js.map +0 -1
- package/dist/chunk-MA6HLL3S.js +0 -65
- package/dist/chunk-MA6HLL3S.js.map +0 -1
- package/dist/chunk-MAZ26DC7.js +0 -99
- package/dist/chunk-MAZ26DC7.js.map +0 -1
- package/dist/chunk-NPCTHQIO.js +0 -91
- package/dist/chunk-NPCTHQIO.js.map +0 -1
- package/dist/chunk-NY44NC4A.js +0 -1056
- package/dist/chunk-NY44NC4A.js.map +0 -1
- package/dist/chunk-OIUOT4QD.js +0 -44
- package/dist/chunk-OIUOT4QD.js.map +0 -1
- package/dist/chunk-ONWEPEDO.js +0 -57
- package/dist/chunk-ONWEPEDO.js.map +0 -1
- package/dist/chunk-OWN5NPMC.js +0 -152
- package/dist/chunk-OWN5NPMC.js.map +0 -1
- package/dist/chunk-P6FYH6K4.js +0 -1161
- package/dist/chunk-P6FYH6K4.js.map +0 -1
- package/dist/chunk-PC4UYEBM.js +0 -166
- package/dist/chunk-PC4UYEBM.js.map +0 -1
- package/dist/chunk-PC5DOSM7.js +0 -579
- package/dist/chunk-PC5DOSM7.js.map +0 -1
- package/dist/chunk-PXE2VKMX.js +0 -140
- package/dist/chunk-PXE2VKMX.js.map +0 -1
- package/dist/chunk-PZ5AY32C.js +0 -10
- package/dist/chunk-PZ5AY32C.js.map +0 -1
- package/dist/chunk-QB6BDBP2.js +0 -4464
- package/dist/chunk-QB6BDBP2.js.map +0 -1
- package/dist/chunk-RXHCETDZ.js +0 -536
- package/dist/chunk-RXHCETDZ.js.map +0 -1
- package/dist/chunk-RZTMDUO7.js +0 -49
- package/dist/chunk-RZTMDUO7.js.map +0 -1
- package/dist/chunk-SFLLL76A.js +0 -669
- package/dist/chunk-SFLLL76A.js.map +0 -1
- package/dist/chunk-SZLVEKMJ.js +0 -1446
- package/dist/chunk-SZLVEKMJ.js.map +0 -1
- package/dist/chunk-T4SQEITX.js +0 -95
- package/dist/chunk-T4SQEITX.js.map +0 -1
- package/dist/chunk-T6RLYGAD.js +0 -158
- package/dist/chunk-T6RLYGAD.js.map +0 -1
- package/dist/chunk-TJVT4QFF.js +0 -911
- package/dist/chunk-TJVT4QFF.js.map +0 -1
- package/dist/chunk-TQ7LNKZ3.js +0 -136
- package/dist/chunk-TQ7LNKZ3.js.map +0 -1
- package/dist/chunk-U4L7JRPZ.js +0 -1706
- package/dist/chunk-U4L7JRPZ.js.map +0 -1
- package/dist/chunk-U4PHLT2N.js +0 -419
- package/dist/chunk-U4PHLT2N.js.map +0 -1
- package/dist/chunk-VCZ5FQYW.js +0 -928
- package/dist/chunk-VCZ5FQYW.js.map +0 -1
- package/dist/chunk-VI2UW6B6.js +0 -162
- package/dist/chunk-VI2UW6B6.js.map +0 -1
- package/dist/chunk-VQMK5FMP.js +0 -247
- package/dist/chunk-VQMK5FMP.js.map +0 -1
- package/dist/chunk-WGXIEX7P.js +0 -116
- package/dist/chunk-WGXIEX7P.js.map +0 -1
- package/dist/chunk-WVATSFCP.js +0 -1553
- package/dist/chunk-WVATSFCP.js.map +0 -1
- package/dist/chunk-X4YIBDER.js +0 -1662
- package/dist/chunk-X4YIBDER.js.map +0 -1
- package/dist/chunk-YQN4ICPP.js +0 -355
- package/dist/chunk-YQN4ICPP.js.map +0 -1
- package/dist/chunk-ZET2UAYW.js +0 -89
- package/dist/chunk-ZET2UAYW.js.map +0 -1
- package/dist/chunk-ZHTZ4EYI.js +0 -1212
- package/dist/chunk-ZHTZ4EYI.js.map +0 -1
- package/dist/control.js.map +0 -1
- package/dist/hosted/index.js.map +0 -1
- package/dist/matrix/index.js.map +0 -1
- package/dist/reporting.js.map +0 -1
- package/dist/rollout/index.js.map +0 -1
- package/dist/run-campaign-OJJ7CZF4.js +0 -18
- package/dist/run-campaign-OJJ7CZF4.js.map +0 -1
- package/dist/supervisor-run/index.js.map +0 -1
- package/dist/traces.js.map +0 -1
- package/dist/wire/index.js.map +0 -1
|
@@ -1,567 +1,130 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
interface RunOutcome {
|
|
9
|
-
score?: number;
|
|
10
|
-
pass?: boolean;
|
|
11
|
-
failureClass?: FailureClass;
|
|
12
|
-
notes?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Layer — optional classification in a nested build workflow.
|
|
16
|
-
* `builder`: the meta-agent editing a project (e.g. agent-builder Forge chat).
|
|
17
|
-
* `app-build`: sandbox harness that compiled + tested the generated scaffold.
|
|
18
|
-
* `app-runtime`: a run of the generated agent against a domain scenario.
|
|
19
|
-
* `meta`: any meta-eval (judge replay, correlation analysis).
|
|
20
|
-
*/
|
|
21
|
-
type RunLayer = 'builder' | 'app-build' | 'app-runtime' | 'meta' | 'custom';
|
|
22
|
-
interface Run {
|
|
23
|
-
runId: string;
|
|
24
|
-
/**
|
|
25
|
-
* Stable identifier of the scenario being executed.
|
|
26
|
-
*
|
|
27
|
-
* Always populated on the persisted Run — but `TraceEmitter.startRun` accepts
|
|
28
|
-
* input WITHOUT this field, substituting a sensible default
|
|
29
|
-
* (`run.layer ?? run.tags?.['kind'] ?? 'runtime'`) when the caller has no
|
|
30
|
-
* curated scenario to anchor to (runtime / operator / meta-eval runs). This
|
|
31
|
-
* keeps the persisted shape unambiguous for downstream filters + aggregations
|
|
32
|
-
* while removing the boilerplate of inventing placeholder ids at the call site.
|
|
33
|
-
*/
|
|
34
|
-
scenarioId: string;
|
|
35
|
-
variantId?: string;
|
|
36
|
-
datasetVersion?: string;
|
|
37
|
-
/** Git SHA of agent code at run time. */
|
|
38
|
-
codeSha?: string;
|
|
39
|
-
/** Hash of the prompt template + any system prompt. */
|
|
40
|
-
promptSha?: string;
|
|
41
|
-
/** Model id + date + system-prompt hash, concatenated. */
|
|
42
|
-
modelFingerprint?: string;
|
|
43
|
-
seed?: number;
|
|
44
|
-
/** Arbitrary environment markers (shell, docker version, tz). */
|
|
45
|
-
envFingerprint?: Record<string, string>;
|
|
46
|
-
/** Version of the redaction rules applied to this run. */
|
|
47
|
-
redactionVersion?: string;
|
|
48
|
-
/** Parent run in a nested build workflow. A builder run's children are
|
|
49
|
-
* app-build runs; those children are app-runtime runs. */
|
|
50
|
-
parentRunId?: string;
|
|
51
|
-
/** Stable project identifier — groups runs across chats + sessions. */
|
|
52
|
-
projectId?: string;
|
|
53
|
-
/** Chat/conversation identifier within a project. */
|
|
54
|
-
chatId?: string;
|
|
55
|
-
/** Layer classification — hint for aggregation; not enforced. */
|
|
56
|
-
layer?: RunLayer;
|
|
57
|
-
startedAt: number;
|
|
58
|
-
endedAt?: number;
|
|
59
|
-
status: RunStatus;
|
|
60
|
-
outcome?: RunOutcome;
|
|
61
|
-
budget?: BudgetSpec;
|
|
62
|
-
/** Free-form labels for downstream grouping. */
|
|
63
|
-
tags?: Record<string, string>;
|
|
64
|
-
}
|
|
65
|
-
type SpanKind = 'agent' | 'llm' | 'tool' | 'retrieval' | 'judge' | 'sandbox' | 'custom';
|
|
66
|
-
type SpanStatus = 'ok' | 'error';
|
|
67
|
-
interface SpanBase {
|
|
68
|
-
spanId: string;
|
|
69
|
-
parentSpanId?: string;
|
|
70
|
-
runId: string;
|
|
71
|
-
kind: SpanKind;
|
|
72
|
-
name: string;
|
|
73
|
-
startedAt: number;
|
|
74
|
-
endedAt?: number;
|
|
75
|
-
status?: SpanStatus;
|
|
76
|
-
error?: string;
|
|
77
|
-
/** Anything not covered by typed fields. Kept deliberately free-form. */
|
|
78
|
-
attributes?: Record<string, unknown>;
|
|
79
|
-
}
|
|
80
|
-
interface Message {
|
|
81
|
-
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
82
|
-
content: string;
|
|
83
|
-
tokens?: number;
|
|
84
|
-
/** Multi-modal content descriptors; blobs themselves live in Artifacts. */
|
|
85
|
-
images?: Array<{
|
|
86
|
-
artifactId?: string;
|
|
87
|
-
url?: string;
|
|
88
|
-
mime?: string;
|
|
89
|
-
}>;
|
|
90
|
-
}
|
|
91
|
-
interface LlmSpan extends SpanBase {
|
|
92
|
-
kind: 'llm';
|
|
93
|
-
model: string;
|
|
94
|
-
messages: Message[];
|
|
95
|
-
output?: string;
|
|
96
|
-
inputTokens?: number;
|
|
97
|
-
/** All generated tokens, including the reasoning subset when present. */
|
|
98
|
-
outputTokens?: number;
|
|
99
|
-
cachedTokens?: number;
|
|
100
|
-
cacheWriteTokens?: number;
|
|
101
|
-
/** Reasoning-token subset of `outputTokens`. */
|
|
102
|
-
reasoningTokens?: number;
|
|
103
|
-
costUsd?: number;
|
|
104
|
-
finishReason?: string;
|
|
105
|
-
}
|
|
106
|
-
interface ToolSpan extends SpanBase {
|
|
107
|
-
kind: 'tool';
|
|
108
|
-
toolName: string;
|
|
109
|
-
args: unknown;
|
|
110
|
-
/** False when the source observed the call but did not capture its arguments. */
|
|
111
|
-
argsCaptured?: boolean;
|
|
112
|
-
result?: unknown;
|
|
113
|
-
latencyMs?: number;
|
|
114
|
-
}
|
|
115
|
-
interface RetrievalSpan extends SpanBase {
|
|
116
|
-
kind: 'retrieval';
|
|
117
|
-
query: string;
|
|
118
|
-
hits: Array<{
|
|
119
|
-
docId: string;
|
|
120
|
-
score: number;
|
|
121
|
-
content?: string;
|
|
122
|
-
}>;
|
|
123
|
-
}
|
|
124
|
-
interface JudgeSpan extends SpanBase {
|
|
125
|
-
kind: 'judge';
|
|
126
|
-
judgeId: string;
|
|
127
|
-
/** Span this judgment applies to. */
|
|
128
|
-
targetSpanId: string;
|
|
129
|
-
dimension: string;
|
|
130
|
-
/** Numeric score (free-range; interpretation up to the judge). */
|
|
131
|
-
score: number;
|
|
132
|
-
rationale?: string;
|
|
133
|
-
evidence?: string;
|
|
134
|
-
}
|
|
135
|
-
interface SandboxSpan extends SpanBase {
|
|
136
|
-
kind: 'sandbox';
|
|
137
|
-
image?: string;
|
|
138
|
-
command?: string;
|
|
139
|
-
exitCode?: number;
|
|
140
|
-
testsTotal?: number;
|
|
141
|
-
testsPassed?: number;
|
|
142
|
-
stdoutHash?: string;
|
|
143
|
-
stderrHash?: string;
|
|
144
|
-
/** Duration in ms; the harness fills this explicitly (endedAt - startedAt may miss setup). */
|
|
145
|
-
wallMs?: number;
|
|
146
|
-
}
|
|
147
|
-
interface GenericSpan extends SpanBase {
|
|
148
|
-
kind: 'agent' | 'custom';
|
|
149
|
-
}
|
|
150
|
-
type Span = LlmSpan | ToolSpan | RetrievalSpan | JudgeSpan | SandboxSpan | GenericSpan;
|
|
151
|
-
type EventKind = 'log' | 'error' | 'budget_decrement' | 'budget_breach' | 'state_mutation' | 'policy_violation' | 'redaction_applied' | 'custom';
|
|
152
|
-
interface TraceEvent {
|
|
153
|
-
eventId: string;
|
|
154
|
-
runId: string;
|
|
155
|
-
spanId?: string;
|
|
156
|
-
kind: EventKind;
|
|
157
|
-
timestamp: number;
|
|
158
|
-
payload: Record<string, unknown>;
|
|
159
|
-
}
|
|
160
|
-
interface BudgetLedgerEntry {
|
|
161
|
-
runId: string;
|
|
162
|
-
dimension: keyof BudgetSpec;
|
|
163
|
-
limit: number;
|
|
164
|
-
consumed: number;
|
|
165
|
-
remaining: number;
|
|
166
|
-
timestamp: number;
|
|
167
|
-
breached: boolean;
|
|
168
|
-
/** Span that triggered this entry, if any. */
|
|
169
|
-
spanId?: string;
|
|
170
|
-
}
|
|
171
|
-
interface Artifact {
|
|
172
|
-
artifactId: string;
|
|
173
|
-
runId: string;
|
|
174
|
-
spanId?: string;
|
|
175
|
-
contentType: string;
|
|
176
|
-
sizeBytes: number;
|
|
177
|
-
/** sha256 in hex. */
|
|
178
|
-
hash: string;
|
|
179
|
-
/** External storage URL (R2, S3, filesystem path). */
|
|
180
|
-
storageUrl?: string;
|
|
181
|
-
/** Inline content for small blobs — keep under ~64KB. */
|
|
182
|
-
inlineContent?: string;
|
|
183
|
-
}
|
|
184
|
-
type FailureClass = 'success' | 'reasoning_error' | 'tool_selection_error' | 'tool_argument_error' | 'tool_recovery_failure' | 'hallucination' | 'instruction_following' | 'safety_refusal_miss' | 'policy_violation' | 'budget_exceeded' | 'format_drift' | 'permission_escalation' | 'pii_leak' | 'cost_overrun' | 'timeout' | 'sandbox_failure' | 'missing_user_data' | 'missing_domain_data' | 'missing_codebase_context' | 'missing_runtime_context' | 'missing_credentials' | 'missing_integration_connection' | 'missing_integration_scope' | 'integration_approval_required' | 'integration_auth_expired' | 'integration_provider_failure' | 'bad_integration_manifest' | 'unsafe_integration_write_denied' | 'stale_external_data' | 'bad_retrieval' | 'insufficient_evidence' | 'contradictory_evidence' | 'ambiguous_user_intent' | 'knowledge_readiness_blocked' | 'unknown';
|
|
185
|
-
|
|
186
|
-
interface RunFilter {
|
|
187
|
-
scenarioId?: string;
|
|
188
|
-
variantId?: string;
|
|
189
|
-
status?: RunStatus;
|
|
190
|
-
since?: number;
|
|
191
|
-
until?: number;
|
|
192
|
-
tag?: {
|
|
193
|
-
key: string;
|
|
194
|
-
value: string;
|
|
195
|
-
};
|
|
196
|
-
parentRunId?: string;
|
|
197
|
-
projectId?: string;
|
|
198
|
-
chatId?: string;
|
|
199
|
-
layer?: RunLayer;
|
|
200
|
-
}
|
|
201
|
-
interface SpanFilter {
|
|
202
|
-
runId?: string;
|
|
203
|
-
parentSpanId?: string;
|
|
204
|
-
kind?: SpanKind;
|
|
205
|
-
name?: string;
|
|
206
|
-
toolName?: string;
|
|
207
|
-
judgeId?: string;
|
|
208
|
-
since?: number;
|
|
209
|
-
until?: number;
|
|
210
|
-
}
|
|
211
|
-
interface EventFilter {
|
|
212
|
-
runId?: string;
|
|
213
|
-
spanId?: string;
|
|
214
|
-
kind?: EventKind;
|
|
215
|
-
since?: number;
|
|
216
|
-
until?: number;
|
|
217
|
-
}
|
|
218
|
-
interface TraceStore {
|
|
219
|
-
appendRun(run: Run): Promise<void>;
|
|
220
|
-
updateRun(runId: string, patch: Partial<Run>): Promise<void>;
|
|
221
|
-
appendSpan(span: Span): Promise<void>;
|
|
222
|
-
updateSpan(spanId: string, patch: Partial<Span>): Promise<void>;
|
|
223
|
-
appendEvent(event: TraceEvent): Promise<void>;
|
|
224
|
-
appendArtifact(artifact: Artifact): Promise<void>;
|
|
225
|
-
appendBudgetEntry(entry: BudgetLedgerEntry): Promise<void>;
|
|
226
|
-
getRun(runId: string): Promise<Run | undefined>;
|
|
227
|
-
listRuns(filter?: RunFilter): Promise<Run[]>;
|
|
228
|
-
spans(filter?: SpanFilter): Promise<Span[]>;
|
|
229
|
-
events(filter?: EventFilter): Promise<TraceEvent[]>;
|
|
230
|
-
budget(runId: string): Promise<BudgetLedgerEntry[]>;
|
|
231
|
-
artifacts(runId: string): Promise<Artifact[]>;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* BudgetBreachView — aggregates breach events across the corpus.
|
|
236
|
-
*
|
|
237
|
-
* Answers: which dimensions get hit most often? Which scenarios are
|
|
238
|
-
* underbudgeted? Which variants trigger the most breaches?
|
|
239
|
-
*/
|
|
240
|
-
|
|
1
|
+
import { S as ToolSpan, f as Run, r as BudgetSpec } from "../schema-BtVldJ3T.js";
|
|
2
|
+
import { a as RunFilter, s as TraceStore } from "../store-CT9YIIve.js";
|
|
3
|
+
import { o as llmSpans } from "../query-CJ_DX8vl.js";
|
|
4
|
+
import { n as FailureClusterReport, r as failureClusterView, t as FailureCluster } from "../failure-cluster-CqcvCcdR.js";
|
|
5
|
+
import { l as TrajectoryStep, m as computeToolUseMetrics, n as BaselineReport, t as BaselineOptions } from "../baseline-hG3K85h4.js";
|
|
6
|
+
//#region src/pipelines/budget-breach.d.ts
|
|
241
7
|
interface BudgetBreachFinding {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
8
|
+
runId: string;
|
|
9
|
+
scenarioId: string;
|
|
10
|
+
variantId?: string;
|
|
11
|
+
dimension: keyof BudgetSpec;
|
|
12
|
+
limit: number;
|
|
13
|
+
consumed: number;
|
|
14
|
+
excessRatio: number;
|
|
15
|
+
timestamp: number;
|
|
250
16
|
}
|
|
251
17
|
interface BudgetBreachReport {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
18
|
+
findings: BudgetBreachFinding[];
|
|
19
|
+
byDimension: Record<string, number>;
|
|
20
|
+
byScenario: Record<string, number>;
|
|
21
|
+
byVariant: Record<string, number>;
|
|
22
|
+
totalRuns: number;
|
|
23
|
+
breachedRunRatio: number;
|
|
258
24
|
}
|
|
259
25
|
declare function budgetBreachView(store: TraceStore, options?: {
|
|
260
|
-
|
|
261
|
-
|
|
26
|
+
scenarioId?: string;
|
|
27
|
+
variantId?: string;
|
|
262
28
|
}): Promise<BudgetBreachReport>;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
* Failure taxonomy — canonical classes + a default classifier.
|
|
266
|
-
*
|
|
267
|
-
* Every failed run should end up in a named class. The classifier here
|
|
268
|
-
* is rule-based (fast, deterministic); an LLM fallback can be added by
|
|
269
|
-
* the consumer for novel cases and trained into the rule base over time.
|
|
270
|
-
*
|
|
271
|
-
* Consumers call `classifyFailure(run, spans, events)` and persist the
|
|
272
|
-
* returned class as `Run.outcome.failureClass`.
|
|
273
|
-
*/
|
|
274
|
-
|
|
275
|
-
interface FailureContext {
|
|
276
|
-
run: Run;
|
|
277
|
-
spans: Span[];
|
|
278
|
-
events: TraceEvent[];
|
|
279
|
-
}
|
|
280
|
-
/** Ordered rules — first match wins. */
|
|
281
|
-
interface FailureRule {
|
|
282
|
-
id: string;
|
|
283
|
-
match: (ctx: FailureContext) => {
|
|
284
|
-
failureClass: FailureClass;
|
|
285
|
-
reason: string;
|
|
286
|
-
triggerSpanId?: string;
|
|
287
|
-
triggerEventId?: string;
|
|
288
|
-
} | null;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* FailureClusterView — groups failed runs by (failureClass, triggerTool,
|
|
293
|
-
* argHash-prefix) so weekly reviews can prioritize the top-N clusters.
|
|
294
|
-
*
|
|
295
|
-
* Each cluster includes: N runs, scenarios affected, representative
|
|
296
|
-
* error message, a proposed mitigation hint (rule → action table).
|
|
297
|
-
*/
|
|
298
|
-
|
|
299
|
-
interface FailureCluster {
|
|
300
|
-
failureClass: FailureClass;
|
|
301
|
-
/** Tool name when the trigger was a tool span, else undefined. */
|
|
302
|
-
toolName?: string;
|
|
303
|
-
/** First 16 chars of argHash — clusters similar args. */
|
|
304
|
-
argPrefix?: string;
|
|
305
|
-
/**
|
|
306
|
-
* Source dimension when the trigger was a judge span (e.g. `'format'`,
|
|
307
|
-
* `'safety'`, `'correctness'`). Lets cross-template aggregators
|
|
308
|
-
* group failures by the dimension that fired without overloading
|
|
309
|
-
* `argPrefix`. Optional — clusters without this field deserialize cleanly.
|
|
310
|
-
*/
|
|
311
|
-
dimension?: string;
|
|
312
|
-
runCount: number;
|
|
313
|
-
scenarioIds: string[];
|
|
314
|
-
exampleError?: string;
|
|
315
|
-
exampleRunId: string;
|
|
316
|
-
}
|
|
317
|
-
interface FailureClusterReport {
|
|
318
|
-
clusters: FailureCluster[];
|
|
319
|
-
totalFailures: number;
|
|
320
|
-
totalRuns: number;
|
|
321
|
-
}
|
|
322
|
-
declare function failureClusterView(store: TraceStore, options?: {
|
|
323
|
-
rules?: FailureRule[];
|
|
324
|
-
minClusterSize?: number;
|
|
325
|
-
}): Promise<FailureClusterReport>;
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Trajectory — ordered, structured view over a run's spans.
|
|
329
|
-
*
|
|
330
|
-
* A pure function `buildTrajectory(store, runId) → Trajectory` returns
|
|
331
|
-
* a topologically ordered list of `TrajectoryStep` with parent-child
|
|
332
|
-
* grouping collapsed into a single line-of-agent-work. Separate
|
|
333
|
-
* analyzers (stuck-loop detection, waste ratio) live in
|
|
334
|
-
* `pipelines/` and consume the trajectory.
|
|
335
|
-
*/
|
|
336
|
-
|
|
337
|
-
interface TrajectoryStep {
|
|
338
|
-
index: number;
|
|
339
|
-
span: Span;
|
|
340
|
-
/** Depth in the span tree from the root. 0 = top-level. */
|
|
341
|
-
depth: number;
|
|
342
|
-
/** Events attached to this span. */
|
|
343
|
-
events: TraceEvent[];
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* FirstDivergenceView — aligns two trajectories by step index, reports
|
|
348
|
-
* the first step where they differ.
|
|
349
|
-
*
|
|
350
|
-
* "Differ" is configurable — default is (kind, toolName if tool, model
|
|
351
|
-
* if llm). Use this view to attribute "why is variant B better?" to a
|
|
352
|
-
* specific step rather than an aggregate mean delta.
|
|
353
|
-
*/
|
|
354
|
-
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/pipelines/first-divergence.d.ts
|
|
355
31
|
interface DivergenceReport {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
32
|
+
runA: string;
|
|
33
|
+
runB: string;
|
|
34
|
+
firstDivergenceIndex: number | null;
|
|
35
|
+
aStep?: TrajectoryStep;
|
|
36
|
+
bStep?: TrajectoryStep;
|
|
37
|
+
reason?: string;
|
|
38
|
+
/** Common prefix length (steps that matched). */
|
|
39
|
+
commonPrefixLen: number;
|
|
364
40
|
}
|
|
365
41
|
interface DivergenceOptions {
|
|
366
|
-
|
|
367
|
-
|
|
42
|
+
/** Returns true if two steps are considered equal. Default: kind + tool/model match. */
|
|
43
|
+
stepEquals?: (a: TrajectoryStep, b: TrajectoryStep) => boolean;
|
|
368
44
|
}
|
|
369
45
|
declare function firstDivergenceView(store: TraceStore, runA: string, runB: string, options?: DivergenceOptions): Promise<DivergenceReport>;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
* JudgeAgreementView — pairwise agreement between judges across the
|
|
373
|
-
* corpus, grouped by dimension.
|
|
374
|
-
*
|
|
375
|
-
* Output drives two workflows:
|
|
376
|
-
* - Judge robustness audit: "does Claude agree with GPT at κ ≥ 0.6?"
|
|
377
|
-
* - Calibration tracking: κ vs golden human labels over time (by
|
|
378
|
-
* providing a `humanGoldenJudgeId`).
|
|
379
|
-
*/
|
|
380
|
-
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/pipelines/judge-agreement.d.ts
|
|
381
48
|
interface JudgePair {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
49
|
+
judgeA: string;
|
|
50
|
+
judgeB: string;
|
|
51
|
+
dimension: string;
|
|
52
|
+
/** Number of (targetSpanId, dimension) tuples both judges scored. */
|
|
53
|
+
commonItems: number;
|
|
54
|
+
pearson: number;
|
|
55
|
+
krippendorff: number;
|
|
389
56
|
}
|
|
390
57
|
interface JudgeAgreementReport {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
58
|
+
pairs: JudgePair[];
|
|
59
|
+
dimensions: string[];
|
|
60
|
+
judgeIds: string[];
|
|
394
61
|
}
|
|
395
62
|
declare function judgeAgreementView(store: TraceStore): Promise<JudgeAgreementReport>;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
metric: string;
|
|
399
|
-
baselineMean: number;
|
|
400
|
-
candidateMean: number;
|
|
401
|
-
delta: number;
|
|
402
|
-
cohensD: number;
|
|
403
|
-
welchT: number;
|
|
404
|
-
welchDf: number;
|
|
405
|
-
welchP: number;
|
|
406
|
-
stable: boolean;
|
|
407
|
-
/** IQR of the combined samples — used as a rough stability indicator. */
|
|
408
|
-
iqr: number;
|
|
409
|
-
verdict: 'improved' | 'regressed' | 'stable' | 'unstable';
|
|
410
|
-
}
|
|
411
|
-
interface BaselineReport {
|
|
412
|
-
metrics: MetricVerdict[];
|
|
413
|
-
/** True if any critical metric regressed. */
|
|
414
|
-
hasRegression: boolean;
|
|
415
|
-
/** True if any metric is unstable (too noisy to judge). */
|
|
416
|
-
hasUnstable: boolean;
|
|
417
|
-
}
|
|
418
|
-
interface BaselineOptions {
|
|
419
|
-
/** Effect size threshold for meaningful delta (default 0.5 — medium effect). */
|
|
420
|
-
effectThreshold?: number;
|
|
421
|
-
/** p-value threshold for statistical significance (default 0.05). */
|
|
422
|
-
alpha?: number;
|
|
423
|
-
/** IQR/mean ratio above which samples are flagged unstable (default 0.30). */
|
|
424
|
-
unstableCvThreshold?: number;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* RegressionView — compares a candidate slice to a baseline slice on a
|
|
429
|
-
* named metric. Delegates the statistics (Welch's t-test, Cohen's d,
|
|
430
|
-
* IQR stability) to `baseline.ts`.
|
|
431
|
-
*
|
|
432
|
-
* This is the entry point for CI regression gates: "given runs tagged
|
|
433
|
-
* release=A and release=B, did any metric regress?"
|
|
434
|
-
*/
|
|
435
|
-
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/pipelines/regression.d.ts
|
|
436
65
|
interface RegressionSpec {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
66
|
+
metric: string;
|
|
67
|
+
higherIsBetter: boolean;
|
|
68
|
+
/** Extract a scalar from a run. Default extractors handle common metrics. */
|
|
69
|
+
extract?: (run: Run, store: TraceStore) => Promise<number | null>;
|
|
441
70
|
}
|
|
442
71
|
interface RegressionOptions extends BaselineOptions {
|
|
443
|
-
|
|
444
|
-
|
|
72
|
+
baseline: RunFilter;
|
|
73
|
+
candidate: RunFilter;
|
|
445
74
|
}
|
|
446
75
|
declare function regressionView(store: TraceStore, metrics: RegressionSpec[], options: RegressionOptions): Promise<BaselineReport>;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
* StuckLoopView — detects when an agent calls the same tool with the
|
|
450
|
-
* same (or structurally similar) arguments ≥ N times in a short window.
|
|
451
|
-
*
|
|
452
|
-
* Rationale: agents that loop are the number-one production failure
|
|
453
|
-
* mode on long-horizon flows. The view returns (runId, toolName,
|
|
454
|
-
* argHash, occurrences, windowMs) for each detected loop plus a
|
|
455
|
-
* fraction of runs affected.
|
|
456
|
-
*/
|
|
457
|
-
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/pipelines/stuck-loop.d.ts
|
|
458
78
|
interface StuckLoopFinding {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
79
|
+
runId: string;
|
|
80
|
+
toolName: string;
|
|
81
|
+
argHash: string;
|
|
82
|
+
/** Calls in this episode's densest qualifying interval, not the whole-run total. */
|
|
83
|
+
occurrences: number;
|
|
84
|
+
spanIds: string[];
|
|
85
|
+
/** Nearest agent ancestor, or the direct parent when ancestry is incomplete. */
|
|
86
|
+
scopeSpanId?: string;
|
|
87
|
+
/** Milliseconds between first and last call in the loop. */
|
|
88
|
+
windowMs: number;
|
|
469
89
|
}
|
|
470
90
|
interface StuckLoopReport {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
91
|
+
findings: StuckLoopFinding[];
|
|
92
|
+
affectedRunRatio: number;
|
|
93
|
+
totalRuns: number;
|
|
474
94
|
}
|
|
475
95
|
interface StuckLoopOptions {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
96
|
+
/** Minimum call count to flag a loop (default 3). */
|
|
97
|
+
minOccurrences?: number;
|
|
98
|
+
/** Maximum time between the first and last repeated call (default 60 seconds). */
|
|
99
|
+
maxWindowMs?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Maximum other tool calls allowed between adjacent repeats (default 0).
|
|
102
|
+
* Set to 1 to detect alternating patterns such as A,B,A,B,A.
|
|
103
|
+
*/
|
|
104
|
+
maxInterveningToolCalls?: number;
|
|
105
|
+
/** Filter to a specific runId; omit to scan the entire corpus. */
|
|
106
|
+
runId?: string;
|
|
487
107
|
}
|
|
488
108
|
declare function stuckLoopView(store: TraceStore, options?: StuckLoopOptions): Promise<StuckLoopReport>;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
* Tool-use metrics — derived purely from trace data.
|
|
492
|
-
*
|
|
493
|
-
* No scoring assumptions: consumers supply optional ground-truth tool
|
|
494
|
-
* selections per turn + optional "information used downstream" signals.
|
|
495
|
-
* Without those, we still compute descriptive metrics (error rate,
|
|
496
|
-
* retry rate, duplicate-call rate) that are useful on their own.
|
|
497
|
-
*/
|
|
498
|
-
|
|
499
|
-
interface ToolUseMetrics {
|
|
500
|
-
runId: string;
|
|
501
|
-
totalCalls: number;
|
|
502
|
-
/** Calls whose arguments were captured and can be compared for duplication. */
|
|
503
|
-
callsWithCapturedArgs: number;
|
|
504
|
-
byTool: Record<string, ToolStats>;
|
|
505
|
-
errorRate: number;
|
|
506
|
-
/** Ratio of captured-argument calls already seen with the same tool name and arguments. */
|
|
507
|
-
duplicateRate: number;
|
|
508
|
-
/** Ratio of error calls followed by ≥1 retry on same tool. */
|
|
509
|
-
retryRate: number;
|
|
510
|
-
/** Optional: of the calls agent made, fraction the evaluator marked as "correct selection". */
|
|
511
|
-
selectionAccuracy?: number;
|
|
512
|
-
}
|
|
513
|
-
interface ToolStats {
|
|
514
|
-
calls: number;
|
|
515
|
-
callsWithCapturedArgs: number;
|
|
516
|
-
errors: number;
|
|
517
|
-
avgLatencyMs: number;
|
|
518
|
-
duplicates: number;
|
|
519
|
-
}
|
|
520
|
-
interface ToolUseOptions {
|
|
521
|
-
/** Map of spanId → whether the evaluator judged the tool selection correct. Optional. */
|
|
522
|
-
selectionLabels?: Record<string, boolean>;
|
|
523
|
-
}
|
|
524
|
-
declare function computeToolUseMetrics(store: TraceStore, runId: string, options?: ToolUseOptions): Promise<ToolUseMetrics>;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Typed query helpers over TraceStore.
|
|
528
|
-
*
|
|
529
|
-
* Not a full SQL engine — a minimal, composable set of operators that
|
|
530
|
-
* cover the canned-pipeline use cases. For ad-hoc analytics, persist to
|
|
531
|
-
* NDJSON and point DuckDB at it; the schema is stable so external SQL
|
|
532
|
-
* tooling works out of the box.
|
|
533
|
-
*/
|
|
534
|
-
|
|
535
|
-
declare function llmSpans(store: TraceStore, runId?: string): Promise<LlmSpan[]>;
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* ToolWasteView — fraction of tool calls whose results weren't used
|
|
539
|
-
* downstream. Without a "used" signal we fall back to structural
|
|
540
|
-
* proxies: error calls, duplicate calls, and tool calls followed by
|
|
541
|
-
* zero subsequent LLM spans are all considered waste.
|
|
542
|
-
*
|
|
543
|
-
* Consumers can pass a `usageOracle` that inspects a tool span and
|
|
544
|
-
* returns true iff the tool's result appears in a later LLM message,
|
|
545
|
-
* artifact, or state mutation — that's the canonical definition; the
|
|
546
|
-
* default heuristic is a reasonable fallback.
|
|
547
|
-
*/
|
|
548
|
-
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/pipelines/tool-waste.d.ts
|
|
549
111
|
interface ToolWasteFinding {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
112
|
+
runId: string;
|
|
113
|
+
wastedCalls: number;
|
|
114
|
+
totalCalls: number;
|
|
115
|
+
wasteRate: number;
|
|
554
116
|
}
|
|
555
117
|
interface ToolWasteReport {
|
|
556
|
-
|
|
557
|
-
|
|
118
|
+
byRun: ToolWasteFinding[];
|
|
119
|
+
overallWasteRate: number;
|
|
558
120
|
}
|
|
559
121
|
interface ToolWasteOptions {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
122
|
+
runId?: string;
|
|
123
|
+
usageOracle?: (tool: ToolSpan, later: {
|
|
124
|
+
llm: Awaited<ReturnType<typeof llmSpans>>;
|
|
125
|
+
}) => boolean;
|
|
564
126
|
}
|
|
565
127
|
declare function toolWasteView(store: TraceStore, options?: ToolWasteOptions): Promise<ToolWasteReport>;
|
|
566
|
-
|
|
567
|
-
export {
|
|
128
|
+
//#endregion
|
|
129
|
+
export { BudgetBreachFinding, BudgetBreachReport, DivergenceOptions, DivergenceReport, FailureCluster, FailureClusterReport, JudgeAgreementReport, JudgePair, RegressionOptions, RegressionSpec, StuckLoopFinding, StuckLoopOptions, StuckLoopReport, ToolWasteFinding, ToolWasteOptions, ToolWasteReport, budgetBreachView, computeToolUseMetrics, failureClusterView, firstDivergenceView, judgeAgreementView, regressionView, stuckLoopView, toolWasteView };
|
|
130
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/pipelines/budget-breach.ts","../../src/pipelines/first-divergence.ts","../../src/pipelines/judge-agreement.ts","../../src/pipelines/regression.ts","../../src/pipelines/stuck-loop.ts","../../src/pipelines/tool-waste.ts"],"mappings":";;;;;;UAUiB;EACf;EACA;EACA;EACA,iBAAiB;EACjB;EACA;EACA;EACA;;UAGe;EACf,UAAU;EACV,aAAa;EACb,YAAY;EACZ,WAAW;EACX;EACA;;iBAGoB,iBACpB,OAAO,YACP;EAAW;EAAqB;IAC/B,QAAQ;;;UCrBM;EACf;EACA;EACA;EACA,QAAQ;EACR,QAAQ;EACR;;EAEA;;UAGe;;EAEf,cAAc,GAAG,gBAAgB,GAAG;;iBAGhB,oBACpB,OAAO,YACP,cACA,cACA,UAAS,oBACR,QAAQ;;;UCnBM;EACf;EACA;EACA;;EAEA;EACA;EACA;;UAGe;EACf,OAAO;EACP;EACA;;iBAGoB,mBAAmB,OAAO,aAAa,QAAQ;;;UChBpD;EACf;EACA;;EAEA,WAAW,KAAK,KAAK,OAAO,eAAe;;UAG5B,0BAA0B;EACzC,UAAU;EACV,WAAW;;iBAGS,eACpB,OAAO,YACP,SAAS,kBACT,SAAS,oBACR,QAAQ;;;UCDM;EACf;EACA;EACA;;EAEA;EACA;;EAEA;;EAEA;;UAGe;EACf,UAAU;EACV;EACA;;UAGe;;EAEf;;EAEA;;;;;EAKA;;EAEA;;iBAGoB,cACpB,OAAO,YACP,UAAS,mBACR,QAAQ;;;UChDM;EACf;EACA;EACA;EACA;;UAGe;EACf,OAAO;EACP;;UAGe;EACf;EACA,eAAe,MAAM,UAAU;IAAS,KAAK,QAAQ,kBAAkB;;;iBAGnD,cACpB,OAAO,YACP,UAAS,mBACR,QAAQ"}
|