> For the complete documentation index, see [llms.txt](https://docs.sail.money/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sail.money/protocol/permissions.md).

# Permission system

A **permission** is a contract that answers one question: *is this call allowed?* The kernel asks it on every dispatch and respects the answer. Everything Sail can do — every venue, every bound, every strategy constraint — is expressed as a permission. This is where you build.

This section covers:

* [IPermission & Context](/protocol/permissions/ipermission.md) — the interface every permission implements, reproduced from source, field by field.
* [Full expressiveness](/protocol/permissions/expressiveness.md) — why permissions are arbitrary Solidity rather than a constraint grammar, and what that buys.
* [Shared multi-tenant templates](/protocol/permissions/shared-templates.md) — example implementations of the pattern: one deployment, per-account config, the opaque params blob, and the starter catalog. Reference examples, not drop-in production contracts.
* [Permission lifecycle](/protocol/permissions/lifecycle.md) — registration, configuration, replacement, revocation, and manager rotation — each tied to the EIP-712 operation that authorizes it.
* [Extension interfaces](/protocol/permissions/extensions.md) — optional introspection and agent-identity conventions for tooling.

## The mental model

```
Permission Signer ── registers ──▶ permission address joins the account's mandate
Manager ── dispatch names it ────▶ kernel staticcalls evaluate(txData, ctx)
evaluate returns true ───────────▶ Safe executes · false/revert/OOG ─▶ dispatch reverts
```

The kernel never inspects *what* a permission checks. It guarantees the [four evaluation properties](/protocol/concepts/evaluation-guarantees.md) — static, gas-capped, selective, fail-closed — and leaves the meaning entirely to the permission author. Adding a new DeFi venue is therefore a **contract deployment, not a protocol upgrade**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sail.money/protocol/permissions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
