Permits

A Permit is signed authority for a wallet scoped agent. It defines what a Call may do before the gateway considers a debit or tool invocation.

A Permit binds:

For example, a Permit for partner.echo can carry tool:partner.echo:invoke and billing:charge scopes. The gateway checks the wallet, key, tool, scope, budget, expiry, revocation, and signature before charging.

POST /v1/permits creates a Permit and requires an Idempotency-Key header. Permits are reusable budget envelopes. A live single action Permit issuance path is frozen in the current repository.

POST /mcp can also mint a Permit. When a wallet scoped API key calls a tool and does not send a permit id, the gateway mints one single tool Permit for that wallet and that tool, then evaluates it. The gateway signs the Permit. The agent does not. The signed issuer wallet on that path is the caller's wallet. The gateway does not verify a signed agent origin before permit evaluation. Authentication is the API key. An enterprise bearer is not an agent origin signature. The governed pipeline checks a present enterprise bearer after permit validation. An unkeyed retry verifies that bearer earlier, before a permit is minted. If that earlier verification fails, the call is idempotency_key_required and nothing is minted. A call rejected before that evaluation does not return a receipt ID, and no portable receipt exists, unless the refusal stored a denial receipt. A planned change on branch amw/security-automint-optin would make this auto-mint opt-in for non-demo tenants. That change is not shipped.

Read Calls and request keys to see how a Call presents a Permit. Read Credits for the budget rule.