When the agent can buy things.
A spend cap is not purchase authority. It bounds the amount and says nothing about who may be paid, what for, how often, or who can undo it — and the moment an agent transacts with a third party rather than metering your own inference, the unstated part is the exposure. AWS shipped a rail in November 2026 that gets the envelope roughly right; read what it bounds, because the gaps are the ones you will have to close yourself.
Step 1Two meters that look alike and fail differently.
Every cost-control instinct an agent team has was formed on inference spend: you own the meter, the counterparty is one vendor you already have a contract with, and the worst case is a large invoice from a company whose support queue you can reach. A cap, an alert on the spend rate and a kill switch cover it, which is why cost control in the loop reads the way it does.
Purchase spend is a different object wearing the same units. When the agent pays an outside seller — an API by the request, a dataset, a shipment, a subscription — four things change at once:
- The counterparty is new. You may have no contract, no SLA, no privacy terms and no named human, and you acquired all of that at machine speed without a procurement step.
- Recourse is external. An over-spend on inference is a conversation with your provider. An over-purchase is a dispute, governed by somebody else's refund policy, on their timetable.
- Some of it recurs. A single authorised click can create a subscription, and a monthly charge is not bounded by the cap that approved it.
- Some of it is irreversible in the physical sense. A refund returns money; it does not un-ship a pallet or un-publish a listing.
Which is why this belongs next to the cost of agent errors rather than inside the token budget. The number on the invoice is the smallest part of the problem.
Step 2What the November 2026 rail actually bounds.
Amazon Bedrock AgentCore gained a Payments capability in preview in April 2026, built with Coinbase and Stripe, and on 19 November 2026 AWS extended it to AWS Marketplace: an agent discovers a listing through the AgentCore Gateway Marketplace connector, pays per request in USD, and the charge lands on the buyer's AWS bill. Sellers must register with AWS Marketplace and integrate its x402 SDK. The payment handshake is the thin part — the seller's endpoint answers an unpaid request with HTTP 402 and a quote, and the agent asks the payment service to settle it, which is a 1997 status code finally being used for its stated purpose.
The interesting part is the envelope around it. The buyer configures a Payment Manager and a payment session with limits, sets which sellers are approved, and sees transactions in CloudTrail and Cost Explorer. AWS states that the spending limits are enforced deterministically at the infrastructure layer rather than by the agent respecting them. That sentence is the whole design: the model is not asked to be careful with money, and the thing that says no is not a model at all. It is the same structural move as the action guardrail in guardrails, in plain words, applied to a credential instead of a tool call.
And notice the precondition that makes it work: the buyer already had an account with a billing relationship, an identity, a log and a dispute path. That is why agent purchasing shipped at the cloud console years before it worked at a consumer storefront, where the agent arrives as an anonymous third party — the structural asymmetry in bot verification and agent access. The rails were never the bottleneck. The billing relationship was.
The launch details above come from AWS's own announcement, blog and documentation as of late November 2026. Capabilities in this category are moving monthly and several are in preview, so confirm the current limit semantics in the console before you design a control around them — in particular whether a limit is per session, per manager or per account, which determines whether a parallel fan-out can spend the cap several times over.
Step 3Authority has four dimensions and most teams set one.
Write the grant down as four separate statements, because a cap collapses them into the only one that is easy to measure:
- Counterparty — who may be paid. An allowlist of sellers, not a category. "Any x402 endpoint" is not an answer; neither is "anything on the marketplace", which delegates your vendor-approval decision to the marketplace's listing review.
- Scope — what may be bought. A metered API call is a different risk class from a seat licence, which is different again from physical goods. Bind scope to the task, the way task scope binds everything else.
- Amount and rate — how much, and how fast. Two numbers, not one. A daily cap with no rate limit is satisfied by a loop that spends it in four minutes every day.
- Recourse — who can undo it, within what window, and who is told. If nobody owns the cancellation, the subscription renews.
The reason the amount gets set alone is that it is the only one that appears on a dashboard. The other three only ever show up in an incident, which is the standard reason a control is missing: it was never visible when things were fine. Grants on the human side of this are the subject of delegated access and consent records, and the credential that carries the authority should expire on the same schedule as the task — see credential lifetime.
Step 4Work the arithmetic: a cap sized for normal use cannot see a loop.
Take a research agent that pays per request for a data API at $0.004 a call, expected to make about 4,000 calls a day, and a daily cap set at a comfortable 5× expected spend:
expected 4,000 calls x $0.004 = $16/day
daily cap 5x expected = $80/day
a retry loop at 20 calls/second:
spends the remaining $64 in = 800 calls = 40 seconds
stops at the cap = yes
stopped by an alert = no, the day's budget was always allowed
repeat daily for a month:
at cap $80 x 30 = $2,400
expected $16 x 30 = $480
invisible overspend = $1,920, inside policy, every day
The cap did its job and the control still failed, because "spent the whole allowance in forty seconds" and "spent the whole allowance across a working day" are the same number and different events. Three fixes, in order of how much they buy:
- Rate-limit the purchase, not just the budget. Calls per minute is the signal that distinguishes a loop from a workload, and it is the one retry amplification moves first. A paid retry is the one case where the retry policy is a spending policy.
- Alert on the derivative and on cap proximity. "Hit 90% of the cap before 09:00" is actionable; a monthly total is archaeology. Same discipline as forecasting agent spend.
- Make the cap a per-task budget, not only a per-day one. A daily pool is a shared resource, so one run can consume what the other forty needed; a run that exceeds its own allocation should stop and hand back what it has.
The adversarial version of the same arithmetic — where the loop is somebody else's idea — is denial of wallet and cost attacks, and it is worse here, because the attacker is spending your money at a seller they chose.
Step 5A purchase you cannot attribute to a run is an audit finding.
Inference spend can be reconciled loosely; a line item on a corporate card or a cloud bill cannot. Finance will ask who authorised a charge, and "an agent did" is not an answer that survives the question. Three records have to exist and be joinable:
- The grant — which policy allowed this seller, this scope, this amount, and which human owns that policy. Store the policy version, not just the policy.
- The run — the trace id, the task, the tenant or cost centre, and the step at which the purchase was proposed. Without the join to the trace you have a charge and no cause; this is the same join that makes cost attribution work.
- The settlement — the provider's own record, which for the AWS path means CloudTrail and Cost Explorer, and for a card path means a statement line you have to reconcile by hand.
Design for the join rather than hoping to reconstruct it: put the trace id into whatever idempotency or reference field the payment call offers, and record the proposed purchase before settlement, so a charge with no matching proposal is detectable as a distinct failure. That ordering is what turns a surprise into a question with an answer, and it is the purchase-side case of audit trails.
Step 6The part nobody designs: unwinding.
Purchase authority is granted in one step and unwound in several, and the asymmetry is where the recurring cost lives. Four things to decide before the first agent transacts, not after:
- Who cancels. A recurring charge created by an agent needs a named owner and a renewal date in a calendar a human reads. The failure mode is a fleet of small subscriptions nobody can map to a current need — the purchase-side version of the drift in third-party tool drift.
- What a dispute costs you. Chargeback and refund mechanics assume a human made a decision; an agent-initiated purchase can be harder to characterise, and your leverage is whatever the seller's terms say. Price the staff time, not just the loss.
- What happens at the stop. A kill switch that halts the agent mid-purchase can leave a paid request with no delivered result, or a cart in an indeterminate state. Decide whether in-flight purchases drain or abort, and make the choice explicit in your kill switches.
- What the agent may commit you to. A quote accepted is a contract in some jurisdictions. Keep anything with a term, a notice period or a liability clause behind a human, however small the amount — a $9 annual licence with an auto-renewing term is a worse grant than a $900 one-off.
Before you enable purchasing anywhere, write the four-dimension grant for exactly one use case on one page: the seller allowlist, the SKU class, the amount and the rate, and the named human who can cancel. Then set the rate limit first and the cap second — the cap is the number auditors ask for, the rate is the number that catches the loop. Then run the whole path once in dry-run mode and confirm the proposed purchase appears in your trace before any money moves. If you cannot produce the grant on one page, the honest configuration is a human approval on every purchase, which costs far less than the first unexplained invoice. Protocol-level comparisons of the rails are in AP2 and agent commerce and Poppy vs UCP vs ACP vs AP2.