← All checks
stock_match

Stock consistency

Why it matters With wrong stock an agent recommends products you can’t sell or skips ones you can.

Category
Consistency
Weight
3 of 100 points
Critical blocker
No. If it fails, it only costs its own weight.
Applies to
Online stores
Effort
2-4 hours · developer
Score model
v2.4

How we measure it

We compare the structured-data availability with the page: data saying “in stock” while the page says “sold out” with no add-to-cart fails; data saying “out of stock” while the page is buyable is a partial pass.

What the result page says

These are the sentences in the test result; “…” is replaced by what we found on your site.

  • PassedThe availability in structured data matches the page.
  • PartialStructured data says “out of stock” but the page still lets you add to cart.
  • FailedStructured data says “in stock” but the page says “sold out”.

How to fix it

Target: Availability is real-time and machine-readable (InStock, OutOfStock, PreOrder).

How to verify it yourself

A sold-out product’s schema should say availability OutOfStock.

Fix it with an AI coding agent

Paste this into Claude Code, Cursor or another coding agent working on your store’s code. Review the change before you deploy it.

You are working on my online store. Specoria’s agent readiness test checks the item below. Fix it so AI shopping agents can read the store and act on it.

## 1. Stock consistency (stock_match)
Target: Availability is real-time and machine-readable (InStock, OutOfStock, PreOrder).
Reference: https://specoria.com/method/checks/stock-match/

## Rules
- First look through the codebase and tell me which files or templates you will change, before editing anything.
- Change only what these checks need, and keep the visible page and the structured data saying the same thing.
- Never invent prices, stock, shipping or return terms, reviews or product identifiers (GTIN): take them from the store’s real data or ask me.
- Don’t block or slow down real visitors and don’t add tracking.
- After deploying, run the free test again at https://specoria.com/ to verify the fix.

Specifications and guidance

The check is based on these open sources; links go to the publisher’s own pages.

Where it sits in the 196-criteria framework

The result of this check counts as evidence for these items of the readiness framework:

  • 2.10 Schema matches the visible content exactly

The framework and its source →

Run the free test See the sample report →