Seven layers between an AI and your ad budget.
An autonomous PPC bidder without circuit breakers is a runaway training set with a Stripe key. Here is the safety architecture we built before we let Mirox bid live, and the eighth gate we added when sellers started losing inventory.
The dirty secret of autonomous PPC software is that most of the engineering is not the bidding. The bidding is the interesting part — the Bayesian estimates, the agent coordination, the semantic similarity. But the interesting part is also the small part. The rest of the codebase is what stands between the interesting part and the seller's credit card statement.
We call that part Shield. It is the second of Mirox's four pillars and the one no marketing site can ever do justice. The work is in the gates that never fire, not the ones that do.
This post is the seven gates that ship today, plus Sentinel — the inventory-aware throttle that became the eighth gate after the third week of internal testing on real accounts.
What "safety" means in PPC software
The category uses the word loosely. "Safe bidding" usually means a checkbox in the campaign settings labeled do not exceed daily budget and a tooltip claiming the algorithm is conservative. That is not safety in any sense that survives contact with a real account.
Safety in autonomous PPC means three concrete things:
- Bounded blast radius. Any single decision, no matter how badly the model is misbehaving, cannot move more than a bounded amount of spend before the system catches itself.
- Detectable misbehaviour. The system can tell, in near-real time, that something is wrong — before the seller sees it in next month's invoice.
- Recoverable state. When something does go wrong, the system can pause, the seller can revert, and the original configuration is restored without a support ticket.
Each of the seven layers below answers one of those three.
The seven layers, as they exist today
Layer 1 — Kill switch
A single button in the dashboard. Pressed, it suspends every autonomous bid Mirox is making across every account / marketplace / campaign that belongs to the tenant. The action takes effect in under sixty seconds. There is no confirmation modal, no two-factor pause, no acknowledgement screen. The kill switch is fail-safe by intent — false positives are cheap, false negatives are not.
It also works per marketplace, so one marketplace can be stopped while the others keep running. Single products can be paused on their own from the dashboard.
Layer 2 — Daily budget per product
Every product Mirox runs live gets a daily budget the seller sets. Mirox splits it across the four campaigns it builds for that product, and the parts always add up to the seller's number. Those budgets live on Amazon, so Amazon enforces them in real time, with its normal campaign budget rules: a busy day can run slightly over, and quieter days balance it out across the month. The seller's own campaigns are never touched. A budget update that fails to reach Amazon is logged as an error, never ignored.
Layer 3 — Spend-spike breaker
Each keyword has a spend baseline. If a keyword spends more than four times its baseline with zero conversions, the breaker trips and that keyword stops bidding. On a brand-new keyword with no baseline yet, a fixed spend with zero conversions trips it instead.
A tripped keyword stays off for a cooldown — two hours by default — and then gets one test bid. If the test converts, normal bidding resumes; if not, the cooldown starts again. Every trip is logged with the numbers that caused it, and the seller gets a notification.
- 1Spend spike4×Spend above its baseline, zero conversions.
- 2Breaker tripsThat keyword stops bidding.
- 3Cooldown2 hoursThe keyword stays off.
- 4One test bidConverts: bidding resumes. No: cooldown again.
Layer 4 — SP-API fault gate
The Amazon Selling Partner API is not always healthy. Outages are common; partial degradation is more common. The gate watches the error rate on outbound calls. If the rolling error rate climbs above ten percent over five minutes, the system pauses bidding for five minutes and switches to read-only telemetry.
The reason this matters: bidding into a partially-degraded API is the single most common path to a stale-data decision. The system protects against the stale-data condition explicitly, in the next layer — but pausing first is cheaper than the recovery.
Layer 5 — Optimistic locking + stale-feed cap
Every campaign's state is versioned. Every bid carries a version assertion. If the version asserted at decision time does not match the current state, the bid is rejected by the system before the API call goes out. This is the gate that prevents the "two parallel proposers acting on the same campaign" race condition.
The same versioning gives us the stale-feed cap: if the SP-API feed for inventory or for ASIN performance is older than one hour, the supply multiplier (see Sentinel below) is capped at 0.5 instead of bidding on stale assumptions. We would rather under-bid by half than over-bid into yesterday's reality.
Layer 6 — Small steps and a jump guard
A bid can only move a limited step per cycle, so the system cannot swing a keyword from cheap to expensive in one go. On top of that, the executor checks every write against the bid Amazon currently holds: a jump of more than three times is cut back to two times before it is sent. The seller's max bid for the product is a ceiling the system never crosses.
Together these stop the system from "doubling down" out of a bad day — and from the opposite panic, slashing bids so far that the campaign drops out of the auction.
Layer 7 — Marketplace gate
Every marketplace has its own thresholds. Japan's spend anomaly is wider because Japanese seasonality is more volatile. Brazil's is tighter because the conversion variance is lower. Currency conversion gates apply on every cross-marketplace decision. Rate limits are tracked per marketplace, not globally.
The marketplace gate is the one that makes "EU-native" a real claim — the system has different defaults for DE, FR, IT, ES, UK, US, and JP, not the same defaults with a language pack. The full per-marketplace configuration is on the EU-native pillar post.
Sentinel — the eighth gate
Sentinel was not in the original seven. It was added as a supporting pillar under Safety in 2026 Q1 after the third week of internal testing on a real account revealed something the seven layers above did not catch.
The seller had four ASINs running. One went into a low-stock state during a marketing-driven traffic spike. Bidding stayed strong — the ROAS was healthy, the spend was below the anomaly threshold, no gate tripped — and the campaign exhausted the remaining stock in eleven hours. The seller paid for the clicks; the product had nothing to ship.
Trellis surveyed 240 sellers on this. The average cost of an avoidable stockout is €18,000 in lost revenue, PPC recovery, and ranking damage. The seven gates above do not see that cost, because none of it crosses an advertising threshold.
Sentinel watches days-of-cover from the SP-API inventory feed. On every bid, Tactician applies a supply multiplier — a sigmoid function of days-of-cover — between 0 and 1. The multiplier rides the bid down as cover thins and restores as inbound shipments land. Below a configurable rationing threshold, the bid floors at a fraction of the unconstrained value rather than going to zero (so the campaign retains ranking) and the system emits a rationing notification. If the SP-API feed goes stale, the multiplier caps at 0.5 by default.
Sentinel is the only layer in the architecture that is not adversarial. The other seven gates exist to protect against the AI's own potential misbehaviour. Sentinel exists to protect against a physical constraint the AI cannot see directly. It is the layer that turned safety from "the AI does not lose your money" into "the AI does not lose your money or your inventory."
What happens when a gate does trip
A trip is not a silent event. The trace for every bid attempted while a gate is in the trip state carries the gate identifier and the threshold that was in force. The seller receives an incident notification, dashboard light, and an email summarising the trip.
The recovery from a trip is documented and small. Most trips clear themselves on the next evaluation cycle. The minority that do not clear get a written incident protocol — drafted by the founder, reviewed by the seller, and resolved before the campaign is unpaused. During the Founding Beta Program the response-time commitment on a trip was two hours during business hours and twelve hours outside; the current per-tier support commitments are on the support page.
The reason for the long-form treatment of every trip: a tripped gate is a piece of operational data, not a customer-support ticket. We document it the same way an aircraft maintenance log documents an avionics fault. Sellers who have lived inside Pacvue or Perpetua for a year often comment that the incident protocol is the first time they have seen a vendor talk about its own failure modes in writing.
What "seven layers" does not mean
It does not mean Mirox cannot lose your money. No autonomous bidder can promise that; the ones that try are lying. The seven layers mean that unbounded loss is structurally prevented, and that bounded loss is detectable, recoverable, and documented.
It also does not mean the system is more conservative than the alternatives. The gates are calibrated to stay out of the way during normal operation. The trip rate on a healthy account averages well under one trip per week. The instinct that more safety means a less aggressive bidder is wrong here — the gates are silent when nothing is wrong.
Where this pillar leads
Safety is the pillar that buyers ask about second. They ask about transparency first ("how do I know what the AI is doing") and safety second ("what happens when it gets it wrong"). The answers are paired by design — the trace tells you what happened, the gates bound what can happen.
The next two pillars — intelligence and aligned pricing — are about the part of the system that does work when the gates are not firing. Read the intelligence post next, or read about why we will never charge a percentage of your ad spend.