/** * Drift detection for generated context files (CLAUDE.md, .cursorrules, etc.). * * Compares the canonical memory store against the files on disk so users can see * which agents are missing rules or still carrying stale ones. */ import type { MemoryStore } from "../db/store.js"; import type { MemoryEntry } from "../types.js"; export interface FileDrift { file: string; missing: MemoryEntry[]; stale: string[]; totalInStore: number; } export interface DriftReport { files: FileDrift[]; summary: { checked: number; filesWithMissing: number; filesWithStale: number; totalMissing: number; totalStale: number; }; } /** Extract candidate memory claims from a generated markdown context file. * Strips guardrail prefixes, scope annotations, and trailing status tags. */ export declare function extractClaimsFromMarkdown(markdown: string): string[]; /** Detect drift between the memory store and generated context files on disk. */ export declare function detectDrift(store: MemoryStore, repoRoot: string, format: string): DriftReport;