@tangle-network/agent-eval 2.0.9 → 2.0.11
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 +68 -16
- package/dist/adapters/http.d.ts +2 -2
- package/dist/{agent-profile-ORN4aArD.d.ts → agent-profile-_JzxgLDM.d.ts} +11 -5
- package/dist/{agent-profile-ORN4aArD.d.ts.map → agent-profile-_JzxgLDM.d.ts.map} +1 -1
- package/dist/analyst/index.d.ts +14 -14
- package/dist/analyst/index.js +31 -10
- package/dist/analyst/index.js.map +1 -1
- package/dist/{analyze-runs-DT693FJ7.d.ts → analyze-runs-Izz_ZeWg.d.ts} +2 -2
- package/dist/{analyze-runs-DT693FJ7.d.ts.map → analyze-runs-Izz_ZeWg.d.ts.map} +1 -1
- package/dist/{analyze-runs-CE_5VKh2.js → analyze-runs-xhH2Qxoc.js} +5 -5
- package/dist/{analyze-runs-CE_5VKh2.js.map → analyze-runs-xhH2Qxoc.js.map} +1 -1
- package/dist/app-grade/index.d.ts +4 -4
- package/dist/{benchmark-command-DLg8E4y8.js → benchmark-command-CGQXNFj7.js} +8 -7
- package/dist/benchmark-command-CGQXNFj7.js.map +1 -0
- package/dist/benchmarks/index.d.ts +5 -5
- package/dist/benchmarks/index.d.ts.map +1 -1
- package/dist/benchmarks/index.js +18 -9
- package/dist/benchmarks/index.js.map +1 -1
- package/dist/campaign/index.d.ts +7 -7
- package/dist/campaign/index.js +11 -11
- package/dist/{campaign-C_S3MOYa.js → campaign-eus7YRs2.js} +13 -13
- package/dist/{campaign-C_S3MOYa.js.map → campaign-eus7YRs2.js.map} +1 -1
- package/dist/{campaign-evidence-CM4FBOkX.d.ts → campaign-evidence-BOcX4w0r.d.ts} +5 -5
- package/dist/{campaign-evidence-CM4FBOkX.d.ts.map → campaign-evidence-BOcX4w0r.d.ts.map} +1 -1
- package/dist/{campaign-evidence-BTfzZo1u.js → campaign-evidence-KM5GTsHG.js} +3 -3
- package/dist/{campaign-evidence-BTfzZo1u.js.map → campaign-evidence-KM5GTsHG.js.map} +1 -1
- package/dist/{chat-client-uQNXGuO4.d.ts → chat-client-BlTooBDA.d.ts} +7 -2
- package/dist/{chat-client-uQNXGuO4.d.ts.map → chat-client-BlTooBDA.d.ts.map} +1 -1
- package/dist/{chat-client-CvyDOQBv.js → chat-client-Oyot5tyo.js} +2 -2
- package/dist/{chat-client-CvyDOQBv.js.map → chat-client-Oyot5tyo.js.map} +1 -1
- package/dist/{chat-json-call-DMrwmB-k.js → chat-json-call-DTmv2uNY.js} +2 -2
- package/dist/{chat-json-call-DMrwmB-k.js.map → chat-json-call-DTmv2uNY.js.map} +1 -1
- package/dist/cli.js +7 -7
- package/dist/{cluster-C-K0N2br.d.ts → cluster-BJ0nW3P7.d.ts} +2 -2
- package/dist/{cluster-C-K0N2br.d.ts.map → cluster-BJ0nW3P7.d.ts.map} +1 -1
- package/dist/{cluster-bootstrap-DXbnIdm8.js → cluster-bootstrap-CTC8Dd30.js} +2 -2
- package/dist/{cluster-bootstrap-DXbnIdm8.js.map → cluster-bootstrap-CTC8Dd30.js.map} +1 -1
- package/dist/{completion-verifier-DsotH2l3.js → completion-verifier-CCPG2Yc0.js} +3 -3
- package/dist/{completion-verifier-DsotH2l3.js.map → completion-verifier-CCPG2Yc0.js.map} +1 -1
- package/dist/{completion-verifier-C7wipJOK.d.ts → completion-verifier-CQOC3_bm.d.ts} +2 -2
- package/dist/{completion-verifier-C7wipJOK.d.ts.map → completion-verifier-CQOC3_bm.d.ts.map} +1 -1
- package/dist/contract/index.d.ts +11 -11
- package/dist/contract/index.js +12 -12
- package/dist/{default-registry-kps1SOaD.js → default-registry-Rs5uzlfJ.js} +3 -3
- package/dist/{default-registry-kps1SOaD.js.map → default-registry-Rs5uzlfJ.js.map} +1 -1
- package/dist/{default-registry-Bskl2HzV.d.ts → default-registry-X8McMoUV.d.ts} +6 -6
- package/dist/{default-registry-Bskl2HzV.d.ts.map → default-registry-X8McMoUV.d.ts.map} +1 -1
- package/dist/{define-agent-eval-Dnh4jXLX.js → define-agent-eval-D8ntOXqV.js} +3 -3
- package/dist/{define-agent-eval-Dnh4jXLX.js.map → define-agent-eval-D8ntOXqV.js.map} +1 -1
- package/dist/{define-agent-eval-tu3anVlk.d.ts → define-agent-eval-DH5-xi-F.d.ts} +4 -4
- package/dist/{define-agent-eval-tu3anVlk.d.ts.map → define-agent-eval-DH5-xi-F.d.ts.map} +1 -1
- package/dist/diagnosis/index.d.ts +2 -2
- package/dist/diagnosis/index.js +1 -1
- package/dist/{dspy-rlm-engine-DQbPdT_o.js → dspy-rlm-engine-ChE1PUM5.js} +3 -3
- package/dist/{dspy-rlm-engine-DQbPdT_o.js.map → dspy-rlm-engine-ChE1PUM5.js.map} +1 -1
- package/dist/{eval-campaign-DswSn7Gm.js → eval-campaign-BciGnrGy.js} +2 -2
- package/dist/{eval-campaign-DswSn7Gm.js.map → eval-campaign-BciGnrGy.js.map} +1 -1
- package/dist/{evaluation-C4-tf3Z_.d.ts → evaluation-CjZH6gW0.d.ts} +4 -4
- package/dist/{evaluation-C4-tf3Z_.d.ts.map → evaluation-CjZH6gW0.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/{exact-types-CUsSMW3n.d.ts → exact-types-BIHqYBYf.d.ts} +2 -2
- package/dist/{exact-types-CUsSMW3n.d.ts.map → exact-types-BIHqYBYf.d.ts.map} +1 -1
- package/dist/experiment/index.d.ts +5 -5
- package/dist/experiment/index.js +8 -8
- package/dist/{external-optimizer-contracts-ZDBfbZ_s.js → external-optimizer-contracts-BFV8lnhl.js} +7 -2
- package/dist/{external-optimizer-contracts-ZDBfbZ_s.js.map → external-optimizer-contracts-BFV8lnhl.js.map} +1 -1
- package/dist/{external-optimizer-process-CVi1x2nb.js → external-optimizer-process-B6emPodQ.js} +3 -3
- package/dist/{external-optimizer-process-CVi1x2nb.js.map → external-optimizer-process-B6emPodQ.js.map} +1 -1
- package/dist/{external-optimizer-subprocess-mV-2swJI.js → external-optimizer-subprocess-_O06eDVA.js} +33 -20
- package/dist/external-optimizer-subprocess-_O06eDVA.js.map +1 -0
- package/dist/{feedback-trajectory-D7hgL6y5.d.ts → feedback-trajectory-CoQPmSJV.d.ts} +3 -3
- package/dist/{feedback-trajectory-D7hgL6y5.d.ts.map → feedback-trajectory-CoQPmSJV.d.ts.map} +1 -1
- package/dist/{findings-store-CZy5kUDo.js → findings-store-CvYUzQBR.js} +4 -4
- package/dist/{findings-store-CZy5kUDo.js.map → findings-store-CvYUzQBR.js.map} +1 -1
- package/dist/{index-Cav3abKy.d.ts → index-BSb3fJyZ.d.ts} +81 -19
- package/dist/{index-Cav3abKy.d.ts.map → index-BSb3fJyZ.d.ts.map} +1 -1
- package/dist/{index-CIqYaySd.d.ts → index-Bk1XEkP7.d.ts} +26 -16
- package/dist/index-Bk1XEkP7.d.ts.map +1 -0
- package/dist/{index-DmMHTDjT.d.ts → index-BmWw8zN6.d.ts} +9 -9
- package/dist/{index-DmMHTDjT.d.ts.map → index-BmWw8zN6.d.ts.map} +1 -1
- package/dist/{index--vDCtdaj.d.ts → index-CCOaNmh2.d.ts} +7 -7
- package/dist/{index--vDCtdaj.d.ts.map → index-CCOaNmh2.d.ts.map} +1 -1
- package/dist/{index-moZnazVj.d.ts → index-Cn9gB5Ca.d.ts} +21 -21
- package/dist/{index-moZnazVj.d.ts.map → index-Cn9gB5Ca.d.ts.map} +1 -1
- package/dist/{index-Er8TKQ3q.d.ts → index-aRalB_Ma.d.ts} +3 -3
- package/dist/{index-Er8TKQ3q.d.ts.map → index-aRalB_Ma.d.ts.map} +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.js +23 -23
- package/dist/{integrity-BF0tJK21.js → integrity-DacT3oJ1.js} +2 -2
- package/dist/{integrity-BF0tJK21.js.map → integrity-DacT3oJ1.js.map} +1 -1
- package/dist/{integrity-BJGstiCh.d.ts → integrity-DotDLWtj.d.ts} +2 -2
- package/dist/{integrity-BJGstiCh.d.ts.map → integrity-DotDLWtj.d.ts.map} +1 -1
- package/dist/{judge-gate-DANg5FLq.js → judge-gate-CpD3wmcf.js} +2 -2
- package/dist/{judge-gate-DANg5FLq.js.map → judge-gate-CpD3wmcf.js.map} +1 -1
- package/dist/{llm-client-Dw4x6EdE.js → llm-client-Dk8lBnMh.js} +15 -2
- package/dist/{llm-client-Dw4x6EdE.js.map → llm-client-Dk8lBnMh.js.map} +1 -1
- package/dist/{llm-judge-DFoSy4Qn.js → llm-judge-DYmEdo3M.js} +3 -3
- package/dist/{llm-judge-DFoSy4Qn.js.map → llm-judge-DYmEdo3M.js.map} +1 -1
- package/dist/{matrix-OgdWQBQa.d.ts → matrix-BDl7hoBr.d.ts} +2 -2
- package/dist/{matrix-OgdWQBQa.d.ts.map → matrix-BDl7hoBr.d.ts.map} +1 -1
- package/dist/{measure-validity-plan-B1_qYlsk.d.ts → measure-validity-plan-BReXzcVh.d.ts} +62 -4
- package/dist/measure-validity-plan-BReXzcVh.d.ts.map +1 -0
- package/dist/{measure-validity-plan-t0YQRzJQ.js → measure-validity-plan-CJkBNzX_.js} +43 -6
- package/dist/measure-validity-plan-CJkBNzX_.js.map +1 -0
- package/dist/meta-eval/index.d.ts +2 -2
- package/dist/meta-eval/index.js +178 -35
- package/dist/meta-eval/index.js.map +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +56 -17
- package/dist/multishot/index.d.ts.map +1 -1
- package/dist/multishot/index.js +93 -20
- package/dist/multishot/index.js.map +1 -1
- package/dist/node-transport-DJno8V46.js +62 -0
- package/dist/node-transport-DJno8V46.js.map +1 -0
- package/dist/openapi.json +1 -1
- package/dist/{optimization-method-D4CpYsVA.js → optimization-method-4JlbMxd2.js} +27 -38
- package/dist/optimization-method-4JlbMxd2.js.map +1 -0
- package/dist/{paired-arms-B6EXnI47.js → paired-arms-CJH5Q0wx.js} +2 -2
- package/dist/{paired-arms-B6EXnI47.js.map → paired-arms-CJH5Q0wx.js.map} +1 -1
- package/dist/{paired-promotion-decision-xYe881cD.js → paired-promotion-decision-BtfVwEAk.js} +2 -2
- package/dist/{paired-promotion-decision-xYe881cD.js.map → paired-promotion-decision-BtfVwEAk.js.map} +1 -1
- package/dist/{paired-promotion-decision-DuvRdnsW.d.ts → paired-promotion-decision-DJlI4z_k.d.ts} +2 -2
- package/dist/{paired-promotion-decision-DuvRdnsW.d.ts.map → paired-promotion-decision-DJlI4z_k.d.ts.map} +1 -1
- package/dist/{paired-promotion-power-DirShsIs.js → paired-promotion-power-DG1avBKf.js} +3 -3
- package/dist/{paired-promotion-power-DirShsIs.js.map → paired-promotion-power-DG1avBKf.js.map} +1 -1
- package/dist/pipelines/index.js +1 -1
- package/dist/{power-DTg6u30w.js → power-COie_o6E.js} +3 -3
- package/dist/{power-DTg6u30w.js.map → power-COie_o6E.js.map} +1 -1
- package/dist/{prime-protocol-Jm2pWh--.d.ts → prime-protocol-BRMk6dGI.d.ts} +2 -2
- package/dist/{prime-protocol-Jm2pWh--.d.ts.map → prime-protocol-BRMk6dGI.d.ts.map} +1 -1
- package/dist/{promotion-gate-BXgcORnM.d.ts → promotion-gate-B0VTBoXg.d.ts} +2 -2
- package/dist/{promotion-gate-BXgcORnM.d.ts.map → promotion-gate-B0VTBoXg.d.ts.map} +1 -1
- package/dist/{promotion-policy-Z5E-C32U.js → promotion-policy-BgI7PsQn.js} +3 -3
- package/dist/{promotion-policy-Z5E-C32U.js.map → promotion-policy-BgI7PsQn.js.map} +1 -1
- package/dist/{registry-DEZDECdr.d.ts → registry-BeInzotS.d.ts} +4 -4
- package/dist/{registry-DEZDECdr.d.ts.map → registry-BeInzotS.d.ts.map} +1 -1
- package/dist/reporting.d.ts +4 -4
- package/dist/reporting.js +3 -3
- package/dist/{research-report-CIgUe1lv.d.ts → research-report-CL5_UqCX.d.ts} +2 -2
- package/dist/{research-report-CIgUe1lv.d.ts.map → research-report-CL5_UqCX.d.ts.map} +1 -1
- package/dist/{researcher-CY_byuZl.d.ts → researcher-BOpZP_Ja.d.ts} +4 -4
- package/dist/{researcher-CY_byuZl.d.ts.map → researcher-BOpZP_Ja.d.ts.map} +1 -1
- package/dist/rl.d.ts +7 -7
- package/dist/rl.js +4 -4
- package/dist/rollout/index.d.ts +2 -2
- package/dist/rollout/index.js +1 -1
- package/dist/{rollout-B_lrpd9a.js → rollout--rSr43Pd.js} +2 -2
- package/dist/{rollout-B_lrpd9a.js.map → rollout--rSr43Pd.js.map} +1 -1
- package/dist/{rollout-nodes-Vas6OSxX.js → rollout-nodes-DFxKpIr2.js} +39 -10
- package/dist/rollout-nodes-DFxKpIr2.js.map +1 -0
- package/dist/{run-improvement-loop-BaPDVbW8.d.ts → run-improvement-loop-BeHu5D9Z.d.ts} +22 -10
- package/dist/run-improvement-loop-BeHu5D9Z.d.ts.map +1 -0
- package/dist/{runtime-rollouts-Vv-BAqmq.js → runtime-rollouts-CE0MbQPq.js} +54 -7
- package/dist/runtime-rollouts-CE0MbQPq.js.map +1 -0
- package/dist/search/index.d.ts +2 -2
- package/dist/search/index.js +2 -2
- package/dist/{search-kernel-BzTeb89p.d.ts → search-kernel-CJZ-ZSV1.d.ts} +3 -3
- package/dist/{search-kernel-BzTeb89p.d.ts.map → search-kernel-CJZ-ZSV1.d.ts.map} +1 -1
- package/dist/{search-kernel-DOPW08Hx.js → search-kernel-mZc79S6N.js} +4 -4
- package/dist/{search-kernel-DOPW08Hx.js.map → search-kernel-mZc79S6N.js.map} +1 -1
- package/dist/{search-summary-CYOHZAAy.js → search-summary-CCgP2qXz.js} +3 -3
- package/dist/{search-summary-CYOHZAAy.js.map → search-summary-CCgP2qXz.js.map} +1 -1
- package/dist/{self-improve-DY8ZY4lY.d.ts → self-improve-B1fsNejr.d.ts} +6 -6
- package/dist/{self-improve-DY8ZY4lY.d.ts.map → self-improve-B1fsNejr.d.ts.map} +1 -1
- package/dist/{self-improve-CIFqccHV.js → self-improve-C_Bcdmv8.js} +5 -4
- package/dist/{self-improve-CIFqccHV.js.map → self-improve-C_Bcdmv8.js.map} +1 -1
- package/dist/{sequential-B9iROM1S.d.ts → sequential-CHplorpC.d.ts} +2 -2
- package/dist/{sequential-B9iROM1S.d.ts.map → sequential-CHplorpC.d.ts.map} +1 -1
- package/dist/{sequential-tZjGysXY.js → sequential-DR-pnYQ7.js} +3 -3
- package/dist/{sequential-tZjGysXY.js.map → sequential-DR-pnYQ7.js.map} +1 -1
- package/dist/{server-1fzBCxMh.js → server-aZFmRucn.js} +3 -3
- package/dist/{server-1fzBCxMh.js.map → server-aZFmRucn.js.map} +1 -1
- package/dist/{skillopt-optimization-method-CbHBkopM.js → skillopt-optimization-method-DHk1K757.js} +93 -39
- package/dist/skillopt-optimization-method-DHk1K757.js.map +1 -0
- package/dist/{statistical-heldout-C7Jjo5nP.js → statistical-heldout-CL_7mI5C.js} +2 -2
- package/dist/{statistical-heldout-C7Jjo5nP.js.map → statistical-heldout-CL_7mI5C.js.map} +1 -1
- package/dist/{statistics-BPl13X3G.js → statistics-AKnVFnK-.js} +67 -42
- package/dist/statistics-AKnVFnK-.js.map +1 -0
- package/dist/statistics.d.ts +3 -3
- package/dist/statistics.js +1 -1
- package/dist/{store-tool-spans-Dq8r0PbJ.d.ts → store-tool-spans-M3WxeRrG.d.ts} +4 -4
- package/dist/{store-tool-spans-Dq8r0PbJ.d.ts.map → store-tool-spans-M3WxeRrG.d.ts.map} +1 -1
- package/dist/{summary-report-DzbnK81K.js → summary-report-DyBkOC6V.js} +3 -3
- package/dist/{summary-report-DzbnK81K.js.map → summary-report-DyBkOC6V.js.map} +1 -1
- package/dist/supervisor-run/index.d.ts +12 -2
- package/dist/supervisor-run/index.d.ts.map +1 -1
- package/dist/supervisor-run/index.js +3 -3
- package/dist/{systemone-BuSZTI88.d.ts → systemone-4PadCE4C.d.ts} +7 -7
- package/dist/{systemone-BuSZTI88.d.ts.map → systemone-4PadCE4C.d.ts.map} +1 -1
- package/dist/{systemone-review-mlfxWdLz.d.ts → systemone-review-DpAXWDkL.d.ts} +2 -2
- package/dist/{systemone-review-mlfxWdLz.d.ts.map → systemone-review-DpAXWDkL.d.ts.map} +1 -1
- package/dist/systemone.d.ts +3 -3
- package/dist/{tool-groups-PNDX8fd-.d.ts → tool-groups-SlnoQNyT.d.ts} +2 -2
- package/dist/tool-groups-SlnoQNyT.d.ts.map +1 -0
- package/dist/{tool-waste-783VCo1y.js → tool-waste-BZnYSa6J.js} +2 -2
- package/dist/{tool-waste-783VCo1y.js.map → tool-waste-BZnYSa6J.js.map} +1 -1
- package/dist/{trace-questions-DBtr4jWi.d.ts → trace-questions-ybyF0B6N.d.ts} +2 -2
- package/dist/{trace-questions-DBtr4jWi.d.ts.map → trace-questions-ybyF0B6N.d.ts.map} +1 -1
- package/dist/trace-repair/index.d.ts +1 -1
- package/dist/traces.d.ts +4 -4
- package/dist/{tree-CtlQQL1w.js → tree-CiIe-f3f.js} +4 -4
- package/dist/{tree-CtlQQL1w.js.map → tree-CiIe-f3f.js.map} +1 -1
- package/dist/{types-CKNAzCSA.d.ts → types-B1W3v8dT.d.ts} +3 -3
- package/dist/{types-CKNAzCSA.d.ts.map → types-B1W3v8dT.d.ts.map} +1 -1
- package/dist/{types-DbeIGi73.d.ts → types-Bte3EsFQ.d.ts} +52 -5
- package/dist/types-Bte3EsFQ.d.ts.map +1 -0
- package/dist/{types-BO948H-U.d.ts → types-D5XtEH9Q.d.ts} +8 -4
- package/dist/{types-BO948H-U.d.ts.map → types-D5XtEH9Q.d.ts.map} +1 -1
- package/dist/{types-D-WF1KM3.d.ts → types-xVtEOBhO.d.ts} +31 -8
- package/dist/types-xVtEOBhO.d.ts.map +1 -0
- package/dist/wire/index.d.ts +4 -4
- package/dist/wire/index.js +1 -1
- package/dist/world/index.d.ts +1 -1
- package/docs/design/statistics-decisions.md +18 -1
- package/docs/eval-surface-map.md +1 -1
- package/docs/feature-guide.md +1 -1
- package/docs/multi-turn-optimization.md +6 -2
- package/docs/outcome-validity.md +51 -12
- package/docs/public-api.md +17 -16
- package/docs/{multi-shot-optimization.md → trajectory-optimization.md} +1 -1
- package/package.json +1 -1
- package/dist/benchmark-command-DLg8E4y8.js.map +0 -1
- package/dist/external-optimizer-subprocess-mV-2swJI.js.map +0 -1
- package/dist/index-CIqYaySd.d.ts.map +0 -1
- package/dist/measure-validity-plan-B1_qYlsk.d.ts.map +0 -1
- package/dist/measure-validity-plan-t0YQRzJQ.js.map +0 -1
- package/dist/optimization-method-D4CpYsVA.js.map +0 -1
- package/dist/rollout-nodes-Vas6OSxX.js.map +0 -1
- package/dist/run-improvement-loop-BaPDVbW8.d.ts.map +0 -1
- package/dist/runtime-rollouts-Vv-BAqmq.js.map +0 -1
- package/dist/skillopt-optimization-method-CbHBkopM.js.map +0 -1
- package/dist/statistics-BPl13X3G.js.map +0 -1
- package/dist/tool-groups-PNDX8fd-.d.ts.map +0 -1
- package/dist/types-D-WF1KM3.d.ts.map +0 -1
- package/dist/types-DbeIGi73.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as CostLedgerHandle, u as CostProvenance } from "./cost-ledger-CSP-OfFe.js";
|
|
2
2
|
import { a as RunRecord, d as RunTokenUsage } from "./run-record-kuOr3BCF.js";
|
|
3
|
-
import { n as ChatClient } from "./chat-client-
|
|
4
|
-
import { g as JudgeInput, t as BootstrapInterval } from "./cluster-
|
|
3
|
+
import { n as ChatClient } from "./chat-client-BlTooBDA.js";
|
|
4
|
+
import { g as JudgeInput, t as BootstrapInterval } from "./cluster-BJ0nW3P7.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { SpanKind } from "@tangle-network/agent-trace-contract";
|
|
7
7
|
import { RE2JS } from "re2js";
|
|
@@ -1167,4 +1167,4 @@ type AnalystRunEvent = {
|
|
|
1167
1167
|
result: AnalystRunResult;
|
|
1168
1168
|
};
|
|
1169
1169
|
export { parseRawFinding as $, FindingParseOutcome as A, FindingTreatment as B, CalibrationInterval as C, TraceAnalystSpanKind as Ct, FindingLayer as D, ViewTraceOversized as Dt, FindingEvidenceUnit as E, ViewSpansResult as Et, independentUnitCount as F, TraceAnalysisEngineRequest as G, TreatmentLayer as H, lineageRoots as I, RAW_FINDING_SCHEMA_PROMPT as J, TraceAnalysisEngineResult as K, parseAnalystFinding as L, FindingScope as M, FindingScopeReading as N, FindingMeasure as O, ViewTraceResult as Ot, ProposalFindingSchema as P, evidenceRefsFromRawFinding as Q, readFindingScope as R, makeProposalFinding as S, TraceAnalystSpan as St, FindingCalibration as T, TraceAnalystTraceSummary as Tt, TraceAnalysisActivity as U, TREATMENT_LAYERS as V, TraceAnalysisEngine as W, RawAnalystFinding as X, RawAnalystEvidence as Y, RawAnalystFindingSchema as Z, ExecutionProbeRequest as _, SearchSpanResult as _t, AnalystFindingSchemaVersion as a, createBoundedTraceAnalysisStore as at, computeFindingId as b, TraceAnalystByteBudgets as bt, AnalystRunEvent as c, ReadSpanSourceResult as ct, AnalystRunSummary as d, TraceAnalysisStore as dt, BuildTraceAnalysisToolsOptions as et, AnalystSeverity as f, TraceAnalysisStoreContext as ft, ExecutionProbeOutcome as g, QueryTracesPage as gt, ExecutionProbe as h, ErrorCluster as ht, AnalystFinding as i, buildTraceAnalysisToolDescriptors as it, FindingReaderLabel as j, FindingMethod as k, AnalystRunInputs as l, SpanSourceReader as lt, EvidenceRef as m, DatasetOverview as mt, AnalystContext as n, TraceAnalysisToolDescriptor as nt, AnalystInputKind as o, BoundedTraceAnalysisStoreOptions as ot, AnalystUsageReceipt as p, DEFAULT_TRACE_ANALYST_BUDGETS as pt, TraceAnalystLimits as q, AnalystCost as r, UNTRUSTED_TRACE_TEXT as rt, AnalystRequirements as s, ReadSpanSourceInput as st, Analyst as t, TRACE_ANALYST_TOOL_NAMESPACE as tt, AnalystRunResult as u, TRACE_ANALYSIS_LIMITS as ut, ProposalFinding as v, SearchTraceResult as vt, FINDING_LAYERS as w, TraceAnalystSpanStatus as wt, makeFinding as x, TraceAnalystFilters as xt, ProposalFindingOrigin as y, SpanMatchRecord as yt, FindingConditions as z };
|
|
1170
|
-
//# sourceMappingURL=types-
|
|
1170
|
+
//# sourceMappingURL=types-B1W3v8dT.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-B1W3v8dT.d.ts","names":[],"sources":["../src/trace-analyst/types.ts","../src/trace-analyst/store-contract.ts","../src/trace-analyst/store-boundary.ts","../src/eval-tools.ts","../src/trace-analyst/tools.ts","../src/analyst/finding-signature.ts","../src/analyst/engine.ts","../src/analyst/finding-composition.ts","../src/analyst/finding-scope.ts","../src/analyst/types.ts"],"mappings":";;;;;;;;;;;;KAsBY,uBAAuB;KAEvB;;;;UAKK;EACf;EACA;EACA;EACA;EACA,MAAM;EACN;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA;EACA;EACA;;;EAGA,YAAY;;UAGG;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;EAGA;;;;;;;UAQe;;EAEf;;EAEA;;EAEA;;EAEA;EACA;EACA;;EAEA;;EAEA;;EAEA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;IAAU;IAAqB;;;;;;EAK/B,gBAAgB;EAChB;IAAc;IAAkB;;;UAGjB;EACf,QAAQ;EACR;EACA;;;;;UAMe;EACf;EACA,QAAQ;EACR,YAAY;;UAGG;EACf;;EAEA,gBAAgB;;EAEhB;EACA;;UAGe;EACf;EACA,OAAO;;EAEP;;EAEA;;EAEA;;EAEA;;UAGe;EACf;EACA;EACA;EACA,WAAW;;;EAGX;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA,MAAM;EACN;;UAGe;EACf;EACA;EACA,MAAM;EACN;;;UAIe;;;EAGf;;;EAGA;;;EAGA;;;EAGA;;cAGW,+BAA+B;cClM/B;;;;;;;;;;UAWI;EACf,SAAS;;;UAIM;EACf;EACA;EACA;EACA;EACA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iBAec,iBAAiB;EAC/B;EACA;EACA;EACA;;EAEA;EACA,YAAY;EACZ,aAAa;;;;;;iBAyCC,YACd,MAAM,KAAK;EACT;EACA;IAED;;iBAsBa,oBACd,MAAM,KAAK;EACT;EACA;IAED;UAOc;EACf;EACA;;EAEA;EACA;EACA;;EAEA,OAAO;;EAEP;IAAU;IAAe;;;UAGV;EACf;EACA;EACA;EACA;EACA,UAAU;EACV,aAAa;;EAEb;;;;;EAKA,wBAAwB;;;;;;;;;;;;;;;KAkBd;EAEN;EACA;EACA;EACA;;EAEA,aAAa;;EAGb;EACA,SAAS;;EAGT;EACA;EACA;;EAGA;;EAEA,SAAS;EACT,UAAU,cAAc;;EAGxB;EACA,QAAQ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as RunSplitTag } from "./run-record-kuOr3BCF.js";
|
|
2
2
|
import { a as CheckerIdentity, n as VerdictCertification, x as VerificationStrategySource } from "./verdict-D_qiBQ6_.js";
|
|
3
|
-
import { R as Scenario, d as DispatchContext } from "./types-
|
|
3
|
+
import { R as Scenario, d as DispatchContext } from "./types-D5XtEH9Q.js";
|
|
4
4
|
/** A planned measurement contract. It is not evidence that its checker executed. */
|
|
5
5
|
interface BenchmarkDefinition {
|
|
6
6
|
schemaVersion: 1;
|
|
@@ -110,8 +110,53 @@ interface BenchmarkSource {
|
|
|
110
110
|
*/
|
|
111
111
|
contamination?: 'unknown' | 'none-known' | 'suspected' | 'confirmed';
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* What a caller may ask of `loadDataset` beyond the split: a sample, or exact items. An adapter applies them with
|
|
115
|
+
* `selectBenchmarkItems`: the asked `ids` that are in the split, in the asked order, then at most `limit` items.
|
|
116
|
+
*/
|
|
117
|
+
interface BenchmarkLoadOptions {
|
|
118
|
+
limit?: number;
|
|
119
|
+
ids?: readonly string[];
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* What an agent runtime needs from a benchmark to run its items as agent turns, beyond loading and scoring. agent-eval
|
|
123
|
+
* names the shapes and a runtime supplies the execution, so this package never imports a runtime: `TEvent` is the
|
|
124
|
+
* runtime's own event type. `prompt` is required; every other hook is optional.
|
|
125
|
+
*/
|
|
126
|
+
interface BenchmarkRuntimeHooks<TPayload = unknown, TArtifact = string, TEvent = unknown> {
|
|
127
|
+
/** The task statement handed to the agent for one item. */
|
|
128
|
+
prompt(item: BenchmarkDatasetItem<TPayload>): string;
|
|
129
|
+
/** Throw with actionable guidance when the benchmark's harness or grader cannot run on this host. */
|
|
130
|
+
preflight?(): Promise<void>;
|
|
131
|
+
/** A known-good artifact, so a runner can check the grader before it spends model tokens. */
|
|
132
|
+
goldArtifact?(item: BenchmarkDatasetItem<TPayload>): Promise<TArtifact | undefined>;
|
|
133
|
+
/** The judged artifact read from the run's collected events, when it is not the agent's final answer text. */
|
|
134
|
+
output?: {
|
|
135
|
+
parse(events: TEvent[]): TArtifact;
|
|
136
|
+
};
|
|
137
|
+
/** A command run in the agent's workspace before the turn, such as checking the task's repository out at its base commit. */
|
|
138
|
+
workspaceSetup?(item: BenchmarkDatasetItem<TPayload>): {
|
|
139
|
+
command: string;
|
|
140
|
+
cwd?: string;
|
|
141
|
+
};
|
|
142
|
+
/** A command run in the agent's workspace after the turn whose output is the judged artifact, such as `git diff`. */
|
|
143
|
+
workspaceExtract?(item: BenchmarkDatasetItem<TPayload>): {
|
|
144
|
+
command: string;
|
|
145
|
+
cwd?: string;
|
|
146
|
+
};
|
|
147
|
+
/** A benchmark-owned worker, for a benchmark whose own protocol is the worker (an interactive episode); opaque here. */
|
|
148
|
+
worker?(config: {
|
|
149
|
+
model: string;
|
|
150
|
+
routerBaseUrl: string;
|
|
151
|
+
routerKey: string;
|
|
152
|
+
}): unknown;
|
|
153
|
+
}
|
|
154
|
+
/** `BenchmarkLoadOptions` applied to one split's items: the asked ids present in the split, in order, then the limit. */
|
|
155
|
+
declare function selectBenchmarkItems<T extends {
|
|
156
|
+
id: string;
|
|
157
|
+
}>(items: readonly T[], options?: BenchmarkLoadOptions): T[];
|
|
113
158
|
/** Common signature implemented by every adapter under `src/benchmarks/*`. */
|
|
114
|
-
interface BenchmarkAdapter<_TItem = unknown, TPayload = unknown, TArtifact = string> {
|
|
159
|
+
interface BenchmarkAdapter<_TItem = unknown, TPayload = unknown, TArtifact = string, TEvent = unknown> {
|
|
115
160
|
/** Stable benchmark id such as `beir/nfcorpus` or `crag/smoke`. */
|
|
116
161
|
id?: string;
|
|
117
162
|
family?: BenchmarkFamily | string;
|
|
@@ -127,7 +172,9 @@ interface BenchmarkAdapter<_TItem = unknown, TPayload = unknown, TArtifact = str
|
|
|
127
172
|
* first call but should be cache-friendly. Adapters that don't
|
|
128
173
|
* ship the dataset itself MUST throw a clearly-marked error
|
|
129
174
|
* pointing the caller at the loader script. */
|
|
130
|
-
loadDataset(split: RunSplitTag): Promise<BenchmarkDatasetItem<TPayload>[]>;
|
|
175
|
+
loadDataset(split: RunSplitTag, options?: BenchmarkLoadOptions): Promise<BenchmarkDatasetItem<TPayload>[]>;
|
|
176
|
+
/** Present when an agent runtime can run this benchmark's items as agent turns. */
|
|
177
|
+
runtime?: BenchmarkRuntimeHooks<TPayload, TArtifact, TEvent>;
|
|
131
178
|
/** Score a single response. Pure with respect to the inputs. */
|
|
132
179
|
evaluate(item: BenchmarkDatasetItem<TPayload>, artifact: TArtifact): Promise<BenchmarkEvaluation>;
|
|
133
180
|
/** Optional identity-bound receipt, retained by the runner without executing the checker twice. */
|
|
@@ -163,5 +210,5 @@ declare const BENCHMARK_SPLIT_SEED = "agent-eval-v1";
|
|
|
163
210
|
* holdout:20% (paper-grade held-out, gated reads)
|
|
164
211
|
*/
|
|
165
212
|
declare function deterministicSplit(itemId: string, seed?: string, cuts?: readonly [number, number]): RunSplitTag;
|
|
166
|
-
export {
|
|
167
|
-
//# sourceMappingURL=types-
|
|
213
|
+
export { defineBenchmarkResult as _, BenchmarkFamily as a, defineBenchmark as b, BenchmarkRuntimeHooks as c, BenchmarkTaskKind as d, deterministicSplit as f, benchmarkResultEvidenceDigest as g, benchmarkResult as h, BenchmarkEvaluation as i, BenchmarkScenario as l, BenchmarkResult as m, BenchmarkAdapter as n, BenchmarkLoadOptions as o, selectBenchmarkItems as p, BenchmarkDatasetItem as r, BenchmarkResponder as s, BENCHMARK_SPLIT_SEED as t, BenchmarkSource as u, BenchmarkDefinition as v, benchmarkDefinitionDigest as y };
|
|
214
|
+
//# sourceMappingURL=types-Bte3EsFQ.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-Bte3EsFQ.d.ts","names":[],"sources":["../src/benchmarks/definition.ts","../src/benchmarks/result.ts","../src/benchmarks/types.ts"],"mappings":";;;;UAQiB;EACf;EACA;EACA,QAAQ;IAAoB;;;EAE5B;EACA;IACE;IACA;IACA;;IAEA;;IAEA;;IAEA;;EAEF;IACE,UAAU;IACV,SAAS;IACT;;;;iBA4DY,gBAAgB,iBAAiB;;iBAMjC,0BAA0B;;UCtFzB;EACf;EACA;EACA;;EAEA;EACA,YAAY;IAAwB;;;;;;;iBA2CtB,sBACd,gBACA,aAAa,sBACZ;;iBA+Ba,8BAA8B,QAAQ;;iBAWtC,gBAAgB;EAC9B,YAAY;EACZ;EACA;EACA,YAAY;IAAwB;;IAClC;KC/FQ;KAQA;UAgBK,qBAAqB;;;EAGpC;;EAEA,SAAS;;EAET,QAAQ;;EAER,SAAS;;EAET,WAAW;;EAEX;;EAEA,SAAS;EACT,WAAW;;UAGI;;;;EAIf;;EAEA;;EAEA,aAAa;;;EAGb,KAAK;;EAEL,gBAAgB;EAChB;;UAGe;EACf;EACA;EACA;;EAEA;EACA;EACA;;EAEA;;;;;EAKA;;;;;;UAOe;EACf;EACA;;;;;;;UAQe,sBAAsB,oBAAoB,oBAAoB;;EAE7E,OAAO,MAAM,qBAAqB;;EAElC,cAAc;;EAEd,cAAc,MAAM,qBAAqB,YAAY,QAAQ;;EAE7D;IAAW,MAAM,QAAQ,WAAW;;;EAEpC,gBAAgB,MAAM,qBAAqB;IAAc;IAAiB;;;EAE1E,kBAAkB,MAAM,qBAAqB;IAAc;IAAiB;;;EAE5E,QAAQ;IAAU;IAAe;IAAuB;;;;iBAI1C,qBAAqB;EAAY;GAC/C,gBAAgB,KAChB,UAAU,uBACT;;UAcc,iBACf,kBACA,oBACA,oBACA;;EAGA;EACA,SAAS;EACT,WAAW;EACX;EACA,SAAS;EACT;;EAEA,aAAa;;EAEb;;;;;EAKA,YACE,OAAO,aACP,UAAU,uBACT,QAAQ,qBAAqB;;EAEhC,UAAU,sBAAsB,UAAU,WAAW;;EAErD,SAAS,MAAM,qBAAqB,WAAW,UAAU,YAAY,QAAQ;;EAE7E,gBACE,MAAM,qBAAqB,WAC3B,UAAU,YACT,QAAQ;;;;EAIX,YAAY,iBAAiB;;UAGd,kBAAkB,4BAA4B;EAC7D;EACA;EACA,QAAQ;EACR,UAAU;EACV,UAAU;EACV,MAAM,qBAAqB;;KAGjB,mBAAmB,oBAAoB,uBAAuB;EACxE,UAAU,kBAAkB;EAC5B,MAAM,qBAAqB;EAC3B,SAAS;MACL,QAAQ,aAAa;;;cAoBd;;;;;;;;;;iBAWG,mBACd,gBACA,eACA,mCACC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as PaidCallResult, i as CostChannel, l as CostLedgerSummary, o as CostLedgerHandle, r as CostBreakdown, u as CostProvenance, y as RunPaidCallInput } from "./cost-ledger-CSP-OfFe.js";
|
|
2
2
|
import { a as RunRecord, d as RunTokenUsage, s as RunSearchCoordinates } from "./run-record-kuOr3BCF.js";
|
|
3
|
-
import { v as ProposalFinding } from "./types-
|
|
4
|
-
import { p as LlmCallMetadata } from "./chat-client-
|
|
5
|
-
import { gt as SeriesDistribution } from "./index-
|
|
3
|
+
import { v as ProposalFinding } from "./types-B1W3v8dT.js";
|
|
4
|
+
import { p as LlmCallMetadata } from "./chat-client-BlTooBDA.js";
|
|
5
|
+
import { gt as SeriesDistribution } from "./index-Bk1XEkP7.js";
|
|
6
6
|
import { n as VerdictCertification } from "./verdict-D_qiBQ6_.js";
|
|
7
7
|
import { A as SearchLedgerHash, F as SearchNodeRegisteredEvent, G as SearchSplit, I as SearchNodeStatus, L as SearchOpenedEvent, N as SearchNodeDecision, O as SearchLedgerEntry, P as SearchNodeRef, Q as SearchTaskOutcome, R as SearchOperationKind, U as SearchReservation, Z as SearchTask, b as SearchClosedEvent, d as SearchCellCancelledEvent, et as SearchTraceRef, i as SearchArtifactRef, l as SearchCandidateSurface, o as SearchAudit, p as SearchCellStage, t as NodeEstimate, w as SearchEdgeRecordedEvent, z as SearchOperationRecordedEvent } from "./search-ledger-types-BhZE848w.js";
|
|
8
8
|
import { y as LedgerProjector } from "./index-qy6buL6y.js";
|
|
@@ -803,6 +803,10 @@ interface GateResult {
|
|
|
803
803
|
interface Gate<TArtifact = unknown, TScenario extends Scenario = Scenario> {
|
|
804
804
|
name: string;
|
|
805
805
|
decide(ctx: GateContext<TArtifact, TScenario>): Promise<GateResult>;
|
|
806
|
+
/** Throws when the gate would refuse this held-out split. `selfImprove`,
|
|
807
|
+
* `runImprovementLoop` and `compareOptimizationMethods` call it before any
|
|
808
|
+
* cell runs, so a refused split spends no budget. */
|
|
809
|
+
admitHeldOut?(scenarios: readonly TScenario[]): void;
|
|
806
810
|
}
|
|
807
811
|
/** Scoped trace writer handed to each dispatch — every span
|
|
808
812
|
* auto-tagged with the cellId so traces filter cleanly. */
|
|
@@ -1102,4 +1106,4 @@ interface CampaignResult<TArtifact = unknown, TScenario extends Scenario = Scena
|
|
|
1102
1106
|
scenarios: Array<CampaignScenarioIdentity & Pick<TScenario, 'id' | 'kind'>>;
|
|
1103
1107
|
}
|
|
1104
1108
|
export { MintRolloutResult as $, LabeledScenarioWrite as A, ScoredSurfaceOutcome as B, JudgeDimension as C, LabeledScenarioSampleArgs as D, LabeledScenarioRecord as E, ProposeContext as F, SearchProposerView as G, SurfaceProposer as H, ProposedCandidate as I, searchProposerView as J, SearchSummaryOptions as K, RedactionStatus as L, OptimizerConfig as M, ParetoParent as N, LabeledScenarioSource as O, ProposalTrackContext as P, MintRolloutOptions as Q, Scenario as R, JudgeConfig as S, LabelTrust as T, TraceSpan as U, SessionScript as V, isProposedCandidate as W, SearchStateView as X, SearchState as Y, searchUnitScores as Z, GateDecision as _, CampaignResult as a, SearchCompletion as at, GenerationRecord as b, CampaignTraceWriter as c, SearchOperation as ct, DispatchContext as d, SearchUnitScore as dt, RolloutScrubber as et, DispatchFn as f, searchCellId as ft, GateContribution as g, GateContext as h, CampaignCostMeter as i, SearchCell as it, MutableSurface as j, LabeledScenarioStore as k, CodeSurface as l, SearchScoredCell as lt, GateCheckStatus as m, searchTaskSetDigest as mt, CampaignArtifactWriter as n, mintRolloutRows as nt, CampaignScenarioIdentity as o, SearchDecisionRecord as ot, Gate as p, searchNodeId as pt, renderSearchSummary as q, CampaignCellResult as r, unmintableReasons as rt, CampaignTokenUsage as s, SearchNode as st, CampaignAggregates as t, RolloutSearchLineage as tt, ComponentSurface as u, SearchSpend as ut, GateResult as v, JudgeScore as w, JudgeAggregate as x, GenerationCandidate as y, ScenarioAggregate as z };
|
|
1105
|
-
//# sourceMappingURL=types-
|
|
1109
|
+
//# sourceMappingURL=types-D5XtEH9Q.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-D5XtEH9Q.d.ts","names":[],"sources":["../src/campaign/search-state-identity.ts","../src/campaign/search-state-types.ts","../src/campaign/search-state-indexes.ts","../src/rollout/mint.ts","../src/campaign/search-state-view.ts","../src/campaign/search-state-projection.ts","../src/campaign/search-summary.ts","../src/campaign/types.ts"],"mappings":";;;;;;;;;;;iBAOgB,aAAa,kBAAkB;;iBAK/B,aACd,kBACA,gBACA,gBACA,OAAO,aACP;;iBAMc,oBAAoB,gBAAgB,eAAe;UCHlD;EACf;EACA,UAAU;EACV,OAAO;EACP;EACA;;UAGe;EACf;EACA;EACA;EACA;;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A;EACA,iBAAiB;;;EAGjB,WAAW,MAAM,2BAA2B,KAAK"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gt as SeriesDistribution } from "./index-
|
|
1
|
+
import { gt as SeriesDistribution } from "./index-Bk1XEkP7.js";
|
|
2
2
|
import { C as RolloutWorkspaceCapture, h as RolloutLine } from "./schema-BfSoJjD-.js";
|
|
3
3
|
/** A metric that could not be computed, with the reason its artifact was missing. */
|
|
4
4
|
interface Unavailable {
|
|
@@ -148,6 +148,12 @@ interface SupervisorRunSources {
|
|
|
148
148
|
* holds no such record; `undefined` = the store has no failure document.
|
|
149
149
|
*/
|
|
150
150
|
readonly failure?: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* The output of the node that stopped the graph, read for a `stopped`
|
|
153
|
+
* no-winner `result.json`: the last node in `result.tree.nodes` and its
|
|
154
|
+
* output blob. Absent when the source has no such record.
|
|
155
|
+
*/
|
|
156
|
+
readonly graphStop?: GraphStopSource;
|
|
151
157
|
/**
|
|
152
158
|
* Judge verdict document (JSON), or the matching ledger row re-encoded as
|
|
153
159
|
* one. Runners that write the verdict straight to a ledger leave no judge
|
|
@@ -419,16 +425,33 @@ type SupervisorStatusSource =
|
|
|
419
425
|
'runtime-result' |
|
|
420
426
|
/** Runtime's `failure.json`: `supervise()` threw before a result landed. */
|
|
421
427
|
'runtime-failure';
|
|
428
|
+
/** The last settled node of a `stopped` graph and the output that stopped it. */
|
|
429
|
+
interface GraphStopSource {
|
|
430
|
+
/** The node's `label`; null when the node or its label is absent. */
|
|
431
|
+
readonly label: string | null;
|
|
432
|
+
/** The parsed output blob; undefined when it could not be read. */
|
|
433
|
+
readonly output?: unknown;
|
|
434
|
+
/** Why `output` is absent; null when it was read. */
|
|
435
|
+
readonly absent: string | null;
|
|
436
|
+
}
|
|
422
437
|
/** The error a run directory recorded. */
|
|
423
438
|
interface TerminalFailure {
|
|
424
439
|
/**
|
|
425
|
-
* Which record carried the error: Runtime's `failure.json`,
|
|
426
|
-
* rejection inside a `driver-failed` no-winner `result.json
|
|
440
|
+
* Which record carried the error: Runtime's `failure.json`, the driver
|
|
441
|
+
* rejection inside a `driver-failed` no-winner `result.json`, or the output
|
|
442
|
+
* of the node whose result stopped the graph (`graph-stop`, a `stopped`
|
|
443
|
+
* no-winner with no error).
|
|
444
|
+
*/
|
|
445
|
+
readonly source: 'runtime-failure' | 'runtime-result' | 'graph-stop';
|
|
446
|
+
/**
|
|
447
|
+
* `error.name` exactly as recorded; for `graph-stop`, the stopping node's
|
|
448
|
+
* label. Null when the record has none.
|
|
427
449
|
*/
|
|
428
|
-
readonly source: 'runtime-failure' | 'runtime-result';
|
|
429
|
-
/** `error.name` exactly as recorded; null when the record has none. */
|
|
430
450
|
readonly name: string | null;
|
|
431
|
-
/**
|
|
451
|
+
/**
|
|
452
|
+
* `error.message` exactly as recorded; for `graph-stop`, the `reason` of the
|
|
453
|
+
* stopping node's output. Null when the record has none.
|
|
454
|
+
*/
|
|
432
455
|
readonly message: string | null;
|
|
433
456
|
/** ISO timestamp the record carries; null when it carries none. */
|
|
434
457
|
readonly at: string | null;
|
|
@@ -562,5 +585,5 @@ interface SupervisorRunTreeGap {
|
|
|
562
585
|
readonly nodeId?: string;
|
|
563
586
|
readonly count?: number;
|
|
564
587
|
}
|
|
565
|
-
export {
|
|
566
|
-
//# sourceMappingURL=types-
|
|
588
|
+
export { WorkerNativeSession as A, SupervisorRunTreeGap as C, Unavailable as D, TerminalFailure as E, isUnavailable as M, showMeasured as N, WallDistribution as O, unavailable as P, SupervisorRunTree as S, SupervisorStatusSource as T, SupervisorRunNodeRole as _, NamedResourceReceipt as a, SupervisorRunRollup as b, PatchStats as c, RoleSpend as d, RollupCellRow as f, SteerBreakdown as g, SpendMeasurements as h, Measured as i, WorkerTurnCoverage as j, WorkerLogSource as k, PerWorkerRow as l, SpendMeasurement as m, EconomicsMetrics as n, OrchestrationMetrics as o, SourceLimits as p, GraphStopSource as r, OutcomeMetrics as s, DecisionMetrics as t, ResourceSpendRecord as u, SupervisorRunReader as v, SupervisorRunTreeGapCode as w, SupervisorRunSources as x, SupervisorRunReport as y };
|
|
589
|
+
//# sourceMappingURL=types-xVtEOBhO.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-xVtEOBhO.d.ts","names":[],"sources":["../src/supervisor-run/types.ts"],"mappings":";;;UAkCiB;WACN;;;KAIC,SAAS,KAAK,IAAI;iBAEd,YAAY,iBAAiB;iBAI7B,cAAc,aAAa,KAAK;;iBAKhC,aAAa,GAAG;;KAWpB;;UAGK;WACN;WACA;;;KAIC;WAEG;WACA;;;WAGA;;;;WAIA;;WAEA;WAAgC;;;;;;UAM9B;;;;;WAKN;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;;;;;WAMA,QAAQ;;;;;;WAMR,gBAAgB;;WAEhB,6BAA6B;;WAE7B;;WAEA;WACA;WACA;WACA;;;;;;;;;;;;;UAcM;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;;;;;;;;;;UAqBM;;WAEN;WACA;;WAEA;;WAEA;;;;;;WAMA;;;;;;WAMA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB;;;;WAIA;;;;;;WAMA;;;;;;WAMA,YAAY;;;;;;;WAOZ;;WAEA;;WAEA;;WAEA;;;;;;WAMA;;;;;WAKA;IACP;IACA;IACA;IACA;;IAEA;IACA;;WAEO;;WAEA,QAAQ;;;;;WAKR;;WAEA,iCAAiC;;;;;WAKjC;;;;;;UAOM;;WAEN;EACT,QAAQ,QAAQ;;cAOL;cACA;UAEI;;WAEN;WACA;;WAEA;;WAEA;;UAGM;WACN,gBAAgB;WAChB,gBAAgB;WAChB,kBAAkB;;WAElB,QAAQ;WACR,iBAAiB;WACjB,gBAAgB,kBAAkB;;WAElC,kBAAkB;;;;;;WAMlB,OAAO;WACP,WAAW;WACX,gBAAgB;;WAEhB,UAAU;;WAEV,gBAAgB;;WAEhB,iBAAiB;WACjB,oB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B;WACzB;WACA,eAAe;WACf,UAAU;WACV,WAAW;WACX,SAAS;;WAET,gCAAgC;;WAEhC;;WAEA;;UAGM;;WAEN,kBAAkB,kBAAkB;WACpC;WACA;WACA,QAAQ;WACR,OAAO;WACP,aAAa;WACb,SAAS;WACT,UAAU;WACV,KAAK;;UAGC;WACN,eAAe;WACf;WACA,aAAa;WACb,iBAAiB;WACjB;WACA,WAAW;WACX,mBAAmB;WACnB,iBAAiB;WACjB,aAAa;WACb,qBAAqB;WACrB,eAAe;;;;;WAKf,UAAU;;;;;;;WAOV;aACE;eAA2B,OAAO;eAA2B;;aAC7D;eAAwB,OAAO;eAA2B;;;WAE5D,eAAe;WACf,kBAAkB;;;;;;;;UASZ;WACN;WACA,gBAAgB;;WAEhB,eAAe;;;KAId;UAYK;WACN,MAAM;WACN;WACA;WACA"}
|
package/dist/wire/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as CustomTokenPricing, o as CostLedgerHandle } from "../cost-ledger-CSP-OfFe.js";
|
|
2
|
-
import { n as ChatClient } from "../chat-client-
|
|
2
|
+
import { n as ChatClient } from "../chat-client-BlTooBDA.js";
|
|
3
3
|
import { s as TraceStore } from "../store-CMs5wGXP.js";
|
|
4
|
-
import { m as FeedbackTrajectoryStore } from "../feedback-trajectory-
|
|
4
|
+
import { m as FeedbackTrajectoryStore } from "../feedback-trajectory-CoQPmSJV.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { ServerType } from "@hono/node-server";
|
|
7
7
|
import { Hono } from "hono";
|
|
@@ -213,9 +213,9 @@ export declare const FeedbackTrajectorySchema: z.ZodObject<{
|
|
|
213
213
|
value: z.ZodUnknown;
|
|
214
214
|
reason: z.ZodOptional<z.ZodString>;
|
|
215
215
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
error: "error";
|
|
216
217
|
critical: "critical";
|
|
217
218
|
info: "info";
|
|
218
|
-
error: "error";
|
|
219
219
|
warning: "warning";
|
|
220
220
|
}>>;
|
|
221
221
|
createdAt: z.ZodString;
|
|
@@ -249,9 +249,9 @@ export declare const FeedbackTrajectorySchema: z.ZodObject<{
|
|
|
249
249
|
value: z.ZodUnknown;
|
|
250
250
|
reason: z.ZodOptional<z.ZodString>;
|
|
251
251
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
error: "error";
|
|
252
253
|
critical: "critical";
|
|
253
254
|
info: "info";
|
|
254
|
-
error: "error";
|
|
255
255
|
warning: "warning";
|
|
256
256
|
}>>;
|
|
257
257
|
createdAt: z.ZodString;
|
package/dist/wire/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { u as ErrorResponseSchema, d as FeedbackTrajectorySchema, f as TraceEventSchema, p as WIRE_VERSION, c as WireError, t as createApp, a as dispatchRpc, n as startServer, r as startServerAsync } from "../server-
|
|
1
|
+
export { u as ErrorResponseSchema, d as FeedbackTrajectorySchema, f as TraceEventSchema, p as WIRE_VERSION, c as WireError, t as createApp, a as dispatchRpc, n as startServer, r as startServerAsync } from "../server-aZFmRucn.js";
|
package/dist/world/index.d.ts
CHANGED
|
@@ -85,11 +85,28 @@ pairs, with a score constant inside a unit counted as no association there. Unit
|
|
|
85
85
|
summaries are resampled, so a unit drawn twice stays two units. A pooled statistic can be carried entirely by
|
|
86
86
|
differences between units, such as larger repositories failing more; the within-unit statistic cannot.
|
|
87
87
|
|
|
88
|
+
`scope: 'stratified'` is the same statistic with a caller's `stratum` in place of the unit, such as a bin of
|
|
89
|
+
an exposure. Strata cross units, so a resample draws whole units and regroups their rows by stratum; a unit
|
|
90
|
+
drawn twice puts its rows in its strata twice, as any whole-unit resample does. For AUC it is the sum of the
|
|
91
|
+
Mann-Whitney counts inside strata over the sum of their comparable pairs, and the within-unit scope is its
|
|
92
|
+
special case with each unit its own stratum. `measureValidityStudy` uses it for an outcome's declared exposure: bins at
|
|
93
|
+
the exposure's quantiles before the cut, so a measure that predicts only because bigger changes have more to go
|
|
94
|
+
wrong is compared only with changes of about the same size. Quantile bins leave residual exposure inside each
|
|
95
|
+
bin; ten bins remove most of a monotone exposure effect, and a measure that tracks the exposure closely can keep
|
|
96
|
+
a small within-bin effect from that residue, which the report shows as an estimate near the null.
|
|
97
|
+
|
|
88
98
|
`measureValidityStudy` fixes each measure's direction before the cut, so its tests are one-sided in that
|
|
89
99
|
direction and Benjamini-Hochberg runs on those p-values. A two-sided test would admit a measure whose direction
|
|
90
100
|
reversed. The one-sided test has a known weakness: when the same units appear on both sides of the cut, a
|
|
91
101
|
coincidence among those units can choose the direction and then confirm it, raising the pooled error rate up to
|
|
92
102
|
twice the level. The within-unit test is immune to that, because unit-level coincidences cancel inside a unit,
|
|
93
|
-
and `predicts` requires it wherever it
|
|
103
|
+
and `predicts` requires it wherever it is tested; a pooled-only pass is labelled `predicts-pooled-only`. The
|
|
104
|
+
within-unit estimate is reported from two comparable units, but tested only from `minUnits`: with fewer units its
|
|
105
|
+
Student-t test has too few degrees of freedom to mean much, and a `predicts` pair resting on the pooled test alone
|
|
106
|
+
says so with `within-unit-untested`. The test inside exposure bins is a third family, one-sided in its own
|
|
107
|
+
direction fixed before the cut, and it counts toward `predicts` only in the direction the pooled test admitted.
|
|
108
|
+
Each second family holds every pair with a pooled p-value that has its statistic, whatever the pooled result, not
|
|
109
|
+
only the pairs the pooled test admitted: shrinking a family to the admitted pairs would condition it on the
|
|
110
|
+
first test and make its q-values smaller than the family warrants.
|
|
94
111
|
Movement agreement is the AUC of a movement's sign for the better outcome, which equals balanced accuracy and
|
|
95
112
|
stays 0.5 under no relation whatever the outcome's base rate; it is tested one-sided as its own family.
|
package/docs/eval-surface-map.md
CHANGED
|
@@ -14,7 +14,7 @@ This reference covers direct execution controls and specialist modules.
|
|
|
14
14
|
| [`raceProfileMatrix()`](../examples/profile-matrix-report/) | `/campaign` | Run a profile-matrix plan in doubling batches and stop paying for profiles clearly worse than the leader. | Elimination log, survivors, the final paired comparison, and the selection-bias warning. |
|
|
15
15
|
| [`renderProfileMatrixReport()`](../examples/profile-matrix-report/) | `/campaign` | Turn profile-matrix records into one decision page: frontiers, paired differences, factor effects, slices, error overlap, difficulty, calibration and power, with cells that ran fewer cases kept in a partial-coverage table. | A self-contained HTML string; `analyzeProfileMatrix()` returns the numbers, the panel and its common cases. |
|
|
16
16
|
| [`runOptimization()`](./campaign-proposers.md#write-a-custom-candidate-generator) | `/campaign` | Generate, measure, and select candidates on development cases. | Generations and a winner surface. |
|
|
17
|
-
| [`runImprovementLoop()`](./
|
|
17
|
+
| [`runImprovementLoop()`](./trajectory-optimization.md) | `/contract` or `/campaign` | Search, compare on final cases, and apply a release gate. | Final comparison, winner, and gate decision. |
|
|
18
18
|
| [`compareOptimizationMethods()`](../examples/compare-optimization-methods/) | `/campaign` | Compare selected surfaces from several methods under declared budgets. | Final paired contrasts, uncertainty, and costs. |
|
|
19
19
|
| [`runEvalCampaign()`](../src/eval-campaign.ts) | Root | Run with a caller-supplied trace sink and emitter. | Campaign result and records. |
|
|
20
20
|
| [`runAgentMatrix()`](../src/matrix/runner.ts) | `/matrix` | Schedule a general Cartesian grid without campaign scoring semantics. | Cell results. |
|
package/docs/feature-guide.md
CHANGED
|
@@ -208,6 +208,6 @@ Downstream integrations provide domain state, policy, tools, and storage.
|
|
|
208
208
|
evidence inspection.
|
|
209
209
|
- `examples/eval-fixtures-quickstart`: Vercel-style fixture folders with a
|
|
210
210
|
dry-run plan and campaign cache reuse.
|
|
211
|
-
- `examples/
|
|
211
|
+
- `examples/trajectory-optimization`: full-trajectory optimization with a
|
|
212
212
|
holdout gate.
|
|
213
213
|
- `examples/benchmarks`: benchmark adapter contracts and reference wrappers.
|
|
@@ -51,7 +51,8 @@ Agent success moves with the user model as well as the agent, so a comparison ho
|
|
|
51
51
|
|
|
52
52
|
- The simulated user is built from the scenario and the rollout's fixed options only. The candidate surface never reaches its prompt, opener or description of the agent.
|
|
53
53
|
- `SimulatedUserIdentity` digests the user model, fallbacks, rigor, persona, prompt, opener and ending protocol. `dispatchRef` hashes the same options, so caches and premeasured baselines never cross users.
|
|
54
|
-
- `conversationGate()` refuses with `SimulatedUserMismatchError` when any paired held-out conversation met a different user, ran on a different seed, or carries no identity
|
|
54
|
+
- `conversationGate()` refuses with `SimulatedUserMismatchError` when any paired held-out conversation met a different user, ran on a different seed, or carries no identity, and reports the pairs it compared as `pairedConversations`. Outside the gate, call `assertSameSimulatedUser(baselineCells, candidateCells)`, which returns that count.
|
|
55
|
+
- Pass `gate: conversationGate()` to `compareOptimizationMethods()` to run the same check on each method's winner against the baseline's final test cells; the decision is on each score's `gate`.
|
|
55
56
|
|
|
56
57
|
## Report reliability across repeats
|
|
57
58
|
|
|
@@ -68,6 +69,8 @@ A dispatch or judge failure is counted in `failedCells`, never as an agent failu
|
|
|
68
69
|
3. `simulatorRealismJudge()` is a System One decision point at the turn layer. It sees the context and both messages, in both orders, and picks the one the real user wrote. Its calibration must reach `DECISION_POINT_MIN_KAPPA` and carry the `questionDigest` of this exact question and served model; otherwise every judgment is recorded as uncalibrated. Build that digest with `decisionQuestionDigest` from `/systemone` over `SIMULATOR_REALISM_QUESTIONS.real`, the text the judge asks, so a calibration set labelled under other wording cannot certify it.
|
|
69
70
|
|
|
70
71
|
Accuracy is reported per independent conversation with a cluster bootstrap interval. 50% means the judge cannot tell the simulator from real users.
|
|
72
|
+
A turn counts only when both of its orders were judged; a turn with one failed order is dropped and counted in `unbalancedTurns`, so the judge's position bias cannot count.
|
|
73
|
+
`indistinguishable` says only that the interval contains 0.5, which a small sample satisfies with a wide interval. It is not an admission rule: admit on `accuracy.high` against a stated bound.
|
|
71
74
|
A row without a context digest, or with a digest its context does not match, is refused with `SharedContextIdentityError` before any driver call.
|
|
72
75
|
|
|
73
76
|
## Optimize the user side
|
|
@@ -76,5 +79,6 @@ A row without a context digest, or with a digest its context does not match, is
|
|
|
76
79
|
|
|
77
80
|
- Its objective is the agent's failure rate. It builds that judge itself and refuses a caller `judge` or `gate`; `conversationJudge()` refuses every conversation whose user side was the candidate, both with `UserSideObjectiveError`.
|
|
78
81
|
- A plan is admitted only when a calibrated realism judge's accuracy, at the upper end of its interval, stays at or below `realism.maxJudgeAccuracy`.
|
|
79
|
-
- An admitted plan's failing held-out conversations
|
|
82
|
+
- An admitted plan's failing held-out conversations are candidates with the plan as `userPlan` and `origin.kind: 'adversarial-user'`. Each runs again under its plan, with `solvability.referenceProfile` when given, else the same agent on `solvability.repeats` seeded repeats (default 3). A candidate passed at least once becomes a `trainScenarios` entry with the pass on `origin.solvedBy`; one never passed goes to `unsolvableScenarios` with the reason and the attempts, and is never emitted, since a plan that withholds what the outcome check needs teaches nothing.
|
|
83
|
+
- `conversationGate()` refuses emitted scenarios in a held-out split with `AdversarialScenarioInHeldOutError` before the held-out run starts, so a refused split spends nothing; for other comparisons call `assertHeldOutExcludesAdversarial()`.
|
|
80
84
|
- Scenarios that share an id or persona with the agent's held-out split are refused with `AdversarialSplitError`.
|
package/docs/outcome-validity.md
CHANGED
|
@@ -101,12 +101,27 @@ Confirm any proposed change with fresh evidence and fixed scoring rules.
|
|
|
101
101
|
import { sealMeasureValidityPlan } from '@tangle-network/agent-eval/experiment'
|
|
102
102
|
import { measureValidityStudy, type MeasuredChange } from '@tangle-network/agent-eval/meta-eval'
|
|
103
103
|
|
|
104
|
+
const DAY = 24 * 60 * 60 * 1000
|
|
104
105
|
const plan = sealMeasureValidityPlan({
|
|
105
106
|
id: 'which-numbers-predict-kept-changes',
|
|
106
107
|
cut: Date.parse('2026-10-01T00:00:00Z'),
|
|
107
108
|
level: 0.05,
|
|
108
|
-
outcomes: [
|
|
109
|
-
|
|
109
|
+
outcomes: [
|
|
110
|
+
{ id: 'kept', direction: 'higher-is-better', kind: 'binary', windowMs: 14 * DAY },
|
|
111
|
+
// A bigger change has more to fix: test every other measure inside size bins too.
|
|
112
|
+
{
|
|
113
|
+
id: 'needed_fix',
|
|
114
|
+
direction: 'lower-is-better',
|
|
115
|
+
kind: 'binary',
|
|
116
|
+
windowMs: 14 * DAY,
|
|
117
|
+
exposure: { measure: 'lines_added' },
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
measures: [
|
|
121
|
+
{ id: 'review_depth' },
|
|
122
|
+
{ id: 'test_delta', noise: 0.1, cost: 1 },
|
|
123
|
+
{ id: 'lines_added' },
|
|
124
|
+
],
|
|
110
125
|
})
|
|
111
126
|
|
|
112
127
|
const change: MeasuredChange = {
|
|
@@ -117,32 +132,52 @@ const change: MeasuredChange = {
|
|
|
117
132
|
movements: { test_delta: { before: 0.1, after: 0.5 } }, // optional
|
|
118
133
|
}
|
|
119
134
|
|
|
120
|
-
|
|
135
|
+
// asOf: when the outcomes were read; required when an outcome declares windowMs.
|
|
136
|
+
const report = await measureValidityStudy({
|
|
137
|
+
plan,
|
|
138
|
+
changes: [change /* , ... */],
|
|
139
|
+
outcomes,
|
|
140
|
+
asOf: Date.now(),
|
|
141
|
+
})
|
|
121
142
|
```
|
|
122
143
|
|
|
123
144
|
Seal the plan before reading changes made after the cut, and keep its digest where an independent reader can see it.
|
|
124
145
|
The study refuses a plan whose seal does not verify; the seal proves identity, not when it was made.
|
|
146
|
+
A plan sealed now carries `format: 2`.
|
|
147
|
+
A plan sealed before `format` existed still verifies under the digest it was sealed with and runs under the rules it was sealed with: no outcome window, exposure or minimum effect.
|
|
125
148
|
[`examples/measure-validity`](../examples/measure-validity/) runs the whole path on generated history.
|
|
126
149
|
|
|
127
150
|
The cut splits the changes.
|
|
128
151
|
A change made before the cut fixes each measure's direction, its standardization and the selected subset, reading only outcomes captured by the cut.
|
|
129
152
|
Every reported statistic comes from changes made at or after the cut, with those choices fixed.
|
|
130
|
-
`excludedObservations` counts outcomes captured before their change, beyond `maxCaptureLagMs`, or after the cut for a change made before it.
|
|
153
|
+
`excludedObservations` counts outcomes captured before their change, after `asOf` (`capturedAfterAsOf`), beyond `maxCaptureLagMs`, or after the cut for a change made before it, each under the first of those that applies; then change-outcome pairs whose window had not closed, at the cut for a change before it (`windowOpenAtCut`) or at `asOf` for a change after it (`windowOpenAtEnd`).
|
|
154
|
+
|
|
155
|
+
Declare `windowMs` on any outcome decided within a window after the change.
|
|
156
|
+
A common record writes an event (a later fix, a revert) when it happens and its absence when the window closes.
|
|
157
|
+
Without the window, the changes just before the cut keep their events, already known by the cut, and lose their non-events, not yet written; when a measure drifts over time, the direction fitted before the cut follows the drift toward the event and can reverse.
|
|
158
|
+
The last changes read carry the same bias into the held-out half: a measure that only trends with time is admitted.
|
|
159
|
+
With `windowMs`, a change before the cut counts for that outcome only when its window closed by the cut, and a change after the cut only when its window closed by `asOf`, the time the outcomes were read, whatever its value and capture time.
|
|
160
|
+
An outcome with `windowMs` therefore needs `asOf`; the study refuses to run without it.
|
|
131
161
|
|
|
132
162
|
| Field | Meaning |
|
|
133
163
|
|---|---|
|
|
134
164
|
| `coverage` | Per measure: changes, measured changes and share, before and after the cut. An absent value is unmeasured, never zero. |
|
|
135
|
-
| `pairs[].label` | `predicts`: the pooled test passes
|
|
136
|
-
| `pairs[].reason` | Why a pair is not `predicts
|
|
165
|
+
| `pairs[].label` | `predicts`: the pooled test passes, the test inside exposure bins passes when the outcome names an exposure, and the within-unit test passes when it is tested. `predicts-through-exposure`: the pooled test passes and the test inside exposure bins does not, so the measure may predict only by tracking the exposure. `predicts-pooled-only`: the pooled test passes and the tested within-unit test does not, so the ranking may come from differences between units rather than between changes. `not-shown`: tested and not admitted. `insufficient`: not tested. |
|
|
166
|
+
| `pairs[].reason` | Why a pair is not `predicts`, or what it rests on: `below-minimum-count` (fewer than `minJoined`, default 100, joined changes after the cut), `too-few-units` (fewer than `minUnits`, default 20), `too-little-variation` (fewer than `minMinority`, default 20, joined changes after the cut differ from the measure's most common value: the smaller class of a two-valued measure), `no-pre-cut-direction`, `constant-after-cut`, `not-significant`, `direction-reversed` (the interval lies wholly past the null), `within-exposure-not-shown` (not shown inside exposure bins in the admitted direction), `within-exposure-untested`, `within-unit-not-shown`, and `within-unit-untested` on a `predicts` pair whose within-unit statistic was not tested, so the label rests on the pooled test. |
|
|
137
167
|
| `pairs[].postCut.association` | The pooled statistic: AUC for a binary outcome, Spearman for a continuous one, aligned so above the null favors the better outcome; whole-unit standard error, percentile interval and one-sided p-value from `clusteredAssociation()`. |
|
|
138
|
-
| `pairs[].postCut.withinUnit` | The same statistic computed inside each unit and weighted by its comparable pairs
|
|
168
|
+
| `pairs[].postCut.withinUnit` | The same statistic computed inside each unit and weighted by its comparable pairs. Reported with its interval when at least two units hold a pair of changes with different outcomes; tested, with `withinUnitQValue`, only when `minUnits` do. |
|
|
169
|
+
| `pairs[].postCut.withinExposure` | With an exposure: the statistic inside each exposure bin, weighted by its comparable pairs, resampling whole units, aligned to `withinExposureDirection`, which is fixed before the cut on this same statistic. Null for the exposure's own pair. |
|
|
170
|
+
| `exposures` | Per outcome with an exposure: the measure, the bin count and the interior edges, at the exposure's quantiles over changes before the cut. |
|
|
139
171
|
| `hypothesis` | Every p-value is one-sided in the direction fixed before the cut. |
|
|
140
|
-
| `tested`, `withinUnitTested` |
|
|
172
|
+
| `tested`, `withinUnitTested`, `withinExposureTested` | Sizes of the three false-discovery families, each Benjamini-Hochberg at the plan's level. The pooled family is every pair given a pooled p-value. The within-unit family is every such pair whose within-unit statistic is tested (`minUnits` units hold a comparable pair), and the within-exposure family every such pair with a statistic inside exposure bins, whatever their pooled result: the families do not shrink to the pairs the pooled test admitted. |
|
|
141
173
|
| `pairs[].leadTimeMs` | Outcome capture time minus change time over the joined changes after the cut. |
|
|
142
174
|
| `pairs[].movement` | With before and after values: `sensitivity` (share of changes that moved beyond the measure's declared `noise`) and `agreement` (balanced agreement between the movement's direction and the better outcome, 0.5 under no relation), each with a whole-unit interval. `insensitive` marks a measure that predicts across items but does not move under change. |
|
|
143
|
-
| `selections[]` | Per outcome: `climb`, a subset chosen before the cut by greedy forward selection on the equal-weight composite; `guards`, admitted measures not climbed (`redundant`, `no-gain`, `size-limit`); `excluded`, measures that
|
|
175
|
+
| `selections[]` | Per outcome: `climb`, a subset chosen before the cut by greedy forward selection on the equal-weight composite; `guards`, admitted measures not climbed (`redundant`, `no-gain`, `size-limit`); `excluded`, the exposure itself (`exposure`) and measures that predict only through it (`through-exposure`), only across units (`pooled-only`), do not move under change (`insensitive`), move against the outcome, or sit closer to the null after the cut than `selection.minEffect` (`below-minimum-effect`); `composite`, the subset's statistic before and after the cut. |
|
|
144
176
|
|
|
145
|
-
The
|
|
177
|
+
The label is statistical: on a large sample a measure can be admitted at an AUC near 0.52, real and too small to be worth climbing.
|
|
178
|
+
A measure is climbed only when its after-cut estimate, aligned to its direction, is at least `selection.minEffect` above the null: by default `{ auc: 0.05, spearman: 0.1 }`, and a plan may set either.
|
|
179
|
+
When the outcome names an exposure, that estimate is the one inside exposure bins, since the pooled estimate also carries the exposure's own effect.
|
|
180
|
+
Past that floor, the selection reads only changes before the cut.
|
|
146
181
|
A candidate whose absolute rank correlation with a climbed measure reaches `maxRedundancy` (default 0.9) is a redundant guard; another must add at least `minGain` (default 0.01) to the composite's statistic.
|
|
147
182
|
The composite's post-cut score reads the changes admission read, so it describes the chosen subset; the next batch is its independent check.
|
|
148
183
|
|
|
@@ -153,8 +188,12 @@ Guards are measured at change time, so the check runs before the outcome arrives
|
|
|
153
188
|
Each test is one-sided in the direction fixed before the cut, so a measure whose direction reversed is never admitted.
|
|
154
189
|
When the same units appear on both sides of the cut, a coincidence among those units can choose the direction and then confirm it on the pooled statistic; the within-unit statistic cannot be moved by such a coincidence, which is why `predicts` requires it where it can be estimated.
|
|
155
190
|
|
|
156
|
-
|
|
157
|
-
|
|
191
|
+
An outcome can grow with a measure for a reason other than quality: a bigger change has more to fix, more lines for a later fix to touch, more chances to be reverted.
|
|
192
|
+
Every volume-like measure then predicts the outcome through size, and the within-unit statistic does not catch it when size varies inside a unit.
|
|
193
|
+
Name the size measure as the outcome's `exposure`.
|
|
194
|
+
Its bins are fixed before the cut, every other measure is also tested inside them, and only a measure that passes there is climbed; the exposure itself is reported and never climbed.
|
|
195
|
+
Bins cut at quantiles leave some exposure inside each bin, so a measure that tracks the exposure closely can still show a small effect inside bins; read its size, not only its label.
|
|
196
|
+
An outcome defined by overlap with the change's own content, such as "a later fix touched the same lines", is exposed by construction: record a stricter outcome that does not depend on size, such as a later fix that names the change, and report it beside the overlap outcome.
|
|
158
197
|
|
|
159
198
|
Prediction is not causation.
|
|
160
199
|
An admitted measure forecasts the outcome of changes like these; it does not show that raising the measure raises the outcome, and a climbed measure can be moved without the work it used to reflect.
|