CitePay Agent
CitePay Agent puts a policy checkpoint in front of agent spending. In this Next.js demo, an AI agent selects premium source cards under a fixed USDC budget via src/domain/citepay/source-selection.ts, and each selection becomes a standard payment intent. The AgentPay Guard policy engine in src/domain/policy/engine.ts evaluates every intent through POST /api/payment-intents/evaluate, returning a deterministic ALLOW, REVIEW, or BLOCK decision against rules in data/policies.default.json. Each decision lands in an append-only JSONL audit log with idempotency handling (src/domain/audit/audit-log.ts). A vitest suite in tests/ covers policy evaluation, source selection, audit logging, and API failure paths.
1 (Solo) — Kirill Nedoboy
CitePay Agent local proof-pack built on AgentPay Guard