Skip to content
FrankX.AI
AI ArchitectureDec 6, 20265 min read856 words

Wallets, Ledgers, and Authority in an AI Business

TL;DR

Use a hosted payment rail, record provider events and reconcile payouts to the bank. Let AI explain discrepancies and draft proposals. Keep sensitive approval and signing authority independently enforced, and add an on-chain wallet only for a product with an on-chain job.

Frank Riemer
FrankX
AI Architect & Independent Creator
Ex-Oracle AI Architect · Starlight & ACOS Systems
Design checkout, wallets, accounting and agent authority as separate controls, with a practical reconciliation loop and clear human ownership.
Reading Goal

Design a treasury loop that keeps checkout, reconciliation, signing authority and AI assistance under clear ownership.

A customer buys your workshop kit on Friday. The order and fulfillment appear immediately. The payout reaches your bank later, net of fees and potentially grouped with other orders or adjustments. Revenue recognition, available cash, and a record of what you delivered answer different questions. Your business needs an operating loop that can answer all three with evidence on Monday morning.

Start with the reconciliation loop

Use hosted checkout for the first product. Store your order and entitlement separately from the payment event. Verify the provider signature against the raw webhook body. Save each event under a unique provider and event ID, validate provider state when the order depends on event sequence, and enqueue follow-up after the event is safely recorded. Use a stable business-operation key for effectful writes and retries. Stripe documents both duplicate webhook deliveries and idempotent API requests. Those are different controls, and both matter. Stripe webhooks · Stripe idempotency · Stripe payout reconciliation

RecordWhat it answers
Order and entitlementWhat the customer bought, received or had refunded.
Provider balance activityWhich charge, fee, refund, dispute or adjustment changed the provider balance.
Payout and bank statementWhich batch settled and how much cash arrived.
Ledger and reconciliationWhy the records agree and which differences need an owner.

Where you keep a ledger, record balanced entries in explicit currencies and integer minor units with currency-specific precision. Preserve correction entries and the references that explain them. Use established accounting software for the books when it fits. Stripe’s account of Ledger shows what a much larger system gains from reporting missing or late records and checking the consistency of money movement. TigerBeetle documents double-entry primitives. A small operation can adopt the invariant without running another database. Stripe Ledger engineering · TigerBeetle accounting

An AI assistant can group unmatched payouts, cite provider event IDs and prepare an exception queue. Give it views built for those questions. Have the responsible person settle ambiguous items and review the evidence for refunds or payments. Measure days unreconciled, time to close, and how many exceptions survive the next review. Personal spending, company spending and product experiments belong in records whose ownership is clear even when one founder reviews all three.

Keep the person who proposes separate from the power to act

A publishing assistant can prepare an article. A commercial assistant can summarize the commitments in a partner email. Keep any send, contract, export, production change or payment behind an authorization service that evaluates the actual requested action. Use distinct workload identities, narrow tools and an explicit budget. Treat text from a webpage, inbox, document or integration as input to evaluate and quote. It carries the authority of its source, which can be different from the authority needed to perform an action.

Tie approval to the exact action and payload, including destination, amount and expiry where relevant. Check the approval and cap at the point of execution. A receipt records who proposed, who authorized, which request was executed and what the provider returned. Give the owner a way to pause new actions, review queued work and reconcile anything already submitted. Start with draft-only operation and rehearse a duplicate input, a revoked identity and an uncertain provider response. Anthropic engineering · GitHub workload identity example

Give the exception a person and a deadline

Once a week, look at unfulfilled orders, unmatched cash, expired approvals and runs approaching the budget. Each issue gets a named owner, an action and a time to check again. Keep the same IDs from the order, work queue and ledger in that review so an operator can trace a discrepancy from the bank statement back to the customer’s order. The practice borrows from GitLab’s directly responsible individual and applies it to the small studio. One person can hold multiple roles. Where a second signer is required, the actual decision stays with a separate person. GitLab Handbook

Make a wallet earn a job

For ordinary sales, hosted checkout, a company bank account and accounting records cover the initial job. An on-chain wallet becomes relevant when a product truly needs on-chain settlement, transferable ownership or access tied to a verifiable asset. Start from that customer need and match custody, recovery and availability to it. When a business chooses an on-chain account, require independent human authorization for meaningful spending, with a tested recovery process. A Safe Smart Account can enforce an owner threshold. Added modules can change execution paths and deserve their own review. Keep signing keys outside model and workflow environments. Safe Smart Account documentation

These boundaries make a small business easier to share. A studio can bring in an editor without granting access to customer payments. A founder can open a partnership conversation without committing the company. A customer can get a refund with a trace someone can explain. Start with the action you would want a colleague to reconstruct on a day you are offline. Make that reconstruction ordinary.

Return to Edition II · Read the reference architecture · Use the Evaluation Lab

Axi

Read on FrankX.AI — AI Architecture, Music & Creator Intelligence

Stay in the intelligence loop

Field notes on AI systems, production patterns, and builder strategy.

Occasional FrankX field notes. Unsubscribe anytime. Privacy details.