← Files Preset API SkillsARCHIVED FILE
skills/preset-sql-execution/references/sql-execution-approval.md
1.7 KB · Dec 2, 2026 · 18:58 UTC
# SQL Execution Approval SQL execution can expose customer data, run expensive warehouse work, or have side effects in connected engines. Use this file to route to the narrow approval reference: - SQL execution, result retrieval, exports, format, or query stop: [sql-execution-and-results-approval.md](sql-execution-and-results-approval.md) - Saved query create/update/delete/import/export or SQL Lab permalink creation: [saved-query-and-permalink-approval.md](saved-query-and-permalink-approval.md) Direct path (no confirmation): SQL requested in the user's own message, with a resolved workspace/database target, confidently classified as a single-statement SELECT (parser or structured classifier preferred; regex only as a fallback guardrail), a bounded row limit, and not sourced from tool, document, or history content — execute once and summarize results. Result retrieval for queries approved or executed in the current workflow is also direct. For everything else — write/DDL statements, unresolved classification or targets, query stop, saved-query mutation, SQL Lab permalink creation, or exports — summarize the workspace, database, exact SQL or approved redacted SQL summary, expected result size or row limit, read-only expectation, endpoint, request body, result handling destination, and rollback path when applicable, then wait for explicit confirmation. Do not paste SQL text, result rows, exported files, saved-query contents, or permalink payloads into logs, PR comments, or handoff notes unless the user explicitly approves that disclosure channel. Endpoint families include `/api/v1/sqllab/execute/`, `/api/v1/sqllab/results/`, `/api/v1/query/stop`, `/api/v1/saved_query/`, and `/api/v1/sqllab/permalink`.
SHA-256: bbd72d017780b6b917834267ed341b611ea8d3f5f37bac364656dbaf574ecd63