PostgreSQL × AI · Machine-readable entry point

AI documentation is not a long manual pasted into a prompt.

Use small, stable knowledge units. Declare the PostgreSQL version, schema, role, and execution boundaries, and make every answer traceable to verifiable evidence.

context-contract.json
{  "database": "postgresql",  "major": 18,  "role": "app_readonly",  "statement_timeout_ms": 3000,  "required_evidence": ["schema", "SQLSTATE", "canonical_url"]}

Humans remain part of the entry point

Understand, then automate

Build a database mental model first, then let agents work under explicit permissions, timeouts, and audit rules.
Start from zero