Skip to content
View sasuke15134321's full-sized avatar

Block or report sasuke15134321

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
sasuke15134321/README.md

Atsushi Segawa

Building boundary layers for AI agents when they pay, trade, and remember.


What I'm building

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.


Live demo

Arc Agent Payment Boundary Demo

Budget and audit boundary for AI agents paying with USDC on Arc Testnet.

Endpoints:

  • POST /api/arc/payment/check — pre-payment: budget, risk, approval
  • POST /api/arc/payment/record — post-payment: tx hash, evidence, audit log
  • GET /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

⚠️ Testnet demo only. Does not execute payments. Does not custody funds. Does not handle private keys or seed phrases. Not affiliated with Circle or Arc.


JP Local Agent Payment Control Pack

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


Agent External Control Layer

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 types

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


AI-readable discovery

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

Current focus

  • 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

What this does not do

  • 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

Links

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

🇯🇵 Japanese note

AIエージェントが支払う・取引する・記憶する前後に、予算・リスク・承認・証跡を通す外部制御レイヤーを整理しています。 Xプロフィールは当面変更せず、GitHub側で説明を整備します。

Popular repositories Loading

  1. ai-agent-payment-safety-stack ai-agent-payment-safety-stack Public

    Small composable APIs for controlling AI agent actions at external boundaries.

    Python 1

  2. LostFauna LostFauna Public

  3. lost-fauna-images lost-fauna-images Public

  4. agent-memory-api agent-memory-api Public

    AI agent memory & trust infrastructure | x402 USDC | Recall compression

    Python

  5. agent-security-gateway agent-security-gateway Public

    Deterministic AI security scanner | Prompt injection detection | x402 USDC

    Python

  6. agent-budget-guard agent-budget-guard Public

    AI agent budget management & anomaly detection | x402 USDC | JPYC ready

    Python