Two software companies described the same job in the past six weeks, using AI to reorder store stock, and they drew the line between machine and person in different places.
On September 14, Amazon Web Services (AWS), Amazon’s cloud computing business, published a technical walkthrough of a loop that spots a surge in demand, picks a supplier and “places the order unattended.” On October 15, Lightspeed Commerce, a company that makes store and point-of-sale software for retail, golf and hospitality businesses, announced a retail agent that can prepare purchase orders but, in its words, “waits for the retailer’s explicit approval to move forward” before it acts.
Both are reasonable designs. Which one fits depends on what the order can cost you if it’s wrong, and that is a decision you should make on purpose, for each kind of item, before an agent places a single order.
Why the order is the risky part
A replenishment agent pulls three levers at once: how much to buy, from whom, and when. Get it wrong in either direction and it costs money.
inFlow Inventory, a company that sells inventory software, surveyed 400 warehouse, inventory and operations professionals across 33 industries in March 2026. It is a vendor survey, the answers are self-reported, and retail is only part of the sample. Even so, two of its findings show both sides of the problem:
Running out is common. 44% of respondents said they run out of stock at least once a month.
Holding too much is costly. 54% reported holding costs above 10% of inventory value.
The case for letting an agent act is real. AWS makes it in its walkthrough: a forecast has a short shelf life, and by the time a planner has worked down tens of thousands of items, “the fastest movers have stocked out.” The case for keeping a person involved is just as real. An agent that orders too much can tie up cash for months, and whether you can cancel depends on your supplier’s terms, so check yours.
Four ways an ordering agent goes wrong
One bad number becomes a purchase. A stock count that shows zero when shelves are full, or a promotion that never ended, turns into an order.
The same need gets ordered twice. AWS notes that a recurring schedule adds a fresh batch of orders each time it runs, which is why it tells readers to turn the schedule off after testing. In your own setup, the agent has to count orders already placed but not yet delivered.
Demo defaults get treated as policy. AWS says its sample ordering endpoint accepts unauthenticated writes, and that anything beyond a supervised demo should require an API key. That is the right warning, and it is also the kind of default that slips into production when nobody is watching.
Nobody sees the pattern. Each order looks small. A category that drifts 5% high every week only shows up in the quarter’s inventory report.
What a replenishment agent actually decides
Before you set limits, list the decisions. A typical agent:
Forecasts demand for each item and store from sales history, promotions, events and weather
Compares the forecast with stock on hand and orders already on the way
Works out how much to order
Chooses a supplier based on price and what the supplier can ship
Places the order, or hands it to a person
Every one of those is a decision with a cost. Each needs an owner, a limit and a record.
Five controls
1. Put the limits in the ordering system, not in the instructions
An instruction in an agent’s prompt is a request. A rule in the system that sends the purchase order is a control. OWASP, a nonprofit foundation that publishes widely used security guidance, says in its AI Agent Security Cheat Sheet to “enforce authorization in the execution component, outside the agent’s context.” It also lists “enforce token, cost, retry, and tool-chain limits” among its recommended practices.
Template: an ordering limits record. Write it for each category, and make sure each line is enforced in the purchasing or supplier system. Every number below is a placeholder. Set your own.
# Illustrative limits for one category. All numbers are placeholders.
may_order_from: approved suppliers only
may_order_items: approved item list only
per_line_max_units: 4 weeks of forecast demand
per_order_max_value: $5,000
per_day_max_value: $50,000 across all orders
per_day_max_orders: 200
needs_approval: new supplier, new item, any order during a promotion,
any change to price, terms or delivery address
if_a_limit_is_hit: stop, alert the category owner, place nothing
Set a daily total, not just a per-order limit. Two hundred small orders can add up to a large commitment.
Test it. Have someone ask the agent to order ten times the usual amount. The system, not the agent, should refuse.
2. Sort items into lanes before go-live
The AWS walkthrough sorts by the decision. When a single supplier can cover the forecast, the order goes out on its own. When none can, the agent raises a ticket for a person. That is a sound pattern, and you can extend it.
Tool: a three-lane list for items.
Green (agent orders alone): steady, low-cost, fast-moving items with a long sales history, inside the limits record.
Yellow (agent recommends, a person approves): promotions, seasonal items, new items, big jumps in forecast, anything perishable, and any order near a limit.
Red (person only): new suppliers, price or terms changes, and anything the rules don’t cover.
Here is one trade-off to settle yourself. The AWS demo treats a surge as something the agent can order against when a supplier can cover it. A surge is also where a forecast is most likely to be wrong and most expensive to act on. We would start by putting surge orders in the yellow lane, then move them to green only after the record shows the agent handles them well. Your tolerance may differ, and that’s fine as long as you write it down.
Start with a small green lane. If a planner has to approve 600 lines every morning, approval turns into clicking, and the control is gone. Fewer, better-chosen approvals protect you more than approving everything.
3. Make every approval specific to the order
Lightspeed says its agent “shows a preview of what action it will take” and records actions in an audit log. A preview only helps if the approval is tied to what was previewed. OWASP says the approval has to belong to the exact action, and that “changes to the target or parameters require new approval.” If a planner approves 100 units and the quantity changes to 400 afterward, that is a new decision.
Checklist: what a planner sees before approving.
The item, store, supplier, quantity and cost
Stock on hand, orders already on the way, and the forecast for the period
The reason the agent gave, in plain language, such as “local event” or “promotion starts Friday”
Which limit or lane rule applies
What changed since the last order for this item
If the planner sees only a yes or no button, they are approving the agent’s opinion, not the facts.
4. Check the inputs before the agent orders
The agent is only as good as the data it reads. Put these checks in front of it, as rules in the data pipeline or ordering system.
Checklist: pre-order checks.
Stock counts are recent, and a sudden drop to zero across many stores is flagged, not ordered against
Open orders are counted, so the same need isn’t ordered twice
Promotion and event calendars are current
Supplier lead times and availability are fresh
Any line more than a set multiple above its recent average goes to the yellow lane
The AWS walkthrough shows what a written threshold looks like: a surge there means a next-7-day average at least 1.5 times the prior-14-day average, with a floor on prior sales that keeps low-volume noise out. Whatever numbers you choose, write them down where an auditor can find them.
5. Log every order, review a sample and keep a stop switch
When a shelf is empty or a warehouse is full, “the AI decided” won’t satisfy a finance team or an auditor. You need a record.
Checklist: what each log entry should hold.
Item, store, supplier, quantity and cost
The forecast, stock and open orders the agent used
The rule or lane that allowed the order
Whether a person approved it, who, and when
Any override, with the reason
Review a sample every week. Pull 20 orders and check them against the limits record. Track forecast error by store and category, and agree in advance the point at which the team pauses the agent or rolls back the model. Overrides are useful feedback, because they show where planners keep disagreeing with the forecast.
Know how to stop it. The AWS walkthrough ends by telling readers to disable the schedule to stop further orders. Make sure you know where that switch is, who can use it, and how fast it takes effect.
Rehearse on a past season
Before the agent touches a live order, replay a past period and compare what it would have ordered with what you actually ordered and sold.
Composite example (fictional): A mid-size home-goods retailer replays last year’s holiday week. The replay shows the agent would have ordered one gift set three times, because its scheduled runs didn’t count orders already on the way. The team adds an open-orders check and reruns the replay. This time the duplicate orders don’t appear, and a spike driven by a one-day sale goes to a planner with the reason attached.
One replay found a problem that would have meant pallets of unsold stock, before a single supplier received an order.
How to start this month
Week 1: Pick one category. Pull last season’s orders, stockouts and overstock, which become your baseline.
Week 2: Write the limits record and the three-lane list. Name who owns each lane.
Week 3: Run the replay and fix any limit that exists only in instructions.
Week 4: Confirm the stop switch and the order log work. Then go live with a small green lane.
What to delegate, and what to keep
Routine reorders can go to the agent. Steady, low-cost items inside system limits are good candidates, and AWS makes the speed argument well. Accept this only when the ordering system enforces the limits.
Surges, promotions and new items stay with a person at first. These are the cases where a wrong order costs the most and the forecast is least reliable. Move them over only when the record supports it.
Supplier and terms changes stay with a person. They create commitments the agent can’t judge.
Demo defaults are not decisions. Check how any ordering connector is authenticated and who can write to it before you go live.
What you should be able to show an auditor: the limits record, the three-lane list with owners, a sample of order logs with the rule behind each, the weekly review notes, and the replay results.
A question to take to your vendor: “If your agent and our ordering limits disagree, which one wins, and where is that enforced?” If the answer is “in the prompt,” the limit isn’t really enforced anywhere.
These steps line up with the NIST AI Risk Management Framework, voluntary guidance from the US government’s National Institute of Standards and Technology that many organizations use to manage AI risk. Decision rights and lanes fall under its Govern function, input checks under Map, forecast accuracy tracking and the replay under Measure, and the order log, overrides and stop switch under Manage. That mapping is our reading, not NIST’s.
What we checked, and what is our view
Lightspeed’s capabilities are in an opt-in beta for select customers, and we have not tested them. The AWS walkthrough is a technical demonstration. Its sample results (six surging items, five routine orders and one exception ticket) come from sample data and, as the post says, are not a performance benchmark. The three lanes, the sample limits and the advice to start surges in the yellow lane are our recommendations, not claims from any source.
Try this today: List the three kinds of orders that cost you the most when they are wrong, such as bulk, seasonal or imported items. Then, for each one:
Find where the limit lives. Ask your vendor or IT team: “If the agent tried to order ten times the usual amount, what would stop it?” If the answer is “the instructions,” you don’t have a limit yet.
Move the limit into the system that sends the order, with a per-order cap and a daily total.
Name who gets the exceptions, and how quickly they must answer.
Test it by asking the agent to break the rule.
When you’re done, you should be able to say: “Our agent can order up to X per item and Y per day. Anything more goes to [name]. We check it every week.” If you can’t fill in X, Y and the name yet, those three blanks are the work.
Go deeper: AWS Machine Learning Blog, “Automate replenishment with MMF, Databricks Genie, and Amazon Quick” (September 14, 2026) is the main source for this article. The others are Lightspeed Commerce’s October 15, 2026 announcement, inFlow Inventory’s “State of Inventory Management 2026” survey, the OWASP AI Agent Security Cheat Sheet and the NIST AI Risk Management Framework.
R. R. Johnson writes The Accountable Agent for anyone who buys, governs or operates AI agents, drawing on years of Data and AI work, with a focus on practical controls that hold up under scrutiny.
Anyone can subscribe at no cost to get practical governance steps on the AI news that matters to your organization.


