Governed Access
Governed access means the caller does not receive the raw credential for the production system. The caller receives a controlled interface to a named source.
For an agent, this distinction is the product boundary. The agent can ask for relevant production context, but OneQuery still owns source resolution, credential handling, validation, result limits, and audit records.
What Stays Outside the Agent
Section titled “What Stays Outside the Agent”- Database passwords and SaaS API tokens.
- Provider-specific authentication flows.
- Source connection metadata that is not needed for the task.
- Server-side validation and execution behavior.
- Audit storage.
What the Agent Receives
Section titled “What the Agent Receives”- A source identifier such as
postgres://warehouseorgithub://github_main. - A command surface such as
onequery query execoronequery api. - A bounded result set or provider response.
- Clear failure output when a request is blocked, invalid, or unavailable.
Production Rule
Section titled “Production Rule”Treat OneQuery as the only path from agent tools to production data. Do not place the same database password, SaaS token, or cloud credential directly in the agent environment.
Rollout Pattern
Section titled “Rollout Pattern”- Connect one low-risk read-only source.
- Verify a few human-run commands from the CLI.
- Give the agent only the source identifier and command pattern it needs.
- Review audit history after the first automated runs.
- Expand sources only after the operator workflow is clear.