Governing AI agent purchases means deciding, outside the agent, which orders it may place on its own, which wait for a person, and which it may never make. The decision is taken per order, on the merchant, the total, the currency and whether the charge recurs, and every decision is recorded. The agent never holds the payment credential, so it cannot pay anywhere the control point does not allow.
Do AI agents really buy things already?
Yes. In a November 2026 study of more than 11,000 shopping-agent runs, agents reached the end of checkout in 81% of runs on stores that offer guest checkout, and booked flights and hotels directly (a16z, with The Prompting Company). Payment rails built for agents are arriving at the same time: wallets that ask for approval on each purchase, and single-use virtual cards. Businesses call this agent-to-business or "B2A" commerce.
The same study shows how agents choose. They add up the fully loaded cost (shipping, returns, subscription terms) and usually prefer a trusted seller over a cheaper one, but a large enough discount still pulls some of them to a seller they trust less. That is reasonable behaviour, and it is exactly why a company needs its own rules on top: an agent's judgement of "good value" is not your approved-vendor list.
What can go wrong when an agent can pay?
- The wrong seller. A cheaper, unknown merchant wins on price, outside your vendor contracts.
- Hidden recurring cost. A trial turns into an annual subscription that costs far more than the first charge.
- Instructions in the page. Product pages and reviews are written by sellers and strangers. Text in them can tell the agent what to buy. This is prompt injection with a card attached.
- Large sums with no second person. One agent, or one compromised account, commits a budget alone.
- No record. Afterwards nobody can show who allowed an order, or which orders the agent tried and was refused.
Which controls should an agent purchase pass?
| Control | What it does | Typical rule |
|---|---|---|
| Approved merchants | Refuses orders to sellers outside your list | Deny if the merchant is not in the list, or missing |
| Per-order tiers | Lets small orders through and holds larger ones | Allow up to 100; the buyer confirms up to 1,000; two approvers above |
| Recurring charges | Holds subscriptions and auto-renewals | Always require a finance approver |
| Untrusted content | Puts a person in front of orders after the agent read seller-written pages | Hold orders above a small amount once the session is tainted |
| Credentials out of reach | The agent never holds the card, token or API key | The gateway injects the credential on allowed calls only |
| Evidence | Records every attempt, approval and refusal | A tamper-evident ledger finance and audit can check |
Add a rate limit (for example two orders a minute) so a looping agent cannot place dozens of orders before anyone notices.
What does a purchase policy look like?
In MAQPNA, the store or procurement system is an MCP server and the policy is a ToolPolicy. Rules are checked in order and the first match wins:
rules:
- name: approved-merchants-only
tools: [place_order, create_subscription]
when: [{arg: merchant, op: nin, values: ["acme-office.example", "travel.example"]}]
action: deny
- name: large-order-four-eyes
tools: [place_order, create_subscription]
when: [{arg: total.value, op: gt, value: "1000"}]
action: require_approval
approval: {minApprovers: 2, approverGroups: [finance]}
- name: owner-confirms-mid-size
tools: [place_order]
when: [{arg: total.value, op: gt, value: "100"}]
action: require_approval
approval: {userConfirmation: ciba}
- name: small-orders
tools: [place_order]
action: allow
maxCallsPerMinute: 2
The full sample, with currency, recurring-charge and untrusted-content rules and a test suite, is in the guide Govern agent purchases and payments. You can test every rule offline with maqpna policy test before an agent spends anything.
Where does MAQPNA fit?
MAQPNA is a self-hosted runtime for AI agents. Every tool call an agent makes, including a checkout, passes through its gateway, which allows, denies or holds it. For purchases that means:
- Rules on the order itself. Conditions on merchant, total, currency and any other argument, with default deny.
- Holds with quorum. Two-person approval for large orders and no self-approval. See human-in-the-loop approval.
- The buyer confirms. With user confirmation (CIBA), the person the agent buys for approves on their own device through your identity provider.
- Taint. Reading product pages or reviews marks the session, and later orders can be held. See prompt injection in tool calls.
- Credentials stay in the gateway. The agent runs in a sandbox whose only exit is the gateway, and the store credential is injected there.
- A ledger you can verify. Every order attempt and decision is hash-chained. See tamper-evident audit trails.
What it does not do today: MAQPNA checks each order, but does not add up what agents pay merchants over a day, and it does not issue virtual cards. Pair it with your card issuer's limits for a daily total and for one card per order. Its budgets cap what the agent itself costs to run: model tokens, tool calls and sandbox time.
Related: AI agent governance, what is an MCP gateway and agent identity and least privilege.