;
```
Tests use an in-memory adapter and servers a database. For policy state the adapter must meet DA1: it runs inside the Worker and writes to storage the agent runtime cannot write, so localStorage in the agent's origin is not used for it.
#### D. Testing
The implementation includes 208 tests across nine test suites (covering all ten modules), executed with Vitest. Test coverage spans identity derivation, policy evaluation (including all eight check types and all eight critical change classifications), negotiation FSM transitions, commitment lifecycle, review queue and freeze mechanics, MCP tool validation, A2A card generation, cryptographic operations, and privacy features (address derivation, consolidation jitter, Fisher-Yates shuffle, audit batching).
#### XII. INTEROPERABILITY
## A. Model Context Protocol (MCP)
AESP defines eight MCP [21] tools that expose economic operations to any MCP-compatible AI framework (Table VIII).3
TABLE VIII: MCP Tool Definitions
| Tool | Description |
|----------------------------------------|--------------------------------------------------|
| yault_check_balance | Query agent account balance |
| yault_deposit yault_redeem
| Deposit to ERC-4626 vault
Redeem vault shares |
| yault_redeem
yault_create_allowance | Create payment allowance |
| yault_cancel_allowance | Cancel an allowance |
| yault_file_dispute | File dispute with evidence hash |
| yault_check_budget | Query remaining budget |
| yault_list_agents | List sub-agents with status |
<sup>3The yault\_ prefix reflects the reference settlement layer integration (Yault). Deployments targeting other settlement layers may rename these tools while preserving the same JSON Schema interfaces.
Each tool includes a JSON Schema definition for argument validation. The MCPServer class provides a transport layer supporting both stdio and server-sent events (SSE).
#### B. Agent-to-Agent (A2A) Protocol
AESP generates A2A agent cards [22] from agent configuration. Each card advertises the agent's capabilities (payment, negotiation, data query, commitment, delegation, arbitration), supported input/output modes, authentication scheme (Ed25519), and endpoint URL. An agent running on a different platform can thus discover an AESP-managed agent's economic capabilities and initiate interaction.
#### XIII. EVALUATION METHODOLOGY
This section specifies the evaluation methodology for valgetItem(key: string): Promise4 This version focuses on methodology and experimental design; empirical result tables are deferred to a dedicated evaluation report.
#### A. Evaluation Design
1) Request Corpus: We define a synthetic request corpus of 1,500 action requests:
- Attack set (n = 1,000): Requests representing unauthorized agent activity, divided into two categories. Single-condition violations ( $n \approx 950$ ) each violate at least one individual policy condition, stratified across: over-limit amounts, outof-window timing, disallowed addresses, disallowed chains, disallowed methods, first-payment violations, minimumbalance violations, and budget-exceeding requests. Aggregate violations ( $n \approx 50$ ) are individually policy-compliant each passes all eight checks in isolation—but represent unauthorized behavior detectable only through cross-request context (e.g., rapid sequences of compliant transactions that stay within budget but exhaust the daily allowance in minutes).
- Legitimate set (n = 500): Requests that comply with all policy conditions, covering normal transaction patterns across varied amounts (0.01–100 units), permitted addresses, permitted chains, and within-window timing. Amounts are drawn from a log-normal distribution to simulate realistic spending patterns.
Each request is a structured PolicyCheckRequest object with fields for amount, recipient address, chain ID, method, timestamp, and balance context. reference policy uses representative conditions, all in a single reference asset: maxAmountPerTx = 100, maxAmountPerDay = 500, maxAmountPerWeek = 2,000,
<sup>4https://github.com/ya-xyz/aesp
maxAmountPerMonth = 5,000, timeWindow = 09:00– 21:00, minBalanceAfter = 10, requireReviewFirstPay = true, with 10 addresses in the allowlist, 3 chains, and 4 methods.
- *2) Baselines:* We compare AESP against four baselines of increasing restrictiveness. Because there is no standardized public benchmark suite or directly comparable deployed protocol that exposes the same eight-check gate with tiered human escalation, these baselines are designed as *mechanismisolation controls*: each step adds one layer of governance complexity, allowing us to attribute security and latency changes to specific protocol components rather than to implementation differences across unrelated systems.
- B0 (Unconstrained): No policy checks. All requests are auto-approved. This represents a raw wallet with no agent restrictions.
- B1 (Amount-only): Only the per-transaction amount check (maxAmountPerTx). Simulates a simple spending cap.
- B2 (Two-check): Amount check + time window check. Simulates a spending cap with operating hours.
- B3 (Full gate, no escalation): All eight policy checks are applied, but rejected actions are silently dropped (no human review, no escalation). Simulates a strict automated filter without human-in-the-loop.
- AESP (Full): All eight policy checks + three-tier escalation. Rejected actions are routed to the ReviewManager; autoapproval, explicit review, and biometric tiers are active.
- *3) Metrics:* For H1 (Security), we report auto-block performance as the primary security outcome and treat escalation as operational load:
- Auto-blocked rate: Fraction of attack requests deterministically rejected by the policy gate without human involvement. This is the *guaranteed* defense: auto-blocked requests cannot proceed regardless of human behavior.
- Escalation load rate: Fraction of attack requests routed to the human principal via the ReviewManager. This is an operational burden metric, not counted as deterministic security success.
- False positive rate (FPR): Fraction of legitimate requests auto-blocked or escalated.
- Per-check attribution: Which of the eight checks triggered auto-blocking, used in the ablation study.
For H2 (Efficiency), we measure:
- Policy evaluation latency: Time for the 8-check sequence (evaluatePolicy()).
- Signing latency: Ed25519 and secp256k1 signing time (via the cryptographic module).
- Key derivation latency: HKDF context-isolated derivation time.
- End-to-end overhead: Total latency from action request to signed authorization (policy check + signing + derivation).
All latency measurements will use performance.now() with 100 warm-up iterations discarded and ≥1,000 measured iterations. Results will be reported as median with interquartile range (IQR) across ≥5 independent trials. The primary benchmark environment is a modern Node.js runtime (e.g., v25) with the WASM binding loaded via wasm-bindgen; comparative measurements using the native C FFI binding will be reported where applicable.
*4) Ablation Design:* To isolate the contribution of each policy check, we remove one check at a time from the full eight-check gate (B3 configuration, without escalation) and re-evaluate the auto-blocked rate. The expected output is a delta table showing the marginal contribution of each check to overall security coverage.
## *B. Planned Analyses*
*1) Security Coverage (H1):* The baseline comparison will report the auto-blocked rate, escalation load rate, and FPR for each of the five configurations (B0–B3 and AESP Full). The hypothesis thresholds are an auto-blocked rate of at least 90% and an FPR of at most 5%. We expect the eight-check gate to auto-block the vast majority of single-condition violations, while escalation load will be concentrated in aggregate violations that pass individual checks but exhibit suspicious cross-request patterns. The ablation will quantify the marginal contribution of each check.
Interpreting escalation. Escalation is not treated as automatic interception. If the human approves all escalated requests without inspection, effective protection equals the auto-blocked rate alone. We therefore report escalation only as review load and analyze its usability implications separately (Section [XIII-D\)](#page-13-2).
*2) Latency Overhead (H2):* We will measure per-operation latency for: 8-check policy evaluation, budget tracker query, Ed25519 signing, secp256k1 signing, EIP-712 typed data signing, HKDF context derivation, SHA-256 hashing (cryptographic module vs. Web Crypto fallback), and composite endto-end paths. All cryptographic operations are benchmarked via the WASM binding as the primary target; native C FFI measurements will be reported as a secondary comparison. The hypothesis threshold is 200 ms median end-to-end overhead; we expect actual overhead to be substantially lower given that individual cryptographic operations typically complete in single-digit to low-double-digit milliseconds.
## *C. Transaction Unlinkability*
To assess the privacy subsystem, we will generate N = 1,000 transactions across multiple agents, each using contextisolated addresses (privacy level ℓ2), and apply a simulated address-clustering heuristic (common-input-ownership and temporal proximity) to the resulting on-chain footprint.
The experiment will compare three configurations: (1) no consolidation countermeasures (baseline), (2) timing jitter (±30%) alone, and (3) jitter + Fisher-Yates shuffle + batched consolidation (batch size 5, inter-batch delay 10–60 min). We expect progressive reduction in timing-based linkability across these configurations. Every consolidated address remains linked to the vault by its transfer destination in all three configurations, so the experiment reports linkability among addresses not yet consolidated separately from consolidated ones.
#### *D. Anticipated Threats to Validity*
Construct validity. The attack corpus is synthetic; realworld attack distributions may differ. We mitigate this by stratifying across all eight check types and including compound attacks that violate multiple conditions simultaneously.
External validity. Latency measurements will be platformspecific. WASM performance varies across runtimes (browsers, Deno, server-side Node.js), and native FFI performance will differ from WASM results. Browser-based deployments may show 1.5–2× higher overhead due to JIT warmup, while native C FFI deployments are expected to be faster.
Approval fatigue. The evaluation assumes the human principal responds optimally to review requests. In practice, high review volumes may degrade human decision quality. Addressing approval fatigue through rate-limiting and intelligent batching is future work (see Section [XV\)](#page-13-1).
## XIV. CASE STUDIES
We present three case studies, each exercising a different combination of protocol features. Each case study is implemented as an end-to-end scenario using the AESP SDK.
## *A. Three-Party Grocery Delivery*
This scenario models a consumer agent, a grocery store agent, and a delivery agent coordinating a grocery delivery transaction. The consumer agent negotiates prices with the grocery store agent through the negotiation FSM (Section [VII\)](#page-7-2), forms an EIP-712 commitment (Section [VIII\)](#page-8-0), and coordinates delivery payment. Key protocol features exercised:
- Multi-agent identity derivation (three agents from separate principals)
- Cross-agent negotiation with offer/counter/accept flow
- Dual-signed commitment consumed by an external escrow contract
- Policy enforcement (spending limits, chain restrictions)
- Human review for the initial high-value grocery order
## *B. Autonomous Cloud Resource Optimizer*
This scenario models an AI agent that autonomously manages cloud infrastructure spending. The agent monitors resource utilization and negotiates spot instance prices, subject to human-defined budget policies. Key protocol features exercised:
- Policy engine with budget tracking (daily/weekly/monthly limits)
- Critical policy change classification (budget increase requires biometric)
- Emergency freeze/unfreeze cycle
- Rolling budget window management
#### *C. Privacy-Preserving NFT Hunter*
This scenario models an agent that scouts and acquires NFTs across multiple marketplaces while preserving the buyer's identity privacy. Key protocol features exercised:
• All three privacy levels (transparent, basic, isolated)
- Address pool replenishment and claiming
- Batched consolidation with Fisher-Yates shuffle and timing jitter
- Context-isolated address derivation via the cryptographic module
- Encrypted audit tag archiving
The grocery scenario stresses multi-party coordination, the cloud optimizer policy enforcement and human oversight, and the NFT hunter privacy.
## XV. DISCUSSION AND LIMITATIONS
Evaluation status. Section [XIII](#page-11-0) specifies the evaluation methodology (request corpus, baselines, metrics, and ablation design) for both hypotheses; empirical results are not yet reported. The framework separates deterministic protection (auto-block rate) from operational burden (escalation load) and measures end-to-end latency overhead of policy evaluation, cryptographic signing, and key derivation.
Settlement layer dependency. AESP defines the protocol and produces signed authorizations, but does not implement on-chain execution. End-to-end operation requires a conforming settlement layer. The current implementation is designed for integration with Yault but is architecturally settlementagnostic.
Privacy limitations and residual leakage. Context-isolated privacy depends on a wallet that supports HKDF-based context derivation in REV32 mode. As described in Section [XIII-C,](#page-12-0) consolidation countermeasures (timing jitter, Fisher-Yates shuffle, batched consolidation) are designed to reduce address linkability, but they do not hide the destination of a consolidation. Consolidating to the vault links each consolidated ephemeral address to it, and multi-input batches link their inputs to each other. Amount-based correlation adds further leakage. The unlinkability provided by the current design therefore lasts only until funds are consolidated. Consolidating to fresh addresses, mixing, or spending directly from ephemeral addresses could reduce this, but none is currently implemented.
Approval fatigue. The requireReviewFirstPay check and budget-boundary proximity are expected to produce a non-trivial false positive rate. Under sustained highthroughput operation, this could generate review fatigue. AESP currently supports urgency levels and expiration deadlines but does not implement rate-limiting, intelligent batching of review requests, or adaptive thresholds that learn from human approval patterns. Addressing this is a priority for future work.
Binding performance variance. Cryptographic latency varies by binding target. WASM execution in browsers may show 1.5–2× higher overhead than Node.js due to JIT compilation warmup and stricter memory constraints. Server-side and mobile deployments using the native C FFI or Dart FFI bindings bypass the WASM layer entirely and are expected to match native Rust performance.
Post-quantum migration. While ML-DSA-44 is available in the cryptographic module (across all binding targets), a complete post-quantum migration requires post-quantum key agreement (replacing X25519) and post-quantum encryption (replacing AES-256-GCM with a post-quantum KEM + symmetric scheme). The current post-quantum support covers signatures only.
Scalability. The review queue introduces latency for outof-policy actions. In a high-throughput agent economy, the 30-minute default review deadline may be too slow. Adaptive deadline policies and batch review interfaces are areas for improvement.
Formal verification. While the negotiation FSM and policy evaluation sequence are specified precisely, the implementation has not been formally verified. Applying model checking to the state machine and policy evaluation logic is a natural next step.
Regulatory compliance. AESP's policy engine and audit trail support compliance requirements (spending limits, allowlists, audit records), but jurisdiction-specific regulations (e.g., money transmitter classification, MiCA) require analysis at the settlement and platform layers.
## XVI. CONCLUSION
We have presented AESP, a protocol for enabling AI agents to participate in economic transactions while ensuring that economic sovereignty remains with the human principal. Under deployment assumption DA1, the protocol enforces the invariant that agents are *economically capable but never economically sovereign* through a combination of deterministic policy evaluation, tiered human-in-the-loop review, dualsigned EIP-712 commitments, HKDF-based context-isolated privacy, and the ACE-GF cryptographic module with WASM and native FFI bindings.
We specify an evaluation methodology with four baselines of increasing restrictiveness, a per-check ablation design, and a transaction unlinkability experiment, targeting two falsifiable hypotheses: (H1) the eight-check gate auto-blocks ≥90% of unauthorized transactions with ≤5% false positive rate, while escalation load is reported separately; and (H2) end-to-end latency overhead remains below 200 ms.
AESP implements requirements identified in recent conceptual work, notably Google DeepMind's Intelligent AI Delegation framework [28](#page-14-5). The accompanying open-source Type-Script SDK (208 tests, ten modules)[5](#page-14-32) provides interoperability with MCP and A2A.
## REFERENCES
- [1] D. Minarsch, S. A. Hosseini, M. Favorito, and J. Ward, "Autonomous Economic Agents as a Second Layer Technology for Blockchains: Framework Introduction and Use-Case Demonstration," in *Proc. 2nd Crypto Valley Conference on Blockchain Technology (CVCBT)*, 2020, pp. 27–35.
- [2] S. Alqithami, "Autonomous Agents on Blockchains: Standards, Execution Models, and Trust Boundaries," *arXiv:2601.04583*, Jan. 2026.
- [3] M. Xu, "The Agent Economy: A Blockchain-Based Foundation for Autonomous AI Agents," *arXiv:2602.14219*, Feb. 2026.
- 5
- [4] B. A. Hu, Y. Liu, and H. Rong, "Trustless Autonomy: Understanding Motivations, Benefits, and Governance Dilemmas in Self-Sovereign Decentralized AI Agents," *arXiv:2505.09757*, May 2025.
- [5] P. F. Christiano, J. Leike, T. B. Brown, M. Martic, S. Legg, and D. Amodei, "Deep Reinforcement Learning from Human Preferences," in *NeurIPS*, vol. 30, 2017.
- [6] L. Ouyang *et al.*, "Training Language Models to Follow Instructions with Human Feedback," in *NeurIPS*, vol. 35, 2022.
- [7] E. C. Cheng *et al.*, "Toward Safe and Responsible AI Agents: A Three-Pillar Model for Transparency, Accountability, and Trustworthiness," *arXiv:2601.06223*, Jan. 2026.
- [8] B. A. Hu and H. Rong, "Sovereign Agents: Towards Infrastructural Sovereignty and Diffused Accountability in Decentralized AI," *arXiv:2602.14951*, Feb. 2026.
- [9] R. S. Sandhu, E. J. Coyne, H. L. Feinstein, and C. E. Youman, "Role-Based Access Control Models," *IEEE Computer*, vol. 29, no. 2, pp. 38– 47, 1996.
- [10] V. C. Hu *et al.*, "Guide to Attribute Based Access Control (ABAC) Definition and Considerations," NIST SP 800-162, 2014.
- [11] J. B. Dennis and E. C. Van Horn, "Programming Semantics for Multiprogrammed Computations," *Commun. ACM*, vol. 9, no. 3, pp. 143–155, 1966.
- [12] N. Abaev, D. Klimov, G. Levinov, D. Mimran, Y. Elovici, and A. Shabtai, "AgentGuardian: Learning Access Control Policies to Govern AI Agent Behavior," *arXiv:2601.10440*, Jan. 2026.
- [13] A. G. Ganie, "Securing AI Agents: Implementing Role-Based Access Control for Industrial Applications," *arXiv:2509.11431*, Sep. 2025.
- [14] T. Wahrstatter, M. Solomon, B. DiFrancesco, and V. Buterin, "ERC-5564: Stealth Addresses," Ethereum Improvement Proposals, 2022.
- [15] M. Nadler and F. Schar, "Tornado Cash and Blockchain Privacy: A Primer for Economists and Policymakers," *Federal Reserve Bank of St. Louis Review*, vol. 105, no. 2, pp. 122–136, 2023.
- [16] G. Maxwell, "CoinJoin: Bitcoin Privacy for the Real World," BitcoinTalk Forum, Aug. 2013.
- [17] F.-X. Wicht, Z. Wang, D. V. Le, and C. Cachin, "A Transaction-Level Model for Blockchain Privacy," in *Proc. Financial Cryptography and Data Security (FC)*, 2024.
- [18] R. Bloemen, L. Logvinov, and J. Evans, "EIP-712: Typed Structured Data Hashing and Signing," Ethereum Improvement Proposals, 2017.
- [19] H. Krawczyk and P. Eronen, "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)," IETF RFC 5869, 2010.
- [20] A. Asgaonkar and B. Krishnamachari, "Solving the Buyer and Seller's Dilemma: A Dual-Deposit Escrow Smart Contract for Provably Cheat-Proof Delivery and Payment for a Digital Good without a Trusted Mediator," in *Proc. IEEE ICBC*, 2019.
- [21] Anthropic, "Model Context Protocol (MCP) Specification," Version 2025-11-25, 2025.
- [22] Google, "Agent2Agent Protocol (A2A)," Version 0.3, 2025.
- [23] M. Sporny, A. Guy, M. Sabadello, and D. Reed (Eds.), "Decentralized Identifiers (DIDs) v1.0," W3C Recommendation, 2022.
- [24] M. Sporny, D. Longley, and D. Chadwick (Eds.), "Verifiable Credentials Data Model v1.1," W3C Recommendation, 2022.
- [25] C. Allen, "The Path to Self-Sovereign Identity," Apr. 2016.
- [26] E. Krul, H.-Y. Paik, S. Ruj, and S. S. Kanhere, "SoK: Trusting Self-Sovereign Identity," in *Proc. Privacy Enhancing Technologies Symposium (PETS)*, 2024.
- [27] S. Srivastava and J. B. Bullock, "AI, Global Governance, and Digital Sovereignty," *arXiv:2410.17481*, Oct. 2024.
- [28] N. Tomašev *et al.*, "Intelligent AI Delegation," Google DeepMind, *arXiv:2602.11865*, Feb. 2026.
- [29] J. S. Wang, "ACE-GF: An Atomic, Seed-Storage-Free Identity Primitive for Autonomous Digital Entities," *arXiv:2511.20505*, Nov. 2025.
- [30] National Institute of Standards and Technology, "Module-Lattice-Based Digital Signature Standard (ML-DSA)," FIPS 204, Aug. 2024.
- [31] T. M. Fernández-Caramés and P. Fraga-Lamas, "Towards Post-Quantum Blockchain: A Review on Blockchain Cryptography Resistant to Quantum Computing Attacks," *IEEE Access*, vol. 8, pp. 21091–21116, 2020.
## APPENDIX A PROTOCOL CONSTANTS
Table [IX](#page-15-0) summarizes the protocol constants used throughout AESP.
TABLE IX: Protocol Constants
| Constant | Value | Section |
|-------------------------|--------------------------------------|---------|
| REV32 context namespace | ACEGF-REV32-V1-*
+ context labels | IV |
| Max hierarchy depth | 5 | IV |
| Policy scope ranks | 1, 2, 3, 10 | VI |
| Max negotiation rounds | 10 | VII |
| Negotiation TTL | 24 hours | VII |
| Review deadline | 30 minutes | IX |
| Address pool size | 5 | X |
| Consolidation interval | 4 hours | X |
| Consolidation jitter | ±30% | X |
| Consolidation batch | 5 | X |
| Inter-batch delay | 10–60 min | X |
| Audit batch threshold | 50 | X |
| Audit time window | 5 min | X |
| EIP-712 domain name | "YalletAgentCommitment" | VIII |
| EIP-712 version | "1" | VIII |
| Argon2id memory | 4 MB | V |
| Argon2id iterations | 3 | V |
| HKDF info prefix | ACEGF-REV32-V1- | V |
| Supported chains | 7 (see §V-C) | V |
## APPENDIX B CRYPTOGRAPHIC MODULE API SUMMARY
Table [X](#page-15-1) lists the primary exports used by the AESP Type-Script SDK. Function names shown are from the WASM binding (wasm.rs); the \_wasm suffix is a binding-layer convention and does not indicate WASM-specific behavior equivalent functions are exposed through the C FFI (ffi.rs) and Dart FFI bindings with their respective platform naming conventions (e.g., \_ffi suffix for C FFI).
TABLE X: Primary Cryptographic Module Exports (WASM binding names)
| Export | Function |
|---------------------------------------|-----------------------------------------------------|
| view_wallet_unified_with_context_wasm | Derive
multi-chain
wallet
under
context |
| evm_sign_typed_data_with_context | EIP-712 signing with context iso
lation |
| solana_sign_transaction_with_context | Solana transaction signing |
| acegf_encrypt_for_xidentity | Encrypt data for a recipient identity |
| acegf_compute_dh_key_wasm | X25519 ECDH key agreement |
| acegf_seal_passphrase_wasm | Argon2id passphrase sealing |
| acegf_unseal_passphrase_wasm | Passphrase unsealing |
| pqc_sign_message_wasm | ML-DSA-44 post-quantum signing |
| pqc_verify_signature_wasm | ML-DSA-44 verification |