import { type DecisionGraph, type GraphPlan } from './graph.js'; import { type GraphCeilings, type GraphEvidenceReceipt } from './graph-evidence.js'; import type { GraphFlowRequest, GraphFlowResponse } from './graph-flow-adapter.js'; export interface GraphFlowReport { runId: string; status: string; stopReason: string; trace: Array<{ type: string; from?: string; to?: string; active?: boolean; nodeId?: string; nodeRunId?: string; invocationKey?: string; attempt?: number; activation?: number; sequence?: number; message?: string; }>; results: Record; usage: { tokens: number; costUsd: number; timeMs: number; }; }>; checkpoint: { skipped: string[]; completed: string[]; failed?: string[]; }; realizedResources: { tokens: number; costUsd: number; nodeRuns: number; }; } export interface GraphRunReceipt { schemaVersion: 'decision-graph-run/v1'; graphDigest: string; flowRunId: string; flowStatus: string; flowStopReason: string; evidence: GraphEvidenceReceipt; terminal: string | null; outcome: GraphEvidenceReceipt['outcome']; /** Candidate output is evidence, never an action authorization. */ value: unknown | null; batches: Array<{ stage: number; nodes: string[]; resultDigests: string[]; executedNative: boolean; }>; attempts: Array<{ nodeId: string; nodeRunId: string; invocationKey: string; attempt: number; activation: number; }>; /** Flow approval gates that the host approved before a gated node could run. */ approvals: Array<{ gate: string; nodeId: string; stage: number; nodeRunId: string; activation: number; }>; receiptDigest: string; } /** Cross-check Flow results against the host's append-only invocation observations. * If an observed Flow invocation is absent, incomplete, or tampered with, fail closed. * The host must persist this receipt atomically alongside its Flow checkpoint. */ export declare function finalizeDecisionGraphRun(graph: DecisionGraph, plan: GraphPlan, report: GraphFlowReport, records: ReadonlyArray<{ request: GraphFlowRequest; response: GraphFlowResponse; }>, ceilings?: GraphCeilings[], unknownCostBoundMicros?: number, nativeBatches?: ReadonlyArray, approvalStages?: readonly number[]): GraphRunReceipt; //# sourceMappingURL=graph-run.d.ts.map