export type DistillProvenance = 'oracle:test-exec' | 'judge:fable' | 'proxy:structural'; export interface DistillOptions { dbPath: string; /** Restrict to these namespaces (default: all namespaces with embeddings). */ namespaces?: string[]; /** Rows per transaction (default 200). */ batchSize?: number; /** Hard cap on rows processed this invocation (default: unbounded within a run). */ maxEntries?: number; /** Cosine distance below which two entries collapse into one pattern (default 0.2, the ADR-174 M4-tuned platform default: ~37% fewer patterns, retrieval-neutral). */ dedupDistance?: number; /** Report counts, write nothing (default false). */ dryRun?: boolean; /** Judge tier. Only 'structural' ($0) is implemented here; 'fable' is reserved (ADR-172). */ judge?: 'structural' | 'fable'; /** Ignore the cursor and re-scan from this rowid (default: cursor-driven). */ sinceRowid?: number; verbose?: boolean; } export interface DistillReport { processed: number; episodes: number; episodeEmbeddings: number; patterns: number; patternEmbeddings: number; causalEdges: number; promoted: number; byProvenance: Record; namespaces: string[]; dryRun: boolean; spendUsd: number; corrupt?: boolean; skipped?: string; } /** * Distill accumulated memory into the structured intelligence tables. * Incremental, $0, transactional, provenance-tagged. */ export declare function runDistillation(options: DistillOptions): Promise; /** Where the memory DB lives, for daemon/CLI callers. */ export declare function defaultMemoryDbPath(cwd?: string): string; //# sourceMappingURL=memory-distillation.d.ts.map