Overview
Last updated
You don't need to read this section to build with Brain. 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.
Raw → Ledger → Wiki → Policy → Agent → AuditInformation 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.
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
The Pre-Execution Gate
The 13 numbered checks + 10 hardening additions (23 total) before any payment.
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.
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
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
Last updated
