Sqlgate
Provides a deterministic, fail-closed write gate for LLM-generated SQL, ensuring safety and preventing unauthorized database modifications.
As LLM agents gain write access to production databases, delegating safety to the model itself becomes a critical vulnerability that a model can be prompted to circumvent. Sqlgate addresses this by offering a robust, deterministic, and fail-closed write gate for AI-generated SQL. It employs a multi-layered defense system, including a sqlglot AST whitelist engine, a read-only impact pre-check, and a pluggable ticketed executor, ensuring that dangerous or unapproved statements cannot be executed. This system prevents models from bypassing their own safety constraints, providing a secure method for managing automated database writes.