Building boundary layers for AI agents when they pay, trade, and remember.
AI agent external control layer — boundary components for the moments agents act on the outside world.
AI agents are moving beyond text generation. They pay via x402 and USDC, trade on DEXs, and store long-term memory. Each of those moments carries risk: budget overruns, bad swap prices, stale or poisoned memory.
This project explores boundary layers around those moments, using a common pattern:
check → (external action) → record → report
Three Boundaries:
| Boundary | Moment | Purpose | Status |
|---|---|---|---|
| Payment Boundary | Before/after payments | Budget, recipient, metadata, evidence | Arc demo live / multi-currency concept |
| Execution Boundary | Before/after DEX trades | Quote, oracle, slippage, MEV, wallet risk | Concept |
| Memory Boundary | Before/after memory writes/reuse | Source, freshness, conflicts, poisoning risk | Concept |
Compatible with: x402 / USDC / JPYC / Arc / Agent Evidence flows.
Budget and audit boundary for AI agents paying with USDC on Arc Testnet.
Endpoints:
POST /api/arc/payment/check— pre-payment: budget, risk, approvalPOST /api/arc/payment/record— post-payment: tx hash, evidence, audit logGET /api/arc/payment/report/{agent_id}— per-agent history and audit report
AI-readable files: /openapi.yaml · /llms.txt · /skill.md · /.well-known/agent.json
Three live APIs for Japanese AI agent payment governance (pre-payment + post-payment).
| Step | API | Endpoint | Price |
|---|---|---|---|
| 1 (pre) | JP Metadata Sanitizer | POST /api/security/metadata-sanitize |
0.05 USDC |
| 2 (pre) | JP Counterparty / Invoice Check | POST /api/counterparty-invoice/check |
0.02 USDC |
| 3 (post) | JP Payment Evidence Guard | POST /api/payment-evidence/check |
0.03 USDC |
Total: 0.10 USDC / transaction · ai-agent-payment-safety-stack · Live
AI agents are moving from text generation to external actions.
They pay via x402, USDC, JPYC, or Arc. They trade on DEXs using quotes and swap APIs. They store and reuse long-term memory across sessions.
This project explores what needs to happen before and after those moments — not inside the payment rails or memory systems themselves, but around them.
Not a wallet. Not a DEX. Not a memory database. A boundary layer that checks, records, and reports.
| Boundary | When | What it checks |
|---|---|---|
| Payment Boundary | Before/after agents pay | Budget · Recipient · Metadata (PII check) · Evidence |
| Execution Boundary | Before/after DEX trades | Quote sanity · Slippage · MEV risk · Wallet risk |
| Memory Boundary | Before/after memory writes/reuse | Source · Staleness · Conflicts · Poisoning risk |
| Multi-Currency Boundary | Before/after multi-currency payments | FX quote · Spread · Chain match · Recipient |
Common pattern across all Boundaries:
check → (external action) → record → report
The Arc Agent Payment Boundary Demo includes AI-readable files for agent discovery:
| File | URL | Purpose |
|---|---|---|
| OpenAPI spec | /openapi.yaml |
API schema for agents |
| LLM guidance | /llms.txt |
When and how to use this API |
| Skill definition | /skill.md |
Structured skill for AI tools |
| Agent manifest | /.well-known/agent.json |
A2A agent discovery |
- AI Agent Payment/API Readiness Setup — helping small API providers get x402-ready ($300–$2,000 setup)
- JP Local Agent Payment Control Pack — 3 live APIs for Japanese payment governance
- Multi-Currency Agent Payment Boundary — x402 + StableFX multi-currency concept
- Monthly Agent Evidence Pack — monthly evidence reports for AI agent payments (design phase)
- Agent-readable API discovery — llms.txt / skill.md / agent.json / OpenAPI for all live APIs
- Does not execute payments, swaps, or memory writes
- Does not custody funds
- Does not handle private keys or seed phrases
- Does not provide investment advice
- Does not provide tax, legal, or credit decisions
- Does not claim official affiliation with Circle, Arc, StableFX, or JPYC
- Does not build wallets, DEXs, oracles, RPC providers, or LLMs
| Project | GitHub | Live |
|---|---|---|
| Arc Agent Payment Boundary Demo | arc-agent-payment-boundary-demo | Live demo |
| AI Agent Payment Safety Stack | ai-agent-payment-safety-stack | Live |
AIエージェントが支払う・取引する・記憶する前後に、予算・リスク・承認・証跡を通す外部制御レイヤーを整理しています。 Xプロフィールは当面変更せず、GitHub側で説明を整備します。