Answer where the stock is when every branch system disagrees
A fictional four-branch lumber yard shows how to answer 'do we have it, and where' when each location's inventory system reports a different count.

A contractor at the counter needs forty sheets of drywall by seven tomorrow. The salesperson types the item into the screen in front of her, sees zero, and says no. The sheets were sitting on a rack at another branch twenty minutes away.
Summary: A fictional four-branch lumber yard lets you test an assistant that answers “do we have it, and where” from systems that disagree. The walk-through shows what every answer must carry, which readings to trust, and when a person has to make a phone call before anyone promises delivery.
The running example is fictional. Harlan Ridge Lumber has four branches: Millbrook, Dunmore Road, Eastgate and Pike Creek. Millbrook and Dunmore Road run an older point-of-sale system that updates counts when a sale rings up. Eastgate and Pike Creek run a newer system that counts on receiving and on cycle counts, so a sale shows up there later. The branches, the counts and the times below are illustrative.
Take one request. A framing contractor wants 40 sheets of 5/8 inch Type X drywall, 4 by 8, delivered before 7:00 tomorrow. Millbrook’s screen shows 0. Dunmore Road shows 62. Eastgate shows 18. Pike Creek shows 40, but its count was last updated nine days ago. Every number is correct for the system that printed it, and no two of them agree.
This is a good place to start because the question is narrow, a counter salesperson meets it all day, and a wrong answer costs a sale or a failed delivery. An assistant that only guesses the most likely number would make the zero at Millbrook worse, not better. Everything below is about what the assistant must say instead.
Treat every count as a reading with an age
A stock count is a statement about one shelf at one moment, made by one system. The number alone is not the fact. The fact is the number, the branch, the system and the time it was last touched.

Read the figure from left to right. Each branch system is a source with its own habits. The normalizer is a small step that maps each system’s item code to one shared product name and attaches the age of the reading. The answer box on the right is the only thing the salesperson sees.
Here are the four readings as the example sets them out. The table is illustrative, written for this post, not pulled from a real yard.

Reading the table. The count column is what the screen shows. The age column is what the screen leaves out. Dunmore Road’s 62 is two hours old and Pike Creek’s 40 is nine days old, so they carry very different weight, even though both look like plain integers.
The first rule follows. The assistant never reports a count without its branch, its system and its age. A bare “62” is how the zero at Millbrook turned into a lost sale in the first place.
Normalize the item before you compare anything
Counts only disagree usefully when they describe the same thing. Before the assistant compares branches, it has to prove that four item codes mean one product.
The near-miss in the example lives here. Dunmore Road’s system holds two entries that read almost alike: 5/8 inch Type X, 4 by 8, and 5/8 inch Type X, 4 by 12. A contractor who needs 8 foot sheets cannot use 12 foot sheets without cutting, and a 4 by 12 sheet may not fit a short truck. Matching on the description “5/8 Type X drywall” would merge them and report the 62 sheets as if they were all the right size.
Write the mapping as a small table of facts the assistant reads, not as a guess it makes each time. Expect the first mistakes in it early, so give it an owner now.
Product: 5/8 in Type X drywall, 4x8
Millbrook code: DW-58X-48
Dunmore Rd code: 10458X
Eastgate code: 0058-TX-4x8
Pike Creek code: 0058-TX-4x8
Not the same as: DW-58X-412 (4x12), 10458R (regular, not fire rated)
This block is the mapping file the assistant would load, shown as a written example. Anything not listed in the mapping is reported as “not matched” and sent to a person, never merged by resemblance. A person at the yard owns the mapping and updates it when a new product arrives.
The check that tells you the mapping works is a count of mismatches. Run twenty common products through it and note how many return “not matched”. That number is the size of your cleanup list, and it is not a measure of accuracy.
Rank the readings by freshness, then by how the system counts
Once the item is settled, the assistant has four readings to weigh. It needs a rule it can state in one sentence, because a salesperson will ask why it said what it said.

The tree asks two questions in order. Is the reading newer than the freshness window, which the example sets at four hours for fast-moving items? And does the system update on every sale, or only on receiving and counts? A fresh reading from a system that updates on sale is reported. A fresh reading from a slower system is also reported, but with a note that sales since the last count are not subtracted. Anything older than the window is stale. A reading is confirmed only when a person at that branch has checked the shelf since the reading was taken.
Apply it to the example. Dunmore Road’s 62 is two hours old from a system that updates on sale, so it is reported. Eastgate’s 18 comes from a slower system and is reported with the sales note. Pike Creek’s 40 is nine days old, so it is stale. Millbrook’s 0 is fresh and from a fast system, so it is reported, and it is right for Millbrook only.
The word “reported” matters. It means a system said so, which is weaker than “we have it”. You can hear the difference when a salesperson says “Dunmore Road shows 62” instead of “Dunmore Road has 62”. The assistant should use that distinction aloud, because the gap between a screen and a shelf is the whole problem.
Make every answer carry four things
The salesperson does not want a table of four branches. She wants a sentence she can say to a contractor without being wrong. That sentence still needs a fixed shape.

Answer each row on the card for the 40 sheets. Where: Dunmore Road is the best source. How many: 62 reported, which covers the order with 22 to spare. As of when: two hours ago, on a system that updates on sale. What to do next: call Dunmore Road’s yard desk to hold 40 sheets before promising the 7:00 delivery.
Written out, the assistant’s reply would look like this. This is the expected reply for the example, not output from a real run.
Do we have 5/8 in Type X 4x8, 40 sheets, by 7:00 tomorrow?
Best source: Dunmore Road, 62 reported as of 10:40 (2 hours ago).
Millbrook shows 0 (reported, 12:25). Eastgate shows 18 (reported,
updated 9:40; sales since then not subtracted).
Pike Creek shows 40 but that reading is 9 days old: stale.
Next step: call Dunmore Road yard desk to hold 40 sheets.
Do not promise delivery until the hold is confirmed.
Notice what the reply does not say. It does not say “yes, in stock”. It names the branch with the best reading, shows the disagreement instead of hiding it, and tells the salesperson what to do with a phone. The last line is a guardrail, written as an instruction because the model cannot make the call itself.
Send the claim to a person before a promise leaves the building
The assistant can read four systems in seconds. It cannot walk to a rack. The part of the process that touches the truck, the contractor and the schedule needs a human check, and the path to that check should be short.

Follow the arrows. The salesperson asks, the assistant answers with the best source and its age, and the salesperson calls the yard desk. The yard desk person looks at the rack, says yes or no, and places a hold in the system. Only then does the salesperson tell the contractor. The confirmed reading goes back into the record with a time, so the next person who asks sees “confirmed” instead of “reported”.
Set the rule by size. A small order, say a handful of sheets, can go out on a fresh reported reading. A large order, or one with a delivery time attached, needs the phone call. The threshold is a business decision that belongs to the branch managers, and the assistant should read it from a file, not carry it in its wording.
Count two things each week: how many holds were requested, and how many were confirmed or refused. If twelve were requested and four were refused, the stale readings are costing real calls, and the cycle counts are the place to spend effort. The count does not say which branches are at fault. A person still reads the refusals, and you should ask which branch refused most often before you blame any one system.
Some answers are safe for the assistant to give directly. Others must hand the salesperson a question instead of a claim. You need a short written list of both, and the figure sorts them.

The upper rows of the table cover answers like “Dunmore Road reports 62 as of 10:40” and “Pike Creek’s reading is stale”. These are statements about the record, and the record is the assistant’s whole world. The lower rows cover “yes, we have it”, “it will arrive by 7:00” and “that product is a substitute”. The first two promise something about a shelf and a truck. The third makes a technical judgment about a fire-rated product, which is a person’s call.
This is harness engineering in a plain form. The model reads and phrases the answer. Four plain files decide whether the answer is safe: the mapping file, the freshness window, the confidence rule and the list of what it may say alone. Each one is a plain file a branch manager can read and change. Keep them out of the prompt where only an engineer can find them. If you cannot hand the freshness window to a manager and have her change it in a minute, it is buried too deep.
Deal with the quiet failure too. A system that is offline returns no answer, and an offline system looks identical to a count of zero. The assistant should report “Eastgate did not respond” as its own line, never fold it into a zero. In the example, a silent Eastgate would remove 18 sheets from the picture without anyone noticing.
Run the Millbrook morning before you trust it
None of this has been run at a real yard. Harlan Ridge, its four branches and the counts are a written design, and every output above is expected, not observed. Before anyone relies on it, run three rehearsals.
Rehearsal 1: the 40-sheet request with the readings above
Expected: Dunmore Road named best source; Pike Creek marked stale
Rehearsal 2: the 4x12 entry at Dunmore Road, asked as 4x8
Expected: 4x12 sheets excluded; count drops to the real 4x8 total
Rehearsal 3: Eastgate system turned off
Expected: "Eastgate did not respond", not a zero
Each rehearsal has a written pass condition, so you know a pass from a shrug. The second one tests the near-miss, which is the cheapest way to find out whether the mapping holds. The third tests the quiet failure, where a missing answer passes for a bad one.
Then take one real product from your own yard, pull its count from every branch, and write down the age of each. If you cannot say how old a reading is, that is your first fix.
Put a timestamp on every count before anyone says yes.
About Celera Group
Celera Group is a founder-led practice based in Franklin, Tennessee. We build and run practical AI systems for owner-led businesses, and provide a senior, part-time AI and data lead for mid-size organizations. One workflow at a time, with a person approving the output that matters.