@tangle-network/agent-eval 0.95.0 → 0.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +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/analyst/index.js +1 -1
- 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/{chunk-AQ5WQAIV.js → chunk-3NHEO6ZC.js} +2 -2
- package/dist/chunk-3NHEO6ZC.js.map +1 -0
- 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 +824 -107
- package/dist/contract/index.js +145 -1
- package/dist/contract/index.js.map +1 -1
- 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-Dprxvz8r.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/index.js +1 -1
- 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-CIxfBnkl.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/{campaign/types.d.ts → types-BMahhhio.d.ts} +47 -44
- 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/{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/chunk-AQ5WQAIV.js.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,483 @@
|
|
|
1
|
+
import { A as AgentEvalError } from './errors-CzMUYo7b.js';
|
|
2
|
+
import { R as RunRecord } from './run-record-CP2ObebC.js';
|
|
3
|
+
import { TCloud } from '@tangle-network/tcloud';
|
|
4
|
+
import { D as DefaultVerdict } from './verdict-C9MlYujm.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Backend-integrity guard: distinguish "agent failed" from "eval ran against
|
|
8
|
+
* a stub / unconfigured backend." Without this guard a canonical eval can
|
|
9
|
+
* silently report `0/N passed` and look like an agent-quality problem when
|
|
10
|
+
* the LLM was never actually called — the failure mode we just hit running
|
|
11
|
+
* the 4-vertical parallel eval (legal-sandbox-stub returned hard-coded 33-104
|
|
12
|
+
* char strings; gtm/creative defaulted to a cli-bridge that wasn't running).
|
|
13
|
+
*
|
|
14
|
+
* The shape:
|
|
15
|
+
*
|
|
16
|
+
* const report = summarizeBackendIntegrity(records)
|
|
17
|
+
* assertRealBackend(records) // throws BackendIntegrityError if 100% stub
|
|
18
|
+
*
|
|
19
|
+
* A record is "stub-mode" if its `tokenUsage.input === 0 && tokenUsage.output === 0`.
|
|
20
|
+
* (`costUsd` alone is unreliable — some backends successfully call LLMs but
|
|
21
|
+
* don't propagate pricing, producing real tokens with $0 cost.)
|
|
22
|
+
*
|
|
23
|
+
* Verdicts:
|
|
24
|
+
* - `real` — at least one record has nonzero token usage
|
|
25
|
+
* - `stub` — every record is stub-mode (eval ran blind)
|
|
26
|
+
* - `mixed` — some records real, some stub (partial backend failure;
|
|
27
|
+
* often the 429-cascade or auth-half-failed case)
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
interface BackendIntegrityReport {
|
|
31
|
+
/** Total records inspected. */
|
|
32
|
+
totalRecords: number;
|
|
33
|
+
/** Records with input=0 AND output=0 (a stub fingerprint). */
|
|
34
|
+
stubRecords: number;
|
|
35
|
+
/** Records with nonzero token usage (real LLM activity). */
|
|
36
|
+
realRecords: number;
|
|
37
|
+
/** Records where output>0 but costUsd=0 (real LLM, broken cost ledger). */
|
|
38
|
+
uncostedRecords: number;
|
|
39
|
+
/** Sum of input tokens across all records. */
|
|
40
|
+
totalInputTokens: number;
|
|
41
|
+
/** Sum of output tokens across all records. */
|
|
42
|
+
totalOutputTokens: number;
|
|
43
|
+
/** Sum of costUsd across all records. */
|
|
44
|
+
totalCostUsd: number;
|
|
45
|
+
/** Worst-case integrity verdict. */
|
|
46
|
+
verdict: 'real' | 'mixed' | 'stub';
|
|
47
|
+
/** Human-readable diagnosis suitable for terminal output. */
|
|
48
|
+
diagnosis: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Error thrown when an integrity assertion fails. Caller can pattern-match
|
|
52
|
+
* by `code === 'AGENT_EVAL_BACKEND_STUB'` to differentiate from other
|
|
53
|
+
* errors.
|
|
54
|
+
*/
|
|
55
|
+
declare class BackendIntegrityError extends AgentEvalError {
|
|
56
|
+
readonly report: BackendIntegrityReport;
|
|
57
|
+
constructor(message: string, report: BackendIntegrityReport);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Inspect a batch of RunRecords and return an integrity report. Pure
|
|
61
|
+
* function — no I/O, no logging. The caller decides what to do with the
|
|
62
|
+
* verdict (print warning, throw, gate CI, etc.).
|
|
63
|
+
*/
|
|
64
|
+
declare function summarizeBackendIntegrity(records: ReadonlyArray<RunRecord>): BackendIntegrityReport;
|
|
65
|
+
/**
|
|
66
|
+
* Throw BackendIntegrityError if the verdict is 'stub' — i.e. every record
|
|
67
|
+
* shows zero LLM activity. Non-strict callers can pass `{ allowMixed: false }`
|
|
68
|
+
* to also reject mixed verdicts (recommended for CI gates).
|
|
69
|
+
*
|
|
70
|
+
* Real backends pass through silently.
|
|
71
|
+
*/
|
|
72
|
+
declare function assertRealBackend(records: ReadonlyArray<RunRecord>, opts?: {
|
|
73
|
+
allowMixed?: boolean;
|
|
74
|
+
}): BackendIntegrityReport;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Artifact validators.
|
|
78
|
+
*
|
|
79
|
+
* Generic "score a produced artifact" primitive. Tax uses it for PDF form
|
|
80
|
+
* correctness, research for sourced briefs, browser for task assertions, coding
|
|
81
|
+
* for social posts. One interface, many validators; all plug into
|
|
82
|
+
* `BenchmarkRunner` the same way.
|
|
83
|
+
*
|
|
84
|
+
* A validator receives an `Artifact` (file on disk, JSON blob, text, binary)
|
|
85
|
+
* plus a `ValidationContext` (scenario id, the turns that produced it) and
|
|
86
|
+
* returns a `ValidationResult` with pass/fail + 0..1 score + structured
|
|
87
|
+
* issues.
|
|
88
|
+
*/
|
|
89
|
+
interface Artifact {
|
|
90
|
+
/** Logical kind — validators type-guard on this */
|
|
91
|
+
kind: 'file' | 'json' | 'text' | 'binary' | string;
|
|
92
|
+
/** Filesystem-style path, optional */
|
|
93
|
+
path?: string;
|
|
94
|
+
/** String content for text/json/file kinds */
|
|
95
|
+
content?: string;
|
|
96
|
+
/** Binary content (if kind === 'binary') */
|
|
97
|
+
bytes?: Uint8Array;
|
|
98
|
+
/** Caller-supplied metadata (mimeType, sha256, size, etc.) */
|
|
99
|
+
metadata?: Record<string, unknown>;
|
|
100
|
+
}
|
|
101
|
+
interface ValidationContext {
|
|
102
|
+
scenarioId: string;
|
|
103
|
+
turnIndex?: number;
|
|
104
|
+
/** Prior artifacts for multi-artifact scenarios */
|
|
105
|
+
priorArtifacts?: Artifact[];
|
|
106
|
+
/** Free-form hints the validator uses for domain-specific checks */
|
|
107
|
+
hints?: Record<string, unknown>;
|
|
108
|
+
}
|
|
109
|
+
interface ValidationIssue {
|
|
110
|
+
severity: 'error' | 'warning' | 'info';
|
|
111
|
+
message: string;
|
|
112
|
+
/** Optional path into the artifact (e.g. JSON path or byte offset) */
|
|
113
|
+
locus?: string;
|
|
114
|
+
}
|
|
115
|
+
interface ValidationResult {
|
|
116
|
+
pass: boolean;
|
|
117
|
+
/** 0–1 normalized score. Validators should be monotonic in pass-ness. */
|
|
118
|
+
score: number;
|
|
119
|
+
issues: ValidationIssue[];
|
|
120
|
+
/** Diagnostic payload for reporters */
|
|
121
|
+
evidence?: Record<string, unknown>;
|
|
122
|
+
}
|
|
123
|
+
interface ArtifactValidator {
|
|
124
|
+
/** Stable identifier for the validator; appears in reports. */
|
|
125
|
+
name: string;
|
|
126
|
+
/** Optional description for human-facing reports. */
|
|
127
|
+
description?: string;
|
|
128
|
+
/** Called once per artifact; validators are expected to be pure + idempotent. */
|
|
129
|
+
validate(artifact: Artifact, context: ValidationContext): Promise<ValidationResult>;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Run every validator on the same artifact; aggregate pass as AND, score as
|
|
133
|
+
* (weighted) mean, issues concatenated. Weights default to 1 each.
|
|
134
|
+
*/
|
|
135
|
+
declare function composeValidators(validators: ArtifactValidator[], options?: {
|
|
136
|
+
name?: string;
|
|
137
|
+
weights?: number[];
|
|
138
|
+
}): ArtifactValidator;
|
|
139
|
+
/** Pass if the artifact body matches a provided regex. */
|
|
140
|
+
declare function regexMatch(name: string, pattern: RegExp): ArtifactValidator;
|
|
141
|
+
/** Pass if JSON parses and every required key is present. */
|
|
142
|
+
declare function jsonHasKeys(name: string, requiredPaths: string[]): ArtifactValidator;
|
|
143
|
+
/** Pass if min ≤ byte length ≤ max. */
|
|
144
|
+
declare function byteLengthRange(name: string, min: number, max: number): ArtifactValidator;
|
|
145
|
+
/** Pass if the artifact contains every required substring (case-insensitive by default). */
|
|
146
|
+
declare function containsAll(name: string, required: string[], options?: {
|
|
147
|
+
caseSensitive?: boolean;
|
|
148
|
+
}): ArtifactValidator;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Completion verifier — the task-completion oracle.
|
|
152
|
+
*
|
|
153
|
+
* Answers the only eval question that is not a proxy: did the agent actually
|
|
154
|
+
* COMPLETE the task — produce every required deliverable, persisted and
|
|
155
|
+
* correct — rather than describe what should be done. A fluent transcript
|
|
156
|
+
* that never produces the artifact scores zero here.
|
|
157
|
+
*
|
|
158
|
+
* Per requirement, a two-stage check:
|
|
159
|
+
* 1. Structural — a produced item (vault artifact / approved proposal /
|
|
160
|
+
* tool call) of the right kind is matched against the requirement and
|
|
161
|
+
* carries non-empty content. Deterministic; no LLM.
|
|
162
|
+
* 2. Correctness — only if structurally present AND the matched item
|
|
163
|
+
* carries content, one targeted check decides whether that item
|
|
164
|
+
* actually fulfils the requirement. A hallucinated artifact fails here;
|
|
165
|
+
* an absent one already failed stage 1.
|
|
166
|
+
*
|
|
167
|
+
* `completionRate` is satisfied / total. Quality dimensions are meaningless
|
|
168
|
+
* on an incomplete task — callers gate on `fullyComplete` / `completionRate`
|
|
169
|
+
* before scoring quality.
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
/** What kind of produced state can satisfy a requirement structurally. */
|
|
173
|
+
type SatisfiedBy = 'artifact' | 'proposal' | 'tool-call' | 'any';
|
|
174
|
+
interface CompletionRequirement {
|
|
175
|
+
/** Stable id from the task gold (e.g. a persona's `expected_requirements[].req_id`). */
|
|
176
|
+
reqId: string;
|
|
177
|
+
/** Human-readable description of the required deliverable. */
|
|
178
|
+
title: string;
|
|
179
|
+
/** Optional kind/category hint, matched against a produced item's kind. */
|
|
180
|
+
category?: string;
|
|
181
|
+
/** What produced state satisfies this requirement. Defaults to 'any'. */
|
|
182
|
+
satisfiedBy?: SatisfiedBy;
|
|
183
|
+
}
|
|
184
|
+
interface TaskGold {
|
|
185
|
+
taskId: string;
|
|
186
|
+
requirements: CompletionRequirement[];
|
|
187
|
+
}
|
|
188
|
+
interface ProducedProposal {
|
|
189
|
+
id: string;
|
|
190
|
+
title: string;
|
|
191
|
+
status: 'pending' | 'approved' | 'rejected';
|
|
192
|
+
/** Optional persisted body — when present, enables a correctness check. */
|
|
193
|
+
content?: string;
|
|
194
|
+
}
|
|
195
|
+
/** Everything observable about what a run actually produced. */
|
|
196
|
+
interface ProducedState {
|
|
197
|
+
/** Persisted vault artifacts. Reuses the shared `Artifact` shape. */
|
|
198
|
+
artifacts: Artifact[];
|
|
199
|
+
/** Proposals / filings the agent created. */
|
|
200
|
+
proposals: ProducedProposal[];
|
|
201
|
+
/** Names of tools the agent invoked. */
|
|
202
|
+
toolCalls: string[];
|
|
203
|
+
}
|
|
204
|
+
interface RequirementCheck {
|
|
205
|
+
reqId: string;
|
|
206
|
+
title: string;
|
|
207
|
+
/** A produced item of the right kind matched the requirement, non-empty. */
|
|
208
|
+
structurallyPresent: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Whether the matched item actually fulfils the requirement. `null` when
|
|
211
|
+
* not structurally present, or when the matched item carries no content
|
|
212
|
+
* to assess.
|
|
213
|
+
*/
|
|
214
|
+
correct: boolean | null;
|
|
215
|
+
/** structurallyPresent && correct !== false. */
|
|
216
|
+
satisfied: boolean;
|
|
217
|
+
/** Human-readable evidence for the verdict. */
|
|
218
|
+
evidence: string[];
|
|
219
|
+
}
|
|
220
|
+
/** Extends the substrate verdict spine: `valid` = `fullyComplete` and
|
|
221
|
+
* `score` = `completionRate` — derived in `completionVerdict()`, the one
|
|
222
|
+
* place those equalities hold by construction. */
|
|
223
|
+
interface CompletionVerdict extends DefaultVerdict {
|
|
224
|
+
taskId: string;
|
|
225
|
+
requirements: RequirementCheck[];
|
|
226
|
+
/** satisfied / total requirements. */
|
|
227
|
+
completionRate: number;
|
|
228
|
+
/** Every requirement satisfied. */
|
|
229
|
+
fullyComplete: boolean;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Construct a `CompletionVerdict` from the per-requirement checks, deriving
|
|
233
|
+
* `completionRate` / `fullyComplete` and the spine fields (`valid` =
|
|
234
|
+
* `fullyComplete`, `score` = `completionRate`) in one place. Throws on zero
|
|
235
|
+
* requirements — a verdict over nothing is a misconfiguration, mirroring
|
|
236
|
+
* `verifyCompletion`'s gold-spec guard.
|
|
237
|
+
*/
|
|
238
|
+
declare function completionVerdict(input: {
|
|
239
|
+
taskId: string;
|
|
240
|
+
requirements: RequirementCheck[];
|
|
241
|
+
}): CompletionVerdict;
|
|
242
|
+
/**
|
|
243
|
+
* Decides whether a produced item's content actually fulfils a requirement.
|
|
244
|
+
* Injected so the structural verifier stays pure and unit-testable; the
|
|
245
|
+
* production implementation is `createLlmCorrectnessChecker`.
|
|
246
|
+
*/
|
|
247
|
+
type CorrectnessChecker = (requirement: CompletionRequirement, content: string) => Promise<{
|
|
248
|
+
correct: boolean;
|
|
249
|
+
reason: string;
|
|
250
|
+
}>;
|
|
251
|
+
/**
|
|
252
|
+
* Verify whether a run completed the task. `checkCorrectness` is injected —
|
|
253
|
+
* `createLlmCorrectnessChecker` for production, a deterministic stub in tests.
|
|
254
|
+
*
|
|
255
|
+
* Throws on a gold spec with no requirements: an eval task that requires
|
|
256
|
+
* nothing is a misconfiguration, not a vacuously-complete task.
|
|
257
|
+
*/
|
|
258
|
+
declare function verifyCompletion(gold: TaskGold, state: ProducedState, checkCorrectness: CorrectnessChecker): Promise<CompletionVerdict>;
|
|
259
|
+
interface LlmCorrectnessCheckerOpts {
|
|
260
|
+
model?: string;
|
|
261
|
+
/** Max chars of artifact content sent to the checker. */
|
|
262
|
+
maxContentChars?: number;
|
|
263
|
+
}
|
|
264
|
+
/** Parse the correctness checker's model response. Fails loud on a bad shape. */
|
|
265
|
+
declare function parseCorrectnessResponse(raw: string): {
|
|
266
|
+
correct: boolean;
|
|
267
|
+
reason: string;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* Production `CorrectnessChecker` — one LLM call per matched artifact,
|
|
271
|
+
* deterministic (temperature 0), structured JSON out. Judges fulfilment
|
|
272
|
+
* only: a plan, a gesture, or a description of what should be done does not
|
|
273
|
+
* fulfil a requirement — the artifact must BE the deliverable.
|
|
274
|
+
*/
|
|
275
|
+
declare function createLlmCorrectnessChecker(tc: TCloud, opts?: LlmCorrectnessCheckerOpts): CorrectnessChecker;
|
|
276
|
+
/**
|
|
277
|
+
* Deterministic `CorrectnessChecker` — the no-LLM counterpart to
|
|
278
|
+
* `createLlmCorrectnessChecker`. A produced item fulfils a requirement when its
|
|
279
|
+
* content is substantive (≥ `minContentLength` chars) AND recalls ≥ `minRecall`
|
|
280
|
+
* of the requirement title's significant tokens. No network.
|
|
281
|
+
*
|
|
282
|
+
* Polarity-blind: token recall credits a negation that contains the
|
|
283
|
+
* requirement's tokens ("I will NOT produce the comparison" recalls every token
|
|
284
|
+
* of "produce the comparison"). The structural match stage is ALSO lexical, so
|
|
285
|
+
* pairing the two collapses to a single gameable gate. Use this only as an
|
|
286
|
+
* opt-in structural pre-filter or for tasks whose requirements have no polarity
|
|
287
|
+
* to invert; for produced-state grading the correctness checker MUST be semantic
|
|
288
|
+
* (`createLlmCorrectnessChecker`). See the anti-game fixtures in the test suite.
|
|
289
|
+
*/
|
|
290
|
+
declare function createTokenRecallChecker(opts?: {
|
|
291
|
+
minRecall?: number;
|
|
292
|
+
minContentLength?: number;
|
|
293
|
+
}): CorrectnessChecker;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Produced-state extraction — normalize a run's runtime event stream into the
|
|
297
|
+
* typed `ProducedState` the completion oracle consumes.
|
|
298
|
+
*
|
|
299
|
+
* `ProducedState` answers "what did the agent actually produce" — vault
|
|
300
|
+
* artifacts, proposals, tool calls. The runtime emits these as a stream of
|
|
301
|
+
* events; this module is the single normalization point from that stream to
|
|
302
|
+
* the shape `verifyCompletion` expects.
|
|
303
|
+
*
|
|
304
|
+
* Input is structurally typed (`RuntimeEventLike`) so this module does not
|
|
305
|
+
* depend on agent-runtime — agent-runtime's `RuntimeStreamEvent` satisfies it
|
|
306
|
+
* structurally. The `content` on `ArtifactEventLike` and the whole
|
|
307
|
+
* `proposal_created` variant are the runtime-side enrichments this contract
|
|
308
|
+
* requires; the runtime emits them, this module consumes them.
|
|
309
|
+
*/
|
|
310
|
+
|
|
311
|
+
/** A tool the agent invoked. */
|
|
312
|
+
interface ToolCallEventLike {
|
|
313
|
+
type: 'tool_call';
|
|
314
|
+
toolName: string;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* An artifact the agent produced. `content` is the enriched field — the
|
|
318
|
+
* runtime's base `artifact` event carries only metadata; the completion
|
|
319
|
+
* oracle needs the body to verify the deliverable, so the runtime emits it.
|
|
320
|
+
*/
|
|
321
|
+
interface ArtifactEventLike {
|
|
322
|
+
type: 'artifact';
|
|
323
|
+
artifactId: string;
|
|
324
|
+
name?: string;
|
|
325
|
+
mimeType?: string;
|
|
326
|
+
uri?: string;
|
|
327
|
+
content?: string;
|
|
328
|
+
}
|
|
329
|
+
/** A proposal / filing the agent created. */
|
|
330
|
+
interface ProposalEventLike {
|
|
331
|
+
type: 'proposal_created';
|
|
332
|
+
proposalId: string;
|
|
333
|
+
title: string;
|
|
334
|
+
status?: 'pending' | 'approved' | 'rejected';
|
|
335
|
+
content?: string;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* The subset of runtime stream events `extractProducedState` consumes.
|
|
339
|
+
* agent-runtime's full `RuntimeStreamEvent` union satisfies this structurally;
|
|
340
|
+
* the `{ type: string }` catch-all keeps the input permissive so callers can
|
|
341
|
+
* pass the whole unfiltered telemetry stream — unrecognized events are skipped.
|
|
342
|
+
*/
|
|
343
|
+
type RuntimeEventLike = ToolCallEventLike | ArtifactEventLike | ProposalEventLike | {
|
|
344
|
+
type: string;
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* Normalize a run's runtime event stream into `ProducedState`.
|
|
348
|
+
*
|
|
349
|
+
* Pure and total — unrecognized event types are skipped. `toolCalls` is
|
|
350
|
+
* deduplicated by name in first-seen order (completion cares about a tool's
|
|
351
|
+
* presence, not its call count). An artifact with neither a name nor a uri
|
|
352
|
+
* still yields an entry keyed by its `artifactId` so it is never silently
|
|
353
|
+
* dropped; an artifact with no `content` yields empty content, which the
|
|
354
|
+
* completion oracle's structural check then rejects on its own.
|
|
355
|
+
*/
|
|
356
|
+
declare function extractProducedState(events: readonly RuntimeEventLike[]): ProducedState;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Pre-registered hypotheses — declare what you're testing BEFORE the
|
|
360
|
+
* run, check it AFTER. Prevents p-hacking, optional stopping, and the
|
|
361
|
+
* "we ran until it looked good" failure mode.
|
|
362
|
+
*
|
|
363
|
+
* Manifest is a plain JSON-friendly object. Sign it with a content hash
|
|
364
|
+
* + timestamp; the registered record becomes immutable. Post-run,
|
|
365
|
+
* evaluate the manifest against observed results — the library refuses
|
|
366
|
+
* to let you re-interpret a different metric as the declared one.
|
|
367
|
+
*/
|
|
368
|
+
interface HypothesisManifest {
|
|
369
|
+
id: string;
|
|
370
|
+
/** Human prose — goes into the audit trail. */
|
|
371
|
+
hypothesis: string;
|
|
372
|
+
/** Metric the hypothesis claims to move. */
|
|
373
|
+
metric: string;
|
|
374
|
+
/** 'increase' = candidate should score higher than baseline; 'decrease' = lower. */
|
|
375
|
+
direction: 'increase' | 'decrease';
|
|
376
|
+
/** Minimum effect size to count (same units as the metric). */
|
|
377
|
+
minEffect: number;
|
|
378
|
+
/** Alpha threshold. */
|
|
379
|
+
alpha: number;
|
|
380
|
+
/** Target statistical power at which sample size was pre-computed. */
|
|
381
|
+
power: number;
|
|
382
|
+
/** Declared N per arm before running. */
|
|
383
|
+
preRegisteredN: number;
|
|
384
|
+
/** ISO8601 timestamp the manifest was registered. */
|
|
385
|
+
registeredAt: string;
|
|
386
|
+
/** Optional identifiers to tie into the trace corpus. */
|
|
387
|
+
baselineLabel?: string;
|
|
388
|
+
candidateLabel?: string;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Identifier for the hashing scheme used to produce `contentHash`.
|
|
392
|
+
*
|
|
393
|
+
* `'sha256-content'` — sha256 hex over the canonicalized manifest with
|
|
394
|
+
* the `contentHash` and `algo` fields stripped. Held as a string union
|
|
395
|
+
* so future schemes can be added without breaking parsers; SignedManifest
|
|
396
|
+
* values without `algo` deserialize cleanly because the field is optional.
|
|
397
|
+
*/
|
|
398
|
+
type SignedManifestAlgo = 'sha256-content';
|
|
399
|
+
interface SignedManifest extends HypothesisManifest {
|
|
400
|
+
/** sha256 hex of canonicalized manifest (everything except contentHash and algo). */
|
|
401
|
+
contentHash: string;
|
|
402
|
+
/**
|
|
403
|
+
* Algorithm string describing how `contentHash` was produced.
|
|
404
|
+
*
|
|
405
|
+
* Optional on the type so serialized manifests without it still parse,
|
|
406
|
+
* but ALWAYS populated by {@link signManifest}. Consumers that want to
|
|
407
|
+
* enforce a known algorithm should reject manifests where this field
|
|
408
|
+
* is missing or unrecognized.
|
|
409
|
+
*/
|
|
410
|
+
algo?: SignedManifestAlgo;
|
|
411
|
+
}
|
|
412
|
+
interface HypothesisResult {
|
|
413
|
+
manifest: SignedManifest;
|
|
414
|
+
observedN: number;
|
|
415
|
+
observedEffect: number;
|
|
416
|
+
observedPValue: number;
|
|
417
|
+
/** True iff the observed effect hits the pre-declared direction with
|
|
418
|
+
* magnitude ≥ minEffect AND p < alpha. */
|
|
419
|
+
confirmed: boolean;
|
|
420
|
+
/** Enumerated reasons the hypothesis was rejected (each a machine-tag). */
|
|
421
|
+
rejectionReasons: Array<'wrong_direction' | 'effect_too_small' | 'not_significant' | 'undersampled'>;
|
|
422
|
+
notes?: string;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Deterministic JSON canonicalization — sort object keys recursively.
|
|
426
|
+
*
|
|
427
|
+
* Two semantically-equal objects produce byte-identical canonicalized output;
|
|
428
|
+
* this is what makes a content-hash stable across encoders, key insertion
|
|
429
|
+
* orders, and runtime versions. Exported for any consumer that needs the same
|
|
430
|
+
* canonicalization guarantee outside the manifest-signing path (e.g., signing
|
|
431
|
+
* an artifact bundle, hashing a dataset version, etc.).
|
|
432
|
+
*/
|
|
433
|
+
declare function canonicalize(v: unknown): unknown;
|
|
434
|
+
/**
|
|
435
|
+
* SHA-256 hex (full 64 chars) over the canonicalized JSON encoding of `obj`.
|
|
436
|
+
*
|
|
437
|
+
* The same primitive `signManifest` and `verifyManifest` are built on, exposed
|
|
438
|
+
* directly so consumers signing arbitrary structured content (artifact bundles,
|
|
439
|
+
* production packets, dataset manifests, etc.) don't have to re-derive
|
|
440
|
+
* canonicalize+sha256 from scratch.
|
|
441
|
+
*
|
|
442
|
+
* Stable across:
|
|
443
|
+
* - object key insertion order (canonicalization sorts keys recursively)
|
|
444
|
+
* - encoder choice (UTF-8 via TextEncoder, fixed)
|
|
445
|
+
* - runtime (uses the Web Crypto subtle digest, present in Node ≥18 and browsers)
|
|
446
|
+
*
|
|
447
|
+
* Named `hashJson` to disambiguate from `prompt-registry.ts`'s `hashContent`,
|
|
448
|
+
* which takes a string input and returns a truncated 12-char prompt id.
|
|
449
|
+
* Use `hashJson` when you mean "canonicalize then hash."
|
|
450
|
+
*
|
|
451
|
+
* @example
|
|
452
|
+
* const hash = await hashJson({ id: '1', kind: 'spec' })
|
|
453
|
+
* // 'a3f1...' (64 hex chars)
|
|
454
|
+
*/
|
|
455
|
+
declare function hashJson<T>(obj: T): Promise<string>;
|
|
456
|
+
/**
|
|
457
|
+
* Sign a manifest with a SHA-256 content hash.
|
|
458
|
+
*
|
|
459
|
+
* The hash covers the canonicalized manifest with the `contentHash`
|
|
460
|
+
* and `algo` fields stripped; this lets verifiers re-sign the rest and
|
|
461
|
+
* compare. Returned manifest always carries `algo: 'sha256-content'`
|
|
462
|
+
* so downstream consumers can identify the scheme; manifests without
|
|
463
|
+
* `algo` still verify because it is stripped before hashing on both sides.
|
|
464
|
+
*/
|
|
465
|
+
declare function signManifest(m: HypothesisManifest): Promise<SignedManifest>;
|
|
466
|
+
/**
|
|
467
|
+
* Verify that a signed manifest has not been tampered with.
|
|
468
|
+
*
|
|
469
|
+
* Strips `contentHash` and `algo` before re-signing so manifests without
|
|
470
|
+
* `algo` verify identically to ones that carry it.
|
|
471
|
+
*/
|
|
472
|
+
declare function verifyManifest(m: SignedManifest): Promise<boolean>;
|
|
473
|
+
/**
|
|
474
|
+
* Evaluate a pre-registered hypothesis against observed results.
|
|
475
|
+
* Mechanical — no re-interpretation permitted.
|
|
476
|
+
*/
|
|
477
|
+
declare function evaluateHypothesis(manifest: SignedManifest, observed: {
|
|
478
|
+
n: number;
|
|
479
|
+
effect: number;
|
|
480
|
+
pValue: number;
|
|
481
|
+
}): Promise<HypothesisResult>;
|
|
482
|
+
|
|
483
|
+
export { type Artifact as A, type BackendIntegrityReport as B, type CompletionRequirement as C, parseCorrectnessResponse as D, regexMatch as E, signManifest as F, summarizeBackendIntegrity as G, type HypothesisManifest as H, verifyCompletion as I, verifyManifest as J, type LlmCorrectnessCheckerOpts as L, type ProducedState as P, type RuntimeEventLike as R, type SignedManifest as S, type TaskGold as T, type ValidationContext as V, type CompletionVerdict as a, type CorrectnessChecker as b, type ArtifactEventLike as c, type ArtifactValidator as d, BackendIntegrityError as e, type HypothesisResult as f, type ProducedProposal as g, type ProposalEventLike as h, type RequirementCheck as i, type SatisfiedBy as j, type SignedManifestAlgo as k, type ToolCallEventLike as l, type ValidationIssue as m, type ValidationResult as n, assertRealBackend as o, byteLengthRange as p, canonicalize as q, completionVerdict as r, composeValidators as s, containsAll as t, createLlmCorrectnessChecker as u, createTokenRecallChecker as v, evaluateHypothesis as w, extractProducedState as x, hashJson as y, jsonHasKeys as z };
|
package/dist/prm/index.d.ts
CHANGED
|
@@ -1,5 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { P as PrmGradedTrace, S as StepRubric, a as PrmGrader } from '../rubric-Cc6UHvUb.js';
|
|
2
|
+
export { G as GradedStep, b as StepContext, i as isPrmVerdict } from '../rubric-Cc6UHvUb.js';
|
|
3
|
+
import { T as TraceStore } from '../store-BcFXE6LG.js';
|
|
4
|
+
import { S as Span } from '../schema-m0gsnbt3.js';
|
|
5
|
+
import '../trajectory-2TkpSEVh.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Export PRM-graded traces as training data for downstream reward-model
|
|
9
|
+
* fine-tuning. Canonical format is NDJSON of
|
|
10
|
+
* `{ trajectory_text, step_index, rubric, score }` so a small model can
|
|
11
|
+
* learn to predict step rewards from step context.
|
|
12
|
+
*
|
|
13
|
+
* The framework doesn't train the model — we emit the data; callers
|
|
14
|
+
* plug it into their preferred trainer (TRL, Unsloth, custom).
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
interface PrmTrainingSample {
|
|
18
|
+
runId: string;
|
|
19
|
+
spanId: string;
|
|
20
|
+
rubricId: string;
|
|
21
|
+
score: number;
|
|
22
|
+
/** Serialized step context — step + surrounding conversation. */
|
|
23
|
+
context: {
|
|
24
|
+
priorTurns: Array<{
|
|
25
|
+
role: string;
|
|
26
|
+
content: string;
|
|
27
|
+
}>;
|
|
28
|
+
step: {
|
|
29
|
+
kind: Span['kind'];
|
|
30
|
+
text: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/** Optional evidence + rationale for auditability. */
|
|
34
|
+
rationale?: string;
|
|
35
|
+
evidence?: string;
|
|
36
|
+
}
|
|
37
|
+
declare function exportTrainingData(store: TraceStore, graded: PrmGradedTrace[], options?: {
|
|
38
|
+
contextWindow?: number;
|
|
39
|
+
}): Promise<PrmTrainingSample[]>;
|
|
40
|
+
/** NDJSON serialization — write to file or stream directly to a trainer. */
|
|
41
|
+
declare function toNdjson(samples: PrmTrainingSample[]): string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Built-in reference rubrics. Consumers combine these with domain
|
|
45
|
+
* rubrics. All are deterministic, rule-based — cheap to run + easy
|
|
46
|
+
* to unit-test. LLM-based rubrics are trivially authored by
|
|
47
|
+
* following the StepRubric contract.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/** Penalize very short or very long assistant outputs. */
|
|
51
|
+
declare function outputLengthRubric(args?: {
|
|
52
|
+
minChars?: number;
|
|
53
|
+
maxChars?: number;
|
|
54
|
+
weight?: number;
|
|
55
|
+
}): StepRubric;
|
|
56
|
+
/** Reward tool calls that succeeded (status='ok') with an informative result. */
|
|
57
|
+
declare function toolSuccessRubric(args?: {
|
|
58
|
+
weight?: number;
|
|
59
|
+
}): StepRubric;
|
|
60
|
+
/** Penalize tool calls that duplicate a prior call with identical args. */
|
|
61
|
+
declare function toolNonRedundantRubric(args?: {
|
|
62
|
+
weight?: number;
|
|
63
|
+
}): StepRubric;
|
|
64
|
+
/** Penalize LLM outputs that contain common refusal markers when a refusal
|
|
65
|
+
* is NOT expected (caller inverts weight for scenarios where refusal IS expected). */
|
|
66
|
+
declare function nonRefusalRubric(args?: {
|
|
67
|
+
markers?: RegExp[];
|
|
68
|
+
weight?: number;
|
|
69
|
+
}): StepRubric;
|
|
70
|
+
/** Reward outputs that invoke the next-step tool the trajectory actually uses
|
|
71
|
+
* (i.e. the LLM span announced "I will call X" and the following tool span IS X). */
|
|
72
|
+
declare function toolIntentAlignmentRubric(args?: {
|
|
73
|
+
weight?: number;
|
|
74
|
+
}): StepRubric;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Inference-time PRM scoring — pick the best of N candidate trajectories
|
|
78
|
+
* using a trained reward model (or a rule-based PRM as a proxy).
|
|
79
|
+
*
|
|
80
|
+
* The canonical Best-of-N pattern: generate N completions, score each
|
|
81
|
+
* with a PRM, pick the winner. Here the scoring loop is framework-agnostic
|
|
82
|
+
* — supply a TraceStore + PrmGrader + N run IDs → get ranking + winner.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
interface BestOfNResult {
|
|
86
|
+
winner: PrmGradedTrace;
|
|
87
|
+
ranked: PrmGradedTrace[];
|
|
88
|
+
/** Standard deviation of aggregate scores — small = candidates were homogenous. */
|
|
89
|
+
stdDev: number;
|
|
90
|
+
}
|
|
91
|
+
interface PrmBestOfNOptions {
|
|
92
|
+
/** Max concurrent `grader.grade` calls. Default 4. */
|
|
93
|
+
concurrency?: number;
|
|
94
|
+
}
|
|
95
|
+
declare function prmBestOfN(store: TraceStore, grader: PrmGrader, runIds: string[], options?: PrmBestOfNOptions): Promise<BestOfNResult>;
|
|
96
|
+
/**
|
|
97
|
+
* Weighted vote across multiple graders — use when you want a PRM ensemble
|
|
98
|
+
* (e.g. rule-based + LLM-based + trained model). Each grader produces its
|
|
99
|
+
* own ranking; we aggregate via rank-sum (Borda count) so no single grader
|
|
100
|
+
* dominates via a different score scale.
|
|
101
|
+
*/
|
|
102
|
+
declare function prmEnsembleBestOfN(store: TraceStore, graders: PrmGrader[], runIds: string[], options?: PrmBestOfNOptions): Promise<BestOfNResult>;
|
|
103
|
+
|
|
104
|
+
export { type BestOfNResult, type PrmBestOfNOptions, PrmGradedTrace, PrmGrader, type PrmTrainingSample, StepRubric, exportTrainingData, nonRefusalRubric, outputLengthRubric, prmBestOfN, prmEnsembleBestOfN, toNdjson, toolIntentAlignmentRubric, toolNonRedundantRubric, toolSuccessRubric };
|