@tangle-network/agent-eval 0.95.0 → 0.95.1
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 +17 -0
- package/dist/adapters/http.d.ts +17 -10
- package/dist/adapters/langchain.d.ts +14 -7
- package/dist/adapters/otel.d.ts +25 -13
- package/dist/{rl/adversarial.d.ts → adversarial-DIVcDoI_.d.ts} +7 -6
- package/dist/analyst/index.d.ts +236 -28
- package/dist/{trace-analyst/analyst.d.ts → analyst-C8HHvfJp.d.ts} +14 -12
- package/dist/{contract/analyze-runs.d.ts → analyze-runs-DtT6F_6T.d.ts} +10 -9
- package/dist/authenticity/index.d.ts +16 -15
- package/dist/{baseline.d.ts → baseline-Bbid3WoO.d.ts} +44 -8
- package/dist/belief-state/index.d.ts +605 -14
- package/dist/benchmarks/index.d.ts +5 -23
- package/dist/builder-eval/index.d.ts +250 -5
- package/dist/calibration-BPmzuVPk.d.ts +101 -0
- package/dist/campaign/index.d.ts +1452 -38
- package/dist/cli.d.ts +0 -2
- package/dist/{contract/intake/code-agent-session.d.ts → code-agent-session-CPHRCb4-.d.ts} +17 -15
- package/dist/contract/index.d.ts +688 -106
- package/dist/control-Doncu-B_.d.ts +259 -0
- package/dist/{control-runtime.d.ts → control-runtime-Acf9CGhw.d.ts} +26 -23
- package/dist/control.d.ts +10 -11
- package/dist/corpus-D4YW9UoJ.d.ts +560 -0
- package/dist/{cost-ledger.d.ts → cost-ledger-DuSqlw5B.d.ts} +11 -10
- package/dist/{counterfactual.d.ts → counterfactual-DlOz8PBx.d.ts} +13 -12
- package/dist/{dataset.d.ts → dataset-BbGkaN2I.d.ts} +14 -11
- package/dist/{analyst/registry.d.ts → default-registry-GyE8X5SP.d.ts} +37 -8
- package/dist/diagnose.d.ts +252 -1
- package/dist/{trace/emitter.d.ts → emitter-C2rqGH_l.d.ts} +12 -9
- package/dist/{errors.d.ts → errors-CzMUYo7b.d.ts} +11 -10
- package/dist/failure-cluster-DH9Flgcf.d.ts +76 -0
- package/dist/{feedback-trajectory.d.ts → feedback-trajectory-BxY0cKfs.d.ts} +38 -36
- package/dist/fuzz.d.ts +547 -1
- package/dist/gepa-C1NCIZ9o.d.ts +414 -0
- package/dist/governance/index.d.ts +135 -5
- package/dist/harness-optimizer-mOl9XX_O.d.ts +106 -0
- package/dist/hosted/index.d.ts +239 -10
- package/dist/index-_Y4oNOOb.d.ts +159 -0
- package/dist/index.d.ts +5660 -277
- package/dist/{contract/insight-report.d.ts → insight-report-BnRjTibG.d.ts} +19 -16
- package/dist/{trace/integrity.d.ts → integrity-D2t12mMw.d.ts} +14 -11
- package/dist/{judge-calibration.d.ts → judge-calibration-0p2QcWNE.d.ts} +17 -16
- package/dist/{analyst/kind-factory.d.ts → kind-factory-X3eDYbKn.d.ts} +61 -10
- package/dist/knowledge/index.d.ts +103 -3
- package/dist/{llm-client.d.ts → llm-client-Bj7g0rqu.d.ts} +23 -21
- package/dist/matrix/index.d.ts +30 -12
- package/dist/meta-eval/index.d.ts +182 -6
- package/dist/{multi-layer-verifier.d.ts → multi-layer-verifier-DUZXrPDA.d.ts} +15 -12
- package/dist/multishot/index.d.ts +290 -7
- package/dist/{rl/off-policy.d.ts → off-policy-DiwuKKg7.d.ts} +9 -8
- package/dist/openapi.json +1 -1
- package/dist/{meta-eval/outcome-store.d.ts → outcome-store-rnXLEqSn.d.ts} +8 -7
- package/dist/{pareto.d.ts → pareto-E-pembql.d.ts} +10 -9
- package/dist/perf/index.d.ts +119 -13
- package/dist/pipelines/index.d.ts +173 -8
- package/dist/pre-registration-nfUdc9EQ.d.ts +483 -0
- package/dist/prm/index.d.ts +104 -5
- package/dist/provenance-CncDq9qE.d.ts +426 -0
- package/dist/query-B7GGjRox.d.ts +32 -0
- package/dist/{trace/raw-provider-sink.d.ts → raw-provider-sink-C46HDghv.d.ts} +14 -13
- package/dist/{red-team.d.ts → red-team-BWdoyleI.d.ts} +16 -14
- package/dist/{trace/redact.d.ts → redact-B40YG2M_.d.ts} +8 -7
- package/dist/release-report-pidWUMZ2.d.ts +233 -0
- package/dist/reporting.d.ts +16 -15
- package/dist/{eval-campaign.d.ts → researcher-Jr8ME1dZ.d.ts} +156 -34
- package/dist/rl.d.ts +1193 -1
- package/dist/{prm/rubric.d.ts → rubric-Cc6UHvUb.d.ts} +13 -10
- package/dist/{meta-eval/rubric-predictive-validity.d.ts → rubric-predictive-validity-C2hDKM8Z.d.ts} +11 -8
- package/dist/run-critic-CmMf05uV.d.ts +56 -0
- package/dist/{run-record.d.ts → run-record-CP2ObebC.d.ts} +117 -15
- package/dist/runtime-trajectory-BOUUjI0y.d.ts +49 -0
- package/dist/{trace/schema.d.ts → schema-m0gsnbt3.d.ts} +30 -29
- package/dist/semantic-concept-judge-DSBB2Cfp.d.ts +624 -0
- package/dist/{sequential.d.ts → sequential-5iSVfzl2.d.ts} +10 -9
- package/dist/{series-convergence.d.ts → series-convergence-D5OWMBg6.d.ts} +5 -4
- package/dist/sink-fetch-B1Yg4Til.d.ts +101 -0
- package/dist/{statistics.d.ts → statistics-CCJpTGOS.d.ts} +48 -46
- package/dist/{trace/store.d.ts → store-BcFXE6LG.d.ts} +12 -21
- package/dist/{trace-analyst/types.d.ts → store-C1YxJDEK.d.ts} +74 -18
- package/dist/storyboard/index.d.ts +81 -16
- package/dist/{summary-report.d.ts → summary-report-CInXwsza.d.ts} +160 -23
- package/dist/telemetry/{sink-file.d.ts → file.d.ts} +7 -5
- package/dist/telemetry/index.d.ts +35 -17
- package/dist/{sandbox-harness.d.ts → test-graded-scenario-DeODGLra.d.ts} +60 -15
- package/dist/{locked-jsonl-appender.d.ts → testing-C21CHsq2.d.ts} +4 -3
- package/dist/testing.d.ts +1 -5
- package/dist/traces.d.ts +976 -4
- package/dist/{trajectory.d.ts → trajectory-2TkpSEVh.d.ts} +9 -8
- package/dist/{analyst/types.d.ts → types-B5x54y6n.d.ts} +112 -19
- package/dist/{matrix/types.d.ts → types-BUxNaJ8c.d.ts} +11 -9
- package/dist/{types.d.ts → types-C7DGg5ex.d.ts} +33 -31
- package/dist/{campaign/types.d.ts → types-DQRY8ZT-.d.ts} +47 -44
- package/dist/{verdict.d.ts → verdict-C9MlYujm.d.ts} +3 -2
- package/dist/wire/index.d.ts +570 -13
- package/dist/workflow/index.d.ts +496 -22
- package/package.json +2 -2
- package/dist/action-policy.d.ts +0 -24
- package/dist/action-policy.d.ts.map +0 -1
- package/dist/action-policy.test.d.ts +0 -2
- package/dist/action-policy.test.d.ts.map +0 -1
- package/dist/active-learning.d.ts +0 -41
- package/dist/active-learning.d.ts.map +0 -1
- package/dist/adapters/http.d.ts.map +0 -1
- package/dist/adapters/langchain.d.ts.map +0 -1
- package/dist/adapters/otel.d.ts.map +0 -1
- package/dist/agent-profile-cell.d.ts +0 -101
- package/dist/agent-profile-cell.d.ts.map +0 -1
- package/dist/agent-profile.d.ts +0 -27
- package/dist/agent-profile.d.ts.map +0 -1
- package/dist/agent-profile.test.d.ts +0 -2
- package/dist/agent-profile.test.d.ts.map +0 -1
- package/dist/analyst/adapters.d.ts +0 -62
- package/dist/analyst/adapters.d.ts.map +0 -1
- package/dist/analyst/analyst.test.d.ts +0 -2
- package/dist/analyst/analyst.test.d.ts.map +0 -1
- package/dist/analyst/ax-service.d.ts +0 -27
- package/dist/analyst/ax-service.d.ts.map +0 -1
- package/dist/analyst/behavioral-analyst.d.ts +0 -28
- package/dist/analyst/behavioral-analyst.d.ts.map +0 -1
- package/dist/analyst/chat-client.d.ts +0 -91
- package/dist/analyst/chat-client.d.ts.map +0 -1
- package/dist/analyst/default-registry.d.ts +0 -27
- package/dist/analyst/default-registry.d.ts.map +0 -1
- package/dist/analyst/default-registry.test.d.ts +0 -2
- package/dist/analyst/default-registry.test.d.ts.map +0 -1
- package/dist/analyst/finding-signature.d.ts +0 -48
- package/dist/analyst/finding-signature.d.ts.map +0 -1
- package/dist/analyst/finding-subject.d.ts +0 -146
- package/dist/analyst/finding-subject.d.ts.map +0 -1
- package/dist/analyst/finding-subject.test.d.ts +0 -2
- package/dist/analyst/finding-subject.test.d.ts.map +0 -1
- package/dist/analyst/findings-store.d.ts +0 -75
- package/dist/analyst/findings-store.d.ts.map +0 -1
- package/dist/analyst/index.d.ts.map +0 -1
- package/dist/analyst/kind-factory.d.ts.map +0 -1
- package/dist/analyst/kinds/failure-mode.d.ts +0 -19
- package/dist/analyst/kinds/failure-mode.d.ts.map +0 -1
- package/dist/analyst/kinds/improvement.d.ts +0 -23
- package/dist/analyst/kinds/improvement.d.ts.map +0 -1
- package/dist/analyst/kinds/index.d.ts +0 -22
- package/dist/analyst/kinds/index.d.ts.map +0 -1
- package/dist/analyst/kinds/kinds.test.d.ts +0 -2
- package/dist/analyst/kinds/kinds.test.d.ts.map +0 -1
- package/dist/analyst/kinds/knowledge-gap.d.ts +0 -28
- package/dist/analyst/kinds/knowledge-gap.d.ts.map +0 -1
- package/dist/analyst/kinds/knowledge-poisoning.d.ts +0 -22
- package/dist/analyst/kinds/knowledge-poisoning.d.ts.map +0 -1
- package/dist/analyst/kinds/skill-usage.d.ts +0 -84
- package/dist/analyst/kinds/skill-usage.d.ts.map +0 -1
- package/dist/analyst/kinds/skill-usage.test.d.ts +0 -2
- package/dist/analyst/kinds/skill-usage.test.d.ts.map +0 -1
- package/dist/analyst/parse-tolerant.d.ts +0 -26
- package/dist/analyst/parse-tolerant.d.ts.map +0 -1
- package/dist/analyst/parse-tolerant.test.d.ts +0 -2
- package/dist/analyst/parse-tolerant.test.d.ts.map +0 -1
- package/dist/analyst/registry.budget.test.d.ts +0 -2
- package/dist/analyst/registry.budget.test.d.ts.map +0 -1
- package/dist/analyst/registry.d.ts.map +0 -1
- package/dist/analyst/steer-firewall.d.ts +0 -35
- package/dist/analyst/steer-firewall.d.ts.map +0 -1
- package/dist/analyst/steer-firewall.test.d.ts +0 -2
- package/dist/analyst/steer-firewall.test.d.ts.map +0 -1
- package/dist/analyst/structure-findings.d.ts +0 -37
- package/dist/analyst/structure-findings.d.ts.map +0 -1
- package/dist/analyst/structure-findings.test.d.ts +0 -2
- package/dist/analyst/structure-findings.test.d.ts.map +0 -1
- package/dist/analyst/tool-groups.d.ts +0 -34
- package/dist/analyst/tool-groups.d.ts.map +0 -1
- package/dist/analyst/types.d.ts.map +0 -1
- package/dist/anti-slop.d.ts +0 -59
- package/dist/anti-slop.d.ts.map +0 -1
- package/dist/artifact-validator.d.ts +0 -74
- package/dist/artifact-validator.d.ts.map +0 -1
- package/dist/attestation.d.ts +0 -63
- package/dist/attestation.d.ts.map +0 -1
- package/dist/attestation.test.d.ts +0 -2
- package/dist/attestation.test.d.ts.map +0 -1
- package/dist/authenticity/index.d.ts.map +0 -1
- package/dist/authenticity/index.test.d.ts +0 -2
- package/dist/authenticity/index.test.d.ts.map +0 -1
- package/dist/auto-pr.d.ts +0 -120
- package/dist/auto-pr.d.ts.map +0 -1
- package/dist/baseline.d.ts.map +0 -1
- package/dist/behavior-dsl.d.ts +0 -73
- package/dist/behavior-dsl.d.ts.map +0 -1
- package/dist/belief-state/calibration.d.ts +0 -10
- package/dist/belief-state/calibration.d.ts.map +0 -1
- package/dist/belief-state/calibration.test.d.ts +0 -2
- package/dist/belief-state/calibration.test.d.ts.map +0 -1
- package/dist/belief-state/code-agent-corpus.d.ts +0 -66
- package/dist/belief-state/code-agent-corpus.d.ts.map +0 -1
- package/dist/belief-state/code-agent-corpus.test.d.ts +0 -2
- package/dist/belief-state/code-agent-corpus.test.d.ts.map +0 -1
- package/dist/belief-state/code-agent-evidence.d.ts +0 -22
- package/dist/belief-state/code-agent-evidence.d.ts.map +0 -1
- package/dist/belief-state/code-agent-evidence.test.d.ts +0 -2
- package/dist/belief-state/code-agent-evidence.test.d.ts.map +0 -1
- package/dist/belief-state/extract.d.ts +0 -7
- package/dist/belief-state/extract.d.ts.map +0 -1
- package/dist/belief-state/extract.test.d.ts +0 -2
- package/dist/belief-state/extract.test.d.ts.map +0 -1
- package/dist/belief-state/index.d.ts.map +0 -1
- package/dist/belief-state/ope.d.ts +0 -17
- package/dist/belief-state/ope.d.ts.map +0 -1
- package/dist/belief-state/ope.test.d.ts +0 -2
- package/dist/belief-state/ope.test.d.ts.map +0 -1
- package/dist/belief-state/phase0-measurement.d.ts +0 -55
- package/dist/belief-state/phase0-measurement.d.ts.map +0 -1
- package/dist/belief-state/report.d.ts +0 -17
- package/dist/belief-state/report.d.ts.map +0 -1
- package/dist/belief-state/report.test.d.ts +0 -2
- package/dist/belief-state/report.test.d.ts.map +0 -1
- package/dist/belief-state/research-evidence.d.ts +0 -23
- package/dist/belief-state/research-evidence.d.ts.map +0 -1
- package/dist/belief-state/research-evidence.test.d.ts +0 -2
- package/dist/belief-state/research-evidence.test.d.ts.map +0 -1
- package/dist/belief-state/runtime-benchmark-corpus.d.ts +0 -32
- package/dist/belief-state/runtime-benchmark-corpus.d.ts.map +0 -1
- package/dist/belief-state/runtime-hooks.d.ts +0 -87
- package/dist/belief-state/runtime-hooks.d.ts.map +0 -1
- package/dist/belief-state/runtime-hooks.test.d.ts +0 -2
- package/dist/belief-state/runtime-hooks.test.d.ts.map +0 -1
- package/dist/belief-state/selective.d.ts +0 -15
- package/dist/belief-state/selective.d.ts.map +0 -1
- package/dist/belief-state/selective.test.d.ts +0 -2
- package/dist/belief-state/selective.test.d.ts.map +0 -1
- package/dist/belief-state/shadow-probe.d.ts +0 -80
- package/dist/belief-state/shadow-probe.d.ts.map +0 -1
- package/dist/belief-state/shadow-probe.test.d.ts +0 -2
- package/dist/belief-state/shadow-probe.test.d.ts.map +0 -1
- package/dist/belief-state/types.d.ts +0 -195
- package/dist/belief-state/types.d.ts.map +0 -1
- package/dist/belief-state/types.test.d.ts +0 -2
- package/dist/belief-state/types.test.d.ts.map +0 -1
- package/dist/benchmark.d.ts +0 -14
- package/dist/benchmark.d.ts.map +0 -1
- package/dist/benchmarks/index.d.ts.map +0 -1
- package/dist/benchmarks/routing/dataset.d.ts +0 -34
- package/dist/benchmarks/routing/dataset.d.ts.map +0 -1
- package/dist/benchmarks/routing/index.d.ts +0 -34
- package/dist/benchmarks/routing/index.d.ts.map +0 -1
- package/dist/benchmarks/types.d.ts +0 -49
- package/dist/benchmarks/types.d.ts.map +0 -1
- package/dist/bisector.d.ts +0 -81
- package/dist/bisector.d.ts.map +0 -1
- package/dist/budget-guard.d.ts +0 -31
- package/dist/budget-guard.d.ts.map +0 -1
- package/dist/builder-eval/builder-session.d.ts +0 -111
- package/dist/builder-eval/builder-session.d.ts.map +0 -1
- package/dist/builder-eval/correlation.d.ts +0 -32
- package/dist/builder-eval/correlation.d.ts.map +0 -1
- package/dist/builder-eval/index.d.ts.map +0 -1
- package/dist/builder-eval/project-registry.d.ts +0 -51
- package/dist/builder-eval/project-registry.d.ts.map +0 -1
- package/dist/builder-eval/three-layer-eval.d.ts +0 -55
- package/dist/builder-eval/three-layer-eval.d.ts.map +0 -1
- package/dist/campaign/analyst-surface.d.ts +0 -108
- package/dist/campaign/analyst-surface.d.ts.map +0 -1
- package/dist/campaign/analyst-surface.test.d.ts +0 -2
- package/dist/campaign/analyst-surface.test.d.ts.map +0 -1
- package/dist/campaign/auto-pr.d.ts +0 -46
- package/dist/campaign/auto-pr.d.ts.map +0 -1
- package/dist/campaign/distillation/agreement-judge.d.ts +0 -69
- package/dist/campaign/distillation/agreement-judge.d.ts.map +0 -1
- package/dist/campaign/distillation/cli.d.ts +0 -35
- package/dist/campaign/distillation/cli.d.ts.map +0 -1
- package/dist/campaign/distillation/distillation.test.d.ts +0 -2
- package/dist/campaign/distillation/distillation.test.d.ts.map +0 -1
- package/dist/campaign/distillation/gold-scenarios.d.ts +0 -54
- package/dist/campaign/distillation/gold-scenarios.d.ts.map +0 -1
- package/dist/campaign/distillation/run-distillation.d.ts +0 -119
- package/dist/campaign/distillation/run-distillation.d.ts.map +0 -1
- package/dist/campaign/gates/compose.d.ts +0 -12
- package/dist/campaign/gates/compose.d.ts.map +0 -1
- package/dist/campaign/gates/default-production-gate.d.ts +0 -58
- package/dist/campaign/gates/default-production-gate.d.ts.map +0 -1
- package/dist/campaign/gates/heldout-gate.d.ts +0 -12
- package/dist/campaign/gates/heldout-gate.d.ts.map +0 -1
- package/dist/campaign/gates/promotion-policy.d.ts +0 -125
- package/dist/campaign/gates/promotion-policy.d.ts.map +0 -1
- package/dist/campaign/gates/promotion-policy.test.d.ts +0 -2
- package/dist/campaign/gates/promotion-policy.test.d.ts.map +0 -1
- package/dist/campaign/gates/sequential.d.ts +0 -146
- package/dist/campaign/gates/sequential.d.ts.map +0 -1
- package/dist/campaign/gates/sequential.test.d.ts +0 -2
- package/dist/campaign/gates/sequential.test.d.ts.map +0 -1
- package/dist/campaign/gates/statistical-heldout.d.ts +0 -99
- package/dist/campaign/gates/statistical-heldout.d.ts.map +0 -1
- package/dist/campaign/gates/statistical-heldout.test.d.ts +0 -2
- package/dist/campaign/gates/statistical-heldout.test.d.ts.map +0 -1
- package/dist/campaign/index.d.ts.map +0 -1
- package/dist/campaign/labeled-store/fs-adapter.d.ts +0 -59
- package/dist/campaign/labeled-store/fs-adapter.d.ts.map +0 -1
- package/dist/campaign/presets/compare-proposers.d.ts +0 -146
- package/dist/campaign/presets/compare-proposers.d.ts.map +0 -1
- package/dist/campaign/presets/playback.d.ts +0 -120
- package/dist/campaign/presets/playback.d.ts.map +0 -1
- package/dist/campaign/presets/playback.test.d.ts +0 -2
- package/dist/campaign/presets/playback.test.d.ts.map +0 -1
- package/dist/campaign/presets/run-eval.d.ts +0 -14
- package/dist/campaign/presets/run-eval.d.ts.map +0 -1
- package/dist/campaign/presets/run-improvement-loop.d.ts +0 -63
- package/dist/campaign/presets/run-improvement-loop.d.ts.map +0 -1
- package/dist/campaign/presets/run-improvement-loop.test.d.ts +0 -2
- package/dist/campaign/presets/run-improvement-loop.test.d.ts.map +0 -1
- package/dist/campaign/presets/run-optimization.d.ts +0 -92
- package/dist/campaign/presets/run-optimization.d.ts.map +0 -1
- package/dist/campaign/presets/run-profile-matrix.d.ts +0 -151
- package/dist/campaign/presets/run-profile-matrix.d.ts.map +0 -1
- package/dist/campaign/presets/run-skill-opt.d.ts +0 -96
- package/dist/campaign/presets/run-skill-opt.d.ts.map +0 -1
- package/dist/campaign/proposers/_findings-text.d.ts +0 -22
- package/dist/campaign/proposers/_findings-text.d.ts.map +0 -1
- package/dist/campaign/proposers/ace.d.ts +0 -33
- package/dist/campaign/proposers/ace.d.ts.map +0 -1
- package/dist/campaign/proposers/ace.test.d.ts +0 -2
- package/dist/campaign/proposers/ace.test.d.ts.map +0 -1
- package/dist/campaign/proposers/analysis-edit.d.ts +0 -32
- package/dist/campaign/proposers/analysis-edit.d.ts.map +0 -1
- package/dist/campaign/proposers/evolutionary.d.ts +0 -20
- package/dist/campaign/proposers/evolutionary.d.ts.map +0 -1
- package/dist/campaign/proposers/fapo.d.ts +0 -120
- package/dist/campaign/proposers/fapo.d.ts.map +0 -1
- package/dist/campaign/proposers/gepa.d.ts +0 -86
- package/dist/campaign/proposers/gepa.d.ts.map +0 -1
- package/dist/campaign/proposers/halo.d.ts +0 -44
- package/dist/campaign/proposers/halo.d.ts.map +0 -1
- package/dist/campaign/proposers/halo.test.d.ts +0 -2
- package/dist/campaign/proposers/halo.test.d.ts.map +0 -1
- package/dist/campaign/proposers/memory.d.ts +0 -47
- package/dist/campaign/proposers/memory.d.ts.map +0 -1
- package/dist/campaign/proposers/memory.test.d.ts +0 -2
- package/dist/campaign/proposers/memory.test.d.ts.map +0 -1
- package/dist/campaign/proposers/skill-opt.d.ts +0 -88
- package/dist/campaign/proposers/skill-opt.d.ts.map +0 -1
- package/dist/campaign/proposers/trace-analyst.d.ts +0 -48
- package/dist/campaign/proposers/trace-analyst.d.ts.map +0 -1
- package/dist/campaign/proposers/trace-analyst.test.d.ts +0 -2
- package/dist/campaign/proposers/trace-analyst.test.d.ts.map +0 -1
- package/dist/campaign/provenance.d.ts +0 -185
- package/dist/campaign/provenance.d.ts.map +0 -1
- package/dist/campaign/run-campaign.d.ts +0 -90
- package/dist/campaign/run-campaign.d.ts.map +0 -1
- package/dist/campaign/score-utils.d.ts +0 -26
- package/dist/campaign/score-utils.d.ts.map +0 -1
- package/dist/campaign/skill-patch.d.ts +0 -62
- package/dist/campaign/skill-patch.d.ts.map +0 -1
- package/dist/campaign/storage.d.ts +0 -38
- package/dist/campaign/storage.d.ts.map +0 -1
- package/dist/campaign/types.d.ts.map +0 -1
- package/dist/campaign/worktree/index.d.ts +0 -53
- package/dist/campaign/worktree/index.d.ts.map +0 -1
- package/dist/canary.d.ts +0 -101
- package/dist/canary.d.ts.map +0 -1
- package/dist/causal-attribution.d.ts +0 -45
- package/dist/causal-attribution.d.ts.map +0 -1
- package/dist/ci-gate.d.ts +0 -44
- package/dist/ci-gate.d.ts.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/client.d.ts +0 -77
- package/dist/client.d.ts.map +0 -1
- package/dist/client.test.d.ts +0 -2
- package/dist/client.test.d.ts.map +0 -1
- package/dist/command-runner.d.ts +0 -74
- package/dist/command-runner.d.ts.map +0 -1
- package/dist/command-runner.test.d.ts +0 -2
- package/dist/command-runner.test.d.ts.map +0 -1
- package/dist/completion-verifier.d.ts +0 -147
- package/dist/completion-verifier.d.ts.map +0 -1
- package/dist/completion-verifier.test.d.ts +0 -9
- package/dist/completion-verifier.test.d.ts.map +0 -1
- package/dist/concurrency.d.ts +0 -23
- package/dist/concurrency.d.ts.map +0 -1
- package/dist/contamination-guard.d.ts +0 -81
- package/dist/contamination-guard.d.ts.map +0 -1
- package/dist/contract/analyze-runs.d.ts.map +0 -1
- package/dist/contract/define-agent-eval.d.ts +0 -52
- package/dist/contract/define-agent-eval.d.ts.map +0 -1
- package/dist/contract/diff.d.ts +0 -114
- package/dist/contract/diff.d.ts.map +0 -1
- package/dist/contract/index.d.ts.map +0 -1
- package/dist/contract/insight-report.d.ts.map +0 -1
- package/dist/contract/insight-types-fwd.d.ts +0 -7
- package/dist/contract/insight-types-fwd.d.ts.map +0 -1
- package/dist/contract/intake/agent-trace.d.ts +0 -97
- package/dist/contract/intake/agent-trace.d.ts.map +0 -1
- package/dist/contract/intake/code-agent-session.d.ts.map +0 -1
- package/dist/contract/intake/feedback-table.d.ts +0 -87
- package/dist/contract/intake/feedback-table.d.ts.map +0 -1
- package/dist/contract/intake/index.d.ts +0 -22
- package/dist/contract/intake/index.d.ts.map +0 -1
- package/dist/contract/intake/otel-spans.d.ts +0 -33
- package/dist/contract/intake/otel-spans.d.ts.map +0 -1
- package/dist/contract/self-improve.d.ts +0 -284
- package/dist/contract/self-improve.d.ts.map +0 -1
- package/dist/control-runtime.d.ts.map +0 -1
- package/dist/control-runtime.test.d.ts +0 -2
- package/dist/control-runtime.test.d.ts.map +0 -1
- package/dist/control.d.ts.map +0 -1
- package/dist/convergence.d.ts +0 -29
- package/dist/convergence.d.ts.map +0 -1
- package/dist/cost-ledger.d.ts.map +0 -1
- package/dist/cost-ledger.test.d.ts +0 -2
- package/dist/cost-ledger.test.d.ts.map +0 -1
- package/dist/cost-report.d.ts +0 -43
- package/dist/cost-report.d.ts.map +0 -1
- package/dist/cost-report.test.d.ts +0 -2
- package/dist/cost-report.test.d.ts.map +0 -1
- package/dist/cost-tracker.d.ts +0 -76
- package/dist/cost-tracker.d.ts.map +0 -1
- package/dist/counterfactual.d.ts.map +0 -1
- package/dist/cross-trace-diff.d.ts +0 -56
- package/dist/cross-trace-diff.d.ts.map +0 -1
- package/dist/dataset.d.ts.map +0 -1
- package/dist/deploy-gate-layer.d.ts +0 -125
- package/dist/deploy-gate-layer.d.ts.map +0 -1
- package/dist/deploy-gate-layer.test.d.ts +0 -2
- package/dist/deploy-gate-layer.test.d.ts.map +0 -1
- package/dist/description-length-gate.d.ts +0 -119
- package/dist/description-length-gate.d.ts.map +0 -1
- package/dist/detectors/edge.test.d.ts +0 -2
- package/dist/detectors/edge.test.d.ts.map +0 -1
- package/dist/detectors/index.d.ts +0 -81
- package/dist/detectors/index.d.ts.map +0 -1
- package/dist/detectors/index.test.d.ts +0 -2
- package/dist/detectors/index.test.d.ts.map +0 -1
- package/dist/diagnose/causal-sweep.d.ts +0 -100
- package/dist/diagnose/causal-sweep.d.ts.map +0 -1
- package/dist/diagnose/index.d.ts +0 -36
- package/dist/diagnose/index.d.ts.map +0 -1
- package/dist/diagnose/remediation.d.ts +0 -68
- package/dist/diagnose/remediation.d.ts.map +0 -1
- package/dist/diagnose/repair.d.ts +0 -77
- package/dist/diagnose/repair.d.ts.map +0 -1
- package/dist/discover-personas.d.ts +0 -35
- package/dist/discover-personas.d.ts.map +0 -1
- package/dist/driver.d.ts +0 -95
- package/dist/driver.d.ts.map +0 -1
- package/dist/driver.test.d.ts +0 -8
- package/dist/driver.test.d.ts.map +0 -1
- package/dist/dual-agent-bench.d.ts +0 -81
- package/dist/dual-agent-bench.d.ts.map +0 -1
- package/dist/error-count-extractor.d.ts +0 -47
- package/dist/error-count-extractor.d.ts.map +0 -1
- package/dist/error-count-extractor.test.d.ts +0 -2
- package/dist/error-count-extractor.test.d.ts.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/eval-campaign.d.ts.map +0 -1
- package/dist/eval-campaign.test.d.ts +0 -2
- package/dist/eval-campaign.test.d.ts.map +0 -1
- package/dist/eval-tools.d.ts +0 -55
- package/dist/eval-tools.d.ts.map +0 -1
- package/dist/eval-trace-store.d.ts +0 -107
- package/dist/eval-trace-store.d.ts.map +0 -1
- package/dist/eval-trace-store.test.d.ts +0 -2
- package/dist/eval-trace-store.test.d.ts.map +0 -1
- package/dist/executor.d.ts +0 -38
- package/dist/executor.d.ts.map +0 -1
- package/dist/executor.test.d.ts +0 -10
- package/dist/executor.test.d.ts.map +0 -1
- package/dist/experiment-tracker.d.ts +0 -178
- package/dist/experiment-tracker.d.ts.map +0 -1
- package/dist/experiment-tracker.test.d.ts +0 -2
- package/dist/experiment-tracker.test.d.ts.map +0 -1
- package/dist/failure-taxonomy.d.ts +0 -38
- package/dist/failure-taxonomy.d.ts.map +0 -1
- package/dist/feedback-trajectory.d.ts.map +0 -1
- package/dist/feedback-trajectory.test.d.ts +0 -2
- package/dist/feedback-trajectory.test.d.ts.map +0 -1
- package/dist/flow-layer.d.ts +0 -90
- package/dist/flow-layer.d.ts.map +0 -1
- package/dist/flow-layer.test.d.ts +0 -2
- package/dist/flow-layer.test.d.ts.map +0 -1
- package/dist/fuzz/capsule.d.ts +0 -46
- package/dist/fuzz/capsule.d.ts.map +0 -1
- package/dist/fuzz/cube.d.ts +0 -36
- package/dist/fuzz/cube.d.ts.map +0 -1
- package/dist/fuzz/explorer-cost.test.d.ts +0 -2
- package/dist/fuzz/explorer-cost.test.d.ts.map +0 -1
- package/dist/fuzz/explorer.d.ts +0 -64
- package/dist/fuzz/explorer.d.ts.map +0 -1
- package/dist/fuzz/fuzz-agent.d.ts +0 -16
- package/dist/fuzz/fuzz-agent.d.ts.map +0 -1
- package/dist/fuzz/fuzz-agent.test.d.ts +0 -2
- package/dist/fuzz/fuzz-agent.test.d.ts.map +0 -1
- package/dist/fuzz/gates.d.ts +0 -33
- package/dist/fuzz/gates.d.ts.map +0 -1
- package/dist/fuzz/index.d.ts +0 -26
- package/dist/fuzz/index.d.ts.map +0 -1
- package/dist/fuzz/policies.d.ts +0 -28
- package/dist/fuzz/policies.d.ts.map +0 -1
- package/dist/fuzz/tools.d.ts +0 -20
- package/dist/fuzz/tools.d.ts.map +0 -1
- package/dist/fuzz/types.d.ts +0 -307
- package/dist/fuzz/types.d.ts.map +0 -1
- package/dist/golden-matcher.d.ts +0 -71
- package/dist/golden-matcher.d.ts.map +0 -1
- package/dist/governance/eu-ai-act.d.ts +0 -37
- package/dist/governance/eu-ai-act.d.ts.map +0 -1
- package/dist/governance/index.d.ts.map +0 -1
- package/dist/governance/nist-ai-rmf.d.ts +0 -15
- package/dist/governance/nist-ai-rmf.d.ts.map +0 -1
- package/dist/governance/soc2.d.ts +0 -12
- package/dist/governance/soc2.d.ts.map +0 -1
- package/dist/governance/types.d.ts +0 -66
- package/dist/governance/types.d.ts.map +0 -1
- package/dist/harness-optimizer.d.ts +0 -82
- package/dist/harness-optimizer.d.ts.map +0 -1
- package/dist/held-out-gate.d.ts +0 -135
- package/dist/held-out-gate.d.ts.map +0 -1
- package/dist/hosted/client.d.ts +0 -73
- package/dist/hosted/client.d.ts.map +0 -1
- package/dist/hosted/from-env.test.d.ts +0 -8
- package/dist/hosted/from-env.test.d.ts.map +0 -1
- package/dist/hosted/index.d.ts.map +0 -1
- package/dist/hosted/types.d.ts +0 -159
- package/dist/hosted/types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/integrity/backend-integrity.d.ts +0 -71
- package/dist/integrity/backend-integrity.d.ts.map +0 -1
- package/dist/integrity/preflight.d.ts +0 -72
- package/dist/integrity/preflight.d.ts.map +0 -1
- package/dist/integrity/preflight.test.d.ts +0 -2
- package/dist/integrity/preflight.test.d.ts.map +0 -1
- package/dist/integrity/single-backend.d.ts +0 -67
- package/dist/integrity/single-backend.d.ts.map +0 -1
- package/dist/intent-match-judge.d.ts +0 -69
- package/dist/intent-match-judge.d.ts.map +0 -1
- package/dist/intent-match-judge.test.d.ts +0 -2
- package/dist/intent-match-judge.test.d.ts.map +0 -1
- package/dist/judge-calibration.d.ts.map +0 -1
- package/dist/judge-ensemble.d.ts +0 -66
- package/dist/judge-ensemble.d.ts.map +0 -1
- package/dist/judge-ensemble.test.d.ts +0 -8
- package/dist/judge-ensemble.test.d.ts.map +0 -1
- package/dist/judge-families.d.ts +0 -38
- package/dist/judge-families.d.ts.map +0 -1
- package/dist/judge-panel.d.ts +0 -65
- package/dist/judge-panel.d.ts.map +0 -1
- package/dist/judge-retry.d.ts +0 -70
- package/dist/judge-retry.d.ts.map +0 -1
- package/dist/judge-runner.d.ts +0 -36
- package/dist/judge-runner.d.ts.map +0 -1
- package/dist/judge-runner.test.d.ts +0 -2
- package/dist/judge-runner.test.d.ts.map +0 -1
- package/dist/judges.d.ts +0 -74
- package/dist/judges.d.ts.map +0 -1
- package/dist/keyword-coverage-judge.d.ts +0 -89
- package/dist/keyword-coverage-judge.d.ts.map +0 -1
- package/dist/keyword-coverage-judge.test.d.ts +0 -2
- package/dist/keyword-coverage-judge.test.d.ts.map +0 -1
- package/dist/knowledge/index.d.ts.map +0 -1
- package/dist/knowledge/readiness.d.ts +0 -26
- package/dist/knowledge/readiness.d.ts.map +0 -1
- package/dist/knowledge/types.d.ts +0 -75
- package/dist/knowledge/types.d.ts.map +0 -1
- package/dist/live-proof.d.ts +0 -62
- package/dist/live-proof.d.ts.map +0 -1
- package/dist/llm-client.d.ts.map +0 -1
- package/dist/llm-client.test.d.ts +0 -2
- package/dist/llm-client.test.d.ts.map +0 -1
- package/dist/locked-jsonl-appender.d.ts.map +0 -1
- package/dist/matrix/aggregation.d.ts +0 -16
- package/dist/matrix/aggregation.d.ts.map +0 -1
- package/dist/matrix/index.d.ts.map +0 -1
- package/dist/matrix/runner.d.ts +0 -15
- package/dist/matrix/runner.d.ts.map +0 -1
- package/dist/matrix/types.d.ts.map +0 -1
- package/dist/meta-eval/calibration.d.ts +0 -47
- package/dist/meta-eval/calibration.d.ts.map +0 -1
- package/dist/meta-eval/correlation-study.d.ts +0 -53
- package/dist/meta-eval/correlation-study.d.ts.map +0 -1
- package/dist/meta-eval/index.d.ts.map +0 -1
- package/dist/meta-eval/outcome-store.d.ts.map +0 -1
- package/dist/meta-eval/rubric-predictive-validity.d.ts.map +0 -1
- package/dist/meta-eval/sentinel.d.ts +0 -169
- package/dist/meta-eval/sentinel.d.ts.map +0 -1
- package/dist/metrics.d.ts +0 -63
- package/dist/metrics.d.ts.map +0 -1
- package/dist/model-seats.d.ts +0 -71
- package/dist/model-seats.d.ts.map +0 -1
- package/dist/model-seats.test.d.ts +0 -2
- package/dist/model-seats.test.d.ts.map +0 -1
- package/dist/muffled-gate-scanner.d.ts +0 -102
- package/dist/muffled-gate-scanner.d.ts.map +0 -1
- package/dist/multi-layer-verifier.d.ts.map +0 -1
- package/dist/multi-layer-verifier.test.d.ts +0 -2
- package/dist/multi-layer-verifier.test.d.ts.map +0 -1
- package/dist/multi-toolchain-layer.d.ts +0 -80
- package/dist/multi-toolchain-layer.d.ts.map +0 -1
- package/dist/multi-toolchain-layer.test.d.ts +0 -2
- package/dist/multi-toolchain-layer.test.d.ts.map +0 -1
- package/dist/multishot/default-tools.d.ts +0 -34
- package/dist/multishot/default-tools.d.ts.map +0 -1
- package/dist/multishot/index.d.ts.map +0 -1
- package/dist/multishot/judges.d.ts +0 -32
- package/dist/multishot/judges.d.ts.map +0 -1
- package/dist/multishot/matrix.d.ts +0 -107
- package/dist/multishot/matrix.d.ts.map +0 -1
- package/dist/multishot/multishot.d.ts +0 -23
- package/dist/multishot/multishot.d.ts.map +0 -1
- package/dist/multishot/router.d.ts +0 -37
- package/dist/multishot/router.d.ts.map +0 -1
- package/dist/multishot/types.d.ts +0 -60
- package/dist/multishot/types.d.ts.map +0 -1
- package/dist/observability.d.ts +0 -71
- package/dist/observability.d.ts.map +0 -1
- package/dist/oracle.d.ts +0 -55
- package/dist/oracle.d.ts.map +0 -1
- package/dist/orthogonality.d.ts +0 -35
- package/dist/orthogonality.d.ts.map +0 -1
- package/dist/otel-pipeline.d.ts +0 -31
- package/dist/otel-pipeline.d.ts.map +0 -1
- package/dist/paraphrase.d.ts +0 -107
- package/dist/paraphrase.d.ts.map +0 -1
- package/dist/pareto.d.ts.map +0 -1
- package/dist/partition-held-out.d.ts +0 -70
- package/dist/partition-held-out.d.ts.map +0 -1
- package/dist/partition-held-out.test.d.ts +0 -2
- package/dist/partition-held-out.test.d.ts.map +0 -1
- package/dist/perf/index.d.ts.map +0 -1
- package/dist/perf/integrity.d.ts +0 -30
- package/dist/perf/integrity.d.ts.map +0 -1
- package/dist/perf/journey.d.ts +0 -45
- package/dist/perf/journey.d.ts.map +0 -1
- package/dist/perf/ratchet.d.ts +0 -47
- package/dist/perf/ratchet.d.ts.map +0 -1
- package/dist/pipelines/budget-breach.d.ts +0 -31
- package/dist/pipelines/budget-breach.d.ts.map +0 -1
- package/dist/pipelines/budget-breach.test.d.ts +0 -2
- package/dist/pipelines/budget-breach.test.d.ts.map +0 -1
- package/dist/pipelines/failure-cluster.d.ts +0 -38
- package/dist/pipelines/failure-cluster.d.ts.map +0 -1
- package/dist/pipelines/failure-cluster.test.d.ts +0 -2
- package/dist/pipelines/failure-cluster.test.d.ts.map +0 -1
- package/dist/pipelines/first-divergence.d.ts +0 -26
- package/dist/pipelines/first-divergence.d.ts.map +0 -1
- package/dist/pipelines/first-divergence.test.d.ts +0 -2
- package/dist/pipelines/first-divergence.test.d.ts.map +0 -1
- package/dist/pipelines/index.d.ts.map +0 -1
- package/dist/pipelines/judge-agreement.d.ts +0 -26
- package/dist/pipelines/judge-agreement.d.ts.map +0 -1
- package/dist/pipelines/judge-agreement.test.d.ts +0 -2
- package/dist/pipelines/judge-agreement.test.d.ts.map +0 -1
- package/dist/pipelines/regression.d.ts +0 -23
- package/dist/pipelines/regression.d.ts.map +0 -1
- package/dist/pipelines/regression.test.d.ts +0 -2
- package/dist/pipelines/regression.test.d.ts.map +0 -1
- package/dist/pipelines/stuck-loop.d.ts +0 -32
- package/dist/pipelines/stuck-loop.d.ts.map +0 -1
- package/dist/pipelines/stuck-loop.test.d.ts +0 -2
- package/dist/pipelines/stuck-loop.test.d.ts.map +0 -1
- package/dist/pipelines/tool-waste.d.ts +0 -34
- package/dist/pipelines/tool-waste.d.ts.map +0 -1
- package/dist/pipelines/tool-waste.test.d.ts +0 -2
- package/dist/pipelines/tool-waste.test.d.ts.map +0 -1
- package/dist/playbook.d.ts +0 -16
- package/dist/playbook.d.ts.map +0 -1
- package/dist/pr-review-benchmark.d.ts +0 -88
- package/dist/pr-review-benchmark.d.ts.map +0 -1
- package/dist/pr-review-benchmark.test.d.ts +0 -2
- package/dist/pr-review-benchmark.test.d.ts.map +0 -1
- package/dist/pre-registration.d.ts +0 -125
- package/dist/pre-registration.d.ts.map +0 -1
- package/dist/prm/builtin-rubrics.d.ts +0 -33
- package/dist/prm/builtin-rubrics.d.ts.map +0 -1
- package/dist/prm/index.d.ts.map +0 -1
- package/dist/prm/inference.d.ts +0 -29
- package/dist/prm/inference.d.ts.map +0 -1
- package/dist/prm/inference.test.d.ts +0 -2
- package/dist/prm/inference.test.d.ts.map +0 -1
- package/dist/prm/rubric.d.ts.map +0 -1
- package/dist/prm/training-export.d.ts +0 -38
- package/dist/prm/training-export.d.ts.map +0 -1
- package/dist/produced-state.d.ts +0 -63
- package/dist/produced-state.d.ts.map +0 -1
- package/dist/produced-state.test.d.ts +0 -8
- package/dist/produced-state.test.d.ts.map +0 -1
- package/dist/profile/baselines.d.ts +0 -37
- package/dist/profile/baselines.d.ts.map +0 -1
- package/dist/profile/index.d.ts +0 -105
- package/dist/profile/index.d.ts.map +0 -1
- package/dist/promotion-gate.d.ts +0 -93
- package/dist/promotion-gate.d.ts.map +0 -1
- package/dist/prompt-registry.d.ts +0 -41
- package/dist/prompt-registry.d.ts.map +0 -1
- package/dist/propose-review-control.d.ts +0 -49
- package/dist/propose-review-control.d.ts.map +0 -1
- package/dist/propose-review-control.test.d.ts +0 -2
- package/dist/propose-review-control.test.d.ts.map +0 -1
- package/dist/propose-review.d.ts +0 -155
- package/dist/propose-review.d.ts.map +0 -1
- package/dist/red-team.d.ts.map +0 -1
- package/dist/reference-replay-steering.d.ts +0 -11
- package/dist/reference-replay-steering.d.ts.map +0 -1
- package/dist/reference-replay.d.ts +0 -176
- package/dist/reference-replay.d.ts.map +0 -1
- package/dist/reflective-mutation.d.ts +0 -79
- package/dist/reflective-mutation.d.ts.map +0 -1
- package/dist/registry.d.ts +0 -31
- package/dist/registry.d.ts.map +0 -1
- package/dist/release-confidence.d.ts +0 -128
- package/dist/release-confidence.d.ts.map +0 -1
- package/dist/release-report.d.ts +0 -11
- package/dist/release-report.d.ts.map +0 -1
- package/dist/replay.d.ts +0 -120
- package/dist/replay.d.ts.map +0 -1
- package/dist/reporter.d.ts +0 -14
- package/dist/reporter.d.ts.map +0 -1
- package/dist/reporting.d.ts.map +0 -1
- package/dist/researcher.d.ts +0 -140
- package/dist/researcher.d.ts.map +0 -1
- package/dist/reviewer.d.ts +0 -118
- package/dist/reviewer.d.ts.map +0 -1
- package/dist/reviewer.test.d.ts +0 -2
- package/dist/reviewer.test.d.ts.map +0 -1
- package/dist/reward-model-export.d.ts +0 -60
- package/dist/reward-model-export.d.ts.map +0 -1
- package/dist/rl/active-curriculum.d.ts +0 -110
- package/dist/rl/active-curriculum.d.ts.map +0 -1
- package/dist/rl/adaptation-eval.d.ts +0 -109
- package/dist/rl/adaptation-eval.d.ts.map +0 -1
- package/dist/rl/adversarial.d.ts.map +0 -1
- package/dist/rl/compute-curves.d.ts +0 -127
- package/dist/rl/compute-curves.d.ts.map +0 -1
- package/dist/rl/contamination.d.ts +0 -117
- package/dist/rl/contamination.d.ts.map +0 -1
- package/dist/rl/corpus.d.ts +0 -55
- package/dist/rl/corpus.d.ts.map +0 -1
- package/dist/rl/corpus.test.d.ts +0 -2
- package/dist/rl/corpus.test.d.ts.map +0 -1
- package/dist/rl/dataset.d.ts +0 -102
- package/dist/rl/dataset.d.ts.map +0 -1
- package/dist/rl/dataset.test.d.ts +0 -2
- package/dist/rl/dataset.test.d.ts.map +0 -1
- package/dist/rl/exporters.d.ts +0 -141
- package/dist/rl/exporters.d.ts.map +0 -1
- package/dist/rl/index.d.ts +0 -49
- package/dist/rl/index.d.ts.map +0 -1
- package/dist/rl/off-policy.d.ts.map +0 -1
- package/dist/rl/predictive-validity-researcher.d.ts +0 -69
- package/dist/rl/predictive-validity-researcher.d.ts.map +0 -1
- package/dist/rl/preferences.d.ts +0 -141
- package/dist/rl/preferences.d.ts.map +0 -1
- package/dist/rl/process-reward.d.ts +0 -122
- package/dist/rl/process-reward.d.ts.map +0 -1
- package/dist/rl/reward-hacking.d.ts +0 -104
- package/dist/rl/reward-hacking.d.ts.map +0 -1
- package/dist/rl/rl-campaign.d.ts +0 -85
- package/dist/rl/rl-campaign.d.ts.map +0 -1
- package/dist/rl/run-record-adapters.d.ts +0 -56
- package/dist/rl/run-record-adapters.d.ts.map +0 -1
- package/dist/rl/sim-fidelity.d.ts +0 -166
- package/dist/rl/sim-fidelity.d.ts.map +0 -1
- package/dist/rl/sim-fidelity.test.d.ts +0 -2
- package/dist/rl/sim-fidelity.test.d.ts.map +0 -1
- package/dist/rl/tournament.d.ts +0 -115
- package/dist/rl/tournament.d.ts.map +0 -1
- package/dist/rl/verifiable-reward.d.ts +0 -124
- package/dist/rl/verifiable-reward.d.ts.map +0 -1
- package/dist/run-critic.d.ts +0 -23
- package/dist/run-critic.d.ts.map +0 -1
- package/dist/run-evidence.d.ts +0 -32
- package/dist/run-evidence.d.ts.map +0 -1
- package/dist/run-record.d.ts.map +0 -1
- package/dist/run-record.test.d.ts +0 -2
- package/dist/run-record.test.d.ts.map +0 -1
- package/dist/run-score.d.ts +0 -31
- package/dist/run-score.d.ts.map +0 -1
- package/dist/runtime-trajectory.d.ts +0 -47
- package/dist/runtime-trajectory.d.ts.map +0 -1
- package/dist/sandbox-harness.d.ts.map +0 -1
- package/dist/sandbox-harness.test.d.ts +0 -2
- package/dist/sandbox-harness.test.d.ts.map +0 -1
- package/dist/sandbox-pool.d.ts +0 -74
- package/dist/sandbox-pool.d.ts.map +0 -1
- package/dist/sandbox-pool.test.d.ts +0 -2
- package/dist/sandbox-pool.test.d.ts.map +0 -1
- package/dist/scorecard.d.ts +0 -133
- package/dist/scorecard.d.ts.map +0 -1
- package/dist/scorecard.test.d.ts +0 -2
- package/dist/scorecard.test.d.ts.map +0 -1
- package/dist/self-play.d.ts +0 -69
- package/dist/self-play.d.ts.map +0 -1
- package/dist/semantic-concept-judge.d.ts +0 -135
- package/dist/semantic-concept-judge.d.ts.map +0 -1
- package/dist/semantic-concept-judge.test.d.ts +0 -2
- package/dist/semantic-concept-judge.test.d.ts.map +0 -1
- package/dist/sequential.d.ts.map +0 -1
- package/dist/series-convergence.d.ts.map +0 -1
- package/dist/slo.d.ts +0 -48
- package/dist/slo.d.ts.map +0 -1
- package/dist/state-continuity.d.ts +0 -47
- package/dist/state-continuity.d.ts.map +0 -1
- package/dist/statistics.d.ts.map +0 -1
- package/dist/statistics.test.d.ts +0 -2
- package/dist/statistics.test.d.ts.map +0 -1
- package/dist/steering-optimizer.d.ts +0 -58
- package/dist/steering-optimizer.d.ts.map +0 -1
- package/dist/steering.d.ts +0 -24
- package/dist/steering.d.ts.map +0 -1
- package/dist/storyboard/code-edit.d.ts +0 -64
- package/dist/storyboard/code-edit.d.ts.map +0 -1
- package/dist/storyboard/code-edit.test.d.ts +0 -2
- package/dist/storyboard/code-edit.test.d.ts.map +0 -1
- package/dist/storyboard/index.d.ts.map +0 -1
- package/dist/storyboard/index.test.d.ts +0 -2
- package/dist/storyboard/index.test.d.ts.map +0 -1
- package/dist/summary-report.d.ts.map +0 -1
- package/dist/telemetry/client.d.ts +0 -35
- package/dist/telemetry/client.d.ts.map +0 -1
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/schema.d.ts +0 -61
- package/dist/telemetry/schema.d.ts.map +0 -1
- package/dist/telemetry/sink-fetch.d.ts +0 -39
- package/dist/telemetry/sink-fetch.d.ts.map +0 -1
- package/dist/telemetry/sink-file.d.ts.map +0 -1
- package/dist/test-graded-scenario.d.ts +0 -42
- package/dist/test-graded-scenario.d.ts.map +0 -1
- package/dist/testing.d.ts.map +0 -1
- package/dist/tool-use-metrics.d.ts +0 -35
- package/dist/tool-use-metrics.d.ts.map +0 -1
- package/dist/trace/capture-fetch.d.ts +0 -48
- package/dist/trace/capture-fetch.d.ts.map +0 -1
- package/dist/trace/capture-fetch.test.d.ts +0 -2
- package/dist/trace/capture-fetch.test.d.ts.map +0 -1
- package/dist/trace/emitter.d.ts.map +0 -1
- package/dist/trace/extract-usage.d.ts +0 -46
- package/dist/trace/extract-usage.d.ts.map +0 -1
- package/dist/trace/extract-usage.test.d.ts +0 -2
- package/dist/trace/extract-usage.test.d.ts.map +0 -1
- package/dist/trace/index.d.ts +0 -15
- package/dist/trace/index.d.ts.map +0 -1
- package/dist/trace/integrity.d.ts.map +0 -1
- package/dist/trace/otel-bridge.d.ts +0 -29
- package/dist/trace/otel-bridge.d.ts.map +0 -1
- package/dist/trace/otel-export.d.ts +0 -52
- package/dist/trace/otel-export.d.ts.map +0 -1
- package/dist/trace/otel.d.ts +0 -57
- package/dist/trace/otel.d.ts.map +0 -1
- package/dist/trace/otlp-attributes.d.ts +0 -17
- package/dist/trace/otlp-attributes.d.ts.map +0 -1
- package/dist/trace/query.d.ts +0 -29
- package/dist/trace/query.d.ts.map +0 -1
- package/dist/trace/query.test.d.ts +0 -2
- package/dist/trace/query.test.d.ts.map +0 -1
- package/dist/trace/raw-provider-sink.d.ts.map +0 -1
- package/dist/trace/redact.d.ts.map +0 -1
- package/dist/trace/schema.d.ts.map +0 -1
- package/dist/trace/store-to-otlp.d.ts +0 -72
- package/dist/trace/store-to-otlp.d.ts.map +0 -1
- package/dist/trace/store-to-otlp.test.d.ts +0 -2
- package/dist/trace/store-to-otlp.test.d.ts.map +0 -1
- package/dist/trace/store.d.ts.map +0 -1
- package/dist/trace/store.test.d.ts +0 -2
- package/dist/trace/store.test.d.ts.map +0 -1
- package/dist/trace-analyst/analyst.d.ts.map +0 -1
- package/dist/trace-analyst/analyst.test.d.ts +0 -2
- package/dist/trace-analyst/analyst.test.d.ts.map +0 -1
- package/dist/trace-analyst/behavioral-metrics.d.ts +0 -40
- package/dist/trace-analyst/behavioral-metrics.d.ts.map +0 -1
- package/dist/trace-analyst/behavioral-metrics.test.d.ts +0 -2
- package/dist/trace-analyst/behavioral-metrics.test.d.ts.map +0 -1
- package/dist/trace-analyst/hook.d.ts +0 -55
- package/dist/trace-analyst/hook.d.ts.map +0 -1
- package/dist/trace-analyst/index.d.ts +0 -18
- package/dist/trace-analyst/index.d.ts.map +0 -1
- package/dist/trace-analyst/insights.d.ts +0 -71
- package/dist/trace-analyst/insights.d.ts.map +0 -1
- package/dist/trace-analyst/insights.test.d.ts +0 -2
- package/dist/trace-analyst/insights.test.d.ts.map +0 -1
- package/dist/trace-analyst/otlp-flatten.d.ts +0 -42
- package/dist/trace-analyst/otlp-flatten.d.ts.map +0 -1
- package/dist/trace-analyst/otlp-span.d.ts +0 -85
- package/dist/trace-analyst/otlp-span.d.ts.map +0 -1
- package/dist/trace-analyst/otlp-span.test.d.ts +0 -2
- package/dist/trace-analyst/otlp-span.test.d.ts.map +0 -1
- package/dist/trace-analyst/otlp-to-run-records.d.ts +0 -115
- package/dist/trace-analyst/otlp-to-run-records.d.ts.map +0 -1
- package/dist/trace-analyst/otlp-to-run-records.test.d.ts +0 -2
- package/dist/trace-analyst/otlp-to-run-records.test.d.ts.map +0 -1
- package/dist/trace-analyst/otlp-to-run-records.timestamps.test.d.ts +0 -2
- package/dist/trace-analyst/otlp-to-run-records.timestamps.test.d.ts.map +0 -1
- package/dist/trace-analyst/prompts.d.ts +0 -6
- package/dist/trace-analyst/prompts.d.ts.map +0 -1
- package/dist/trace-analyst/store-otlp.d.ts +0 -126
- package/dist/trace-analyst/store-otlp.d.ts.map +0 -1
- package/dist/trace-analyst/store-otlp.test.d.ts +0 -8
- package/dist/trace-analyst/store-otlp.test.d.ts.map +0 -1
- package/dist/trace-analyst/store-otlp.timestamps.test.d.ts +0 -2
- package/dist/trace-analyst/store-otlp.timestamps.test.d.ts.map +0 -1
- package/dist/trace-analyst/store.d.ts +0 -63
- package/dist/trace-analyst/store.d.ts.map +0 -1
- package/dist/trace-analyst/tools.d.ts +0 -44
- package/dist/trace-analyst/tools.d.ts.map +0 -1
- package/dist/trace-analyst/tools.test.d.ts +0 -10
- package/dist/trace-analyst/tools.test.d.ts.map +0 -1
- package/dist/trace-analyst/types.d.ts.map +0 -1
- package/dist/trace-contracts.d.ts +0 -180
- package/dist/trace-contracts.d.ts.map +0 -1
- package/dist/traced-analyst.d.ts +0 -26
- package/dist/traced-analyst.d.ts.map +0 -1
- package/dist/traced-judges.d.ts +0 -27
- package/dist/traced-judges.d.ts.map +0 -1
- package/dist/traces.d.ts.map +0 -1
- package/dist/trajectory.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/ui-finding.d.ts +0 -104
- package/dist/ui-finding.d.ts.map +0 -1
- package/dist/verdict-cache.d.ts +0 -78
- package/dist/verdict-cache.d.ts.map +0 -1
- package/dist/verdict-cache.test.d.ts +0 -2
- package/dist/verdict-cache.test.d.ts.map +0 -1
- package/dist/verdict.d.ts.map +0 -1
- package/dist/visual-diff.d.ts +0 -32
- package/dist/visual-diff.d.ts.map +0 -1
- package/dist/wire/handlers.d.ts +0 -54
- package/dist/wire/handlers.d.ts.map +0 -1
- package/dist/wire/index.d.ts.map +0 -1
- package/dist/wire/openapi.d.ts +0 -3
- package/dist/wire/openapi.d.ts.map +0 -1
- package/dist/wire/rpc.d.ts +0 -21
- package/dist/wire/rpc.d.ts.map +0 -1
- package/dist/wire/rubrics.d.ts +0 -34
- package/dist/wire/rubrics.d.ts.map +0 -1
- package/dist/wire/schemas.d.ts +0 -410
- package/dist/wire/schemas.d.ts.map +0 -1
- package/dist/wire/server.d.ts +0 -60
- package/dist/wire/server.d.ts.map +0 -1
- package/dist/workflow/event-schema.d.ts +0 -5
- package/dist/workflow/event-schema.d.ts.map +0 -1
- package/dist/workflow/feedback-pack.d.ts +0 -99
- package/dist/workflow/feedback-pack.d.ts.map +0 -1
- package/dist/workflow/index.d.ts.map +0 -1
- package/dist/workflow/intelligence-export.d.ts +0 -62
- package/dist/workflow/intelligence-export.d.ts.map +0 -1
- package/dist/workflow/partner-report.d.ts +0 -49
- package/dist/workflow/partner-report.d.ts.map +0 -1
- package/dist/workflow/phase-graph.d.ts +0 -43
- package/dist/workflow/phase-graph.d.ts.map +0 -1
- package/dist/workflow/promotion-gate.d.ts +0 -61
- package/dist/workflow/promotion-gate.d.ts.map +0 -1
- package/dist/workflow/run-record.d.ts +0 -12
- package/dist/workflow/run-record.d.ts.map +0 -1
- package/dist/workflow/runtime-adapter.d.ts +0 -20
- package/dist/workflow/runtime-adapter.d.ts.map +0 -1
- package/dist/workflow/sanitize.d.ts +0 -21
- package/dist/workflow/sanitize.d.ts.map +0 -1
- package/dist/workflow/schema.d.ts +0 -5
- package/dist/workflow/schema.d.ts.map +0 -1
- package/dist/workflow/summary.d.ts +0 -43
- package/dist/workflow/summary.d.ts.map +0 -1
- package/dist/workflow/trace-event-fields.d.ts +0 -6
- package/dist/workflow/trace-event-fields.d.ts.map +0 -1
- package/dist/workflow/trajectory.d.ts +0 -15
- package/dist/workflow/trajectory.d.ts.map +0 -1
- package/dist/workflow/types.d.ts +0 -68
- package/dist/workflow/types.d.ts.map +0 -1
- package/dist/workspace-inspector.d.ts +0 -67
- package/dist/workspace-inspector.d.ts.map +0 -1
- package/dist/wrangler-deploy-runner.test.d.ts +0 -2
- package/dist/wrangler-deploy-runner.test.d.ts.map +0 -1
package/dist/matrix/index.d.ts
CHANGED
|
@@ -1,16 +1,34 @@
|
|
|
1
|
+
import { M as MatrixResult, a as MatrixAxis, A as AxisSummary, b as MatrixCell, C as CellResult, R as RunAgentMatrixOptions } from '../types-BUxNaJ8c.js';
|
|
2
|
+
export { D as DefaultVerdict } from '../verdict-C9MlYujm.js';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
5
|
+
* Per-axis aggregation of cell runs into `AxisSummary` rows.
|
|
3
6
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
7
|
+
* Pure: consumes the final `cells: [{cell, runs}]` array and returns the
|
|
8
|
+
* `byAxis` table. Error runs contribute 0 to passRate and meanScore. Cost
|
|
9
|
+
* and duration always count — the budget was spent regardless.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
interface Row<Output> {
|
|
13
|
+
cell: MatrixCell;
|
|
14
|
+
result: CellResult<Output>;
|
|
15
|
+
}
|
|
16
|
+
declare function summariseRows<Output>(rows: Row<Output>[], axisName: string, axisValue: string): AxisSummary;
|
|
17
|
+
declare function buildByAxis<Output>(cells: MatrixResult<Output>['cells'], axes: MatrixAxis<unknown>[], aggregateBy: string[]): Record<string, Record<string, AxisSummary>>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* N-axis cartesian runner.
|
|
21
|
+
*
|
|
22
|
+
* Expansion order: cartesian over `axes` in declared order, then `reps` as the
|
|
23
|
+
* inner-most dim → `ordinal = (cartIdx * reps) + rep`. The returned
|
|
24
|
+
* `cells[]` is sorted by `ordinal` so concurrent execution does not reorder
|
|
25
|
+
* the output.
|
|
8
26
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
27
|
+
* Scheduling is a sliding window of in-flight promises capped at
|
|
28
|
+
* `maxConcurrency`. The window stops admitting new cells when the cost
|
|
29
|
+
* ceiling trips or the abort signal fires; in-flight cells finish.
|
|
12
30
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
31
|
+
|
|
32
|
+
declare function runAgentMatrix<Output>(opts: RunAgentMatrixOptions<Output>): Promise<MatrixResult<Output>>;
|
|
33
|
+
|
|
34
|
+
export { AxisSummary, CellResult, MatrixAxis, MatrixCell, MatrixResult, RunAgentMatrixOptions, buildByAxis, runAgentMatrix, summariseRows };
|
|
@@ -1,6 +1,182 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export { C as CalibrationBin, a as CalibrationOptions, b as CalibrationPair, c as CalibrationReport, d as CorrelationResult, e as CorrelationStudyOptions, f as CorrelationStudyResult, E as EvalMetricSpec, O as OutcomePair, g as calibrationCurve, h as calibrationFromPairs, i as correlationStudy } from '../calibration-BPmzuVPk.js';
|
|
2
|
+
export { D as DeploymentOutcome, F as FileSystemOutcomeStore, a as FileSystemOutcomeStoreOptions, I as InMemoryOutcomeStore, O as OutcomeFilter, b as OutcomeStore } from '../outcome-store-rnXLEqSn.js';
|
|
3
|
+
export { R as RubricOutcomePair, a as RubricPredictiveValidityInput, b as RubricPredictiveValidityReport, c as RubricRanking, r as rubricPredictiveValidity } from '../rubric-predictive-validity-C2hDKM8Z.js';
|
|
4
|
+
import { C as ContinuousAgreement, a as CalibrationResult, b as ContinuousCalibrationResult, c as CandidateScore, G as GoldenItem } from '../judge-calibration-0p2QcWNE.js';
|
|
5
|
+
import { S as SeriesConvergenceOptions, a as SeriesConvergenceResult } from '../series-convergence-D5OWMBg6.js';
|
|
6
|
+
import { C as CorpusAgreementReport } from '../statistics-CCJpTGOS.js';
|
|
7
|
+
import '../store-BcFXE6LG.js';
|
|
8
|
+
import '../schema-m0gsnbt3.js';
|
|
9
|
+
import '../run-record-CP2ObebC.js';
|
|
10
|
+
import '@tangle-network/agent-interface';
|
|
11
|
+
import '../errors-CzMUYo7b.js';
|
|
12
|
+
import '../types-C7DGg5ex.js';
|
|
13
|
+
import '@tangle-network/tcloud';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Judge sentinel — eval trustworthiness as a continuously measured,
|
|
17
|
+
* alarmed trend.
|
|
18
|
+
*
|
|
19
|
+
* Judges are models; models change underneath us; calibration decays.
|
|
20
|
+
* This module composes three existing instruments into one loop:
|
|
21
|
+
*
|
|
22
|
+
* snapshot — adapters turn real instrument outputs (`calibrateJudge` /
|
|
23
|
+
* `calibrateJudgeContinuous`, `corpusInterRaterAgreement` /
|
|
24
|
+
* `continuousAgreement`, a rerun sentinel golden set) into
|
|
25
|
+
* `SentinelSnapshot`s
|
|
26
|
+
* series — `analyzeSeries` (src/series-convergence) classifies each
|
|
27
|
+
* judge×metric history as stabilized / drifting / noisy
|
|
28
|
+
* alarm — `judgeSentinelReport` turns trends + thresholds into named
|
|
29
|
+
* alarms; `evalHealthStamp` is the tiny object a campaign
|
|
30
|
+
* attaches to its verdicts
|
|
31
|
+
*
|
|
32
|
+
* Alarm conditions:
|
|
33
|
+
* - convergence state `drifting-down` on any tracked metric
|
|
34
|
+
* - irr below `minIrr`
|
|
35
|
+
* - calibrationKappa / sentinelPassRate dropped vs the series baseline
|
|
36
|
+
* beyond `maxKappaDrop` / `maxSentinelDrop`
|
|
37
|
+
* - judge model changed with no post-change golden-grounded snapshot
|
|
38
|
+
* (the silent-upgrade trap: judges agreeing with each other after a
|
|
39
|
+
* model swap proves nothing — only re-measuring against gold does)
|
|
40
|
+
* - newest snapshot older than `staleAfterDays` relative to `asOf`
|
|
41
|
+
*
|
|
42
|
+
* Wire-in: run the snapshot adapters from a post-campaign hook or a
|
|
43
|
+
* nightly job, append to a `SentinelStore`, then compute
|
|
44
|
+
* `judgeSentinelReport(await store.history(), { asOf })` with `asOf` =
|
|
45
|
+
* the campaign timestamp. Attach `evalHealthStamp(report)` to campaign
|
|
46
|
+
* verdicts: an alarmed sentinel means every downstream verdict carries
|
|
47
|
+
* an integrity warning until the judge is recalibrated.
|
|
48
|
+
*
|
|
49
|
+
* The module is clock-free — every timestamp (`at`, `asOf`) is
|
|
50
|
+
* caller-supplied ISO-8601, so reports are reproducible.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
declare const SENTINEL_METRIC_NAMES: readonly ["irr", "calibrationKappa", "sentinelPassRate"];
|
|
54
|
+
type SentinelMetricName = (typeof SENTINEL_METRIC_NAMES)[number];
|
|
55
|
+
interface SentinelMetrics {
|
|
56
|
+
/** Inter-rater reliability — ICC(2,1) from agreement instruments. */
|
|
57
|
+
irr?: number;
|
|
58
|
+
/** Weighted κ vs the human golden set (`calibrateJudge*`). */
|
|
59
|
+
calibrationKappa?: number;
|
|
60
|
+
/** Fraction of a fixed sentinel golden set the judge still scores within tolerance. */
|
|
61
|
+
sentinelPassRate?: number;
|
|
62
|
+
}
|
|
63
|
+
interface SentinelSnapshot {
|
|
64
|
+
/** Caller-supplied ISO-8601 timestamp — the module never reads a clock. */
|
|
65
|
+
at: string;
|
|
66
|
+
judgeId: string;
|
|
67
|
+
/** Exact model identity behind the judge (pin the full version string). */
|
|
68
|
+
judgeModel: string;
|
|
69
|
+
/**
|
|
70
|
+
* Metrics measured at `at`. May be empty: an empty-metrics snapshot is a
|
|
71
|
+
* model-change marker — it records the new `judgeModel` immediately and
|
|
72
|
+
* the silent-upgrade alarm stays raised until a golden-grounded snapshot
|
|
73
|
+
* (calibrationKappa or sentinelPassRate) follows.
|
|
74
|
+
*/
|
|
75
|
+
metrics: SentinelMetrics;
|
|
76
|
+
}
|
|
77
|
+
/** Identity + timestamp the caller supplies alongside an instrument output. */
|
|
78
|
+
interface SnapshotMeta {
|
|
79
|
+
at: string;
|
|
80
|
+
judgeId: string;
|
|
81
|
+
judgeModel: string;
|
|
82
|
+
}
|
|
83
|
+
/** Shape guard for snapshots crossing a boundary (store append, JSONL load, report input). */
|
|
84
|
+
declare function validateSentinelSnapshot(snapshot: SentinelSnapshot, source?: string): void;
|
|
85
|
+
/**
|
|
86
|
+
* From `calibrateJudge` / `calibrateJudgeContinuous` output. Prefers the
|
|
87
|
+
* un-rounded continuous κ_w when the report carries one (integer κ
|
|
88
|
+
* discards information for [0,1] judges).
|
|
89
|
+
*/
|
|
90
|
+
declare function snapshotFromCalibration(report: CalibrationResult | ContinuousCalibrationResult, meta: SnapshotMeta): SentinelSnapshot;
|
|
91
|
+
/**
|
|
92
|
+
* From `corpusInterRaterAgreement` (statistics.ts) or `continuousAgreement`
|
|
93
|
+
* (judge-calibration.ts) output. IRR = ICC(2,1) — the reliability
|
|
94
|
+
* coefficient both instruments compute. For ensemble-level agreement,
|
|
95
|
+
* `meta.judgeId` names the ensemble and `meta.judgeModel` pins its
|
|
96
|
+
* composition (e.g. a joined list of member model strings).
|
|
97
|
+
*/
|
|
98
|
+
declare function snapshotFromAgreement(report: CorpusAgreementReport | ContinuousAgreement, meta: SnapshotMeta): SentinelSnapshot;
|
|
99
|
+
interface SentinelSetOptions {
|
|
100
|
+
/** Max |judge − human| for an item to count as passed. Default 0.1 (tuned for [0,1] scores). */
|
|
101
|
+
tolerance?: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* From a rerun of a fixed sentinel golden set: the same `GoldenItem`s the
|
|
105
|
+
* judge was originally calibrated on, re-scored periodically. Pass rate =
|
|
106
|
+
* fraction of joined items where the judge stays within `tolerance` of the
|
|
107
|
+
* human score. Items the judge didn't score are excluded from the
|
|
108
|
+
* denominator; zero joined items is an error, not a 0% pass rate.
|
|
109
|
+
*/
|
|
110
|
+
declare function snapshotFromSentinelSet(scores: CandidateScore[], golden: GoldenItem[], meta: SnapshotMeta, options?: SentinelSetOptions): SentinelSnapshot;
|
|
111
|
+
interface SentinelStore {
|
|
112
|
+
append(snapshot: SentinelSnapshot): Promise<void>;
|
|
113
|
+
/** All snapshots (optionally for one judge), in append order. */
|
|
114
|
+
history(judgeId?: string): Promise<SentinelSnapshot[]>;
|
|
115
|
+
}
|
|
116
|
+
declare function inMemorySentinelStore(initial?: SentinelSnapshot[]): SentinelStore;
|
|
117
|
+
/**
|
|
118
|
+
* JSONL store — one snapshot per line, appended atomically per call.
|
|
119
|
+
* A corrupt or shape-invalid line is a loud error naming the file and
|
|
120
|
+
* line number: a sentinel history that silently drops records would
|
|
121
|
+
* defeat the drift detection it exists to provide.
|
|
122
|
+
*/
|
|
123
|
+
declare function fileSentinelStore(path: string): SentinelStore;
|
|
124
|
+
interface SentinelThresholds {
|
|
125
|
+
/** Floor for irr — below it the judge ensemble is unreliable regardless of trend. Default 0.6. */
|
|
126
|
+
minIrr?: number;
|
|
127
|
+
/** Max tolerated calibrationKappa drop vs the series baseline. Default 0.15. */
|
|
128
|
+
maxKappaDrop?: number;
|
|
129
|
+
/** Max tolerated sentinelPassRate drop vs the series baseline. Default 0.1. */
|
|
130
|
+
maxSentinelDrop?: number;
|
|
131
|
+
/** Newest snapshot older than this (days, vs asOf) = the sentinel itself went blind. Default 30. */
|
|
132
|
+
staleAfterDays?: number;
|
|
133
|
+
}
|
|
134
|
+
interface JudgeSentinelOptions {
|
|
135
|
+
/** Caller-supplied ISO timestamp staleness is measured against. */
|
|
136
|
+
asOf: string;
|
|
137
|
+
thresholds?: SentinelThresholds;
|
|
138
|
+
/** Forwarded to `analyzeSeries` (window, stableCv, driftRun). */
|
|
139
|
+
convergence?: SeriesConvergenceOptions;
|
|
140
|
+
}
|
|
141
|
+
interface SentinelTrend {
|
|
142
|
+
judgeId: string;
|
|
143
|
+
metric: SentinelMetricName;
|
|
144
|
+
/** Verbatim `analyzeSeries` state for this judge×metric history. */
|
|
145
|
+
state: SeriesConvergenceResult['state'];
|
|
146
|
+
/** Newest value in the series. */
|
|
147
|
+
current: number;
|
|
148
|
+
/** Oldest value in the series — the reference the drop thresholds compare against. */
|
|
149
|
+
baseline: number;
|
|
150
|
+
/** current − baseline (signed; negative = decayed). */
|
|
151
|
+
drift: number;
|
|
152
|
+
alarmed: boolean;
|
|
153
|
+
reason?: string;
|
|
154
|
+
}
|
|
155
|
+
interface SentinelReport {
|
|
156
|
+
perJudge: SentinelTrend[];
|
|
157
|
+
alarms: string[];
|
|
158
|
+
healthy: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* `judgeId:metric` pairs with too few snapshots for the convergence
|
|
161
|
+
* machine. Named, not counted — a blind spot you can't see is a blind
|
|
162
|
+
* spot you won't fix. Floor/drop checks still apply to thin series, so
|
|
163
|
+
* insufficient history alone never masks an alarm.
|
|
164
|
+
*/
|
|
165
|
+
insufficientHistory: string[];
|
|
166
|
+
}
|
|
167
|
+
declare function judgeSentinelReport(history: SentinelSnapshot[], opts: JudgeSentinelOptions): SentinelReport;
|
|
168
|
+
interface EvalHealthStamp {
|
|
169
|
+
healthy: boolean;
|
|
170
|
+
alarms: string[];
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* The object a campaign attaches to its verdicts. Compute it from the
|
|
174
|
+
* sentinel report in a post-campaign hook (or a nightly job feeding the
|
|
175
|
+
* next day's campaigns) and store it alongside the verdict payload.
|
|
176
|
+
* `healthy: false` means the judges that produced those verdicts have an
|
|
177
|
+
* unresolved drift / decay / silent-upgrade / staleness alarm — treat the
|
|
178
|
+
* verdicts as carrying an integrity warning until recalibration clears it.
|
|
179
|
+
*/
|
|
180
|
+
declare function evalHealthStamp(report: SentinelReport): EvalHealthStamp;
|
|
181
|
+
|
|
182
|
+
export { type EvalHealthStamp, type JudgeSentinelOptions, SENTINEL_METRIC_NAMES, type SentinelMetricName, type SentinelMetrics, type SentinelReport, type SentinelSetOptions, type SentinelSnapshot, type SentinelStore, type SentinelThresholds, type SentinelTrend, type SnapshotMeta, evalHealthStamp, fileSentinelStore, inMemorySentinelStore, judgeSentinelReport, snapshotFromAgreement, snapshotFromCalibration, snapshotFromSentinelSet, validateSentinelSnapshot };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { D as DefaultVerdict } from './verdict-C9MlYujm.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Multi-layer verifier — ordered pipeline of verification layers.
|
|
3
5
|
*
|
|
@@ -21,10 +23,10 @@
|
|
|
21
23
|
* Both primitives compose — JudgeRunner can be invoked as a single
|
|
22
24
|
* layer inside a MultiLayerVerifier if that suits the caller.
|
|
23
25
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
|
|
27
|
+
type LayerStatus = 'pass' | 'fail' | 'skipped' | 'error' | 'timeout';
|
|
28
|
+
type Severity = 'critical' | 'major' | 'minor' | 'info';
|
|
29
|
+
interface Finding {
|
|
28
30
|
severity: Severity;
|
|
29
31
|
message: string;
|
|
30
32
|
evidence?: string;
|
|
@@ -37,7 +39,7 @@ export interface Finding {
|
|
|
37
39
|
*/
|
|
38
40
|
detail?: Record<string, unknown>;
|
|
39
41
|
}
|
|
40
|
-
|
|
42
|
+
interface LayerResult {
|
|
41
43
|
layer: string;
|
|
42
44
|
status: LayerStatus;
|
|
43
45
|
/** 0..1 score, optional — layers that don't produce a numeric score omit. */
|
|
@@ -58,7 +60,7 @@ export interface LayerResult {
|
|
|
58
60
|
/** Any rich per-layer detail — rendered as-is by consumers that know the layer. */
|
|
59
61
|
detail?: Record<string, unknown>;
|
|
60
62
|
}
|
|
61
|
-
|
|
63
|
+
interface VerifyContext<Env = unknown> {
|
|
62
64
|
/** Per-run opaque context the caller provides. Layers destructure what they need. */
|
|
63
65
|
env: Env;
|
|
64
66
|
/** Previously-computed results from layers that already ran. */
|
|
@@ -66,7 +68,7 @@ export interface VerifyContext<Env = unknown> {
|
|
|
66
68
|
/** Signal — if aborted, layers MUST bail within reasonable wall. */
|
|
67
69
|
signal: AbortSignal;
|
|
68
70
|
}
|
|
69
|
-
|
|
71
|
+
interface Layer<Env = unknown> {
|
|
70
72
|
name: string;
|
|
71
73
|
/** Stages that must have `status: 'pass'` before this layer runs. */
|
|
72
74
|
dependsOn?: string[];
|
|
@@ -85,7 +87,7 @@ export interface Layer<Env = unknown> {
|
|
|
85
87
|
capMs?: number;
|
|
86
88
|
run: (ctx: VerifyContext<Env>) => Promise<LayerResult> | LayerResult;
|
|
87
89
|
}
|
|
88
|
-
|
|
90
|
+
interface VerifyOptions<Env = unknown> {
|
|
89
91
|
env: Env;
|
|
90
92
|
/**
|
|
91
93
|
* Overall wall cap. Default: sum of layer capMs, or Infinity if any layer
|
|
@@ -98,7 +100,7 @@ export interface VerifyOptions<Env = unknown> {
|
|
|
98
100
|
/** Extends the substrate verdict spine: `valid` = `allPass` and `score` =
|
|
99
101
|
* `blendedScore` — derived where the report is aggregated, so spine
|
|
100
102
|
* consumers (drivers, gates) read this report without an adapter. */
|
|
101
|
-
|
|
103
|
+
interface VerificationReport extends DefaultVerdict {
|
|
102
104
|
layers: LayerResult[];
|
|
103
105
|
passCount: number;
|
|
104
106
|
failCount: number;
|
|
@@ -126,7 +128,7 @@ export interface VerificationReport extends DefaultVerdict {
|
|
|
126
128
|
* overall score being >= 0.7. Now we trust the judge's own `severity` field:
|
|
127
129
|
* `critical` findings veto; `major`/`minor` reduce the score but don't veto.
|
|
128
130
|
*/
|
|
129
|
-
|
|
131
|
+
declare function gradeSemanticStatus(input: {
|
|
130
132
|
score: number;
|
|
131
133
|
findings: Array<{
|
|
132
134
|
severity: Severity;
|
|
@@ -136,9 +138,10 @@ export declare function gradeSemanticStatus(input: {
|
|
|
136
138
|
available: boolean;
|
|
137
139
|
threshold?: number;
|
|
138
140
|
}): LayerStatus;
|
|
139
|
-
|
|
141
|
+
declare class MultiLayerVerifier<Env = unknown> {
|
|
140
142
|
private readonly layers;
|
|
141
143
|
constructor(layers: Layer<Env>[]);
|
|
142
144
|
run(opts: VerifyOptions<Env>): Promise<VerificationReport>;
|
|
143
145
|
}
|
|
144
|
-
|
|
146
|
+
|
|
147
|
+
export { type Finding as F, type LayerResult as L, MultiLayerVerifier as M, type Severity as S, type VerifyOptions as V, type VerificationReport as a, type Layer as b, type VerifyContext as c, type LayerStatus as d, gradeSemanticStatus as g };
|
|
@@ -1,7 +1,290 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { J as JudgeScore } from '../types-DQRY8ZT-.js';
|
|
2
|
+
import { AgentProfile } from '@tangle-network/agent-interface';
|
|
3
|
+
import { M as MatrixResult } from '../types-BUxNaJ8c.js';
|
|
4
|
+
import '../run-record-CP2ObebC.js';
|
|
5
|
+
import '../errors-CzMUYo7b.js';
|
|
6
|
+
import '../schema-m0gsnbt3.js';
|
|
7
|
+
import '../verdict-C9MlYujm.js';
|
|
8
|
+
|
|
9
|
+
interface MultishotMessage {
|
|
10
|
+
role: 'user' | 'assistant' | 'tool';
|
|
11
|
+
content: string;
|
|
12
|
+
toolCallId?: string;
|
|
13
|
+
toolCalls?: Array<{
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
args: Record<string, unknown>;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
interface MultishotArtifact {
|
|
20
|
+
type: string;
|
|
21
|
+
turn: number;
|
|
22
|
+
invocation: {
|
|
23
|
+
name: string;
|
|
24
|
+
args: Record<string, unknown>;
|
|
25
|
+
};
|
|
26
|
+
content: string;
|
|
27
|
+
}
|
|
28
|
+
interface MultishotResult {
|
|
29
|
+
transcript: MultishotMessage[];
|
|
30
|
+
artifacts: MultishotArtifact[];
|
|
31
|
+
toolCalls: number;
|
|
32
|
+
durationMs: number;
|
|
33
|
+
costUsd: number;
|
|
34
|
+
}
|
|
35
|
+
interface MultishotToolDefinition {
|
|
36
|
+
type: 'function';
|
|
37
|
+
function: {
|
|
38
|
+
name: string;
|
|
39
|
+
description: string;
|
|
40
|
+
parameters: Record<string, unknown>;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
type MultishotToolExecutor = (args: Record<string, unknown>, ctx: {
|
|
44
|
+
apiKey: string;
|
|
45
|
+
baseUrl: string;
|
|
46
|
+
signal?: AbortSignal;
|
|
47
|
+
}) => Promise<{
|
|
48
|
+
content: string;
|
|
49
|
+
costUsd: number;
|
|
50
|
+
}>;
|
|
51
|
+
interface MultishotPersona {
|
|
52
|
+
/** Stable identifier — used for per-cell artifact paths + matrix axis keys. */
|
|
53
|
+
id: string;
|
|
54
|
+
/** Per-domain payload (income/profile/voice/etc.) shaped by the consumer. */
|
|
55
|
+
[k: string]: unknown;
|
|
56
|
+
}
|
|
57
|
+
interface MultishotShape<TPersona extends MultishotPersona> {
|
|
58
|
+
/** Opening user message (turn 0) — the persona's first ask. */
|
|
59
|
+
buildOpener: (persona: TPersona) => string;
|
|
60
|
+
/** System prompt the driver LLM uses to roleplay the persona. Should set
|
|
61
|
+
* voice, goals, constraints, time-pressure, and the "never go silent" rule. */
|
|
62
|
+
buildDriverSystemPrompt: (persona: TPersona) => string;
|
|
63
|
+
}
|
|
64
|
+
declare class MultishotDriverEmptyError extends Error {
|
|
65
|
+
readonly turn: number;
|
|
66
|
+
constructor(turn: number);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface RouterCompletionRequest {
|
|
70
|
+
apiKey: string;
|
|
71
|
+
baseUrl: string;
|
|
72
|
+
model: string;
|
|
73
|
+
messages: Array<Record<string, unknown>>;
|
|
74
|
+
tools?: MultishotToolDefinition[];
|
|
75
|
+
temperature?: number;
|
|
76
|
+
maxTokens?: number;
|
|
77
|
+
signal?: AbortSignal;
|
|
78
|
+
}
|
|
79
|
+
interface RouterToolCall {
|
|
80
|
+
id: string;
|
|
81
|
+
type: 'function';
|
|
82
|
+
function: {
|
|
83
|
+
name: string;
|
|
84
|
+
arguments: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
interface RouterCompletionResponse {
|
|
88
|
+
message: {
|
|
89
|
+
content?: string | null;
|
|
90
|
+
tool_calls?: RouterToolCall[];
|
|
91
|
+
};
|
|
92
|
+
usage?: {
|
|
93
|
+
prompt_tokens?: number;
|
|
94
|
+
completion_tokens?: number;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
declare function routerCompletion(req: RouterCompletionRequest): Promise<RouterCompletionResponse>;
|
|
98
|
+
declare function estimateRouterCost(model: string, usage?: {
|
|
99
|
+
prompt_tokens?: number;
|
|
100
|
+
completion_tokens?: number;
|
|
101
|
+
}): number;
|
|
102
|
+
declare function defaultRouterBaseUrl(): string;
|
|
103
|
+
declare function requireRouterApiKey(): string;
|
|
104
|
+
|
|
105
|
+
declare const DEFAULT_RESEARCHER_MODEL = "openai/gpt-4o-mini";
|
|
106
|
+
declare const DEFAULT_CODER_MODEL = "openai/gpt-4o-mini";
|
|
107
|
+
interface DefaultResearcherConfig {
|
|
108
|
+
/** Replace the system prompt to bias the researcher toward a domain's
|
|
109
|
+
* citation style. Defaults to a generic "cite sources by name" prompt. */
|
|
110
|
+
systemPrompt?: string;
|
|
111
|
+
model?: string;
|
|
112
|
+
}
|
|
113
|
+
interface DefaultCoderConfig {
|
|
114
|
+
/** Replace the system prompt to bias the coder toward a language /
|
|
115
|
+
* framework / artifact style. */
|
|
116
|
+
systemPrompt?: string;
|
|
117
|
+
model?: string;
|
|
118
|
+
}
|
|
119
|
+
declare const DEFAULT_DELEGATE_RESEARCH_TOOL: MultishotToolDefinition;
|
|
120
|
+
declare const DEFAULT_DELEGATE_CODE_TOOL: MultishotToolDefinition;
|
|
121
|
+
declare function createResearchExecutor(config?: DefaultResearcherConfig): MultishotToolExecutor;
|
|
122
|
+
declare function createCodeExecutor(config?: DefaultCoderConfig): MultishotToolExecutor;
|
|
123
|
+
interface DefaultToolsConfig {
|
|
124
|
+
research?: DefaultResearcherConfig;
|
|
125
|
+
code?: DefaultCoderConfig;
|
|
126
|
+
/** When true (default), each tool result is recorded as a typed artifact:
|
|
127
|
+
* research → type='research', code → type='code'. */
|
|
128
|
+
recordArtifacts?: boolean;
|
|
129
|
+
}
|
|
130
|
+
interface DefaultToolsBundle {
|
|
131
|
+
tools: MultishotToolDefinition[];
|
|
132
|
+
executors: Record<string, MultishotToolExecutor>;
|
|
133
|
+
artifactTypeFor: (toolName: string) => string | undefined;
|
|
134
|
+
}
|
|
135
|
+
declare function defaultDelegationTools(config?: DefaultToolsConfig): DefaultToolsBundle;
|
|
136
|
+
|
|
137
|
+
declare const DEFAULT_JUDGE_MODEL = "openai/gpt-4o-mini";
|
|
138
|
+
interface JudgeDimension {
|
|
139
|
+
/** JSON field name + score key. */
|
|
140
|
+
key: string;
|
|
141
|
+
/** Description shown in the judge's user prompt. */
|
|
142
|
+
description: string;
|
|
143
|
+
}
|
|
144
|
+
interface JudgeConfig<TInput> {
|
|
145
|
+
/** Display name (for trace + log). */
|
|
146
|
+
name: string;
|
|
147
|
+
/** Model used for this judge. */
|
|
148
|
+
model?: string;
|
|
149
|
+
/** 0-10 scored dimensions. */
|
|
150
|
+
dimensions: JudgeDimension[];
|
|
151
|
+
/** Judge system prompt — sets persona + JSON-only constraint. */
|
|
152
|
+
systemPrompt: string;
|
|
153
|
+
/** Build the user prompt from the typed input. Must include "Respond with
|
|
154
|
+
* ONLY this JSON: { ... }" listing each dimension key. */
|
|
155
|
+
buildPrompt: (input: TInput) => string;
|
|
156
|
+
/** Optional model + api overrides. */
|
|
157
|
+
apiKey?: string;
|
|
158
|
+
baseUrl?: string;
|
|
159
|
+
}
|
|
160
|
+
declare function runJudge<TInput>(judge: JudgeConfig<TInput>, input: TInput): Promise<JudgeScore>;
|
|
161
|
+
/** Convenience: stringified dimension list for inclusion in a judge prompt.
|
|
162
|
+
* Returns lines like `- audience_fit: Does this match what the audience cares about? (0-10)`. */
|
|
163
|
+
declare function renderDimensions(dims: readonly JudgeDimension[]): string;
|
|
164
|
+
/** Convenience: build the "Respond with ONLY this JSON" footer for a judge prompt. */
|
|
165
|
+
declare function renderJsonFooter(dims: readonly JudgeDimension[]): string;
|
|
166
|
+
|
|
167
|
+
interface ConversationJudgeInput<TPersona extends MultishotPersona> {
|
|
168
|
+
transcript: MultishotMessage[];
|
|
169
|
+
persona: TPersona;
|
|
170
|
+
}
|
|
171
|
+
interface ArtifactJudgeInput<TPersona extends MultishotPersona> {
|
|
172
|
+
artifact: MultishotArtifact;
|
|
173
|
+
persona: TPersona;
|
|
174
|
+
}
|
|
175
|
+
interface MultishotJudges<TPersona extends MultishotPersona> {
|
|
176
|
+
/** Scores the full transcript end-to-end (always runs). */
|
|
177
|
+
conversation: JudgeConfig<ConversationJudgeInput<TPersona>>;
|
|
178
|
+
/** Scores each code-type artifact. Optional — omit when domain has no code artifacts. */
|
|
179
|
+
codeReview?: JudgeConfig<ArtifactJudgeInput<TPersona>>;
|
|
180
|
+
/** Scores each non-code (research/content/template) artifact. Optional. */
|
|
181
|
+
contentQuality?: JudgeConfig<ArtifactJudgeInput<TPersona>>;
|
|
182
|
+
/** Which artifact types route to codeReview. Defaults to ['code']. */
|
|
183
|
+
codeArtifactTypes?: string[];
|
|
184
|
+
/** Which artifact types route to contentQuality. Defaults to ['research']. */
|
|
185
|
+
contentArtifactTypes?: string[];
|
|
186
|
+
}
|
|
187
|
+
interface CellCompositeScore {
|
|
188
|
+
composite: number;
|
|
189
|
+
conversation: JudgeScore;
|
|
190
|
+
codeReview?: {
|
|
191
|
+
perArtifact: Array<JudgeScore & {
|
|
192
|
+
turn: number;
|
|
193
|
+
type: string;
|
|
194
|
+
}>;
|
|
195
|
+
composite: number;
|
|
196
|
+
};
|
|
197
|
+
contentQuality?: {
|
|
198
|
+
perArtifact: Array<JudgeScore & {
|
|
199
|
+
turn: number;
|
|
200
|
+
type: string;
|
|
201
|
+
}>;
|
|
202
|
+
composite: number;
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
interface RunMultishotMatrixOptions<TPersona extends MultishotPersona> {
|
|
206
|
+
/** AgentProfile axis (matrix primary). */
|
|
207
|
+
profiles: Array<{
|
|
208
|
+
id: string;
|
|
209
|
+
value: AgentProfile;
|
|
210
|
+
}>;
|
|
211
|
+
/** Persona axis. */
|
|
212
|
+
personas: TPersona[];
|
|
213
|
+
/** Persona-shaping callbacks. */
|
|
214
|
+
shape: MultishotShape<TPersona>;
|
|
215
|
+
/** Judge configurations. */
|
|
216
|
+
judges: MultishotJudges<TPersona>;
|
|
217
|
+
/** Tool definitions advertised to the agent. Defaults to delegate_research + delegate_code. */
|
|
218
|
+
tools?: MultishotToolDefinition[];
|
|
219
|
+
/** Map from tool name → inline executor. Must align with `tools`. */
|
|
220
|
+
toolExecutors?: Record<string, MultishotToolExecutor>;
|
|
221
|
+
/** Tool name → artifact type label. Defaults to research/code mapping. */
|
|
222
|
+
artifactTypeFor?: (toolName: string) => string | undefined;
|
|
223
|
+
/** Where per-cell artifacts land. Cells write to `<runDir>/<profileId>/<personaId>/rep-N/`. */
|
|
224
|
+
runDir: string;
|
|
225
|
+
/** Replicates per (profile, persona) cell. */
|
|
226
|
+
reps?: number;
|
|
227
|
+
/** Max conversation turns per cell. */
|
|
228
|
+
maxTurns?: number;
|
|
229
|
+
/** Max concurrent cells. */
|
|
230
|
+
maxConcurrency?: number;
|
|
231
|
+
/** Total $ ceiling across the matrix; cells aborted past this. */
|
|
232
|
+
costCeiling?: number;
|
|
233
|
+
/** Agent model. */
|
|
234
|
+
agentModel?: string;
|
|
235
|
+
/** Driver model. */
|
|
236
|
+
driverModel?: string;
|
|
237
|
+
/** Pass-thru fields. */
|
|
238
|
+
apiKey?: string;
|
|
239
|
+
baseUrl?: string;
|
|
240
|
+
}
|
|
241
|
+
interface CellOutput {
|
|
242
|
+
turns: number;
|
|
243
|
+
toolCalls: number;
|
|
244
|
+
artifactCount: number;
|
|
245
|
+
}
|
|
246
|
+
interface CellCompositeInput {
|
|
247
|
+
conversation: JudgeScore;
|
|
248
|
+
/** Present iff the codeReview judge is configured. */
|
|
249
|
+
codeReviews?: ReadonlyArray<JudgeScore>;
|
|
250
|
+
/** Present iff the contentQuality judge is configured. */
|
|
251
|
+
contentReviews?: ReadonlyArray<JudgeScore>;
|
|
252
|
+
}
|
|
253
|
+
/** Cell composite = mean over configured judge slots, excluding failed
|
|
254
|
+
* scores: a failed conversation judge or an all-failed artifact slot carries
|
|
255
|
+
* no signal and is dropped from the mean. `composite` is 0 only when EVERY
|
|
256
|
+
* configured slot failed (`allJudgesFailed` distinguishes that from a real
|
|
257
|
+
* zero). Pure — exported for deterministic testing. */
|
|
258
|
+
declare function computeCellComposite(input: CellCompositeInput): {
|
|
259
|
+
composite: number;
|
|
260
|
+
codeComposite: number;
|
|
261
|
+
contentComposite: number;
|
|
262
|
+
allJudgesFailed: boolean;
|
|
263
|
+
};
|
|
264
|
+
interface RunMultishotMatrixResult {
|
|
265
|
+
matrix: MatrixResult<CellOutput>;
|
|
266
|
+
}
|
|
267
|
+
declare function runMultishotMatrix<TPersona extends MultishotPersona>(opts: RunMultishotMatrixOptions<TPersona>): Promise<RunMultishotMatrixResult>;
|
|
268
|
+
|
|
269
|
+
interface RunMultishotOptions<TPersona extends MultishotPersona> {
|
|
270
|
+
profile: AgentProfile;
|
|
271
|
+
persona: TPersona;
|
|
272
|
+
shape: MultishotShape<TPersona>;
|
|
273
|
+
/** Tool definitions advertised to the agent. Defaults to delegate_research + delegate_code. */
|
|
274
|
+
tools?: MultishotToolDefinition[];
|
|
275
|
+
/** Map from tool name → executor invoked inline when the agent emits a tool_call. */
|
|
276
|
+
toolExecutors?: Record<string, MultishotToolExecutor>;
|
|
277
|
+
/** Map from tool name → artifact type label written into MultishotArtifact.type.
|
|
278
|
+
* Tools without a mapping still execute, but their results aren't surfaced as
|
|
279
|
+
* typed artifacts (only as tool messages in the transcript). */
|
|
280
|
+
artifactTypeFor?: (toolName: string) => string | undefined;
|
|
281
|
+
maxTurns?: number;
|
|
282
|
+
agentModel?: string;
|
|
283
|
+
driverModel?: string;
|
|
284
|
+
apiKey?: string;
|
|
285
|
+
baseUrl?: string;
|
|
286
|
+
signal?: AbortSignal;
|
|
287
|
+
}
|
|
288
|
+
declare function runMultishot<TPersona extends MultishotPersona>(opts: RunMultishotOptions<TPersona>): Promise<MultishotResult>;
|
|
289
|
+
|
|
290
|
+
export { type ArtifactJudgeInput, type CellCompositeInput, type CellCompositeScore, type ConversationJudgeInput, DEFAULT_CODER_MODEL, DEFAULT_DELEGATE_CODE_TOOL, DEFAULT_DELEGATE_RESEARCH_TOOL, DEFAULT_JUDGE_MODEL, DEFAULT_RESEARCHER_MODEL, type DefaultCoderConfig, type DefaultResearcherConfig, type DefaultToolsBundle, type DefaultToolsConfig, type JudgeConfig, type JudgeDimension, JudgeScore, type MultishotArtifact, MultishotDriverEmptyError, type MultishotJudges, type MultishotMessage, type MultishotPersona, type MultishotResult, type MultishotShape, type MultishotToolDefinition, type MultishotToolExecutor, type RouterCompletionRequest, type RouterCompletionResponse, type RouterToolCall, type RunMultishotMatrixOptions, type RunMultishotMatrixResult, type RunMultishotOptions, computeCellComposite, createCodeExecutor, createResearchExecutor, defaultDelegationTools, defaultRouterBaseUrl, estimateRouterCost, renderDimensions, renderJsonFooter, requireRouterApiKey, routerCompletion, runJudge, runMultishot, runMultishotMatrix };
|