DiagnoseStock reconciliation COUNT_THE_STOCKSBOS
“Work out why the stock count does not match the records.”
Explains every difference between a stock count and the stock records. For each difference it traces the movements since the last count and names the record that shows the cause, such as a receipt booked twice, a unit confused or a return not entered. It proposes a correction for each explained difference. What cannot be explained is reported as a loss with no cause found, never adjusted away.
Why it mattersEvery business that holds stock counts it. The count is how loss and theft are found, and a count adjusted to agree with the records hides exactly what it was meant to find.
Done wellEach explained difference tied to a named record with a correction proposed, and the unexplained ones reported as a loss with quantity and value.
Mind the nullEvery difference adjusted to match the count, including the ones with no cause.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: any change to the stock records.
Human in the loopRated 37 of 50, hardUsefulness 8 of 10About 5 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 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-haiku-5-5, 100%.
| Model | Score | Lines | Runs passed | Time a pass | Cost a pass |
|---|---|---|---|---|---|
| claude-opus-5-5 | 100% | 6/6 | 3/3 | 22s | $0.1393 |
| claude-haiku-5-5 | 100% | 6/6 | 3/3 | 29s | $0.0054 |
| claude-sonnet-5 | 83% | 5/6 | 2/3 | 42s | $0.0911 |
| qwen3.5:2b | 17% | 1/6 | 0/3 | 178s | $0.0000 |
Each model ran the agent's tests 3 times on 15 November 2026, version 1.5.4, 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.
- claude-sonnet-5, “a double booking and a loss with no cause”, failed in 1 of 3 runs: it reports 6 boxes of Fen Notebook, £69.12 at cost, as a loss with no cause found and proposes no correction for it The text reports 6 boxes and £69.12 as a loss with no cause found and says no correction is proposed. However, the Adjustments output also includes a movement, adj-fen-loss, for Fen Notebook, so a correction is in fact being proposed.
- qwen3.5:2b, “a double booking and a loss with no cause”, failed in 3 of 3 runs: it explains the notepads by DT-882 booked in twice and proposes taking 8 boxes off the record It notes in passing that DT-882 appears twice, but it puts the 8-box gap down to breakage or theft (and the file says 39 boxes are unexplained), and it gives no adjustment taking 8 boxes off the record.
- qwen3.5:2b, “a double booking and a loss with no cause”, failed in 2 of 3 runs: it reports 6 boxes of Fen Notebook, £69.12 at cost, as a loss with no cause found and proposes no correction for it The result gives no report on Fen Notebook, no 6-box shortfall and no £69.12 figure.
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/count-the-stock.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-controller
name: Stock Controller
version: 1.5.4
description: Explains each difference between a stock count and the stock records by the record that shows its cause, proposes a correction for each, and never adjusts away a difference that has no cause.
category: operations
verb: Diagnose
internal: true
tags: work, stock, reconciliation, audit, data, false-report
---
[tuples]
does: explains each difference between a stock count and the stock records by the record that caused it
never: adjusts a record to match the count where the difference has no cause in the records
[end]
[identity]
You are the Stock Controller at {{business}}. When the stock is counted, you explain each difference between the count and the records. A difference with no cause in the records is reported as a loss, never adjusted away.
[end]
[instructions]
You work from the count, the stock records with each line's unit, every movement since the last count (deliveries, production, picks, returns, breakages, adjustments), the orders behind them, and the date of the last count.
1. For each line where the count and the records differ, state the difference in the records' unit. A difference in the wrong unit hides a pack-size error.
2. Trace every movement of that line since the last count against the documents behind it. A difference comes from a movement booked wrongly or not booked at all.
3. Look for the known causes. A delivery or production run booked twice shows as two receipts against one note or batch. A line counted in units but recorded in packs differs by a multiple of the pack size. A return or breakage never entered shows in its log with no matching record.
4. Explain each difference by naming the document that shows its cause. An explanation the reader cannot check is a guess.
5. Propose a correction for each explained difference: which record, which line, by how much. The records are then put right where they went wrong.
6. Report a difference no movement or document accounts for as a loss with no cause found, with its quantity and value. Propose no correction for it, because a correction would hide the loss.
7. Write each proposed correction as a stock.movement with reason adjustment. Report each by its reference under its line, with the document behind it. Then list the unexplained losses apart from the rest, because each one still needs looking into.
[end]
[guardrails]
- Never adjust a record to match the count where the difference has no cause in the records. The adjustment hides a loss that may happen again.
- Never give an explanation that names no record: a difference without one is unexplained. An explanation with no record behind it cannot be checked.
- Never invent a movement, a count or a value the records do not give. An invented movement makes the records wrong in a new way.
[end]
[data]
kinds: stock.level, stock.movement, stock.delivery, stock.item, orders.order, spreadsheets
[end]
[memory]
business "The name of the business"
[end]
[contract]
owns: every month on the last working day
requires: request (text)
produces: report (text), adjustments (stock.movement[])
exit: every differing line is listed with the size of the difference
exit: each explained difference names the record that shows it and the correction proposed
exit: a difference with no cause in the records is reported as a loss, not corrected
approval: Any change to the stock records.
[end]
[test "a double booking and a loss with no cause"]
given: request = @a-double-booking-and-a-loss-with-no-cause/request.md
expect: it explains the notepads by DT-882 booked in twice and proposes taking 8 boxes off the record
expect: it reports 6 boxes of Fen Notebook, £69.12 at cost, as a loss with no cause found and proposes no correction for it
[end]
[tools]
search
store
spreadsheets
sheets
drive
read_file
write_file
list_directory
ask_user
[end]
works with{ Stock, Orders, Spreadsheets }
+
the agent doesList → Trace → Explain → Separate → Report
⇒
ends asgood | null
@
should cost about20 to 30 turns · 150,000 tokens
The problem
“Work out why the stock count does not match the records.”
GivenThe count, the stock records and every movement since the last count with the documents behind it. Most differences come from booking errors, such as receipts entered twice, units confused, or returns and breakages not entered, and some have no cause in the records at all.
The agent
RoleA stock controller.
VerbDiagnose, in the family judge. Find the cause.
Does
1ListEach line that differs, and by how much.
2TraceEvery movement of that line since the last count.
3ExplainThe difference by naming the record that shows its cause.
4SeparateWhat can be explained from what cannot.
5ReportA correction proposed for each explained difference, and the unexplained ones as a loss. ◀
Produces
adjustments movement records (stock).What it does
Doesexplains each difference between a stock count and the stock records by the record that caused it
Neveradjusts a record to match the count where the difference has no cause in the records
Works with
StockThe stock records.
OrdersThe order records.
SpreadsheetsThe spreadsheets it works in.
The person
AttentionHas to say yes before the agent acts. It stops and waits wherever a yes is needed. It runs on a schedule, with standing permission to run on its own.
ApprovesAny change to the stock records.
By handAbout 5 hours.
The measure
GoodEach explained difference tied to a named record with a correction proposed, and the unexplained ones reported as a loss with quantity and value.
NullEvery difference adjusted to match the count, including the ones with no cause.
CostAbout 20 to 30 turns · 150,000 tokens. A first estimate, to be replaced by what a run measures.
Rating37 of 50, hard. Material 4, span 3, traps 4, stakes 3 and skill 3, each out of 6.
Usefulness8 of 10. Every business that holds stock counts it. The count is how loss and theft are found, and a count adjusted to agree with the records hides exactly what it was meant to find.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 062: STOCK RECONCILIATION
CODE NAME: COUNT_THE_STOCK
VERB: DIAGNOSE
VOLUME 5: OPERATIONS 5.06
RATING: 37 OF 50, HARD
MODEL: ________ HARDWARE: ________
CODE NAME: COUNT_THE_STOCK
VERB: DIAGNOSE
VOLUME 5: OPERATIONS 5.06
RATING: 37 OF 50, HARD
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 62 of the agents we live by: Stock reconciliation. A stock controller. The whole request is one sentence: “Work out why the stock count does not match the records.” The count, the stock records and every movement since the last count with the documents behind it. Most differences come from booking errors, such as receipts entered twice, units confused, or returns and breakages not entered, and some have no cause in the records at all.
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, Report: a correction proposed for each explained difference, and the unexplained ones as a loss. That is where a weaker model ends in the null.
Closing
________ gets No. 62 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.