# Sqlsure - Deterministic semantic checks for AI-generated SQL

Original title: Show HN: Sqlsure – deterministic semantic checks for AI-generated SQL

> Hacker News story 48875342 · language: en · submitted 2026-07-11
> Web version: https://zeli.app/story/48875342
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 10 · by [tejusarora](<https://news.ycombinator.com/user?id=tejusarora>) · 💬 0
[original](<https://github.com/sqlsure/sqlsure>) · [HN discussion](<https://news.ycombinator.com/item?id=48875342>)

## Summary

Sqlsure is a semantic inspector that catches critical SQL errors like double-counting, additivity violations, and wrong join keys before queries run. Unlike standard linters or LLMs, it uses deterministic rules derived from your existing dbt tests or database schema to validate AI-generated SQL in milliseconds. By integrating into CI pipelines, MCP servers, or as a library, Sqlsure ensures data accuracy and prevents silent revenue miscalculations, offering machine-actionable fixes for instant self-repair of AI agents.

## Key quote

> A query can be perfectly valid, run without error, and return a number that's silently wrong — sqlsure does — deterministically, in 0.1 ms, before the query runs.

---

## Cite

- Page: https://zeli.app/story/48875342
- Date: 2026-07-11
- Source: github.com (https://github.com/sqlsure/sqlsure)
- Hacker News: https://news.ycombinator.com/item?id=48875342

## Other languages

- zh: https://zeli.app/zh/story/48875342 · markdown: https://zeli.app/zh/story/48875342.md
- ja: https://zeli.app/ja/story/48875342 · markdown: https://zeli.app/ja/story/48875342.md
- ko: https://zeli.app/ko/story/48875342 · markdown: https://zeli.app/ko/story/48875342.md
- de: https://zeli.app/de/story/48875342 · markdown: https://zeli.app/de/story/48875342.md
- es: https://zeli.app/es/story/48875342 · markdown: https://zeli.app/es/story/48875342.md
