@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
|
@@ -58,7 +58,7 @@ Cost mean: $0.103 (p95: $0.131)
|
|
|
58
58
|
|
|
59
59
|
1. Wire an `AnalystRegistry` to cluster the 6 failures by root cause via LLM analysis.
|
|
60
60
|
2. Add `outcomeSignal` once they have downstream conversion / engagement / post-engagement data, and the report fits a reward model showing whether their score predicts the customer outcome.
|
|
61
|
-
3. Once they identify a step worth optimizing (translation, say), graduate to journey #3 — wrap that step
|
|
61
|
+
3. Once they identify a step worth optimizing (translation, say), graduate to journey #3 — wrap that step as an `agent(surface, scenario)` and call `defineAgentEval()`.
|
|
62
62
|
|
|
63
63
|
**Runnable:** [`examples/customer-otel-traces/`](../examples/customer-otel-traces/)
|
|
64
64
|
|
|
@@ -130,7 +130,7 @@ Mean κ: 0.43
|
|
|
130
130
|
1. **Triage meeting on the disagreement cases.** Mean κ=0.43 means the rubric is ambiguous; clarify it on the cases that split.
|
|
131
131
|
2. **Calibrate one LLM judge per reviewer.** Each reviewer's history is the gold signal — substrate primitive `calibrateJudge` against `raterScores` filtered to that reviewer.
|
|
132
132
|
3. **Add engagement as `outcomeSignal`** once the content downstream is instrumented. The `outcomeCorrelation` section tells the team whether their taste predicts the founder's token-max goal — and if not, the linear reward model says how to retarget.
|
|
133
|
-
4. **Graduate to journey #3** — wrap the research-generation Claude-P call as
|
|
133
|
+
4. **Graduate to journey #3** — wrap the research-generation Claude-P call as an `agent(surface, scenario)`, use the calibrated judges, run `evalKit.improve()` nightly. Open a PR against the GitHub Action when the holdout approval rate beats baseline.
|
|
134
134
|
|
|
135
135
|
**Runnable:** [`examples/customer-feedback-loop/`](../examples/customer-feedback-loop/)
|
|
136
136
|
|
|
@@ -142,14 +142,14 @@ Mean κ: 0.43
|
|
|
142
142
|
|
|
143
143
|
**The frustration:** "We can run an A/B by hand but we don't know if the improvement is real. We don't have time to run paired bootstrap by hand. We want a function that decides."
|
|
144
144
|
|
|
145
|
-
**What they need from agent-eval:**
|
|
145
|
+
**What they need from agent-eval:** one reusable eval definition — propose, score, gate, ship — with the full rigor packet on the way out.
|
|
146
146
|
|
|
147
147
|
### The code
|
|
148
148
|
|
|
149
149
|
```ts
|
|
150
|
-
import {
|
|
150
|
+
import { defineAgentEval } from '@tangle-network/agent-eval/contract'
|
|
151
151
|
|
|
152
|
-
const
|
|
152
|
+
const evalKit = defineAgentEval({
|
|
153
153
|
scenarios,
|
|
154
154
|
agent: async (surface, scenario) =>
|
|
155
155
|
await myAgent.run({ systemPrompt: (surface as { systemPrompt: string }).systemPrompt, scenario }),
|
|
@@ -162,6 +162,8 @@ const result = await selfImprove({
|
|
|
162
162
|
budget: { generations: 3, populationSize: 2 },
|
|
163
163
|
})
|
|
164
164
|
|
|
165
|
+
const result = await evalKit.improve()
|
|
166
|
+
|
|
165
167
|
result.gateDecision // 'ship' | 'hold' | ...
|
|
166
168
|
result.insight // full decision packet
|
|
167
169
|
```
|
|
@@ -172,18 +174,18 @@ result.insight // full decision packet
|
|
|
172
174
|
═══ selfImprove() decision packet ═══
|
|
173
175
|
|
|
174
176
|
Gate decision: ship
|
|
175
|
-
Raw lift: +0.
|
|
177
|
+
Raw lift: +0.361
|
|
176
178
|
|
|
177
179
|
── Statistical lift (paired bootstrap) ──
|
|
178
|
-
delta: +0.
|
|
179
|
-
CI95: [0.
|
|
180
|
-
pValue:
|
|
181
|
-
Cohen's d:
|
|
182
|
-
MDE @ 80% power:
|
|
183
|
-
required n at observed effect:
|
|
180
|
+
delta: +0.359
|
|
181
|
+
CI95: [0.311, 0.408]
|
|
182
|
+
pValue: 0.0013
|
|
183
|
+
Cohen's d: 8.58
|
|
184
|
+
MDE @ 80% power: 1.401
|
|
185
|
+
required n at observed effect: 122
|
|
184
186
|
|
|
185
187
|
── Recommendations ──
|
|
186
|
-
[critical] ship — Ship — lift 0.
|
|
188
|
+
[critical] ship — Ship — lift 0.359 (95% CI 0.311..0.408)
|
|
187
189
|
```
|
|
188
190
|
|
|
189
191
|
### Next steps for this customer
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
# Loop taxonomy: driver, worker, measurement, and
|
|
1
|
+
# Loop taxonomy: execution driver, worker, measurement, and surface proposer
|
|
2
2
|
|
|
3
3
|
This is the canonical vocabulary for the Tangle agent stack. It exists because
|
|
4
4
|
the same word ("loop", "shot", "worker") was being used at three different
|
|
5
5
|
layers, and the layers were getting conflated. Every role below has exactly
|
|
6
6
|
one meaning. Use these words and nothing else.
|
|
7
7
|
|
|
8
|
-
Cross-links: [`
|
|
9
|
-
|
|
10
|
-
[`multi-shot-optimization.md`](../multi-shot-optimization.md) (GEPA),
|
|
8
|
+
Cross-links: [`concepts.md`](../concepts.md) (eval mental model),
|
|
9
|
+
[`campaign-proposers.md`](../campaign-proposers.md) (proposer catalog),
|
|
10
|
+
[`multi-shot-optimization.md`](../multi-shot-optimization.md) (GEPA), and
|
|
11
11
|
[`auto-research-loop-end-to-end.md`](../auto-research-loop-end-to-end.md)
|
|
12
12
|
(analyst / autoresearch).
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## Core Roles
|
|
15
15
|
|
|
16
16
|
| Role | Definition | Lives at |
|
|
17
17
|
|---|---|---|
|
|
18
|
-
| **
|
|
18
|
+
| **Execution driver** | The thing that decides or routes the next turn/action inside a sandbox or worker conversation. | Inner layer only |
|
|
19
|
+
| **Surface proposer** | The thing that proposes the next prompt/config/code surface for the improvement loop to measure. | Outer layer only |
|
|
19
20
|
| **Worker** | An agent harness instance (Claude Code, Codex, OpenCode, …) running inside a sandbox. Does the actual work; responds in chat. | Inner layer only |
|
|
20
21
|
| **Sandbox** | A multi-harness VM. Hosts **1..N workers**, which can share a workspace. Not an agent — the substrate an agent runs in. | Inner layer only |
|
|
21
22
|
| **Measurement** | Runs the worker over a set of scenarios and judges the outputs into a scorecard with confidence intervals. This is `runCampaign`. | Outer layer |
|
|
@@ -28,12 +29,9 @@ Two facts that trip people up:
|
|
|
28
29
|
`{ sibling, sandboxId }` = co-located workers; `{ fleet, fleetId,
|
|
29
30
|
machineId, sandboxId }` = workers across machines.
|
|
30
31
|
|
|
31
|
-
2. **"Driver"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
simulating chat, or a planner fanning work to workers.
|
|
35
|
-
- **Improvement driver** (outer): decides the next *surface* — what system
|
|
36
|
-
prompt / tool config / code the workers should run.
|
|
32
|
+
2. **"Driver" is reserved for execution.** The outer loop uses a
|
|
33
|
+
**surface proposer**: it proposes the next prompt / tool config / code
|
|
34
|
+
surface for the measurement loop.
|
|
37
35
|
|
|
38
36
|
## The nesting
|
|
39
37
|
|
|
@@ -42,7 +40,7 @@ There are two loops. The outer one improves the thing the inner one runs.
|
|
|
42
40
|
```
|
|
43
41
|
runImprovementLoop OUTER loop — improve the agent over time
|
|
44
42
|
│
|
|
45
|
-
├─
|
|
43
|
+
├─ PROPOSER = SurfaceProposer proposes a candidate SURFACE
|
|
46
44
|
│ (evolutionary mutator | (the worker's system prompt / tools / config)
|
|
47
45
|
│ reflective analyst) — NOT a conversation turn
|
|
48
46
|
│
|
|
@@ -84,7 +82,7 @@ opinion about execution topology: the topology lives inside `dispatch`.
|
|
|
84
82
|
- The worker is the agent in the sandbox. The driver talks to it. ✓
|
|
85
83
|
- `runCampaign` is a **measurement**, not a worker. It *runs the worker* (via
|
|
86
84
|
`dispatch`); the worker does not "run the eval".
|
|
87
|
-
- The outer improvement loop has **no single worker** — its
|
|
85
|
+
- The outer improvement loop has **no single worker** — its proposer proposes a
|
|
88
86
|
*surface*, and each surface is scored by a *measurement* that drives the
|
|
89
87
|
inner workers.
|
|
90
88
|
|
|
@@ -108,7 +106,7 @@ identical in shape:
|
|
|
108
106
|
|
|
109
107
|
That captured corpus **is the GEPA training set.** A basic eval run, a
|
|
110
108
|
production conversation, and an autoresearch loop all deposit the same
|
|
111
|
-
`(input, output, reward)` tuples. The optimization
|
|
109
|
+
`(input, output, reward)` tuples. The optimization proposer later samples from
|
|
112
110
|
that corpus to evolve the surface. So:
|
|
113
111
|
|
|
114
112
|
> Running *any* loop — even one whose purpose is not optimization — builds the
|
|
@@ -116,7 +114,7 @@ that corpus to evolve the surface. So:
|
|
|
116
114
|
> currently optimizing.
|
|
117
115
|
|
|
118
116
|
This is enforced, not aspirational: `runImprovementLoop` **refuses**
|
|
119
|
-
`tracing: 'off'` whenever a
|
|
117
|
+
`tracing: 'off'` whenever a proposer is wired, precisely because a loop that
|
|
120
118
|
doesn't feed the dataset is a loop that breaks the flywheel.
|
|
121
119
|
|
|
122
120
|
Temporal-split discipline (train vs holdout, `capturedBefore`) and
|
|
@@ -124,16 +122,15 @@ default-off-for-training of `production-trace` are enforced at the
|
|
|
124
122
|
`LabeledScenarioStore.sample()` boundary so the flywheel cannot contaminate
|
|
125
123
|
the holdout it is judged against. See `src/campaign/labeled-store/`.
|
|
126
124
|
|
|
127
|
-
## One improvement loop, pluggable
|
|
125
|
+
## One improvement loop, pluggable proposers
|
|
128
126
|
|
|
129
|
-
The improvement loop is **
|
|
127
|
+
The improvement loop is **proposer-agnostic**. `runOptimization` (the loop body)
|
|
130
128
|
and `runImprovementLoop` (the gated-promotion shell) call
|
|
131
|
-
`
|
|
132
|
-
strategy
|
|
133
|
-
interface:
|
|
129
|
+
`proposer.propose(...)` → measure → `proposer.decide(...)`. They do not know
|
|
130
|
+
which strategy proposed the candidate. The API interface is `SurfaceProposer`:
|
|
134
131
|
|
|
135
132
|
```ts
|
|
136
|
-
interface
|
|
133
|
+
interface SurfaceProposer<TFindings = unknown> {
|
|
137
134
|
kind: string
|
|
138
135
|
propose(args: {
|
|
139
136
|
currentSurface: MutableSurface
|
|
@@ -149,28 +146,27 @@ interface ImprovementDriver<TFindings = unknown> {
|
|
|
149
146
|
|
|
150
147
|
| Implementation | Strategy | How it proposes | Where it lives |
|
|
151
148
|
|---|---|---|---|
|
|
152
|
-
| `
|
|
153
|
-
|
|
|
154
|
-
|
|
|
149
|
+
| `evolutionaryProposer` | Evolutionary (GEPA / AxGEPA) | Standalone `SurfaceProposer`. Mutates the current best surface into N candidates, blind to history beyond the current best. Optimizes against the dataset's rewards. | **agent-eval** (pure: dataset → surface, no sandbox) |
|
|
150
|
+
| Runtime reflective proposer | Reflective | Cheap generator: drafts patches from the report and applies them into a worktree (shots=1, no sandbox). | **agent-runtime** — implements agent-eval's proposer contract |
|
|
151
|
+
| Runtime agentic proposer | Agentic | Full generator: runs a coding harness in the worktree (≤ `maxImprovementShots`) to edit in place. | **agent-runtime** |
|
|
155
152
|
|
|
156
153
|
This resolves the prior duplication where `runImprovementLoop` (evolutionary,
|
|
157
154
|
agent-eval) and `runAnalystLoop` (reflective, agent-runtime) were two parallel
|
|
158
155
|
loops doing "propose change → measure → gate → PR". There is **one loop** and
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
agent-eval is the leaf and owns the `ImprovementDriver` contract; agent-runtime
|
|
156
|
+
one proposer contract. The reflective and agentic paths are two settings of the
|
|
157
|
+
same cost dial, not separate outer loops. The dependency direction permits this
|
|
158
|
+
cleanly: agent-eval is the leaf and owns the proposer contract; agent-runtime
|
|
163
159
|
imports agent-eval and implements it.
|
|
164
160
|
|
|
165
161
|
## What "the surface" is — improvement tiers
|
|
166
162
|
|
|
167
|
-
`MutableSurface` is the thing the
|
|
163
|
+
`MutableSurface` is the thing the proposer changes. It has tiers, least → most
|
|
168
164
|
invasive. `MutableSurface = string | CodeSurface` spans all of them: `string`
|
|
169
165
|
for tiers 1–2, `CodeSurface{ worktreeRef }` for tier 4.
|
|
170
166
|
|
|
171
167
|
| Tier | Surface | Generator that changes it | Blast radius |
|
|
172
168
|
|---|---|---|---|
|
|
173
|
-
| 1 | System prompt / prompt-signature addendum | `
|
|
169
|
+
| 1 | System prompt / prompt-signature addendum | `evolutionaryProposer` (GEPA), `reflectiveGenerator` | prompt only |
|
|
174
170
|
| 2 | Tool config / tool signatures | `reflectiveGenerator` | which tools, their schemas |
|
|
175
171
|
| 3 | Knowledge (wiki / knowledge graph) | agent-knowledge's knowledge adapter | what the agent *knows* |
|
|
176
172
|
| 4 | Code / scaffolding | `agenticGenerator` (coding harness reads codebase + report) → worktree / PR | the implementation itself |
|
|
@@ -185,38 +181,10 @@ The cost/capability distinction:
|
|
|
185
181
|
`maxImprovementShots` — measured by re-running the inner loop against the
|
|
186
182
|
changed code.
|
|
187
183
|
|
|
188
|
-
Both are
|
|
189
|
-
PR). They differ only in *what* they edit and *how invasive* it is — and both
|
|
184
|
+
Both are implementations of the one proposer contract (propose → measure → gate
|
|
185
|
+
→ PR). They differ only in *what* they edit and *how invasive* it is — and both
|
|
190
186
|
consume the **same dataset** the flywheel builds.
|
|
191
187
|
|
|
192
|
-
## Resolved design decisions
|
|
193
|
-
|
|
194
|
-
1. **`MutableSurface` widens to span all tiers.** `MutableSurface = string |
|
|
195
|
-
CodeSurface`. The `string` form is tiers 1–2 (prompt / serialized tool
|
|
196
|
-
config); `CodeSurface = { kind: 'code'; worktreeRef; baseRef?; summary? }`
|
|
197
|
-
is tier 4 (an implementation change behind a worktree ref). One loop spans
|
|
198
|
-
prompt *and* code improvement. `surfaceHash` hashes a string by content and
|
|
199
|
-
a code surface by its `(worktreeRef, baseRef)` identity (the content lives
|
|
200
|
-
in git). **Shipped in agent-eval 0.40.1.** The consumer's
|
|
201
|
-
`dispatchWithSurface` is responsible for checking out a code surface's
|
|
202
|
-
worktree before running the worker.
|
|
203
|
-
|
|
204
|
-
2. **`runAnalystLoop` (agent-runtime): the analyst is a GENERATOR, knowledge
|
|
205
|
-
stays separate.** Shipped in agent-runtime 0.25.0 as `improvementDriver` +
|
|
206
|
-
`reflectiveGenerator` (drafts patches from the report) / `agenticGenerator`
|
|
207
|
-
(coding harness in the worktree) — one driver, pluggable generators, fed
|
|
208
|
-
into `runImprovementLoop`'s gate + PR machinery. `runAnalystLoop`'s other
|
|
209
|
-
responsibilities — the findings ledger and knowledge-graph updates, which
|
|
210
|
-
are *not* surface optimization — stay where they are.
|
|
211
|
-
|
|
212
|
-
3. **`runLoop` + `runMultishot` converge into one parameterized
|
|
213
|
-
`runConversationLoop`** with a pluggable backend (`sandbox | router`). The
|
|
214
|
-
two are the same shape (driver ↔ workers, iterate) differing only in
|
|
215
|
-
backend and intent; unify them. **Phase 3+ (cross-repo); needs its own
|
|
216
|
-
design pass — introduces a backend abstraction and couples the two repos'
|
|
217
|
-
inner loops, so it lands after the `ImprovementDriver` model is proven in
|
|
218
|
-
product use.**
|
|
219
|
-
|
|
220
188
|
## Vocabulary quick reference
|
|
221
189
|
|
|
222
190
|
- **shot** — one conversational turn (driver says X, worker responds Y). Used
|
|
@@ -227,15 +195,15 @@ consume the **same dataset** the flywheel builds.
|
|
|
227
195
|
agent-runtime.
|
|
228
196
|
- **runCampaign** — a measurement: a surface scored over N scenarios × M reps.
|
|
229
197
|
agent-eval. (A "campaign" = a coordinated batch of measurements.)
|
|
230
|
-
- **runOptimization** — the improvement loop body:
|
|
198
|
+
- **runOptimization** — the improvement loop body: proposer suggests surfaces,
|
|
231
199
|
each measured by a campaign, top-K promoted per generation. agent-eval.
|
|
232
200
|
- **runImprovementLoop** — `runOptimization` + holdout re-score + release gate
|
|
233
201
|
+ optional PR. agent-eval.
|
|
234
202
|
- **runAnalystLoop** — reflective autoresearch: findings + knowledge updates +
|
|
235
203
|
improvement proposals. agent-runtime.
|
|
236
|
-
- **
|
|
237
|
-
`
|
|
238
|
-
|
|
239
|
-
- **CandidateGenerator** — the byte-producing seam inside
|
|
204
|
+
- **SurfaceProposer** — the contract a surface proposer implements.
|
|
205
|
+
`evolutionaryProposer` (agent-eval) is one; agent-runtime can provide
|
|
206
|
+
reflective or agentic implementations.
|
|
207
|
+
- **CandidateGenerator** — the byte-producing seam inside a runtime proposer;
|
|
240
208
|
`reflectiveGenerator` (cheap, no sandbox) and `agenticGenerator` (coding
|
|
241
209
|
harness in the worktree) are the two cost settings. agent-runtime.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Distributed
|
|
1
|
+
# Distributed campaign execution — coordinator-on-A, workers-on-B
|
|
2
2
|
|
|
3
|
-
The
|
|
4
|
-
and the worker (running your actual agent) **do not have to live in the
|
|
3
|
+
The coordinator process (running `runCampaign` / `runImprovementLoop` /
|
|
4
|
+
`gepaProposer`) and the worker (running your actual agent) **do not have to live in the
|
|
5
5
|
same process, machine, region, or cloud.** `Dispatch` is just a
|
|
6
6
|
function: scenario in, artifact out. Whatever returns the artifact is
|
|
7
7
|
the worker — local, remote, sandboxed, or fanned out across a fleet.
|
|
@@ -10,11 +10,11 @@ the worker — local, remote, sandboxed, or fanned out across a fleet.
|
|
|
10
10
|
|
|
11
11
|
| Pattern | Reason |
|
|
12
12
|
|---|---|
|
|
13
|
-
| **
|
|
13
|
+
| **Coordinator on your VPC, workers on our sandbox fleet** | Coordinator holds secrets, training data, prompt corpus; workers stay stateless and scale horizontally |
|
|
14
14
|
| **Multi-region campaigns** | Each cell runs in the region closest to its target API (latency, compliance, data residency) |
|
|
15
|
-
| **
|
|
15
|
+
| **Coordinator-as-a-service** | Long-running optimization process; reuses across many short-lived worker invocations |
|
|
16
16
|
| **Heterogeneous workers** | One cell on a CPU container, another on a GPU box, another against a third-party API — same Dispatch shape, different placement |
|
|
17
|
-
| **Budget-isolated workers** | Worker boxes get scoped, time-bounded credentials;
|
|
17
|
+
| **Budget-isolated workers** | Worker boxes get scoped, time-bounded credentials; coordinator never holds production keys |
|
|
18
18
|
|
|
19
19
|
## Two new pieces in 0.45.0
|
|
20
20
|
|
|
@@ -48,9 +48,9 @@ This shipped in 0.40.
|
|
|
48
48
|
|
|
49
49
|
### 2. Single remote worker
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Coordinator-on-A talks to one worker-on-B over HTTP.
|
|
52
52
|
|
|
53
|
-
**
|
|
53
|
+
**Coordinator side (machine A):**
|
|
54
54
|
|
|
55
55
|
```ts
|
|
56
56
|
import { httpDispatch } from '@tangle-network/agent-eval/adapters/http'
|
|
@@ -89,7 +89,7 @@ custom auth headers, optional `fetchImpl` override — all there.
|
|
|
89
89
|
|
|
90
90
|
### 3. Multi-region fan-out
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
The coordinator picks a region per cell; the same `httpDispatch` routes to
|
|
93
93
|
different worker URLs based on placement.
|
|
94
94
|
|
|
95
95
|
```ts
|
|
@@ -129,13 +129,13 @@ round-robin, region-affinity from a previous run, scheduling table).
|
|
|
129
129
|
|
|
130
130
|
| Concern | How |
|
|
131
131
|
|---|---|
|
|
132
|
-
| **Cancellation** |
|
|
132
|
+
| **Cancellation** | The coordinator's `AbortSignal` forwards into the HTTP request; server translates `AbortError` → `499` so client doesn't retry. |
|
|
133
133
|
| **Timeouts** | Per-call `timeoutMs` on the client; server can layer its own. |
|
|
134
|
-
| **Retries** | Idempotent retries on 5xx / 408 / 429 with exponential backoff + jitter.
|
|
134
|
+
| **Retries** | Idempotent retries on 5xx / 408 / 429 with exponential backoff + jitter. Coordinator aborts never retry. |
|
|
135
135
|
| **Auth** | Bearer token on `Authorization`; pluggable via `auth: string \| () => string \| Promise<string>` for rotation/refresh. |
|
|
136
136
|
| **Payload size** | Server enforces `maxBodyBytes` (default 10 MB). |
|
|
137
137
|
| **Traces** | Both ends emit OTel — if both point at the same OTLP collector, you get a unified trace per cell. See `docs/adapters-observability.md`. |
|
|
138
|
-
| **Cost** | Worker's `ctx.cost.observe(usd, source)` is local to the worker process. Roll up server-side and attach to your worker-side telemetry; we don't (yet) forward cost back to the
|
|
138
|
+
| **Cost** | Worker's `ctx.cost.observe(usd, source)` is local to the worker process. Roll up server-side and attach to your worker-side telemetry; we don't (yet) forward cost back to the coordinator. Tracked as follow-up. |
|
|
139
139
|
|
|
140
140
|
## Running the reference example
|
|
141
141
|
|
|
@@ -145,7 +145,7 @@ See `examples/distributed-driver/`:
|
|
|
145
145
|
# Terminal 1 — worker
|
|
146
146
|
pnpm tsx examples/distributed-driver/worker.ts
|
|
147
147
|
|
|
148
|
-
# Terminal 2 —
|
|
148
|
+
# Terminal 2 — coordinator
|
|
149
149
|
WORKER_URL=http://localhost:8080/dispatch \
|
|
150
150
|
WORKER_TOKEN=dev-token \
|
|
151
151
|
pnpm tsx examples/distributed-driver/driver.ts
|
|
@@ -160,7 +160,7 @@ and using `cellPlacement` to fan across many of them.
|
|
|
160
160
|
- **Cost roll-up across the wire** — worker-side `ctx.cost` observations
|
|
161
161
|
stay on the worker. We need to forward them in the response body so
|
|
162
162
|
`defaultProductionGate`'s `budgetUsd` ceiling reflects total spend, not
|
|
163
|
-
|
|
163
|
+
coordinator-side spend. Tracked as a 0.45.x follow-up.
|
|
164
164
|
- **Per-cell artifact streaming** — when the worker writes intermediate
|
|
165
165
|
artifacts via `ctx.artifacts.write`, those land on the worker's
|
|
166
166
|
storage. For multi-worker campaigns you'll want a shared object store
|
package/docs/feature-guide.md
CHANGED
|
@@ -149,7 +149,7 @@ Store as `FeedbackTrajectory`, then derive:
|
|
|
149
149
|
|
|
150
150
|
| Area | Key exports | Best for | Notes |
|
|
151
151
|
| --- | --- | --- | --- |
|
|
152
|
-
| Judging | `createCustomJudge`,
|
|
152
|
+
| Judging | `createCustomJudge`, semantic judges, anti-slop, wire rubrics | Content, voice, semantic quality | Pair with objective checks when possible. |
|
|
153
153
|
| Verification | `MultiLayerVerifier`, `JudgeRunner`, sandbox harness | Code and multi-step gates | Do not let semantic judges override failed builds. |
|
|
154
154
|
| Control | `runAgentControlLoop`, `objectiveEval`, `subjectiveEval` | Long-running agent tasks | Supports budgets, cost, stop policies, trace spans. |
|
|
155
155
|
| Propose/review | `runProposeReview`, `runProposeReviewAsControlLoop` | Iterative artifact repair | Good for code, docs, plans, briefs. |
|
|
@@ -5,9 +5,8 @@ any future open implementation) must accept. Frozen under semver:
|
|
|
5
5
|
**new minors only add optional fields. Breaking changes mean a major
|
|
6
6
|
bump and a new `HostedWireVersion` literal.**
|
|
7
7
|
|
|
8
|
-
This is the contract
|
|
9
|
-
|
|
10
|
-
foreign builder can:
|
|
8
|
+
This is the contract between `@tangle-network/agent-eval` and any hosted
|
|
9
|
+
or self-hosted orchestrator. A builder can:
|
|
11
10
|
|
|
12
11
|
- Use our orchestrator at `https://orchestrator.tangle.tools/v1`.
|
|
13
12
|
- Self-host the reference receiver from
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Multi-Shot Optimization
|
|
2
2
|
|
|
3
3
|
> **Renamed.** `runMultiShotOptimization` was retired. The live API is
|
|
4
|
-
> `runImprovementLoop` (
|
|
5
|
-
> with `
|
|
4
|
+
> `runImprovementLoop` (proposer-agnostic, gated promotion) driven by `gepaProposer`,
|
|
5
|
+
> with `compareProposers` for head-to-head proposer lift. This doc was rewritten to the
|
|
6
6
|
> live API; see also [feature-guide.md](./feature-guide.md) and [concepts.md](./concepts.md).
|
|
7
7
|
|
|
8
8
|
`runImprovementLoop` is the public entry for GEPA-style optimization over a whole
|
|
@@ -19,8 +19,8 @@ held-out re-score, the promotion gate, provenance):
|
|
|
19
19
|
- **`dispatchWithSurface(surface, scenario, ctx)`** — run one task to completion
|
|
20
20
|
under a candidate surface; return the artifact the judges score.
|
|
21
21
|
- **`judges`** — score the artifact (`{ composite, dimensions }`).
|
|
22
|
-
- **`
|
|
23
|
-
(reflective + Pareto frontier) or `
|
|
22
|
+
- **`proposer`** — proposes candidate surfaces each generation: `gepaProposer`
|
|
23
|
+
(reflective + Pareto frontier) or `evolutionaryProposer` (mutator).
|
|
24
24
|
- **`gate`** — `defaultProductionGate` (held-out significance + red-team +
|
|
25
25
|
reward-hacking + canary). Ships ONLY on a CI-lower-bound held-out lift.
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ held-out re-score, the promotion gate, provenance):
|
|
|
29
29
|
```ts
|
|
30
30
|
import {
|
|
31
31
|
runImprovementLoop,
|
|
32
|
-
|
|
32
|
+
gepaProposer,
|
|
33
33
|
defaultProductionGate,
|
|
34
34
|
} from '@tangle-network/agent-eval/contract'
|
|
35
35
|
|
|
@@ -40,7 +40,7 @@ const result = await runImprovementLoop({
|
|
|
40
40
|
dispatchWithSurface: async (surface, scenario) =>
|
|
41
41
|
runYourAgentToCompletion({ scenario, prompt: String(surface) }),
|
|
42
42
|
judges: [myJudge],
|
|
43
|
-
|
|
43
|
+
proposer: gepaProposer({
|
|
44
44
|
llm: { apiKey, baseUrl },
|
|
45
45
|
model: 'gpt-5',
|
|
46
46
|
target: 'enforce a strict output schema',
|
|
@@ -53,7 +53,7 @@ const result = await runImprovementLoop({
|
|
|
53
53
|
})
|
|
54
54
|
|
|
55
55
|
if (result.gateResult.decision === 'ship') {
|
|
56
|
-
deploy(result.winnerSurface) // the
|
|
56
|
+
deploy(result.winnerSurface) // the proposer's candidate, gated on a real held-out lift
|
|
57
57
|
}
|
|
58
58
|
```
|
|
59
59
|
|
|
@@ -70,6 +70,6 @@ if (result.gateResult.decision === 'ship') {
|
|
|
70
70
|
auditable candidate→gate→promote chain (rationale, content hashes, a held-out lift
|
|
71
71
|
recomputable from the emitted record).
|
|
72
72
|
|
|
73
|
-
Reach for `
|
|
73
|
+
Reach for `compareProposers` when the question is "which proposer wins" rather than
|
|
74
74
|
"improve this surface", and see `tests/campaign/presets.test.ts` for the executable
|
|
75
75
|
contract (no-op guard, fail-loud holdout, gate promotion).
|
|
@@ -121,7 +121,7 @@ the record:
|
|
|
121
121
|
```ts
|
|
122
122
|
const agentProfile = await buildAgentProfileCell({
|
|
123
123
|
profileId: 'gtm-founder-v1',
|
|
124
|
-
sourceProfile: { kind: '
|
|
124
|
+
sourceProfile: { kind: 'agent-interface-profile', profile: gtmAgentProfile },
|
|
125
125
|
harness: { id: 'gtm-agent-eval', version: '0.3.0' },
|
|
126
126
|
model: 'gpt-4o-2024-11-20',
|
|
127
127
|
promptHash,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# The self-improvement map
|
|
2
2
|
|
|
3
|
-
One loop. Four roles. A
|
|
3
|
+
One loop. Four roles. A proposer catalog of pluggable strategies. A bench rig that
|
|
4
4
|
proves the loop produces real lift. Nothing here is duplicated — it is one engine
|
|
5
5
|
pointed at different surfaces. This map exists because the surface count makes it
|
|
6
6
|
*look* like many competing systems when it is one.
|
|
@@ -16,7 +16,7 @@ product imports the same function. Each generation it does four things:
|
|
|
16
16
|
```
|
|
17
17
|
run AGENT on SCENARIOS ──► JUDGE scores each run
|
|
18
18
|
│
|
|
19
|
-
|
|
19
|
+
PROPOSER reads the failures and
|
|
20
20
|
proposes better SURFACE versions
|
|
21
21
|
│
|
|
22
22
|
GATE: did a candidate beat the parent on a
|
|
@@ -31,28 +31,32 @@ product imports the same function. Each generation it does four things:
|
|
|
31
31
|
| Role | What it is | Plain meaning |
|
|
32
32
|
|---|---|---|
|
|
33
33
|
| **Surface** | a *string* — an agent directive, a `SKILL.md`, a playbook, a memory, a judge rubric | **what** gets improved |
|
|
34
|
-
| **
|
|
34
|
+
| **Proposer** | a `SurfaceProposer` (the catalog below) | **how** candidate surfaces are proposed |
|
|
35
35
|
| **Gate** | held-out split + significance (`paretoSignificanceGate` / `heldOutGate` / `defaultProductionGate`) | **did it actually get better**, vs noise |
|
|
36
36
|
| **Judge** | scores a run | **how good** any version is |
|
|
37
37
|
|
|
38
|
-
## The
|
|
38
|
+
## The proposer catalog (one loop, multiple strategies)
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
The split that matters: **production
|
|
42
|
-
|
|
40
|
+
The package intentionally exposes named proposer factories instead of a hidden
|
|
41
|
+
auto-selector. The split that matters: **production proposers** mutate a live
|
|
42
|
+
surface; **bench-only proposers** exist solely to be raced inside
|
|
43
|
+
`compareProposers`.
|
|
43
44
|
|
|
44
|
-
|
|
|
45
|
+
| Proposer factory | Surface | Strategy | Role | Notes |
|
|
45
46
|
|---|---|---|---|---|
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `
|
|
49
|
-
| `
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
53
|
-
|
|
54
|
-
`
|
|
55
|
-
|
|
47
|
+
| `gepaProposer` | prompt | reflective full-surface rewrite + Pareto frontier | **production default** | consumes trace-analysis findings — see below |
|
|
48
|
+
| `fapoProposer` | prompt/config/code | reviewed escalation policy over prompt → parameter → structural proposers | production, benchmark | encodes FAPO's scope + reviewer + prompt-first escalation rules; structural generator is injected |
|
|
49
|
+
| `parameterSweepProposer` | config | JSON config patch/sweep | production, benchmark | middle FAPO level for parameter/config edits such as `retrieval.k`, `temperature`, `max_tokens` |
|
|
50
|
+
| `skillOptProposer` | skill-doc | anchored add/delete/replace patch | production | preserves earlier rules; edit budget = "textual learning rate" |
|
|
51
|
+
| `aceProposer` | playbook | append-only, provenance-tagged | production | accumulate hard-won lessons, never summarize away |
|
|
52
|
+
| `memoryCurationProposer` | memory | dedup + rank + graft | production | compact alternative to `ace` |
|
|
53
|
+
| `evolutionaryProposer` | any | population mutate → measure → select | production | blind search; no reflection over findings |
|
|
54
|
+
| `traceAnalystProposer` | prompt | analysis → one LLM edit | **bench-only** | our evidence engine, wrapped as a proposer |
|
|
55
|
+
| `haloProposer` | prompt | analysis → one LLM edit | **bench-only**, external | wraps `pip install halo-engine` (Inference.net) |
|
|
56
|
+
|
|
57
|
+
Default choice: start with `gepaProposer` for prompt surfaces, add
|
|
58
|
+
`parameterSweepProposer` when config knobs are the likely failure mode, and wrap
|
|
59
|
+
them with `fapoProposer` when evidence should decide when to escalate.
|
|
56
60
|
|
|
57
61
|
## Trace analysis — what it is and the three places it is used
|
|
58
62
|
|
|
@@ -63,21 +67,21 @@ three places — this is the answer to "if GEPA does its own thing, what is trac
|
|
|
63
67
|
analysis *for*?":
|
|
64
68
|
|
|
65
69
|
1. **Ships to customers** — `analyzeRuns()` → `InsightReport`, the Intelligence product.
|
|
66
|
-
2. **Feeds the
|
|
67
|
-
ctx.report)` (`src/campaign/
|
|
68
|
-
|
|
70
|
+
2. **Feeds the proposer** — `gepaProposer` calls `renderAnalystEvidence(ctx.findings,
|
|
71
|
+
ctx.report)` (`src/campaign/proposers/gepa.ts`). GEPA's rewrites are grounded
|
|
72
|
+
in the diagnosis instead of guessing blind. Trace analysis
|
|
69
73
|
**is** on the GEPA side.
|
|
70
|
-
3. **Races HALO** — wrapped as `
|
|
71
|
-
head-to-head with the external SOTA inside `
|
|
74
|
+
3. **Races HALO** — wrapped as `traceAnalystProposer` so our analysis competes
|
|
75
|
+
head-to-head with the external SOTA inside `compareProposers`.
|
|
72
76
|
|
|
73
77
|
## Where HALO fits (and why it feels "removed")
|
|
74
78
|
|
|
75
|
-
`
|
|
79
|
+
`haloProposer` is alive (`src/campaign/proposers/halo.ts`, exported from the campaign
|
|
76
80
|
barrel) but it is **never in the product loop**. It shells out to an *external* engine
|
|
77
81
|
(`halo-engine`) — so the analysis genuinely lives outside this repo; we only wrap it.
|
|
78
82
|
|
|
79
|
-
Its only job is the **bake-off**. HALO's real opponent is **not** `
|
|
80
|
-
`
|
|
83
|
+
Its only job is the **bake-off**. HALO's real opponent is **not** `gepaProposer` — it is
|
|
84
|
+
`traceAnalystProposer`. `compareProposers` holds the apply step identical (same
|
|
81
85
|
`APPLY_SYSTEM`, same `traces.jsonl`, same held-out scoring) so the only variable is
|
|
82
86
|
**analysis quality: HALO vs ours.** A measuring stick, like a benchmark baseline.
|
|
83
87
|
|
|
@@ -100,9 +104,9 @@ Products run the loop to get **better**. `gepa-refine` runs the identical loop t
|
|
|
100
104
|
|
|
101
105
|
The code is well-factored; the confusion is narrative:
|
|
102
106
|
|
|
103
|
-
- **Surface sprawl reads as chaos.**
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
- **Surface sprawl reads as chaos.** Several proposers with overlapping shapes *look* like
|
|
108
|
+
competing loops. They are exported factories for one loop; this map makes that
|
|
109
|
+
explicit.
|
|
106
110
|
- **The real gap is the missing proof, not the design.** The loop kept being proved on
|
|
107
111
|
benchmarks too easy to show value: when a capable model ceilings an extraction task,
|
|
108
112
|
**0 findings fire** and the whole trace-analysis→optimizer apparatus is inert. It
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-eval",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.95.0",
|
|
4
4
|
"description": "Evaluate and improve AI agents from runs, traces, judges, and feedback. Compare candidates, cluster failures, measure lift, and gate releases.",
|
|
5
5
|
"homepage": "https://github.com/tangle-network/agent-eval#readme",
|
|
6
6
|
"repository": {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"import": "./dist/authenticity/index.js",
|
|
135
135
|
"default": "./dist/authenticity/index.js"
|
|
136
136
|
},
|
|
137
|
-
"./
|
|
137
|
+
"./belief-state": {
|
|
138
138
|
"types": "./dist/belief-state/index.d.ts",
|
|
139
139
|
"import": "./dist/belief-state/index.js",
|
|
140
140
|
"default": "./dist/belief-state/index.js"
|
|
@@ -169,6 +169,11 @@
|
|
|
169
169
|
"import": "./dist/hosted/index.js",
|
|
170
170
|
"default": "./dist/hosted/index.js"
|
|
171
171
|
},
|
|
172
|
+
"./testing": {
|
|
173
|
+
"types": "./dist/testing.d.ts",
|
|
174
|
+
"import": "./dist/testing.js",
|
|
175
|
+
"default": "./dist/testing.js"
|
|
176
|
+
},
|
|
172
177
|
"./openapi.json": {
|
|
173
178
|
"default": "./dist/openapi.json"
|
|
174
179
|
}
|
|
@@ -185,7 +190,7 @@
|
|
|
185
190
|
"access": "public"
|
|
186
191
|
},
|
|
187
192
|
"scripts": {
|
|
188
|
-
"build": "tsup && pnpm openapi",
|
|
193
|
+
"build": "tsup && tsc --emitDeclarationOnly && node scripts/emit-declaration-aliases.mjs && pnpm openapi",
|
|
189
194
|
"dev": "tsup --watch",
|
|
190
195
|
"prepare": "husky",
|
|
191
196
|
"prepublishOnly": "pnpm build",
|
|
@@ -201,21 +206,13 @@
|
|
|
201
206
|
"@asteasolutions/zod-to-openapi": "^8.5.0",
|
|
202
207
|
"@ax-llm/ax": "^19.0.25",
|
|
203
208
|
"@hono/node-server": "^2.0.0",
|
|
209
|
+
"@tangle-network/agent-interface": "^0.10.0",
|
|
204
210
|
"@tangle-network/tcloud": "^0.4.6",
|
|
205
211
|
"hono": "^4.12.16",
|
|
206
212
|
"zod": "^4.3.6"
|
|
207
213
|
},
|
|
208
|
-
"peerDependencies": {
|
|
209
|
-
"@tangle-network/sandbox": ">=0.2.1 <0.5.0"
|
|
210
|
-
},
|
|
211
|
-
"peerDependenciesMeta": {
|
|
212
|
-
"@tangle-network/sandbox": {
|
|
213
|
-
"optional": true
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
214
|
"devDependencies": {
|
|
217
215
|
"@biomejs/biome": "^2.4.15",
|
|
218
|
-
"@tangle-network/sandbox": "0.4.0",
|
|
219
216
|
"@types/node": "^25.6.0",
|
|
220
217
|
"husky": "^9.1.7",
|
|
221
218
|
"lint-staged": "^17.0.5",
|
|
@@ -226,9 +223,6 @@
|
|
|
226
223
|
},
|
|
227
224
|
"pnpm": {
|
|
228
225
|
"minimumReleaseAge": 4320,
|
|
229
|
-
"minimumReleaseAgeExclude": [
|
|
230
|
-
"@tangle-network/sandbox"
|
|
231
|
-
],
|
|
232
226
|
"overrides": {
|
|
233
227
|
"postcss@<8.5.10": "^8.5.10",
|
|
234
228
|
"ws@>=8.0.0 <8.20.1": "^8.20.1"
|