| Evaluator / Ablation | Suite | Cases | False Accepts | Accuracy |
|---|---|---|---|---|
| SQL Doctor (Full) | Trap Suite v2 | 50 | 0 | 100.0% |
| LLM-as-judge (Gemini) | Trap Suite v2 | 50 | 3 | 94.0% |
| Ablation: No Enumeration | Trap Suite v2 | 50 | 3 | 94.0% |
| Ablation: No Fuzzing | Trap Suite v2 | 50 | 13 | 74.0% |
| SQL Doctor (Full) | Good Suite v2 | 30 | 0 (0 False Rejects) | 100.0% |
Synthesizes boundary tuples ($c \pm 1$, NULLs, empty tables) + 200 constraint-aware fuzz DBs, checks multiset equality, and minimizes failures via delta-debugging.
Proposes SQL rewrites and covering indexes with SHA-256 disk prompt caching ($0.0000 replay) and counterexample-guided self-correction.
Measures shared_buffers (hit + read) across scales and emits standalone receipt.sql files replayable in plain psql.
Exposes verify_rewrite, diagnose_query, and replay_receipt over stdio/SSE so Cursor, Claude, and Antigravity verify SQL before shipping.
Ranks pg_stat_statements exports under a global USD budget, consolidates redundant indexes, and verifies plan costs live in PG17 + HypoPG.
FastAPI workbench for live demos plus a GitHub Action PR verifier and CI matrix across PostgreSQL 16, 17, and 18.
NULL, LEFT JOIN, or duplicate-row corruption.pg_stat_statements queries using HypoPG without building real indexes on disk.git clone https://github.com/Sanidhyavijay24/sqlD.git cd sqlD pip install -r requirements.txt && pip install -e . sqld up # Optional: boots PG17 + HypoPG sqld ui # Launches live local lab UI