export interface FixupReport { path: string; changed: boolean; added: string[]; remaining_errors: string[]; } export interface FixupResult { scanned: number; fixed: number; untouched: number; unfixable: number; reports: FixupReport[]; } /** * Attempt to repair known-safe frontmatter defects. * * Handled defects (pre-0.3.1 schema drift, observed on 5 auto-extracted * solutions from 2026-04-10): * - `extractedBy` missing → add `extractedBy: auto` * - `evidence` block missing → add `DEFAULT_EVIDENCE` * * All other validation errors (bad scope, non-numeric confidence, etc.) * are surfaced in `remaining_errors` and the file is left untouched — * those require human judgement, not a mechanical default. * * `dryRun: true` (default) reports what would change without writing. */ export declare function fixupSolutions(solutionsDir: string, opts?: { dryRun?: boolean; }): FixupResult;