A Clean Zero Is the Most Dangerous Answer

Lessons from building text-to-SQL against a real, wide production ERP — and the synthetic, full-stack version I open-sourced.

On a real ERP, the hard part of text-to-SQL isn’t writing SQL. It’s retrieval, grounding, and knowing when a query that ran cleanly is silently wrong. Field notes, plus the open-source rebuild.
Text-to-SQL
LLM Evaluation
Coding Agents
Full-Stack
Author
Published

June 28, 2026

Modified

June 30, 2026

Keywords

text-to-sql, natural language to sql, LLM evaluation, retrieval, SQL guardrails, semantic layer, Wilson interval, reliability, server-sent events, React, TypeScript, MariaDB