@tangle-network/agent-eval 0.203.1 → 0.203.4
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 +15 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/analyst/index.d.ts +6 -6
- package/dist/analyst/index.js +1 -1
- package/dist/{benchmark-command-6OBcB0sG.js → benchmark-command-BpgCWzJm.js} +2 -2
- package/dist/{benchmark-command-6OBcB0sG.js.map → benchmark-command-BpgCWzJm.js.map} +1 -1
- package/dist/benchmarks/index.d.ts +4 -4
- package/dist/benchmarks/index.js +2 -2
- package/dist/campaign/index.d.ts +4 -4
- package/dist/campaign/index.js +3 -3
- package/dist/{campaign-BbObY2c6.js → campaign-DYhg4SjN.js} +4 -4
- package/dist/{campaign-BbObY2c6.js.map → campaign-DYhg4SjN.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/contract/index.d.ts +7 -7
- package/dist/contract/index.js +3 -3
- package/dist/{default-registry-CxEBVA6W.d.ts → default-registry-BHEfZHQd.d.ts} +3 -3
- package/dist/{default-registry-CxEBVA6W.d.ts.map → default-registry-BHEfZHQd.d.ts.map} +1 -1
- package/dist/{define-agent-eval-Da8mHyc7.js → define-agent-eval-B25Cc3ki.js} +2 -2
- package/dist/{define-agent-eval-Da8mHyc7.js.map → define-agent-eval-B25Cc3ki.js.map} +1 -1
- package/dist/{define-agent-eval-BbEXdM3H.d.ts → define-agent-eval-D8bPoBM5.d.ts} +5 -5
- package/dist/{define-agent-eval-BbEXdM3H.d.ts.map → define-agent-eval-D8bPoBM5.d.ts.map} +1 -1
- package/dist/{engine-CaSqEVlL.d.ts → engine-F_PvwesR.d.ts} +2 -2
- package/dist/{engine-CaSqEVlL.d.ts.map → engine-F_PvwesR.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/experiment/index.d.ts +1 -1
- package/dist/{index-Ce2HACcP.d.ts → index-B8n12TR2.d.ts} +9 -11
- package/dist/index-B8n12TR2.d.ts.map +1 -0
- package/dist/{index-CIkxRsLS.d.ts → index-C9l_-23M.d.ts} +3 -3
- package/dist/{index-CIkxRsLS.d.ts.map → index-C9l_-23M.d.ts.map} +1 -1
- package/dist/{index-CGAwP9l3.d.ts → index-CG7mtu_G.d.ts} +6 -6
- package/dist/{index-CGAwP9l3.d.ts.map → index-CG7mtu_G.d.ts.map} +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +5 -5
- package/dist/jev.d.ts +1 -1
- package/dist/judge-gate-B1qYnkpi.js +658 -0
- package/dist/judge-gate-B1qYnkpi.js.map +1 -0
- package/dist/judge-gate-BuQd7sSm.d.ts +454 -0
- package/dist/judge-gate-BuQd7sSm.d.ts.map +1 -0
- package/dist/{llm-judge-EUMHOZOQ.js → llm-judge-DyZdrp6I.js} +54 -12
- package/dist/llm-judge-DyZdrp6I.js.map +1 -0
- package/dist/{matrix-BqHiMKIj.d.ts → matrix-W1lbSx72.d.ts} +2 -2
- package/dist/{matrix-BqHiMKIj.d.ts.map → matrix-W1lbSx72.d.ts.map} +1 -1
- package/dist/meta-eval/index.d.ts +2 -132
- package/dist/meta-eval/index.d.ts.map +1 -1
- package/dist/meta-eval/index.js +2 -275
- package/dist/meta-eval/index.js.map +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/{produced-state-g9BPgu4D.js → produced-state-DLToUXrD.js} +2 -2
- package/dist/{produced-state-g9BPgu4D.js.map → produced-state-DLToUXrD.js.map} +1 -1
- package/dist/rl.d.ts +2 -2
- package/dist/search/index.d.ts +2 -2
- package/dist/{search-kernel-C5jua_UB.d.ts → search-kernel-DNpsHb8P.d.ts} +2 -2
- package/dist/{search-kernel-C5jua_UB.d.ts.map → search-kernel-DNpsHb8P.d.ts.map} +1 -1
- package/dist/{skillopt-optimization-method-DZrdQGZl.js → skillopt-optimization-method-Dz5CGZb8.js} +2 -2
- package/dist/{skillopt-optimization-method-DZrdQGZl.js.map → skillopt-optimization-method-Dz5CGZb8.js.map} +1 -1
- package/dist/{statistical-heldout-CJYAO-4a.d.ts → statistical-heldout-Dq3pnmxd.d.ts} +2 -2
- package/dist/{statistical-heldout-CJYAO-4a.d.ts.map → statistical-heldout-Dq3pnmxd.d.ts.map} +1 -1
- package/dist/{store-tool-spans-fIE31bU8.d.ts → store-tool-spans-CAF3T-BS.d.ts} +3 -3
- package/dist/{store-tool-spans-fIE31bU8.d.ts.map → store-tool-spans-CAF3T-BS.d.ts.map} +1 -1
- package/dist/{tool-groups-DP8b5kjF.d.ts → tool-groups-B7_jUPHp.d.ts} +2 -2
- package/dist/tool-groups-B7_jUPHp.d.ts.map +1 -0
- package/dist/{trace-questions-Cd0Fyhbv.d.ts → trace-questions-Dd3AMf-U.d.ts} +2 -2
- package/dist/{trace-questions-Cd0Fyhbv.d.ts.map → trace-questions-Dd3AMf-U.d.ts.map} +1 -1
- package/dist/trace-repair/index.d.ts +1 -1
- package/dist/traces.d.ts +2 -2
- package/dist/{types-hH9APahd.d.ts → types-DZQpUJse.d.ts} +2 -2
- package/dist/{types-hH9APahd.d.ts.map → types-DZQpUJse.d.ts.map} +1 -1
- package/dist/{types-Duc6xOoW.d.ts → types-ZUy5HGY5.d.ts} +9 -3
- package/dist/{types-Duc6xOoW.d.ts.map → types-ZUy5HGY5.d.ts.map} +1 -1
- package/docs/eval-surface-map.md +12 -2
- package/docs/proofs/campaign-attempt-retention-20261001/README.md +70 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-judge-attribution/attribution_0/attempts/e7949644-3d60-4ab9-817e-f80d0a48f5d8/attempt-1/artifacts/capture.json +3 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-judge-attribution/attribution_0/attempts/e7949644-3d60-4ab9-817e-f80d0a48f5d8/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-judge-attribution/attribution_0/attempts/e7949644-3d60-4ab9-817e-f80d0a48f5d8/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-judge-attribution/attribution_0/attempts/e7949644-3d60-4ab9-817e-f80d0a48f5d8/attempt-1/trace/spans.jsonl +0 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-judge-attribution/attribution_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-judge-attribution/attribution_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-legacy/capture-retention_0/attempts/7c7718f6-c85e-4867-9e3a-13ef9513de80/attempt-1/artifacts/captured-response.json +4 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-legacy/capture-retention_0/attempts/7c7718f6-c85e-4867-9e3a-13ef9513de80/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-legacy/capture-retention_0/attempts/7c7718f6-c85e-4867-9e3a-13ef9513de80/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-legacy/capture-retention_0/attempts/7c7718f6-c85e-4867-9e3a-13ef9513de80/attempt-1/trace/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-legacy/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-legacy/capture-retention_0/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-legacy/capture-retention_0/failure-receipt.json +58 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-legacy/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-legacy/capture-retention_0/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/baseline/capture-retention_0/attempts/3652118b-e1dc-4b17-bc15-6b802dc71eb1/attempt-1/artifacts/captured-response.json +4 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/baseline/capture-retention_0/attempts/3652118b-e1dc-4b17-bc15-6b802dc71eb1/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/baseline/capture-retention_0/attempts/3652118b-e1dc-4b17-bc15-6b802dc71eb1/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/baseline/capture-retention_0/attempts/3652118b-e1dc-4b17-bc15-6b802dc71eb1/attempt-1/trace/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/baseline/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/baseline/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/42b3fec6b7e55008/capture-retention_0/attempts/40e411fe-ad12-4e6b-a279-2cf07c356a2f/attempt-1/artifacts/captured-response.json +4 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/42b3fec6b7e55008/capture-retention_0/attempts/40e411fe-ad12-4e6b-a279-2cf07c356a2f/attempt-1/failure-receipt.json +62 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/42b3fec6b7e55008/capture-retention_0/attempts/40e411fe-ad12-4e6b-a279-2cf07c356a2f/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/42b3fec6b7e55008/capture-retention_0/attempts/40e411fe-ad12-4e6b-a279-2cf07c356a2f/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/42b3fec6b7e55008/capture-retention_0/attempts/40e411fe-ad12-4e6b-a279-2cf07c356a2f/attempt-1/trace/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/42b3fec6b7e55008/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/87740cc101602a08/capture-retention_0/attempts/9e7da63e-2d19-4ec1-a5ec-ec804e2b0f40/attempt-1/artifacts/captured-response.json +4 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/87740cc101602a08/capture-retention_0/attempts/9e7da63e-2d19-4ec1-a5ec-ec804e2b0f40/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/87740cc101602a08/capture-retention_0/attempts/9e7da63e-2d19-4ec1-a5ec-ec804e2b0f40/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/87740cc101602a08/capture-retention_0/attempts/9e7da63e-2d19-4ec1-a5ec-ec804e2b0f40/attempt-1/trace/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/87740cc101602a08/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/candidates/87740cc101602a08/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/first-interruption.json +38 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/search/blobs/19147243d263e55b1eaf1c940691947382a7cce17c5f49e4a4da765a473d2a55.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/search/blobs/5dd0d871d559d1c55b2ac04b3fbd26d62f7c9e25d7632d4542502cd292818fc0.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/search/blobs/5de45d632937e75ff90fec9f1f2ec425904d3632da71f6b26f83b1e1eb8cde5a.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/search/blobs/6caba627806e499aa3d9e156aec9d5a731a3ef30e29756d343b85b7217c77c11.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/search/blobs/ce2770851b3b7651f27cedcbad0372b9191e9a9b016665987e3ddd2ad53012b5.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/search/blobs/d8ac4ba8d9844afb4defa5cd277fe3cb944d99e58cf41c07d3ae199b6f467966.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/search/blobs/f59a02035fe96ea2f5582dd715d2e3ad8c184ae959310978962f1ac0780753bd.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/search/ledger.jsonl +23 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-optimization/search/ledger.jsonl.head +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-path-guard/capture-retention_0/attempts/3c8272d6-d35b-477e-9d08-085261b8dc64/attempt-1/artifacts/capture.json +3 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-path-guard/capture-retention_0/attempts/3c8272d6-d35b-477e-9d08-085261b8dc64/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-path-guard/capture-retention_0/attempts/3c8272d6-d35b-477e-9d08-085261b8dc64/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-path-guard/capture-retention_0/attempts/3c8272d6-d35b-477e-9d08-085261b8dc64/attempt-1/trace/spans.jsonl +0 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-path-guard/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-path-guard/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/attempts/2b022ccb-adb3-4468-8c21-48ee82d0634a/attempt-1/artifacts/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/attempts/2b022ccb-adb3-4468-8c21-48ee82d0634a/attempt-1/failure-receipt.json +81 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/attempts/2b022ccb-adb3-4468-8c21-48ee82d0634a/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/attempts/2b022ccb-adb3-4468-8c21-48ee82d0634a/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/attempts/2b022ccb-adb3-4468-8c21-48ee82d0634a/attempt-1/trace/spans.jsonl +2 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/attempts/c4859951-1e7c-4d23-b89a-0ca8fa79e2cf/attempt-1/artifacts/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/attempts/c4859951-1e7c-4d23-b89a-0ca8fa79e2cf/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/attempts/c4859951-1e7c-4d23-b89a-0ca8fa79e2cf/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/attempts/c4859951-1e7c-4d23-b89a-0ca8fa79e2cf/attempt-1/trace/spans.jsonl +2 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-resume/observation.json +608 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/attempts/74c13884-d47e-4b6d-a823-5bd44ee0e6cb/attempt-1/artifacts/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/attempts/74c13884-d47e-4b6d-a823-5bd44ee0e6cb/attempt-1/failure-receipt.json +81 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/attempts/74c13884-d47e-4b6d-a823-5bd44ee0e6cb/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/attempts/74c13884-d47e-4b6d-a823-5bd44ee0e6cb/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/attempts/74c13884-d47e-4b6d-a823-5bd44ee0e6cb/attempt-1/trace/spans.jsonl +2 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/attempts/74c13884-d47e-4b6d-a823-5bd44ee0e6cb/attempt-2/artifacts/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/attempts/74c13884-d47e-4b6d-a823-5bd44ee0e6cb/attempt-2/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/attempts/74c13884-d47e-4b6d-a823-5bd44ee0e6cb/attempt-2/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/attempts/74c13884-d47e-4b6d-a823-5bd44ee0e6cb/attempt-2/trace/spans.jsonl +2 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-retry/observation.json +514 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/after-summary.json +1853 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/judge-attribution.json +140 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/qualification.log +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/qualify.mjs +165 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduce.mjs +39 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-resume/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-resume/capture-retention_0/captured-response.json +5 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-resume/capture-retention_0/failure-receipt.json +58 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-resume/capture-retention_0/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-resume/observer-retained-captures.json +20 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-retry/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-retry/capture-retention_0/captured-response.json +5 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-retry/capture-retention_0/failure-receipt.attempt-1.json +58 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-retry/capture-retention_0/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-retry/observer-retained-captures.json +20 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction-summary.json +315 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/reproduction.log +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/source-and-build.json +2409 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/typecheck.log +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/current/verify-package.log +340 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-legacy/capture-retention_0/attempts/33d57ccb-d4d8-4c23-92e3-c1ddf7db6058/attempt-1/artifacts/captured-response.json +4 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-legacy/capture-retention_0/attempts/33d57ccb-d4d8-4c23-92e3-c1ddf7db6058/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-legacy/capture-retention_0/attempts/33d57ccb-d4d8-4c23-92e3-c1ddf7db6058/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-legacy/capture-retention_0/attempts/33d57ccb-d4d8-4c23-92e3-c1ddf7db6058/attempt-1/trace/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-legacy/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-legacy/capture-retention_0/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-legacy/capture-retention_0/failure-receipt.json +58 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-legacy/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-legacy/capture-retention_0/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-optimization/baseline/capture-retention_0/attempts/6b25a1d2-5324-445b-b59d-bdc7381cd4b4/attempt-1/artifacts/captured-response.json +4 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-optimization/baseline/capture-retention_0/attempts/6b25a1d2-5324-445b-b59d-bdc7381cd4b4/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-optimization/baseline/capture-retention_0/attempts/6b25a1d2-5324-445b-b59d-bdc7381cd4b4/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-optimization/baseline/capture-retention_0/attempts/6b25a1d2-5324-445b-b59d-bdc7381cd4b4/attempt-1/trace/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-optimization/baseline/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-optimization/baseline/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-optimization/first-interruption.json +5 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-optimization/search/blobs/5de45d632937e75ff90fec9f1f2ec425904d3632da71f6b26f83b1e1eb8cde5a.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-optimization/search/ledger.jsonl +7 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-optimization/search/ledger.jsonl.head +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-path-guard/capture-retention_0/attempts/723fa9c6-099e-437c-bddf-a4cbd28a8508/attempt-1/artifacts/capture.json +3 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-path-guard/capture-retention_0/attempts/723fa9c6-099e-437c-bddf-a4cbd28a8508/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-path-guard/capture-retention_0/attempts/723fa9c6-099e-437c-bddf-a4cbd28a8508/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-path-guard/capture-retention_0/attempts/723fa9c6-099e-437c-bddf-a4cbd28a8508/attempt-1/trace/spans.jsonl +0 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-path-guard/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-path-guard/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/attempts/06db3429-c5c6-42c1-8623-08e2da1f563e/attempt-1/artifacts/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/attempts/06db3429-c5c6-42c1-8623-08e2da1f563e/attempt-1/failure-receipt.json +62 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/attempts/06db3429-c5c6-42c1-8623-08e2da1f563e/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/attempts/06db3429-c5c6-42c1-8623-08e2da1f563e/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/attempts/06db3429-c5c6-42c1-8623-08e2da1f563e/attempt-1/trace/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/attempts/d49f7e40-c4d2-4cb6-98d1-5e49f45c6e2c/attempt-1/artifacts/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/attempts/d49f7e40-c4d2-4cb6-98d1-5e49f45c6e2c/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/attempts/d49f7e40-c4d2-4cb6-98d1-5e49f45c6e2c/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/attempts/d49f7e40-c4d2-4cb6-98d1-5e49f45c6e2c/attempt-1/trace/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-resume/observation.json +458 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/attempts/cf34f352-67e5-4e8b-a510-0e896bcc96fc/attempt-1/artifacts/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/attempts/cf34f352-67e5-4e8b-a510-0e896bcc96fc/attempt-1/failure-receipt.json +62 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/attempts/cf34f352-67e5-4e8b-a510-0e896bcc96fc/attempt-1/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/attempts/cf34f352-67e5-4e8b-a510-0e896bcc96fc/attempt-1/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/attempts/cf34f352-67e5-4e8b-a510-0e896bcc96fc/attempt-1/trace/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/attempts/cf34f352-67e5-4e8b-a510-0e896bcc96fc/attempt-2/artifacts/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/attempts/cf34f352-67e5-4e8b-a510-0e896bcc96fc/attempt-2/identity.json +10 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/attempts/cf34f352-67e5-4e8b-a510-0e896bcc96fc/attempt-2/result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/attempts/cf34f352-67e5-4e8b-a510-0e896bcc96fc/attempt-2/trace/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/capture-retention_0/latest-attempt.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/after-retry/observation.json +380 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-resume/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-resume/capture-retention_0/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-resume/capture-retention_0/failure-receipt.json +58 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-resume/capture-retention_0/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-resume/observation.json +198 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-retry/capture-retention_0/cached-result.json +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-retry/capture-retention_0/captured-response.json +6 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-retry/capture-retention_0/failure-receipt.attempt-1.json +58 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-retry/capture-retention_0/spans.jsonl +1 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-retry/observation.json +121 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/before-summary.json +321 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/build.attribution.log +491 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/build.final.log +491 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/build.log +495 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/qualification.log +18 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/qualification.wrong-root.log +9 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/qualify.mjs +148 -0
- package/docs/proofs/campaign-attempt-retention-20261001/artifacts/predecessor/qualify.wrong-root.mjs +148 -0
- package/docs/proofs/campaign-attempt-retention-20261001/manifest.json +808 -0
- package/package.json +2 -2
- package/dist/index-Ce2HACcP.d.ts.map +0 -1
- package/dist/llm-judge-EUMHOZOQ.js.map +0 -1
- package/dist/series-convergence-CjO2QdRW.js +0 -43
- package/dist/series-convergence-CjO2QdRW.js.map +0 -1
- package/dist/series-convergence-DLy0bQMV.d.ts +0 -126
- package/dist/series-convergence-DLy0bQMV.d.ts.map +0 -1
- package/dist/tool-groups-DP8b5kjF.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as CostProvenance } from "./cost-ledger-DbQdN3nO.js";
|
|
2
|
-
import { w as JudgeScore } from "./types-
|
|
2
|
+
import { w as JudgeScore } from "./types-ZUy5HGY5.js";
|
|
3
3
|
import { o as MatrixResult } from "./index-DNgf5gyG.js";
|
|
4
4
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
5
5
|
//#region src/multishot/types.d.ts
|
|
@@ -398,4 +398,4 @@ interface RunMultishotMatrixResult {
|
|
|
398
398
|
declare function runMultishotMatrix<TPersona extends MultishotPersona>(opts: RunMultishotMatrixOptions<TPersona>): Promise<RunMultishotMatrixResult>;
|
|
399
399
|
//#endregion
|
|
400
400
|
export { MultishotToolExecutor as A, MultishotFatalToolError as C, MultishotShape as D, MultishotResult as E, assertMultishotShotResult as F, MultishotTransportRequest as M, MultishotTransportResponse as N, MultishotShotResultError as O, MultishotTransportToolCall as P, MultishotDriverEmptyError as S, MultishotPersona as T, JudgeRunResult as _, MultishotCellOutput as a, runJudge as b, RunMultishotMatrixResult as c, MultishotShot as d, RunMultishotOptions as f, JudgeDimension as g, JudgeConfig as h, ConversationJudgeInput as i, MultishotTransport as j, MultishotToolDefinition as k, computeCellComposite as l, DEFAULT_JUDGE_MODEL as m, CellCompositeInput as n, MultishotJudges as o, runMultishot as p, CellCompositeScore as r, RunMultishotMatrixOptions as s, ArtifactJudgeInput as t, runMultishotMatrix as u, renderDimensions as v, MultishotMessage as w, MultishotArtifact as x, renderJsonFooter as y };
|
|
401
|
-
//# sourceMappingURL=matrix-
|
|
401
|
+
//# sourceMappingURL=matrix-W1lbSx72.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matrix-
|
|
1
|
+
{"version":3,"file":"matrix-W1lbSx72.d.ts","names":[],"sources":["../src/multishot/types.ts","../src/multishot/judges.ts","../src/multishot/multishot.ts","../src/multishot/matrix.ts"],"mappings":";;;;;UAIiB;EACf;EACA;EACA;EACA,YAAY;IAAQ;IAAY;IAAc,MAAM;;;UAGrC;EACf;EACA;EACA;IAAc;IAAc,MAAM;;EAClC;;UAGe;EACf,YAAY;EACZ,WAAW;EACX;EACA;;;EAGA;;;;;;;;EAQA,iBAAiB;;UAGF;EACf;EACA;IACE;IACA;IACA,YAAY;;;;;;UAOC;EACf;EACA,UAAU,MAAM;EAChB,QAAQ;EACR;EACA;EACA,SAAS;;UAGM;EACf;EACA;EACA;IAAY;IAAc;;;UAGX;EACf;IAAW;IAAyB,aAAa;;EACjD;IAAU;IAAwB;;;;EAGlC;;;;EAIA;;;;;;;;KASU,sBACV,KAAK,8BACF,QAAQ;KAED,yBACV,MAAM,yBACN;;EAEE,WAAW;EACX,SAAS;MAER;EAAU;EAAiB;;UAEf;;EAEf;;GAEC;;;;;;;;UASc,eAAe,iBAAiB;;EAE/C,eAAe,SAAS;;;EAGxB,2BAA2B,SAAS;;cAGzB,kCAAkC;WACjB;EAA5B,YAA4B;;cAMjB,gCAAgC;EAC3C,YAAY;;cAMD,iCAAiC;EAC5C,YAAY;;;;;;;;;;;;;;;;;;;iBAyBE,0BAA0B,yBAAyB,SAAS;;;cCvI/D;UAEI;;EAEf;;EAEA;;UAGe,YAAY;;EAE3B;;;EAGA,WAAW;;EAEX;;EAEA,YAAY;;EAEZ;;;EAGA,cAAc,OAAO;;EAErB;;UAGe;;EAEf,OAAO;;EAEP,MAAM;;iBAGc,SAAS,QAC7B,OAAO,YAAY,SACnB,OAAO,SACN,QAAQ;;;iBAsIK,iBAAiB,eAAe;;iBAKhC,iBAAiB,eAAe;;;UCxK/B,oBAAoB,iBAAiB;EACpD,SAAS;EACT,SAAS;;;EAGT,QAAQ,eAAe;;EAEvB,QAAQ;;EAER,gBAAgB,eAAe;;;;EAI/B,mBAAmB;EACnB;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;EAGA,gBAAgB;;;;EAIhB,iBAAiB;;;EAGjB,gBAAgB;EAChB,SAAS;;;;;;;;;;;KAYC,cAAc,iBAAiB,qBACzC,MAAM,oBAAoB,cACvB,QAAQ;;;;;;;;;;;;;;;;;iBA2BS,aAAa,iBAAiB,kBAClD,MAAM,oBAAoB,YACzB,QAAQ;;;UClFM,uBAAuB,iBAAiB;EACvD,YAAY;EACZ,SAAS;;UAGM,mBAAmB,iBAAiB;EACnD,UAAU;EACV,SAAS;;UAGM,gBAAgB,iBAAiB;;EAEhD,cAAc,YAAY,uBAAuB;;EAEjD,aAAa,YAAY,mBAAmB;;EAE5C,iBAAiB,YAAY,mBAAmB;;EAEhD;;EAEA;;UAGe;EACf;EACA,cAAc;EACd;IACE,aAAa,MAAM;MAAe;MAAc;;IAChD;;EAEF;IACE,aAAa,MAAM;MAAe;MAAc;;IAChD;;;UAIa,0BAA0B,iBAAiB;;EAE1D,UAAU;IAAQ;IAAY,OAAO;;;EAErC,UAAU;;;EAGV,QAAQ,eAAe;;EAEvB,QAAQ,gBAAgB;;EAExB,QAAQ;;EAER,gBAAgB,eAAe;;EAE/B,mBAAmB;;EAEnB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;EAIA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;EAIA,gBAAgB;;EAEhB,iBAAiB;;;EAGjB,gBAAgB;;;;;;;;;;;;;;;EAehB,UAAU,cAAc;;;;;UAMT;EACf;EACA;EACA;;UAoBe;EACf,cAAc;;EAEd,cAAc,cAAc;;EAE5B,iBAAiB,cAAc;;;;;;;iBAQjB,qBAAqB,OAAO;EAC1C;EACA;EACA;EACA;;UAuBe;EACf,QAAQ,aAAa;;iBAGD,mBAAmB,iBAAiB,kBACxD,MAAM,0BAA0B,YAC/B,QAAQ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as Run } from "../schema-2g7trUwH.js";
|
|
2
2
|
import { a as ContinuousCalibrationResult, c as SelfPreferenceResult, d as calibrateJudgeContinuous, f as continuousAgreement, h as verbosityBias, i as ContinuousAgreementOptions, l as VerbosityBiasResult, m as selfPreference, n as CandidateScore, o as GoldenItem, p as positionalBias, r as ContinuousAgreement, s as PositionalBiasResult, t as CalibrationResult, u as calibrateJudge } from "../judge-calibration-DFtEMlde.js";
|
|
3
|
-
import { n as
|
|
3
|
+
import { A as SentinelThresholds, B as validateSentinelSnapshot, C as JudgeSentinelOptions, D as SentinelSetOptions, E as SentinelReport, F as inMemorySentinelStore, I as judgeSentinelReport, L as snapshotFromAgreement, M as SnapshotMeta, N as evalHealthStamp, O as SentinelSnapshot, P as fileSentinelStore, R as snapshotFromCalibration, S as EvalHealthStamp, T as SentinelMetrics, _ as assertJudgeMayGate, a as JudgeCalibrationSet, b as registerCalibrationSet, c as JudgeGateDecision, d as JudgeGateRefusedError, f as JudgeGateStatus, g as addCalibrationVerdicts, h as OwnerVerdict, i as JudgeAgreement, j as SentinelTrend, k as SentinelStore, l as JudgeGateInput, m as JudgeRunMeta, n as CalibrationMerge, o as JudgeConfusion, p as JudgeRun, r as DEFAULT_JUDGE_GATE_POLICY, s as JudgeExampleAgreement, t as CalibrationExample, u as JudgeGatePolicy, v as judgeGateDecision, w as SentinelMetricName, x as snapshotFromJudgeAgreement, y as measureJudgeAgreement, z as snapshotFromSentinelSet } from "../judge-gate-BuQd7sSm.js";
|
|
4
4
|
import { r as LedgerHash } from "../canonical-CFpojCN5.js";
|
|
5
5
|
import { s as TraceStore } from "../store-C4avFjIi.js";
|
|
6
6
|
import { a as OutcomeFilter, i as InMemoryOutcomeStore, n as FileSystemOutcomeStore, o as OutcomeStore, r as FileSystemOutcomeStoreOptions, s as OutcomeStoreError, t as DeploymentOutcome } from "../outcome-store-CNt4iZ67.js";
|
|
@@ -566,135 +566,5 @@ export interface CatchRateReport {
|
|
|
566
566
|
*/
|
|
567
567
|
export declare function catchRate(results: readonly PlantOutcome[], manifest: PlantManifest): CatchRateReport;
|
|
568
568
|
//#endregion
|
|
569
|
-
|
|
570
|
-
declare const SENTINEL_METRIC_NAMES: readonly ['irr', 'calibrationKappa', 'sentinelPassRate'];
|
|
571
|
-
export type SentinelMetricName = (typeof SENTINEL_METRIC_NAMES)[number];
|
|
572
|
-
export interface SentinelMetrics {
|
|
573
|
-
/** Inter-rater reliability — ICC(2,1) from agreement instruments. */
|
|
574
|
-
irr?: number;
|
|
575
|
-
/** Weighted κ vs the human golden set (`calibrateJudge*`). */
|
|
576
|
-
calibrationKappa?: number;
|
|
577
|
-
/** Fraction of a fixed sentinel golden set the judge still scores within tolerance. */
|
|
578
|
-
sentinelPassRate?: number;
|
|
579
|
-
}
|
|
580
|
-
export interface SentinelSnapshot {
|
|
581
|
-
/** Caller-supplied ISO-8601 timestamp — the module never reads a clock. */
|
|
582
|
-
at: string;
|
|
583
|
-
judgeId: string;
|
|
584
|
-
/** Exact model identity behind the judge (pin the full version string). */
|
|
585
|
-
judgeModel: string;
|
|
586
|
-
/**
|
|
587
|
-
* Metrics measured at `at`. May be empty: an empty-metrics snapshot is a
|
|
588
|
-
* model-change marker — it records the new `judgeModel` immediately and
|
|
589
|
-
* the silent-upgrade alarm stays raised until a golden-grounded snapshot
|
|
590
|
-
* (calibrationKappa or sentinelPassRate) follows.
|
|
591
|
-
*/
|
|
592
|
-
metrics: SentinelMetrics;
|
|
593
|
-
}
|
|
594
|
-
/** Identity + timestamp the caller supplies alongside an instrument output. */
|
|
595
|
-
export interface SnapshotMeta {
|
|
596
|
-
at: string;
|
|
597
|
-
judgeId: string;
|
|
598
|
-
judgeModel: string;
|
|
599
|
-
}
|
|
600
|
-
/** Shape guard for snapshots crossing a boundary (store append, JSONL load, report input). */
|
|
601
|
-
export declare function validateSentinelSnapshot(snapshot: SentinelSnapshot, source?: string): void;
|
|
602
|
-
/**
|
|
603
|
-
* From `calibrateJudge` / `calibrateJudgeContinuous` output. Prefers the
|
|
604
|
-
* un-rounded continuous κ_w when the report carries one (integer κ
|
|
605
|
-
* discards information for [0,1] judges).
|
|
606
|
-
*/
|
|
607
|
-
export declare function snapshotFromCalibration(report: CalibrationResult | ContinuousCalibrationResult, meta: SnapshotMeta): SentinelSnapshot;
|
|
608
|
-
/**
|
|
609
|
-
* From `corpusInterRaterAgreement` (statistics.ts) or `continuousAgreement`
|
|
610
|
-
* (judge-calibration.ts) output. IRR = ICC(2,1) — the reliability
|
|
611
|
-
* coefficient both instruments compute. For ensemble-level agreement,
|
|
612
|
-
* `meta.judgeId` names the ensemble and `meta.judgeModel` pins its
|
|
613
|
-
* composition (e.g. a joined list of member model strings).
|
|
614
|
-
*/
|
|
615
|
-
export declare function snapshotFromAgreement(report: CorpusAgreementReport | ContinuousAgreement, meta: SnapshotMeta): SentinelSnapshot;
|
|
616
|
-
export interface SentinelSetOptions {
|
|
617
|
-
/** Max |judge − human| for an item to count as passed. Default 0.1 (tuned for [0,1] scores). */
|
|
618
|
-
tolerance?: number;
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* From a rerun of a fixed sentinel golden set: the same `GoldenItem`s the
|
|
622
|
-
* judge was originally calibrated on, re-scored periodically. Pass rate =
|
|
623
|
-
* fraction of joined items where the judge stays within `tolerance` of the
|
|
624
|
-
* human score. Items the judge didn't score are excluded from the
|
|
625
|
-
* denominator; zero joined items is an error, not a 0% pass rate.
|
|
626
|
-
*/
|
|
627
|
-
export declare function snapshotFromSentinelSet(scores: CandidateScore[], golden: GoldenItem[], meta: SnapshotMeta, options?: SentinelSetOptions): SentinelSnapshot;
|
|
628
|
-
export interface SentinelStore {
|
|
629
|
-
append(snapshot: SentinelSnapshot): Promise<void>;
|
|
630
|
-
/** All snapshots (optionally for one judge), in append order. */
|
|
631
|
-
history(judgeId?: string): Promise<SentinelSnapshot[]>;
|
|
632
|
-
}
|
|
633
|
-
export declare function inMemorySentinelStore(initial?: SentinelSnapshot[]): SentinelStore;
|
|
634
|
-
/**
|
|
635
|
-
* JSONL store — one snapshot per line, appended atomically per call.
|
|
636
|
-
* A corrupt or shape-invalid line is a loud error naming the file and
|
|
637
|
-
* line number: a sentinel history that silently drops records would
|
|
638
|
-
* defeat the drift detection it exists to provide.
|
|
639
|
-
*/
|
|
640
|
-
export declare function fileSentinelStore(path: string): SentinelStore;
|
|
641
|
-
export interface SentinelThresholds {
|
|
642
|
-
/** Floor for irr — below it the judge ensemble is unreliable regardless of trend. Default 0.6. */
|
|
643
|
-
minIrr?: number;
|
|
644
|
-
/** Max tolerated calibrationKappa drop vs the series baseline. Default 0.15. */
|
|
645
|
-
maxKappaDrop?: number;
|
|
646
|
-
/** Max tolerated sentinelPassRate drop vs the series baseline. Default 0.1. */
|
|
647
|
-
maxSentinelDrop?: number;
|
|
648
|
-
/** Newest snapshot older than this (days, vs asOf) = the sentinel itself went blind. Default 30. */
|
|
649
|
-
staleAfterDays?: number;
|
|
650
|
-
}
|
|
651
|
-
export interface JudgeSentinelOptions {
|
|
652
|
-
/** Caller-supplied ISO timestamp staleness is measured against. */
|
|
653
|
-
asOf: string;
|
|
654
|
-
thresholds?: SentinelThresholds;
|
|
655
|
-
/** Forwarded to `analyzeSeries` (window, stableCv, driftRun). */
|
|
656
|
-
convergence?: SeriesConvergenceOptions;
|
|
657
|
-
}
|
|
658
|
-
export interface SentinelTrend {
|
|
659
|
-
judgeId: string;
|
|
660
|
-
metric: SentinelMetricName;
|
|
661
|
-
/** Verbatim `analyzeSeries` state for this judge×metric history. */
|
|
662
|
-
state: SeriesConvergenceResult['state'];
|
|
663
|
-
/** Newest value in the series. */
|
|
664
|
-
current: number;
|
|
665
|
-
/** Oldest value in the series — the reference the drop thresholds compare against. */
|
|
666
|
-
baseline: number;
|
|
667
|
-
/** current − baseline (signed; negative = decayed). */
|
|
668
|
-
drift: number;
|
|
669
|
-
alarmed: boolean;
|
|
670
|
-
reason?: string;
|
|
671
|
-
}
|
|
672
|
-
export interface SentinelReport {
|
|
673
|
-
perJudge: SentinelTrend[];
|
|
674
|
-
alarms: string[];
|
|
675
|
-
healthy: boolean;
|
|
676
|
-
/**
|
|
677
|
-
* `judgeId:metric` pairs with too few snapshots for the convergence
|
|
678
|
-
* machine. Named, not counted — a blind spot you can't see is a blind
|
|
679
|
-
* spot you won't fix. Floor/drop checks still apply to thin series, so
|
|
680
|
-
* insufficient history alone never masks an alarm.
|
|
681
|
-
*/
|
|
682
|
-
insufficientHistory: string[];
|
|
683
|
-
}
|
|
684
|
-
export declare function judgeSentinelReport(history: SentinelSnapshot[], opts: JudgeSentinelOptions): SentinelReport;
|
|
685
|
-
export interface EvalHealthStamp {
|
|
686
|
-
healthy: boolean;
|
|
687
|
-
alarms: string[];
|
|
688
|
-
}
|
|
689
|
-
/**
|
|
690
|
-
* The object a campaign attaches to its verdicts. Compute it from the
|
|
691
|
-
* sentinel report in a post-campaign hook (or a nightly job feeding the
|
|
692
|
-
* next day's campaigns) and store it alongside the verdict payload.
|
|
693
|
-
* `healthy: false` means the judges that produced those verdicts have an
|
|
694
|
-
* unresolved drift / decay / silent-upgrade / staleness alarm — treat the
|
|
695
|
-
* verdicts as carrying an integrity warning until recalibration clears it.
|
|
696
|
-
*/
|
|
697
|
-
export declare function evalHealthStamp(report: SentinelReport): EvalHealthStamp;
|
|
698
|
-
//#endregion
|
|
699
|
-
export { type CalibrationResult, type CandidateScore, type ContinuousAgreement, type ContinuousAgreementOptions, type ContinuousCalibrationResult, type CorrelationInterval, DeploymentOutcome, type EvaluatorAdmissionPolicy, type EvaluatorAdmissionReport, type EvaluatorAuditInput, type EvaluatorAuditObservation, type EvaluatorAuditPlan, type EvaluatorAuditPlanInput, type EvaluatorErrorRate, FileSystemOutcomeStore, FileSystemOutcomeStoreOptions, type GoldenItem, InMemoryOutcomeStore, OutcomeFilter, OutcomeMetricSpec, type OutcomeReduction, OutcomeStore, OutcomeStoreError, type PositionalBiasResult, type ProbabilityPolicyAuditInput, type ProbabilityPolicyAuditReport, RubricOutcomeExclusion, RubricOutcomePair, RubricPredictiveValidityInput, RubricPredictiveValidityReport, RubricRanking, type SelfPreferenceResult, type VerbosityBiasResult, calibrateJudge, calibrateJudgeContinuous, continuousAgreement, positionalBias, rubricPredictiveValidity, selfPreference, verbosityBias };
|
|
569
|
+
export { CalibrationExample, CalibrationMerge, type CalibrationResult, type CandidateScore, type ContinuousAgreement, type ContinuousAgreementOptions, type ContinuousCalibrationResult, type CorrelationInterval, DEFAULT_JUDGE_GATE_POLICY, DeploymentOutcome, EvalHealthStamp, type EvaluatorAdmissionPolicy, type EvaluatorAdmissionReport, type EvaluatorAuditInput, type EvaluatorAuditObservation, type EvaluatorAuditPlan, type EvaluatorAuditPlanInput, type EvaluatorErrorRate, FileSystemOutcomeStore, FileSystemOutcomeStoreOptions, type GoldenItem, InMemoryOutcomeStore, JudgeAgreement, JudgeCalibrationSet, JudgeConfusion, JudgeExampleAgreement, JudgeGateDecision, JudgeGateInput, JudgeGatePolicy, JudgeGateRefusedError, JudgeGateStatus, JudgeRun, JudgeRunMeta, JudgeSentinelOptions, OutcomeFilter, OutcomeMetricSpec, type OutcomeReduction, OutcomeStore, OutcomeStoreError, OwnerVerdict, type PositionalBiasResult, type ProbabilityPolicyAuditInput, type ProbabilityPolicyAuditReport, RubricOutcomeExclusion, RubricOutcomePair, RubricPredictiveValidityInput, RubricPredictiveValidityReport, RubricRanking, type SelfPreferenceResult, SentinelMetricName, SentinelMetrics, SentinelReport, SentinelSetOptions, SentinelSnapshot, SentinelStore, SentinelThresholds, SentinelTrend, SnapshotMeta, type VerbosityBiasResult, addCalibrationVerdicts, assertJudgeMayGate, calibrateJudge, calibrateJudgeContinuous, continuousAgreement, evalHealthStamp, fileSentinelStore, inMemorySentinelStore, judgeGateDecision, judgeSentinelReport, measureJudgeAgreement, positionalBias, registerCalibrationSet, rubricPredictiveValidity, selfPreference, snapshotFromAgreement, snapshotFromCalibration, snapshotFromJudgeAgreement, snapshotFromSentinelSet, validateSentinelSnapshot, verbosityBias };
|
|
700
570
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/meta-eval/correlation-study.ts","../../src/meta-eval/calibration.ts","../../src/meta-eval/evaluator-admission.ts","../../src/meta-eval/plants.ts"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/meta-eval/correlation-study.ts","../../src/meta-eval/calibration.ts","../../src/meta-eval/evaluator-admission.ts","../../src/meta-eval/plants.ts"],"mappings":";;;;;;;;;;iBAoBiB;EACf;;;EAGA,WAAW,KAAK,KAAK,OAAO,eAAe;;iBAG5B;EACf;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;;EAEA;IAAe;IAAe;;;EAE9B;IAAgB;IAAe;;;EAE/B;;iBAGe;EACf,OAAO;;EAEP,eAAe,MACb;IACE;IACA;;EAGJ;EACA;;iBAGe;;EAEf;;EAEA,gBAAgB;;EAEhB;;EAEA;;;EAGA;;wBAGoB,iBACpB,YAAY,YACZ,cAAc,cACd,aAAa,kBACb,8BACA,UAAS,0BACR,QAAQ;;;iBChEM;EACf;EACA;EACA;EACA;EACA;;EAEA;;iBAGe;EACf;EACA;EACA;EACA,MAAM;;EAEN;;EAEA;;iBAGe;;EAEf;;EAEA;;EAEA;IAAU;IAAY;;;iBAGP;EACf;EACA;;wBAGoB,iBACpB,YAAY,YACZ,cAAc,cACd,YAAY,gBACZ,uBACA,UAAS,qBACR,QAAQ;;wBA0CK,qBACd,qBAAqB,mBACrB,oBACA,uBACA,UAAS,qBACR;;;qBC9FU,gCAA8B,EAAA;;;;GAMhC,EAAA,KAAA;;KAGC,2BAA2B,EAAE,aAAa;qBAEzC,iCAA+B,EAAA;;;;;;;;;;;;;;;;;GASjC,EAAA,KAAA;;KAGC,4BAA4B,EAAE,aAAa;cAEjD,aAAW,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAeN,EAAA,KAAA;KAEC,sBAAsB,EAAE,aAAa;UAEhC;;EAEf;EACA;;EAEA;;EAEA;EACA;;EAEA;;EAEA,UAAU;EACV;EACA;;UAGe;EACf,iBAAiB;EACjB,cAAc;EACd,aAAa;EACb,cAAc;EACd;EACA;EACA,WAAW;EACX,QAAQ;;EAER;EACA;EACA;EACA;EACA,cAAc;EACd;IACE;IACA;IACA;IACA;IACA;IACA;;EAEF,YAAY;IAAQ;IAAY;IAA2B;;EAC3D,iBAAiB;EACjB,gBAAgB;;cAkGZ,gBAAc,EAAA;;;;;;;;;;;;;;;;;;GAOT,EAAA,KAAA;KAEC,0BAA0B,EAAE,aAAa;;;;;;wBA0BrC,mBAAmB,OAAO;;;;;;;;;;;;;;;;;KAiC9B,qBAAqB,kBAAkB;;;;;;wBAOnC,eAAe,OAAO,sBAAsB;cAoFtD,wBAAsB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAG1B,EAAA,KAAA;;KAGU,8BAA8B,EAAE,aAAa;UAExC,qCAAqC;EACpD;IACE,uBAAuB;IACvB,YAAY;;IAEZ,cAAc;MAAQ;MAAY;;;;;;;;;wBAStB,uBACd,OAAO,8BACN;;;;;;;;YC1TS;;;;;;;;;;YAkBA;iBAOK;;EAEf;EACA,MAAM;;EAEN,MAAM;;EAEN,iBAAiB;;;;;;;;;;;;;;wBAeH,YAAY;EAC1B;EACA,MAAM;EACN,MAAM;EACN,iBAAiB;IACf;;;;;iBAqDa;;EAEf;;EAEA;;;YAIU;;YAGA;iBAEK;;EAEf,UAAU;;EAEV,OAAO;;EAEP,KAAK;;;;;;EAML;;EAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsJc,gBAAgB,UAAU,gBAAgB;iBA8BzC;EACf,OAAO;;EAEP,UAAU;EACV,OAAO;EACP,KAAK;EACL;EACA;;;;;;;;;;;;;;;;;;;;;;wBAuBc,oBAAoB;EAClC;EACA;EACA,UAAU;;EAEV;EACA;IACE;iBA0Ba;;;;;;EAMf,MAAM;;EAEN;;EAEA;;EAEA;;EAEA,QAAQ;;iBAGO;;;;;;EAMf,OAAO;EACP,UAAU;;iBAGK;;;;;EAKf;;;;;;EAMA;;;;;;;;;;;wBAYc,WACd,kBAAkB,cAClB,iBAAiB,SACjB,UAAS,oBACR;;;;;;iBAqGc;EACf;EACA;;;;;;YAOU;iBAEK;EACf;EACA;EACA;EACA;;EAEA;;;;;;;;iBASe;EACf;EACA;EACA;;EAEA;;iBAGe;EACf,QAAQ;;EAER;EACA;EACA;EACA;;;;;EAKA;;EAEA;;EAEA,QAAQ,QAAQ,OAAO,WAAW;;EAElC;;EAEA;EACA,UAAU;;;;;;;;;;wBAWI,UACd,kBAAkB,gBAClB,UAAU,gBACT"}
|
package/dist/meta-eval/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { t as mulberry32 } from "../random-Dn5fPWkt.js";
|
|
|
4
4
|
import { a as selfPreference, i as positionalBias, n as calibrateJudgeContinuous, o as verbosityBias, r as continuousAgreement, t as calibrateJudge } from "../judge-calibration-C5zgtiJT.js";
|
|
5
5
|
import { u as runMetricExtractor } from "../query-DlV0pdx4.js";
|
|
6
6
|
import { r as computeInterval } from "../ast-DJ6Bc7ab.js";
|
|
7
|
-
import { t as
|
|
7
|
+
import { a as judgeGateDecision, c as snapshotFromJudgeAgreement, d as inMemorySentinelStore, f as judgeSentinelReport, g as validateSentinelSnapshot, h as snapshotFromSentinelSet, i as assertJudgeMayGate, l as evalHealthStamp, m as snapshotFromCalibration, n as JudgeGateRefusedError, o as measureJudgeAgreement, p as snapshotFromAgreement, r as addCalibrationVerdicts, s as registerCalibrationSet, t as DEFAULT_JUDGE_GATE_POLICY, u as fileSentinelStore } from "../judge-gate-B1qYnkpi.js";
|
|
8
8
|
import { a as reduceOutcomeMetric, i as hasVariation, n as assertUniqueObservationIds, o as validateObservationOptions, r as correlationSummary, t as rubricPredictiveValidity } from "../rubric-predictive-validity-B0Pg-3I5.js";
|
|
9
9
|
import { n as InMemoryOutcomeStore, r as OutcomeStoreError, t as FileSystemOutcomeStore } from "../outcome-store-DUcMj-3D.js";
|
|
10
10
|
import { z } from "zod";
|
|
@@ -970,279 +970,6 @@ function unseededRejection(manifest, scoreByItemId) {
|
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
972
|
//#endregion
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* Judge sentinel — eval trustworthiness as a continuously measured,
|
|
976
|
-
* alarmed trend.
|
|
977
|
-
*
|
|
978
|
-
* Judges are models; models change underneath us; calibration decays.
|
|
979
|
-
* This module composes three existing instruments into one loop:
|
|
980
|
-
*
|
|
981
|
-
* snapshot — adapters turn real instrument outputs (`calibrateJudge` /
|
|
982
|
-
* `calibrateJudgeContinuous`, `corpusInterRaterAgreement` /
|
|
983
|
-
* `continuousAgreement`, a rerun sentinel golden set) into
|
|
984
|
-
* `SentinelSnapshot`s
|
|
985
|
-
* series — `analyzeSeries` (src/series-convergence) classifies each
|
|
986
|
-
* judge×metric history as stabilized / drifting / noisy
|
|
987
|
-
* alarm — `judgeSentinelReport` turns trends + thresholds into named
|
|
988
|
-
* alarms; `evalHealthStamp` is the tiny object a campaign
|
|
989
|
-
* attaches to its verdicts
|
|
990
|
-
*
|
|
991
|
-
* Alarm conditions:
|
|
992
|
-
* - convergence state `drifting-down` on any tracked metric
|
|
993
|
-
* - irr below `minIrr`
|
|
994
|
-
* - calibrationKappa / sentinelPassRate dropped vs the series baseline
|
|
995
|
-
* beyond `maxKappaDrop` / `maxSentinelDrop`
|
|
996
|
-
* - judge model changed with no post-change golden-grounded snapshot
|
|
997
|
-
* (the silent-upgrade trap: judges agreeing with each other after a
|
|
998
|
-
* model swap proves nothing — only re-measuring against gold does)
|
|
999
|
-
* - newest snapshot older than `staleAfterDays` relative to `asOf`
|
|
1000
|
-
*
|
|
1001
|
-
* Wire-in: run the snapshot adapters from a post-campaign hook or a
|
|
1002
|
-
* nightly job, append to a `SentinelStore`, then compute
|
|
1003
|
-
* `judgeSentinelReport(await store.history(), { asOf })` with `asOf` =
|
|
1004
|
-
* the campaign timestamp. Attach `evalHealthStamp(report)` to campaign
|
|
1005
|
-
* verdicts: an alarmed sentinel means every downstream verdict carries
|
|
1006
|
-
* an integrity warning until the judge is recalibrated.
|
|
1007
|
-
*
|
|
1008
|
-
* The module is clock-free — every timestamp (`at`, `asOf`) is
|
|
1009
|
-
* caller-supplied ISO-8601, so reports are reproducible.
|
|
1010
|
-
*/
|
|
1011
|
-
const SENTINEL_METRIC_NAMES = [
|
|
1012
|
-
"irr",
|
|
1013
|
-
"calibrationKappa",
|
|
1014
|
-
"sentinelPassRate"
|
|
1015
|
-
];
|
|
1016
|
-
function parseIso(value, label) {
|
|
1017
|
-
const ms = typeof value === "string" ? Date.parse(value) : NaN;
|
|
1018
|
-
if (!Number.isFinite(ms)) throw new ValidationError(`judge-sentinel: ${label} is not a parseable ISO timestamp: ${JSON.stringify(value)}`);
|
|
1019
|
-
return ms;
|
|
1020
|
-
}
|
|
1021
|
-
/** Shape guard for snapshots crossing a boundary (store append, JSONL load, report input). */
|
|
1022
|
-
function validateSentinelSnapshot(snapshot, source = "snapshot") {
|
|
1023
|
-
parseIso(snapshot.at, `${source}.at`);
|
|
1024
|
-
if (typeof snapshot.judgeId !== "string" || snapshot.judgeId.length === 0) throw new ValidationError(`judge-sentinel: ${source}.judgeId must be a non-empty string`);
|
|
1025
|
-
if (typeof snapshot.judgeModel !== "string" || snapshot.judgeModel.length === 0) throw new ValidationError(`judge-sentinel: ${source}.judgeModel must be a non-empty string`);
|
|
1026
|
-
if (snapshot.metrics === null || typeof snapshot.metrics !== "object") throw new ValidationError(`judge-sentinel: ${source}.metrics must be an object (may be empty)`);
|
|
1027
|
-
for (const [key, value] of Object.entries(snapshot.metrics)) {
|
|
1028
|
-
if (!SENTINEL_METRIC_NAMES.includes(key)) throw new ValidationError(`judge-sentinel: ${source}.metrics carries unknown key "${key}" — known: ${SENTINEL_METRIC_NAMES.join(", ")}`);
|
|
1029
|
-
if (value !== void 0 && !Number.isFinite(value)) throw new ValidationError(`judge-sentinel: ${source}.metrics.${key} is not a finite number: ${String(value)}`);
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
/**
|
|
1033
|
-
* From `calibrateJudge` / `calibrateJudgeContinuous` output. Prefers the
|
|
1034
|
-
* un-rounded continuous κ_w when the report carries one (integer κ
|
|
1035
|
-
* discards information for [0,1] judges).
|
|
1036
|
-
*/
|
|
1037
|
-
function snapshotFromCalibration(report, meta) {
|
|
1038
|
-
const kappa = "weightedKappaContinuous" in report ? report.weightedKappaContinuous : report.kappa;
|
|
1039
|
-
if (!Number.isFinite(kappa)) throw new ValidationError(`snapshotFromCalibration: κ is not finite (n=${report.n}) — calibrate against ≥2 joined golden items before snapshotting`);
|
|
1040
|
-
const snapshot = {
|
|
1041
|
-
...meta,
|
|
1042
|
-
metrics: { calibrationKappa: kappa }
|
|
1043
|
-
};
|
|
1044
|
-
validateSentinelSnapshot(snapshot);
|
|
1045
|
-
return snapshot;
|
|
1046
|
-
}
|
|
1047
|
-
/**
|
|
1048
|
-
* From `corpusInterRaterAgreement` (statistics.ts) or `continuousAgreement`
|
|
1049
|
-
* (judge-calibration.ts) output. IRR = ICC(2,1) — the reliability
|
|
1050
|
-
* coefficient both instruments compute. For ensemble-level agreement,
|
|
1051
|
-
* `meta.judgeId` names the ensemble and `meta.judgeModel` pins its
|
|
1052
|
-
* composition (e.g. a joined list of member model strings).
|
|
1053
|
-
*/
|
|
1054
|
-
function snapshotFromAgreement(report, meta) {
|
|
1055
|
-
const irr = "overallIcc" in report ? report.overallIcc : report.icc;
|
|
1056
|
-
if (!Number.isFinite(irr)) throw new ValidationError("snapshotFromAgreement: ICC is not finite — agreement needs ≥2 raters and ≥2 complete items");
|
|
1057
|
-
const snapshot = {
|
|
1058
|
-
...meta,
|
|
1059
|
-
metrics: { irr }
|
|
1060
|
-
};
|
|
1061
|
-
validateSentinelSnapshot(snapshot);
|
|
1062
|
-
return snapshot;
|
|
1063
|
-
}
|
|
1064
|
-
/**
|
|
1065
|
-
* From a rerun of a fixed sentinel golden set: the same `GoldenItem`s the
|
|
1066
|
-
* judge was originally calibrated on, re-scored periodically. Pass rate =
|
|
1067
|
-
* fraction of joined items where the judge stays within `tolerance` of the
|
|
1068
|
-
* human score. Items the judge didn't score are excluded from the
|
|
1069
|
-
* denominator; zero joined items is an error, not a 0% pass rate.
|
|
1070
|
-
*/
|
|
1071
|
-
function snapshotFromSentinelSet(scores, golden, meta, options = {}) {
|
|
1072
|
-
const tolerance = options.tolerance ?? .1;
|
|
1073
|
-
if (!Number.isFinite(tolerance) || tolerance < 0) throw new ValidationError(`snapshotFromSentinelSet: tolerance must be a finite number ≥ 0, got ${tolerance}`);
|
|
1074
|
-
const goldenById = /* @__PURE__ */ new Map();
|
|
1075
|
-
for (const item of golden) {
|
|
1076
|
-
if (!Number.isFinite(item.humanScore)) throw new ValidationError(`snapshotFromSentinelSet: golden item "${item.itemId}" has a non-finite humanScore`);
|
|
1077
|
-
if (goldenById.has(item.itemId)) throw new ValidationError(`snapshotFromSentinelSet: duplicate golden itemId "${item.itemId}"`);
|
|
1078
|
-
goldenById.set(item.itemId, item.humanScore);
|
|
1079
|
-
}
|
|
1080
|
-
let joined = 0;
|
|
1081
|
-
let passed = 0;
|
|
1082
|
-
for (const s of scores) {
|
|
1083
|
-
const human = goldenById.get(s.itemId);
|
|
1084
|
-
if (human === void 0) continue;
|
|
1085
|
-
if (!Number.isFinite(s.score)) throw new ValidationError(`snapshotFromSentinelSet: judge score for item "${s.itemId}" is not finite`);
|
|
1086
|
-
joined++;
|
|
1087
|
-
if (Math.abs(s.score - human) <= tolerance) passed++;
|
|
1088
|
-
}
|
|
1089
|
-
if (joined === 0) throw new ValidationError("snapshotFromSentinelSet: no judge scores joined the golden set — itemIds mismatch or empty sentinel run");
|
|
1090
|
-
const snapshot = {
|
|
1091
|
-
...meta,
|
|
1092
|
-
metrics: { sentinelPassRate: passed / joined }
|
|
1093
|
-
};
|
|
1094
|
-
validateSentinelSnapshot(snapshot);
|
|
1095
|
-
return snapshot;
|
|
1096
|
-
}
|
|
1097
|
-
function inMemorySentinelStore(initial = []) {
|
|
1098
|
-
for (const s of initial) validateSentinelSnapshot(s);
|
|
1099
|
-
const items = initial.map((s) => ({
|
|
1100
|
-
...s,
|
|
1101
|
-
metrics: { ...s.metrics }
|
|
1102
|
-
}));
|
|
1103
|
-
return {
|
|
1104
|
-
async append(snapshot) {
|
|
1105
|
-
validateSentinelSnapshot(snapshot);
|
|
1106
|
-
items.push({
|
|
1107
|
-
...snapshot,
|
|
1108
|
-
metrics: { ...snapshot.metrics }
|
|
1109
|
-
});
|
|
1110
|
-
},
|
|
1111
|
-
async history(judgeId) {
|
|
1112
|
-
const all = items.map((s) => ({
|
|
1113
|
-
...s,
|
|
1114
|
-
metrics: { ...s.metrics }
|
|
1115
|
-
}));
|
|
1116
|
-
return judgeId === void 0 ? all : all.filter((s) => s.judgeId === judgeId);
|
|
1117
|
-
}
|
|
1118
|
-
};
|
|
1119
|
-
}
|
|
1120
|
-
/**
|
|
1121
|
-
* JSONL store — one snapshot per line, appended atomically per call.
|
|
1122
|
-
* A corrupt or shape-invalid line is a loud error naming the file and
|
|
1123
|
-
* line number: a sentinel history that silently drops records would
|
|
1124
|
-
* defeat the drift detection it exists to provide.
|
|
1125
|
-
*/
|
|
1126
|
-
function fileSentinelStore(path) {
|
|
1127
|
-
return {
|
|
1128
|
-
async append(snapshot) {
|
|
1129
|
-
validateSentinelSnapshot(snapshot);
|
|
1130
|
-
const fs = await import("node:fs/promises");
|
|
1131
|
-
const pathMod = await import("node:path");
|
|
1132
|
-
await fs.mkdir(pathMod.dirname(path), { recursive: true });
|
|
1133
|
-
await fs.appendFile(path, `${JSON.stringify(snapshot)}\n`, "utf8");
|
|
1134
|
-
},
|
|
1135
|
-
async history(judgeId) {
|
|
1136
|
-
const fs = await import("node:fs/promises");
|
|
1137
|
-
let raw;
|
|
1138
|
-
try {
|
|
1139
|
-
raw = await fs.readFile(path, "utf8");
|
|
1140
|
-
} catch (err) {
|
|
1141
|
-
if (err.code === "ENOENT") return [];
|
|
1142
|
-
throw err;
|
|
1143
|
-
}
|
|
1144
|
-
const lines = raw.split("\n");
|
|
1145
|
-
const snapshots = [];
|
|
1146
|
-
for (let i = 0; i < lines.length; i++) {
|
|
1147
|
-
const line = lines[i];
|
|
1148
|
-
if (line.trim().length === 0) continue;
|
|
1149
|
-
let parsed;
|
|
1150
|
-
try {
|
|
1151
|
-
parsed = JSON.parse(line);
|
|
1152
|
-
} catch (err) {
|
|
1153
|
-
throw new ValidationError(`judge-sentinel: store at ${path} has a corrupt JSONL line ${i + 1}: ${err.message}`);
|
|
1154
|
-
}
|
|
1155
|
-
const snapshot = parsed;
|
|
1156
|
-
validateSentinelSnapshot(snapshot, `${path}:${i + 1}`);
|
|
1157
|
-
snapshots.push(snapshot);
|
|
1158
|
-
}
|
|
1159
|
-
return judgeId === void 0 ? snapshots : snapshots.filter((s) => s.judgeId === judgeId);
|
|
1160
|
-
}
|
|
1161
|
-
};
|
|
1162
|
-
}
|
|
1163
|
-
const MS_PER_DAY = 864e5;
|
|
1164
|
-
function judgeSentinelReport(history, opts) {
|
|
1165
|
-
const asOfMs = parseIso(opts.asOf, "asOf");
|
|
1166
|
-
const minIrr = opts.thresholds?.minIrr ?? .6;
|
|
1167
|
-
const maxKappaDrop = opts.thresholds?.maxKappaDrop ?? .15;
|
|
1168
|
-
const maxSentinelDrop = opts.thresholds?.maxSentinelDrop ?? .1;
|
|
1169
|
-
const staleAfterDays = opts.thresholds?.staleAfterDays ?? 30;
|
|
1170
|
-
const byJudge = /* @__PURE__ */ new Map();
|
|
1171
|
-
for (const snapshot of history) {
|
|
1172
|
-
validateSentinelSnapshot(snapshot);
|
|
1173
|
-
const atMs = parseIso(snapshot.at, `snapshot.at (judge "${snapshot.judgeId}")`);
|
|
1174
|
-
const arr = byJudge.get(snapshot.judgeId) ?? [];
|
|
1175
|
-
arr.push({
|
|
1176
|
-
...snapshot,
|
|
1177
|
-
atMs
|
|
1178
|
-
});
|
|
1179
|
-
byJudge.set(snapshot.judgeId, arr);
|
|
1180
|
-
}
|
|
1181
|
-
const perJudge = [];
|
|
1182
|
-
const alarms = [];
|
|
1183
|
-
const insufficientHistory = [];
|
|
1184
|
-
for (const judgeId of [...byJudge.keys()].sort()) {
|
|
1185
|
-
const snaps = byJudge.get(judgeId).sort((a, b) => a.atMs - b.atMs);
|
|
1186
|
-
const newest = snaps[snaps.length - 1];
|
|
1187
|
-
const ageDays = (asOfMs - newest.atMs) / MS_PER_DAY;
|
|
1188
|
-
if (ageDays > staleAfterDays) alarms.push(`judge "${judgeId}": stale — newest snapshot ${newest.at} is ${ageDays.toFixed(1)}d old vs asOf (limit ${staleAfterDays}d)`);
|
|
1189
|
-
let changeIdx = -1;
|
|
1190
|
-
for (let i = 1; i < snaps.length; i++) if (snaps[i].judgeModel !== snaps[i - 1].judgeModel) changeIdx = i;
|
|
1191
|
-
if (changeIdx >= 0) {
|
|
1192
|
-
if (!snaps.slice(changeIdx).some((s) => Number.isFinite(s.metrics.calibrationKappa) || Number.isFinite(s.metrics.sentinelPassRate))) alarms.push(`judge "${judgeId}": model changed "${snaps[changeIdx - 1].judgeModel}" → "${snaps[changeIdx].judgeModel}" at ${snaps[changeIdx].at} with no post-change calibration snapshot — silent-upgrade trap; rerun calibrateJudge or the sentinel set against the new model`);
|
|
1193
|
-
}
|
|
1194
|
-
for (const metric of SENTINEL_METRIC_NAMES) {
|
|
1195
|
-
const values = snaps.filter((s) => typeof s.metrics[metric] === "number").map((s) => s.metrics[metric]);
|
|
1196
|
-
if (values.length === 0) continue;
|
|
1197
|
-
const convergence = analyzeSeries(values, opts.convergence);
|
|
1198
|
-
if (convergence.state === "insufficient-data") insufficientHistory.push(`${judgeId}:${metric}`);
|
|
1199
|
-
const current = values[values.length - 1];
|
|
1200
|
-
const baseline = values[0];
|
|
1201
|
-
const drift = current - baseline;
|
|
1202
|
-
const reasons = [];
|
|
1203
|
-
if (convergence.state === "drifting-down") reasons.push(`convergence state drifting-down (tail run ${convergence.tailRun}, window mean ${convergence.windowMean.toFixed(3)})`);
|
|
1204
|
-
if (metric === "irr" && current < minIrr) reasons.push(`irr ${current.toFixed(3)} below floor ${minIrr}`);
|
|
1205
|
-
if (metric === "calibrationKappa" && baseline - current > maxKappaDrop) reasons.push(`calibrationKappa dropped ${(baseline - current).toFixed(3)} from baseline ${baseline.toFixed(3)} (limit ${maxKappaDrop})`);
|
|
1206
|
-
if (metric === "sentinelPassRate" && baseline - current > maxSentinelDrop) reasons.push(`sentinelPassRate dropped ${(baseline - current).toFixed(3)} from baseline ${baseline.toFixed(3)} (limit ${maxSentinelDrop})`);
|
|
1207
|
-
const alarmed = reasons.length > 0;
|
|
1208
|
-
const trend = {
|
|
1209
|
-
judgeId,
|
|
1210
|
-
metric,
|
|
1211
|
-
state: convergence.state,
|
|
1212
|
-
current,
|
|
1213
|
-
baseline,
|
|
1214
|
-
drift,
|
|
1215
|
-
alarmed
|
|
1216
|
-
};
|
|
1217
|
-
if (alarmed) {
|
|
1218
|
-
trend.reason = reasons.join("; ");
|
|
1219
|
-
alarms.push(`judge "${judgeId}" ${metric}: ${trend.reason}`);
|
|
1220
|
-
}
|
|
1221
|
-
perJudge.push(trend);
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
return {
|
|
1225
|
-
perJudge,
|
|
1226
|
-
alarms,
|
|
1227
|
-
healthy: alarms.length === 0,
|
|
1228
|
-
insufficientHistory
|
|
1229
|
-
};
|
|
1230
|
-
}
|
|
1231
|
-
/**
|
|
1232
|
-
* The object a campaign attaches to its verdicts. Compute it from the
|
|
1233
|
-
* sentinel report in a post-campaign hook (or a nightly job feeding the
|
|
1234
|
-
* next day's campaigns) and store it alongside the verdict payload.
|
|
1235
|
-
* `healthy: false` means the judges that produced those verdicts have an
|
|
1236
|
-
* unresolved drift / decay / silent-upgrade / staleness alarm — treat the
|
|
1237
|
-
* verdicts as carrying an integrity warning until recalibration clears it.
|
|
1238
|
-
*/
|
|
1239
|
-
function evalHealthStamp(report) {
|
|
1240
|
-
return {
|
|
1241
|
-
healthy: report.healthy,
|
|
1242
|
-
alarms: [...report.alarms]
|
|
1243
|
-
};
|
|
1244
|
-
}
|
|
1245
|
-
//#endregion
|
|
1246
|
-
export { FileSystemOutcomeStore, InMemoryOutcomeStore, OutcomeStoreError, auditEvaluator, auditProbabilityPolicy, calibrateJudge, calibrateJudgeContinuous, calibrationCurve, calibrationFromPairs, catchRate, continuousAgreement, correlationStudy, definePlant, evalHealthStamp, evaluatorAdmissionPolicySchema, evaluatorAuditObservationSchema, fileSentinelStore, inMemorySentinelStore, judgeSentinelReport, perturbEvidence, planEvaluatorAudit, plantByPerturbation, positionalBias, rubricPredictiveValidity, seedPlants, selfPreference, snapshotFromAgreement, snapshotFromCalibration, snapshotFromSentinelSet, validateSentinelSnapshot, verbosityBias };
|
|
973
|
+
export { DEFAULT_JUDGE_GATE_POLICY, FileSystemOutcomeStore, InMemoryOutcomeStore, JudgeGateRefusedError, OutcomeStoreError, addCalibrationVerdicts, assertJudgeMayGate, auditEvaluator, auditProbabilityPolicy, calibrateJudge, calibrateJudgeContinuous, calibrationCurve, calibrationFromPairs, catchRate, continuousAgreement, correlationStudy, definePlant, evalHealthStamp, evaluatorAdmissionPolicySchema, evaluatorAuditObservationSchema, fileSentinelStore, inMemorySentinelStore, judgeGateDecision, judgeSentinelReport, measureJudgeAgreement, perturbEvidence, planEvaluatorAudit, plantByPerturbation, positionalBias, registerCalibrationSet, rubricPredictiveValidity, seedPlants, selfPreference, snapshotFromAgreement, snapshotFromCalibration, snapshotFromJudgeAgreement, snapshotFromSentinelSet, validateSentinelSnapshot, verbosityBias };
|
|
1247
974
|
|
|
1248
975
|
//# sourceMappingURL=index.js.map
|