@tangle-network/agent-eval 0.93.0 → 0.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +44 -30
- package/dist/action-policy.d.ts +24 -0
- package/dist/action-policy.d.ts.map +1 -0
- package/dist/action-policy.test.d.ts +2 -0
- package/dist/action-policy.test.d.ts.map +1 -0
- package/dist/active-learning.d.ts +41 -0
- package/dist/active-learning.d.ts.map +1 -0
- package/dist/adapters/http.d.ts +15 -21
- package/dist/adapters/http.d.ts.map +1 -0
- package/dist/adapters/http.js.map +1 -1
- package/dist/adapters/langchain.d.ts +7 -13
- package/dist/adapters/langchain.d.ts.map +1 -0
- package/dist/adapters/otel.d.ts +13 -24
- package/dist/adapters/otel.d.ts.map +1 -0
- package/dist/agent-profile-cell.d.ts +101 -0
- package/dist/agent-profile-cell.d.ts.map +1 -0
- package/dist/agent-profile.d.ts +27 -0
- package/dist/agent-profile.d.ts.map +1 -0
- package/dist/agent-profile.test.d.ts +2 -0
- package/dist/agent-profile.test.d.ts.map +1 -0
- package/dist/analyst/adapters.d.ts +62 -0
- package/dist/analyst/adapters.d.ts.map +1 -0
- package/dist/analyst/analyst.test.d.ts +2 -0
- package/dist/analyst/analyst.test.d.ts.map +1 -0
- package/dist/analyst/ax-service.d.ts +27 -0
- package/dist/analyst/ax-service.d.ts.map +1 -0
- package/dist/analyst/behavioral-analyst.d.ts +28 -0
- package/dist/analyst/behavioral-analyst.d.ts.map +1 -0
- package/dist/analyst/chat-client.d.ts +91 -0
- package/dist/analyst/chat-client.d.ts.map +1 -0
- package/dist/analyst/default-registry.d.ts +27 -0
- package/dist/analyst/default-registry.d.ts.map +1 -0
- package/dist/analyst/default-registry.test.d.ts +2 -0
- package/dist/analyst/default-registry.test.d.ts.map +1 -0
- package/dist/analyst/finding-signature.d.ts +48 -0
- package/dist/analyst/finding-signature.d.ts.map +1 -0
- package/dist/analyst/finding-subject.d.ts +146 -0
- package/dist/analyst/finding-subject.d.ts.map +1 -0
- package/dist/analyst/finding-subject.test.d.ts +2 -0
- package/dist/analyst/finding-subject.test.d.ts.map +1 -0
- package/dist/analyst/findings-store.d.ts +75 -0
- package/dist/analyst/findings-store.d.ts.map +1 -0
- package/dist/analyst/index.d.ts +28 -256
- package/dist/analyst/index.d.ts.map +1 -0
- package/dist/analyst/index.js +6 -66
- package/dist/analyst/index.js.map +1 -1
- package/dist/{kind-factory-5b7xXXOr.d.ts → analyst/kind-factory.d.ts} +11 -63
- package/dist/analyst/kind-factory.d.ts.map +1 -0
- package/dist/analyst/kinds/failure-mode.d.ts +19 -0
- package/dist/analyst/kinds/failure-mode.d.ts.map +1 -0
- package/dist/analyst/kinds/improvement.d.ts +23 -0
- package/dist/analyst/kinds/improvement.d.ts.map +1 -0
- package/dist/analyst/kinds/index.d.ts +22 -0
- package/dist/analyst/kinds/index.d.ts.map +1 -0
- package/dist/analyst/kinds/kinds.test.d.ts +2 -0
- package/dist/analyst/kinds/kinds.test.d.ts.map +1 -0
- package/dist/analyst/kinds/knowledge-gap.d.ts +28 -0
- package/dist/analyst/kinds/knowledge-gap.d.ts.map +1 -0
- package/dist/analyst/kinds/knowledge-poisoning.d.ts +22 -0
- package/dist/analyst/kinds/knowledge-poisoning.d.ts.map +1 -0
- package/dist/analyst/kinds/skill-usage.d.ts +84 -0
- package/dist/analyst/kinds/skill-usage.d.ts.map +1 -0
- package/dist/analyst/kinds/skill-usage.test.d.ts +2 -0
- package/dist/analyst/kinds/skill-usage.test.d.ts.map +1 -0
- package/dist/analyst/parse-tolerant.d.ts +26 -0
- package/dist/analyst/parse-tolerant.d.ts.map +1 -0
- package/dist/analyst/parse-tolerant.test.d.ts +2 -0
- package/dist/analyst/parse-tolerant.test.d.ts.map +1 -0
- package/dist/analyst/registry.budget.test.d.ts +2 -0
- package/dist/analyst/registry.budget.test.d.ts.map +1 -0
- package/dist/{default-registry-zoGHUQEH.d.ts → analyst/registry.d.ts} +8 -37
- package/dist/analyst/registry.d.ts.map +1 -0
- package/dist/analyst/steer-firewall.d.ts +35 -0
- package/dist/analyst/steer-firewall.d.ts.map +1 -0
- package/dist/analyst/steer-firewall.test.d.ts +2 -0
- package/dist/analyst/steer-firewall.test.d.ts.map +1 -0
- package/dist/analyst/structure-findings.d.ts +37 -0
- package/dist/analyst/structure-findings.d.ts.map +1 -0
- package/dist/analyst/structure-findings.test.d.ts +2 -0
- package/dist/analyst/structure-findings.test.d.ts.map +1 -0
- package/dist/analyst/tool-groups.d.ts +34 -0
- package/dist/analyst/tool-groups.d.ts.map +1 -0
- package/dist/{types-2VVIL04s.d.ts → analyst/types.d.ts} +19 -112
- package/dist/analyst/types.d.ts.map +1 -0
- package/dist/anti-slop.d.ts +59 -0
- package/dist/anti-slop.d.ts.map +1 -0
- package/dist/artifact-validator.d.ts +74 -0
- package/dist/artifact-validator.d.ts.map +1 -0
- package/dist/attestation.d.ts +63 -0
- package/dist/attestation.d.ts.map +1 -0
- package/dist/attestation.test.d.ts +2 -0
- package/dist/attestation.test.d.ts.map +1 -0
- package/dist/authenticity/index.d.ts +15 -16
- package/dist/authenticity/index.d.ts.map +1 -0
- package/dist/authenticity/index.test.d.ts +2 -0
- package/dist/authenticity/index.test.d.ts.map +1 -0
- package/dist/auto-pr.d.ts +120 -0
- package/dist/auto-pr.d.ts.map +1 -0
- package/dist/{baseline-DE36-Np7.d.ts → baseline.d.ts} +8 -44
- package/dist/baseline.d.ts.map +1 -0
- package/dist/behavior-dsl.d.ts +73 -0
- package/dist/behavior-dsl.d.ts.map +1 -0
- package/dist/belief-state/calibration.d.ts +10 -0
- package/dist/belief-state/calibration.d.ts.map +1 -0
- package/dist/belief-state/calibration.test.d.ts +2 -0
- package/dist/belief-state/calibration.test.d.ts.map +1 -0
- package/dist/belief-state/code-agent-corpus.d.ts +66 -0
- package/dist/belief-state/code-agent-corpus.d.ts.map +1 -0
- package/dist/belief-state/code-agent-corpus.test.d.ts +2 -0
- package/dist/belief-state/code-agent-corpus.test.d.ts.map +1 -0
- package/dist/belief-state/code-agent-evidence.d.ts +22 -0
- package/dist/belief-state/code-agent-evidence.d.ts.map +1 -0
- package/dist/belief-state/code-agent-evidence.test.d.ts +2 -0
- package/dist/belief-state/code-agent-evidence.test.d.ts.map +1 -0
- package/dist/belief-state/extract.d.ts +7 -0
- package/dist/belief-state/extract.d.ts.map +1 -0
- package/dist/belief-state/extract.test.d.ts +2 -0
- package/dist/belief-state/extract.test.d.ts.map +1 -0
- package/dist/belief-state/index.d.ts +14 -604
- package/dist/belief-state/index.d.ts.map +1 -0
- package/dist/belief-state/index.js +1 -1
- package/dist/belief-state/ope.d.ts +17 -0
- package/dist/belief-state/ope.d.ts.map +1 -0
- package/dist/belief-state/ope.test.d.ts +2 -0
- package/dist/belief-state/ope.test.d.ts.map +1 -0
- package/dist/belief-state/phase0-measurement.d.ts +55 -0
- package/dist/belief-state/phase0-measurement.d.ts.map +1 -0
- package/dist/belief-state/report.d.ts +17 -0
- package/dist/belief-state/report.d.ts.map +1 -0
- package/dist/belief-state/report.test.d.ts +2 -0
- package/dist/belief-state/report.test.d.ts.map +1 -0
- package/dist/belief-state/research-evidence.d.ts +23 -0
- package/dist/belief-state/research-evidence.d.ts.map +1 -0
- package/dist/belief-state/research-evidence.test.d.ts +2 -0
- package/dist/belief-state/research-evidence.test.d.ts.map +1 -0
- package/dist/belief-state/runtime-benchmark-corpus.d.ts +32 -0
- package/dist/belief-state/runtime-benchmark-corpus.d.ts.map +1 -0
- package/dist/belief-state/runtime-hooks.d.ts +87 -0
- package/dist/belief-state/runtime-hooks.d.ts.map +1 -0
- package/dist/belief-state/runtime-hooks.test.d.ts +2 -0
- package/dist/belief-state/runtime-hooks.test.d.ts.map +1 -0
- package/dist/belief-state/selective.d.ts +15 -0
- package/dist/belief-state/selective.d.ts.map +1 -0
- package/dist/belief-state/selective.test.d.ts +2 -0
- package/dist/belief-state/selective.test.d.ts.map +1 -0
- package/dist/belief-state/shadow-probe.d.ts +80 -0
- package/dist/belief-state/shadow-probe.d.ts.map +1 -0
- package/dist/belief-state/shadow-probe.test.d.ts +2 -0
- package/dist/belief-state/shadow-probe.test.d.ts.map +1 -0
- package/dist/belief-state/types.d.ts +195 -0
- package/dist/belief-state/types.d.ts.map +1 -0
- package/dist/belief-state/types.test.d.ts +2 -0
- package/dist/belief-state/types.test.d.ts.map +1 -0
- package/dist/benchmark.d.ts +14 -0
- package/dist/benchmark.d.ts.map +1 -0
- package/dist/benchmarks/index.d.ts +23 -4
- package/dist/benchmarks/index.d.ts.map +1 -0
- package/dist/benchmarks/routing/dataset.d.ts +34 -0
- package/dist/benchmarks/routing/dataset.d.ts.map +1 -0
- package/dist/benchmarks/routing/index.d.ts +34 -0
- package/dist/benchmarks/routing/index.d.ts.map +1 -0
- package/dist/benchmarks/types.d.ts +49 -0
- package/dist/benchmarks/types.d.ts.map +1 -0
- package/dist/bisector.d.ts +81 -0
- package/dist/bisector.d.ts.map +1 -0
- package/dist/budget-guard.d.ts +31 -0
- package/dist/budget-guard.d.ts.map +1 -0
- package/dist/builder-eval/builder-session.d.ts +111 -0
- package/dist/builder-eval/builder-session.d.ts.map +1 -0
- package/dist/builder-eval/correlation.d.ts +32 -0
- package/dist/builder-eval/correlation.d.ts.map +1 -0
- package/dist/builder-eval/index.d.ts +5 -250
- package/dist/builder-eval/index.d.ts.map +1 -0
- package/dist/builder-eval/index.js +2 -2
- package/dist/builder-eval/project-registry.d.ts +51 -0
- package/dist/builder-eval/project-registry.d.ts.map +1 -0
- package/dist/builder-eval/three-layer-eval.d.ts +55 -0
- package/dist/builder-eval/three-layer-eval.d.ts.map +1 -0
- package/dist/campaign/analyst-surface.d.ts +108 -0
- package/dist/campaign/analyst-surface.d.ts.map +1 -0
- package/dist/campaign/analyst-surface.test.d.ts +2 -0
- package/dist/campaign/analyst-surface.test.d.ts.map +1 -0
- package/dist/campaign/auto-pr.d.ts +46 -0
- package/dist/campaign/auto-pr.d.ts.map +1 -0
- package/dist/campaign/distillation/agreement-judge.d.ts +69 -0
- package/dist/campaign/distillation/agreement-judge.d.ts.map +1 -0
- package/dist/campaign/distillation/cli.d.ts +35 -0
- package/dist/campaign/distillation/cli.d.ts.map +1 -0
- package/dist/campaign/distillation/distillation.test.d.ts +2 -0
- package/dist/campaign/distillation/distillation.test.d.ts.map +1 -0
- package/dist/campaign/distillation/gold-scenarios.d.ts +54 -0
- package/dist/campaign/distillation/gold-scenarios.d.ts.map +1 -0
- package/dist/campaign/distillation/run-distillation.d.ts +119 -0
- package/dist/campaign/distillation/run-distillation.d.ts.map +1 -0
- package/dist/campaign/gates/compose.d.ts +12 -0
- package/dist/campaign/gates/compose.d.ts.map +1 -0
- package/dist/campaign/gates/default-production-gate.d.ts +58 -0
- package/dist/campaign/gates/default-production-gate.d.ts.map +1 -0
- package/dist/campaign/gates/heldout-gate.d.ts +12 -0
- package/dist/campaign/gates/heldout-gate.d.ts.map +1 -0
- package/dist/campaign/gates/promotion-policy.d.ts +125 -0
- package/dist/campaign/gates/promotion-policy.d.ts.map +1 -0
- package/dist/campaign/gates/promotion-policy.test.d.ts +2 -0
- package/dist/campaign/gates/promotion-policy.test.d.ts.map +1 -0
- package/dist/campaign/gates/sequential.d.ts +146 -0
- package/dist/campaign/gates/sequential.d.ts.map +1 -0
- package/dist/campaign/gates/sequential.test.d.ts +2 -0
- package/dist/campaign/gates/sequential.test.d.ts.map +1 -0
- package/dist/campaign/gates/statistical-heldout.d.ts +99 -0
- package/dist/campaign/gates/statistical-heldout.d.ts.map +1 -0
- package/dist/campaign/gates/statistical-heldout.test.d.ts +2 -0
- package/dist/campaign/gates/statistical-heldout.test.d.ts.map +1 -0
- package/dist/campaign/index.d.ts +38 -1341
- package/dist/campaign/index.d.ts.map +1 -0
- package/dist/campaign/index.js +1865 -1318
- package/dist/campaign/index.js.map +1 -1
- package/dist/campaign/labeled-store/fs-adapter.d.ts +59 -0
- package/dist/campaign/labeled-store/fs-adapter.d.ts.map +1 -0
- package/dist/campaign/presets/compare-proposers.d.ts +146 -0
- package/dist/campaign/presets/compare-proposers.d.ts.map +1 -0
- package/dist/campaign/presets/playback.d.ts +120 -0
- package/dist/campaign/presets/playback.d.ts.map +1 -0
- package/dist/campaign/presets/playback.test.d.ts +2 -0
- package/dist/campaign/presets/playback.test.d.ts.map +1 -0
- package/dist/campaign/presets/run-eval.d.ts +14 -0
- package/dist/campaign/presets/run-eval.d.ts.map +1 -0
- package/dist/campaign/presets/run-improvement-loop.d.ts +63 -0
- package/dist/campaign/presets/run-improvement-loop.d.ts.map +1 -0
- package/dist/campaign/presets/run-improvement-loop.test.d.ts +2 -0
- package/dist/campaign/presets/run-improvement-loop.test.d.ts.map +1 -0
- package/dist/campaign/presets/run-optimization.d.ts +92 -0
- package/dist/campaign/presets/run-optimization.d.ts.map +1 -0
- package/dist/campaign/presets/run-profile-matrix.d.ts +151 -0
- package/dist/campaign/presets/run-profile-matrix.d.ts.map +1 -0
- package/dist/campaign/presets/run-skill-opt.d.ts +96 -0
- package/dist/campaign/presets/run-skill-opt.d.ts.map +1 -0
- package/dist/campaign/proposers/_findings-text.d.ts +22 -0
- package/dist/campaign/proposers/_findings-text.d.ts.map +1 -0
- package/dist/campaign/proposers/ace.d.ts +33 -0
- package/dist/campaign/proposers/ace.d.ts.map +1 -0
- package/dist/campaign/proposers/ace.test.d.ts +2 -0
- package/dist/campaign/proposers/ace.test.d.ts.map +1 -0
- package/dist/campaign/proposers/analysis-edit.d.ts +32 -0
- package/dist/campaign/proposers/analysis-edit.d.ts.map +1 -0
- package/dist/campaign/proposers/evolutionary.d.ts +20 -0
- package/dist/campaign/proposers/evolutionary.d.ts.map +1 -0
- package/dist/campaign/proposers/fapo.d.ts +120 -0
- package/dist/campaign/proposers/fapo.d.ts.map +1 -0
- package/dist/campaign/proposers/gepa.d.ts +86 -0
- package/dist/campaign/proposers/gepa.d.ts.map +1 -0
- package/dist/campaign/proposers/halo.d.ts +44 -0
- package/dist/campaign/proposers/halo.d.ts.map +1 -0
- package/dist/campaign/proposers/halo.test.d.ts +2 -0
- package/dist/campaign/proposers/halo.test.d.ts.map +1 -0
- package/dist/campaign/proposers/memory.d.ts +47 -0
- package/dist/campaign/proposers/memory.d.ts.map +1 -0
- package/dist/campaign/proposers/memory.test.d.ts +2 -0
- package/dist/campaign/proposers/memory.test.d.ts.map +1 -0
- package/dist/campaign/proposers/skill-opt.d.ts +88 -0
- package/dist/campaign/proposers/skill-opt.d.ts.map +1 -0
- package/dist/campaign/proposers/trace-analyst.d.ts +48 -0
- package/dist/campaign/proposers/trace-analyst.d.ts.map +1 -0
- package/dist/campaign/proposers/trace-analyst.test.d.ts +2 -0
- package/dist/campaign/proposers/trace-analyst.test.d.ts.map +1 -0
- package/dist/campaign/provenance.d.ts +185 -0
- package/dist/campaign/provenance.d.ts.map +1 -0
- package/dist/campaign/run-campaign.d.ts +90 -0
- package/dist/campaign/run-campaign.d.ts.map +1 -0
- package/dist/campaign/score-utils.d.ts +26 -0
- package/dist/campaign/score-utils.d.ts.map +1 -0
- package/dist/campaign/skill-patch.d.ts +62 -0
- package/dist/campaign/skill-patch.d.ts.map +1 -0
- package/dist/campaign/storage.d.ts +38 -0
- package/dist/campaign/storage.d.ts.map +1 -0
- package/dist/{types-BU-7W85F.d.ts → campaign/types.d.ts} +98 -99
- package/dist/campaign/types.d.ts.map +1 -0
- package/dist/campaign/worktree/index.d.ts +53 -0
- package/dist/campaign/worktree/index.d.ts.map +1 -0
- package/dist/canary.d.ts +101 -0
- package/dist/canary.d.ts.map +1 -0
- package/dist/causal-attribution.d.ts +45 -0
- package/dist/causal-attribution.d.ts.map +1 -0
- package/dist/{chunk-TWS7AZEY.js → chunk-2T4EZACH.js} +2 -2
- package/dist/chunk-2T4EZACH.js.map +1 -0
- package/dist/{chunk-LMZQ2Z4U.js → chunk-56GC6VYO.js} +126 -1
- package/dist/chunk-56GC6VYO.js.map +1 -0
- package/dist/{chunk-QG2OVF2D.js → chunk-77T4STFI.js} +154 -112
- package/dist/chunk-77T4STFI.js.map +1 -0
- package/dist/{chunk-ZFIBGEOL.js → chunk-7QTQKIDD.js} +179 -178
- package/dist/chunk-7QTQKIDD.js.map +1 -0
- package/dist/{chunk-UMMZHCPB.js → chunk-AQ5WQAIV.js} +26 -9
- package/dist/chunk-AQ5WQAIV.js.map +1 -0
- package/dist/{chunk-CVVHBFGN.js → chunk-CWNP4DV4.js} +53 -5
- package/dist/chunk-CWNP4DV4.js.map +1 -0
- package/dist/{chunk-QS3RBQPI.js → chunk-D5KBVULY.js} +2 -2
- package/dist/chunk-DJWX3GVS.js +81 -0
- package/dist/chunk-DJWX3GVS.js.map +1 -0
- package/dist/{chunk-S6OZEZQK.js → chunk-HMA63UEO.js} +37 -9
- package/dist/{chunk-S6OZEZQK.js.map → chunk-HMA63UEO.js.map} +1 -1
- package/dist/{chunk-UHMJT4T7.js → chunk-IZCEK2HR.js} +2 -2
- package/dist/{chunk-6SOJM3VR.js → chunk-KKWJD5E6.js} +21 -21
- package/dist/chunk-KKWJD5E6.js.map +1 -0
- package/dist/{chunk-KWRRMR3J.js → chunk-LO6IOIJ2.js} +10 -10
- package/dist/chunk-LO6IOIJ2.js.map +1 -0
- package/dist/{chunk-L3JOU6XM.js → chunk-NACM5RS7.js} +3 -3
- package/dist/{chunk-E4GH6USR.js → chunk-NZEQVRH5.js} +2 -2
- package/dist/chunk-NZEQVRH5.js.map +1 -0
- package/dist/{chunk-XY4DDNEG.js → chunk-PSWWQXHF.js} +14 -89
- package/dist/chunk-PSWWQXHF.js.map +1 -0
- package/dist/{chunk-4FBZZIYD.js → chunk-QTMYW64F.js} +2 -2
- package/dist/{chunk-D3V5B42D.js → chunk-S4SYLDFX.js} +7 -4
- package/dist/chunk-S4SYLDFX.js.map +1 -0
- package/dist/{chunk-47X6LRCE.js → chunk-UFSG7ACU.js} +10 -7
- package/dist/chunk-UFSG7ACU.js.map +1 -0
- package/dist/{chunk-CY6U5S3X.js → chunk-URWVKRCS.js} +2 -2
- package/dist/{chunk-GSH6QNNS.js → chunk-X74V6ESX.js} +102 -79
- package/dist/chunk-X74V6ESX.js.map +1 -0
- package/dist/{chunk-QAY5UIJO.js → chunk-YBIGNSCZ.js} +178 -59
- package/dist/chunk-YBIGNSCZ.js.map +1 -0
- package/dist/{chunk-Y47J2LJ3.js → chunk-Z6L6YSU6.js} +5 -5
- package/dist/{chunk-T375SUOZ.js → chunk-ZOPLCJSY.js} +86 -31
- package/dist/chunk-ZOPLCJSY.js.map +1 -0
- package/dist/ci-gate.d.ts +44 -0
- package/dist/ci-gate.d.ts.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/client.d.ts +77 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.test.d.ts +2 -0
- package/dist/client.test.d.ts.map +1 -0
- package/dist/command-runner.d.ts +74 -0
- package/dist/command-runner.d.ts.map +1 -0
- package/dist/command-runner.test.d.ts +2 -0
- package/dist/command-runner.test.d.ts.map +1 -0
- package/dist/completion-verifier.d.ts +147 -0
- package/dist/completion-verifier.d.ts.map +1 -0
- package/dist/completion-verifier.test.d.ts +9 -0
- package/dist/completion-verifier.test.d.ts.map +1 -0
- package/dist/concurrency.d.ts +23 -0
- package/dist/concurrency.d.ts.map +1 -0
- package/dist/contamination-guard.d.ts +81 -0
- package/dist/contamination-guard.d.ts.map +1 -0
- package/dist/{analyze-runs-DwCEkpO_.d.ts → contract/analyze-runs.d.ts} +9 -10
- package/dist/contract/analyze-runs.d.ts.map +1 -0
- package/dist/contract/define-agent-eval.d.ts +52 -0
- package/dist/contract/define-agent-eval.d.ts.map +1 -0
- package/dist/contract/diff.d.ts +114 -0
- package/dist/contract/diff.d.ts.map +1 -0
- package/dist/contract/index.d.ts +106 -640
- package/dist/contract/index.d.ts.map +1 -0
- package/dist/contract/index.js +131 -21
- package/dist/contract/index.js.map +1 -1
- package/dist/{insight-report-BBwvOh6x.d.ts → contract/insight-report.d.ts} +16 -19
- package/dist/contract/insight-report.d.ts.map +1 -0
- package/dist/contract/insight-types-fwd.d.ts +7 -0
- package/dist/contract/insight-types-fwd.d.ts.map +1 -0
- package/dist/contract/intake/agent-trace.d.ts +97 -0
- package/dist/contract/intake/agent-trace.d.ts.map +1 -0
- package/dist/{code-agent-session-BO8nCnv3.d.ts → contract/intake/code-agent-session.d.ts} +15 -17
- package/dist/contract/intake/code-agent-session.d.ts.map +1 -0
- package/dist/contract/intake/feedback-table.d.ts +87 -0
- package/dist/contract/intake/feedback-table.d.ts.map +1 -0
- package/dist/contract/intake/index.d.ts +22 -0
- package/dist/contract/intake/index.d.ts.map +1 -0
- package/dist/contract/intake/otel-spans.d.ts +33 -0
- package/dist/contract/intake/otel-spans.d.ts.map +1 -0
- package/dist/contract/self-improve.d.ts +284 -0
- package/dist/contract/self-improve.d.ts.map +1 -0
- package/dist/{control-runtime-DuFBYg7A.d.ts → control-runtime.d.ts} +23 -26
- package/dist/control-runtime.d.ts.map +1 -0
- package/dist/control-runtime.test.d.ts +2 -0
- package/dist/control-runtime.test.d.ts.map +1 -0
- package/dist/control.d.ts +11 -9
- package/dist/control.d.ts.map +1 -0
- package/dist/control.js +2 -2
- package/dist/convergence.d.ts +29 -0
- package/dist/convergence.d.ts.map +1 -0
- package/dist/{cost-ledger-DuSqlw5B.d.ts → cost-ledger.d.ts} +10 -11
- package/dist/cost-ledger.d.ts.map +1 -0
- package/dist/cost-ledger.test.d.ts +2 -0
- package/dist/cost-ledger.test.d.ts.map +1 -0
- package/dist/cost-report.d.ts +43 -0
- package/dist/cost-report.d.ts.map +1 -0
- package/dist/cost-report.test.d.ts +2 -0
- package/dist/cost-report.test.d.ts.map +1 -0
- package/dist/cost-tracker.d.ts +76 -0
- package/dist/cost-tracker.d.ts.map +1 -0
- package/dist/{counterfactual-Dwibr5IW.d.ts → counterfactual.d.ts} +12 -13
- package/dist/counterfactual.d.ts.map +1 -0
- package/dist/cross-trace-diff.d.ts +56 -0
- package/dist/cross-trace-diff.d.ts.map +1 -0
- package/dist/{dataset-BbGkaN2I.d.ts → dataset.d.ts} +11 -14
- package/dist/dataset.d.ts.map +1 -0
- package/dist/deploy-gate-layer.d.ts +125 -0
- package/dist/deploy-gate-layer.d.ts.map +1 -0
- package/dist/deploy-gate-layer.test.d.ts +2 -0
- package/dist/deploy-gate-layer.test.d.ts.map +1 -0
- package/dist/description-length-gate.d.ts +119 -0
- package/dist/description-length-gate.d.ts.map +1 -0
- package/dist/detectors/edge.test.d.ts +2 -0
- package/dist/detectors/edge.test.d.ts.map +1 -0
- package/dist/detectors/index.d.ts +81 -0
- package/dist/detectors/index.d.ts.map +1 -0
- package/dist/detectors/index.test.d.ts +2 -0
- package/dist/detectors/index.test.d.ts.map +1 -0
- package/dist/diagnose/causal-sweep.d.ts +100 -0
- package/dist/diagnose/causal-sweep.d.ts.map +1 -0
- package/dist/diagnose/index.d.ts +36 -0
- package/dist/diagnose/index.d.ts.map +1 -0
- package/dist/diagnose/remediation.d.ts +68 -0
- package/dist/diagnose/remediation.d.ts.map +1 -0
- package/dist/diagnose/repair.d.ts +77 -0
- package/dist/diagnose/repair.d.ts.map +1 -0
- package/dist/diagnose.d.ts +1 -251
- package/dist/diagnose.js +2 -2
- package/dist/discover-personas.d.ts +35 -0
- package/dist/discover-personas.d.ts.map +1 -0
- package/dist/driver.d.ts +95 -0
- package/dist/driver.d.ts.map +1 -0
- package/dist/driver.test.d.ts +8 -0
- package/dist/driver.test.d.ts.map +1 -0
- package/dist/dual-agent-bench.d.ts +81 -0
- package/dist/dual-agent-bench.d.ts.map +1 -0
- package/dist/error-count-extractor.d.ts +47 -0
- package/dist/error-count-extractor.d.ts.map +1 -0
- package/dist/error-count-extractor.test.d.ts +2 -0
- package/dist/error-count-extractor.test.d.ts.map +1 -0
- package/dist/{errors-CzMUYo7b.d.ts → errors.d.ts} +10 -11
- package/dist/errors.d.ts.map +1 -0
- package/dist/{researcher-DE6Gpnb4.d.ts → eval-campaign.d.ts} +34 -156
- package/dist/eval-campaign.d.ts.map +1 -0
- package/dist/eval-campaign.test.d.ts +2 -0
- package/dist/eval-campaign.test.d.ts.map +1 -0
- package/dist/eval-tools.d.ts +55 -0
- package/dist/eval-tools.d.ts.map +1 -0
- package/dist/eval-trace-store.d.ts +107 -0
- package/dist/eval-trace-store.d.ts.map +1 -0
- package/dist/eval-trace-store.test.d.ts +2 -0
- package/dist/eval-trace-store.test.d.ts.map +1 -0
- package/dist/executor.d.ts +38 -0
- package/dist/executor.d.ts.map +1 -0
- package/dist/executor.test.d.ts +10 -0
- package/dist/executor.test.d.ts.map +1 -0
- package/dist/experiment-tracker.d.ts +178 -0
- package/dist/experiment-tracker.d.ts.map +1 -0
- package/dist/experiment-tracker.test.d.ts +2 -0
- package/dist/experiment-tracker.test.d.ts.map +1 -0
- package/dist/failure-taxonomy.d.ts +38 -0
- package/dist/failure-taxonomy.d.ts.map +1 -0
- package/dist/{feedback-trajectory-D9OVLrg9.d.ts → feedback-trajectory.d.ts} +36 -38
- package/dist/feedback-trajectory.d.ts.map +1 -0
- package/dist/feedback-trajectory.test.d.ts +2 -0
- package/dist/feedback-trajectory.test.d.ts.map +1 -0
- package/dist/flow-layer.d.ts +90 -0
- package/dist/flow-layer.d.ts.map +1 -0
- package/dist/flow-layer.test.d.ts +2 -0
- package/dist/flow-layer.test.d.ts.map +1 -0
- package/dist/fuzz/capsule.d.ts +46 -0
- package/dist/fuzz/capsule.d.ts.map +1 -0
- package/dist/fuzz/cube.d.ts +36 -0
- package/dist/fuzz/cube.d.ts.map +1 -0
- package/dist/fuzz/explorer-cost.test.d.ts +2 -0
- package/dist/fuzz/explorer-cost.test.d.ts.map +1 -0
- package/dist/fuzz/explorer.d.ts +64 -0
- package/dist/fuzz/explorer.d.ts.map +1 -0
- package/dist/fuzz/fuzz-agent.d.ts +16 -0
- package/dist/fuzz/fuzz-agent.d.ts.map +1 -0
- package/dist/fuzz/fuzz-agent.test.d.ts +2 -0
- package/dist/fuzz/fuzz-agent.test.d.ts.map +1 -0
- package/dist/fuzz/gates.d.ts +33 -0
- package/dist/fuzz/gates.d.ts.map +1 -0
- package/dist/fuzz/index.d.ts +26 -0
- package/dist/fuzz/index.d.ts.map +1 -0
- package/dist/fuzz/policies.d.ts +28 -0
- package/dist/fuzz/policies.d.ts.map +1 -0
- package/dist/fuzz/tools.d.ts +20 -0
- package/dist/fuzz/tools.d.ts.map +1 -0
- package/dist/fuzz/types.d.ts +307 -0
- package/dist/fuzz/types.d.ts.map +1 -0
- package/dist/fuzz.d.ts +1 -547
- package/dist/golden-matcher.d.ts +71 -0
- package/dist/golden-matcher.d.ts.map +1 -0
- package/dist/governance/eu-ai-act.d.ts +37 -0
- package/dist/governance/eu-ai-act.d.ts.map +1 -0
- package/dist/governance/index.d.ts +5 -135
- package/dist/governance/index.d.ts.map +1 -0
- package/dist/governance/nist-ai-rmf.d.ts +15 -0
- package/dist/governance/nist-ai-rmf.d.ts.map +1 -0
- package/dist/governance/soc2.d.ts +12 -0
- package/dist/governance/soc2.d.ts.map +1 -0
- package/dist/governance/types.d.ts +66 -0
- package/dist/governance/types.d.ts.map +1 -0
- package/dist/harness-optimizer.d.ts +82 -0
- package/dist/harness-optimizer.d.ts.map +1 -0
- package/dist/held-out-gate.d.ts +135 -0
- package/dist/held-out-gate.d.ts.map +1 -0
- package/dist/hosted/client.d.ts +73 -0
- package/dist/hosted/client.d.ts.map +1 -0
- package/dist/hosted/from-env.test.d.ts +8 -0
- package/dist/hosted/from-env.test.d.ts.map +1 -0
- package/dist/hosted/index.d.ts +10 -238
- package/dist/hosted/index.d.ts.map +1 -0
- package/dist/hosted/types.d.ts +159 -0
- package/dist/hosted/types.d.ts.map +1 -0
- package/dist/index.d.ts +277 -5643
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +317 -108
- package/dist/index.js.map +1 -1
- package/dist/integrity/backend-integrity.d.ts +71 -0
- package/dist/integrity/backend-integrity.d.ts.map +1 -0
- package/dist/integrity/preflight.d.ts +72 -0
- package/dist/integrity/preflight.d.ts.map +1 -0
- package/dist/integrity/preflight.test.d.ts +2 -0
- package/dist/integrity/preflight.test.d.ts.map +1 -0
- package/dist/integrity/single-backend.d.ts +67 -0
- package/dist/integrity/single-backend.d.ts.map +1 -0
- package/dist/intent-match-judge.d.ts +69 -0
- package/dist/intent-match-judge.d.ts.map +1 -0
- package/dist/intent-match-judge.test.d.ts +2 -0
- package/dist/intent-match-judge.test.d.ts.map +1 -0
- package/dist/{judge-calibration-0p2QcWNE.d.ts → judge-calibration.d.ts} +16 -17
- package/dist/judge-calibration.d.ts.map +1 -0
- package/dist/judge-ensemble.d.ts +66 -0
- package/dist/judge-ensemble.d.ts.map +1 -0
- package/dist/judge-ensemble.test.d.ts +8 -0
- package/dist/judge-ensemble.test.d.ts.map +1 -0
- package/dist/judge-families.d.ts +38 -0
- package/dist/judge-families.d.ts.map +1 -0
- package/dist/judge-panel.d.ts +65 -0
- package/dist/judge-panel.d.ts.map +1 -0
- package/dist/judge-retry.d.ts +70 -0
- package/dist/judge-retry.d.ts.map +1 -0
- package/dist/judge-runner.d.ts +36 -0
- package/dist/judge-runner.d.ts.map +1 -0
- package/dist/judge-runner.test.d.ts +2 -0
- package/dist/judge-runner.test.d.ts.map +1 -0
- package/dist/judges.d.ts +74 -0
- package/dist/judges.d.ts.map +1 -0
- package/dist/keyword-coverage-judge.d.ts +89 -0
- package/dist/keyword-coverage-judge.d.ts.map +1 -0
- package/dist/keyword-coverage-judge.test.d.ts +2 -0
- package/dist/keyword-coverage-judge.test.d.ts.map +1 -0
- package/dist/knowledge/index.d.ts +3 -103
- package/dist/knowledge/index.d.ts.map +1 -0
- package/dist/knowledge/readiness.d.ts +26 -0
- package/dist/knowledge/readiness.d.ts.map +1 -0
- package/dist/knowledge/types.d.ts +75 -0
- package/dist/knowledge/types.d.ts.map +1 -0
- package/dist/live-proof.d.ts +62 -0
- package/dist/live-proof.d.ts.map +1 -0
- package/dist/{llm-client-BeEcAokY.d.ts → llm-client.d.ts} +52 -23
- package/dist/llm-client.d.ts.map +1 -0
- package/dist/llm-client.test.d.ts +2 -0
- package/dist/llm-client.test.d.ts.map +1 -0
- package/dist/locked-jsonl-appender.d.ts +19 -0
- package/dist/locked-jsonl-appender.d.ts.map +1 -0
- package/dist/matrix/aggregation.d.ts +16 -0
- package/dist/matrix/aggregation.d.ts.map +1 -0
- package/dist/matrix/index.d.ts +12 -30
- package/dist/matrix/index.d.ts.map +1 -0
- package/dist/matrix/runner.d.ts +15 -0
- package/dist/matrix/runner.d.ts.map +1 -0
- package/dist/{types-mn5Aqk7x.d.ts → matrix/types.d.ts} +11 -15
- package/dist/matrix/types.d.ts.map +1 -0
- package/dist/meta-eval/calibration.d.ts +47 -0
- package/dist/meta-eval/calibration.d.ts.map +1 -0
- package/dist/meta-eval/correlation-study.d.ts +53 -0
- package/dist/meta-eval/correlation-study.d.ts.map +1 -0
- package/dist/meta-eval/index.d.ts +6 -181
- package/dist/meta-eval/index.d.ts.map +1 -0
- package/dist/meta-eval/index.js +1 -1
- package/dist/{outcome-store-rnXLEqSn.d.ts → meta-eval/outcome-store.d.ts} +7 -8
- package/dist/meta-eval/outcome-store.d.ts.map +1 -0
- package/dist/{rubric-predictive-validity-Cy_W-hWZ.d.ts → meta-eval/rubric-predictive-validity.d.ts} +8 -11
- package/dist/meta-eval/rubric-predictive-validity.d.ts.map +1 -0
- package/dist/meta-eval/sentinel.d.ts +169 -0
- package/dist/meta-eval/sentinel.d.ts.map +1 -0
- package/dist/metrics.d.ts +63 -0
- package/dist/metrics.d.ts.map +1 -0
- package/dist/model-seats.d.ts +71 -0
- package/dist/model-seats.d.ts.map +1 -0
- package/dist/model-seats.test.d.ts +2 -0
- package/dist/model-seats.test.d.ts.map +1 -0
- package/dist/muffled-gate-scanner.d.ts +102 -0
- package/dist/muffled-gate-scanner.d.ts.map +1 -0
- package/dist/{multi-layer-verifier-DUZXrPDA.d.ts → multi-layer-verifier.d.ts} +12 -15
- package/dist/multi-layer-verifier.d.ts.map +1 -0
- package/dist/multi-layer-verifier.test.d.ts +2 -0
- package/dist/multi-layer-verifier.test.d.ts.map +1 -0
- package/dist/multi-toolchain-layer.d.ts +80 -0
- package/dist/multi-toolchain-layer.d.ts.map +1 -0
- package/dist/multi-toolchain-layer.test.d.ts +2 -0
- package/dist/multi-toolchain-layer.test.d.ts.map +1 -0
- package/dist/multishot/default-tools.d.ts +34 -0
- package/dist/multishot/default-tools.d.ts.map +1 -0
- package/dist/multishot/index.d.ts +7 -290
- package/dist/multishot/index.d.ts.map +1 -0
- package/dist/multishot/index.js.map +1 -1
- package/dist/multishot/judges.d.ts +32 -0
- package/dist/multishot/judges.d.ts.map +1 -0
- package/dist/multishot/matrix.d.ts +107 -0
- package/dist/multishot/matrix.d.ts.map +1 -0
- package/dist/multishot/multishot.d.ts +23 -0
- package/dist/multishot/multishot.d.ts.map +1 -0
- package/dist/multishot/router.d.ts +37 -0
- package/dist/multishot/router.d.ts.map +1 -0
- package/dist/multishot/types.d.ts +60 -0
- package/dist/multishot/types.d.ts.map +1 -0
- package/dist/observability.d.ts +71 -0
- package/dist/observability.d.ts.map +1 -0
- package/dist/openapi.json +1 -1
- package/dist/oracle.d.ts +55 -0
- package/dist/oracle.d.ts.map +1 -0
- package/dist/orthogonality.d.ts +35 -0
- package/dist/orthogonality.d.ts.map +1 -0
- package/dist/otel-pipeline.d.ts +31 -0
- package/dist/otel-pipeline.d.ts.map +1 -0
- package/dist/paraphrase.d.ts +107 -0
- package/dist/paraphrase.d.ts.map +1 -0
- package/dist/{pareto-E-pembql.d.ts → pareto.d.ts} +9 -10
- package/dist/pareto.d.ts.map +1 -0
- package/dist/partition-held-out.d.ts +70 -0
- package/dist/partition-held-out.d.ts.map +1 -0
- package/dist/partition-held-out.test.d.ts +2 -0
- package/dist/partition-held-out.test.d.ts.map +1 -0
- package/dist/perf/index.d.ts +13 -119
- package/dist/perf/index.d.ts.map +1 -0
- package/dist/perf/integrity.d.ts +30 -0
- package/dist/perf/integrity.d.ts.map +1 -0
- package/dist/perf/journey.d.ts +45 -0
- package/dist/perf/journey.d.ts.map +1 -0
- package/dist/perf/ratchet.d.ts +47 -0
- package/dist/perf/ratchet.d.ts.map +1 -0
- package/dist/pipelines/budget-breach.d.ts +31 -0
- package/dist/pipelines/budget-breach.d.ts.map +1 -0
- package/dist/pipelines/budget-breach.test.d.ts +2 -0
- package/dist/pipelines/budget-breach.test.d.ts.map +1 -0
- package/dist/pipelines/failure-cluster.d.ts +38 -0
- package/dist/pipelines/failure-cluster.d.ts.map +1 -0
- package/dist/pipelines/failure-cluster.test.d.ts +2 -0
- package/dist/pipelines/failure-cluster.test.d.ts.map +1 -0
- package/dist/pipelines/first-divergence.d.ts +26 -0
- package/dist/pipelines/first-divergence.d.ts.map +1 -0
- package/dist/pipelines/first-divergence.test.d.ts +2 -0
- package/dist/pipelines/first-divergence.test.d.ts.map +1 -0
- package/dist/pipelines/index.d.ts +8 -173
- package/dist/pipelines/index.d.ts.map +1 -0
- package/dist/pipelines/index.js +40 -15
- package/dist/pipelines/index.js.map +1 -1
- package/dist/pipelines/judge-agreement.d.ts +26 -0
- package/dist/pipelines/judge-agreement.d.ts.map +1 -0
- package/dist/pipelines/judge-agreement.test.d.ts +2 -0
- package/dist/pipelines/judge-agreement.test.d.ts.map +1 -0
- package/dist/pipelines/regression.d.ts +23 -0
- package/dist/pipelines/regression.d.ts.map +1 -0
- package/dist/pipelines/regression.test.d.ts +2 -0
- package/dist/pipelines/regression.test.d.ts.map +1 -0
- package/dist/pipelines/stuck-loop.d.ts +32 -0
- package/dist/pipelines/stuck-loop.d.ts.map +1 -0
- package/dist/pipelines/stuck-loop.test.d.ts +2 -0
- package/dist/pipelines/stuck-loop.test.d.ts.map +1 -0
- package/dist/pipelines/tool-waste.d.ts +34 -0
- package/dist/pipelines/tool-waste.d.ts.map +1 -0
- package/dist/pipelines/tool-waste.test.d.ts +2 -0
- package/dist/pipelines/tool-waste.test.d.ts.map +1 -0
- package/dist/playbook.d.ts +16 -0
- package/dist/playbook.d.ts.map +1 -0
- package/dist/pr-review-benchmark.d.ts +88 -0
- package/dist/pr-review-benchmark.d.ts.map +1 -0
- package/dist/pr-review-benchmark.test.d.ts +2 -0
- package/dist/pr-review-benchmark.test.d.ts.map +1 -0
- package/dist/pre-registration.d.ts +125 -0
- package/dist/pre-registration.d.ts.map +1 -0
- package/dist/prm/builtin-rubrics.d.ts +33 -0
- package/dist/prm/builtin-rubrics.d.ts.map +1 -0
- package/dist/prm/index.d.ts +5 -100
- package/dist/prm/index.d.ts.map +1 -0
- package/dist/prm/index.js +55 -12
- package/dist/prm/index.js.map +1 -1
- package/dist/prm/inference.d.ts +29 -0
- package/dist/prm/inference.d.ts.map +1 -0
- package/dist/prm/inference.test.d.ts +2 -0
- package/dist/prm/inference.test.d.ts.map +1 -0
- package/dist/{rubric-BOfxn4ja.d.ts → prm/rubric.d.ts} +10 -13
- package/dist/prm/rubric.d.ts.map +1 -0
- package/dist/prm/training-export.d.ts +38 -0
- package/dist/prm/training-export.d.ts.map +1 -0
- package/dist/produced-state.d.ts +63 -0
- package/dist/produced-state.d.ts.map +1 -0
- package/dist/produced-state.test.d.ts +8 -0
- package/dist/produced-state.test.d.ts.map +1 -0
- package/dist/profile/baselines.d.ts +37 -0
- package/dist/profile/baselines.d.ts.map +1 -0
- package/dist/profile/index.d.ts +105 -0
- package/dist/profile/index.d.ts.map +1 -0
- package/dist/promotion-gate.d.ts +93 -0
- package/dist/promotion-gate.d.ts.map +1 -0
- package/dist/prompt-registry.d.ts +41 -0
- package/dist/prompt-registry.d.ts.map +1 -0
- package/dist/propose-review-control.d.ts +49 -0
- package/dist/propose-review-control.d.ts.map +1 -0
- package/dist/propose-review-control.test.d.ts +2 -0
- package/dist/propose-review-control.test.d.ts.map +1 -0
- package/dist/propose-review.d.ts +155 -0
- package/dist/propose-review.d.ts.map +1 -0
- package/dist/{red-team-BXHil6c8.d.ts → red-team.d.ts} +14 -16
- package/dist/red-team.d.ts.map +1 -0
- package/dist/reference-replay-steering.d.ts +11 -0
- package/dist/reference-replay-steering.d.ts.map +1 -0
- package/dist/reference-replay.d.ts +176 -0
- package/dist/reference-replay.d.ts.map +1 -0
- package/dist/reflective-mutation.d.ts +79 -0
- package/dist/reflective-mutation.d.ts.map +1 -0
- package/dist/registry.d.ts +31 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/release-confidence.d.ts +128 -0
- package/dist/release-confidence.d.ts.map +1 -0
- package/dist/release-report.d.ts +11 -0
- package/dist/release-report.d.ts.map +1 -0
- package/dist/replay.d.ts +120 -0
- package/dist/replay.d.ts.map +1 -0
- package/dist/reporter.d.ts +14 -0
- package/dist/reporter.d.ts.map +1 -0
- package/dist/reporting.d.ts +15 -15
- package/dist/reporting.d.ts.map +1 -0
- package/dist/reporting.js +3 -3
- package/dist/researcher.d.ts +140 -0
- package/dist/researcher.d.ts.map +1 -0
- package/dist/reviewer.d.ts +118 -0
- package/dist/reviewer.d.ts.map +1 -0
- package/dist/reviewer.test.d.ts +2 -0
- package/dist/reviewer.test.d.ts.map +1 -0
- package/dist/reward-model-export.d.ts +60 -0
- package/dist/reward-model-export.d.ts.map +1 -0
- package/dist/rl/active-curriculum.d.ts +110 -0
- package/dist/rl/active-curriculum.d.ts.map +1 -0
- package/dist/rl/adaptation-eval.d.ts +109 -0
- package/dist/rl/adaptation-eval.d.ts.map +1 -0
- package/dist/{adversarial-DIVcDoI_.d.ts → rl/adversarial.d.ts} +6 -7
- package/dist/rl/adversarial.d.ts.map +1 -0
- package/dist/rl/compute-curves.d.ts +127 -0
- package/dist/rl/compute-curves.d.ts.map +1 -0
- package/dist/rl/contamination.d.ts +117 -0
- package/dist/rl/contamination.d.ts.map +1 -0
- package/dist/rl/corpus.d.ts +55 -0
- package/dist/rl/corpus.d.ts.map +1 -0
- package/dist/rl/corpus.test.d.ts +2 -0
- package/dist/rl/corpus.test.d.ts.map +1 -0
- package/dist/rl/dataset.d.ts +102 -0
- package/dist/rl/dataset.d.ts.map +1 -0
- package/dist/rl/dataset.test.d.ts +2 -0
- package/dist/rl/dataset.test.d.ts.map +1 -0
- package/dist/rl/exporters.d.ts +141 -0
- package/dist/rl/exporters.d.ts.map +1 -0
- package/dist/rl/index.d.ts +49 -0
- package/dist/rl/index.d.ts.map +1 -0
- package/dist/{off-policy-DiwuKKg7.d.ts → rl/off-policy.d.ts} +8 -9
- package/dist/rl/off-policy.d.ts.map +1 -0
- package/dist/rl/predictive-validity-researcher.d.ts +69 -0
- package/dist/rl/predictive-validity-researcher.d.ts.map +1 -0
- package/dist/rl/preferences.d.ts +141 -0
- package/dist/rl/preferences.d.ts.map +1 -0
- package/dist/rl/process-reward.d.ts +122 -0
- package/dist/rl/process-reward.d.ts.map +1 -0
- package/dist/rl/reward-hacking.d.ts +104 -0
- package/dist/rl/reward-hacking.d.ts.map +1 -0
- package/dist/rl/rl-campaign.d.ts +85 -0
- package/dist/rl/rl-campaign.d.ts.map +1 -0
- package/dist/rl/run-record-adapters.d.ts +56 -0
- package/dist/rl/run-record-adapters.d.ts.map +1 -0
- package/dist/rl/sim-fidelity.d.ts +166 -0
- package/dist/rl/sim-fidelity.d.ts.map +1 -0
- package/dist/rl/sim-fidelity.test.d.ts +2 -0
- package/dist/rl/sim-fidelity.test.d.ts.map +1 -0
- package/dist/rl/tournament.d.ts +115 -0
- package/dist/rl/tournament.d.ts.map +1 -0
- package/dist/rl/verifiable-reward.d.ts +124 -0
- package/dist/rl/verifiable-reward.d.ts.map +1 -0
- package/dist/rl.d.ts +1 -1192
- package/dist/rl.js +615 -615
- package/dist/rl.js.map +1 -1
- package/dist/{run-campaign-RDGAM5KJ.js → run-campaign-WXY7KI67.js} +3 -3
- package/dist/run-critic.d.ts +23 -0
- package/dist/run-critic.d.ts.map +1 -0
- package/dist/run-evidence.d.ts +32 -0
- package/dist/run-evidence.d.ts.map +1 -0
- package/dist/{run-record-e7vj1uZQ.d.ts → run-record.d.ts} +16 -122
- package/dist/run-record.d.ts.map +1 -0
- package/dist/run-record.test.d.ts +2 -0
- package/dist/run-record.test.d.ts.map +1 -0
- package/dist/run-score.d.ts +31 -0
- package/dist/run-score.d.ts.map +1 -0
- package/dist/runtime-trajectory.d.ts +47 -0
- package/dist/runtime-trajectory.d.ts.map +1 -0
- package/dist/{test-graded-scenario-BdVaPyHT.d.ts → sandbox-harness.d.ts} +34 -60
- package/dist/sandbox-harness.d.ts.map +1 -0
- package/dist/sandbox-harness.test.d.ts +2 -0
- package/dist/sandbox-harness.test.d.ts.map +1 -0
- package/dist/sandbox-pool.d.ts +74 -0
- package/dist/sandbox-pool.d.ts.map +1 -0
- package/dist/sandbox-pool.test.d.ts +2 -0
- package/dist/sandbox-pool.test.d.ts.map +1 -0
- package/dist/scorecard.d.ts +133 -0
- package/dist/scorecard.d.ts.map +1 -0
- package/dist/scorecard.test.d.ts +2 -0
- package/dist/scorecard.test.d.ts.map +1 -0
- package/dist/self-play.d.ts +69 -0
- package/dist/self-play.d.ts.map +1 -0
- package/dist/semantic-concept-judge.d.ts +135 -0
- package/dist/semantic-concept-judge.d.ts.map +1 -0
- package/dist/semantic-concept-judge.test.d.ts +2 -0
- package/dist/semantic-concept-judge.test.d.ts.map +1 -0
- package/dist/{sequential-5iSVfzl2.d.ts → sequential.d.ts} +9 -10
- package/dist/sequential.d.ts.map +1 -0
- package/dist/{series-convergence-D5OWMBg6.d.ts → series-convergence.d.ts} +4 -5
- package/dist/series-convergence.d.ts.map +1 -0
- package/dist/slo.d.ts +48 -0
- package/dist/slo.d.ts.map +1 -0
- package/dist/state-continuity.d.ts +47 -0
- package/dist/state-continuity.d.ts.map +1 -0
- package/dist/{statistics-C7PozGrZ.d.ts → statistics.d.ts} +152 -39
- package/dist/statistics.d.ts.map +1 -0
- package/dist/statistics.test.d.ts +2 -0
- package/dist/statistics.test.d.ts.map +1 -0
- package/dist/steering-optimizer.d.ts +58 -0
- package/dist/steering-optimizer.d.ts.map +1 -0
- package/dist/steering.d.ts +24 -0
- package/dist/steering.d.ts.map +1 -0
- package/dist/storyboard/code-edit.d.ts +64 -0
- package/dist/storyboard/code-edit.d.ts.map +1 -0
- package/dist/storyboard/code-edit.test.d.ts +2 -0
- package/dist/storyboard/code-edit.test.d.ts.map +1 -0
- package/dist/storyboard/index.d.ts +16 -81
- package/dist/storyboard/index.d.ts.map +1 -0
- package/dist/storyboard/index.test.d.ts +2 -0
- package/dist/storyboard/index.test.d.ts.map +1 -0
- package/dist/{summary-report-DGmUucwQ.d.ts → summary-report.d.ts} +23 -160
- package/dist/summary-report.d.ts.map +1 -0
- package/dist/telemetry/client.d.ts +35 -0
- package/dist/telemetry/client.d.ts.map +1 -0
- package/dist/telemetry/index.d.ts +17 -35
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/schema.d.ts +61 -0
- package/dist/telemetry/schema.d.ts.map +1 -0
- package/dist/telemetry/sink-fetch.d.ts +39 -0
- package/dist/telemetry/sink-fetch.d.ts.map +1 -0
- package/dist/telemetry/{file.d.ts → sink-file.d.ts} +5 -7
- package/dist/telemetry/sink-file.d.ts.map +1 -0
- package/dist/test-graded-scenario.d.ts +42 -0
- package/dist/test-graded-scenario.d.ts.map +1 -0
- package/dist/testing.d.ts +5 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +8 -0
- package/dist/testing.js.map +1 -0
- package/dist/tool-use-metrics.d.ts +35 -0
- package/dist/tool-use-metrics.d.ts.map +1 -0
- package/dist/trace/capture-fetch.d.ts +48 -0
- package/dist/trace/capture-fetch.d.ts.map +1 -0
- package/dist/trace/capture-fetch.test.d.ts +2 -0
- package/dist/trace/capture-fetch.test.d.ts.map +1 -0
- package/dist/{emitter-DEZwY14K.d.ts → trace/emitter.d.ts} +9 -12
- package/dist/trace/emitter.d.ts.map +1 -0
- package/dist/trace/extract-usage.d.ts +46 -0
- package/dist/trace/extract-usage.d.ts.map +1 -0
- package/dist/trace/extract-usage.test.d.ts +2 -0
- package/dist/trace/extract-usage.test.d.ts.map +1 -0
- package/dist/trace/index.d.ts +15 -0
- package/dist/trace/index.d.ts.map +1 -0
- package/dist/{integrity-VJ9A7aST.d.ts → trace/integrity.d.ts} +11 -14
- package/dist/trace/integrity.d.ts.map +1 -0
- package/dist/trace/otel-bridge.d.ts +29 -0
- package/dist/trace/otel-bridge.d.ts.map +1 -0
- package/dist/trace/otel-export.d.ts +52 -0
- package/dist/trace/otel-export.d.ts.map +1 -0
- package/dist/trace/otel.d.ts +57 -0
- package/dist/trace/otel.d.ts.map +1 -0
- package/dist/trace/otlp-attributes.d.ts +17 -0
- package/dist/trace/otlp-attributes.d.ts.map +1 -0
- package/dist/trace/query.d.ts +29 -0
- package/dist/trace/query.d.ts.map +1 -0
- package/dist/trace/query.test.d.ts +2 -0
- package/dist/trace/query.test.d.ts.map +1 -0
- package/dist/{raw-provider-sink-C46HDghv.d.ts → trace/raw-provider-sink.d.ts} +13 -14
- package/dist/trace/raw-provider-sink.d.ts.map +1 -0
- package/dist/{redact-B40YG2M_.d.ts → trace/redact.d.ts} +7 -8
- package/dist/trace/redact.d.ts.map +1 -0
- package/dist/{schema-m0gsnbt3.d.ts → trace/schema.d.ts} +29 -30
- package/dist/trace/schema.d.ts.map +1 -0
- package/dist/trace/store-to-otlp.d.ts +72 -0
- package/dist/trace/store-to-otlp.d.ts.map +1 -0
- package/dist/trace/store-to-otlp.test.d.ts +2 -0
- package/dist/trace/store-to-otlp.test.d.ts.map +1 -0
- package/dist/{store-CKUAgsJz.d.ts → trace/store.d.ts} +37 -13
- package/dist/trace/store.d.ts.map +1 -0
- package/dist/trace/store.test.d.ts +2 -0
- package/dist/trace/store.test.d.ts.map +1 -0
- package/dist/{analyst-C8HHvfJp.d.ts → trace-analyst/analyst.d.ts} +12 -14
- package/dist/trace-analyst/analyst.d.ts.map +1 -0
- package/dist/trace-analyst/analyst.test.d.ts +2 -0
- package/dist/trace-analyst/analyst.test.d.ts.map +1 -0
- package/dist/trace-analyst/behavioral-metrics.d.ts +40 -0
- package/dist/trace-analyst/behavioral-metrics.d.ts.map +1 -0
- package/dist/trace-analyst/behavioral-metrics.test.d.ts +2 -0
- package/dist/trace-analyst/behavioral-metrics.test.d.ts.map +1 -0
- package/dist/trace-analyst/hook.d.ts +55 -0
- package/dist/trace-analyst/hook.d.ts.map +1 -0
- package/dist/trace-analyst/index.d.ts +18 -0
- package/dist/trace-analyst/index.d.ts.map +1 -0
- package/dist/trace-analyst/insights.d.ts +71 -0
- package/dist/trace-analyst/insights.d.ts.map +1 -0
- package/dist/trace-analyst/insights.test.d.ts +2 -0
- package/dist/trace-analyst/insights.test.d.ts.map +1 -0
- package/dist/trace-analyst/otlp-flatten.d.ts +42 -0
- package/dist/trace-analyst/otlp-flatten.d.ts.map +1 -0
- package/dist/trace-analyst/otlp-span.d.ts +85 -0
- package/dist/trace-analyst/otlp-span.d.ts.map +1 -0
- package/dist/trace-analyst/otlp-span.test.d.ts +2 -0
- package/dist/trace-analyst/otlp-span.test.d.ts.map +1 -0
- package/dist/trace-analyst/otlp-to-run-records.d.ts +115 -0
- package/dist/trace-analyst/otlp-to-run-records.d.ts.map +1 -0
- package/dist/trace-analyst/otlp-to-run-records.test.d.ts +2 -0
- package/dist/trace-analyst/otlp-to-run-records.test.d.ts.map +1 -0
- package/dist/trace-analyst/otlp-to-run-records.timestamps.test.d.ts +2 -0
- package/dist/trace-analyst/otlp-to-run-records.timestamps.test.d.ts.map +1 -0
- package/dist/trace-analyst/prompts.d.ts +6 -0
- package/dist/trace-analyst/prompts.d.ts.map +1 -0
- package/dist/trace-analyst/store-otlp.d.ts +126 -0
- package/dist/trace-analyst/store-otlp.d.ts.map +1 -0
- package/dist/trace-analyst/store-otlp.test.d.ts +8 -0
- package/dist/trace-analyst/store-otlp.test.d.ts.map +1 -0
- package/dist/trace-analyst/store-otlp.timestamps.test.d.ts +2 -0
- package/dist/trace-analyst/store-otlp.timestamps.test.d.ts.map +1 -0
- package/dist/trace-analyst/store.d.ts +63 -0
- package/dist/trace-analyst/store.d.ts.map +1 -0
- package/dist/trace-analyst/tools.d.ts +44 -0
- package/dist/trace-analyst/tools.d.ts.map +1 -0
- package/dist/trace-analyst/tools.test.d.ts +10 -0
- package/dist/trace-analyst/tools.test.d.ts.map +1 -0
- package/dist/{store-C1YxJDEK.d.ts → trace-analyst/types.d.ts} +18 -74
- package/dist/trace-analyst/types.d.ts.map +1 -0
- package/dist/trace-contracts.d.ts +180 -0
- package/dist/trace-contracts.d.ts.map +1 -0
- package/dist/traced-analyst.d.ts +26 -0
- package/dist/traced-analyst.d.ts.map +1 -0
- package/dist/traced-judges.d.ts +27 -0
- package/dist/traced-judges.d.ts.map +1 -0
- package/dist/traces.d.ts +4 -947
- package/dist/traces.d.ts.map +1 -0
- package/dist/traces.js +42 -12
- package/dist/{trajectory-GEdXJCL5.d.ts → trajectory.d.ts} +8 -9
- package/dist/trajectory.d.ts.map +1 -0
- package/dist/{types-Croy5h7V.d.ts → types.d.ts} +33 -33
- package/dist/types.d.ts.map +1 -0
- package/dist/ui-finding.d.ts +104 -0
- package/dist/ui-finding.d.ts.map +1 -0
- package/dist/verdict-cache.d.ts +78 -0
- package/dist/verdict-cache.d.ts.map +1 -0
- package/dist/verdict-cache.test.d.ts +2 -0
- package/dist/verdict-cache.test.d.ts.map +1 -0
- package/dist/{verdict-C9MlYujm.d.ts → verdict.d.ts} +2 -3
- package/dist/verdict.d.ts.map +1 -0
- package/dist/visual-diff.d.ts +32 -0
- package/dist/visual-diff.d.ts.map +1 -0
- package/dist/wire/handlers.d.ts +54 -0
- package/dist/wire/handlers.d.ts.map +1 -0
- package/dist/wire/index.d.ts +13 -570
- package/dist/wire/index.d.ts.map +1 -0
- package/dist/wire/index.js +2 -2
- package/dist/wire/openapi.d.ts +3 -0
- package/dist/wire/openapi.d.ts.map +1 -0
- package/dist/wire/rpc.d.ts +21 -0
- package/dist/wire/rpc.d.ts.map +1 -0
- package/dist/wire/rubrics.d.ts +34 -0
- package/dist/wire/rubrics.d.ts.map +1 -0
- package/dist/wire/schemas.d.ts +410 -0
- package/dist/wire/schemas.d.ts.map +1 -0
- package/dist/wire/server.d.ts +60 -0
- package/dist/wire/server.d.ts.map +1 -0
- package/dist/workflow/event-schema.d.ts +5 -0
- package/dist/workflow/event-schema.d.ts.map +1 -0
- package/dist/workflow/feedback-pack.d.ts +99 -0
- package/dist/workflow/feedback-pack.d.ts.map +1 -0
- package/dist/workflow/index.d.ts +22 -495
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/index.js +2 -2
- package/dist/workflow/intelligence-export.d.ts +62 -0
- package/dist/workflow/intelligence-export.d.ts.map +1 -0
- package/dist/workflow/partner-report.d.ts +49 -0
- package/dist/workflow/partner-report.d.ts.map +1 -0
- package/dist/workflow/phase-graph.d.ts +43 -0
- package/dist/workflow/phase-graph.d.ts.map +1 -0
- package/dist/workflow/promotion-gate.d.ts +61 -0
- package/dist/workflow/promotion-gate.d.ts.map +1 -0
- package/dist/workflow/run-record.d.ts +12 -0
- package/dist/workflow/run-record.d.ts.map +1 -0
- package/dist/workflow/runtime-adapter.d.ts +20 -0
- package/dist/workflow/runtime-adapter.d.ts.map +1 -0
- package/dist/workflow/sanitize.d.ts +21 -0
- package/dist/workflow/sanitize.d.ts.map +1 -0
- package/dist/workflow/schema.d.ts +5 -0
- package/dist/workflow/schema.d.ts.map +1 -0
- package/dist/workflow/summary.d.ts +43 -0
- package/dist/workflow/summary.d.ts.map +1 -0
- package/dist/workflow/trace-event-fields.d.ts +6 -0
- package/dist/workflow/trace-event-fields.d.ts.map +1 -0
- package/dist/workflow/trajectory.d.ts +15 -0
- package/dist/workflow/trajectory.d.ts.map +1 -0
- package/dist/workflow/types.d.ts +68 -0
- package/dist/workflow/types.d.ts.map +1 -0
- package/dist/workspace-inspector.d.ts +67 -0
- package/dist/workspace-inspector.d.ts.map +1 -0
- package/dist/wrangler-deploy-runner.test.d.ts +2 -0
- package/dist/wrangler-deploy-runner.test.d.ts.map +1 -0
- package/docs/campaign-proposers.md +170 -0
- package/docs/concepts.md +8 -4
- package/docs/customer-journeys.md +15 -13
- package/docs/design/loop-taxonomy.md +34 -66
- package/docs/distributed-driver.md +14 -14
- package/docs/feature-guide.md +1 -1
- package/docs/hosted-ingest-spec.md +2 -3
- package/docs/multi-shot-optimization.md +8 -8
- package/docs/product-eval-adoption.md +1 -1
- package/docs/self-improvement-map.md +33 -29
- package/package.json +9 -15
- package/dist/calibration-Cpr3WaX3.d.ts +0 -101
- package/dist/chunk-47X6LRCE.js.map +0 -1
- package/dist/chunk-6SOJM3VR.js.map +0 -1
- package/dist/chunk-CVVHBFGN.js.map +0 -1
- package/dist/chunk-D3V5B42D.js.map +0 -1
- package/dist/chunk-E4GH6USR.js.map +0 -1
- package/dist/chunk-GSH6QNNS.js.map +0 -1
- package/dist/chunk-KWRRMR3J.js.map +0 -1
- package/dist/chunk-LMZQ2Z4U.js.map +0 -1
- package/dist/chunk-QAY5UIJO.js.map +0 -1
- package/dist/chunk-QG2OVF2D.js.map +0 -1
- package/dist/chunk-T375SUOZ.js.map +0 -1
- package/dist/chunk-TWS7AZEY.js.map +0 -1
- package/dist/chunk-UMMZHCPB.js.map +0 -1
- package/dist/chunk-XY4DDNEG.js.map +0 -1
- package/dist/chunk-ZFIBGEOL.js.map +0 -1
- package/dist/control-_Qb7skHX.d.ts +0 -259
- package/dist/corpus-BoR-041R.d.ts +0 -560
- package/dist/failure-cluster-CL7IVgkJ.d.ts +0 -76
- package/dist/harness-optimizer-EnEnQPsr.d.ts +0 -106
- package/dist/index-Bx3gZ8xl.d.ts +0 -159
- package/dist/pre-registration-mAnCugl9.d.ts +0 -523
- package/dist/provenance-LnqRT0sS.d.ts +0 -441
- package/dist/query-CqTxMwDw.d.ts +0 -31
- package/dist/release-report-euXIV_Sk.d.ts +0 -233
- package/dist/run-critic-BAIjX99r.d.ts +0 -56
- package/dist/run-improvement-loop-5z_l5zDz.d.ts +0 -427
- package/dist/runtime-trajectory-BDgfGZSr.d.ts +0 -49
- package/dist/semantic-concept-judge-Dn8Z6KEG.d.ts +0 -624
- package/dist/sink-fetch-B1Yg4Til.d.ts +0 -101
- package/docs/design/external-agent-wedge.md +0 -89
- package/docs/design/phase-d-rfc.md +0 -125
- package/docs/design/phase4-consumer-migration.md +0 -70
- package/docs/design/primitives-integration-spec.md +0 -393
- package/docs/design/product-self-improvement-loop.md +0 -146
- package/docs/design/self-improvement-engine.md +0 -140
- package/docs/design/self-improvement-protocol.md +0 -223
- package/docs/design/self-improvement-roadmap.md +0 -106
- package/docs/design/substrate-gaps.md +0 -118
- package/docs/phase-b-pairing-kit.md +0 -188
- package/docs/phase-b-runbook.md +0 -176
- package/docs/pilot/README.md +0 -62
- package/docs/pilot/customer-checklist.md +0 -90
- package/docs/pilot/integration-foreign-stack.md +0 -296
- package/docs/pilot/integration-tangle-stack.md +0 -248
- package/docs/pilot/one-pager.md +0 -161
- package/docs/pilot/sample-insight-report.json +0 -172
- package/docs/quickstart-external.md +0 -229
- package/docs/research/belief-state-agent-eval-roadmap.md +0 -593
- package/docs/research/research-roadmap.md +0 -205
- package/docs/specs/driver-honest-spec.md +0 -251
- package/docs/specs/hermes-self-improvement-audit.md +0 -93
- package/docs/specs/profile-versioning.md +0 -291
- package/docs/three-package-architecture.md +0 -168
- /package/dist/{chunk-QS3RBQPI.js.map → chunk-D5KBVULY.js.map} +0 -0
- /package/dist/{chunk-UHMJT4T7.js.map → chunk-IZCEK2HR.js.map} +0 -0
- /package/dist/{chunk-L3JOU6XM.js.map → chunk-NACM5RS7.js.map} +0 -0
- /package/dist/{chunk-4FBZZIYD.js.map → chunk-QTMYW64F.js.map} +0 -0
- /package/dist/{chunk-CY6U5S3X.js.map → chunk-URWVKRCS.js.map} +0 -0
- /package/dist/{chunk-Y47J2LJ3.js.map → chunk-Z6L6YSU6.js.map} +0 -0
- /package/dist/{run-campaign-RDGAM5KJ.js.map → run-campaign-WXY7KI67.js.map} +0 -0
package/dist/fuzz.d.ts
CHANGED
|
@@ -1,547 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { D as DefaultVerdict } from './verdict-C9MlYujm.js';
|
|
3
|
-
import { A as AdversarialMutation } from './adversarial-DIVcDoI_.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Behavior-space exploration — types.
|
|
7
|
-
*
|
|
8
|
-
* One engine searches a space of inputs against a target, scores each run with a
|
|
9
|
-
* multi-objective verdict, keeps a quality-diversity archive, and admits only
|
|
10
|
-
* findings that pass the validity gates. Adversarial fuzzing is the headline
|
|
11
|
-
* preset (`fuzzAgent`); swapping the `Objective` re-points the same engine at
|
|
12
|
-
* novelty search, curriculum growth, or user-simulation.
|
|
13
|
-
*
|
|
14
|
-
* Two kinds of coordinates, deliberately distinct:
|
|
15
|
-
* - INPUT axes (`space.axes`) are the stratification plan — enumerable up front,
|
|
16
|
-
* so allocation and the coverage denominator (planned vs covered) are honest.
|
|
17
|
-
* - MEASURED descriptors (`descriptor(scenario, ev)`) are read off the rollout —
|
|
18
|
-
* they bin the archive by what the agent DID, and never inflate the coverage
|
|
19
|
-
* denominator (a behavior you haven't seen yet is not a planned cell).
|
|
20
|
-
*
|
|
21
|
-
* An `Evaluation` IS a `DefaultVerdict` — same spine as judges and verifiers,
|
|
22
|
-
* never a parallel score shape.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/** One input axis of the stratification plan (e.g. matterType, difficulty, personaRigor). */
|
|
26
|
-
interface SpaceAxis {
|
|
27
|
-
name: string;
|
|
28
|
-
values: string[];
|
|
29
|
-
}
|
|
30
|
-
/** The input space to stratify. Cells are the cartesian product of the axes. */
|
|
31
|
-
interface BehaviorSpace {
|
|
32
|
-
axes: SpaceAxis[];
|
|
33
|
-
}
|
|
34
|
-
/** One input cell: a coordinate in the stratification plan. */
|
|
35
|
-
interface Cell {
|
|
36
|
-
/** Stable id, e.g. `matterType=nda|difficulty=hard`. */
|
|
37
|
-
id: string;
|
|
38
|
-
coords: Record<string, string>;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* The outcome of running the target against one scenario: a `DefaultVerdict`
|
|
42
|
-
* (`valid`, headline `score` in [0,1], per-dimension `scores`, `notes`) plus the
|
|
43
|
-
* fields exploration needs. Keep `scores` populated — the coverage map surfaces
|
|
44
|
-
* WHICH dimension is weak only when evaluations carry it.
|
|
45
|
-
*/
|
|
46
|
-
interface Evaluation extends DefaultVerdict {
|
|
47
|
-
/** Measured behavior coordinates (e.g. `{ outcome: 'refused' }`). Bins the archive. */
|
|
48
|
-
descriptor?: Record<string, string>;
|
|
49
|
-
/** Surfaced output — drives exemplars + minimization. */
|
|
50
|
-
output?: string;
|
|
51
|
-
/** RunRecord id when the target persisted a trace. */
|
|
52
|
-
runId?: string;
|
|
53
|
-
/** Structured labels, e.g. failure classes (`hallucination`, `refusal`). */
|
|
54
|
-
labels?: string[];
|
|
55
|
-
/** Wall-clock for the evaluation, when the consumer measures it more precisely
|
|
56
|
-
* than the engine can (e.g. excluding judge time). Engine-measured otherwise. */
|
|
57
|
-
latencyMs?: number;
|
|
58
|
-
}
|
|
59
|
-
/** Run the target against one scenario in a cell. */
|
|
60
|
-
type Evaluator<S> = (scenario: S, cell: Cell) => Promise<Evaluation>;
|
|
61
|
-
/** Context a proposer sees — prior elites + findings let a skill-backed proposer steer. */
|
|
62
|
-
interface ProposeContext<S> {
|
|
63
|
-
cell: Cell;
|
|
64
|
-
seeds: S[];
|
|
65
|
-
/** Current archive elites whose input cell matches. */
|
|
66
|
-
elites: S[];
|
|
67
|
-
/** Verified findings so far (read-only) — probe new gaps, not re-found ones. */
|
|
68
|
-
findings: ReadonlyArray<Finding<S>>;
|
|
69
|
-
/** How many candidates to propose. */
|
|
70
|
-
count: number;
|
|
71
|
-
rng: () => number;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Produces candidate scenarios for a cell. A plain function — `mutationProposer`
|
|
75
|
-
* builds one from mutation operators; an agent running a generator skill IS one
|
|
76
|
-
* (`(ctx) => dispatchToSkill(ctx)`), no wrapper needed.
|
|
77
|
-
*/
|
|
78
|
-
type Proposer<S> = (ctx: ProposeContext<S>) => Promise<S[]> | S[];
|
|
79
|
-
/**
|
|
80
|
-
* What "interesting" means. `interest` in [0,1]; a candidate is notable (gate-
|
|
81
|
-
* checked, reported) when `interest >= threshold`. `adversarialObjective` (low
|
|
82
|
-
* score is interesting) and `noveltyObjective` (far from the archive) ship.
|
|
83
|
-
*/
|
|
84
|
-
interface Objective {
|
|
85
|
-
kind: string;
|
|
86
|
-
interest(ev: Evaluation, ctx: ObjectiveContext): number;
|
|
87
|
-
/** Default 0.5. */
|
|
88
|
-
threshold?: number;
|
|
89
|
-
}
|
|
90
|
-
interface ObjectiveContext {
|
|
91
|
-
archiveScores: number[];
|
|
92
|
-
archiveDescriptors: Array<Record<string, string> | undefined>;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Validity gates — the moat. A notable candidate is admitted ONLY when it is a
|
|
96
|
-
* fair, answerable task (`isValid`) AND reproduces under a meaning-preserving
|
|
97
|
-
* rephrase (`isUncontaminated`). Pass-through by default (testable without an
|
|
98
|
-
* LLM); live wiring supplies real gates.
|
|
99
|
-
*/
|
|
100
|
-
interface ValidityGates<S> {
|
|
101
|
-
isValid?: (scenario: S, ev: Evaluation, cell: Cell) => boolean | Promise<boolean>;
|
|
102
|
-
isUncontaminated?: (scenario: S, ev: Evaluation, cell: Cell) => boolean | Promise<boolean>;
|
|
103
|
-
}
|
|
104
|
-
/** A gate-verified, minimized finding — the unit the capsule reports. */
|
|
105
|
-
interface Finding<S> {
|
|
106
|
-
id: string;
|
|
107
|
-
cell: Cell;
|
|
108
|
-
scenario: S;
|
|
109
|
-
/** The minimized trigger (== `scenario` when no minimizer is supplied). */
|
|
110
|
-
minimized: S;
|
|
111
|
-
/** Legible text of the minimized trigger, when `scenarioText` is supplied. */
|
|
112
|
-
text?: string;
|
|
113
|
-
/** The full multi-objective verdict. */
|
|
114
|
-
evaluation: Evaluation;
|
|
115
|
-
/** The objective's interest score that flagged it. */
|
|
116
|
-
interest: number;
|
|
117
|
-
/** Which objective flagged it. */
|
|
118
|
-
objective: string;
|
|
119
|
-
}
|
|
120
|
-
/** An archive elite — the most interesting scenario seen for one bin. */
|
|
121
|
-
interface ArchiveEntry<S> {
|
|
122
|
-
/** Input cell + measured descriptor coords combined, e.g. `difficulty=hard|outcome=refused`. */
|
|
123
|
-
binId: string;
|
|
124
|
-
cell: Cell;
|
|
125
|
-
scenario: S;
|
|
126
|
-
evaluation: Evaluation;
|
|
127
|
-
interest: number;
|
|
128
|
-
}
|
|
129
|
-
/** Summary of a sample — every aggregate carries its spread, never a bare mean. */
|
|
130
|
-
interface Distribution {
|
|
131
|
-
mean: number;
|
|
132
|
-
median: number;
|
|
133
|
-
p90: number;
|
|
134
|
-
min: number;
|
|
135
|
-
max: number;
|
|
136
|
-
n: number;
|
|
137
|
-
}
|
|
138
|
-
/** Per-INPUT-cell coverage — the planned-vs-covered map. */
|
|
139
|
-
interface CoverageCell {
|
|
140
|
-
cell: Cell;
|
|
141
|
-
runs: number;
|
|
142
|
-
/** Headline score distribution in [0,1]; `null` when the cell was never run
|
|
143
|
-
* (honestly uncovered — never a fabricated zero). */
|
|
144
|
-
score: Distribution | null;
|
|
145
|
-
/** Fraction of runs the objective flagged as notable. */
|
|
146
|
-
findingRate: number;
|
|
147
|
-
/** Per-dimension score distributions — surfaces WHICH dimension is weak and
|
|
148
|
-
* how consistently. */
|
|
149
|
-
dimensions: Record<string, Distribution>;
|
|
150
|
-
/** Evaluation wall-clock per run; engine-measured unless the evaluation
|
|
151
|
-
* carried its own `latencyMs`. `null` when the cell was never run. */
|
|
152
|
-
latencyMs: Distribution | null;
|
|
153
|
-
/** Known dollars spent in this cell — present only when cost tracking was
|
|
154
|
-
* wired; runs with unknown cost are counted apart, never folded in as $0. */
|
|
155
|
-
costUsd?: number;
|
|
156
|
-
costUnknownRuns?: number;
|
|
157
|
-
}
|
|
158
|
-
/** The artifact every exploration produces. */
|
|
159
|
-
interface CapsuleData<S> {
|
|
160
|
-
target: string;
|
|
161
|
-
objective: string;
|
|
162
|
-
/** Stamped by the caller — the engine stays clock-free and deterministic. */
|
|
163
|
-
generatedAt?: string;
|
|
164
|
-
coverage: CoverageCell[];
|
|
165
|
-
/** Verified findings, sorted by descending interest. */
|
|
166
|
-
findings: Finding<S>[];
|
|
167
|
-
/** QD archive elites (binned by input × measured coords). */
|
|
168
|
-
archive: ArchiveEntry<S>[];
|
|
169
|
-
/** Post-harden lift, filled by a second pass after an improvement. */
|
|
170
|
-
lift?: {
|
|
171
|
-
before: number;
|
|
172
|
-
after: number;
|
|
173
|
-
verdict: string;
|
|
174
|
-
};
|
|
175
|
-
stats: {
|
|
176
|
-
totalRuns: number;
|
|
177
|
-
/** Input-cell denominator — the stratification plan. */
|
|
178
|
-
cellsTotal: number;
|
|
179
|
-
cellsCovered: number;
|
|
180
|
-
/** Distinct measured-descriptor bins observed (never part of the denominator). */
|
|
181
|
-
behaviorBinsObserved: number;
|
|
182
|
-
candidateFindings: number;
|
|
183
|
-
verifiedFindings: number;
|
|
184
|
-
/** Distribution of per-cell mean scores across covered cells (cells weigh
|
|
185
|
-
* equally — variance steering sends more runs to weak cells, so a
|
|
186
|
-
* run-weighted average would bias low). `null` when nothing ran. */
|
|
187
|
-
robustness: Distribution | null;
|
|
188
|
-
/** Evaluation wall-clock across all runs. `null` when nothing ran. */
|
|
189
|
-
latencyMs: Distribution | null;
|
|
190
|
-
/** Known dollars spent on this exploration's runs. Present only when cost
|
|
191
|
-
* tracking was wired (`costOf`) — absent means "not tracked", never $0. */
|
|
192
|
-
costUsd?: number;
|
|
193
|
-
/** Runs whose cost was unknown (`costOf` returned null) — counted apart,
|
|
194
|
-
* never folded into `costUsd` as a fabricated $0. */
|
|
195
|
-
costUnknownRuns?: number;
|
|
196
|
-
/** Evaluations that threw (transport/backend failures). They consumed no
|
|
197
|
-
* run budget and scored nothing — an infra axis, never folded into
|
|
198
|
-
* robustness or reported as findings. */
|
|
199
|
-
evalErrors: number;
|
|
200
|
-
/** Present when the run stopped before its budget because consecutive
|
|
201
|
-
* eval errors tripped the circuit breaker (a dead backend must not burn
|
|
202
|
-
* the remaining budget). The capsule-so-far is complete and honest. */
|
|
203
|
-
stoppedEarly?: {
|
|
204
|
-
reason: 'eval-errors';
|
|
205
|
-
detail: string;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Known cost of one evaluated run. `model` attributes the spend in the ledger's
|
|
211
|
-
* per-model rollup; absent, the entry is labeled `unattributed` (the dollars are
|
|
212
|
-
* real either way — recorded as `actualCostUsd`, never an estimate).
|
|
213
|
-
*/
|
|
214
|
-
interface RunCost {
|
|
215
|
-
usd: number;
|
|
216
|
-
model?: string;
|
|
217
|
-
}
|
|
218
|
-
type ExploreEvent<S> = {
|
|
219
|
-
type: 'cell-allocated';
|
|
220
|
-
cell: Cell;
|
|
221
|
-
count: number;
|
|
222
|
-
} | {
|
|
223
|
-
type: 'evaluated';
|
|
224
|
-
cell: Cell;
|
|
225
|
-
scenario: S;
|
|
226
|
-
evaluation: Evaluation;
|
|
227
|
-
} | {
|
|
228
|
-
type: 'finding';
|
|
229
|
-
finding: Finding<S>;
|
|
230
|
-
} | {
|
|
231
|
-
type: 'eval-error';
|
|
232
|
-
cell: Cell;
|
|
233
|
-
scenarioId: string;
|
|
234
|
-
message: string;
|
|
235
|
-
} | {
|
|
236
|
-
type: 'round';
|
|
237
|
-
runsUsed: number;
|
|
238
|
-
budget: number;
|
|
239
|
-
};
|
|
240
|
-
interface ExploreOptions<S> {
|
|
241
|
-
/** Name of the target under exploration — labels the capsule. */
|
|
242
|
-
target: string;
|
|
243
|
-
/** The input stratification plan. */
|
|
244
|
-
space: BehaviorSpace;
|
|
245
|
-
/** Candidate generator. */
|
|
246
|
-
proposer: Proposer<S>;
|
|
247
|
-
/** Runs the target → multi-objective `Evaluation`. */
|
|
248
|
-
evaluate: Evaluator<S>;
|
|
249
|
-
/** Seed corpus per cell. */
|
|
250
|
-
seedsFor: (cell: Cell) => S[] | Promise<S[]>;
|
|
251
|
-
/** Stable id for a scenario (dedup + lineage). */
|
|
252
|
-
scenarioId: (scenario: S) => string;
|
|
253
|
-
/** Human-legible text — drives capsule exemplars. */
|
|
254
|
-
scenarioText?: (scenario: S) => string;
|
|
255
|
-
/** Measured behavior coords appended to the archive bin. Default: input cell only. */
|
|
256
|
-
descriptor?: (scenario: S, ev: Evaluation) => Record<string, string>;
|
|
257
|
-
/** What "interesting" means. Default: `adversarialObjective(0.5)`. */
|
|
258
|
-
objective?: Objective;
|
|
259
|
-
/** Validity gates. Default pass-through. */
|
|
260
|
-
gates?: ValidityGates<S>;
|
|
261
|
-
/** Budget steering across input cells. `variance` chases uncertainty; `uniform` is the unsteered ablation baseline. Default `variance`. */
|
|
262
|
-
allocation?: 'variance' | 'uniform';
|
|
263
|
-
/** Total target evaluations. */
|
|
264
|
-
budget: number;
|
|
265
|
-
/** Minimum evaluations per input cell before steering. Default 2. */
|
|
266
|
-
floorPerCell?: number;
|
|
267
|
-
/** Shrink a notable scenario to its minimal trigger. Default: identity. */
|
|
268
|
-
minimize?: (scenario: S, evaluate: Evaluator<S>, cell: Cell) => Promise<S> | S;
|
|
269
|
-
/** Max concurrent `evaluate` calls. Default 1. */
|
|
270
|
-
concurrency?: number;
|
|
271
|
-
/** Stop the run after this many CONSECUTIVE eval errors (a dead backend must
|
|
272
|
-
* not burn the remaining budget). Successes reset the streak. Default 5. */
|
|
273
|
-
maxConsecutiveEvalErrors?: number;
|
|
274
|
-
/** Cooperative cancellation. */
|
|
275
|
-
signal?: AbortSignal;
|
|
276
|
-
/** Progress stream. */
|
|
277
|
-
onProgress?: (event: ExploreEvent<S>) => void;
|
|
278
|
-
/** Deterministic seed. Default 1. */
|
|
279
|
-
seed?: number;
|
|
280
|
-
/**
|
|
281
|
-
* Cost of one evaluated run — consumer-supplied; the explorer cannot know
|
|
282
|
-
* token usage. Return null when the cost is unknown: the run is COUNTED in
|
|
283
|
-
* `stats.costUnknownRuns`, never folded into the total as $0. Required by
|
|
284
|
-
* every other cost option (`costBudgetUsd` / `ledger` / `onCost`).
|
|
285
|
-
*/
|
|
286
|
-
costOf?: (scenario: S, cell: Cell, ev: Evaluation) => RunCost | null;
|
|
287
|
-
/**
|
|
288
|
-
* Hard dollar ceiling on accumulated KNOWN cost (same semantics as the
|
|
289
|
-
* control-runtime `budget.maxCostUsd`: nonnegative finite, the session stops
|
|
290
|
-
* once spent ≥ ceiling; no new evaluation starts after that). Unknown-cost
|
|
291
|
-
* runs do not consume budget — they are reported separately, so the ceiling
|
|
292
|
-
* is honest about what it can see.
|
|
293
|
-
*/
|
|
294
|
-
costBudgetUsd?: number;
|
|
295
|
-
/**
|
|
296
|
-
* Sink for per-run cost entries — each known `costOf` result is recorded
|
|
297
|
-
* with channel 'agent' and `actualCostUsd` (token axes are zero: the
|
|
298
|
-
* explorer only sees dollars). Pass the program's shared `CostLedger` so
|
|
299
|
-
* `costReport` stamps fuzz spend alongside judge/analyst spend.
|
|
300
|
-
*/
|
|
301
|
-
ledger?: CostLedger;
|
|
302
|
-
/** Observer fired for every known-cost run recorded. */
|
|
303
|
-
onCost?: (entry: {
|
|
304
|
-
usd: number;
|
|
305
|
-
channel: CostChannel;
|
|
306
|
-
}) => void;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Input-space tiling + coverage projection.
|
|
311
|
-
*
|
|
312
|
-
* Cells are the cartesian product of the input axes — the stratification plan,
|
|
313
|
-
* enumerable up front so the planned-vs-covered denominator is honest. Coverage
|
|
314
|
-
* is projected from the evaluation log: per cell, the full DISTRIBUTION of the
|
|
315
|
-
* headline score, of each scored dimension, and of evaluation latency — a bare
|
|
316
|
-
* mean hides outliers, so every aggregate carries its spread. Per-cell cost is
|
|
317
|
-
* split known-dollars vs unknown-runs, never folded into a fabricated $0.
|
|
318
|
-
*/
|
|
319
|
-
|
|
320
|
-
/** One recorded evaluation — the unit coverage and the capsule are built from. */
|
|
321
|
-
interface EvalRecord {
|
|
322
|
-
cell: Cell;
|
|
323
|
-
ev: Evaluation;
|
|
324
|
-
/** The objective's interest score for this evaluation. */
|
|
325
|
-
interest: number;
|
|
326
|
-
/** Evaluation wall-clock — engine-measured unless `ev.latencyMs` overrode it. */
|
|
327
|
-
latencyMs: number;
|
|
328
|
-
/** Known dollars for this run. `null` = cost tracking was wired but this
|
|
329
|
-
* run's cost was unknowable (counted apart). Absent = not tracked at all. */
|
|
330
|
-
costUsd?: number | null;
|
|
331
|
-
}
|
|
332
|
-
/** Enumerate every input cell (cartesian product of the axes), in stable order. */
|
|
333
|
-
declare function enumerateCells(space: BehaviorSpace): Cell[];
|
|
334
|
-
/** Deterministic id for a coordinate map, e.g. `matterType=nda|difficulty=hard`. */
|
|
335
|
-
declare function cellId(space: BehaviorSpace, coords: Record<string, string>): string;
|
|
336
|
-
/**
|
|
337
|
-
* Project the evaluation log into the per-input-cell coverage map. A cell with
|
|
338
|
-
* no evaluations reports `score: null` (honestly uncovered), never zeros.
|
|
339
|
-
*/
|
|
340
|
-
declare function buildCoverage(cells: Cell[], log: EvalRecord[], threshold: number): CoverageCell[];
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* The capsule — the artifact every exploration produces.
|
|
344
|
-
*
|
|
345
|
-
* `buildCapsule` assembles coverage + verified findings + the QD archive into a
|
|
346
|
-
* pure `CapsuleData` (no clock, no I/O — deterministic and snapshot-testable).
|
|
347
|
-
* `renderCapsuleHtml` turns it into a standalone page: the input-cell heat-map
|
|
348
|
-
* (planned vs covered), per-dimension weakness chips, and the minimized finding
|
|
349
|
-
* exemplars. One artifact — the hardening map and the shareable proof object.
|
|
350
|
-
*/
|
|
351
|
-
|
|
352
|
-
interface BuildCapsuleInput<S> {
|
|
353
|
-
target: string;
|
|
354
|
-
objective: string;
|
|
355
|
-
cells: Cell[];
|
|
356
|
-
log: EvalRecord[];
|
|
357
|
-
/** The objective's notable threshold — drives findingRate. */
|
|
358
|
-
threshold: number;
|
|
359
|
-
archive: ArchiveEntry<S>[];
|
|
360
|
-
findings: Finding<S>[];
|
|
361
|
-
candidateFindings: number;
|
|
362
|
-
runsUsed: number;
|
|
363
|
-
/** Known-dollar / unknown-run split — present only when cost tracking was
|
|
364
|
-
* wired; the capsule never fabricates a $0 total. */
|
|
365
|
-
cost?: {
|
|
366
|
-
costUsd: number;
|
|
367
|
-
costUnknownRuns: number;
|
|
368
|
-
};
|
|
369
|
-
/** Evaluations that threw — infra outcomes, never folded into robustness. */
|
|
370
|
-
evalErrors: number;
|
|
371
|
-
/** Set when the consecutive-error circuit breaker stopped the run early. */
|
|
372
|
-
stoppedEarly?: {
|
|
373
|
-
reason: 'eval-errors';
|
|
374
|
-
detail: string;
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
declare function buildCapsule<S>(input: BuildCapsuleInput<S>): CapsuleData<S>;
|
|
378
|
-
interface RenderCapsuleOptions {
|
|
379
|
-
/** Max finding exemplars to show. Default 8. */
|
|
380
|
-
maxFindings?: number;
|
|
381
|
-
/** ISO timestamp to stamp into the page (keeps the pure capsule clock-free). */
|
|
382
|
-
generatedAt?: string;
|
|
383
|
-
}
|
|
384
|
-
/** Render a self-contained HTML capsule — heat-map + per-dimension chips + verified findings. */
|
|
385
|
-
declare function renderCapsuleHtml<S>(capsule: CapsuleData<S>, opts?: RenderCapsuleOptions): string;
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* The exploration engine — a stateful session over a behavior space.
|
|
389
|
-
*
|
|
390
|
-
* Each `step()`: allocate budget across INPUT cells (floor first, then variance
|
|
391
|
-
* steering toward the least-certain cells), propose candidates (the proposer
|
|
392
|
-
* reads current elites + findings, so the search deepens generationally),
|
|
393
|
-
* evaluate with bounded concurrency, archive the most interesting scenario per
|
|
394
|
-
* input×measured bin, and admit notable candidates that pass the validity gates.
|
|
395
|
-
* `run()` loops to budget. `coverage()`/`findings()`/`capsule()` read live state —
|
|
396
|
-
* the surface `makeExploreTools` exposes so an agent can drive the session.
|
|
397
|
-
*
|
|
398
|
-
* One evaluation log (`EvalRecord[]`) is the source of truth; allocation
|
|
399
|
-
* observations and coverage are projections of it.
|
|
400
|
-
*/
|
|
401
|
-
|
|
402
|
-
declare class BehaviorExplorer<S> {
|
|
403
|
-
private readonly opts;
|
|
404
|
-
private readonly cells;
|
|
405
|
-
private readonly cellById;
|
|
406
|
-
private readonly objective;
|
|
407
|
-
private readonly threshold;
|
|
408
|
-
private readonly floorPerCell;
|
|
409
|
-
private readonly perRoundBudget;
|
|
410
|
-
/** The single evaluation log — coverage + allocation are projections of it. */
|
|
411
|
-
private readonly log;
|
|
412
|
-
/** binId (input × measured coords) → the most interesting entry seen. */
|
|
413
|
-
private readonly archiveByBin;
|
|
414
|
-
private readonly _findings;
|
|
415
|
-
private runsUsed;
|
|
416
|
-
private candidateFindings;
|
|
417
|
-
private evalErrors;
|
|
418
|
-
private consecutiveEvalErrors;
|
|
419
|
-
private stoppedEarly;
|
|
420
|
-
private rngState;
|
|
421
|
-
/** Accumulated KNOWN dollars — unknown-cost runs never inflate it. */
|
|
422
|
-
private spentKnownUsd;
|
|
423
|
-
private costUnknownRuns;
|
|
424
|
-
constructor(opts: ExploreOptions<S>);
|
|
425
|
-
private rng;
|
|
426
|
-
private binId;
|
|
427
|
-
private allocate;
|
|
428
|
-
private objectiveContext;
|
|
429
|
-
/** Mirrors control-runtime: stop once accumulated KNOWN cost ≥ the ceiling. */
|
|
430
|
-
private costExhausted;
|
|
431
|
-
/** Fold one run's cost in: null counts as unknown (never $0); a known cost
|
|
432
|
-
* accrues toward the budget, lands in the ledger, and fires `onCost`. */
|
|
433
|
-
/** Returns the run's known cost, `null` when tracked-but-unknown, `undefined`
|
|
434
|
-
* when cost tracking is not wired — the log row mirrors this exactly. */
|
|
435
|
-
private recordRunCost;
|
|
436
|
-
/** Elites whose INPUT cell matches — what the proposer mutates/deepens from. */
|
|
437
|
-
private elitesFor;
|
|
438
|
-
/** One allocate → propose → evaluate → gate → archive round. */
|
|
439
|
-
step(): Promise<{
|
|
440
|
-
runs: number;
|
|
441
|
-
findings: Finding<S>[];
|
|
442
|
-
}>;
|
|
443
|
-
/** Loop `step()` until the run or dollar budget is spent, the signal aborts,
|
|
444
|
-
* or no progress is made. */
|
|
445
|
-
run(): Promise<CapsuleData<S>>;
|
|
446
|
-
coverage(): CoverageCell[];
|
|
447
|
-
findings(): Finding<S>[];
|
|
448
|
-
capsule(): CapsuleData<S>;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
* `fuzzAgent` — the adversarial batch preset over `BehaviorExplorer`.
|
|
453
|
-
*
|
|
454
|
-
* One call: explore the space to budget with the adversarial objective and
|
|
455
|
-
* return the capsule. For agent-driven, incremental, or multi-objective use,
|
|
456
|
-
* construct a `BehaviorExplorer` and drive it via `makeExploreTools`.
|
|
457
|
-
*/
|
|
458
|
-
|
|
459
|
-
type FuzzAgentOptions<S> = Omit<ExploreOptions<S>, 'objective'> & {
|
|
460
|
-
/** Score strictly below this is a candidate failure. Default 0.5. */
|
|
461
|
-
failureThreshold?: number;
|
|
462
|
-
};
|
|
463
|
-
declare function fuzzAgent<S>(opts: FuzzAgentOptions<S>): Promise<{
|
|
464
|
-
capsule: CapsuleData<S>;
|
|
465
|
-
}>;
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* Validity gates — what separates a fuzzer from a slop generator.
|
|
469
|
-
*
|
|
470
|
-
* A notable candidate is admitted only when it is fair and reproducible. None of
|
|
471
|
-
* these are on by default: the live wiring opts in, so reported findings carry
|
|
472
|
-
* their proof.
|
|
473
|
-
*/
|
|
474
|
-
|
|
475
|
-
/** Combine gate sets; a candidate must pass every gate in every set. */
|
|
476
|
-
declare function composeGates<S>(...sets: Array<ValidityGates<S> | undefined>): ValidityGates<S>;
|
|
477
|
-
/**
|
|
478
|
-
* Reproducibility gate. Re-run the target on a meaning-preserving rephrase of the
|
|
479
|
-
* flagged scenario; keep the finding only when the rephrase ALSO scores below the
|
|
480
|
-
* threshold. A finding that flips under a cosmetic rewrite was keyed to surface
|
|
481
|
-
* form, not the task — a false signal we must not report. Costs one extra
|
|
482
|
-
* evaluation per candidate (candidates are rare, so cheap).
|
|
483
|
-
*/
|
|
484
|
-
declare function perturbationStabilityGate<S>(opts: {
|
|
485
|
-
evaluate: Evaluator<S>;
|
|
486
|
-
/** Produce a semantic-preserving rephrase. Return null to skip (treated as pass). */
|
|
487
|
-
perturb: (scenario: S) => S | null;
|
|
488
|
-
/** Score strictly below this still counts as failing. Default 0.5. */
|
|
489
|
-
failureThreshold?: number;
|
|
490
|
-
}): ValidityGates<S>;
|
|
491
|
-
/**
|
|
492
|
-
* Severity-floor gate. Reject borderline candidates whose score sits in a band
|
|
493
|
-
* just under the threshold — judge noise, not a real defect.
|
|
494
|
-
*/
|
|
495
|
-
declare function severityFloorGate<S>(opts: {
|
|
496
|
-
failureThreshold?: number;
|
|
497
|
-
margin?: number;
|
|
498
|
-
}): ValidityGates<S>;
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Shipped policies for the exploration engine.
|
|
502
|
-
*
|
|
503
|
-
* `Proposer` is a plain function type — an agent running a generator skill IS a
|
|
504
|
-
* proposer (`(ctx) => dispatchToSkill(ctx)`), no wrapper needed. `mutationProposer`
|
|
505
|
-
* builds the deterministic, LLM-free one from mutation operators. Objectives are
|
|
506
|
-
* interfaces because the engine reads `kind` + `threshold` off them.
|
|
507
|
-
*/
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* Perturbation-based search: apply the cell's mutation operators to the current
|
|
511
|
-
* elites + seeds, deduping by id. Elites first — mutating the most interesting
|
|
512
|
-
* scenario found so far is what makes the search deepen across rounds.
|
|
513
|
-
*/
|
|
514
|
-
declare function mutationProposer<S>(opts: {
|
|
515
|
-
mutationsFor: (cell: Cell) => AdversarialMutation<S>[];
|
|
516
|
-
scenarioId: (s: S) => string;
|
|
517
|
-
}): Proposer<S>;
|
|
518
|
-
/** Adversarial: a low headline score is interesting — find where the agent fails. */
|
|
519
|
-
declare function adversarialObjective(threshold?: number): Objective;
|
|
520
|
-
/**
|
|
521
|
-
* Novelty: interesting when far from the archive in score AND measured behavior
|
|
522
|
-
* descriptor — quality-diversity's diversity pressure; drives corpus growth
|
|
523
|
-
* rather than re-finding the same hole.
|
|
524
|
-
*/
|
|
525
|
-
declare function noveltyObjective(threshold?: number): Objective;
|
|
526
|
-
|
|
527
|
-
/**
|
|
528
|
-
* Agent-drivable surface over a live exploration session.
|
|
529
|
-
*
|
|
530
|
-
* Framework-neutral tool defs ({name, description, parameters: JSON Schema,
|
|
531
|
-
* handler}) so the on-demand agent — not a batch script — drives the search:
|
|
532
|
-
* step it, read coverage, inspect findings, render the capsule. Transport
|
|
533
|
-
* encodings (OpenAI function shape, MCP) are one-line mappings the host owns.
|
|
534
|
-
*/
|
|
535
|
-
|
|
536
|
-
interface ExploreToolDef {
|
|
537
|
-
name: string;
|
|
538
|
-
description: string;
|
|
539
|
-
/** JSON Schema (draft-07+) for the arguments. */
|
|
540
|
-
parameters: Record<string, unknown>;
|
|
541
|
-
handler: (args: unknown, ctx?: {
|
|
542
|
-
signal?: AbortSignal;
|
|
543
|
-
}) => Promise<unknown>;
|
|
544
|
-
}
|
|
545
|
-
declare function makeExploreTools<S>(explorer: BehaviorExplorer<S>): ExploreToolDef[];
|
|
546
|
-
|
|
547
|
-
export { type ArchiveEntry, BehaviorExplorer, type BehaviorSpace, type BuildCapsuleInput, type CapsuleData, type Cell, type CoverageCell, type EvalRecord, type Evaluation, type Evaluator, type ExploreEvent, type ExploreOptions, type ExploreToolDef, type Finding, type FuzzAgentOptions, type Objective, type ObjectiveContext, type ProposeContext, type Proposer, type RenderCapsuleOptions, type RunCost, type SpaceAxis, type ValidityGates, adversarialObjective, buildCapsule, buildCoverage, cellId, composeGates, enumerateCells, fuzzAgent, makeExploreTools, mutationProposer, noveltyObjective, perturbationStabilityGate, renderCapsuleHtml, severityFloorGate };
|
|
1
|
+
export * from './fuzz/index'
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GoldenMatcher — fuzzy matcher for "did the agent produce the expected things?".
|
|
3
|
+
*
|
|
4
|
+
* Universal primitive across agent-eval consumers. Use it for:
|
|
5
|
+
* - Test suites: did the run hit the expected assertions?
|
|
6
|
+
* - Tool agents: did the agent emit the expected tool call sequence?
|
|
7
|
+
* - Judges: did the verdict include the expected concepts?
|
|
8
|
+
* - Design audits: did the auditor surface the planted defects?
|
|
9
|
+
*
|
|
10
|
+
* Match rule (per golden):
|
|
11
|
+
* - Any phrase in `golden.any` (case-insensitive substring) appears in the
|
|
12
|
+
* candidate's text fields, OR
|
|
13
|
+
* - Any pattern in `golden.anyRegex` (case-insensitive) matches.
|
|
14
|
+
*
|
|
15
|
+
* Recall is severity-weighted by default: critical=3, major=2, minor=1.
|
|
16
|
+
* Missing one critical hurts more than missing three minors.
|
|
17
|
+
*/
|
|
18
|
+
export type GoldenSeverity = 'critical' | 'major' | 'minor';
|
|
19
|
+
export interface GoldenSpec {
|
|
20
|
+
/** Stable identifier — survives across runs so consumers can grep by id. */
|
|
21
|
+
id: string;
|
|
22
|
+
/** Severity drives recall weighting. */
|
|
23
|
+
severity: GoldenSeverity;
|
|
24
|
+
/**
|
|
25
|
+
* Substring phrases (case-insensitive). A hit on ANY phrase counts as a
|
|
26
|
+
* match. Keep these SHORT (3-6 words) and SPECIFIC.
|
|
27
|
+
*/
|
|
28
|
+
any: string[];
|
|
29
|
+
/** Optional regex patterns. ORed with `any`. */
|
|
30
|
+
anyRegex?: string[];
|
|
31
|
+
/** Free-form note — surfaces in reports for humans. */
|
|
32
|
+
hint?: string;
|
|
33
|
+
/** Optional category for grouping/filtering. */
|
|
34
|
+
category?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface MatchResult {
|
|
37
|
+
/** Same length as goldens; `true` when matched. */
|
|
38
|
+
matches: boolean[];
|
|
39
|
+
/** Convenience: count of hits. */
|
|
40
|
+
hits: number;
|
|
41
|
+
/** Convenience: total goldens. */
|
|
42
|
+
total: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Match each golden against `candidates`, where each candidate exposes one or
|
|
46
|
+
* more text fields the matcher should search. Defaults to searching all
|
|
47
|
+
* string-typed fields concatenated.
|
|
48
|
+
*/
|
|
49
|
+
export declare function matchGoldens<T>(goldens: GoldenSpec[], candidates: T[], options?: {
|
|
50
|
+
/**
|
|
51
|
+
* Extract the searchable text for a candidate. Default: concatenate every
|
|
52
|
+
* top-level string field with a space.
|
|
53
|
+
*/
|
|
54
|
+
text?: (candidate: T) => string;
|
|
55
|
+
}): MatchResult;
|
|
56
|
+
/** Severity weights — exposed so consumers can override (rare). */
|
|
57
|
+
export declare const DEFAULT_SEVERITY_WEIGHTS: Record<GoldenSeverity, number>;
|
|
58
|
+
/** Severity-weighted recall over a MatchResult + the goldens that produced it. */
|
|
59
|
+
export declare function weightedRecall(goldens: GoldenSpec[], result: MatchResult, weights?: Record<GoldenSeverity, number>): number;
|
|
60
|
+
/**
|
|
61
|
+
* Precision proxy: fraction of emitted candidates that match SOME golden.
|
|
62
|
+
*
|
|
63
|
+
* No human-labelled negatives means unmatched candidates are SOFT false
|
|
64
|
+
* positives — punishes verbose agents that pad with filler. Doesn't punish
|
|
65
|
+
* unknown-but-real findings; the way to tighten this is to grow the golden
|
|
66
|
+
* set, not to invent a stricter score.
|
|
67
|
+
*/
|
|
68
|
+
export declare function precision<T>(goldens: GoldenSpec[], candidates: T[], options?: {
|
|
69
|
+
text?: (candidate: T) => string;
|
|
70
|
+
}): number;
|
|
71
|
+
//# sourceMappingURL=golden-matcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"golden-matcher.d.ts","sourceRoot":"","sources":["../src/golden-matcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAA;AAE3D,MAAM,WAAW,UAAU;IACzB,4EAA4E;IAC5E,EAAE,EAAE,MAAM,CAAA;IACV,wCAAwC;IACxC,QAAQ,EAAE,cAAc,CAAA;IACxB;;;OAGG;IACH,GAAG,EAAE,MAAM,EAAE,CAAA;IACb,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,mDAAmD;IACnD,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,OAAO,EAAE,UAAU,EAAE,EACrB,UAAU,EAAE,CAAC,EAAE,EACf,OAAO,GAAE;IACP;;;OAGG;IACH,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,KAAK,MAAM,CAAA;CAC3B,GACL,WAAW,CASb;AAgCD,mEAAmE;AACnE,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAInE,CAAA;AAED,kFAAkF;AAClF,wBAAgB,cAAc,CAC5B,OAAO,EAAE,UAAU,EAAE,EACrB,MAAM,EAAE,WAAW,EACnB,OAAO,GAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAA4B,GACjE,MAAM,CASR;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,OAAO,EAAE,UAAU,EAAE,EACrB,UAAU,EAAE,CAAC,EAAE,EACf,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,KAAK,MAAM,CAAA;CAAO,GAChD,MAAM,CAoBR"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EU AI Act — risk-class classification + compliance checklist.
|
|
3
|
+
*
|
|
4
|
+
* Classification is declarative: caller supplies the domain/use-case
|
|
5
|
+
* signals (biometric? critical infrastructure? education? employment?
|
|
6
|
+
* access to services?) and we map to the Act's risk tiers:
|
|
7
|
+
* - "unacceptable" (prohibited)
|
|
8
|
+
* - "high" (Annex III — strict obligations)
|
|
9
|
+
* - "limited" (transparency obligations)
|
|
10
|
+
* - "minimal" (voluntary codes of conduct)
|
|
11
|
+
*
|
|
12
|
+
* Then the compliance checklist enumerates Article 9 (risk mgmt),
|
|
13
|
+
* 10 (data + data governance), 11 (technical documentation), 13
|
|
14
|
+
* (transparency), 14 (human oversight), 15 (accuracy + robustness)
|
|
15
|
+
* requirements and flags gaps.
|
|
16
|
+
*/
|
|
17
|
+
import type { GovernanceContext, GovernanceReport } from './types';
|
|
18
|
+
export type EuRiskClass = 'unacceptable' | 'high' | 'limited' | 'minimal';
|
|
19
|
+
export interface UseCaseSignals {
|
|
20
|
+
/** Used for biometric identification in public spaces? (Art. 5 — unacceptable). */
|
|
21
|
+
biometricPublic?: boolean;
|
|
22
|
+
/** Social scoring by public authorities? (Art. 5). */
|
|
23
|
+
socialScoring?: boolean;
|
|
24
|
+
/** Subliminal manipulation? (Art. 5). */
|
|
25
|
+
subliminal?: boolean;
|
|
26
|
+
/** Annex III sector: critical infrastructure / education / employment /
|
|
27
|
+
* access to essential services / law enforcement / migration /
|
|
28
|
+
* administration of justice / democratic processes? */
|
|
29
|
+
annexIII?: boolean;
|
|
30
|
+
/** Interacts directly with natural persons (chatbot, agent)? — limited risk. */
|
|
31
|
+
chatbot?: boolean;
|
|
32
|
+
/** Generates synthetic media (image/audio/video/text deepfakes)? — limited risk. */
|
|
33
|
+
generatesSyntheticMedia?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare function classifyEuAiRisk(signals: UseCaseSignals): EuRiskClass;
|
|
36
|
+
export declare function euAiActReport(ctx: GovernanceContext, signals: UseCaseSignals): Promise<GovernanceReport>;
|
|
37
|
+
//# sourceMappingURL=eu-ai-act.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eu-ai-act.d.ts","sourceRoot":"","sources":["../../src/governance/eu-ai-act.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAqB,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAGrF,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;AAEzE,MAAM,WAAW,cAAc;IAC7B,mFAAmF;IACnF,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;4DAEwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gFAAgF;IAChF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oFAAoF;IACpF,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,WAAW,CAKrE;AAED,wBAAsB,aAAa,CACjC,GAAG,EAAE,iBAAiB,EACtB,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,gBAAgB,CAAC,CAsH3B"}
|