For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data Flow

End-to-end: from a webhook landing in the Raw Layer to an action executing on a rail and proof anchoring on Base.

The Full Flow

Source → Raw → Ledger → Wiki → Policy → Agent → Rail → Audit
Step
What Happens

1

A webhook or scheduled pull lands in Raw

2

Extractors normalise it into Ledger records

3

Wiki updates incrementally (entity resolution, narrative summarisation, embedding refresh)

4

An agent proposes an action referencing Ledger context

5

Policy evaluates the proposal: allow, confirm, or reject

6

If approved, the Agent Layer executes through an external rail (bank API, payment processor, smart account on Base)

7

Every step writes an Audit event with cryptographic links back to preceding ones

Step-by-Step Trace

Imagine a payments agent paying an invoice. Here is what every layer does.

Step 1: Raw Lands

External event:
  Plaid webhook arrives with new bank transactions.

Brain action:
  - Verify webhook signature.
  - Hash payload (SHA-256).
  - Store in Azure Blob at a tenant-prefixed, content-addressed path.
  - Emit audit event: source.received

Step 2: Ledger Structures

Step 3: Wiki Updates

Step 4: Agent Proposes

Step 5: Policy Evaluates

Step 6: Approval

Step 7: Execution

Two paths, depending on the rail:

Off-chain rail

On-chain via smart account

Step 8: Audit Anchors

End-to-End Provenance

Every step links back to every previous step.

A single Merkle proof against an anchored root verifies the entire chain.

What's Next

Tenant Isolation

How tenants are separated at every layer.

Security and Compliance

Non-negotiable principles and compliance posture.

BrainSmartAccount

The on-chain validator.

Last updated