saturday, september 5, 2026 · the day's ai, attributed published by trilot llc · wyoming
guide · working with ai

The agent guardrails you should stop building yourself

Work out which limits your platform already enforces beneath your workflow, retire the home-made versions, and keep the few controls no vendor will set for you.

Published 2026-09-05 · Updated 2026-09-05 · Read 9 min · Reviewed by Rami Steitieh

Verified 2026-09-05 · Rami
on this page · 0 / 0 checked

Somewhere in your setup there is a limit you wrote yourself. A counter in a workflow that stops after 200 calls. A sentence in a system prompt telling the model not to spend more than $20. A cron job that emails you the running total on Fridays. You built it because at the time nothing underneath the workflow was going to stop anything, so the only place to put a brake was in your own code, where you could see it. That assumption is now out of date in a way that is easy to miss, because the things that replaced it shipped as documentation updates rather than launches.

This guide is for a solo operator or a small team who already has agents running unattended and a pile of home-made safety code they now maintain. It is not for anyone building payment infrastructure for other people, and it is not for a business with a procurement process and a finance team, who have a different set of problems and a colleague to hand them to. The job here is narrow. Find out which of your guardrails the platform now enforces underneath you, delete those, and get clear about the ones that are still yours forever.

Model capability was never what kept your agent supervised

Look at what shipped in agent infrastructure over the past year and notice what is absent from the list. On 18 August 2026, AgentCore Payments reached general availability in Amazon Bedrock, letting an agent pay for APIs, MCP servers and content without a human approving each transaction, after a preview earlier that year [1]. Google announced the Agent Payments Protocol on 16 September 2025, with more than 60 organisations attached, including Mastercard, PayPal, American Express, Adyen and Worldpay [4]. x402 became a Linux Foundation project [5]. Stripe and OpenAI published the Agentic Commerce Protocol under an Apache 2.0 licence [6].

None of that is about models getting smarter. A frontier model has been able to work out that it needs a dataset and should buy it for a long time. What was missing was everything around that decision: a ceiling somebody else enforces, a credential that is not your actual card, and a record a bookkeeper would accept. Those are plumbing problems, and plumbing problems are what get solved once a capability is real enough that people want to run it unwatched.

There is a useful reading rule buried in this. When a problem acquires a protocol, that is evidence the problem was not solved. Google’s stated reason for AP2 is that existing payment systems assume a human initiates the purchase, which leaves three open questions when an agent does it instead: whether the user actually authorised this particular purchase, whether the agent’s request reflects what the user meant, and who is accountable when the transaction turns out to be wrong [4]. Nobody writes a specification for a question the industry already has an answer to.

A limit only counts at a layer your agent cannot edit

Here is the test that sorts your existing controls into keep and delete. Ask whether the thing being limited could change the limit. A number in a prompt fails immediately, because instruction-following is exactly the behaviour under question. A counter in your own workflow fails the moment the agent can edit that workflow or run code. A cap enforced by the vendor’s billing system passes, because it is arithmetic performed somewhere your agent has no reach.

Anthropic’s API is a clean example of the passing kind. Organisations sit in usage tiers with a monthly spend cap attached: $500 on Start, $1,000 on Build, $200,000 on Scale, and no cap on Custom, which is arranged with an account team [2]. When you hit it, requests return HTTP 429 with the error code enforced_spend_limit_reached, and usage pauses until 00:00 UTC on the first day of the next month unless you ask for a higher limit sooner [2]. More useful for a small team is the part underneath: in the Claude Console you can set your own spend limit below your tier’s cap, under Settings then Billing, and set separate workspace limits, with breaches of your own limit returning HTTP 400 rather than 429 [2]. That is a number you choose once and then cannot talk your way past.

The machine-to-machine version has the same shape. In AgentCore Payments a transaction happens inside a payment session, which is a scoped payment context for a single agent interaction carrying two settings: a maximum spend amount in a stated currency, and an expiry time [1]. AWS describes the infrastructure layer as performing deterministic checks before a payment is signed, rejecting anything that would exceed the session budget [1]. Deterministic is the operative word. The check does not read the request and form a view about it.

Three of your home-made controls have probably already moved downstairs

The first is the ceiling, and it is the one people rebuild most often. If you are counting spend inside your own workflow, check the platform first. Anthropic gives you a spend limit you set once in the Console [2]. AgentCore Payments gives you a per-session budget where the work is transactional [1]. Neither of those is a number your agent can argue with.

The second is credential handling. The old pattern was a real payment method sitting in an environment variable, reachable by anything running in that process. The replacement is a wallet the platform holds on your behalf, with the agent never touching the underlying instrument. AgentCore Payments integrates Coinbase stablecoin wallets, with a quick-create option in the AWS console and CLI, and Stripe’s Privy wallets configured through the Privy dashboard [1]. You are not writing that part any more, and you should not want to.

The third is the record. If your audit trail is a log line your own code writes, it is worth exactly as much as your code’s correctness on the day it mattered. AP2 replaces it with cryptographically signed mandates: an intent mandate capturing what the user asked for, including price limits and timing for a delegated task, a cart mandate fixing the exact items and price before purchase, and a payment mandate tying the payment method to that cart [4]. The point is not the cryptography. It is that the record is produced by the transaction rather than described alongside it.

Go and look for all three in the platform you already pay for, and do it before you write another version. The reason this is worth an hour is not elegance. It is that home-made guardrails rot. The counter you wrote in March does not know about the tool you added in July.

The competing standards agree on more than the coverage suggests

There are several of these now, and it is tempting to treat that as a reason to wait. Look at what they have in common instead. x402 uses the HTTP 402 Payment Required status code: an unpaid request gets a 402 back, the client pays and retries, and a server operator adds it with a single line of middleware [5]. It is blockchain-agnostic, covering EVM-compatible chains and Solana, settles mainly in stablecoins, and charges zero protocol fees, leaving only network fees [5]. AP2 builds on the Agent2Agent protocol and MCP, and stacks the three mandates described above into a non-repudiable trail [4]. The Agentic Commerce Protocol, from Stripe and OpenAI, keeps the business as merchant of record and integrates over REST or MCP, using a shared payment token to pass credentials through the agent without exposing the underlying details [6]. AgentCore Payments supports x402, including its scheme for dynamic per-inference pricing, alongside the Machine Payment Protocol co-authored by Stripe and Tempo [1].

Underneath the branding, every one of these is the same three fields: a signed statement of what was authorised, an amount it may not exceed, and a point at which the authorisation stops being valid. That is why you do not need to pick a winner and probably should not try. The operator’s version of this question is much smaller. Ask which protocol your vendor speaks, confirm the amount and the expiry are set to numbers you chose, and go back to work.

For most operators the money leaves as metering, not as purchases

The agentic commerce coverage is about buying things. Your actual exposure is almost certainly duller than that. Your agent does not purchase a dataset. It burns tokens and workflow runs, in small amounts, continuously, and the bill arrives monthly with no single line item to be alarmed by.

The numbers are worth holding in your head. On the Claude API, Sonnet 5 costs $2 per million input tokens and $10 per million output, Opus 5 costs $5 and $25, and Haiku 4.5 costs $1 and $5 [3]. On n8n, one execution means a single run of your entire workflow regardless of how many steps it contains, with the Starter plan at €20 a month for 2,500 executions and Pro at €50 for 10,000, billed annually [7]. Zapier counts tasks instead, gives 100 a month on the free plan and starts Professional at $19.99, and pools those tasks across Zap workflows, AI steps, code, MCP and the SDK [8]. That last detail is the one people get wrong: the agent-shaped usage draws from the same allowance as the boring automations you set up two years ago.

The failure mode that follows is not a rogue purchase. It is a loop. An agent that retries a failing step is a fixed cost per attempt multiplied by however many hours pass before you look at a dashboard. Per-transaction limits do nothing about this, because every individual attempt is small and legitimate. Interval limits and session expiry are what catch it, which is the practical reason those two fields keep appearing next to each other in every specification above.

calculator
Monthly cap to set
$ / month

Runs per day × cost per run × 30 days × headroom, converted to dollars. Set the platform cap here rather than at what you expect to spend, so normal months pass and a stuck loop does not. Computed in the page; nothing is sent anywhere.

What no platform will decide on your behalf

A cap does not know whether the purchase was correct. An agent that spends its entire session budget on the wrong API has satisfied every control in this guide. The deterministic check confirms the amount, not the judgement, and this is the gap that stays yours no matter how much infrastructure arrives.

A cap also does not tell you whether the spend earned anything. Nothing in your billing console distinguishes 2,000 useful executions from 2,000 retries of the same broken step, and the invoice looks identical either way. That is a review you have to run, and running it monthly is enough.

Finally, nothing adds up your totals. Anthropic caps Anthropic [2]. Your automation platform caps its own plan [7] [8]. A payment session caps one agent interaction [1]. Four sensible individual limits can still combine into a number that would make you wince, and no vendor is incentivised to show you that number. Write the four caps on one line somewhere and total them yourself, because that total is your real monthly exposure.

checklist
Quarterly review of your agent's spending controls
0 of 8 · saved in this browser only

What still goes wrong

A hard ceiling is an outage. Anthropic’s enforced cap pauses API usage until 00:00 UTC on the first day of the following month unless you request an increase [2], which is the right behaviour for a runaway loop and the wrong one on the afternoon a client deliverable is due. If a cap is the only thing standing between you and a large bill, it will eventually also be the thing standing between you and a shipped piece of work. Set an alert well below it so the cap is a backstop rather than a notification method.

The accountability questions are open, and the specifications say so themselves. One of the three questions AP2 sets out to address is who is accountable when a fraudulent or incorrect transaction occurs [4]. Notice too what the x402 pitch does and does not cover. It advertises instant settlement, no account setup, no personal information and zero protocol fees beyond network costs [5], and it describes no procedure anywhere for reversing a payment once it has gone. Cheap settlement and reversible settlement are different products, and this is the first one.

The last limit is the boring one. Every control here is a vendor default that a vendor can change, in a market where the products are months old and the pricing pages are rewritten regularly. The correct posture is not to configure this once and trust it. It is to keep the list of accounts short enough that a quarterly read-through is a genuinely small job, and to notice that as more of this moves into the platform layer, the part left over is judgement, which was always the part you could not delegate anyway.

sources
  1. 01AWS — Amazon Bedrock AgentCore Payments is now generally availableaws.amazon.com
  2. 02Anthropic — Rate limits and usage tiersplatform.claude.com
  3. 03Anthropic — Model pricingplatform.claude.com
  4. 04Google Cloud — Announcing the Agent Payments Protocol (AP2)cloud.google.com
  5. 05x402 — An open standard for internet-native paymentsx402.org
  6. 06Agentic Commerce Protocol — Overviewagenticcommerce.dev
  7. 07n8n — Pricingn8n.io
  8. 08Zapier — Pricingzapier.com
next guide
Automation goes for the boring task first
9 min · verified 2026-09-04
related guides