@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
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import { S as Scenario, G as Gate, l as GateResult, k as GateContext, C as CampaignResult, p as Mutator, c as SurfaceProposer, M as MutableSurface, d as GateDecision } from './types-DQRY8ZT-.js';
|
|
2
|
+
import { R as RedTeamCase } from './red-team-BWdoyleI.js';
|
|
3
|
+
import { R as RunRecord } from './run-record-CP2ObebC.js';
|
|
4
|
+
import { D as Direction } from './pareto-E-pembql.js';
|
|
5
|
+
import { a as PairedBootstrapResult } from './statistics-CCJpTGOS.js';
|
|
6
|
+
import { b as RunCampaignOptions, C as CampaignStorage } from './gepa-C1NCIZ9o.js';
|
|
7
|
+
import { HostedClient, TraceSpanEvent } from './hosted/index.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Compose multiple `Gate` implementations — every gate must pass for the
|
|
11
|
+
* composite to ship. Closes the alignment reviewer's "default-only
|
|
12
|
+
* heldOutGate + costGate would happily promote a reward-hacked prompt"
|
|
13
|
+
* concern by making safety gates first-class composable defaults.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/** Compose gates — all must `ship` for the composite to `ship`. First
|
|
17
|
+
* non-ship verdict short-circuits the composite verdict, but ALL gates run
|
|
18
|
+
* (so the result records every gate's reason — useful for diagnostics). */
|
|
19
|
+
declare function composeGate<TArtifact = unknown, TScenario extends Scenario = Scenario>(...gates: Array<Gate<TArtifact, TScenario>>): Gate<TArtifact, TScenario>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* `defaultProductionGate` — composes the substrate's existing safety
|
|
23
|
+
* primitives (red-team / reward-hacking / canary / heldout) into a single
|
|
24
|
+
* Gate.decide shape. Closes the alignment + Anthropic-SI reviewers' "safety
|
|
25
|
+
* primitives are off the critical path" blocker.
|
|
26
|
+
*
|
|
27
|
+
* The composition is opinionated — when consumers wire `runImprovementLoop`,
|
|
28
|
+
* THIS gate is the default. Consumers can still pass a custom gate to
|
|
29
|
+
* override; the recommended pattern is to compose THIS gate with whatever
|
|
30
|
+
* extra domain-specific gates they need (`composeGate(defaultProductionGate(...), customGate)`).
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
interface DefaultProductionGateOptions {
|
|
34
|
+
/** Required: scenarios held out from training; substrate compares
|
|
35
|
+
* candidate-on-holdout vs baseline-on-holdout. */
|
|
36
|
+
holdoutScenarios: Scenario[];
|
|
37
|
+
/** Minimum held-out lift the **paired-bootstrap CI lower bound** must clear
|
|
38
|
+
* to ship — NOT a point estimate. Default 0 ⇒ "confidently positive at the
|
|
39
|
+
* confidence level". Interpreted in the judge's native composite scale (set
|
|
40
|
+
* e.g. 2 for a 0-100 rubric to require a ≥2-point significant gain). */
|
|
41
|
+
deltaThreshold?: number;
|
|
42
|
+
/** Confidence level for the held-out + dimension bootstraps. Default 0.95. */
|
|
43
|
+
confidence?: number;
|
|
44
|
+
/** Bootstrap resamples. Default 2000. */
|
|
45
|
+
bootstrapResamples?: number;
|
|
46
|
+
/** Fixed bootstrap seed for a deterministic verdict. Default 1337. */
|
|
47
|
+
bootstrapSeed?: number;
|
|
48
|
+
/** Minimum paired holdout observations (scenarios × reps) before a
|
|
49
|
+
* significance claim is allowed; below it the gate HOLDS with `few_runs`
|
|
50
|
+
* rather than reading a degenerate CI. Default 3. */
|
|
51
|
+
minProductiveRuns?: number;
|
|
52
|
+
/** Critical judge dimensions that must NOT significantly regress even when
|
|
53
|
+
* the net composite rises (anti-Goodhart). The gate HOLDS if any listed
|
|
54
|
+
* dimension's paired-delta CI lower bound < −`regressionTolerance`. E.g.
|
|
55
|
+
* `['hallucination_free']` for a legal agent. */
|
|
56
|
+
criticalDimensions?: string[];
|
|
57
|
+
/** Tolerance for the per-dimension regression guard, in the dimension's
|
|
58
|
+
* native scale. When omitted it auto-scales off observed magnitudes:
|
|
59
|
+
* 0.05 on [0,1], 5 on 0-100. */
|
|
60
|
+
regressionTolerance?: number;
|
|
61
|
+
/** Total $ budget for ALL cells in this campaign — including baseline + candidate.
|
|
62
|
+
* Composite verdict refuses to ship when spend exceeded budget. */
|
|
63
|
+
budgetUsd?: number;
|
|
64
|
+
/** Red-team cases to probe candidate outputs against. When omitted the
|
|
65
|
+
* substrate uses `DEFAULT_RED_TEAM_CORPUS`. Provide a domain-specific
|
|
66
|
+
* battery for tighter coverage. */
|
|
67
|
+
redTeamBattery?: RedTeamCase[];
|
|
68
|
+
/** Run records (oldest-first) needed for the reward-hacking detector.
|
|
69
|
+
* Substrate populates from prior production-loop generations. */
|
|
70
|
+
recentRuns?: RunRecord[];
|
|
71
|
+
/** When true, the gate refuses to ship if the reward-hacking detector
|
|
72
|
+
* fires at the `gaming` severity. Default true. */
|
|
73
|
+
blockOnRewardHackingGaming?: boolean;
|
|
74
|
+
}
|
|
75
|
+
declare function defaultProductionGate<TArtifact, TScenario extends Scenario>(options: DefaultProductionGateOptions): Gate<TArtifact, TScenario>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Thin Gate adapter — exposes delta-threshold-on-holdout as a composable
|
|
79
|
+
* `Gate`. Use when you want held-out as one of N composed gates instead of
|
|
80
|
+
* the full `defaultProductionGate` stack.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
interface HeldOutGateOptions<TScenario extends Scenario = Scenario> {
|
|
84
|
+
scenarios: TScenario[];
|
|
85
|
+
deltaThreshold?: number;
|
|
86
|
+
}
|
|
87
|
+
declare function heldOutGate<TArtifact, TScenario extends Scenario>(options: HeldOutGateOptions<TScenario>): Gate<TArtifact, TScenario>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Promotion policy over the evidence VECTOR — the substrate's answer to "never
|
|
91
|
+
* collapse the multi-objective promotion decision into one scalar." A
|
|
92
|
+
* `defaultProductionGate` is one opinionated composition; this module factors
|
|
93
|
+
* the decision into two reusable pieces so MANY policies can compete over the
|
|
94
|
+
* SAME evidence (the quant-desk pattern: one evidence bus, plural strategies):
|
|
95
|
+
*
|
|
96
|
+
* buildEvidenceVector(ctx, objectives, opts) -> EvidenceVector // the bus
|
|
97
|
+
* PromotionPolicy = (ev: EvidenceVector) => GateResult // a strategy
|
|
98
|
+
* paretoPolicy(ev) // the default strategy
|
|
99
|
+
* paretoSignificanceGate(options): Gate // bus + policy as a Gate
|
|
100
|
+
*
|
|
101
|
+
* The Pareto policy is SYMMETRIC multi-objective: every objective is BOTH a
|
|
102
|
+
* potential gain source AND a safety floor (unlike `defaultProductionGate`,
|
|
103
|
+
* where only `composite` can win and `criticalDimensions` are pure floors). A
|
|
104
|
+
* candidate ships iff it weakly DOMINATES the baseline at the confidence level —
|
|
105
|
+
* no objective credibly worse (CI floor breach) AND at least one objective
|
|
106
|
+
* credibly better (CI gain). Insufficient evidence on ANY axis -> need_more_work
|
|
107
|
+
* (NOT folded into hold: "gather more reps" and "reject" are different actions).
|
|
108
|
+
*
|
|
109
|
+
* Cost/latency are NOT CI axes here — `GateContext` carries only an aggregate
|
|
110
|
+
* per-side cost, no per-cell observation vector to bootstrap. Treat them as hard
|
|
111
|
+
* constraints (compose with a budget gate via `composeGate`), not faked CIs.
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/** Where an objective's per-cell scalar comes from. `composite` reads the
|
|
115
|
+
* judge's composite; `dimension` reads a named per-dimension score. */
|
|
116
|
+
type ObjectiveSource = {
|
|
117
|
+
kind: 'composite';
|
|
118
|
+
} | {
|
|
119
|
+
kind: 'dimension';
|
|
120
|
+
dimension: string;
|
|
121
|
+
};
|
|
122
|
+
interface PromotionObjective {
|
|
123
|
+
/** Stable label used in reports + `contributingGates`. */
|
|
124
|
+
name: string;
|
|
125
|
+
source: ObjectiveSource;
|
|
126
|
+
/** 'maximize' (quality dims) or 'minimize' (error/risk/length dims). Orients
|
|
127
|
+
* the paired delta so a positive bootstrap always means "candidate better". */
|
|
128
|
+
direction: Direction;
|
|
129
|
+
/** The good-direction paired-delta CI lower bound must EXCEED this to count
|
|
130
|
+
* as a significant gain on this axis. Interpreted in the judge's native
|
|
131
|
+
* scale. Default 0 (⇒ "confidently better"). */
|
|
132
|
+
gainThreshold?: number;
|
|
133
|
+
/** A floor breach (regression) is declared when the good-direction CI lower
|
|
134
|
+
* bound is below −floorTolerance. When omitted it auto-scales off observed
|
|
135
|
+
* magnitudes (0.05 on [0,1], 5 on 0-100), matching `dimensionRegressions`. */
|
|
136
|
+
floorTolerance?: number;
|
|
137
|
+
}
|
|
138
|
+
/** Per-axis verdict from the good-direction paired bootstrap. */
|
|
139
|
+
type AxisVerdict = 'improved' | 'regressed' | 'flat' | 'few_runs';
|
|
140
|
+
interface AxisEvidence {
|
|
141
|
+
name: string;
|
|
142
|
+
source: ObjectiveSource;
|
|
143
|
+
direction: Direction;
|
|
144
|
+
/** Paired bootstrap on the GOOD-DIRECTION delta (oriented by `direction`):
|
|
145
|
+
* a positive value means the candidate is better on this axis. */
|
|
146
|
+
bootstrap: PairedBootstrapResult;
|
|
147
|
+
/** Paired observations contributing to this axis. */
|
|
148
|
+
n: number;
|
|
149
|
+
gainThreshold: number;
|
|
150
|
+
floorTolerance: number;
|
|
151
|
+
verdict: AxisVerdict;
|
|
152
|
+
}
|
|
153
|
+
interface EvidenceVector {
|
|
154
|
+
/** One entry per objective — NOTHING averaged across axes. */
|
|
155
|
+
axes: AxisEvidence[];
|
|
156
|
+
/** Smallest paired n across axes that produced observations — the binding
|
|
157
|
+
* evidence-sufficiency constraint. 0 when no axis produced observations. */
|
|
158
|
+
minN: number;
|
|
159
|
+
/** Aggregate per-side cost from the gate context (a constraint input, not a
|
|
160
|
+
* CI axis — see the module header). */
|
|
161
|
+
cost: {
|
|
162
|
+
candidate: number;
|
|
163
|
+
baseline: number;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
/** A promotion strategy: a pure function from the evidence vector to a verdict.
|
|
167
|
+
* Many policies can run over the same `EvidenceVector` and disagree — that's
|
|
168
|
+
* the point (competing strategies, shared evidence). */
|
|
169
|
+
type PromotionPolicy = (ev: EvidenceVector) => GateResult;
|
|
170
|
+
interface BuildEvidenceVectorOptions {
|
|
171
|
+
/** Minimum paired observations before an axis can claim significance; below
|
|
172
|
+
* it the axis is `few_runs`. Default 3. */
|
|
173
|
+
minProductiveRuns?: number;
|
|
174
|
+
/** Confidence level for every axis bootstrap. Default 0.95. */
|
|
175
|
+
confidence?: number;
|
|
176
|
+
/** Bootstrap resamples. Default 2000. */
|
|
177
|
+
resamples?: number;
|
|
178
|
+
/** Fixed bootstrap seed for a deterministic, reproducible verdict. Default 1337. */
|
|
179
|
+
seed?: number;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* The Evidence Bus. For each objective, pair candidate vs baseline by full
|
|
183
|
+
* cellId and bootstrap a CI on the good-direction paired delta. Reuses the
|
|
184
|
+
* exact `pairHoldout` + `pairedBootstrap` machinery the held-out gate uses, so
|
|
185
|
+
* a single source of truth governs pairing granularity + scale handling.
|
|
186
|
+
*/
|
|
187
|
+
declare function buildEvidenceVector<TArtifact, TScenario extends Scenario>(ctx: GateContext<TArtifact, TScenario>, objectives: PromotionObjective[], opts?: BuildEvidenceVectorOptions): EvidenceVector;
|
|
188
|
+
/**
|
|
189
|
+
* The default strategy: symmetric multi-objective Pareto significance. Ship iff
|
|
190
|
+
* the candidate weakly dominates the baseline at the confidence level — no axis
|
|
191
|
+
* credibly worse AND ≥1 axis credibly better. Floor breach on any axis → hold
|
|
192
|
+
* (anti-Goodhart, dominates everything). Insufficient evidence on any axis →
|
|
193
|
+
* need_more_work. Statistically equivalent → hold (never ship noise).
|
|
194
|
+
*/
|
|
195
|
+
declare const paretoPolicy: PromotionPolicy;
|
|
196
|
+
interface ParetoSignificanceGateOptions extends BuildEvidenceVectorOptions {
|
|
197
|
+
/** The objective vector. Every axis is both a gain source and a safety floor. */
|
|
198
|
+
objectives: PromotionObjective[];
|
|
199
|
+
/** Strategy applied to the evidence vector. Default `paretoPolicy`. Override
|
|
200
|
+
* to run a stricter/looser strategy over the SAME bus (competing policies). */
|
|
201
|
+
policy?: PromotionPolicy;
|
|
202
|
+
/** Override the gate name in reports. */
|
|
203
|
+
name?: string;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Wrap the bus + a policy as a `Gate`. Plugs into the existing
|
|
207
|
+
* `runImprovementLoop({ gate })` slot and composes via `composeGate`; default
|
|
208
|
+
* loop behavior is unchanged because consumers opt in by passing this gate.
|
|
209
|
+
*/
|
|
210
|
+
declare function paretoSignificanceGate<TArtifact = unknown, TScenario extends Scenario = Scenario>(options: ParetoSignificanceGateOptions): Gate<TArtifact, TScenario>;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* `runEval` — the simplest preset over `runCampaign`. No optimizer, no
|
|
214
|
+
* gate, no auto-PR. Just: run scenarios through dispatch, score with
|
|
215
|
+
* judges, return CampaignResult.
|
|
216
|
+
*
|
|
217
|
+
* The 80% case for consumers who want a scorecard, not an improvement loop.
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
interface RunEvalOptions<TScenario extends Scenario, TArtifact> extends Omit<RunCampaignOptions<TScenario, TArtifact>, 'runDir'> {
|
|
221
|
+
runDir: string;
|
|
222
|
+
}
|
|
223
|
+
declare function runEval<TScenario extends Scenario, TArtifact>(opts: RunEvalOptions<TScenario, TArtifact>): Promise<CampaignResult<TArtifact, TScenario>>;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* `evolutionaryProposer` — adapts a stateless `Mutator` (population mutation:
|
|
227
|
+
* GEPA / AxGEPA / reflective-mutation) into a `SurfaceProposer`. This is
|
|
228
|
+
* the evolutionary strategy: each generation, mutate the current best surface
|
|
229
|
+
* into N candidates, measure, select. No generation memory beyond the current
|
|
230
|
+
* surface; the loop body handles ranking + promotion.
|
|
231
|
+
*
|
|
232
|
+
* The reflective alternative is agent-runtime's runtime proposer with a
|
|
233
|
+
* `reflectiveGenerator` / `agenticGenerator`: it reasons over the report +
|
|
234
|
+
* trace findings to propose targeted edits rather than blind mutations. Both
|
|
235
|
+
* conform to `SurfaceProposer`; the improvement loop is identical either way.
|
|
236
|
+
*/
|
|
237
|
+
|
|
238
|
+
interface EvolutionaryProposerOptions<TFindings = unknown> {
|
|
239
|
+
mutator: Mutator<TFindings>;
|
|
240
|
+
/** External findings fed to the mutator each generation. Default: []. */
|
|
241
|
+
findings?: TFindings[];
|
|
242
|
+
}
|
|
243
|
+
declare function evolutionaryProposer<TFindings = unknown>(opts: EvolutionaryProposerOptions<TFindings>): SurfaceProposer<TFindings>;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Loop provenance — the durable, queryable record of WHAT a self-improvement
|
|
247
|
+
* loop did and WHY, plus the OTel spans that let an OTLP collector pivot from
|
|
248
|
+
* an eval-run to the underlying candidate→cell→gate→promote chain.
|
|
249
|
+
*
|
|
250
|
+
* Two artifacts, one source of truth:
|
|
251
|
+
*
|
|
252
|
+
* 1. `LoopProvenanceRecord` — a structured JSON record capturing every
|
|
253
|
+
* candidate (surfaceHash + label + rationale), its measured composite,
|
|
254
|
+
* the gate decision + reasons + delta, the held-out lift, the explicit
|
|
255
|
+
* baseline→candidate diff, and BACKEND PROVENANCE (the
|
|
256
|
+
* `assertRealBackend` verdict + worker call count + model). This is the
|
|
257
|
+
* ingestable audit artifact: the +lift recomputes from it, the "because
|
|
258
|
+
* Z" rationale survives in it, and a stub backend is detectable from it.
|
|
259
|
+
*
|
|
260
|
+
* 2. `loopProvenanceSpans()` — the same chain emitted as OTLP-ingestable
|
|
261
|
+
* `TraceSpanEvent`s, pivoted on the substrate's standard
|
|
262
|
+
* `tangle.runId` / `tangle.scenarioId` / `tangle.cellId` /
|
|
263
|
+
* `tangle.generation` attributes (the same pivots `/adapters/otel`
|
|
264
|
+
* reads). The hosted `/v1/ingest/traces` endpoint receives the FULL loop,
|
|
265
|
+
* not just the `cost.*` spans `runCampaign` already emits per cell.
|
|
266
|
+
*
|
|
267
|
+
* The record is built from the substrate's own loop result + the per-call
|
|
268
|
+
* `RunRecord`s the worker emitted — no new measurement, no recomputation that
|
|
269
|
+
* could drift from what the gate actually saw.
|
|
270
|
+
*/
|
|
271
|
+
|
|
272
|
+
/** Stable sha256 (full hex) of a surface's effective text. Code surfaces hash
|
|
273
|
+
* their worktree+base identity since the content lives in git. Distinct from
|
|
274
|
+
* `surfaceHash` (16-char content fingerprint used as a loop identity key);
|
|
275
|
+
* this is the byte-identical-verifiable content hash the provenance record +
|
|
276
|
+
* `RunRecord.promptHash` carry. */
|
|
277
|
+
declare function surfaceContentHash(surface: MutableSurface): string;
|
|
278
|
+
interface LoopProvenanceCandidate {
|
|
279
|
+
/** Generation index this candidate was proposed in. */
|
|
280
|
+
generation: number;
|
|
281
|
+
/** 16-char loop-identity fingerprint (matches `GenerationCandidate.surfaceHash`). */
|
|
282
|
+
surfaceHash: string;
|
|
283
|
+
/** Full sha256 content hash — byte-identical-verifiable. */
|
|
284
|
+
contentHash: string;
|
|
285
|
+
/** Proposer label, when the proposer returned a `ProposedCandidate`. */
|
|
286
|
+
label?: string;
|
|
287
|
+
/** Proposer rationale — the "because Z". When the proposer returned a bare
|
|
288
|
+
* surface (blind mutator) this is absent. */
|
|
289
|
+
rationale?: string;
|
|
290
|
+
/** Mean composite this candidate scored on the search split. */
|
|
291
|
+
composite: number;
|
|
292
|
+
/** Whether this candidate was promoted out of its generation. */
|
|
293
|
+
promoted: boolean;
|
|
294
|
+
}
|
|
295
|
+
interface LoopProvenanceBackend {
|
|
296
|
+
/** `assertRealBackend`-grade verdict over the worker call records. */
|
|
297
|
+
verdict: 'real' | 'mixed' | 'stub';
|
|
298
|
+
/** Number of worker LLM calls captured (the audit's "worker call count"). */
|
|
299
|
+
workerCallCount: number;
|
|
300
|
+
/** Distinct model ids observed across worker calls. */
|
|
301
|
+
models: string[];
|
|
302
|
+
totalInputTokens: number;
|
|
303
|
+
totalOutputTokens: number;
|
|
304
|
+
totalCostUsd: number;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* The durable provenance record. Aligns to the hosted `EvalRunEvent` path but
|
|
308
|
+
* ADDS the rationale + the explicit baseline→candidate diff (both omitted from
|
|
309
|
+
* the bare hosted event) + backend provenance.
|
|
310
|
+
*/
|
|
311
|
+
interface LoopProvenanceRecord {
|
|
312
|
+
schema: 'tangle.loop-provenance.v1';
|
|
313
|
+
runId: string;
|
|
314
|
+
runDir: string;
|
|
315
|
+
timestamp: string;
|
|
316
|
+
/** Baseline + winner surface content hashes — distinguishable, byte-verifiable. */
|
|
317
|
+
baselineContentHash: string;
|
|
318
|
+
winnerContentHash: string;
|
|
319
|
+
/** Proposer label/rationale for the promoted change. Absent ⇒ winner == baseline. */
|
|
320
|
+
winnerLabel?: string;
|
|
321
|
+
winnerRationale?: string;
|
|
322
|
+
/** The explicit baseline→winner unified diff the gate decided on. */
|
|
323
|
+
diff: string;
|
|
324
|
+
/** Every candidate across every generation, each carrying its rationale. */
|
|
325
|
+
candidates: LoopProvenanceCandidate[];
|
|
326
|
+
/** The gate verdict — decision + reasons + contributing gates + delta. */
|
|
327
|
+
gate: {
|
|
328
|
+
decision: GateDecision;
|
|
329
|
+
reasons: string[];
|
|
330
|
+
delta?: number;
|
|
331
|
+
contributingGates: Array<{
|
|
332
|
+
name: string;
|
|
333
|
+
passed: boolean;
|
|
334
|
+
}>;
|
|
335
|
+
};
|
|
336
|
+
/** baseline-on-holdout composite mean. */
|
|
337
|
+
baselineHoldoutComposite: number;
|
|
338
|
+
/** winner-on-holdout composite mean. */
|
|
339
|
+
winnerHoldoutComposite: number;
|
|
340
|
+
/** winnerHoldout - baselineHoldout — RECOMPUTABLE from this record. */
|
|
341
|
+
heldOutLift: number;
|
|
342
|
+
/** Backend provenance: stub-vs-real verdict + worker call count + models. */
|
|
343
|
+
backend: LoopProvenanceBackend;
|
|
344
|
+
totalCostUsd: number;
|
|
345
|
+
totalDurationMs: number;
|
|
346
|
+
}
|
|
347
|
+
interface BuildLoopProvenanceArgs<TArtifact, TScenario extends Scenario> {
|
|
348
|
+
runId: string;
|
|
349
|
+
runDir: string;
|
|
350
|
+
timestamp: string;
|
|
351
|
+
baselineSurface: MutableSurface;
|
|
352
|
+
winnerSurface: MutableSurface;
|
|
353
|
+
winnerLabel?: string;
|
|
354
|
+
winnerRationale?: string;
|
|
355
|
+
diff: string;
|
|
356
|
+
/** Per-generation candidate records straight off the loop result. */
|
|
357
|
+
generations: Array<{
|
|
358
|
+
generationIndex: number;
|
|
359
|
+
candidates: Array<{
|
|
360
|
+
surfaceHash: string;
|
|
361
|
+
composite: number;
|
|
362
|
+
label?: string;
|
|
363
|
+
rationale?: string;
|
|
364
|
+
}>;
|
|
365
|
+
promoted: string[];
|
|
366
|
+
/** Surfaces measured this generation, keyed positionally to candidates so
|
|
367
|
+
* the content hash can be computed from the real surface text. */
|
|
368
|
+
surfaces: Array<{
|
|
369
|
+
surfaceHash: string;
|
|
370
|
+
surface: MutableSurface;
|
|
371
|
+
}>;
|
|
372
|
+
}>;
|
|
373
|
+
gate: GateResult;
|
|
374
|
+
baselineOnHoldout: CampaignResult<TArtifact, TScenario>;
|
|
375
|
+
winnerOnHoldout: CampaignResult<TArtifact, TScenario>;
|
|
376
|
+
/** Worker call records — the source for backend provenance. */
|
|
377
|
+
workerRecords: ReadonlyArray<RunRecord>;
|
|
378
|
+
totalCostUsd: number;
|
|
379
|
+
totalDurationMs: number;
|
|
380
|
+
}
|
|
381
|
+
/** Build the durable provenance record from a completed loop result. */
|
|
382
|
+
declare function buildLoopProvenanceRecord<TArtifact, TScenario extends Scenario>(args: BuildLoopProvenanceArgs<TArtifact, TScenario>): LoopProvenanceRecord;
|
|
383
|
+
/**
|
|
384
|
+
* Build the loop's OTLP-ingestable spans from a provenance record. One root
|
|
385
|
+
* span per loop (`tangle.runId`), one span per generation, one span per
|
|
386
|
+
* candidate (carrying its surfaceHash + label), and one span for the gate
|
|
387
|
+
* decision (carrying reasons + delta + lift). Candidate + gate spans pivot on
|
|
388
|
+
* the same `tangle.runId` / `tangle.generation` attributes `/adapters/otel`
|
|
389
|
+
* reads, so the hosted collector reconstructs the full tree.
|
|
390
|
+
*
|
|
391
|
+
* Times are synthesized monotonically off a single base so the span tree is
|
|
392
|
+
* orderable; the substrate does not retain per-candidate wall-clock starts.
|
|
393
|
+
*/
|
|
394
|
+
declare function loopProvenanceSpans(record: LoopProvenanceRecord, opts?: {
|
|
395
|
+
baseTimeMs?: number;
|
|
396
|
+
}): TraceSpanEvent[];
|
|
397
|
+
/** Canonical durable paths under the run dir. */
|
|
398
|
+
declare function provenanceRecordPath(runDir: string): string;
|
|
399
|
+
declare function provenanceSpansPath(runDir: string): string;
|
|
400
|
+
interface EmitLoopProvenanceResult {
|
|
401
|
+
record: LoopProvenanceRecord;
|
|
402
|
+
spans: TraceSpanEvent[];
|
|
403
|
+
/** Absolute paths the record + spans were written to, when storage persists. */
|
|
404
|
+
recordPath: string;
|
|
405
|
+
spansPath: string;
|
|
406
|
+
}
|
|
407
|
+
interface EmitLoopProvenanceArgs<TArtifact, TScenario extends Scenario> extends BuildLoopProvenanceArgs<TArtifact, TScenario> {
|
|
408
|
+
/** Storage the record + spans are written through. */
|
|
409
|
+
storage: CampaignStorage;
|
|
410
|
+
/** When set, the spans are also shipped to the hosted `/v1/ingest/traces`
|
|
411
|
+
* endpoint so the collector receives the full loop, not just `cost.*`. */
|
|
412
|
+
hostedClient?: HostedClient;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Build the provenance record + OTel spans and persist them durably under the
|
|
416
|
+
* run dir (and ship spans to a hosted collector when one is wired). Returns
|
|
417
|
+
* both artifacts so the caller can assert on / re-derive from them.
|
|
418
|
+
*
|
|
419
|
+
* Fail-loud: the durable write throws on storage failure (a swallowed write is
|
|
420
|
+
* exactly the "emitted but lost" failure this closes). The hosted span ship is
|
|
421
|
+
* the one best-effort leg — its failure is logged, not thrown, so an offline
|
|
422
|
+
* collector never fails the loop (the durable artifact is the source of truth).
|
|
423
|
+
*/
|
|
424
|
+
declare function emitLoopProvenance<TArtifact, TScenario extends Scenario>(args: EmitLoopProvenanceArgs<TArtifact, TScenario>): Promise<EmitLoopProvenanceResult>;
|
|
425
|
+
|
|
426
|
+
export { type AxisEvidence as A, type BuildEvidenceVectorOptions as B, type DefaultProductionGateOptions as D, type EvidenceVector as E, type HeldOutGateOptions as H, type LoopProvenanceRecord as L, type ObjectiveSource as O, type ParetoSignificanceGateOptions as P, type RunEvalOptions as R, type AxisVerdict as a, type EvolutionaryProposerOptions as b, type PromotionObjective as c, type PromotionPolicy as d, buildEvidenceVector as e, composeGate as f, defaultProductionGate as g, evolutionaryProposer as h, heldOutGate as i, paretoSignificanceGate as j, type BuildLoopProvenanceArgs as k, type EmitLoopProvenanceArgs as l, type EmitLoopProvenanceResult as m, type LoopProvenanceBackend as n, type LoopProvenanceCandidate as o, paretoPolicy as p, buildLoopProvenanceRecord as q, runEval as r, emitLoopProvenance as s, loopProvenanceSpans as t, provenanceRecordPath as u, provenanceSpansPath as v, surfaceContentHash as w };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { L as LlmSpan, J as JudgeSpan, R as Run, F as FailureClass, T as ToolSpan } from './schema-m0gsnbt3.js';
|
|
2
|
+
import { T as TraceStore } from './store-BcFXE6LG.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Typed query helpers over TraceStore.
|
|
6
|
+
*
|
|
7
|
+
* Not a full SQL engine — a minimal, composable set of operators that
|
|
8
|
+
* cover the canned-pipeline use cases. For ad-hoc analytics, persist to
|
|
9
|
+
* NDJSON and point DuckDB at it; the schema is stable so external SQL
|
|
10
|
+
* tooling works out of the box.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
declare function runsForScenario(store: TraceStore, scenarioId: string): Promise<Run[]>;
|
|
14
|
+
declare function llmSpans(store: TraceStore, runId?: string): Promise<LlmSpan[]>;
|
|
15
|
+
declare function toolSpans(store: TraceStore, runId?: string, toolName?: string): Promise<ToolSpan[]>;
|
|
16
|
+
declare function judgeSpans(store: TraceStore, runId?: string): Promise<JudgeSpan[]>;
|
|
17
|
+
/** Group spans by any key selector. */
|
|
18
|
+
declare function groupBy<T, K extends string | number>(items: T[], key: (t: T) => K): Map<K, T[]>;
|
|
19
|
+
/** Hash tool arguments to an orderless-key-stable string for de-duplication. */
|
|
20
|
+
declare function argHash(args: unknown): string;
|
|
21
|
+
/** Sum an LLM-span array into aggregate token + cost. */
|
|
22
|
+
declare function aggregateLlm(spans: LlmSpan[]): {
|
|
23
|
+
inputTokens: number;
|
|
24
|
+
outputTokens: number;
|
|
25
|
+
cachedTokens: number;
|
|
26
|
+
reasoningTokens: number;
|
|
27
|
+
costUsd: number;
|
|
28
|
+
};
|
|
29
|
+
/** Pick the outcome's failure class when present, else derive 'success' from run status. */
|
|
30
|
+
declare function runFailureClass(run: Run): FailureClass;
|
|
31
|
+
|
|
32
|
+
export { aggregateLlm as a, argHash as b, runsForScenario as c, groupBy as g, judgeSpans as j, llmSpans as l, runFailureClass as r, toolSpans as t };
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
* the per-call `redactor`. The `redactedFields` array on the persisted
|
|
25
25
|
* event lets a reviewer see what was stripped without exposing the values.
|
|
26
26
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
type RawProviderDirection = 'request' | 'response' | 'error';
|
|
28
|
+
interface RawProviderEvent {
|
|
29
29
|
/** Stable id. Generated by the sink if omitted. */
|
|
30
30
|
eventId: string;
|
|
31
31
|
/** Trace context populated by `LlmClient` when the call is wrapped in a span. */
|
|
@@ -59,30 +59,30 @@ export interface RawProviderEvent {
|
|
|
59
59
|
/** Field paths the redactor stripped from this event ('header:Authorization', 'body.apiKey', …). */
|
|
60
60
|
redactedFields: string[];
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
interface RawProviderSinkFilter {
|
|
63
63
|
runId?: string;
|
|
64
64
|
spanId?: string;
|
|
65
65
|
direction?: RawProviderDirection;
|
|
66
66
|
attemptIndex?: number;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
interface RawProviderSink {
|
|
69
69
|
record(event: RawProviderEvent): Promise<void>;
|
|
70
70
|
/** Optional listing — implementations that durably persist (file, db) should support this. */
|
|
71
71
|
list?(filter?: RawProviderSinkFilter): Promise<RawProviderEvent[]>;
|
|
72
72
|
/** Optional teardown for backed implementations. */
|
|
73
73
|
close?(): Promise<void>;
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
type ProviderRedactor = (event: RawProviderEvent) => RawProviderEvent;
|
|
76
76
|
/**
|
|
77
77
|
* Default redactor — strips well-known auth headers and any body field whose
|
|
78
78
|
* key matches the credential pattern. Records every redacted path on
|
|
79
79
|
* `event.redactedFields` so a downstream reviewer can see what was removed.
|
|
80
80
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
declare function defaultProviderRedactor(event: RawProviderEvent): RawProviderEvent;
|
|
82
|
+
interface InMemoryRawProviderSinkOptions {
|
|
83
83
|
redactor?: ProviderRedactor;
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
declare class InMemoryRawProviderSink implements RawProviderSink {
|
|
86
86
|
private events;
|
|
87
87
|
private redactor;
|
|
88
88
|
constructor(opts?: InMemoryRawProviderSinkOptions);
|
|
@@ -90,7 +90,7 @@ export declare class InMemoryRawProviderSink implements RawProviderSink {
|
|
|
90
90
|
list(filter?: RawProviderSinkFilter): Promise<RawProviderEvent[]>;
|
|
91
91
|
size(): number;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
declare class NoopRawProviderSink implements RawProviderSink {
|
|
94
94
|
record(): Promise<void>;
|
|
95
95
|
/**
|
|
96
96
|
* Returns an empty array. Implemented so `assertRunCaptured` does not
|
|
@@ -100,7 +100,7 @@ export declare class NoopRawProviderSink implements RawProviderSink {
|
|
|
100
100
|
*/
|
|
101
101
|
list(): Promise<RawProviderEvent[]>;
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
interface FileSystemRawProviderSinkOptions {
|
|
104
104
|
/** Directory the NDJSON file is written into. Created if missing. */
|
|
105
105
|
dir: string;
|
|
106
106
|
/** File name; default `'raw-provider-events.ndjson'`. */
|
|
@@ -109,7 +109,7 @@ export interface FileSystemRawProviderSinkOptions {
|
|
|
109
109
|
rollAtBytes?: number;
|
|
110
110
|
redactor?: ProviderRedactor;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
declare class FileSystemRawProviderSink implements RawProviderSink {
|
|
113
113
|
private dir;
|
|
114
114
|
private fileName;
|
|
115
115
|
private rollAtBytes;
|
|
@@ -127,5 +127,6 @@ export declare class FileSystemRawProviderSink implements RawProviderSink {
|
|
|
127
127
|
* Best-effort provider id from a base URL. Falls back to the URL host when
|
|
128
128
|
* none of the well-known patterns match.
|
|
129
129
|
*/
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
declare function providerFromBaseUrl(baseUrl: string): string;
|
|
131
|
+
|
|
132
|
+
export { FileSystemRawProviderSink as F, InMemoryRawProviderSink as I, NoopRawProviderSink as N, type ProviderRedactor as P, type RawProviderSink as R, type FileSystemRawProviderSinkOptions as a, type InMemoryRawProviderSinkOptions as b, type RawProviderDirection as c, type RawProviderEvent as d, type RawProviderSinkFilter as e, defaultProviderRedactor as f, providerFromBaseUrl as p };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { a as DatasetScenario, b as Dataset } from './dataset-BbGkaN2I.js';
|
|
2
|
+
import { T as TraceStore } from './store-BcFXE6LG.js';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Red-team battery — adversarial scenario corpus with per-category
|
|
3
6
|
* scorers.
|
|
@@ -10,11 +13,9 @@
|
|
|
10
13
|
* The built-in corpus is intentionally conservative — 40 cases
|
|
11
14
|
* covering the most-seen attack patterns. Extend via `extendCorpus`.
|
|
12
15
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type RedTeamCategory = 'prompt_injection_direct' | 'prompt_injection_indirect' | 'jailbreak_persona' | 'jailbreak_dan' | 'pii_leak' | 'permission_escalation' | 'data_exfil' | 'policy_override';
|
|
17
|
-
export interface RedTeamPayload {
|
|
16
|
+
|
|
17
|
+
type RedTeamCategory = 'prompt_injection_direct' | 'prompt_injection_indirect' | 'jailbreak_persona' | 'jailbreak_dan' | 'pii_leak' | 'permission_escalation' | 'data_exfil' | 'policy_override';
|
|
18
|
+
interface RedTeamPayload {
|
|
18
19
|
category: RedTeamCategory;
|
|
19
20
|
/** The hostile input the agent sees. */
|
|
20
21
|
input: string;
|
|
@@ -28,34 +29,35 @@ export interface RedTeamPayload {
|
|
|
28
29
|
/** Tool names the agent MUST NOT call for this scenario. */
|
|
29
30
|
forbiddenTools?: string[];
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
+
interface RedTeamCase extends DatasetScenario {
|
|
32
33
|
payload: RedTeamPayload;
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
+
interface RedTeamFinding {
|
|
35
36
|
scenarioId: string;
|
|
36
37
|
category: RedTeamCategory;
|
|
37
38
|
passed: boolean;
|
|
38
39
|
reason: string;
|
|
39
40
|
evidence?: string;
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
+
interface RedTeamReport {
|
|
42
43
|
findings: RedTeamFinding[];
|
|
43
44
|
passRateByCategory: Record<RedTeamCategory, number>;
|
|
44
45
|
overallPassRate: number;
|
|
45
46
|
}
|
|
46
47
|
/** Ship a canonical, small corpus. Consumers extend via `extendCorpus`. */
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
declare const DEFAULT_RED_TEAM_CORPUS: RedTeamCase[];
|
|
49
|
+
declare function redTeamDataset(extraCases?: RedTeamCase[]): Dataset;
|
|
49
50
|
/**
|
|
50
51
|
* Score a single agent response against the red-team case.
|
|
51
52
|
* `toolCalls` should be the names of tools the agent invoked during the run.
|
|
52
53
|
*/
|
|
53
|
-
|
|
54
|
+
declare function scoreRedTeamOutput(output: string, toolCalls: string[], rtCase: RedTeamCase): RedTeamFinding;
|
|
54
55
|
/** Aggregate red-team findings into per-category pass rates. */
|
|
55
|
-
|
|
56
|
+
declare function redTeamReport(findings: RedTeamFinding[]): RedTeamReport;
|
|
56
57
|
/**
|
|
57
58
|
* Extract the tool-call names from a corpus run — convenience for the
|
|
58
59
|
* common pipeline (run the scenario → score the run).
|
|
59
60
|
*/
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
declare function toolNamesForRun(store: TraceStore, runId: string): Promise<string[]>;
|
|
62
|
+
|
|
63
|
+
export { DEFAULT_RED_TEAM_CORPUS as D, type RedTeamCase as R, type RedTeamCategory as a, type RedTeamFinding as b, type RedTeamPayload as c, type RedTeamReport as d, redTeamReport as e, redTeamDataset as r, scoreRedTeamOutput as s, toolNamesForRun as t };
|
|
@@ -11,24 +11,24 @@
|
|
|
11
11
|
* eval framework can count how many redactions happened per run
|
|
12
12
|
* (surfaced via `redaction_applied` events).
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
interface RedactionRule {
|
|
15
15
|
id: string;
|
|
16
16
|
pattern: RegExp;
|
|
17
17
|
/** Replacement — e.g. '[PII:email]'. Defaults to `[redacted:{id}]`. */
|
|
18
18
|
replacement?: string;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
interface RedactionReport {
|
|
21
21
|
redactionCount: number;
|
|
22
22
|
byRule: Record<string, number>;
|
|
23
23
|
}
|
|
24
24
|
/** OWASP / common-sense defaults — extend per-domain. */
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
declare const DEFAULT_REDACTION_RULES: RedactionRule[];
|
|
26
|
+
declare const REDACTION_VERSION = "1.0.0";
|
|
27
27
|
/**
|
|
28
28
|
* Redact a single string. Returns the new string and a per-rule count of
|
|
29
29
|
* how many substitutions fired.
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
declare function redactString(input: string, rules?: RedactionRule[]): {
|
|
32
32
|
output: string;
|
|
33
33
|
report: RedactionReport;
|
|
34
34
|
};
|
|
@@ -37,8 +37,9 @@ export declare function redactString(input: string, rules?: RedactionRule[]): {
|
|
|
37
37
|
* Arrays and plain objects are recursed; other types pass through
|
|
38
38
|
* untouched. Circular references throw — traces should be tree-shaped.
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
declare function redactValue(value: unknown, rules?: RedactionRule[], report?: RedactionReport): {
|
|
41
41
|
value: unknown;
|
|
42
42
|
report: RedactionReport;
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
|
|
45
|
+
export { DEFAULT_REDACTION_RULES as D, type RedactionRule as R, type RedactionReport as a, REDACTION_VERSION as b, redactValue as c, redactString as r };
|