Payment control for AI workflows

Let AI move faster. Keep money in check.

PayGuard puts a deterministic policy gate between an agent's payment proposal and execution. Route exceptions to a person, then keep the decision visible in your ledger.

Propose. Evaluate. Approve. Record.
Payments ledger
Deterministic disposition per invoice
DEMO PREVIEW
Needs review1 · $442
Awaiting approval2 bills
Auto-executed3 bills
Blocked1 bill
VendorInvoiceAmountStatus
Aster CloudINV-2048$842.50PAID
Lumen OfficeINV-1182$442.00REVIEW
Cedar SupplyINV-3150$64.00PAID
Bluebird Log.INV-0907$117.00ON HOLD
Policy gate · Human review required
Amount exceeds the $100.00 auto-execute cap.
HOLD_OVER_CAP
Designed to make the boundary between proposal and payment explicit.
Policy-based decisions
Human approval path
Inspectable audit history
01 / Control surface

Autonomy with a clear boundary.

AI can prepare a payment proposal. PayGuard evaluates it against deterministic rules, holds exceptions, and records the outcome.

CONTROL 01

Rules before execution

Check vendor trust, BigInt amount thresholds, and rolling 60m velocity limits before money moves.

CONTROL 02

People for the exceptions

Hold over-cap or flagged payments for review, then authorize via single-use QR with TOCTOU re-check.

CONTROL 03

Evidence with the decision

Bring invoice quote offsets, catalog price verification, and Postgres ledger receipts into one trail.

02 / Decision flow

Four steps. One visible trail.

Keep the proposal, deterministic policy result, capability token, and final Postgres ledger state connected.

01 PROPOSE

Prepare the payment

An agent or operator submits vendor, invoice, and line-item details.

02 EVALUATE

Run policy checks

The gate applies configured rules and returns a clear disposition.

03 AUTHORIZE

Review exceptions

A person reviews and approves held payments via single-use QR.

04 RECORD

Inspect what happened

Postgres SELECT FOR UPDATE ledger and audit trail record the state.

03 / Interactive demo (Simulated)

Trigger a sample payment.

DEMO MODE · No live money moved
STEP 1 · PROPOSAL
Lumen Office · $442.00
INV-1182
STEP 2 · POLICY CHECK
Trusted vendor · $442.00 > $100.00 auto-cap
STEP 3 · DISPOSITIONHOLD_OVER_CAP
Execution blocked -> Single-use QR approval issued (10m TTL)
04 / Verified architecture

LLM proposes; deterministic code disposes.

Inspect live ledger workspace →
1. Untrusted Input Fence

NFKC + zero-width normalization + nonce-fenced vendor docs before any model call.

2. BigInt + Banker Rounding

OrderProposalSchema .strict() + catalog unit-price verification (roundHalfEven).

3. WeakSet Capability Token

Branded ApprovedForExecution token bound to ownerId, amount, and idempotencyKey.

4. Postgres SELECT FOR UPDATE

Row-locked atomic settlement + idempotent replay guard + Langfuse telemetry.

PayGuard / Sandbox workspace

See the control layer in context.

Explore the live ledger, inspect policy verdicts, and test single-use QR approvals.

Open PayGuard workspace