Why I built it
In July 2026 I built QuerySmith: a language
model wrote T-SQL for SQL Server, and a guard checked it. It allowed one SELECT, no
comments or extra statements, only columns inside a scope, plus access profiles and result
masking. Each protection meant recognizing one more pattern in SQL the model had invented.
In September I started SageQL by inverting that design. The model never writes SQL. It picks registered concepts by ID, and SageQL compiles the query itself, so tenant filters, joins and limits come from code instead of from text a model produced. The question changed from "is this SQL safe?" to "is this a report the host allowed?", which is much easier to answer exactly.
The reports I had in mind are the ones managers ask for in Persian, with Solar Hijri dates, so Persian is the default and the calendar is resolved locally rather than by the model.