Authority Balance Sheet & Capital Conservation
Every state mutation is verified against the fundamental conservation law. Capital cannot leak, inflate, or become unbacked across sub-agent allocations.
Mathematical Invariant: idle(N) + childGranted(N) + jobLocked(N) ≡ granted(N). Enforced in MandateTree.sol on all state transitions.
assertEq(idle + delegated + escrowed, granted)How an RWA Sleeve or Desk Calls Mandant (@mandant/sdk)
Integrators do not import the complex tree contract. They import three writes (spawn, submitIntent, contain) and three reads (isLive, balanceOf, venuesRoot).
import { MandantClient, ARBITRUM_SEPOLIA_ADDRESSES } from "@mandant/sdk"
const client = new MandantClient({ addresses: ARBITRUM_SEPOLIA_ADDRESSES })
// 1. Submit spend intent: Stylus WASM verifies Merkle venue proof & limits
const { txHash } = await client.submitIntent({
mandateId: operatorMandateId,
target: rebalanceAdapterAddress,
selector: "0xa9059cbb",
amount: 250_000_000n, // $250 USDC
passport: signedPassportProof,
venueProof: merkleProof,
})
// 2. If operator acts anomalously: 1-Tx quarantine sweeps idle to parent vault
await client.contain(operatorMandateId)
// Sibling workers and investor redemptions stay live with zero downtimeWhy Mandant is Not a Session Key or ERC-7710
| Dimension | Session Key / ERC-7710 | Mandant (This Protocol) |
|---|---|---|
| Delegates | A capability (signed permission on user wallet) | A balance (custody never leaves MandateHub vault) |
| Hierarchy | Flat or single-parent | Recursive DAG, 4 levels, strict attenuation |
| Accounting | Allowance on a capability | Tree of balances: idle + delegated + escrowed ≡ granted |
| Outcome Escrow | None | ERC-8183-style conditional: deliver → evaluate → settle |
| Containment | Revoke key or pause the entire contract | 1-Tx quarantine: revoke subtree, sweep unspent, siblings live |
Live Bytecode on Arbitrum Sepolia & Robinhood Orbit
Want to test custom transactions or connect your wallet?
The interactive operator console lets you trigger live RPC calls, spawn custom agents, and test emergency containment.