/** * Durable mission-level cognitive checkpoint (L2 warm memory). * * This is a *bounded operational projection* over Jensen's already-durable * state (MissionRuntime, session memory, todos, tasks, file operations). It is * NOT a new authority surface and can never fabricate mission success: the * Reliability Kernel / Completion Gate remain the sole authority for completion. * * The checkpoint is versioned, keyed to mission/session identity, corruption * safe, and provider-independent. It is the semantic bridge that lets a * rehydrated context continue the same mission without replaying the full * transcript. */ export declare const MISSION_CONTEXT_CHECKPOINT_SCHEMA_VERSION: 1; export interface DecisionRecord { decision: string; rationale: string; } export interface FindingRecord { subject: string; detail: string; /** Deterministic evidence id or file:line reference, never fabricated. */ evidenceRef?: string; } export interface TestState { command?: string; /** lastPassing/failing evidence references (observations, not conclusions). */ lastResult?: "pass" | "fail" | "unknown"; evidenceRef?: string; } export interface EvidenceReference { evidenceId: string; summary: string; } export interface MissionContextCheckpoint { schemaVersion: typeof MISSION_CONTEXT_CHECKPOINT_SCHEMA_VERSION; missionId: string; revision: number; updatedAtMs: number; objective: string; constraints: string[]; decisions: DecisionRecord[]; plan: string; completedSteps: string[]; pendingSteps: string[]; activeFiles: string[]; findings: FindingRecord[]; evidenceRefs: EvidenceReference[]; testState: TestState; blockers: string[]; nextActions: string[]; /** * Explicit authority marker. Context persistence must never promote mission * state; completion authority is always "mission-runtime-only". */ completionAuthority: "mission-runtime-only"; } export interface CheckpointPatch { objective?: string; constraints?: string[]; decisions?: DecisionRecord[]; plan?: string; completedSteps?: string[]; pendingSteps?: string[]; activeFiles?: string[]; findings?: FindingRecord[]; evidenceRefs?: EvidenceReference[]; testState?: TestState; blockers?: string[]; nextActions?: string[]; } export declare function createMissionContextCheckpoint(missionId: string, patch: CheckpointPatch, options?: { now?: number; }): MissionContextCheckpoint; /** * Deserialize a checkpoint. Fails closed (throws) on structural corruption so * a partial/truncated document can never fabricate state, decisions, evidence, * or success. */ export declare function parseMissionContextCheckpoint(data: unknown): MissionContextCheckpoint; /** * Deterministic, bounded rehydration preamble. Contains the operational facts a * model needs to continue the SAME mission after a context rollover — never * raw reasoning, never raw transcripts, never secrets. */ export declare function checkpointToRehydrationPreamble(checkpoint: MissionContextCheckpoint): string; //# sourceMappingURL=mission-checkpoint.d.ts.map