LEDGER treats semantic definitions as evidence—but it does not yet choose them from a question
A fast-starting open-source semantic-layer project makes provenance and revalidation first-class, while clearly separating implemented code from its NL2SQL roadmap.
What shipped
A new Apache-2.0 project called SQL Semantic Ledger, or LEDGER, takes a different route into trustworthy analytics: instead of starting with a chat box, it builds an append-only record of SQL-derived business definitions and the evidence behind them. The repository labels the current release 0.1.0a1 pre-alpha and says installation is from GitHub rather than PyPI. It nevertheless arrived with a substantial inspectable surface: the repository tree contains 13 pytest modules, a command-line interface and a worked fictional-shop example. Source: repository README and tree
The implemented pipeline normalizes SQL with sqlglot and induces aggregates, predicates, equality joins and aggregate-condition pairs from query histories and SQL strings in JavaScript, TypeScript and Python. Definitions are graded from E0 to E4 according to repeated independent use, database checks, human certification and post-certification counterexample checks. The project can then confirm, warn about or reject an answer assembled from selected definitions, and it can rank stored answers for revalidation when a definition or table changes. Source: repository README
The boundary matters
LEDGER is relevant to NL2SQL systems, but it is not yet a natural-language question-to-SQL agent. Its current engine assembles SQL only after the caller chooses the definitions. Choosing definitions from a question is marked planned, as are an MCP server and ORM extraction. Current assembly is also deliberately narrow: inner joins only, no correction for one-to-many fan-out and no HAVING filters. The CLI’s database-check command targets SQLite, although the Python API accepts DB-API connections. Source: feature table and known limitations
That candor is a strength. The feature registry distinguishes implemented, partial and planned work, and planned API stubs raise NotImplementedYet. The README also says its example error rates are illustrative rather than measured; the proposed probability bound is only as good as calibration data supplied to it. Source: evidence and error-bound documentation
What to watch
The repository reached 16 GitHub stars and no forks roughly a day after its November 17 creation, an early signal rather than adoption proof. The more important tests will be whether maintainers publish measured grade-error calibration, add held-out database evaluations and connect the ledger to an implemented definition selector without blurring its evidence boundary. Source: GitHub repository metadata
For tool builders, the useful idea is already visible: semantic definitions should carry provenance, falsification results and revision impact—not just a “verified” flag. For buyers, the correct label today is narrower: a well-documented pre-alpha reference implementation, not a production NL2SQL system.
sources
- SQL Semantic Ledger repository, README and code treegithub.com
- GitHub repository API metadataapi.github.com
- GitHub recursive repository treeapi.github.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