← Index
Source: docs/features/agentic-aa.md (auto-generated by scripts/generate-docs-html.mjs — edit the .md, not this file)

Agentic AA — 4 Pillars Demo (account abstraction for autonomous agent payments)

Goal: demonstrate, on testnet, the four things account abstraction (AA) gives an autonomously-paying agent that a normal EOA wallet cannot — one demo panel per pillar.

Source: "The What: 4 Pillars of Agentic AA" note, pasted in session 2026-07-17 (no URL provided — this doc is the canonical copy). Sits on top of the existing agent-payments track: ap2-test.md (x402 / aiaas, spend policy) and design §3 (ERC-7702/7715 session keys).

1. The four pillars

# Pillar What it means Key standard / piece
1 Scoped delegation ("the allowance") No master key handed over — issue a session key: "spend ≤ 10 USDC/day, only on service X, valid 48h" ERC-7715 / 7710 (already the §3 demo); ERC-4337 session-key validators
2 Gas independence ("the paymaster") Agent never hunts for ETH/SOL — pays gas in the USDC it earns, or a sponsor covers it ERC-4337 Paymaster (ERC-20 gas payment or sponsored)
3 Atomic intent ("the batch") Swap A→B → bridge → pay provider bundled into one UserOperation; any failure reverts the whole thing — agent never gets stuck mid-flow ERC-4337 batched calls (executeBatch)
4 KYA — Know Your Agent The AA wallet doubles as a digital ID; counterparties check the agent's reputation/"credit score" before dealing ERC-8004 (trustless-agents identity/reputation registries)

2. How it maps onto existing rabbit items (mostly already planned!)

3. Demo shape (/etc — extend the §3 page rather than a new route)

One page, four cards; each card = one pillar with a [Run] button + result/tx link:

  1. Session key — grant scoped permission, agent spends within scope, out-of-scope attempt fails (this card is §3's demo).
  2. Paymaster — send a tx with zero native token in the agent account; gas paid in test USDC (ZeroDev/Pimlico ERC-20 paymaster) or sponsored.
  3. Batch — one UserOp doing two actions atomically; a second run with a failing leg shows the whole op reverting.
  4. KYA — look up (or register) the agent's ERC-8004 identity; display reputation fields.

Stack: ZeroDev or permissionless.js + Pimlico (bundler/paymaster) on Sepolia — same family as §3's decided stack, so the page shares wallet-connect and account plumbing. Est.: pillars 1–3 ≈ 2–3 focused days on top of §3; pillar 4 +1d (standard maturity risk).

4. ERC-8021 — builder codes / on-chain attribution (added 2026-07-17)

Source: jay's ERC-8021 note, pasted in session 2026-07-17 (no URL — canonical copy here). Natural companion to pillar 4: ERC-8004 answers "who is the agent"; ERC-8021 answers "which app/agent produced this transaction".

5. Case study: WalletChan — "MetaMask for AI agents" (added 2026-07-17)

Source: jay's WalletChan v3 note, pasted in session 2026-07-17 (no URL — canonical copy here). A shipping product that assembles several of this doc's pillars — useful as a reference architecture, and as a UX pattern the 4-pillar demo page can borrow.

Status

🟡 Partly built — ① session key + ②③ sponsored/batch tx are live on /live/aa; ④ KYA stayed an explainer card (ERC-8004 testnet registry unverified). The autonomy loop that would put these to work unattended is README.md → Backlog B1; the build detail for what shipped is in the 2026-08-06 archived plan §6. (Updated 2026-08-21 — this line previously pointed at ../tasks/current-plan.md §6, which was archived.)