@velum-labs/routekit-eval-setup 1.4.0 → 1.5.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/dist/adapters/authoring-responses-request.d.ts +5 -0
- package/dist/adapters/authoring-responses-request.js +38 -0
- package/dist/adapters/evaluation-evidence-freshness.d.ts +7 -0
- package/dist/adapters/evaluation-evidence-freshness.js +76 -0
- package/dist/adapters/git-task-history.d.ts +67 -0
- package/dist/adapters/git-task-history.js +171 -0
- package/dist/adapters/integrated-repository-history.d.ts +21 -0
- package/dist/adapters/integrated-repository-history.js +175 -0
- package/dist/adapters/repository-command-diagnostic.d.ts +8 -0
- package/dist/adapters/repository-command-diagnostic.js +46 -0
- package/dist/adapters/repository-command-evidence.d.ts +13 -0
- package/dist/adapters/repository-command-evidence.js +102 -0
- package/dist/adapters/repository-command-runner.d.ts +238 -0
- package/dist/adapters/repository-command-runner.js +1483 -0
- package/dist/adapters/repository-import-context.d.ts +47 -0
- package/dist/adapters/repository-import-context.js +469 -0
- package/dist/adapters/repository-node-test-reporter.d.ts +3 -0
- package/dist/adapters/repository-node-test-reporter.js +27 -0
- package/dist/adapters/repository-review-evidence.d.ts +39 -0
- package/dist/adapters/repository-review-evidence.js +632 -0
- package/dist/adapters/repository-seed-selection.d.ts +7 -0
- package/dist/adapters/repository-seed-selection.js +79 -0
- package/dist/adapters/repository-solution-edits.d.ts +49 -0
- package/dist/adapters/repository-solution-edits.js +136 -0
- package/dist/adapters/repository-vitest-phase-adapter.d.ts +8 -0
- package/dist/adapters/repository-vitest-phase-adapter.js +310 -0
- package/dist/adapters/repository-vitest-reporter.d.ts +24 -0
- package/dist/adapters/repository-vitest-reporter.js +314 -0
- package/dist/adapters/strict-authoring-schema.d.ts +5 -0
- package/dist/adapters/strict-authoring-schema.js +158 -0
- package/dist/adapters/test-discovery.d.ts +30 -0
- package/dist/adapters/test-discovery.js +124 -0
- package/dist/adapters/typescript-repository-index.d.ts +51 -0
- package/dist/adapters/typescript-repository-index.js +226 -0
- package/dist/agentic-capabilities-protocol.d.ts +1373 -0
- package/dist/agentic-capabilities-protocol.js +786 -0
- package/dist/case-checkpoint-store.d.ts +29 -0
- package/dist/case-checkpoint-store.js +133 -0
- package/dist/case-pipeline-protocol-v2.d.ts +184 -0
- package/dist/case-pipeline-protocol-v2.js +193 -0
- package/dist/case-pipeline-protocol.d.ts +2626 -0
- package/dist/case-pipeline-protocol.js +371 -0
- package/dist/effect-api.d.ts +74 -12
- package/dist/effect-api.js +56 -7
- package/dist/errors.d.ts +31 -0
- package/dist/errors.js +10 -0
- package/dist/eval-capability-execution-envelope.d.ts +64 -0
- package/dist/eval-capability-execution-envelope.js +98 -0
- package/dist/eval-capability-policy.d.ts +90 -0
- package/dist/eval-capability-policy.js +107 -0
- package/dist/eval-event-log.d.ts +51 -0
- package/dist/eval-event-log.js +69 -10
- package/dist/evaluation-authoring-policy.d.ts +18 -0
- package/dist/evaluation-authoring-policy.js +19 -0
- package/dist/evaluation-authoring-validation.d.ts +22 -0
- package/dist/evaluation-authoring-validation.js +72 -0
- package/dist/evaluation-evidence.d.ts +20 -0
- package/dist/evaluation-evidence.js +319 -0
- package/dist/evaluation-grader-calibration-protocol.d.ts +108 -0
- package/dist/evaluation-grader-calibration-protocol.js +80 -0
- package/dist/evaluation-grader-calibration.d.ts +18 -0
- package/dist/evaluation-grader-calibration.js +334 -0
- package/dist/evaluation-grading-policy.d.ts +24 -0
- package/dist/evaluation-grading-policy.js +54 -0
- package/dist/evaluation-proposal-policy.d.ts +4 -0
- package/dist/evaluation-proposal-policy.js +91 -0
- package/dist/evaluation-source-retrieval.d.ts +68 -0
- package/dist/evaluation-source-retrieval.js +513 -0
- package/dist/evaluation-structure-policy.d.ts +29 -0
- package/dist/evaluation-structure-policy.js +138 -0
- package/dist/index.d.ts +124 -19
- package/dist/index.js +69 -12
- package/dist/inspection.js +2 -3
- package/dist/project-artifacts.d.ts +2 -2
- package/dist/project-artifacts.js +26 -121
- package/dist/project-authoring.d.ts +66 -5
- package/dist/project-authoring.js +783 -109
- package/dist/project-contracts.d.ts +292 -82
- package/dist/project-contracts.js +65 -7
- package/dist/project-store.js +2 -1
- package/dist/project-workflow.d.ts +3 -3
- package/dist/project-workflow.js +116 -18
- package/dist/repository-adversary-protocol.d.ts +64 -0
- package/dist/repository-adversary-protocol.js +105 -0
- package/dist/repository-behavior-protocol.d.ts +188 -0
- package/dist/repository-behavior-protocol.js +202 -0
- package/dist/repository-benchmark-protocol.d.ts +487 -0
- package/dist/repository-benchmark-protocol.js +96 -0
- package/dist/repository-execution-protocol.d.ts +150 -0
- package/dist/repository-execution-protocol.js +38 -0
- package/dist/repository-fixture-instructions.d.ts +3 -0
- package/dist/repository-fixture-instructions.js +91 -0
- package/dist/repository-fixture-protocol.d.ts +79 -0
- package/dist/repository-fixture-protocol.js +79 -0
- package/dist/repository-foundry-plan-protocol.d.ts +118 -0
- package/dist/repository-foundry-plan-protocol.js +296 -0
- package/dist/repository-foundry-progress-protocol.d.ts +52 -0
- package/dist/repository-foundry-progress-protocol.js +52 -0
- package/dist/repository-improvement-protocol.d.ts +100 -0
- package/dist/repository-improvement-protocol.js +106 -0
- package/dist/repository-language-model-protocol.d.ts +43 -0
- package/dist/repository-language-model-protocol.js +146 -0
- package/dist/repository-oracle-coverage-protocol.d.ts +18 -0
- package/dist/repository-oracle-coverage-protocol.js +39 -0
- package/dist/repository-oracle-execution-binding.d.ts +27 -0
- package/dist/repository-oracle-execution-binding.js +59 -0
- package/dist/repository-oracle-protocol.d.ts +230 -0
- package/dist/repository-oracle-protocol.js +156 -0
- package/dist/repository-oracle-scope-policy.d.ts +22 -0
- package/dist/repository-oracle-scope-policy.js +92 -0
- package/dist/repository-quality-policy.d.ts +15 -0
- package/dist/repository-quality-policy.js +357 -0
- package/dist/repository-routing-benchmark-protocol.d.ts +176 -0
- package/dist/repository-routing-benchmark-protocol.js +103 -0
- package/dist/repository-routing-model-protocol.d.ts +36 -0
- package/dist/repository-routing-model-protocol.js +89 -0
- package/dist/repository-routing-plan-protocol.d.ts +112 -0
- package/dist/repository-routing-plan-protocol.js +58 -0
- package/dist/repository-routing-quality-policy.d.ts +9 -0
- package/dist/repository-routing-quality-policy.js +191 -0
- package/dist/repository-seed-qualification-progress-protocol.d.ts +205 -0
- package/dist/repository-seed-qualification-progress-protocol.js +28 -0
- package/dist/repository-semantic-calibration-protocol.d.ts +768 -0
- package/dist/repository-semantic-calibration-protocol.js +276 -0
- package/dist/repository-semantic-calibration.d.ts +163 -0
- package/dist/repository-semantic-calibration.js +581 -0
- package/dist/repository-specification-contract-facts-protocol.d.ts +224 -0
- package/dist/repository-specification-contract-facts-protocol.js +276 -0
- package/dist/repository-specification-critique-protocol.d.ts +189 -0
- package/dist/repository-specification-critique-protocol.js +103 -0
- package/dist/repository-task-family-protocol.d.ts +24 -0
- package/dist/repository-task-family-protocol.js +37 -0
- package/dist/repository-task-seed-protocol.d.ts +384 -0
- package/dist/repository-task-seed-protocol.js +236 -0
- package/dist/repository-trajectory-protocol.d.ts +20 -0
- package/dist/repository-trajectory-protocol.js +42 -0
- package/dist/service.js +1 -1
- package/dist/services/adversary/service.d.ts +64 -0
- package/dist/services/adversary/service.js +330 -0
- package/dist/services/benchmark-compiler/service.d.ts +450 -0
- package/dist/services/benchmark-compiler/service.js +9 -0
- package/dist/services/budgeted-model/service.d.ts +118 -0
- package/dist/services/budgeted-model/service.js +460 -0
- package/dist/services/case-authoring/service.d.ts +163 -0
- package/dist/services/case-authoring/service.js +1456 -0
- package/dist/services/case-finalization/service.d.ts +283 -0
- package/dist/services/case-finalization/service.js +370 -0
- package/dist/services/case-generation/service.d.ts +619 -0
- package/dist/services/case-generation/service.js +2628 -0
- package/dist/services/case-pipeline/service.d.ts +31 -0
- package/dist/services/case-pipeline/service.js +485 -0
- package/dist/services/case-pipeline-v2/service.d.ts +70 -0
- package/dist/services/case-pipeline-v2/service.js +477 -0
- package/dist/services/command-observability/service.d.ts +13 -0
- package/dist/services/command-observability/service.js +3 -0
- package/dist/services/dimension-labeling/service.d.ts +77 -0
- package/dist/services/dimension-labeling/service.js +188 -0
- package/dist/services/eval-candidate/service.d.ts +208 -0
- package/dist/services/eval-candidate/service.js +64 -0
- package/dist/services/eval-capabilities/service.d.ts +183 -0
- package/dist/services/eval-capabilities/service.js +1433 -0
- package/dist/services/eval-environment/service.d.ts +173 -0
- package/dist/services/eval-environment/service.js +127 -0
- package/dist/services/evidence-reconstruction/service.d.ts +36 -0
- package/dist/services/evidence-reconstruction/service.js +145 -0
- package/dist/services/fixture-builder/service.d.ts +62 -0
- package/dist/services/fixture-builder/service.js +36 -0
- package/dist/services/fixture-validation/service.d.ts +75 -0
- package/dist/services/fixture-validation/service.js +295 -0
- package/dist/services/foundry/service.d.ts +831 -0
- package/dist/services/foundry/service.js +442 -0
- package/dist/services/foundry-progress/service.d.ts +62 -0
- package/dist/services/foundry-progress/service.js +149 -0
- package/dist/services/foundry-v2/service.d.ts +54 -0
- package/dist/services/foundry-v2/service.js +28 -0
- package/dist/services/grounded-authoring/service.d.ts +126 -0
- package/dist/services/grounded-authoring/service.js +822 -0
- package/dist/services/historical-case/service.d.ts +722 -0
- package/dist/services/historical-case/service.js +177 -0
- package/dist/services/improvement-loop/service.d.ts +59 -0
- package/dist/services/improvement-loop/service.js +176 -0
- package/dist/services/language-model/service.d.ts +52 -0
- package/dist/services/language-model/service.js +194 -0
- package/dist/services/oracle-builder/service.d.ts +146 -0
- package/dist/services/oracle-builder/service.js +513 -0
- package/dist/services/oracle-coverage/service.d.ts +28 -0
- package/dist/services/oracle-coverage/service.js +50 -0
- package/dist/services/oracle-coverage-witness/service.d.ts +130 -0
- package/dist/services/oracle-coverage-witness/service.js +538 -0
- package/dist/services/pipeline-challenge/service.d.ts +551 -0
- package/dist/services/pipeline-challenge/service.js +427 -0
- package/dist/services/pipeline-controls/service.d.ts +130 -0
- package/dist/services/pipeline-controls/service.js +483 -0
- package/dist/services/pipeline-oracle/service.d.ts +8 -0
- package/dist/services/pipeline-oracle/service.js +256 -0
- package/dist/services/pipeline-seed/service.d.ts +298 -0
- package/dist/services/pipeline-seed/service.js +428 -0
- package/dist/services/pipeline-spec/service.d.ts +103 -0
- package/dist/services/pipeline-spec/service.js +619 -0
- package/dist/services/pipeline-tournament/service.d.ts +258 -0
- package/dist/services/pipeline-tournament/service.js +476 -0
- package/dist/services/quality-gate/service.d.ts +233 -0
- package/dist/services/quality-gate/service.js +136 -0
- package/dist/services/repository-bundle/service.d.ts +33 -0
- package/dist/services/repository-bundle/service.js +114 -0
- package/dist/services/repository-model/service.d.ts +105 -0
- package/dist/services/repository-model/service.js +250 -0
- package/dist/services/repository-public-artifact/service.d.ts +133 -0
- package/dist/services/repository-public-artifact/service.js +330 -0
- package/dist/services/routing-benchmark/service.d.ts +362 -0
- package/dist/services/routing-benchmark/service.js +96 -0
- package/dist/services/specification-critic/service.d.ts +92 -0
- package/dist/services/specification-critic/service.js +172 -0
- package/dist/services/task-family/service.d.ts +40 -0
- package/dist/services/task-family/service.js +55 -0
- package/dist/services/task-seed/service.d.ts +906 -0
- package/dist/services/task-seed/service.js +1406 -0
- package/dist/services/task-specification/service.d.ts +27 -0
- package/dist/services/task-specification/service.js +40 -0
- package/dist/services/trajectory-policy/service.d.ts +110 -0
- package/dist/services/trajectory-policy/service.js +216 -0
- package/dist/test/agentic-capabilities-protocol.test.d.ts +1 -0
- package/dist/test/agentic-capabilities-protocol.test.js +570 -0
- package/dist/test/agentic-capabilities.test.d.ts +1 -0
- package/dist/test/agentic-capabilities.test.js +1461 -0
- package/dist/test/agentic-environment.test.d.ts +1 -0
- package/dist/test/agentic-environment.test.js +213 -0
- package/dist/test/case-pipeline-foundation.test.d.ts +1 -0
- package/dist/test/case-pipeline-foundation.test.js +535 -0
- package/dist/test/case-pipeline-protocol-v2.test.d.ts +1 -0
- package/dist/test/case-pipeline-protocol-v2.test.js +124 -0
- package/dist/test/case-pipeline-v2.test.d.ts +1 -0
- package/dist/test/case-pipeline-v2.test.js +286 -0
- package/dist/test/case-pipeline.test.d.ts +1 -0
- package/dist/test/case-pipeline.test.js +851 -0
- package/dist/test/eval-capability-policy.test.d.ts +1 -0
- package/dist/test/eval-capability-policy.test.js +50 -0
- package/dist/test/eval-event-log.test.js +34 -1
- package/dist/test/evaluation-evidence-freshness.test.d.ts +1 -0
- package/dist/test/evaluation-evidence-freshness.test.js +44 -0
- package/dist/test/evaluation-evidence.test.d.ts +1 -0
- package/dist/test/evaluation-evidence.test.js +230 -0
- package/dist/test/evaluation-grader-calibration.test.d.ts +1 -0
- package/dist/test/evaluation-grader-calibration.test.js +373 -0
- package/dist/test/evaluation-proposal-digest.test.d.ts +1 -0
- package/dist/test/evaluation-proposal-digest.test.js +187 -0
- package/dist/test/evaluation-source-retrieval.test.d.ts +1 -0
- package/dist/test/evaluation-source-retrieval.test.js +237 -0
- package/dist/test/evaluation-structure-policy.test.d.ts +1 -0
- package/dist/test/evaluation-structure-policy.test.js +196 -0
- package/dist/test/fixtures/repository-resource-panel.d.ts +39 -0
- package/dist/test/fixtures/repository-resource-panel.js +111 -0
- package/dist/test/fixtures/vitest-boundary-panel.d.ts +84 -0
- package/dist/test/fixtures/vitest-boundary-panel.js +120 -0
- package/dist/test/fixtures/vitest-phase-panel.d.ts +135 -0
- package/dist/test/fixtures/vitest-phase-panel.js +213 -0
- package/dist/test/fixtures/vitest-reporter-results.d.ts +76 -0
- package/dist/test/fixtures/vitest-reporter-results.js +94 -0
- package/dist/test/grounded-authoring.test.d.ts +1 -0
- package/dist/test/grounded-authoring.test.js +565 -0
- package/dist/test/integrated-repository-history.test.d.ts +1 -0
- package/dist/test/integrated-repository-history.test.js +227 -0
- package/dist/test/project-authoring.test.js +593 -43
- package/dist/test/project-workflow.test.js +395 -32
- package/dist/test/repository-authoring-artifacts.test.d.ts +1 -0
- package/dist/test/repository-authoring-artifacts.test.js +185 -0
- package/dist/test/repository-bundle.test.d.ts +1 -0
- package/dist/test/repository-bundle.test.js +52 -0
- package/dist/test/repository-case-generation.test.d.ts +1 -0
- package/dist/test/repository-case-generation.test.js +3465 -0
- package/dist/test/repository-command-diagnostic.test.d.ts +1 -0
- package/dist/test/repository-command-diagnostic.test.js +55 -0
- package/dist/test/repository-command-signals.test.d.ts +1 -0
- package/dist/test/repository-command-signals.test.js +124 -0
- package/dist/test/repository-fixture-scope-coverage.test.d.ts +1 -0
- package/dist/test/repository-fixture-scope-coverage.test.js +127 -0
- package/dist/test/repository-fixture-validation.test.d.ts +1 -0
- package/dist/test/repository-fixture-validation.test.js +362 -0
- package/dist/test/repository-foundry-progress.test.d.ts +1 -0
- package/dist/test/repository-foundry-progress.test.js +110 -0
- package/dist/test/repository-foundry-quality.test.d.ts +1 -0
- package/dist/test/repository-foundry-quality.test.js +1138 -0
- package/dist/test/repository-import-context.test.d.ts +1 -0
- package/dist/test/repository-import-context.test.js +354 -0
- package/dist/test/repository-model-authoring.test.d.ts +1 -0
- package/dist/test/repository-model-authoring.test.js +544 -0
- package/dist/test/repository-model.test.d.ts +1 -0
- package/dist/test/repository-model.test.js +2195 -0
- package/dist/test/repository-node-test-reporter.test.d.ts +1 -0
- package/dist/test/repository-node-test-reporter.test.js +104 -0
- package/dist/test/repository-oracle-concurrency.test.d.ts +1 -0
- package/dist/test/repository-oracle-concurrency.test.js +542 -0
- package/dist/test/repository-oracle-coverage-witness.test.d.ts +1 -0
- package/dist/test/repository-oracle-coverage-witness.test.js +511 -0
- package/dist/test/repository-oracle-coverage.test.d.ts +1 -0
- package/dist/test/repository-oracle-coverage.test.js +168 -0
- package/dist/test/repository-oracle-evidence.test.d.ts +1 -0
- package/dist/test/repository-oracle-evidence.test.js +185 -0
- package/dist/test/repository-oracle-plan.test.d.ts +1 -0
- package/dist/test/repository-oracle-plan.test.js +176 -0
- package/dist/test/repository-overlay-isolation.test.d.ts +1 -0
- package/dist/test/repository-overlay-isolation.test.js +85 -0
- package/dist/test/repository-preparation-cache.test.d.ts +1 -0
- package/dist/test/repository-preparation-cache.test.js +414 -0
- package/dist/test/repository-public-artifact.test.d.ts +1 -0
- package/dist/test/repository-public-artifact.test.js +273 -0
- package/dist/test/repository-qualification-diagnostics.test.d.ts +1 -0
- package/dist/test/repository-qualification-diagnostics.test.js +524 -0
- package/dist/test/repository-reference-authoring.test.d.ts +1 -0
- package/dist/test/repository-reference-authoring.test.js +1633 -0
- package/dist/test/repository-review-evidence-v2.test.d.ts +1 -0
- package/dist/test/repository-review-evidence-v2.test.js +183 -0
- package/dist/test/repository-review-evidence.test.d.ts +1 -0
- package/dist/test/repository-review-evidence.test.js +124 -0
- package/dist/test/repository-seed-exclusions.test.d.ts +1 -0
- package/dist/test/repository-seed-exclusions.test.js +96 -0
- package/dist/test/repository-seed-selection.test.d.ts +1 -0
- package/dist/test/repository-seed-selection.test.js +504 -0
- package/dist/test/repository-semantic-calibration.test.d.ts +1 -0
- package/dist/test/repository-semantic-calibration.test.js +688 -0
- package/dist/test/repository-solution-edits.test.d.ts +1 -0
- package/dist/test/repository-solution-edits.test.js +377 -0
- package/dist/test/repository-specification-budget.test.d.ts +1 -0
- package/dist/test/repository-specification-budget.test.js +171 -0
- package/dist/test/repository-specification-contract-checkpoint.test.d.ts +1 -0
- package/dist/test/repository-specification-contract-checkpoint.test.js +228 -0
- package/dist/test/repository-specification-contract-facts.test.d.ts +1 -0
- package/dist/test/repository-specification-contract-facts.test.js +177 -0
- package/dist/test/repository-trajectory-authoring.test.d.ts +1 -0
- package/dist/test/repository-trajectory-authoring.test.js +176 -0
- package/dist/test/repository-valid-control-plan.test.d.ts +1 -0
- package/dist/test/repository-valid-control-plan.test.js +45 -0
- package/dist/test/repository-vitest-phase.test.d.ts +1 -0
- package/dist/test/repository-vitest-phase.test.js +848 -0
- package/dist/test/repository-vitest-reporter.test.d.ts +1 -0
- package/dist/test/repository-vitest-reporter.test.js +158 -0
- package/dist/test/repository-workspace-build.test.d.ts +1 -0
- package/dist/test/repository-workspace-build.test.js +160 -0
- package/dist/test/strict-authoring-schema.test.d.ts +1 -0
- package/dist/test/strict-authoring-schema.test.js +169 -0
- package/package.json +48 -7
|
@@ -4152,7 +4152,71 @@ export declare const EvalProjectDocument: Schema.Union<readonly [Schema.Union<re
|
|
|
4152
4152
|
}>;
|
|
4153
4153
|
}>]>]>;
|
|
4154
4154
|
export type EvalProjectDocument = typeof EvalProjectDocument.Type;
|
|
4155
|
+
export declare const EvalEvidenceBlock: Schema.Struct<{
|
|
4156
|
+
readonly id: Schema.String;
|
|
4157
|
+
readonly path: Schema.String;
|
|
4158
|
+
readonly sourceDigest: Schema.String;
|
|
4159
|
+
readonly contentDigest: Schema.String;
|
|
4160
|
+
readonly ordinal: Schema.Finite;
|
|
4161
|
+
readonly startLine: Schema.Finite;
|
|
4162
|
+
readonly endLine: Schema.Finite;
|
|
4163
|
+
readonly text: Schema.String;
|
|
4164
|
+
}>;
|
|
4165
|
+
export type EvalEvidenceBlock = typeof EvalEvidenceBlock.Type;
|
|
4166
|
+
export declare const EvalEvidenceSource: Schema.Struct<{
|
|
4167
|
+
readonly path: Schema.String;
|
|
4168
|
+
readonly sourceDigest: Schema.String;
|
|
4169
|
+
readonly sourceBytes: Schema.optionalKey<Schema.Finite>;
|
|
4170
|
+
readonly sourceBlockCount: Schema.optionalKey<Schema.Finite>;
|
|
4171
|
+
readonly blocks: Schema.$Array<Schema.Struct<{
|
|
4172
|
+
readonly id: Schema.String;
|
|
4173
|
+
readonly path: Schema.String;
|
|
4174
|
+
readonly sourceDigest: Schema.String;
|
|
4175
|
+
readonly contentDigest: Schema.String;
|
|
4176
|
+
readonly ordinal: Schema.Finite;
|
|
4177
|
+
readonly startLine: Schema.Finite;
|
|
4178
|
+
readonly endLine: Schema.Finite;
|
|
4179
|
+
readonly text: Schema.String;
|
|
4180
|
+
}>>;
|
|
4181
|
+
}>;
|
|
4182
|
+
export type EvalEvidenceSource = typeof EvalEvidenceSource.Type;
|
|
4183
|
+
export declare const EvalCriterion: Schema.Struct<{
|
|
4184
|
+
readonly id: Schema.String;
|
|
4185
|
+
readonly description: Schema.String;
|
|
4186
|
+
readonly importance: Schema.Literals<readonly ["critical", "supporting"]>;
|
|
4187
|
+
readonly gradingMode: Schema.Literal<"semantic">;
|
|
4188
|
+
}>;
|
|
4189
|
+
export type EvalCriterion = typeof EvalCriterion.Type;
|
|
4190
|
+
export declare const EvalPositiveControl: Schema.Struct<{
|
|
4191
|
+
readonly id: Schema.String;
|
|
4192
|
+
readonly response: Schema.String;
|
|
4193
|
+
}>;
|
|
4194
|
+
export type EvalPositiveControl = typeof EvalPositiveControl.Type;
|
|
4195
|
+
export declare const EvalNegativeControl: Schema.Struct<{
|
|
4196
|
+
readonly id: Schema.String;
|
|
4197
|
+
readonly response: Schema.String;
|
|
4198
|
+
readonly targetedCriterionIds: Schema.$Array<Schema.String>;
|
|
4199
|
+
readonly kind: Schema.Literals<readonly ["missing-criterion", "forbidden-behavior", "non-responsive"]>;
|
|
4200
|
+
}>;
|
|
4201
|
+
export type EvalNegativeControl = typeof EvalNegativeControl.Type;
|
|
4155
4202
|
export declare const EvalDimensionCase: Schema.Struct<{
|
|
4203
|
+
readonly evidenceIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4204
|
+
readonly criteria: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4205
|
+
readonly id: Schema.String;
|
|
4206
|
+
readonly description: Schema.String;
|
|
4207
|
+
readonly importance: Schema.Literals<readonly ["critical", "supporting"]>;
|
|
4208
|
+
readonly gradingMode: Schema.Literal<"semantic">;
|
|
4209
|
+
}>>>;
|
|
4210
|
+
readonly positiveControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4211
|
+
readonly id: Schema.String;
|
|
4212
|
+
readonly response: Schema.String;
|
|
4213
|
+
}>>>;
|
|
4214
|
+
readonly negativeControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4215
|
+
readonly id: Schema.String;
|
|
4216
|
+
readonly response: Schema.String;
|
|
4217
|
+
readonly targetedCriterionIds: Schema.$Array<Schema.String>;
|
|
4218
|
+
readonly kind: Schema.Literals<readonly ["missing-criterion", "forbidden-behavior", "non-responsive"]>;
|
|
4219
|
+
}>>>;
|
|
4156
4220
|
readonly id: Schema.String;
|
|
4157
4221
|
readonly prompt: Schema.String;
|
|
4158
4222
|
readonly context: Schema.optionalKey<Schema.String>;
|
|
@@ -4164,6 +4228,23 @@ export declare const EvalDimensionSuite: Schema.Struct<{
|
|
|
4164
4228
|
readonly dimensionId: Schema.String;
|
|
4165
4229
|
readonly maximumOutputTokens: Schema.Finite;
|
|
4166
4230
|
readonly cases: Schema.$Array<Schema.Struct<{
|
|
4231
|
+
readonly evidenceIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4232
|
+
readonly criteria: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4233
|
+
readonly id: Schema.String;
|
|
4234
|
+
readonly description: Schema.String;
|
|
4235
|
+
readonly importance: Schema.Literals<readonly ["critical", "supporting"]>;
|
|
4236
|
+
readonly gradingMode: Schema.Literal<"semantic">;
|
|
4237
|
+
}>>>;
|
|
4238
|
+
readonly positiveControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4239
|
+
readonly id: Schema.String;
|
|
4240
|
+
readonly response: Schema.String;
|
|
4241
|
+
}>>>;
|
|
4242
|
+
readonly negativeControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4243
|
+
readonly id: Schema.String;
|
|
4244
|
+
readonly response: Schema.String;
|
|
4245
|
+
readonly targetedCriterionIds: Schema.$Array<Schema.String>;
|
|
4246
|
+
readonly kind: Schema.Literals<readonly ["missing-criterion", "forbidden-behavior", "non-responsive"]>;
|
|
4247
|
+
}>>>;
|
|
4167
4248
|
readonly id: Schema.String;
|
|
4168
4249
|
readonly prompt: Schema.String;
|
|
4169
4250
|
readonly context: Schema.optionalKey<Schema.String>;
|
|
@@ -4199,10 +4280,6 @@ export declare const EvalDecompositionBenchmark: Schema.Struct<{
|
|
|
4199
4280
|
}>;
|
|
4200
4281
|
export type EvalDecompositionBenchmark = typeof EvalDecompositionBenchmark.Type;
|
|
4201
4282
|
export declare const EvalCompositionCase: Schema.Struct<{
|
|
4202
|
-
readonly id: Schema.String;
|
|
4203
|
-
readonly prompt: Schema.String;
|
|
4204
|
-
readonly context: Schema.optionalKey<Schema.String>;
|
|
4205
|
-
readonly rubric: Schema.String;
|
|
4206
4283
|
readonly decomposition: Schema.Struct<{
|
|
4207
4284
|
readonly weights: Schema.$Array<Schema.Struct<{
|
|
4208
4285
|
readonly dimensionId: Schema.String;
|
|
@@ -4217,6 +4294,27 @@ export declare const EvalCompositionCase: Schema.Struct<{
|
|
|
4217
4294
|
readonly inputTokens: Schema.optionalKey<Schema.Finite>;
|
|
4218
4295
|
readonly maxOutputTokens: Schema.optionalKey<Schema.Finite>;
|
|
4219
4296
|
}>;
|
|
4297
|
+
readonly evidenceIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4298
|
+
readonly criteria: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4299
|
+
readonly id: Schema.String;
|
|
4300
|
+
readonly description: Schema.String;
|
|
4301
|
+
readonly importance: Schema.Literals<readonly ["critical", "supporting"]>;
|
|
4302
|
+
readonly gradingMode: Schema.Literal<"semantic">;
|
|
4303
|
+
}>>>;
|
|
4304
|
+
readonly positiveControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4305
|
+
readonly id: Schema.String;
|
|
4306
|
+
readonly response: Schema.String;
|
|
4307
|
+
}>>>;
|
|
4308
|
+
readonly negativeControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4309
|
+
readonly id: Schema.String;
|
|
4310
|
+
readonly response: Schema.String;
|
|
4311
|
+
readonly targetedCriterionIds: Schema.$Array<Schema.String>;
|
|
4312
|
+
readonly kind: Schema.Literals<readonly ["missing-criterion", "forbidden-behavior", "non-responsive"]>;
|
|
4313
|
+
}>>>;
|
|
4314
|
+
readonly id: Schema.String;
|
|
4315
|
+
readonly prompt: Schema.String;
|
|
4316
|
+
readonly context: Schema.optionalKey<Schema.String>;
|
|
4317
|
+
readonly rubric: Schema.String;
|
|
4220
4318
|
}>;
|
|
4221
4319
|
export type EvalCompositionCase = typeof EvalCompositionCase.Type;
|
|
4222
4320
|
export declare const EvalCompositionSuite: Schema.Struct<{
|
|
@@ -4224,10 +4322,6 @@ export declare const EvalCompositionSuite: Schema.Struct<{
|
|
|
4224
4322
|
readonly minimumWinnerScoreGap: Schema.Finite;
|
|
4225
4323
|
readonly minimumWinnerAgreement: Schema.Finite;
|
|
4226
4324
|
readonly cases: Schema.$Array<Schema.Struct<{
|
|
4227
|
-
readonly id: Schema.String;
|
|
4228
|
-
readonly prompt: Schema.String;
|
|
4229
|
-
readonly context: Schema.optionalKey<Schema.String>;
|
|
4230
|
-
readonly rubric: Schema.String;
|
|
4231
4325
|
readonly decomposition: Schema.Struct<{
|
|
4232
4326
|
readonly weights: Schema.$Array<Schema.Struct<{
|
|
4233
4327
|
readonly dimensionId: Schema.String;
|
|
@@ -4242,6 +4336,27 @@ export declare const EvalCompositionSuite: Schema.Struct<{
|
|
|
4242
4336
|
readonly inputTokens: Schema.optionalKey<Schema.Finite>;
|
|
4243
4337
|
readonly maxOutputTokens: Schema.optionalKey<Schema.Finite>;
|
|
4244
4338
|
}>;
|
|
4339
|
+
readonly evidenceIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4340
|
+
readonly criteria: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4341
|
+
readonly id: Schema.String;
|
|
4342
|
+
readonly description: Schema.String;
|
|
4343
|
+
readonly importance: Schema.Literals<readonly ["critical", "supporting"]>;
|
|
4344
|
+
readonly gradingMode: Schema.Literal<"semantic">;
|
|
4345
|
+
}>>>;
|
|
4346
|
+
readonly positiveControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4347
|
+
readonly id: Schema.String;
|
|
4348
|
+
readonly response: Schema.String;
|
|
4349
|
+
}>>>;
|
|
4350
|
+
readonly negativeControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4351
|
+
readonly id: Schema.String;
|
|
4352
|
+
readonly response: Schema.String;
|
|
4353
|
+
readonly targetedCriterionIds: Schema.$Array<Schema.String>;
|
|
4354
|
+
readonly kind: Schema.Literals<readonly ["missing-criterion", "forbidden-behavior", "non-responsive"]>;
|
|
4355
|
+
}>>>;
|
|
4356
|
+
readonly id: Schema.String;
|
|
4357
|
+
readonly prompt: Schema.String;
|
|
4358
|
+
readonly context: Schema.optionalKey<Schema.String>;
|
|
4359
|
+
readonly rubric: Schema.String;
|
|
4245
4360
|
}>>;
|
|
4246
4361
|
}>;
|
|
4247
4362
|
export type EvalCompositionSuite = typeof EvalCompositionSuite.Type;
|
|
@@ -4252,11 +4367,44 @@ export declare const EvalEvaluationProposal: Schema.Struct<{
|
|
|
4252
4367
|
readonly candidateModels: Schema.$Array<Schema.String>;
|
|
4253
4368
|
readonly candidateReasoningEfforts: Schema.optionalKey<Schema.$Record<Schema.String, Schema.NonEmptyString>>;
|
|
4254
4369
|
readonly judgeModel: Schema.String;
|
|
4370
|
+
readonly evidenceSources: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4371
|
+
readonly path: Schema.String;
|
|
4372
|
+
readonly sourceDigest: Schema.String;
|
|
4373
|
+
readonly sourceBytes: Schema.optionalKey<Schema.Finite>;
|
|
4374
|
+
readonly sourceBlockCount: Schema.optionalKey<Schema.Finite>;
|
|
4375
|
+
readonly blocks: Schema.$Array<Schema.Struct<{
|
|
4376
|
+
readonly id: Schema.String;
|
|
4377
|
+
readonly path: Schema.String;
|
|
4378
|
+
readonly sourceDigest: Schema.String;
|
|
4379
|
+
readonly contentDigest: Schema.String;
|
|
4380
|
+
readonly ordinal: Schema.Finite;
|
|
4381
|
+
readonly startLine: Schema.Finite;
|
|
4382
|
+
readonly endLine: Schema.Finite;
|
|
4383
|
+
readonly text: Schema.String;
|
|
4384
|
+
}>>;
|
|
4385
|
+
}>>>;
|
|
4255
4386
|
readonly suites: Schema.$Array<Schema.Struct<{
|
|
4256
4387
|
readonly version: Schema.Literal<1>;
|
|
4257
4388
|
readonly dimensionId: Schema.String;
|
|
4258
4389
|
readonly maximumOutputTokens: Schema.Finite;
|
|
4259
4390
|
readonly cases: Schema.$Array<Schema.Struct<{
|
|
4391
|
+
readonly evidenceIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4392
|
+
readonly criteria: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4393
|
+
readonly id: Schema.String;
|
|
4394
|
+
readonly description: Schema.String;
|
|
4395
|
+
readonly importance: Schema.Literals<readonly ["critical", "supporting"]>;
|
|
4396
|
+
readonly gradingMode: Schema.Literal<"semantic">;
|
|
4397
|
+
}>>>;
|
|
4398
|
+
readonly positiveControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4399
|
+
readonly id: Schema.String;
|
|
4400
|
+
readonly response: Schema.String;
|
|
4401
|
+
}>>>;
|
|
4402
|
+
readonly negativeControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4403
|
+
readonly id: Schema.String;
|
|
4404
|
+
readonly response: Schema.String;
|
|
4405
|
+
readonly targetedCriterionIds: Schema.$Array<Schema.String>;
|
|
4406
|
+
readonly kind: Schema.Literals<readonly ["missing-criterion", "forbidden-behavior", "non-responsive"]>;
|
|
4407
|
+
}>>>;
|
|
4260
4408
|
readonly id: Schema.String;
|
|
4261
4409
|
readonly prompt: Schema.String;
|
|
4262
4410
|
readonly context: Schema.optionalKey<Schema.String>;
|
|
@@ -4282,10 +4430,6 @@ export declare const EvalEvaluationProposal: Schema.Struct<{
|
|
|
4282
4430
|
readonly minimumWinnerScoreGap: Schema.Finite;
|
|
4283
4431
|
readonly minimumWinnerAgreement: Schema.Finite;
|
|
4284
4432
|
readonly cases: Schema.$Array<Schema.Struct<{
|
|
4285
|
-
readonly id: Schema.String;
|
|
4286
|
-
readonly prompt: Schema.String;
|
|
4287
|
-
readonly context: Schema.optionalKey<Schema.String>;
|
|
4288
|
-
readonly rubric: Schema.String;
|
|
4289
4433
|
readonly decomposition: Schema.Struct<{
|
|
4290
4434
|
readonly weights: Schema.$Array<Schema.Struct<{
|
|
4291
4435
|
readonly dimensionId: Schema.String;
|
|
@@ -4300,6 +4444,27 @@ export declare const EvalEvaluationProposal: Schema.Struct<{
|
|
|
4300
4444
|
readonly inputTokens: Schema.optionalKey<Schema.Finite>;
|
|
4301
4445
|
readonly maxOutputTokens: Schema.optionalKey<Schema.Finite>;
|
|
4302
4446
|
}>;
|
|
4447
|
+
readonly evidenceIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
4448
|
+
readonly criteria: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4449
|
+
readonly id: Schema.String;
|
|
4450
|
+
readonly description: Schema.String;
|
|
4451
|
+
readonly importance: Schema.Literals<readonly ["critical", "supporting"]>;
|
|
4452
|
+
readonly gradingMode: Schema.Literal<"semantic">;
|
|
4453
|
+
}>>>;
|
|
4454
|
+
readonly positiveControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4455
|
+
readonly id: Schema.String;
|
|
4456
|
+
readonly response: Schema.String;
|
|
4457
|
+
}>>>;
|
|
4458
|
+
readonly negativeControls: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
4459
|
+
readonly id: Schema.String;
|
|
4460
|
+
readonly response: Schema.String;
|
|
4461
|
+
readonly targetedCriterionIds: Schema.$Array<Schema.String>;
|
|
4462
|
+
readonly kind: Schema.Literals<readonly ["missing-criterion", "forbidden-behavior", "non-responsive"]>;
|
|
4463
|
+
}>>>;
|
|
4464
|
+
readonly id: Schema.String;
|
|
4465
|
+
readonly prompt: Schema.String;
|
|
4466
|
+
readonly context: Schema.optionalKey<Schema.String>;
|
|
4467
|
+
readonly rubric: Schema.String;
|
|
4303
4468
|
}>>;
|
|
4304
4469
|
}>;
|
|
4305
4470
|
}>;
|
|
@@ -4309,6 +4474,8 @@ export declare const EvalArtifactApproval: Schema.Struct<{
|
|
|
4309
4474
|
readonly kind: Schema.Literals<readonly ["routing-basis", "evaluations"]>;
|
|
4310
4475
|
readonly digest: Schema.String;
|
|
4311
4476
|
readonly approvedAt: Schema.String;
|
|
4477
|
+
readonly structurePolicyVersion: Schema.optionalKey<Schema.Finite>;
|
|
4478
|
+
readonly structureReportDigest: Schema.optionalKey<Schema.String>;
|
|
4312
4479
|
}>;
|
|
4313
4480
|
export type EvalArtifactApproval = typeof EvalArtifactApproval.Type;
|
|
4314
4481
|
export declare const EvalPlanScope: Schema.Literals<readonly ["pilot", "full"]>;
|
|
@@ -4423,10 +4590,13 @@ export declare const EvalClassifierObservation: Schema.Struct<{
|
|
|
4423
4590
|
export type EvalClassifierObservation = typeof EvalClassifierObservation.Type;
|
|
4424
4591
|
export declare const EvalCompositionCaseResult: Schema.Struct<{
|
|
4425
4592
|
readonly caseId: Schema.String;
|
|
4426
|
-
readonly predictedWinner: Schema.String
|
|
4427
|
-
readonly
|
|
4593
|
+
readonly predictedWinner: Schema.NullOr<Schema.String>;
|
|
4594
|
+
readonly predictedTiedModels: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.$Array<Schema.String>>, never>;
|
|
4595
|
+
readonly observedWinner: Schema.NullOr<Schema.String>;
|
|
4596
|
+
readonly observedTiedModels: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.$Array<Schema.String>>, never>;
|
|
4428
4597
|
readonly predictedScoreGap: Schema.Finite;
|
|
4429
4598
|
readonly observedScoreGap: Schema.Finite;
|
|
4599
|
+
readonly comparable: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Boolean>, never>;
|
|
4430
4600
|
readonly passed: Schema.Boolean;
|
|
4431
4601
|
}>;
|
|
4432
4602
|
export type EvalCompositionCaseResult = typeof EvalCompositionCaseResult.Type;
|
|
@@ -4457,13 +4627,19 @@ export declare const EvalRunQualification: Schema.Struct<{
|
|
|
4457
4627
|
readonly expectedCases: Schema.Finite;
|
|
4458
4628
|
readonly comparableCases: Schema.Finite;
|
|
4459
4629
|
readonly agreeingCases: Schema.Finite;
|
|
4460
|
-
readonly winnerAgreement: Schema.Finite
|
|
4630
|
+
readonly winnerAgreement: Schema.optionalKey<Schema.Finite>;
|
|
4631
|
+
readonly conclusion: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Literals<readonly ["passed", "failed", "inconclusive"]>>, never>;
|
|
4632
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
4633
|
+
readonly publishable: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Boolean>, never>;
|
|
4461
4634
|
readonly cases: Schema.$Array<Schema.Struct<{
|
|
4462
4635
|
readonly caseId: Schema.String;
|
|
4463
|
-
readonly predictedWinner: Schema.String
|
|
4464
|
-
readonly
|
|
4636
|
+
readonly predictedWinner: Schema.NullOr<Schema.String>;
|
|
4637
|
+
readonly predictedTiedModels: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.$Array<Schema.String>>, never>;
|
|
4638
|
+
readonly observedWinner: Schema.NullOr<Schema.String>;
|
|
4639
|
+
readonly observedTiedModels: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.$Array<Schema.String>>, never>;
|
|
4465
4640
|
readonly predictedScoreGap: Schema.Finite;
|
|
4466
4641
|
readonly observedScoreGap: Schema.Finite;
|
|
4642
|
+
readonly comparable: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Boolean>, never>;
|
|
4467
4643
|
readonly passed: Schema.Boolean;
|
|
4468
4644
|
}>>;
|
|
4469
4645
|
}>;
|
|
@@ -4623,13 +4799,19 @@ export declare const EvalRunReport: Schema.Union<readonly [Schema.Struct<{
|
|
|
4623
4799
|
readonly expectedCases: Schema.Finite;
|
|
4624
4800
|
readonly comparableCases: Schema.Finite;
|
|
4625
4801
|
readonly agreeingCases: Schema.Finite;
|
|
4626
|
-
readonly winnerAgreement: Schema.Finite
|
|
4802
|
+
readonly winnerAgreement: Schema.optionalKey<Schema.Finite>;
|
|
4803
|
+
readonly conclusion: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Literals<readonly ["passed", "failed", "inconclusive"]>>, never>;
|
|
4804
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
4805
|
+
readonly publishable: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Boolean>, never>;
|
|
4627
4806
|
readonly cases: Schema.$Array<Schema.Struct<{
|
|
4628
4807
|
readonly caseId: Schema.String;
|
|
4629
|
-
readonly predictedWinner: Schema.String
|
|
4630
|
-
readonly
|
|
4808
|
+
readonly predictedWinner: Schema.NullOr<Schema.String>;
|
|
4809
|
+
readonly predictedTiedModels: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.$Array<Schema.String>>, never>;
|
|
4810
|
+
readonly observedWinner: Schema.NullOr<Schema.String>;
|
|
4811
|
+
readonly observedTiedModels: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.$Array<Schema.String>>, never>;
|
|
4631
4812
|
readonly predictedScoreGap: Schema.Finite;
|
|
4632
4813
|
readonly observedScoreGap: Schema.Finite;
|
|
4814
|
+
readonly comparable: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Boolean>, never>;
|
|
4633
4815
|
readonly passed: Schema.Boolean;
|
|
4634
4816
|
}>>;
|
|
4635
4817
|
}>;
|
|
@@ -4664,6 +4846,30 @@ export declare const EvalRunReport: Schema.Union<readonly [Schema.Struct<{
|
|
|
4664
4846
|
readonly caseId: Schema.String;
|
|
4665
4847
|
readonly sequence: Schema.Finite;
|
|
4666
4848
|
readonly name: Schema.Literal<"judge#">;
|
|
4849
|
+
}>, Schema.Struct<{
|
|
4850
|
+
readonly name: Schema.Literal<"failure-detail">;
|
|
4851
|
+
readonly at: Schema.String;
|
|
4852
|
+
readonly runId: Schema.String;
|
|
4853
|
+
readonly phase: Schema.Literals<readonly ["target", "classifier", "suite-inspection", "comparison", "activation", "accounting", "completion"]>;
|
|
4854
|
+
readonly reason: Schema.String;
|
|
4855
|
+
readonly retryable: Schema.Boolean;
|
|
4856
|
+
readonly callId: Schema.optionalKey<Schema.String>;
|
|
4857
|
+
readonly reservationId: Schema.optionalKey<Schema.String>;
|
|
4858
|
+
readonly accounting: Schema.Struct<{
|
|
4859
|
+
readonly expectedCalls: Schema.Finite;
|
|
4860
|
+
readonly observedCalls: Schema.Finite;
|
|
4861
|
+
readonly knownInputTokens: Schema.Finite;
|
|
4862
|
+
readonly knownOutputTokens: Schema.Finite;
|
|
4863
|
+
readonly unknownTokenMeasurements: Schema.Finite;
|
|
4864
|
+
readonly knownPricedSubtotalUsd: Schema.Finite;
|
|
4865
|
+
readonly unpricedCalls: Schema.Finite;
|
|
4866
|
+
readonly subscriptionUnitCalls: Schema.Finite;
|
|
4867
|
+
}>;
|
|
4868
|
+
readonly cleanup: Schema.Struct<{
|
|
4869
|
+
readonly sessionOpened: Schema.Boolean;
|
|
4870
|
+
readonly sessionClosed: Schema.Boolean;
|
|
4871
|
+
readonly detail: Schema.optionalKey<Schema.String>;
|
|
4872
|
+
}>;
|
|
4667
4873
|
}>, Schema.Struct<{
|
|
4668
4874
|
readonly at: Schema.String;
|
|
4669
4875
|
readonly operationId: Schema.String;
|
|
@@ -4679,62 +4885,6 @@ export declare const EvalRunReport: Schema.Union<readonly [Schema.Struct<{
|
|
|
4679
4885
|
}>]>>>, never>;
|
|
4680
4886
|
}>, Schema.Struct<{
|
|
4681
4887
|
readonly status: Schema.Literal<"completed">;
|
|
4682
|
-
readonly activation: Schema.Struct<{
|
|
4683
|
-
readonly version: Schema.Literal<2>;
|
|
4684
|
-
readonly generatedAt: Schema.String;
|
|
4685
|
-
readonly basisDigest: Schema.String;
|
|
4686
|
-
readonly evidenceDigest: Schema.String;
|
|
4687
|
-
readonly classifierModel: Schema.String;
|
|
4688
|
-
readonly objective: Schema.Union<readonly [Schema.Struct<{
|
|
4689
|
-
readonly kind: Schema.Literal<"highest-quality">;
|
|
4690
|
-
}>, Schema.Struct<{
|
|
4691
|
-
readonly kind: Schema.Literal<"lowest-cost">;
|
|
4692
|
-
readonly minimumQuality: Schema.Finite;
|
|
4693
|
-
}>, Schema.Struct<{
|
|
4694
|
-
readonly kind: Schema.Literal<"lowest-latency">;
|
|
4695
|
-
readonly minimumQuality: Schema.Finite;
|
|
4696
|
-
}>, Schema.Struct<{
|
|
4697
|
-
readonly kind: Schema.Literal<"balanced">;
|
|
4698
|
-
readonly minimumQuality: Schema.Finite;
|
|
4699
|
-
readonly weights: Schema.Struct<{
|
|
4700
|
-
readonly quality: Schema.Finite;
|
|
4701
|
-
readonly cost: Schema.Finite;
|
|
4702
|
-
readonly latency: Schema.Finite;
|
|
4703
|
-
}>;
|
|
4704
|
-
}>, Schema.Struct<{
|
|
4705
|
-
readonly kind: Schema.Literal<"pareto">;
|
|
4706
|
-
readonly minimumQuality: Schema.Finite;
|
|
4707
|
-
readonly preference: Schema.Literals<readonly ["quality", "cost", "latency"]>;
|
|
4708
|
-
}>]>;
|
|
4709
|
-
readonly maximumUnknownWeight: Schema.Finite;
|
|
4710
|
-
readonly constraints: Schema.optionalKey<Schema.Struct<{
|
|
4711
|
-
readonly minimumDimensionQuality: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Finite>>;
|
|
4712
|
-
readonly maximumFailureRate: Schema.optionalKey<Schema.Finite>;
|
|
4713
|
-
}>>;
|
|
4714
|
-
readonly dimensions: Schema.$Array<Schema.Struct<{
|
|
4715
|
-
readonly id: Schema.String;
|
|
4716
|
-
readonly description: Schema.String;
|
|
4717
|
-
readonly includes: Schema.$Array<Schema.String>;
|
|
4718
|
-
readonly excludes: Schema.$Array<Schema.String>;
|
|
4719
|
-
}>>;
|
|
4720
|
-
readonly candidateModels: Schema.$Array<Schema.String>;
|
|
4721
|
-
readonly evidence: Schema.$Array<Schema.Struct<{
|
|
4722
|
-
readonly model: Schema.String;
|
|
4723
|
-
readonly dimensionId: Schema.String;
|
|
4724
|
-
readonly suiteDigest: Schema.String;
|
|
4725
|
-
readonly evidenceDigest: Schema.String;
|
|
4726
|
-
readonly quality: Schema.Struct<{
|
|
4727
|
-
readonly passRate: Schema.Finite;
|
|
4728
|
-
readonly lowerConfidenceBound: Schema.Finite;
|
|
4729
|
-
readonly sampleCount: Schema.Finite;
|
|
4730
|
-
}>;
|
|
4731
|
-
readonly failureRate: Schema.Finite;
|
|
4732
|
-
readonly averageJudgeScore: Schema.optionalKey<Schema.Finite>;
|
|
4733
|
-
readonly p95DurationMs: Schema.optionalKey<Schema.Finite>;
|
|
4734
|
-
readonly averageCostUsd: Schema.optionalKey<Schema.Finite>;
|
|
4735
|
-
readonly unpricedCalls: Schema.Finite;
|
|
4736
|
-
}>>;
|
|
4737
|
-
}>;
|
|
4738
4888
|
readonly version: Schema.Literal<1>;
|
|
4739
4889
|
readonly runId: Schema.String;
|
|
4740
4890
|
readonly planId: Schema.String;
|
|
@@ -4816,13 +4966,19 @@ export declare const EvalRunReport: Schema.Union<readonly [Schema.Struct<{
|
|
|
4816
4966
|
readonly expectedCases: Schema.Finite;
|
|
4817
4967
|
readonly comparableCases: Schema.Finite;
|
|
4818
4968
|
readonly agreeingCases: Schema.Finite;
|
|
4819
|
-
readonly winnerAgreement: Schema.Finite
|
|
4969
|
+
readonly winnerAgreement: Schema.optionalKey<Schema.Finite>;
|
|
4970
|
+
readonly conclusion: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Literals<readonly ["passed", "failed", "inconclusive"]>>, never>;
|
|
4971
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
4972
|
+
readonly publishable: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Boolean>, never>;
|
|
4820
4973
|
readonly cases: Schema.$Array<Schema.Struct<{
|
|
4821
4974
|
readonly caseId: Schema.String;
|
|
4822
|
-
readonly predictedWinner: Schema.String
|
|
4823
|
-
readonly
|
|
4975
|
+
readonly predictedWinner: Schema.NullOr<Schema.String>;
|
|
4976
|
+
readonly predictedTiedModels: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.$Array<Schema.String>>, never>;
|
|
4977
|
+
readonly observedWinner: Schema.NullOr<Schema.String>;
|
|
4978
|
+
readonly observedTiedModels: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.$Array<Schema.String>>, never>;
|
|
4824
4979
|
readonly predictedScoreGap: Schema.Finite;
|
|
4825
4980
|
readonly observedScoreGap: Schema.Finite;
|
|
4981
|
+
readonly comparable: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Boolean>, never>;
|
|
4826
4982
|
readonly passed: Schema.Boolean;
|
|
4827
4983
|
}>>;
|
|
4828
4984
|
}>;
|
|
@@ -4857,6 +5013,30 @@ export declare const EvalRunReport: Schema.Union<readonly [Schema.Struct<{
|
|
|
4857
5013
|
readonly caseId: Schema.String;
|
|
4858
5014
|
readonly sequence: Schema.Finite;
|
|
4859
5015
|
readonly name: Schema.Literal<"judge#">;
|
|
5016
|
+
}>, Schema.Struct<{
|
|
5017
|
+
readonly name: Schema.Literal<"failure-detail">;
|
|
5018
|
+
readonly at: Schema.String;
|
|
5019
|
+
readonly runId: Schema.String;
|
|
5020
|
+
readonly phase: Schema.Literals<readonly ["target", "classifier", "suite-inspection", "comparison", "activation", "accounting", "completion"]>;
|
|
5021
|
+
readonly reason: Schema.String;
|
|
5022
|
+
readonly retryable: Schema.Boolean;
|
|
5023
|
+
readonly callId: Schema.optionalKey<Schema.String>;
|
|
5024
|
+
readonly reservationId: Schema.optionalKey<Schema.String>;
|
|
5025
|
+
readonly accounting: Schema.Struct<{
|
|
5026
|
+
readonly expectedCalls: Schema.Finite;
|
|
5027
|
+
readonly observedCalls: Schema.Finite;
|
|
5028
|
+
readonly knownInputTokens: Schema.Finite;
|
|
5029
|
+
readonly knownOutputTokens: Schema.Finite;
|
|
5030
|
+
readonly unknownTokenMeasurements: Schema.Finite;
|
|
5031
|
+
readonly knownPricedSubtotalUsd: Schema.Finite;
|
|
5032
|
+
readonly unpricedCalls: Schema.Finite;
|
|
5033
|
+
readonly subscriptionUnitCalls: Schema.Finite;
|
|
5034
|
+
}>;
|
|
5035
|
+
readonly cleanup: Schema.Struct<{
|
|
5036
|
+
readonly sessionOpened: Schema.Boolean;
|
|
5037
|
+
readonly sessionClosed: Schema.Boolean;
|
|
5038
|
+
readonly detail: Schema.optionalKey<Schema.String>;
|
|
5039
|
+
}>;
|
|
4860
5040
|
}>, Schema.Struct<{
|
|
4861
5041
|
readonly at: Schema.String;
|
|
4862
5042
|
readonly operationId: Schema.String;
|
|
@@ -4959,13 +5139,19 @@ export declare const EvalRunReport: Schema.Union<readonly [Schema.Struct<{
|
|
|
4959
5139
|
readonly expectedCases: Schema.Finite;
|
|
4960
5140
|
readonly comparableCases: Schema.Finite;
|
|
4961
5141
|
readonly agreeingCases: Schema.Finite;
|
|
4962
|
-
readonly winnerAgreement: Schema.Finite
|
|
5142
|
+
readonly winnerAgreement: Schema.optionalKey<Schema.Finite>;
|
|
5143
|
+
readonly conclusion: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Literals<readonly ["passed", "failed", "inconclusive"]>>, never>;
|
|
5144
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
5145
|
+
readonly publishable: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Boolean>, never>;
|
|
4963
5146
|
readonly cases: Schema.$Array<Schema.Struct<{
|
|
4964
5147
|
readonly caseId: Schema.String;
|
|
4965
|
-
readonly predictedWinner: Schema.String
|
|
4966
|
-
readonly
|
|
5148
|
+
readonly predictedWinner: Schema.NullOr<Schema.String>;
|
|
5149
|
+
readonly predictedTiedModels: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.$Array<Schema.String>>, never>;
|
|
5150
|
+
readonly observedWinner: Schema.NullOr<Schema.String>;
|
|
5151
|
+
readonly observedTiedModels: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.$Array<Schema.String>>, never>;
|
|
4967
5152
|
readonly predictedScoreGap: Schema.Finite;
|
|
4968
5153
|
readonly observedScoreGap: Schema.Finite;
|
|
5154
|
+
readonly comparable: Schema.withDecodingDefaultKey<Schema.optionalKey<Schema.Boolean>, never>;
|
|
4969
5155
|
readonly passed: Schema.Boolean;
|
|
4970
5156
|
}>>;
|
|
4971
5157
|
}>;
|
|
@@ -5000,6 +5186,30 @@ export declare const EvalRunReport: Schema.Union<readonly [Schema.Struct<{
|
|
|
5000
5186
|
readonly caseId: Schema.String;
|
|
5001
5187
|
readonly sequence: Schema.Finite;
|
|
5002
5188
|
readonly name: Schema.Literal<"judge#">;
|
|
5189
|
+
}>, Schema.Struct<{
|
|
5190
|
+
readonly name: Schema.Literal<"failure-detail">;
|
|
5191
|
+
readonly at: Schema.String;
|
|
5192
|
+
readonly runId: Schema.String;
|
|
5193
|
+
readonly phase: Schema.Literals<readonly ["target", "classifier", "suite-inspection", "comparison", "activation", "accounting", "completion"]>;
|
|
5194
|
+
readonly reason: Schema.String;
|
|
5195
|
+
readonly retryable: Schema.Boolean;
|
|
5196
|
+
readonly callId: Schema.optionalKey<Schema.String>;
|
|
5197
|
+
readonly reservationId: Schema.optionalKey<Schema.String>;
|
|
5198
|
+
readonly accounting: Schema.Struct<{
|
|
5199
|
+
readonly expectedCalls: Schema.Finite;
|
|
5200
|
+
readonly observedCalls: Schema.Finite;
|
|
5201
|
+
readonly knownInputTokens: Schema.Finite;
|
|
5202
|
+
readonly knownOutputTokens: Schema.Finite;
|
|
5203
|
+
readonly unknownTokenMeasurements: Schema.Finite;
|
|
5204
|
+
readonly knownPricedSubtotalUsd: Schema.Finite;
|
|
5205
|
+
readonly unpricedCalls: Schema.Finite;
|
|
5206
|
+
readonly subscriptionUnitCalls: Schema.Finite;
|
|
5207
|
+
}>;
|
|
5208
|
+
readonly cleanup: Schema.Struct<{
|
|
5209
|
+
readonly sessionOpened: Schema.Boolean;
|
|
5210
|
+
readonly sessionClosed: Schema.Boolean;
|
|
5211
|
+
readonly detail: Schema.optionalKey<Schema.String>;
|
|
5212
|
+
}>;
|
|
5003
5213
|
}>, Schema.Struct<{
|
|
5004
5214
|
readonly at: Schema.String;
|
|
5005
5215
|
readonly operationId: Schema.String;
|
|
@@ -527,11 +527,58 @@ export const EvalProjectDocument = Schema.Union([
|
|
|
527
527
|
EvalProjectState,
|
|
528
528
|
EvalProjectStateV2
|
|
529
529
|
]);
|
|
530
|
+
export const EvalEvidenceBlock = Schema.Struct({
|
|
531
|
+
id: Schema.String,
|
|
532
|
+
path: Schema.String,
|
|
533
|
+
sourceDigest: Schema.String,
|
|
534
|
+
contentDigest: Schema.String,
|
|
535
|
+
ordinal: NonNegativeInteger,
|
|
536
|
+
startLine: NonNegativeInteger,
|
|
537
|
+
endLine: NonNegativeInteger,
|
|
538
|
+
text: Schema.String
|
|
539
|
+
});
|
|
540
|
+
export const EvalEvidenceSource = Schema.Struct({
|
|
541
|
+
path: Schema.String,
|
|
542
|
+
sourceDigest: Schema.String,
|
|
543
|
+
sourceBytes: Schema.optionalKey(NonNegativeInteger),
|
|
544
|
+
sourceBlockCount: Schema.optionalKey(NonNegativeInteger),
|
|
545
|
+
blocks: Schema.Array(EvalEvidenceBlock)
|
|
546
|
+
});
|
|
547
|
+
export const EvalCriterion = Schema.Struct({
|
|
548
|
+
id: Schema.String,
|
|
549
|
+
description: Schema.String,
|
|
550
|
+
importance: Schema.Literals(["critical", "supporting"]),
|
|
551
|
+
gradingMode: Schema.Literal("semantic")
|
|
552
|
+
});
|
|
553
|
+
export const EvalPositiveControl = Schema.Struct({
|
|
554
|
+
id: Schema.String,
|
|
555
|
+
response: Schema.String
|
|
556
|
+
});
|
|
557
|
+
export const EvalNegativeControl = Schema.Struct({
|
|
558
|
+
id: Schema.String,
|
|
559
|
+
response: Schema.String,
|
|
560
|
+
targetedCriterionIds: Schema.Array(Schema.String),
|
|
561
|
+
kind: Schema.Literals([
|
|
562
|
+
"missing-criterion",
|
|
563
|
+
"forbidden-behavior",
|
|
564
|
+
"non-responsive"
|
|
565
|
+
])
|
|
566
|
+
});
|
|
567
|
+
const EvalCompiledCase = {
|
|
568
|
+
// Optional only at the persisted decoding boundary. The current evaluation
|
|
569
|
+
// structure policy requires compiler-owned evidence and hidden controls
|
|
570
|
+
// before approval, planning, or execution.
|
|
571
|
+
evidenceIds: Schema.optionalKey(Schema.Array(Schema.String)),
|
|
572
|
+
criteria: Schema.optionalKey(Schema.Array(EvalCriterion)),
|
|
573
|
+
positiveControls: Schema.optionalKey(Schema.Array(EvalPositiveControl)),
|
|
574
|
+
negativeControls: Schema.optionalKey(Schema.Array(EvalNegativeControl))
|
|
575
|
+
};
|
|
530
576
|
export const EvalDimensionCase = Schema.Struct({
|
|
531
577
|
id: Schema.String,
|
|
532
578
|
prompt: Schema.String,
|
|
533
579
|
context: Schema.optionalKey(Schema.String),
|
|
534
|
-
rubric: Schema.String
|
|
580
|
+
rubric: Schema.String,
|
|
581
|
+
...EvalCompiledCase
|
|
535
582
|
});
|
|
536
583
|
export const EvalDimensionSuite = Schema.Struct({
|
|
537
584
|
version: Schema.Literal(EVAL_PROJECT_VERSION),
|
|
@@ -553,6 +600,7 @@ export const EvalCompositionCase = Schema.Struct({
|
|
|
553
600
|
prompt: Schema.String,
|
|
554
601
|
context: Schema.optionalKey(Schema.String),
|
|
555
602
|
rubric: Schema.String,
|
|
603
|
+
...EvalCompiledCase,
|
|
556
604
|
decomposition: DecompositionResult,
|
|
557
605
|
requirements: RequestRoutingRequirements
|
|
558
606
|
});
|
|
@@ -569,6 +617,7 @@ export const EvalEvaluationProposal = Schema.Struct({
|
|
|
569
617
|
candidateModels: Schema.Array(Schema.String),
|
|
570
618
|
candidateReasoningEfforts: Schema.optionalKey(EvalCandidateReasoningEfforts),
|
|
571
619
|
judgeModel: Schema.String,
|
|
620
|
+
evidenceSources: Schema.optionalKey(Schema.Array(EvalEvidenceSource)),
|
|
572
621
|
suites: Schema.Array(EvalDimensionSuite),
|
|
573
622
|
decompositionBenchmark: EvalDecompositionBenchmark,
|
|
574
623
|
compositionSuite: EvalCompositionSuite
|
|
@@ -577,7 +626,9 @@ export const EvalArtifactApproval = Schema.Struct({
|
|
|
577
626
|
version: Schema.Literal(EVAL_PROJECT_VERSION),
|
|
578
627
|
kind: Schema.Literals(["routing-basis", "evaluations"]),
|
|
579
628
|
digest: Schema.String,
|
|
580
|
-
approvedAt: Schema.String
|
|
629
|
+
approvedAt: Schema.String,
|
|
630
|
+
structurePolicyVersion: Schema.optionalKey(NonNegativeInteger),
|
|
631
|
+
structureReportDigest: Schema.optionalKey(Schema.String)
|
|
581
632
|
});
|
|
582
633
|
export const EvalPlanScope = Schema.Literals(["pilot", "full"]);
|
|
583
634
|
export const EvalCostEstimate = Schema.Struct({
|
|
@@ -718,10 +769,13 @@ export const EvalClassifierObservation = Schema.Struct({
|
|
|
718
769
|
});
|
|
719
770
|
export const EvalCompositionCaseResult = Schema.Struct({
|
|
720
771
|
caseId: Schema.String,
|
|
721
|
-
predictedWinner: Schema.String,
|
|
722
|
-
|
|
772
|
+
predictedWinner: Schema.NullOr(Schema.String),
|
|
773
|
+
predictedTiedModels: Schema.optionalKey(Schema.Array(Schema.String)).pipe(Schema.withDecodingDefaultKey(Effect.succeed([]))),
|
|
774
|
+
observedWinner: Schema.NullOr(Schema.String),
|
|
775
|
+
observedTiedModels: Schema.optionalKey(Schema.Array(Schema.String)).pipe(Schema.withDecodingDefaultKey(Effect.succeed([]))),
|
|
723
776
|
predictedScoreGap: NonNegativeFinite,
|
|
724
777
|
observedScoreGap: NonNegativeFinite,
|
|
778
|
+
comparable: Schema.optionalKey(Schema.Boolean).pipe(Schema.withDecodingDefaultKey(Effect.succeed(false))),
|
|
725
779
|
passed: Schema.Boolean
|
|
726
780
|
});
|
|
727
781
|
export const EvalRunQualification = Schema.Struct({
|
|
@@ -735,7 +789,10 @@ export const EvalRunQualification = Schema.Struct({
|
|
|
735
789
|
expectedCases: NonNegativeInteger,
|
|
736
790
|
comparableCases: NonNegativeInteger,
|
|
737
791
|
agreeingCases: NonNegativeInteger,
|
|
738
|
-
winnerAgreement: NonNegativeFinite,
|
|
792
|
+
winnerAgreement: Schema.optionalKey(NonNegativeFinite),
|
|
793
|
+
conclusion: Schema.optionalKey(Schema.Literals(["passed", "failed", "inconclusive"])).pipe(Schema.withDecodingDefaultKey(Effect.succeed("failed"))),
|
|
794
|
+
reason: Schema.optionalKey(Schema.String),
|
|
795
|
+
publishable: Schema.optionalKey(Schema.Boolean).pipe(Schema.withDecodingDefaultKey(Effect.succeed(false))),
|
|
739
796
|
cases: Schema.Array(EvalCompositionCaseResult)
|
|
740
797
|
})
|
|
741
798
|
});
|
|
@@ -761,6 +818,7 @@ export function summarizeEvalRunLedger(comparisons, expectedCalls, costService,
|
|
|
761
818
|
...(call.measurement.inputTokens === undefined
|
|
762
819
|
? {}
|
|
763
820
|
: { inputTokens: call.measurement.inputTokens }),
|
|
821
|
+
...(call.measurement.inputTokens === undefined ? {} : { cachedInputTokens: 0 }),
|
|
764
822
|
...(call.measurement.outputTokens === undefined
|
|
765
823
|
? {}
|
|
766
824
|
: { outputTokens: call.measurement.outputTokens })
|
|
@@ -779,6 +837,7 @@ export function summarizeEvalRunLedger(comparisons, expectedCalls, costService,
|
|
|
779
837
|
...(observation.measurement.inputTokens === undefined
|
|
780
838
|
? {}
|
|
781
839
|
: { inputTokens: observation.measurement.inputTokens }),
|
|
840
|
+
...(observation.measurement.inputTokens === undefined ? {} : { cachedInputTokens: 0 }),
|
|
782
841
|
...(observation.measurement.outputTokens === undefined
|
|
783
842
|
? {}
|
|
784
843
|
: { outputTokens: observation.measurement.outputTokens })
|
|
@@ -828,8 +887,7 @@ const QualifiedEvalRunReport = Schema.Struct({
|
|
|
828
887
|
});
|
|
829
888
|
const CompletedEvalRunReport = Schema.Struct({
|
|
830
889
|
...EvalRunReportCommon,
|
|
831
|
-
status: Schema.Literal("completed")
|
|
832
|
-
activation: PublishedRoutingActivation
|
|
890
|
+
status: Schema.Literal("completed")
|
|
833
891
|
});
|
|
834
892
|
const FailedEvalRunReport = Schema.Struct({
|
|
835
893
|
...EvalRunReportCommon,
|