import type { AcceptanceCompileResult, AcceptanceCoverageMapEntry } from "./acceptance-compiler.js"; export declare const EXECUTION_PLAN_VERSION: "0.1"; export interface ExecutionPlan { readonly version: typeof EXECUTION_PLAN_VERSION; /** Acceptance Compiler identity; this is also the identity recorded by the run ledger. */ readonly plan_id: string; readonly proposal_id: string; readonly acceptance_fingerprint: string; readonly fabric_fingerprint: string; readonly operation_manifest_fingerprint: string; readonly capsule_ids: readonly string[]; readonly coverage_map: readonly AcceptanceCoverageMapEntry[]; /** Canonical identity of the complete compiler, DAG, manifest, capsule, and coverage binding. */ readonly binding_id: string; } export type ExecutionPlanErrorCode = "invalid" | "compile-rejected" | "dag-rejected" | "identity-mismatch" | "coverage-mismatch"; export declare class ExecutionPlanError extends Error { readonly code: ExecutionPlanErrorCode; constructor(code: ExecutionPlanErrorCode, message: string); } /** Hash a coordinator-owned operation manifest without retaining its paths or command text in the plan. */ export declare function executionPlanManifestFingerprint(manifest: unknown): string; /** Bind one accepted compiler result directly to the admitted v0.8 DAG without another worker contract. */ export declare function createExecutionPlan(result: AcceptanceCompileResult, fabricValue: unknown, operationManifestFingerprint: string): ExecutionPlan; /** Parse and verify a persisted binding against the exact DAG supplied to prepareFabric. */ export declare function inspectExecutionPlan(value: unknown, fabricValue: unknown): ExecutionPlan;