Kexin Cao
All Projects
Artificial IntelligenceCompletedSep 2026 – Sep 2026

Aisle: Recovery Engine

An MCP-based payment recovery layer for AI agents, built at the Battle of the Schools hackathon — when a tool call hits a paywall, it gets one human approval, tops up safely, and resumes the call.

TypeScriptMCPSteelStripeOpenRouterLLM Agents

Overview

Built at the Battle of the Schools hackathon as an AI / Full-Stack Developer. Aisle is an MCP-based payment recovery system for AI agents: when an agent's tool call fails because a vendor's credits are exhausted, Aisle detects it, asks the user for a one-time purchase approval, completes the purchase, and automatically resumes the blocked tool call.

Approach

Detect → approve → buy → verify → replay

The gateway sits between the agent and the vendor. On an "insufficient credits" failure it works out the top-up that fixes it, asks for one approval, executes the purchase, verifies that the entitlement actually arrived, and replays the exact same call.

Safety before autonomy

Letting an agent spend money only works if spending is boring and predictable:

  • Deterministic spending controls — limits are enforced in code, never by a model
  • Signed purchase mandates — the approved amount and target are locked in before checkout
  • Origin locking — purchases can only happen on the vendor that was approved
  • Pre- and post-purchase verification — prevents unauthorized, duplicate, or mismatched transactions

Browser automation

Steel browser automation handles vendors without a purchase API, with LLM-assisted UI navigation to find the right page — while the payment step itself stays deterministic. Supported OpenRouter and Stripe test vendors, with entitlement verification and recovery replay.

Lessons Learned

The model is good at navigating; it should never be the thing that clicks "Pay". Splitting the flow into LLM-assisted steps and deterministic steps is what made the system safe enough to demo end to end.

Resources