import { type DecisionGraph, type GraphPlan } from './graph.js'; /** Offline evidence audit. This function never dispatches a graph or authorizes an action. */ export interface GraphObservation { node: string; status: 'ok' | 'abstained' | 'error' | 'unsupported' | 'cancelled' | 'skipped'; output: Record; attempts: number; tokens: number; /** Null requires a trusted cost bound before the observation can be audited. */ costMicros: number | null; durationMs: number; used: boolean; flow?: { runId: string; nodeRunId: string; activationId: string; invocationKey: string; }; } export type GraphCeilings = Partial; export interface GraphEvidenceReceipt { schemaVersion: 'decision-graph-evidence/v1'; graphDigest: string; planDigest: string; limits: DecisionGraph['budget']; stages: Array<{ stage: number; nodes: Array<{ id: string; status: GraphObservation['status']; used: boolean; input: Record; resultDigest: string; attempts: number; tokens: number; costMicros: number; durationMs: number; flow?: GraphObservation['flow']; }>; }>; totals: { attempts: number; tokens: number; costMicros: number; durationMs: number; }; outcome: 'complete' | 'abstained' | 'error' | 'unsupported' | 'cancelled' | 'incomplete-evidence' | 'budget-exhausted' | 'empty-shortlist'; receiptDigest: string; } /** Caller, workspace and provider ceilings may only narrow the graph's authored ceiling. */ export declare function effectiveGraphCeilings(graph: DecisionGraph, ...ceilings: GraphCeilings[]): DecisionGraph['budget']; /** Audit complete immutable observations against an already validated trusted plan. * No partial receipt is returned on malformed observations. Unknown cost fails closed. */ export declare function auditGraphEvidence(graph: DecisionGraph, plan: GraphPlan, observations: GraphObservation[], ceilings?: GraphCeilings[], unknownCostBoundMicros?: number): GraphEvidenceReceipt; //# sourceMappingURL=graph-evidence.d.ts.map