import type { QualificationRunManifest } from './types.js'; import type { ReviewEvaluation } from '../review/types.js'; /** * Gate evidence that is computed from recorded case evidence. Callers cannot * supply these flags: the runner ignores callbacks with these names and the * evaluator recomputes them from the manifest. */ export interface QualificationSuiteDefinition { gate: 'G0' | 'G1' | 'G2' | 'G4'; caseIds: readonly string[]; /** Named master-test-plan evidence IDs that must appear on passing evidence. */ evidenceIds?: readonly string[]; /** * Security/operations amendments (M01-M11) whose suites this gate covers. * test/fixtures/decision/amendment-traceability-v1.json must assign each to the same gate. */ amendments?: readonly string[]; } export declare const DECISION_GATE_SUITES: Readonly>; /** Flags backed by a checked, digest-pinned artifact copied into the run directory. */ export declare const GATE_ARTIFACT_SCHEMAS: { readonly 'immutable-splits': "decision-binary-benchmark-plan/v2"; readonly 'calibration-qualified': "decision-calibration-artifact/v1"; readonly 'load-manifest-qualified': "decision-load-result/v2"; readonly 'review-decision-recorded': "decision-qualification-review/v1"; }; export type QualificationGateArtifactFlag = keyof typeof GATE_ARTIFACT_SCHEMAS; export declare const GATE_ARTIFACT_FLAGS: QualificationGateArtifactFlag[]; /** Every name that the caller cannot assert through an evidence-check callback. */ export declare const DERIVED_GATE_EVIDENCE: readonly string[]; /** Legacy load record shape, retained for consumers reading historical evidence. It cannot qualify G5. */ export interface QualificationLoadResult { schemaVersion: 'decision-load-result/v1'; /** SHA-256 of the canonical JSON of `manifest`, recorded before observations are collected. */ manifestDigest: `sha256:${string}`; manifest: { schema: 'decision-load-manifest/v1'; mode: string; bounds: Record; }; mode: string; observations: Record; recordedAt: string; } export interface QualificationReviewRecord { schemaVersion: 'decision-qualification-review/v1'; runId: string; sourceCommit: string; /** `qualificationOutcomesDigest` of the reviewed run. */ outcomesDigest: `sha256:${string}`; reviewer: string; decision: 'approve' | 'reject'; recordedAt: string; evaluation?: ReviewEvaluation; } /** * Deterministic digest of the run's case outcomes and named evidence. Artifact * digests are excluded (they bind durations), so a reviewer can sign the * outcome set that the run must reproduce. */ export declare function qualificationOutcomesDigest(manifest: Pick): `sha256:${string}`; export declare function loadManifestDigest(manifest: unknown): `sha256:${string}`; /** True only when every suite case has executable, digest-bound, passing evidence and named IDs are proven. */ export declare function suiteSatisfied(manifest: Pick, suite: QualificationSuiteDefinition): boolean; export interface GateArtifactContext { manifest: Pick; /** Parsed, already-accepted artifacts; calibration binds to the accepted split plan. */ accepted: Partial>; } /** Split-plan versions with retained evidence: v1 is the pre-migration lineage (legacy allowlisted), v2 is canonical-only. */ export declare const IMMUTABLE_SPLIT_VERSIONS: readonly ["decision-binary-benchmark-plan/v1", "decision-binary-benchmark-plan/v2"]; /** Validates a parsed gate artifact against its schema, self-digest and the run it is attached to. */ export declare function validateGateArtifact(flag: QualificationGateArtifactFlag, value: unknown, context: GateArtifactContext): boolean; export interface QualificationEvidenceProof { /** Set only by the executable pipeline after every case and gate artifact re-verified on disk. */ artifactsVerified?: boolean; /** Set only after the v3 load artifact was re-read and validated against this run. */ loadArtifactVerified?: boolean; } /** Computes every derived gate flag from the manifest; caller-supplied values for these names are ignored. */ export declare function deriveGateEvidence(manifest: QualificationRunManifest, proof?: QualificationEvidenceProof): Record; //# sourceMappingURL=gate-evidence.d.ts.map