Developer Overview
Architectural overview for developers extending Mandate or integrating external applications.
Developer Architecture Overview
Mandate is built using Next.js 14 App Router, TypeScript, PostgreSQL 18.6, Prisma ORM, and NEAR API JS.
Core Backend Services
Nonced cryptographic envelope generation and OutLayer TEE dispatch.
Deterministic rule evaluation and budget reservation enforcement.
DAG plan generation, cycle detection, and topological dispatching.
Background recovery of ambiguous transactions and stale leases.
Application Data Flow
Protected enclaves holding agent private keys. Signs NEAR transfers only when valid execution envelope is verified.
Final settlement blockchain. Transactions broadcast and independently confirmed via RPC node state proofs.
PostgreSQL 18.6 durable checkpoints, SHA-256 hash chaining, idempotency keys, and multi-round lease recovery.