Validate SQL (burn credit)
sqlguard_validateLegacy prepaid burn path — OFF TABLE as wealth. For production authorize use sqlguard_challenge → Exact $100 unlock → sqlguard_verify. This tool burns prepaid credits only. Never execute FAIL or unverified certs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Proposed SQL mutation to authorize in the sandbox | |
| agent_id | Yes | Agent or wallet id holding prepaid credits to debit | |
| schema_ddl | Yes | Postgres DDL snapshot (CREATE TABLE…) the SQL will run against |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decision | No | Sandbox authorize decision | |
| signature | No | Ed25519 signature over the certificate | |
| certificate | No | Unsigned Execution Certificate payload | |
| credits_remaining | No | Agent balance after debit |