@velum-labs/routekit-eval-setup 1.3.2 → 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 -10
- package/dist/effect-api.js +56 -6
- 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 +140 -0
- package/dist/eval-event-log.js +220 -0
- 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 -17
- package/dist/index.js +69 -11
- package/dist/inspection.js +2 -3
- package/dist/project-artifacts.d.ts +7 -2
- package/dist/project-artifacts.js +49 -136
- package/dist/project-authoring.d.ts +66 -5
- package/dist/project-authoring.js +783 -109
- package/dist/project-contracts.d.ts +419 -84
- package/dist/project-contracts.js +160 -52
- package/dist/project-store.js +2 -1
- package/dist/project-workflow.d.ts +5 -4
- package/dist/project-workflow.js +154 -35
- 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.d.ts +1 -0
- package/dist/test/eval-event-log.test.js +125 -0
- 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 +419 -40
- 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 -6
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const RepositoryTaskSeedSourceV1: Schema.Union<readonly [Schema.Struct<{
|
|
3
|
+
readonly kind: Schema.Literal<"historical-fix">;
|
|
4
|
+
readonly changeEpisodeId: Schema.String;
|
|
5
|
+
}>, Schema.Struct<{
|
|
6
|
+
readonly kind: Schema.Literal<"historical-feature">;
|
|
7
|
+
readonly changeEpisodeId: Schema.String;
|
|
8
|
+
}>, Schema.Struct<{
|
|
9
|
+
readonly kind: Schema.Literal<"historical-refactor">;
|
|
10
|
+
readonly changeEpisodeId: Schema.String;
|
|
11
|
+
}>, Schema.Struct<{
|
|
12
|
+
readonly kind: Schema.Literal<"existing-test">;
|
|
13
|
+
readonly testIds: Schema.$Array<Schema.String>;
|
|
14
|
+
}>, Schema.Struct<{
|
|
15
|
+
readonly kind: Schema.Literal<"public-api">;
|
|
16
|
+
readonly surfaceIds: Schema.$Array<Schema.String>;
|
|
17
|
+
}>, Schema.Struct<{
|
|
18
|
+
readonly kind: Schema.Literal<"schema-contract">;
|
|
19
|
+
readonly protocolIds: Schema.$Array<Schema.String>;
|
|
20
|
+
}>, Schema.Struct<{
|
|
21
|
+
readonly kind: Schema.Literal<"production-request">;
|
|
22
|
+
readonly requestId: Schema.String;
|
|
23
|
+
}>, Schema.Struct<{
|
|
24
|
+
readonly kind: Schema.Literal<"reviewed-synthetic-gap">;
|
|
25
|
+
readonly reviewId: Schema.String;
|
|
26
|
+
}>]>;
|
|
27
|
+
export type RepositoryTaskSeedSourceV1 = typeof RepositoryTaskSeedSourceV1.Type;
|
|
28
|
+
export declare const RepositoryBehaviorClauseV1: Schema.Struct<{
|
|
29
|
+
readonly id: Schema.String;
|
|
30
|
+
readonly description: Schema.String;
|
|
31
|
+
readonly critical: Schema.Boolean;
|
|
32
|
+
readonly evidence: Schema.$Array<Schema.Struct<{
|
|
33
|
+
readonly kind: Schema.Literals<readonly ["package", "public-surface", "symbol", "protocol", "schema", "test", "command", "history-episode", "workload-signal", "documentation"]>;
|
|
34
|
+
readonly id: Schema.String;
|
|
35
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
36
|
+
}>>;
|
|
37
|
+
}>;
|
|
38
|
+
export type RepositoryBehaviorClauseV1 = typeof RepositoryBehaviorClauseV1.Type;
|
|
39
|
+
export declare const RepositorySeedObservationV1: Schema.Struct<{
|
|
40
|
+
readonly id: Schema.String;
|
|
41
|
+
readonly kind: Schema.Literals<readonly ["test-command", "schema", "property", "event-trace", "structural"]>;
|
|
42
|
+
readonly subjectId: Schema.String;
|
|
43
|
+
readonly outcome: Schema.Literals<readonly ["pass", "fail", "unknown"]>;
|
|
44
|
+
readonly detail: Schema.String;
|
|
45
|
+
}>;
|
|
46
|
+
export type RepositorySeedObservationV1 = typeof RepositorySeedObservationV1.Type;
|
|
47
|
+
export declare const RepositoryTaskSeedRiskV1: Schema.Literals<readonly ["ambiguous-intent", "bundled-change", "external-service", "flaky-baseline", "reference-only-oracle", "weak-test-delta", "unrealistic-mutation", "private-context", "cross-batch-instability", "review-required"]>;
|
|
48
|
+
export type RepositoryTaskSeedRiskV1 = typeof RepositoryTaskSeedRiskV1.Type;
|
|
49
|
+
export declare const RepositorySeedEnvironmentV1: Schema.Struct<{
|
|
50
|
+
readonly packageManager: Schema.optionalKey<Schema.Struct<{
|
|
51
|
+
readonly name: Schema.Literal<"pnpm">;
|
|
52
|
+
readonly version: Schema.String;
|
|
53
|
+
}>>;
|
|
54
|
+
readonly lockfilePath: Schema.optionalKey<Schema.String>;
|
|
55
|
+
readonly protectedControlPaths: Schema.$Array<Schema.String>;
|
|
56
|
+
readonly trustedPreparationRecipes: Schema.$Array<Schema.Struct<{
|
|
57
|
+
readonly id: Schema.String;
|
|
58
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
59
|
+
readonly cwd: Schema.String;
|
|
60
|
+
readonly executable: Schema.String;
|
|
61
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
62
|
+
readonly timeoutMs: Schema.Finite;
|
|
63
|
+
}>>;
|
|
64
|
+
readonly candidateValidationRecipes: Schema.$Array<Schema.Struct<{
|
|
65
|
+
readonly id: Schema.String;
|
|
66
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
67
|
+
readonly cwd: Schema.String;
|
|
68
|
+
readonly executable: Schema.String;
|
|
69
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
70
|
+
readonly timeoutMs: Schema.Finite;
|
|
71
|
+
}>>;
|
|
72
|
+
readonly baselineGradeRecipes: Schema.$Array<Schema.Struct<{
|
|
73
|
+
readonly id: Schema.String;
|
|
74
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
75
|
+
readonly cwd: Schema.String;
|
|
76
|
+
readonly executable: Schema.String;
|
|
77
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
78
|
+
readonly timeoutMs: Schema.Finite;
|
|
79
|
+
}>>;
|
|
80
|
+
readonly gradeRecipes: Schema.$Array<Schema.Struct<{
|
|
81
|
+
readonly id: Schema.String;
|
|
82
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
83
|
+
readonly cwd: Schema.String;
|
|
84
|
+
readonly executable: Schema.String;
|
|
85
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
86
|
+
readonly timeoutMs: Schema.Finite;
|
|
87
|
+
}>>;
|
|
88
|
+
}>;
|
|
89
|
+
export type RepositorySeedEnvironmentV1 = typeof RepositorySeedEnvironmentV1.Type;
|
|
90
|
+
export declare const RepositoryTaskSeedV1: Schema.Struct<{
|
|
91
|
+
readonly version: Schema.Literal<1>;
|
|
92
|
+
readonly id: Schema.String;
|
|
93
|
+
readonly status: Schema.Literals<readonly ["candidate", "qualified", "rejected"]>;
|
|
94
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
95
|
+
readonly kind: Schema.Literal<"historical-fix">;
|
|
96
|
+
readonly changeEpisodeId: Schema.String;
|
|
97
|
+
}>, Schema.Struct<{
|
|
98
|
+
readonly kind: Schema.Literal<"historical-feature">;
|
|
99
|
+
readonly changeEpisodeId: Schema.String;
|
|
100
|
+
}>, Schema.Struct<{
|
|
101
|
+
readonly kind: Schema.Literal<"historical-refactor">;
|
|
102
|
+
readonly changeEpisodeId: Schema.String;
|
|
103
|
+
}>, Schema.Struct<{
|
|
104
|
+
readonly kind: Schema.Literal<"existing-test">;
|
|
105
|
+
readonly testIds: Schema.$Array<Schema.String>;
|
|
106
|
+
}>, Schema.Struct<{
|
|
107
|
+
readonly kind: Schema.Literal<"public-api">;
|
|
108
|
+
readonly surfaceIds: Schema.$Array<Schema.String>;
|
|
109
|
+
}>, Schema.Struct<{
|
|
110
|
+
readonly kind: Schema.Literal<"schema-contract">;
|
|
111
|
+
readonly protocolIds: Schema.$Array<Schema.String>;
|
|
112
|
+
}>, Schema.Struct<{
|
|
113
|
+
readonly kind: Schema.Literal<"production-request">;
|
|
114
|
+
readonly requestId: Schema.String;
|
|
115
|
+
}>, Schema.Struct<{
|
|
116
|
+
readonly kind: Schema.Literal<"reviewed-synthetic-gap">;
|
|
117
|
+
readonly reviewId: Schema.String;
|
|
118
|
+
}>]>;
|
|
119
|
+
readonly summary: Schema.String;
|
|
120
|
+
readonly capabilityEvidence: Schema.$Array<Schema.Struct<{
|
|
121
|
+
readonly kind: Schema.Literals<readonly ["package", "public-surface", "symbol", "protocol", "schema", "test", "command", "history-episode", "workload-signal", "documentation"]>;
|
|
122
|
+
readonly id: Schema.String;
|
|
123
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
124
|
+
}>>;
|
|
125
|
+
readonly initialState: Schema.Struct<{
|
|
126
|
+
readonly commit: Schema.String;
|
|
127
|
+
readonly parentCommit: Schema.optionalKey<Schema.String>;
|
|
128
|
+
}>;
|
|
129
|
+
readonly targetBehavior: Schema.$Array<Schema.Struct<{
|
|
130
|
+
readonly id: Schema.String;
|
|
131
|
+
readonly description: Schema.String;
|
|
132
|
+
readonly critical: Schema.Boolean;
|
|
133
|
+
readonly evidence: Schema.$Array<Schema.Struct<{
|
|
134
|
+
readonly kind: Schema.Literals<readonly ["package", "public-surface", "symbol", "protocol", "schema", "test", "command", "history-episode", "workload-signal", "documentation"]>;
|
|
135
|
+
readonly id: Schema.String;
|
|
136
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
137
|
+
}>>;
|
|
138
|
+
}>>;
|
|
139
|
+
readonly referenceCommit: Schema.optionalKey<Schema.String>;
|
|
140
|
+
readonly baselineObservations: Schema.$Array<Schema.Struct<{
|
|
141
|
+
readonly id: Schema.String;
|
|
142
|
+
readonly kind: Schema.Literals<readonly ["test-command", "schema", "property", "event-trace", "structural"]>;
|
|
143
|
+
readonly subjectId: Schema.String;
|
|
144
|
+
readonly outcome: Schema.Literals<readonly ["pass", "fail", "unknown"]>;
|
|
145
|
+
readonly detail: Schema.String;
|
|
146
|
+
}>>;
|
|
147
|
+
readonly preChangeObservations: Schema.$Array<Schema.Struct<{
|
|
148
|
+
readonly id: Schema.String;
|
|
149
|
+
readonly kind: Schema.Literals<readonly ["test-command", "schema", "property", "event-trace", "structural"]>;
|
|
150
|
+
readonly subjectId: Schema.String;
|
|
151
|
+
readonly outcome: Schema.Literals<readonly ["pass", "fail", "unknown"]>;
|
|
152
|
+
readonly detail: Schema.String;
|
|
153
|
+
}>>;
|
|
154
|
+
readonly postChangeObservations: Schema.$Array<Schema.Struct<{
|
|
155
|
+
readonly id: Schema.String;
|
|
156
|
+
readonly kind: Schema.Literals<readonly ["test-command", "schema", "property", "event-trace", "structural"]>;
|
|
157
|
+
readonly subjectId: Schema.String;
|
|
158
|
+
readonly outcome: Schema.Literals<readonly ["pass", "fail", "unknown"]>;
|
|
159
|
+
readonly detail: Schema.String;
|
|
160
|
+
}>>;
|
|
161
|
+
readonly candidateTestIds: Schema.$Array<Schema.String>;
|
|
162
|
+
readonly environment: Schema.Struct<{
|
|
163
|
+
readonly packageManager: Schema.optionalKey<Schema.Struct<{
|
|
164
|
+
readonly name: Schema.Literal<"pnpm">;
|
|
165
|
+
readonly version: Schema.String;
|
|
166
|
+
}>>;
|
|
167
|
+
readonly lockfilePath: Schema.optionalKey<Schema.String>;
|
|
168
|
+
readonly protectedControlPaths: Schema.$Array<Schema.String>;
|
|
169
|
+
readonly trustedPreparationRecipes: Schema.$Array<Schema.Struct<{
|
|
170
|
+
readonly id: Schema.String;
|
|
171
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
172
|
+
readonly cwd: Schema.String;
|
|
173
|
+
readonly executable: Schema.String;
|
|
174
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
175
|
+
readonly timeoutMs: Schema.Finite;
|
|
176
|
+
}>>;
|
|
177
|
+
readonly candidateValidationRecipes: Schema.$Array<Schema.Struct<{
|
|
178
|
+
readonly id: Schema.String;
|
|
179
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
180
|
+
readonly cwd: Schema.String;
|
|
181
|
+
readonly executable: Schema.String;
|
|
182
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
183
|
+
readonly timeoutMs: Schema.Finite;
|
|
184
|
+
}>>;
|
|
185
|
+
readonly baselineGradeRecipes: Schema.$Array<Schema.Struct<{
|
|
186
|
+
readonly id: Schema.String;
|
|
187
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
188
|
+
readonly cwd: Schema.String;
|
|
189
|
+
readonly executable: Schema.String;
|
|
190
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
191
|
+
readonly timeoutMs: Schema.Finite;
|
|
192
|
+
}>>;
|
|
193
|
+
readonly gradeRecipes: Schema.$Array<Schema.Struct<{
|
|
194
|
+
readonly id: Schema.String;
|
|
195
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
196
|
+
readonly cwd: Schema.String;
|
|
197
|
+
readonly executable: Schema.String;
|
|
198
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
199
|
+
readonly timeoutMs: Schema.Finite;
|
|
200
|
+
}>>;
|
|
201
|
+
}>;
|
|
202
|
+
readonly confidence: Schema.Literals<readonly ["high", "medium", "review-required"]>;
|
|
203
|
+
readonly risks: Schema.$Array<Schema.Literals<readonly ["ambiguous-intent", "bundled-change", "external-service", "flaky-baseline", "reference-only-oracle", "weak-test-delta", "unrealistic-mutation", "private-context", "cross-batch-instability", "review-required"]>>;
|
|
204
|
+
readonly rejectionReasons: Schema.$Array<Schema.String>;
|
|
205
|
+
}>;
|
|
206
|
+
export type RepositoryTaskSeedV1 = typeof RepositoryTaskSeedV1.Type;
|
|
207
|
+
export declare const RepositorySeedQualificationPhaseV1: Schema.Literals<readonly ["baseline", "pre-change", "post-change"]>;
|
|
208
|
+
export type RepositorySeedQualificationPhaseV1 = typeof RepositorySeedQualificationPhaseV1.Type;
|
|
209
|
+
export declare const RepositorySeedQualificationBatchV1: Schema.Struct<{
|
|
210
|
+
readonly batch: Schema.Finite;
|
|
211
|
+
readonly status: Schema.Literals<readonly ["qualified", "rejected"]>;
|
|
212
|
+
readonly phaseSignatures: Schema.$Array<Schema.Struct<{
|
|
213
|
+
readonly phase: Schema.Literals<readonly ["baseline", "pre-change", "post-change"]>;
|
|
214
|
+
readonly signatures: Schema.$Array<Schema.String>;
|
|
215
|
+
}>>;
|
|
216
|
+
readonly rejectionReasons: Schema.$Array<Schema.String>;
|
|
217
|
+
}>;
|
|
218
|
+
export type RepositorySeedQualificationBatchV1 = typeof RepositorySeedQualificationBatchV1.Type;
|
|
219
|
+
export declare const RepositorySeedCrossBatchStabilityReportV1: Schema.Struct<{
|
|
220
|
+
readonly version: Schema.Literal<1>;
|
|
221
|
+
readonly seedId: Schema.String;
|
|
222
|
+
readonly batchesRequired: Schema.Finite;
|
|
223
|
+
readonly repetitionsPerBatch: Schema.Finite;
|
|
224
|
+
readonly stable: Schema.Boolean;
|
|
225
|
+
readonly batches: Schema.$Array<Schema.Struct<{
|
|
226
|
+
readonly batch: Schema.Finite;
|
|
227
|
+
readonly status: Schema.Literals<readonly ["qualified", "rejected"]>;
|
|
228
|
+
readonly phaseSignatures: Schema.$Array<Schema.Struct<{
|
|
229
|
+
readonly phase: Schema.Literals<readonly ["baseline", "pre-change", "post-change"]>;
|
|
230
|
+
readonly signatures: Schema.$Array<Schema.String>;
|
|
231
|
+
}>>;
|
|
232
|
+
readonly rejectionReasons: Schema.$Array<Schema.String>;
|
|
233
|
+
}>>;
|
|
234
|
+
readonly divergentPhases: Schema.$Array<Schema.Literals<readonly ["baseline", "pre-change", "post-change"]>>;
|
|
235
|
+
readonly failureSignatures: Schema.$Array<Schema.Struct<{
|
|
236
|
+
readonly signature: Schema.String;
|
|
237
|
+
readonly count: Schema.Finite;
|
|
238
|
+
}>>;
|
|
239
|
+
readonly rejectionReasons: Schema.$Array<Schema.String>;
|
|
240
|
+
}>;
|
|
241
|
+
export type RepositorySeedCrossBatchStabilityReportV1 = typeof RepositorySeedCrossBatchStabilityReportV1.Type;
|
|
242
|
+
export declare const RepositorySeedCrossBatchQualificationV1: Schema.Struct<{
|
|
243
|
+
readonly seed: Schema.Struct<{
|
|
244
|
+
readonly version: Schema.Literal<1>;
|
|
245
|
+
readonly id: Schema.String;
|
|
246
|
+
readonly status: Schema.Literals<readonly ["candidate", "qualified", "rejected"]>;
|
|
247
|
+
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
248
|
+
readonly kind: Schema.Literal<"historical-fix">;
|
|
249
|
+
readonly changeEpisodeId: Schema.String;
|
|
250
|
+
}>, Schema.Struct<{
|
|
251
|
+
readonly kind: Schema.Literal<"historical-feature">;
|
|
252
|
+
readonly changeEpisodeId: Schema.String;
|
|
253
|
+
}>, Schema.Struct<{
|
|
254
|
+
readonly kind: Schema.Literal<"historical-refactor">;
|
|
255
|
+
readonly changeEpisodeId: Schema.String;
|
|
256
|
+
}>, Schema.Struct<{
|
|
257
|
+
readonly kind: Schema.Literal<"existing-test">;
|
|
258
|
+
readonly testIds: Schema.$Array<Schema.String>;
|
|
259
|
+
}>, Schema.Struct<{
|
|
260
|
+
readonly kind: Schema.Literal<"public-api">;
|
|
261
|
+
readonly surfaceIds: Schema.$Array<Schema.String>;
|
|
262
|
+
}>, Schema.Struct<{
|
|
263
|
+
readonly kind: Schema.Literal<"schema-contract">;
|
|
264
|
+
readonly protocolIds: Schema.$Array<Schema.String>;
|
|
265
|
+
}>, Schema.Struct<{
|
|
266
|
+
readonly kind: Schema.Literal<"production-request">;
|
|
267
|
+
readonly requestId: Schema.String;
|
|
268
|
+
}>, Schema.Struct<{
|
|
269
|
+
readonly kind: Schema.Literal<"reviewed-synthetic-gap">;
|
|
270
|
+
readonly reviewId: Schema.String;
|
|
271
|
+
}>]>;
|
|
272
|
+
readonly summary: Schema.String;
|
|
273
|
+
readonly capabilityEvidence: Schema.$Array<Schema.Struct<{
|
|
274
|
+
readonly kind: Schema.Literals<readonly ["package", "public-surface", "symbol", "protocol", "schema", "test", "command", "history-episode", "workload-signal", "documentation"]>;
|
|
275
|
+
readonly id: Schema.String;
|
|
276
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
277
|
+
}>>;
|
|
278
|
+
readonly initialState: Schema.Struct<{
|
|
279
|
+
readonly commit: Schema.String;
|
|
280
|
+
readonly parentCommit: Schema.optionalKey<Schema.String>;
|
|
281
|
+
}>;
|
|
282
|
+
readonly targetBehavior: Schema.$Array<Schema.Struct<{
|
|
283
|
+
readonly id: Schema.String;
|
|
284
|
+
readonly description: Schema.String;
|
|
285
|
+
readonly critical: Schema.Boolean;
|
|
286
|
+
readonly evidence: Schema.$Array<Schema.Struct<{
|
|
287
|
+
readonly kind: Schema.Literals<readonly ["package", "public-surface", "symbol", "protocol", "schema", "test", "command", "history-episode", "workload-signal", "documentation"]>;
|
|
288
|
+
readonly id: Schema.String;
|
|
289
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
290
|
+
}>>;
|
|
291
|
+
}>>;
|
|
292
|
+
readonly referenceCommit: Schema.optionalKey<Schema.String>;
|
|
293
|
+
readonly baselineObservations: Schema.$Array<Schema.Struct<{
|
|
294
|
+
readonly id: Schema.String;
|
|
295
|
+
readonly kind: Schema.Literals<readonly ["test-command", "schema", "property", "event-trace", "structural"]>;
|
|
296
|
+
readonly subjectId: Schema.String;
|
|
297
|
+
readonly outcome: Schema.Literals<readonly ["pass", "fail", "unknown"]>;
|
|
298
|
+
readonly detail: Schema.String;
|
|
299
|
+
}>>;
|
|
300
|
+
readonly preChangeObservations: Schema.$Array<Schema.Struct<{
|
|
301
|
+
readonly id: Schema.String;
|
|
302
|
+
readonly kind: Schema.Literals<readonly ["test-command", "schema", "property", "event-trace", "structural"]>;
|
|
303
|
+
readonly subjectId: Schema.String;
|
|
304
|
+
readonly outcome: Schema.Literals<readonly ["pass", "fail", "unknown"]>;
|
|
305
|
+
readonly detail: Schema.String;
|
|
306
|
+
}>>;
|
|
307
|
+
readonly postChangeObservations: Schema.$Array<Schema.Struct<{
|
|
308
|
+
readonly id: Schema.String;
|
|
309
|
+
readonly kind: Schema.Literals<readonly ["test-command", "schema", "property", "event-trace", "structural"]>;
|
|
310
|
+
readonly subjectId: Schema.String;
|
|
311
|
+
readonly outcome: Schema.Literals<readonly ["pass", "fail", "unknown"]>;
|
|
312
|
+
readonly detail: Schema.String;
|
|
313
|
+
}>>;
|
|
314
|
+
readonly candidateTestIds: Schema.$Array<Schema.String>;
|
|
315
|
+
readonly environment: Schema.Struct<{
|
|
316
|
+
readonly packageManager: Schema.optionalKey<Schema.Struct<{
|
|
317
|
+
readonly name: Schema.Literal<"pnpm">;
|
|
318
|
+
readonly version: Schema.String;
|
|
319
|
+
}>>;
|
|
320
|
+
readonly lockfilePath: Schema.optionalKey<Schema.String>;
|
|
321
|
+
readonly protectedControlPaths: Schema.$Array<Schema.String>;
|
|
322
|
+
readonly trustedPreparationRecipes: Schema.$Array<Schema.Struct<{
|
|
323
|
+
readonly id: Schema.String;
|
|
324
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
325
|
+
readonly cwd: Schema.String;
|
|
326
|
+
readonly executable: Schema.String;
|
|
327
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
328
|
+
readonly timeoutMs: Schema.Finite;
|
|
329
|
+
}>>;
|
|
330
|
+
readonly candidateValidationRecipes: Schema.$Array<Schema.Struct<{
|
|
331
|
+
readonly id: Schema.String;
|
|
332
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
333
|
+
readonly cwd: Schema.String;
|
|
334
|
+
readonly executable: Schema.String;
|
|
335
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
336
|
+
readonly timeoutMs: Schema.Finite;
|
|
337
|
+
}>>;
|
|
338
|
+
readonly baselineGradeRecipes: Schema.$Array<Schema.Struct<{
|
|
339
|
+
readonly id: Schema.String;
|
|
340
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
341
|
+
readonly cwd: Schema.String;
|
|
342
|
+
readonly executable: Schema.String;
|
|
343
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
344
|
+
readonly timeoutMs: Schema.Finite;
|
|
345
|
+
}>>;
|
|
346
|
+
readonly gradeRecipes: Schema.$Array<Schema.Struct<{
|
|
347
|
+
readonly id: Schema.String;
|
|
348
|
+
readonly kind: Schema.Literals<readonly ["build", "test", "check", "schema", "custom"]>;
|
|
349
|
+
readonly cwd: Schema.String;
|
|
350
|
+
readonly executable: Schema.String;
|
|
351
|
+
readonly args: Schema.$Array<Schema.String>;
|
|
352
|
+
readonly timeoutMs: Schema.Finite;
|
|
353
|
+
}>>;
|
|
354
|
+
}>;
|
|
355
|
+
readonly confidence: Schema.Literals<readonly ["high", "medium", "review-required"]>;
|
|
356
|
+
readonly risks: Schema.$Array<Schema.Literals<readonly ["ambiguous-intent", "bundled-change", "external-service", "flaky-baseline", "reference-only-oracle", "weak-test-delta", "unrealistic-mutation", "private-context", "cross-batch-instability", "review-required"]>>;
|
|
357
|
+
readonly rejectionReasons: Schema.$Array<Schema.String>;
|
|
358
|
+
}>;
|
|
359
|
+
readonly stability: Schema.Struct<{
|
|
360
|
+
readonly version: Schema.Literal<1>;
|
|
361
|
+
readonly seedId: Schema.String;
|
|
362
|
+
readonly batchesRequired: Schema.Finite;
|
|
363
|
+
readonly repetitionsPerBatch: Schema.Finite;
|
|
364
|
+
readonly stable: Schema.Boolean;
|
|
365
|
+
readonly batches: Schema.$Array<Schema.Struct<{
|
|
366
|
+
readonly batch: Schema.Finite;
|
|
367
|
+
readonly status: Schema.Literals<readonly ["qualified", "rejected"]>;
|
|
368
|
+
readonly phaseSignatures: Schema.$Array<Schema.Struct<{
|
|
369
|
+
readonly phase: Schema.Literals<readonly ["baseline", "pre-change", "post-change"]>;
|
|
370
|
+
readonly signatures: Schema.$Array<Schema.String>;
|
|
371
|
+
}>>;
|
|
372
|
+
readonly rejectionReasons: Schema.$Array<Schema.String>;
|
|
373
|
+
}>>;
|
|
374
|
+
readonly divergentPhases: Schema.$Array<Schema.Literals<readonly ["baseline", "pre-change", "post-change"]>>;
|
|
375
|
+
readonly failureSignatures: Schema.$Array<Schema.Struct<{
|
|
376
|
+
readonly signature: Schema.String;
|
|
377
|
+
readonly count: Schema.Finite;
|
|
378
|
+
}>>;
|
|
379
|
+
readonly rejectionReasons: Schema.$Array<Schema.String>;
|
|
380
|
+
}>;
|
|
381
|
+
}>;
|
|
382
|
+
export type RepositorySeedCrossBatchQualificationV1 = typeof RepositorySeedCrossBatchQualificationV1.Type;
|
|
383
|
+
export declare function assertRepositoryTaskSeedV1(value: unknown): asserts value is RepositoryTaskSeedV1;
|
|
384
|
+
export declare function assertRepositorySeedCrossBatchQualificationV1(value: unknown): asserts value is RepositorySeedCrossBatchQualificationV1;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { RepositoryCommandRecipeV1, RepositoryEvidenceRefV1 } from "./repository-behavior-protocol.js";
|
|
3
|
+
export const RepositoryTaskSeedSourceV1 = Schema.Union([
|
|
4
|
+
Schema.Struct({
|
|
5
|
+
kind: Schema.Literal("historical-fix"),
|
|
6
|
+
changeEpisodeId: Schema.String
|
|
7
|
+
}),
|
|
8
|
+
Schema.Struct({
|
|
9
|
+
kind: Schema.Literal("historical-feature"),
|
|
10
|
+
changeEpisodeId: Schema.String
|
|
11
|
+
}),
|
|
12
|
+
Schema.Struct({
|
|
13
|
+
kind: Schema.Literal("historical-refactor"),
|
|
14
|
+
changeEpisodeId: Schema.String
|
|
15
|
+
}),
|
|
16
|
+
Schema.Struct({
|
|
17
|
+
kind: Schema.Literal("existing-test"),
|
|
18
|
+
testIds: Schema.Array(Schema.String)
|
|
19
|
+
}),
|
|
20
|
+
Schema.Struct({
|
|
21
|
+
kind: Schema.Literal("public-api"),
|
|
22
|
+
surfaceIds: Schema.Array(Schema.String)
|
|
23
|
+
}),
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
kind: Schema.Literal("schema-contract"),
|
|
26
|
+
protocolIds: Schema.Array(Schema.String)
|
|
27
|
+
}),
|
|
28
|
+
Schema.Struct({
|
|
29
|
+
kind: Schema.Literal("production-request"),
|
|
30
|
+
requestId: Schema.String
|
|
31
|
+
}),
|
|
32
|
+
Schema.Struct({
|
|
33
|
+
kind: Schema.Literal("reviewed-synthetic-gap"),
|
|
34
|
+
reviewId: Schema.String
|
|
35
|
+
})
|
|
36
|
+
]);
|
|
37
|
+
export const RepositoryBehaviorClauseV1 = Schema.Struct({
|
|
38
|
+
id: Schema.String,
|
|
39
|
+
description: Schema.String,
|
|
40
|
+
critical: Schema.Boolean,
|
|
41
|
+
evidence: Schema.Array(RepositoryEvidenceRefV1)
|
|
42
|
+
});
|
|
43
|
+
export const RepositorySeedObservationV1 = Schema.Struct({
|
|
44
|
+
id: Schema.String,
|
|
45
|
+
kind: Schema.Literals([
|
|
46
|
+
"test-command",
|
|
47
|
+
"schema",
|
|
48
|
+
"property",
|
|
49
|
+
"event-trace",
|
|
50
|
+
"structural"
|
|
51
|
+
]),
|
|
52
|
+
subjectId: Schema.String,
|
|
53
|
+
outcome: Schema.Literals(["pass", "fail", "unknown"]),
|
|
54
|
+
detail: Schema.String
|
|
55
|
+
});
|
|
56
|
+
export const RepositoryTaskSeedRiskV1 = Schema.Literals([
|
|
57
|
+
"ambiguous-intent",
|
|
58
|
+
"bundled-change",
|
|
59
|
+
"external-service",
|
|
60
|
+
"flaky-baseline",
|
|
61
|
+
"reference-only-oracle",
|
|
62
|
+
"weak-test-delta",
|
|
63
|
+
"unrealistic-mutation",
|
|
64
|
+
"private-context",
|
|
65
|
+
"cross-batch-instability",
|
|
66
|
+
"review-required"
|
|
67
|
+
]);
|
|
68
|
+
export const RepositorySeedEnvironmentV1 = Schema.Struct({
|
|
69
|
+
packageManager: Schema.optionalKey(Schema.Struct({
|
|
70
|
+
name: Schema.Literal("pnpm"),
|
|
71
|
+
version: Schema.String
|
|
72
|
+
})),
|
|
73
|
+
lockfilePath: Schema.optionalKey(Schema.String),
|
|
74
|
+
protectedControlPaths: Schema.Array(Schema.String),
|
|
75
|
+
trustedPreparationRecipes: Schema.Array(RepositoryCommandRecipeV1),
|
|
76
|
+
candidateValidationRecipes: Schema.Array(RepositoryCommandRecipeV1),
|
|
77
|
+
baselineGradeRecipes: Schema.Array(RepositoryCommandRecipeV1),
|
|
78
|
+
gradeRecipes: Schema.Array(RepositoryCommandRecipeV1)
|
|
79
|
+
});
|
|
80
|
+
export const RepositoryTaskSeedV1 = Schema.Struct({
|
|
81
|
+
version: Schema.Literal(1),
|
|
82
|
+
id: Schema.String,
|
|
83
|
+
status: Schema.Literals(["candidate", "qualified", "rejected"]),
|
|
84
|
+
source: RepositoryTaskSeedSourceV1,
|
|
85
|
+
summary: Schema.String,
|
|
86
|
+
capabilityEvidence: Schema.Array(RepositoryEvidenceRefV1),
|
|
87
|
+
initialState: Schema.Struct({
|
|
88
|
+
commit: Schema.String,
|
|
89
|
+
parentCommit: Schema.optionalKey(Schema.String)
|
|
90
|
+
}),
|
|
91
|
+
targetBehavior: Schema.Array(RepositoryBehaviorClauseV1),
|
|
92
|
+
referenceCommit: Schema.optionalKey(Schema.String),
|
|
93
|
+
baselineObservations: Schema.Array(RepositorySeedObservationV1),
|
|
94
|
+
preChangeObservations: Schema.Array(RepositorySeedObservationV1),
|
|
95
|
+
postChangeObservations: Schema.Array(RepositorySeedObservationV1),
|
|
96
|
+
candidateTestIds: Schema.Array(Schema.String),
|
|
97
|
+
environment: RepositorySeedEnvironmentV1,
|
|
98
|
+
confidence: Schema.Literals(["high", "medium", "review-required"]),
|
|
99
|
+
risks: Schema.Array(RepositoryTaskSeedRiskV1),
|
|
100
|
+
rejectionReasons: Schema.Array(Schema.String)
|
|
101
|
+
});
|
|
102
|
+
export const RepositorySeedQualificationPhaseV1 = Schema.Literals([
|
|
103
|
+
"baseline",
|
|
104
|
+
"pre-change",
|
|
105
|
+
"post-change"
|
|
106
|
+
]);
|
|
107
|
+
export const RepositorySeedQualificationBatchV1 = Schema.Struct({
|
|
108
|
+
batch: Schema.Finite,
|
|
109
|
+
status: Schema.Literals(["qualified", "rejected"]),
|
|
110
|
+
phaseSignatures: Schema.Array(Schema.Struct({
|
|
111
|
+
phase: RepositorySeedQualificationPhaseV1,
|
|
112
|
+
signatures: Schema.Array(Schema.String)
|
|
113
|
+
})),
|
|
114
|
+
rejectionReasons: Schema.Array(Schema.String)
|
|
115
|
+
});
|
|
116
|
+
export const RepositorySeedCrossBatchStabilityReportV1 = Schema.Struct({
|
|
117
|
+
version: Schema.Literal(1),
|
|
118
|
+
seedId: Schema.String,
|
|
119
|
+
batchesRequired: Schema.Finite,
|
|
120
|
+
repetitionsPerBatch: Schema.Finite,
|
|
121
|
+
stable: Schema.Boolean,
|
|
122
|
+
batches: Schema.Array(RepositorySeedQualificationBatchV1),
|
|
123
|
+
divergentPhases: Schema.Array(RepositorySeedQualificationPhaseV1),
|
|
124
|
+
failureSignatures: Schema.Array(Schema.Struct({
|
|
125
|
+
signature: Schema.String,
|
|
126
|
+
count: Schema.Finite
|
|
127
|
+
})),
|
|
128
|
+
rejectionReasons: Schema.Array(Schema.String)
|
|
129
|
+
});
|
|
130
|
+
export const RepositorySeedCrossBatchQualificationV1 = Schema.Struct({
|
|
131
|
+
seed: RepositoryTaskSeedV1,
|
|
132
|
+
stability: RepositorySeedCrossBatchStabilityReportV1
|
|
133
|
+
});
|
|
134
|
+
export function assertRepositoryTaskSeedV1(value) {
|
|
135
|
+
const seed = Schema.decodeUnknownSync(RepositoryTaskSeedV1)(value);
|
|
136
|
+
if (seed.id.trim().length === 0 || seed.summary.trim().length === 0) {
|
|
137
|
+
throw new Error("repository task seed id and summary must be non-empty");
|
|
138
|
+
}
|
|
139
|
+
if (seed.targetBehavior.length === 0 ||
|
|
140
|
+
!seed.targetBehavior.some((clause) => clause.critical) ||
|
|
141
|
+
new Set(seed.targetBehavior.map((clause) => clause.id)).size !==
|
|
142
|
+
seed.targetBehavior.length) {
|
|
143
|
+
throw new Error("repository task seed requires unique behavior clauses and one critical clause");
|
|
144
|
+
}
|
|
145
|
+
if (seed.status === "qualified" &&
|
|
146
|
+
(seed.preChangeObservations.length === 0 ||
|
|
147
|
+
seed.baselineObservations.length === 0 ||
|
|
148
|
+
seed.baselineObservations.some((observation) => observation.outcome !== "pass") ||
|
|
149
|
+
seed.postChangeObservations.length === 0 ||
|
|
150
|
+
seed.preChangeObservations.some((observation) => observation.outcome === "unknown") ||
|
|
151
|
+
seed.preChangeObservations.every((observation) => observation.outcome !== "fail") ||
|
|
152
|
+
seed.postChangeObservations.some((observation) => observation.outcome !== "pass") ||
|
|
153
|
+
seed.rejectionReasons.length > 0)) {
|
|
154
|
+
throw new Error("qualified repository task seed requires reproduced pre-change failure and post-change success");
|
|
155
|
+
}
|
|
156
|
+
if (seed.status === "rejected" && seed.rejectionReasons.length === 0) {
|
|
157
|
+
throw new Error("rejected repository task seed requires a rejection reason");
|
|
158
|
+
}
|
|
159
|
+
const environmentRecipeIds = [
|
|
160
|
+
...seed.environment.trustedPreparationRecipes,
|
|
161
|
+
...seed.environment.candidateValidationRecipes,
|
|
162
|
+
...seed.environment.baselineGradeRecipes,
|
|
163
|
+
...seed.environment.gradeRecipes
|
|
164
|
+
].map((recipe) => recipe.id);
|
|
165
|
+
if (seed.environment.baselineGradeRecipes.length === 0 ||
|
|
166
|
+
seed.environment.gradeRecipes.length === 0 ||
|
|
167
|
+
environmentRecipeIds.some((id) => id.trim().length === 0) ||
|
|
168
|
+
new Set(environmentRecipeIds).size !== environmentRecipeIds.length) {
|
|
169
|
+
throw new Error("repository task seed environment requires executable baseline and strong grade recipes with globally unique recipe ids");
|
|
170
|
+
}
|
|
171
|
+
if (seed.status === "qualified") {
|
|
172
|
+
// Older qualification projected static-validation failures onto unstarted
|
|
173
|
+
// grade recipes. Preserve their diagnostics, but never accept them as proof
|
|
174
|
+
// that the reviewed tests actually distinguish the two revisions.
|
|
175
|
+
if ([...seed.baselineObservations, ...seed.preChangeObservations, ...seed.postChangeObservations]
|
|
176
|
+
.some((row) => row.kind === "test-command" &&
|
|
177
|
+
/(?:^|;\s*)gradeExecuted=false(?:;|$)/u.test(row.detail))) {
|
|
178
|
+
throw new Error("qualified repository task seed requires executed grading, not compilation or setup failure");
|
|
179
|
+
}
|
|
180
|
+
const baselineGradeRecipeIds = seed.environment.baselineGradeRecipes.map((recipe) => recipe.id);
|
|
181
|
+
const gradeRecipeIds = seed.environment.gradeRecipes.map((recipe) => recipe.id);
|
|
182
|
+
const baselineCoversEveryBaselineRecipe = baselineGradeRecipeIds.every((recipeId) => seed.baselineObservations.some((observation) => observation.subjectId === recipeId));
|
|
183
|
+
const strongPhasesCoverEveryStrongRecipe = [
|
|
184
|
+
seed.preChangeObservations,
|
|
185
|
+
seed.postChangeObservations
|
|
186
|
+
].every((observations) => gradeRecipeIds.every((recipeId) => observations.some((observation) => observation.subjectId === recipeId)));
|
|
187
|
+
const everyGradeRecipeReproducesFailure = gradeRecipeIds.every((recipeId) => seed.preChangeObservations.some((observation) => observation.subjectId === recipeId &&
|
|
188
|
+
observation.outcome === "fail"));
|
|
189
|
+
if (!baselineCoversEveryBaselineRecipe ||
|
|
190
|
+
!strongPhasesCoverEveryStrongRecipe ||
|
|
191
|
+
!everyGradeRecipeReproducesFailure) {
|
|
192
|
+
throw new Error("qualified repository task seed requires baseline evidence for every baseline recipe and pre-change/post-change evidence for every strong grade recipe");
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
if ((seed.environment.packageManager === undefined) !==
|
|
196
|
+
(seed.environment.lockfilePath === undefined)) {
|
|
197
|
+
throw new Error("repository task seed package manager and lockfile evidence must be recorded together");
|
|
198
|
+
}
|
|
199
|
+
if (seed.environment.packageManager !== undefined &&
|
|
200
|
+
(!/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[0-9A-Za-z.-]+)?$/u.test(seed.environment.packageManager.version) ||
|
|
201
|
+
seed.environment.lockfilePath?.trim().length === 0 ||
|
|
202
|
+
seed.environment.trustedPreparationRecipes.length === 0)) {
|
|
203
|
+
throw new Error("repository task seed package manager evidence requires an exact version, lockfile, and trusted preparation");
|
|
204
|
+
}
|
|
205
|
+
if (new Set(seed.environment.protectedControlPaths).size !==
|
|
206
|
+
seed.environment.protectedControlPaths.length ||
|
|
207
|
+
seed.environment.protectedControlPaths.some((path) => path.trim().length === 0 ||
|
|
208
|
+
path.startsWith("/") ||
|
|
209
|
+
path.includes("\\") ||
|
|
210
|
+
path.split("/").some((part) => part === "" || part === "." || part === ".."))) {
|
|
211
|
+
throw new Error("repository task seed protected control paths must be unique canonical repository-relative paths");
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
export function assertRepositorySeedCrossBatchQualificationV1(value) {
|
|
215
|
+
const qualification = Schema.decodeUnknownSync(RepositorySeedCrossBatchQualificationV1)(value);
|
|
216
|
+
const { seed, stability } = qualification;
|
|
217
|
+
if (stability.seedId !== seed.id ||
|
|
218
|
+
!Number.isInteger(stability.batchesRequired) ||
|
|
219
|
+
stability.batchesRequired < 2 ||
|
|
220
|
+
!Number.isInteger(stability.repetitionsPerBatch) ||
|
|
221
|
+
stability.repetitionsPerBatch < 2 ||
|
|
222
|
+
stability.batches.length !== stability.batchesRequired ||
|
|
223
|
+
stability.batches.some((batch, index) => batch.batch !== index + 1 ||
|
|
224
|
+
batch.phaseSignatures.length !== 3 ||
|
|
225
|
+
new Set(batch.phaseSignatures.map((phase) => phase.phase)).size !== 3)) {
|
|
226
|
+
throw new Error("cross-batch seed qualification requires ordered complete batches");
|
|
227
|
+
}
|
|
228
|
+
if (stability.stable !==
|
|
229
|
+
(stability.rejectionReasons.length === 0 &&
|
|
230
|
+
stability.divergentPhases.length === 0 &&
|
|
231
|
+
stability.batches.every((batch) => batch.status === "qualified")) ||
|
|
232
|
+
(stability.stable && seed.status !== "qualified") ||
|
|
233
|
+
(!stability.stable && seed.status !== "rejected")) {
|
|
234
|
+
throw new Error("cross-batch seed qualification status is inconsistent with its evidence");
|
|
235
|
+
}
|
|
236
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const RepositoryTrajectoryPolicyV1: Schema.Struct<{
|
|
3
|
+
readonly version: Schema.Literal<1>;
|
|
4
|
+
readonly caseId: Schema.String;
|
|
5
|
+
readonly purpose: Schema.Literal<"routing-signal">;
|
|
6
|
+
readonly validationRecipeIds: Schema.$Array<Schema.String>;
|
|
7
|
+
readonly protectedPaths: Schema.$Array<Schema.String>;
|
|
8
|
+
readonly thresholds: Schema.Struct<{
|
|
9
|
+
readonly maximumToolCalls: Schema.Finite;
|
|
10
|
+
readonly maximumFailedToolCalls: Schema.Finite;
|
|
11
|
+
readonly maximumRepeatedFailedActions: Schema.Finite;
|
|
12
|
+
}>;
|
|
13
|
+
readonly requirements: Schema.Struct<{
|
|
14
|
+
readonly passingValidationAfterLastMutation: Schema.Boolean;
|
|
15
|
+
readonly noProtectedPathMutations: Schema.Boolean;
|
|
16
|
+
}>;
|
|
17
|
+
readonly rationale: Schema.String;
|
|
18
|
+
}>;
|
|
19
|
+
export type RepositoryTrajectoryPolicyV1 = typeof RepositoryTrajectoryPolicyV1.Type;
|
|
20
|
+
export declare function assertRepositoryTrajectoryPolicyV1(value: unknown): asserts value is RepositoryTrajectoryPolicyV1;
|