INTENTLEDGER AI
The Trust Infrastructure for Autonomous Commerce
Every AI transaction deserves proof.
Inspiration
AI agents are rapidly evolving from systems that answer questions into systems that can take actions on behalf of people. They can discover products, compare prices, make recommendations, and increasingly interact with payment infrastructure.
But this creates a fundamental question:
When an AI agent makes a purchase, how do we know it actually reflects what the human intended?
An AI agent might recommend a product within someone's budget but select a more expensive alternative, choose an unauthorized merchant, or execute a transaction beyond the scope of the original instruction.
Traditional payment systems focus on whether a transaction can be processed. They do not necessarily establish whether an autonomous agent was authorized to make that exact purchase.
I wanted to address this missing layer of trust.
That led me to build INTENTLEDGER AI: a security and accountability infrastructure that connects human intent, AI decisions, deterministic authorization, payment execution, and cryptographically verifiable evidence.
My central principle throughout development was:
AI can recommend a purchase. It cannot authorize the money.
What It Does
INTENTLEDGER AI introduces a human-controlled authorization layer between autonomous AI agents and payment execution.
It allows users to establish signed spending mandates that define the boundaries within which an AI agent can operate.
The platform then:
- Records human purchase intent and spending mandates.
- Allows AI agents to generate purchase proposals.
- Detects deviations between the original intent and proposed transactions.
- Evaluates proposals against deterministic authorization policies.
- Blocks unauthorized merchants, excessive spending, expired mandates, and invalid approvals.
- Requires explicit human approval of the exact transaction before payment execution.
- Integrates with PayPal Sandbox for order creation, buyer approval, and payment capture.
- Reconciles payment records with the actual PayPal transaction.
- Generates cryptographically verifiable Transaction Passports containing transaction evidence.
The goal is not simply to make AI-powered shopping possible. It is to make autonomous commerce accountable.
How It Works
INTENTLEDGER AI follows a controlled transaction lifecycle.
1. Human Intent and Mandate Creation
The user defines what the AI agent is allowed to purchase, including spending limits and authorization constraints.
These mandates establish the boundaries of autonomous activity and are protected through cryptographic signing.
2. AI Purchase Proposal
The AI agent analyzes the purchase request and generates a structured proposal containing the selected product, merchant, price, and transaction details.
The AI is restricted to proposing actions. It cannot independently authorize or execute payments.
3. Intent Drift Detection
The proposed transaction is compared against the original human intent and active mandate.
A proposal that exceeds the permitted spending limit, selects an unauthorized merchant, or violates the mandate is identified before payment execution.
4. Deterministic Authorization
A deterministic authorization kernel evaluates the transaction against explicit policy rules.
This is a critical architectural decision: authorization does not depend on the AI model's opinion.
The same transaction and policy inputs must produce a predictable authorization decision.
5. Exact Human Approval
When a proposal satisfies the authorization requirements, the user must explicitly approve the exact transaction.
The approval is cryptographically bound to the proposal fingerprint, preventing an altered transaction from reusing an earlier approval.
6. PayPal Payment Execution
After authorization and human approval, the application creates a PayPal Sandbox order.
The buyer completes the PayPal approval flow, after which the server performs payment capture and reconciles the resulting payment information with the persisted transaction record.
7. Transaction Passport
Finally, INTENTLEDGER AI generates a Transaction Passport containing the relevant transaction details, authorization decisions, payment references, and cryptographic evidence.
The passport uses SHA-256 hash-linked evidence records and verification mechanisms to help detect unauthorized modifications.
This creates an auditable record connecting the original intent to the final payment outcome.
What Makes It Different
Most AI shopping applications focus on product discovery, recommendations, and checkout convenience.
INTENTLEDGER AI focuses on a different problem: who authorized the transaction, what exactly was authorized, and can that authorization be verified afterward?
Its architecture separates three responsibilities:
- AI intelligence: Understands intent and proposes purchases.
- Deterministic security: Evaluates mandates, policies, approvals, and authorization boundaries.
- Payment infrastructure: Executes approved transactions through PayPal.
This separation is intentional.
An AI-generated recommendation is not an authorization. A valid payment is not automatically proof of valid human intent.
INTENTLEDGER AI attempts to connect both through explicit authorization and verifiable transaction evidence.
Technical Implementation
I independently designed and implemented the platform using a full-stack TypeScript architecture.
Frontend and Application
- Next.js 15.5.29
- React 19
- TypeScript
- Tailwind CSS
- AG Grid Community for transaction data visualization
Backend and Persistence
- Next.js API routes
- Prisma ORM
- Neon PostgreSQL
AI Integration
- Groq API for AI-powered proposal generation
- Deterministic fallback behavior when AI generation is unavailable
Payment Integration
- PayPal Developer Sandbox
- PayPal Orders API v2
- Server-side order creation and capture
- Payment reconciliation and webhook verification
Security and Cryptography
- Ed25519 digital signatures
- SHA-256 proposal fingerprints
- Hash-linked Transaction Passport evidence
- Deterministic authorization kernel
- Server-enforced payment redirect validation
- Explicit separation between AI proposals and human authorization
Testing and Deployment
- Vitest
- TypeScript static checks
- ESLint
- Next.js production builds
- Vercel deployment
- Neon PostgreSQL persistence
Engineering Challenges
One of the most important challenges was ensuring that an AI model could never become the authority over financial decisions.
I addressed this by separating proposal generation from authorization. AI-generated output is treated as untrusted input and must pass deterministic validation before proceeding.
Another challenge was binding human approval to the exact transaction. I implemented cryptographic proposal fingerprints so that changes to transaction details cannot silently reuse an earlier approval.
Payment execution introduced another layer of complexity. Creating an order, obtaining buyer approval, capturing payment, and reconciling the final payment record must remain distinct steps. I implemented these as separate operations rather than treating checkout as a single action.
I also worked on persistence, webhook verification, redirect validation, and transaction evidence integrity to make the system more resilient to failures and unauthorized modifications.
Demonstrated Results
The implemented prototype has been validated against its local development and PayPal Sandbox environment.
- 65 automated tests passed across 11 test files.
- 18 authorization kernel rules and checks were implemented.
- TypeScript validation completed without errors.
- All 23 application routes were generated successfully in the production build.
- Full dependency audit reported zero vulnerabilities after dependency remediation.
- A PayPal Sandbox transaction of $85.00 USD was successfully captured and reconciled with its Neon PostgreSQL record.
- A corresponding Transaction Passport was generated and verified.
- Unauthorized transaction scenarios, including spending-limit violations and invalid approval conditions, were tested.
These results demonstrate the core transaction lifecycle in a sandbox environment. They do not represent live financial processing or production security certification.
What I Learned
Building INTENTLEDGER AI strengthened my understanding of the challenges involved in combining AI systems with financial infrastructure.
I learned that reliable autonomous systems require more than accurate AI outputs. They need strict authorization boundaries, deterministic enforcement, cryptographic integrity, persistent evidence, and carefully controlled execution paths.
I also learned how important it is to design for failure: AI services can become unavailable, payment operations can fail, webhooks can be repeated, and persisted records must remain consistent.
Most importantly, I learned to treat trust as an architectural requirement rather than a feature added at the end.
What's Next
INTENTLEDGER AI is a foundation for a broader trust layer for autonomous commerce.
Future development will focus on:
- Stronger identity and delegation management for AI agents.
- Durable cryptographic key lifecycle and rotation.
- Additional payment provider integrations.
- Richer intent-drift detection and policy evaluation.
- Independent security testing and production hardening.
- More interoperable transaction evidence and verification interfaces.
My long-term vision is to make human intent a first-class authorization primitive in autonomous commerce.
As AI agents gain the ability to act on our behalf, the systems governing those actions must remain accountable to the people they represent.
INTENTLEDGER AI — Every AI transaction deserves proof.
Built With
- ag-grid
- ed25519
- groq
- neon-postgresql
- next.js
- node.js
- paypal
- prisma
- react
- sha-256
- tailwind-css
- typescript
- vercel
- vitest