You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data analysts and BI teams want to give a coding agent read-only access to a database so it can answer questions. None of our shipped policy packs fit this case cleanly. readonly.yaml blocks too much (no shell at all), pr-writer.yaml is tuned for code not data, and infra-review.yaml is too permissive.
Acceptance criteria
New file: starter-kit/policies/sql-explorer.yaml
Allows: sql.select (always), github.list_*, github.get_* (for finding schemas in a repo)
Reviews: sql.insert, sql.update (with WHERE clause)
Blocks: sql.delete, sql.drop_*, sql.truncate, sql.grant, sql.revoke, any shell command except read-only ones, any GitHub write
Default decision: block
Header comment explains when to use this pack (BI agents, data exploration, read-only analytics)
Tuning notes file at starter-kit/policies/sql-explorer-tuning-notes.md
Look at starter-kit/policies/pr-writer.yaml for the format. Keep it short and opinionated. The --dry-run flag is currently in issue #83; if it is not merged yet, test against a running server instead.
Problem
Data analysts and BI teams want to give a coding agent read-only access to a database so it can answer questions. None of our shipped policy packs fit this case cleanly.
readonly.yamlblocks too much (no shell at all),pr-writer.yamlis tuned for code not data, andinfra-review.yamlis too permissive.Acceptance criteria
starter-kit/policies/sql-explorer.yamlsql.select(always),github.list_*,github.get_*(for finding schemas in a repo)sql.insert,sql.update(with WHERE clause)sql.delete,sql.drop_*,sql.truncate,sql.grant,sql.revoke, any shell command except read-only ones, any GitHub writeblockstarter-kit/policies/sql-explorer-tuning-notes.mdstarter-kit/README.mdpolicy pack listFiles to create or touch
starter-kit/policies/sql-explorer.yaml(new)starter-kit/policies/sql-explorer-tuning-notes.md(new)starter-kit/README.mdHow to test locally
Notes
Look at
starter-kit/policies/pr-writer.yamlfor the format. Keep it short and opinionated. The--dry-runflag is currently in issue #83; if it is not merged yet, test against a running server instead.