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

# Overview

You don't need to read this section to build with RobotMoney. It's here for the moments when you do: compliance review, custom policy design, on-chain audit, agent autonomy work, or just because you want to understand what's happening underneath.

### The Six-Layer Stack

```
Raw → Ledger → Wiki → Policy → Agent → Audit
```

Information flows up. Control flows down. Each tenant has its own logical instance of every layer, with hard isolation at the database, key, and policy boundaries.

| Layer         | Owns                                        | Concept page             |
| ------------- | ------------------------------------------- | ------------------------ |
| **1. Raw**    | Source evidence, immutable                  | Raw and Ledger           |
| **2. Ledger** | Machine-readable financial truth            | Raw and Ledger           |
| **3. Wiki**   | Human-readable financial memory             | The Wiki                 |
| **4. Policy** | Deterministic permission and approval logic | Policy and Permissioning |
| **5. Agent**  | Proposal and orchestration                  | Agents                   |
| **6. Audit**  | Immutable proof of what happened and why    | Audit and Proof          |

[**→ Six-layer overview**](/protocol/the-six-layer-stack.md)

### What's in This Section

<table data-view="cards"><thead><tr><th></th><th></th><th data-type="content-ref"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>The Six-Layer Stack</strong></td><td>The whole protocol on one page.</td><td><a href="/protocol/the-six-layer-stack.md">The Six-Layer Stack</a></td><td></td></tr><tr><td><strong>Raw and Ledger</strong></td><td>How evidence becomes deterministic structure.</td><td><a href="/platform/raw-and-ledger.md">Raw and Ledger</a></td><td></td></tr><tr><td><strong>The Wiki</strong></td><td>The continuously regenerated memory layer.</td><td><a href="/platform/the-wiki.md">The Wiki</a></td><td></td></tr><tr><td><strong>Policy and Permissioning</strong></td><td>Plain-English rules to deterministic guards.</td><td><a href="/how-it-works/policy-and-permissioning.md">Policy and Permissioning</a></td><td></td></tr><tr><td><strong>Agents</strong></td><td>Internal and external agents in the protocol.</td><td><a href="/how-it-works/agents.md">Agents and Agent Keys</a></td><td></td></tr><tr><td><strong>Payment Intents</strong></td><td>The Ledger entity that represents a proposed action.</td><td><a href="/platform/payment-intents.md">Payment Intents</a></td><td></td></tr><tr><td><strong>The Pre-Execution Gate</strong></td><td>The 13 numbered checks + 10 hardening additions (23 total) before any payment.</td><td><a href="/how-it-works/the-pre-execution-gate.md">The Pre-Execution Gate</a></td><td></td></tr><tr><td><strong>Audit and Proof</strong></td><td>Tamper-evident history anchored on Base L2.</td><td><a href="/how-it-works/audit-and-proof.md">Audit and Proof</a></td><td></td></tr><tr><td><strong>Agent Contributions</strong></td><td>How external agents contribute evidence safely.</td><td><a href="/protocol/agent-contributions.md">Agent Contributions</a></td><td></td></tr></tbody></table>

### Architecture Deep Dives

<table data-view="cards"><thead><tr><th></th><th></th><th data-type="content-ref"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>System Overview</strong></td><td>The architecture top-down.</td><td><a href="/architecture/system-overview.md">System Overview</a></td><td></td></tr><tr><td><strong>Data Flow</strong></td><td>How a single source-of-truth event ripples up the stack.</td><td><a href="/architecture/data-flow.md">Data Flow</a></td><td></td></tr><tr><td><strong>Write Paths</strong></td><td>The two controlled exceptions to bottom-up flow.</td><td><a href="/architecture/write-paths.md">Write Paths</a></td><td></td></tr><tr><td><strong>Tenant Isolation</strong></td><td>Per-tenant boundaries, end to end.</td><td><a href="/how-it-works/tenant-isolation.md">Tenant Isolation</a></td><td></td></tr><tr><td><strong>Security and Compliance</strong></td><td>Crypto, keys, sanctions, SOC 2 trajectory.</td><td><a href="/how-it-works/security-and-compliance.md">Security</a></td><td></td></tr><tr><td><strong>Risks and Mitigations</strong></td><td>Where things can go wrong, and what catches them.</td><td><a href="/architecture/risks-and-mitigations.md">Risks and Mitigations</a></td><td></td></tr></tbody></table>

### Where the Protocol Meets the Chain

The on-chain surface is intentionally small. Most logic stays off-chain. Four smart contracts on Base L2 anchor the parts that have to be public and tamper-evident.

| Contract                | Anchors                                                                                                   | Page                  |
| ----------------------- | --------------------------------------------------------------------------------------------------------- | --------------------- |
| `BrainAuditAnchor`      | Audit Merkle roots per tenant                                                                             | BrainAuditAnchor      |
| `BrainPolicyRegistry`   | Policy version hashes per tenant                                                                          | BrainPolicyRegistry   |
| `BrainSmartAccount`     | Session-key account enforcing scope, spend caps, and the bound `policyVersion` via `executeViaSessionKey` | BrainSmartAccount     |
| `BrainMCPAgentRegistry` | Agent identity, capabilities, scope grants                                                                | BrainMCPAgentRegistry |

### Where to Start

| If you want to understand...              | Start here                  |
| ----------------------------------------- | --------------------------- |
| The whole stack                           | Six-Layer Stack             |
| Why memory and policy are separate layers | Raw and Ledger              |
| How decisions stay safe                   | Pre-Execution Gate          |
| Why this is verifiable                    | Audit and Proof             |
| What external agents can and can't do     | Agents, Agent Contributions |
