# Manage a Capsule

The capsule detail page is the control center for a created capsule.

## Capsule Statuses

| Status   | Meaning                                                                                     |
| -------- | ------------------------------------------------------------------------------------------- |
| Active   | The capsule is live and has not reached execution state.                                    |
| Expired  | The inactivity deadline has passed and the capsule is eligible for execution.               |
| Executed | The execution instruction has marked the capsule as executed.                               |
| Inactive | The capsule is no longer active but may not have completed the full distribution lifecycle. |

## View Capsule Details

The detail page may show:

* Capsule address.
* Owner wallet.
* Vault address.
* Asset type and amount.
* Beneficiaries.
* Last activity time.
* Inactivity deadline.
* Execution timestamp.
* CRE delivery status.
* Solana Explorer links.

## Refresh Activity

Refreshing activity restarts the inactivity countdown. This is the main way for an owner to show that the capsule should remain active.

Only refresh activity when you want to delay execution.

## Execute Intent

After the inactivity period has passed, the capsule can be executed. Execution changes capsule state. It does not need to be performed by the original owner.

Execution sets:

* `is_active` to `false`.
* `executed_at` to the current timestamp.

## Distribute Assets

After execution, distribution transfers assets from the vault to the configured beneficiaries and deducts the execution fee where configured.

In the current protocol design, execution and distribution are separate operations. This lets private execution and base-layer settlement coordinate safely.

## Undelegate Capsule

If a capsule was delegated to MagicBlock ER/PER, undelegation commits state back to the base layer. Some flows require undelegation after execution before distribution.

## CRE Delivery Status

If the capsule includes an Intent Statement, the detail page can show delivery state:

* Pending.
* Dispatched.
* Delivered.
* Failed.

Delivery status is checked with wallet-signed requests where required.


---

# Agent Instructions: 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:

```
GET https://doc.heresprotocol.com/user-guide/manage-a-capsule.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
