← all projects

CitePay Agent

@KirillNedoboy·added 2026-07-19
0
stars
1.9k
lines
64
files
0
forks
0
followers
languages
TypeScript 99%JavaScript 1%

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.

events
tags
team · solo

1 (Solo) — Kirill Nedoboy

on xx/KirNedoboy
repo description

CitePay Agent local proof-pack built on AgentPay Guard

last pushed 2026-06-30