---
title: "Stock consistency · Specoria"
description: "Stock consistency: With wrong stock an agent recommends products you can’t sell or skips ones you can."
source_url: "https://specoria.com/method/checks/stock-match/"
lang: "en"
---

[← All checks](https://specoria.com/method/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.

- Passed The availability in structured data matches the page.
- Partial Structured data says “out of stock” but the page still lets you add to cart.
- Failed Structured 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

- [schema.org/ItemAvailability ↗](https://schema.org/ItemAvailability)

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 →](https://specoria.com/method/#criteria)

[← PreviousPrice consistency](https://specoria.com/method/checks/price-match/)[Next →Currency and language](https://specoria.com/method/checks/market-match/)

[Run the free test](https://specoria.com/method/checks/stock-match/#test) [See the sample report →](https://specoria.com/reports/sample-report/)

## Related

- [Price consistency](https://specoria.com/method/checks/price-match/)
- [Currency and language](https://specoria.com/method/checks/market-match/)
- [Scan API, MCP server and GitHub Action](https://specoria.com/developers/) Run the free test from your own scripts or CI
- [Agent Readiness Index 2027](https://specoria.com/index/) How the benchmarked stores scored, with open data

FREE TEST

## Test your store now

Enter your store’s address: 27 checks on your public pages, the way a shopping agent reads them.

The free test runs in your browser and needs JavaScript. [Request the free deep audit by email instead →](https://specoria.com/#contact)

Your result opens on its own page. Want the full picture? The free deep audit and panel come next, by email.
