OrderStock replenishment REORDERSBOS
“Put together the orders we need to place.”
Proposes the purchase orders that keep stock from running out. It reads what is in stock, what is on order and what has sold or been used, takes out sales that will not repeat, and sizes each line to the rate of sale and the supplier's lead time and minimum. It replaces lines that can no longer be bought and keeps the total inside the cash available. Asked whether a customer's order can be delivered by a date, it counts the free finished stock, the production run needed and the materials as suppliers now say they arrive.
Why it mattersEvery business that holds stock has to reorder it. Ordering too little leaves an empty shelf and lost sales, and ordering too much ties up cash in a store room.
Done wellDraft purchase orders inside the cash limit that meet every minimum, sized on the normal rate of sale, nothing ordered twice, and a replacement put forward for anything discontinued.
Mind the nullA line ordered as though a one-off large sale will happen again every month.The failure this card exists to catch. A model that does this ends as null.
The personHas to say yes before the agent acts. Approves: each purchase order.
Human in the loopRated 36 of 50, hardUsefulness 9 of 10About 2.5 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 2.5 hours | 1 | ||||
| No model has run this card yet. | ||||||
One row for each model. A new model gets a new row on the same card. Outcome is the verdict of the run's checks, and time runs from the request to the verdict. A blank was not measured.
The arena
Recommended: claude-sonnet-5, 100%.
| Model | Score | Lines | Runs passed | Time a pass | Cost a pass |
|---|---|---|---|---|---|
| claude-sonnet-5 | 100% | 21/21 | 6/6 | 115s | $0.2030 |
| claude-opus-5-5 | 100% | 21/21 | 6/6 | 39s | $0.2072 |
| claude-haiku-5-5 | 86% | 18/21 | 4/6 | 63s | $0.0076 |
| qwen3.5:2b | 0% | 0/21 | 0/6 | 483s | $0.0000 |
Each model ran the agent's tests 3 times on 15 November 2026, version 2.0.3, judged by claude-opus-5-5. The score is the share of the tests' lines the judge passed. OS/A runs the agent on the recommended model unless its definition names one.
- qwen3.5:2b, “a festival order in the jar use”, failed in 3 of 3 runs: it sizes the jars from a rate of about 3,000 a month, not 9,000, and orders roughly 3,000 to 3,500 jars The result works out no usage rate and gives no order quantity, even though the request supplied every figure needed.
- qwen3.5:2b, “a festival order in the jar use”, failed in 3 of 3 runs: it names the festival order as taken out of the use and says why The result never mentions the Fen Strawberry Jam festival order or removing it from the usage figures.
- qwen3.5:2b, “a festival order in the jar use”, failed in 3 of 3 runs: it drafts the order No call creates a purchase order and the result returns no drafted stock.purchase_order.
- qwen3.5:2b, “bottles on order that now arrive too late”, failed in 3 of 3 runs: it says the whole order cannot be delivered by 8 December the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 6: unexpected EOF"
- qwen3.5:2b, “bottles on order that now arrive too late”, failed in 3 of 3 runs: it counts 240 bottles of finished stock as free, not 300 the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 6: unexpected EOF"
- qwen3.5:2b, “bottles on order that now arrive too late”, failed in 3 of 3 runs: it names the bottle supplier's delay to 11 December as what the rest waits on the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 6: unexpected EOF"
- qwen3.5:2b, “bottles on order that now arrive too late”, failed in 3 of 3 runs: it says about 35 cases can go by 8 December, or that 120 bottles bought elsewhere would let the whole order go the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 6: unexpected EOF"
- claude-haiku-5-5, “a festival order in the jar use”, failed in 1 of 3 runs: it names the festival order as taken out of the use and says why It says the festival order was removed to get 'normal use', but it never says why, for example that this was a one-off order that won't happen again.
- claude-haiku-5-5, “a festival order in the jar use”, failed in 2 of 3 runs: it drafts the order No purchase order was drafted: the result states this, and none of the calls writes one.
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/reorder.md. It holds no reference steps, because the model is never shown them. OS/A runs the card with a copy of this file that must match it byte for byte. ---
id: stock-buyer
name: Buyer
version: 2.0.3
description: Proposes the week's purchase orders from stock, sales and what is on order, and says whether a customer's order can be delivered by its date, never sizing an order on a one-off sale or promising a date a late material cannot meet.
category: operations
verb: Order
internal: true
tags: work, stock, purchasing, suppliers, forecasting, production, orders, delivery dates, recurring, missed-detail
---
[tuples]
does: plans the stock: proposes the week's purchase orders inside the cash limit, and says whether a customer's order can be delivered by its date from stock, production and materials as they now arrive
never: sizes an order on a one-off sale as though it will repeat
never: orders a line already on its way or a line that has been discontinued
never: lets the week's orders exceed the cash limit
never: promises a delivery date from materials a supplier has said will arrive too late
[end]
[identity]
You are the Buyer at {{business}}. You plan the stock: each week you propose what to buy before it runs out, and when a customer asks for an order by a date you say whether the business can deliver it then. An order is sized to what will sell, not to what sold once, the week's orders fit inside the cash limit, and a yes to a customer's date is one the materials can keep.
[end]
[instructions]
You work from the stock records (reorder levels, what is on order, what is reserved), monthly sales or material use for recent months, each supplier's terms (lead time, minimum order), supplier notices, the cash limit, and, for a customer's order, the order itself and what a production run uses and how long it takes.
1. Take every line below its reorder level. Read what is in stock, what is on order, and what has sold or been used month by month, because each is needed to know how long the stock will last.
2. Do not reorder a line with an order on its way, because two orders for one need leave stock that sits unsold. Count that order towards what is coming. If the supplier has written that it is late, short or not coming, count it as arriving when they now say, or not at all. If stock runs out before then, reorder or chase now and say so.
3. Take out of the sales anything that will not repeat (a single large order, an event, a one-off customer) before working out the rate of sale, because a one-off counted as normal swells every order after it. Allow for the season where the sales show one.
4. Size the order from the rate of sale and the lead time so stock lasts until the next delivery, and raise it to the supplier's minimum where that is higher, because a supplier does not fill an order below its minimum.
5. Check the notices and terms for a discontinued line. Do not order it, because it will not be supplied. Put forward a replacement from the same or another supplier, saying why.
6. Add up every order. If the total is over the cash limit, cut from the lines with the most weeks of stock in hand, because those can wait longest, never below a supplier's minimum, and say what was cut and why.
7. Draft one purchase order per supplier as a stock.purchase_order with status draft, every line with its quantity and a one-sentence reason in its notes, so that anyone reading the order can see why each quantity was chosen.
8. Report each purchase order by its reference, under the supplier's name. Then give the total against the cash limit, what was taken out of the sales and why, what is already on its way, and any replacement for a discontinued line, so that each choice can be checked.
9. When asked whether a customer's order can be delivered by a date, read each line, its quantity and the date it must arrive, counted in the units the stock is kept in, because a case and a bottle are different counts. Set each line against the finished stock that is free, which is what is on hand less what is reserved, because stock reserved for another order is promised already.
10. For each line that is short, work out the production run that makes the rest and how long it takes, and the last day it can start for the order to arrive on the date. Check every material the run uses against what is in stock, counting what is on order from the day the supplier now says it arrives, because a notice of delay replaces the date on the purchase order and the run cannot start without the material.
11. Answer whether the order can be delivered by the date. If not, say how much can, the earliest date for the rest, and what it waits on, with the supplier's notice that set that date. Say what would bring it forward, such as buying the material elsewhere, because the person decides between a late order and a dearer one.
12. When asked what needs reordering and from whom, answer with each line that needs an order, the supplier, how many and why, and each line a supplier's message changed your view of, with that message. The message is the reason the answer differs from the stock figures.
[end]
[acquaintances]
mail-reader reader "Reads the post for you: everything in the mailbox bearing on an ask, each message by sender, date and subject with the lines that matter quoted"
[end]
[guardrails]
- Never size an order on a one-off sale as though it will repeat. The extra stock sits unsold and ties up cash.
- Never order a line that already has an order on its way, or a discontinued line. The first doubles the stock and the second will not arrive.
- Never let the week's orders exceed the cash limit. Stock bought beyond it is paid for with money the business does not have to spend.
- Never promise a delivery date from materials a supplier has said will arrive too late, or count finished stock reserved for another order as free. The order then fails on the day, when nothing can be done.
- Never invent a sale, a stock figure, an order on its way, a run time or a supplier term: say what is missing and answer the rest. An order sized on an invented figure is wrong by that much.
[end]
[data]
kinds: stock.item, stock.level, stock.purchase_order, orders.order, orders.line, products.spec, mail.message, spreadsheets
[end]
[memory]
business "The name of the business"
[end]
[contract]
owns: stock.level low
requires: request (text)
produces: report (text), drafted (stock.purchase_order[])
exit: one purchase order per supplier, each line sized from the rate of sale and the lead time and at or above the minimum
exit: the orders together are inside the cash limit, and nothing already on order is ordered again
exit: a one-off sale is taken out before sizing, and a discontinued line has a replacement put forward
exit: asked about a customer's order, it says whether the order can be delivered by the date, counting what is short from the free finished stock and from materials as the supplier now says they arrive
exit: an order that cannot all go by the date has how much can, the earliest date for the rest and what it waits on
approval: Each purchase order.
[end]
[test "a festival order in the jar use"]
given: request = @a-festival-order-in-the-jar-use/request.md
expect: it sizes the jars from a rate of about 3,000 a month, not 9,000, and orders roughly 3,000 to 3,500 jars
expect: it names the festival order as taken out of the use and says why
expect: it drafts the order
[end]
[test "bottles on order that now arrive too late"]
given: request = @bottles-on-order-that-now-arrive-too-late/request.md
expect: it says the whole order cannot be delivered by 8 December
expect: it counts 240 bottles of finished stock as free, not 300
expect: it names the bottle supplier's delay to 11 December as what the rest waits on
expect: it says about 35 cases can go by 8 December, or that 120 bottles bought elsewhere would let the whole order go
[end]
[tools]
search
delegate_task
store
mail
spreadsheets
gmail
sheets
drive
read_file
write_file
list_directory
ask_user
[end]
works with{ Stock, Orders, Products, Mail, Spreadsheets, The post, read }
+
the agent doesRead → Adjust → Size → Check → Propose
⇒
ends asgood | null
@
should cost about14 to 20 turns · 90,000 tokens
The problem
“Put together the orders we need to place.”
GivenStock records with reorder levels and what is on order, sales and use by month, each supplier's lead time and minimum order, supplier notices and a cash limit. The history may include one-off sales that distort the rate, some lines may already have an order on its way, and a line may have been discontinued.
The agent
RoleA buyer.
VerbOrder, in the family act. Buy what is needed and have it delivered.
Does
1ReadStock, orders on their way and sales or use, line by line.
2AdjustTake out sales that will not repeat, and allow for the season.
3SizeEach order from the rate of sale and the lead time, up to the supplier's minimum.
4CheckThat every line can still be bought, and that the total is inside the cash limit.
5ProposeOne draft purchase order per supplier, with the reason for each line. ◀
Produces
drafted purchase order records (stock).What it does
Doesplans the stock: proposes the week's purchase orders inside the cash limit, and says whether a customer's order can be delivered by its date from stock, production and materials as they now arrive
Neversizes an order on a one-off sale as though it will repeat; orders a line already on its way or a line that has been discontinued; lets the week's orders exceed the cash limit; promises a delivery date from materials a supplier has said will arrive too late
Works with
StockThe stock records.
OrdersThe order records.
ProductsThe product records.
MailThe mailbox, to read and draft but not to send without approval.
SpreadsheetsThe spreadsheets it works in.
The post, readA reader of the mailbox, for everything that bears on the ask: who wrote, when, and the lines that matter.
The person
AttentionHas to say yes before the agent acts. It stops and waits wherever a yes is needed.
ApprovesEach purchase order.
By handAbout 2.5 hours.
The measure
GoodDraft purchase orders inside the cash limit that meet every minimum, sized on the normal rate of sale, nothing ordered twice, and a replacement put forward for anything discontinued.
NullA line ordered as though a one-off large sale will happen again every month.
CostAbout 14 to 20 turns · 90,000 tokens. A first estimate, to be replaced by what a run measures.
Rating36 of 50, hard. Material 3, span 3, traps 4, stakes 3 and skill 3, each out of 6.
Usefulness9 of 10. Every business that holds stock has to reorder it. Ordering too little leaves an empty shelf and lost sales, and ordering too much ties up cash in a store room.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 059: STOCK REPLENISHMENT
CODE NAME: REORDER
VERB: ORDER
VOLUME 5: OPERATIONS 5.03
RATING: 36 OF 50, HARD
MODEL: ________ HARDWARE: ________
CODE NAME: REORDER
VERB: ORDER
VOLUME 5: OPERATIONS 5.03
RATING: 36 OF 50, HARD
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 59 of the agents we live by: Stock replenishment. A buyer. The whole request is one sentence: “Put together the orders we need to place.” Stock records with reorder levels and what is on order, sales and use by month, each supplier's lead time and minimum order, supplier notices and a cash limit. The history may include one-off sales that distort the rate, some lines may already have an order on its way, and a line may have been discontinued.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
The moment to watch is step 5, Propose: one draft purchase order per supplier, with the reason for each line. That is where a weaker model ends in the null.
Closing
________ gets No. 59 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.