/** * Decision Trail Builder — reconstruct the evidence chain behind decisions. * * Walks events + observations + entity graph backward from a decision * to find the context that led to it. */ import type { StoragePlugin } from './types.js'; export interface EvidenceItem { type: 'file_read' | 'error' | 'search' | 'knowledge' | 'decision' | 'fix'; content: string; timestamp: number; source_id?: string; } export interface DecisionTrail { decision: string; date: number; evidence_chain: EvidenceItem[]; alternatives_considered: string[]; related_entities: string[]; confidence: number; } /** * Build a decision trail for a query (file path or topic). */ export declare function buildTrail(storage: StoragePlugin, query: string): DecisionTrail | null; //# sourceMappingURL=decision-trail.d.ts.map