OptionalonProgress: (message: string, data?: Record<string, unknown>) => voidExecute backpropagation
Lock interim ground truth: FKs with confidence ≥ threshold become immutable. Call this AFTER the iterative analysis completes but BEFORE the pruning pass.
Lock high-confidence PK candidates as interim ground truth.
Perform cross-schema sanity check Validates consistency across all schemas
Perform dependency-level sanity check Checks consistency across tables at the same dependency level
Perform schema-level sanity check Holistic review after entire schema is analyzed
Process a single dependency level
Two-pass FK pruning using a potentially stronger model. Pass 1: Per-table — evaluate each table's unlocked FKs, propose removals. Pass 2: Holistic — review all proposed removals at once for final decision. Locked FKs (interim ground truth) are never touched.
Two-pass PK pruning using a potentially stronger model.
Exports for core module