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

Audit Every Action

Read a tenant-scoped, tamper-evident audit trail and verify its inclusion proofs.

This page is optional for headless integrations.

Goal: retrieve the authenticated tenant's meaningful audit events for compliance review, support work, and proof verification.

The API and off-chain audit service are production available. The public anchor contract runs on Base Sepolia only and is unaudited.

Read the Trail

const page = await brain.audit.list({
  layer: "execution",
  since: "2025-09-01T00:00:00.000Z",
  until: "2025-09-30T23:59:59.999Z",
  limit: 100,
});

for (const event of page.events) {
  console.log(event.id, event.action, event.created_at);
}
console.log(page.nextCursor);

The available filters are layer, actor, since, until, limit, and cursor.

Event action
Meaning

wiki.question

A Wiki question was processed

policy.evaluate

A policy evaluation was recorded

ledger.transaction.created

A Ledger transaction was created

agent.action.proposed

An agent created a proposal

payment_intent.approved

A human approval completed

payment_intent.executed

A payment completed

Verify a Payment Proof

The proof includes the exact audit_events objects used for the proof, rather than only event identifiers.

Trace an Entity

brain.trace is an SDK aggregation over the entity history and each event's inclusion proof. Its entries are { event, inclusionProof }.

Export Tenant Data

brain.audit.export() is an intentional SDK stub and the underlying audit export endpoint returns 501. Use the tenant export lifecycle instead:

Filter by Actor

What's Next

Last updated