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

# The Ritual — How it works

The Ritual page is the plainspoken explanation of the shrine's mechanics. If the Gate is the myth, the Ritual is the reading of the receipts.

![The Ritual](/files/nMIfDtSAtnrA2htaU9tj)

## The loop, in five steps

1. **Observe.** Five configured public Solana wallets are polled from an RPC. Balances and recent signatures are pulled directly from the chain.
2. **Record.** Every observed movement is written to the shrine's chronicle with a stable link back to Solscan for verification.
3. **Weave.** The chronicle is passed to a fable engine that renders the raw ledger into a short mythic narration — a way of *feeling* the numbers.
4. **Measure.** A **peace index** is computed from the mix of inflow, outflow, stillness, and diversity of counterparties across the vessels.
5. **Share.** At the close of every epoch (weekly), on-chain fees generated by the vessels are distributed **equally** among all imprinted wallets. See the [Ledger](/thesanctum-docs/surfaces/ledger.md) and [Fee Sharing](/thesanctum-docs/mechanics/fee-sharing.md) pages.

## Signing model

Distributions are signed by a **Ledger hardware wallet** and executed manually by the shrine's operator at epoch close. There is no automated custody, and no key that lives on the server.

## What is on-chain vs. off-chain

| Layer                     | Source of truth                                 |
| ------------------------- | ----------------------------------------------- |
| Vessel balances           | Solana RPC (live)                               |
| Signatures / transactions | Solana RPC (live)                               |
| Imprints                  | Off-chain database (public wallet address only) |
| Chronicle entries         | Off-chain, curated from on-chain data           |
| Fable narration           | Generated from chronicle entries                |
| Peace index               | Computed from chronicle entries                 |

The off-chain layer never controls funds. It is a lens on the chain.

***

See also:

* [The Five Vessels](/thesanctum-docs/mechanics/vessels.md)
* [Fee Sharing & Epochs](/thesanctum-docs/mechanics/fee-sharing.md)
* [Data Sources & Trust Model](/thesanctum-docs/mechanics/data-sources.md)


---

# 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://thesanctum.gitbook.io/thesanctum-docs/ritual.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.
