State corruption
State corruption is detected by schema validation during
state migrate. If the current state schema is invalid, SQLBuild refuses to back it up (to avoid persisting a broken snapshot) and directs you to reset.
Warehouse drift
Lock conflicts
Only clear locks when you are certain the holding operation is no longer running.
Interrupted operations
There is no automatic resume command for interrupted operations. SQLBuild records the failure in
state_operations and state_operation_events, preserves VDE refs and checkpoints, and leaves recovery to the operator.
To inspect a failed operation:
Mode guards
SQLBuild blocks operations that don’t apply to the current mode:Detached VDE guards
Aftersqb state detach, the VDE is marked detached and blocked from further virtual operations:
The project can continue in standard mode or re-adopt to return to virtual mode.
Adopt guards
Detach guards
General recovery strategy
- Diagnose with
sqb reconcileor by querying state tables directly - Repair views with
sqb reconcile repair-viewfor missing/broken logical views - Rebuild with
sqb build --select <model>for missing physical versions - Roll back with
sqb rollbackto restore a prior finalized state - Reset state with
sqb state reset --auto-approveas a last resort (drops all virtual state)
sqb reconcile is the starting point. It reports what’s wrong without changing anything.
