Report
Run reconcile without a subcommand to get a diagnostic report:Repair view
Recreate a logical VDE view from trusted state:CREATE OR REPLACE VIEW for the logical VDE view, pointing it at the physical version relation recorded in the VDE’s refs. It is idempotent - running it when the view is already correct is a no-op.
Guards
No confirmation is needed. The command is explicit and idempotent.
Attach
Rebind a VDE model ref to a different tracked physical relation:fact_orders to point at the specified physical relation and refreshes the logical view.
Guards
Attach requires confirmation by default. Type the confirmation text when prompted, or cancel to leave refs unchanged.
When to use reconcile
- Missing logical views after a failed build, promotion, or detach - use
repair-view - Wrong physical version if a VDE ref was corrupted or you need to manually override which version a model points to - use
attach - Diagnostic inspection before or after recovery operations - use the default report
reconcile_events state table for audit trail.
Limitations
Reconcile repairs pointer/view state. It does not rebuild physical versions. If a physical relation is missing from the warehouse, the only remedy is rebuilding the model withsqb build --select <model>.
