Go back

← All guides · Ingenious AI team · November 14, 2026 · Reviewed November 14, 2026

Out-of-Stock Traps: When the Variant an Agent Picks Is Not There

The short answer

An out-of-stock trap is a product whose page and data say 'available' while the specific variant the buyer needs is not — the agent discovers the truth at the variant step, mid-purchase, and the gauntlet names it out_of_stock_trap. It is a data-granularity failure: availability stated for the product, consumed per variant. The audit checks availability in the JSON-LD offers (jsonld_availability) and then walks a real variant on Pro. Check your store with the free store audit.

Audit my store — free

Product-level truth, variant-level purchase

Nobody buys 'a shirt'. They buy the blue one, size medium. The purchase the agent executes is always at variant level — and the gauntlet's walk mirrors that: the variant step asks whether the sampled variant is actually selectable and in stock, and a product that presents as available while its variants are exhausted records out_of_stock_trap at the variant step. The trap's shape varies: every variant out of stock under an InStock product flag; the default variant gone while the page still leads with it; a variant selector that lists options the stock system has already closed.

Humans absorb this with mild irritation — they pick another colour. An agent with a specific request (the restock mission in the audit is literally an exact-product reorder) cannot substitute silently. The visit fails at the last moment the data could have told the truth earlier.

Where the audit reads availability

Three readings, three granularities. The JSON-LD check (jsonld_availability) reads the sampled page's offers.availability — one value, expected to be a schema.org URL like https://schema.org/InStock. The feed carries per-variant prices and, in a healthy feed, per-variant availability signals. The live walk tests the ground truth: it selects a variant and attempts the path. When the three disagree — block says InStock, walk finds nothing buyable — the walk is the evidence that counts, because it is the buyer's experience reproduced.

The template discipline follows: availability in the JSON-LD should describe the variant the page presents, not the product in the abstract. A block that emits InStock whenever any variant is stocked is stating a product-level truth in a field agents read as variant-level fact. Availability schema values covers the vocabulary; the identifier side of variant data is in product identifiers, explained.

The honest OutOfStock advantage

There is a counterintuitive mercy in stating OutOfStock properly: the agent skips the product early, at the matching stage, and spends its visit on your in-stock products instead. A trap does the opposite — it attracts the visit, consumes it, and fails it at the variant step, teaching the agent nothing good about your data's reliability. Stores sometimes fear that precise stock data loses sales. For agent visits, imprecise stock data loses the same sales later and louder, at the step where the gauntlet writes it down.

Keep the feed, the JSON-LD and the walk in agreement and the trap cannot form: per-variant availability, updated at the same cadence as the store's own stock display, with the default variant on each product page being one that is actually buyable — or clearly not the lead when it is gone.

Sources

The trap also has a quiet second cost: it corrupts the store's own understanding of its availability quality. A dashboard reporting '98% of products in stock' at product level can coexist with a third of first-choice variants being gone, because the two statements measure different units. The gauntlet's variant-level verdict is the corrective instrument — it reports stock the way purchases experience it. Stores that start managing to the variant-level number find their merchandising conversations change: the question stops being 'are we in stock?' and becomes 'is the thing the buyer will ask for, in the form they will ask for it, actually there?'

Five actions to take

  1. State availability per variant. The JSON-LD offers availability describes the variant the page presents — never 'any variant in stock' logic.
  2. Use the schema.org vocabulary. https://schema.org/InStock and https://schema.org/OutOfStock, not prose stock badges, in the data layer.
  3. Keep the feed's variant data current. Variant prices and stock signals in the feed at the same freshness as the storefront display.
  4. Lead with a buyable variant. The default variant on the product page should be in stock — or visibly not the default when it sells out.
  5. Walk it like the gauntlet. Pick the exact variant as a stranger and try the path; the restock mission's shape — exact product, quantity 2 — is the strictest test.

Worked example: Trailhead Boot Co., 58 to 83

Example — a fictional store, shown to illustrate how the audit's findings and fixes fit together. These are the example's numbers, not a customer's results.

Trailhead Boot Co. is a fictional 19-product footwear store where every product is a size-and-colour variant matrix. Its first audit scored 58/100:

The fixes, in the order the audit's impact weights dictate:

The re-audit scored 83/100. The store's stock was never the problem — two sizes were sitting there the whole time. The data described the product the store wished it were selling instead of the variant the buyer could actually have.

Run the free store audit · See pricing · Ingenious AI

Frequently asked questions

What is an out_of_stock_trap in the audit?

The stall gauntlet's name for a product that presents as buyable until the variant step: the walk selects a variant and finds it unavailable, despite product-level signals saying otherwise. It is recorded at the variant step of the purchase walk.

My JSON-LD says InStock and it passes. Can a trap still exist?

Yes. jsonld_availability reads the value on the sampled page; the trap is a granularity mismatch — the value describes the product while the presented variant is out of stock. The live walk and the restock buyer mission test the variant-level truth.

What availability should each variant carry?

Its own. The offers data for the variant the page presents should state that variant's real state in schema.org vocabulary — InStock, OutOfStock and their siblings — kept current with the store's stock system.

Why does the trap matter more than a clean OutOfStock?

A clean OutOfStock makes the agent skip the product early and spend the visit on in-stock items. A trap attracts the visit, consumes it, and fails it mid-purchase — worse for the buyer, and recorded as a stall against the store.

How does the restock mission relate?

The restock buyer mission needs the exact product, its identifier and its stock state at quantity 2. It is the audit's strictest stock test, modelled on reorder behaviour — precisely the visit a variant-level trap kills.

Keep reading

Start from the top of the subject: Why AI Shopping Agents Skip Your Store · Can AI Agents Buy From Your Store? · Agentic Commerce Checklist for Online Stores. Then run the instrument itself: the free store audit, the Store Audit lab, and the pricing page. All guides are listed in the guides index.

Previous guide: Minimum Order Blocks: When the Cart Refuses a Small Purchase · Next guide: Region and Currency Switching: The Mid-Purchase Price Change