> For the complete documentation index, see [llms.txt](https://doc.heresprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.heresprotocol.com/concepts/intent-capsules.md). Agents can also search and read this documentation through its [MCP server](https://doc.heresprotocol.com/~gitbook/mcp).

# Intent Capsules

An Intent Capsule is the central Heres protocol object.

## Capsule Account

The on-chain capsule stores:

* Owner public key.
* Inactivity period.
* Last activity timestamp.
* Active flag.
* Execution timestamp.
* Vault and beneficiary-set bumps.
* Heartbeat authority.
* Optional fixed target date.
* Sealed inheritance configuration commitment.

The private `BeneficiarySet` is a separate account. It stores fungible beneficiary shares and NFT assignments inside the TEE while the capsule is live, then returns to Solana for settlement only after the Switch fires.

## Vault

The vault is a program-derived address used to hold locked assets for the capsule. One vault can hold SOL plus multiple canonical associated token accounts across the classic SPL and Token-2022 programs. The list of funded assets is derived from the live vault accounts instead of a single mint stored on the capsule.

Token-2022 mints with the current TBILLx extension profile can be deposited and paid out through transparent token transfers. Some issuer controls can change after deposit. If an issuer pauses the mint, freezes an account, or enables an unsupported transfer hook, a version 3 capsule keeps its full payout pending and does not close the vault. Transfer-fee and nontransferable tokens are rejected before creation. Tokens with a scaled display amount use raw transferable units in the Heres amount field; that number can differ from the wallet's displayed amount.

## Intent Data

The human-readable Intent Statement is registered through the confidential delivery service rather than stored in the lean on-chain capsule. Its delivery metadata can include:

* Capsule type.
* Human-readable intent text.
* Asset amount for a single-asset capsule, or a multi-asset label.
* Asset symbol.
* Asset mint.
* Beneficiaries.
* Inactivity duration.
* CRE delivery metadata.

## Beneficiaries

Beneficiaries define who receives assets after the capsule executes. A fungible beneficiary entry includes:

* Solana address.
* Percentage share in basis points.

Shares total 100 percent and apply to every fungible asset in the vault. NFT assignments map each NFT mint to one recipient separately.

## Lifecycle

| Phase      | Description                                                                                                                                                                          |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Draft      | Owner creates the inactive Switch, private BeneficiarySet, and Vault, then deposits one or more assets.                                                                              |
| Seal       | The TEE stores the beneficiary and NFT rules, adds a private salt, and verifies their commitment.                                                                                    |
| Arm        | The regular ER activates the Switch with the same commitment and schedules execution.                                                                                                |
| Monitor    | Capsule remains active while the owner is within the inactivity window.                                                                                                              |
| Refresh    | Owner updates activity to restart the timer.                                                                                                                                         |
| Execute    | Capsule becomes inactive and records execution time.                                                                                                                                 |
| Reveal     | The fired Switch and private BeneficiarySet settle back to Solana.                                                                                                                   |
| Distribute | For version 3 capsules, every registered vault asset is transferred in one atomic transaction according to the committed rules. If one leg fails, the entire payout remains pending. |
| Deliver    | CRE sends encrypted off-chain intent statement.                                                                                                                                      |
| Finalize   | After all settlement work completes, the three core capsule accounts close and their rent goes to the configured protocol fee recipient.                                             |

## Why Execution and Distribution Are Separate

Execution is a state transition. Distribution is the asset movement step. Keeping them separate makes the system easier to automate across Solana base layer, MagicBlock ER/PER, and external delivery workflows.

Finalization is separate for the same reason. It cannot close a current tracked vault until every registered asset leg is empty, and enabled Intent Statement delivery must complete before the application or crank finalizes the lifecycle.

New capsules require an on-chain payout completion marker before finalization. The app checks transaction size before creation so a capsule with too many assets and beneficiaries is rejected before the owner pays the creation fee. Older version 2 capsules keep their legacy per-asset distribution path.
