The new NL2SQL cohort is moving trust out of the prompt and into deterministic controls
Four projects launched within two days; their common design choice is more important than their model selection.
Four NL2SQL projects created on GitHub on November 11–12 point in the same direction: generated SQL is increasingly being treated as untrusted input, with deterministic software deciding what may run and whether an answer deserves confidence.
Safety after generation
Safe Text-to-SQL is the clearest example. Its model produces SQL, but PostgreSQL’s syntax tree is parsed with pglast and checked against allowlists for statements, tables, columns and functions. The application then adds a hard row limit and estimated-cost ceiling before execution under a read-only database role, transaction and timeout. Its repository reports 102 passing tests and 43 of 43 SQL-attack cases blocked. Those are author-run tests, not an independent security audit, but the layered design is inspectable and the project is MIT-licensed.
dsh-nl2sql applies the same distrust at a broader product layer. The MIT-licensed DeepSeek Harness plugin connects to MySQL, PostgreSQL, Elasticsearch and uploaded files, then adds governed metrics, row and column policies, masking, audit history and MCP access. It also turns answers into dashboards, scheduled reports and alerts delivered through Lark, Telegram, WeCom and DingTalk. Release v0.13.1 was published on its November 12 launch day; its repository had one star when checked, so breadth should not be confused with adoption.
Checking answers, not just statements
Commercial newcomer Rosie pushes deterministic checking beyond query admission. Its “Answer Certificate” looks for join-inflated totals, nonexistent filter values, incomplete time coverage and queries that conflict with declared metrics. Rosie’s public repository contains documentation rather than source; the product is distributed as a private self-hosted Docker image. The vendor reports 54.4% execution accuracy on BIRD Mini-Dev and publishes limits alongside that result, including that most wrong answers were misread questions the certificate did not catch.
DataMate tackles uncertainty differently. Its MIT-licensed Vietnamese competition system normalizes messy shop files into DuckDB, samples SQL multiple times from a Qwen3.5-9B model with a LoRA adapter, executes the candidates read-only, votes on typed answers and abstains when agreement is weak. The repository reports 0.683 public Penalized Accuracy in Zalo AI Challenge 2026 Track 2, where a wrong answer costs a point and abstention costs nothing.
The pattern
These are very early projects: three had one star or fewer at verification time, and Rosie’s implementation is not public. Their benchmark and test figures are self-reported. Still, their shared architecture is meaningful. The model proposes; parsers, database permissions, execution checks, voting and explicit abstention decide what survives. That is a more credible direction for production NL2SQL than asking a prompt to be careful.
sources
- Safe Text-to-SQL repository and READMEgithub.com
- dsh-nl2sql repository and v0.13.1 releasegithub.com
- Rosie NL2SQL documentation repositorygithub.com
- DataMate 26 repository and reported resultsgithub.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026