Deterministic validation layer between a text-to-SQL model and the warehouse. Proves fan-out, metric contract and policy violations from the sqlglot AST against a semantic contract, repairs what it safely can with a diff, and refuses the rest with a reason. 30 of 30 wrong generations caught, 4.56 ms per query. No model API is called.
python benchmarking benchmark static-analysis data-quality text-to-sql nl2sql guardrails semantic-layer analytics-engineering dimensional-modeling duckdb sqlglot llm-safety sql-validation metric-contract
-
Updated
Aug 3, 2026 - Python