Why must stock state be machine-readable for shopping agents?

By the Ingenious AI team · Published 14 November 2026 · Reviewed 14 November 2026

Check your own store free. AgentReady fetches your catalog, structured data, crawler rules and policies, then shows — with evidence — what AI shopping agents can and cannot read.

Scan my store free → Check one product's truth →

The short answer

Because 'probably available' is not a quotable fact. An agent recommending a purchase needs to know whether the product can be bought, and it learns that from your feed's stock fields — not from the green dot on the page. AgentReady checks the sampled Store API products for a stock signal (is_in_stock or stock_availability) and passes the check (7 points) when every sampled product carries one; when stock is missing from the feed, agents guess — and guess against you as often as for you.

What is machine-readable stock state?

A machine-readable stock state is a product's availability published as data — in the WooCommerce Store API, the is_in_stock flag or the stock_availability object on each product — rather than only as page text ('In stock', 'Only 2 left') or a coloured badge that software cannot interpret reliably.

Availability is half of every recommendation

Price tells an agent what a product costs; stock tells it whether recommending the product is honest. An agent that sends its user to an out-of-stock product has wasted the user's time and damaged its own credibility, so agents treat availability as a first-class fact: they filter on it, rank on it, and caveat answers when they cannot establish it. A store that publishes prices but not stock is asking the agent to recommend blind.

Human shoppers get availability from the page's theatre — the badge, the greyed-out button, the 'sold out' ribbon. Agents read the field. In the Store API that field is is_in_stock (a boolean) or stock_availability (a richer object with text and class). WooCommerce maintains both from the product's stock settings, so for most stores this check is really asking: is stock managed in WooCommerce itself, where the feed can see it, or somewhere the feed cannot reach?

How the stock check is graded

The scanner inspects the same sampled products it grades for prices and asks whether each carries a stock signal — either the is_in_stock flag or a stock_availability value. When every sampled product carries one, the check passes for 7 points. When any sampled product lacks both, the check warns and earns zero. Warn, not fail: the store is not contradicting itself, it is omitting — but the zero stands, because from the agent's side an omitted stock state and an unreliable one lead to the same behaviour.

The evidence line lists the sampled products with the stock value found for each, so the products to repair identify themselves. Note what the check does not require: exact quantities. An agent needs a trustworthy in/out signal (and, in structured data, an availability value) far more than it needs your precise count. Stores that hide counts for competitive reasons can still pass fully on a boolean — what they cannot do is hide availability itself.

Where stock states get lost

The most common loss is unmanaged stock: products created without stock management enabled, where WooCommerce treats availability as a manual status that some feed paths surface inconsistently. The second is external inventory: stock lives in a warehouse system, a spreadsheet, or a point-of-sale, and the WooCommerce record is a shell whose stock fields nobody updates — the feed then publishes a confident default that may be wrong, which is worse than publishing nothing, because the accuracy check compares feed stock against structured-data availability and a lie on either side becomes a conflict.

The third loss is product-type shaped: variations that carry the real stock while the parent product carries none, or bundled products whose availability depends on components the feed describes individually. As with prices, the fix is at the data layer: make WooCommerce's own stock fields the maintained truth — synced from the warehouse system if that is the real source — so the feed, the page and the JSON-LD all inherit the same state instead of maintaining three opinions.

Stock across surfaces: feed, page and JSON-LD

Stock is a three-surface fact like price. The feed carries is_in_stock; the product page shows its badge and button state; the structured data carries offers.availability as a schema URL (InStock, OutOfStock and their kin). The cross-surface accuracy check compares the feed's stock flag against the structured data's availability and records a stock conflict when they disagree — the feed says in stock, the JSON-LD says out of stock, or the reverse.

These conflicts usually trace to caching and template lag: the JSON-LD is rendered from a cached page snapshot while the feed reads live data, or a theme prints a static availability value regardless of state. The truth check on a single product shows all surfaces side by side — page stock text, structured availability, feed flag, and the agent-crawler fetch — which makes the stale surface obvious. The dangerous direction is feed-says-in, page-says-out: the agent recommends, the buyer arrives, the product cannot be bought, and the store looks careless to both of them.

Backorders, pre-orders and 'only a few left'

Nuanced stock states survive machine-reading better than owners fear. The Store API's stock_availability carries text alongside the signal, and structured data has availability values beyond the binary. What matters for the check — and for agents — is that the nuance is attached to a real signal rather than replacing it. A product on backorder should still publish its stock state honestly; an agent can then present 'available on backorder' as the qualified recommendation it is.

What does not survive is urgency theatre disconnected from data: 'only 2 left!' banners generated by a marketing plugin from a randomised counter, while the feed reports a plain in-stock. If the banner's number contradicts the feed's state, the surfaces disagree and the careful agent trusts the structured one — or trusts neither. Keep scarcity claims generated from the same stock record the feed reads, and they stop being theatre and start being information.

Keeping stock states trustworthy over time

Stock is the fastest-moving fact in your catalog, so its machine-readable form needs a maintenance path, not a one-time fix. If inventory is managed outside WooCommerce, the sync into WooCommerce's fields is the component to monitor: when it stalls, the feed keeps publishing yesterday's state with total confidence. A tell-tale sign in re-scans is a stock conflict appearing between feed and structured data right after a busy sales period — the surfaces fell out of step under load.

Scheduled re-scans help at the scan's sampling depth, and the Replay Network's catalog-fields step re-tests price and stock presence on the agent path daily on Pro and Agency plans. Neither replaces a healthy sync. They exist to shorten the window between your stock data breaking and you knowing — because every day the feed misstates availability, agents are either hiding products you could sell or selling products you cannot ship.

Stock check: five things to verify

Work the sampled products from your report — the evidence names exactly which ones lack a stock signal:

  1. Fetch the Store API catalog and confirm every sampled product carries is_in_stock or stock_availability — no missing signals.
  2. Enable stock management in WooCommerce for products whose availability matters, so the feed inherits a maintained state.
  3. If inventory lives in an external system, verify the sync into WooCommerce's stock fields is running and current.
  4. Compare one product's feed stock flag with its JSON-LD offers.availability — they must describe the same state.
  5. Check backorder and variation products publish their real state rather than a confident default.

Worked example: the tackle shop whose feed never said 'out of stock'

A fictional tackle shop in Belize, Silver Creek Outfitters, sells lures that sell out fast in season. Its WooCommerce products were created quickly, stock management off, availability handled by the owner removing products manually when they run out — a step that gets skipped in busy weeks. The Store API feed therefore carries no stock signal for the sampled lures, and the scan warns on the stock check with the products listed.

Worse, one bestseller is out of stock on the shelf but still 'InStock' in its page JSON-LD, so agents keep recommending a lure the shop cannot ship, and buyers keep arriving to a dead end. The owner enables stock management, enters quantities for the top range, and sets the sold-out lure's status correctly; the JSON-LD regenerates from the same record. Re-scan: every sampled product carries a stock state, the stock conflict clears, and the feed an agent reads finally matches the shelf a buyer will meet.

Frequently asked questions

What fields does the stock check accept?

Either of the Store API's stock signals on each sampled product: the is_in_stock boolean or the stock_availability object. If a sampled product carries neither, the check warns and earns 0 of its 7 points, with the products named in the evidence.

Why is missing stock a warn rather than a fail?

Because the store is omitting a fact rather than contradicting one — but it still earns zero points, since an agent cannot rely on an unstated availability. The fix is usually quick: enable stock management so the feed inherits a maintained state.

Do I have to publish exact stock quantities?

No. The check grades the presence of a trustworthy in/out signal, not counts. Structured data likewise needs an availability value (such as InStock or OutOfStock), not a number. Stores can keep counts private and still pass fully.

How does stock feed into the accuracy check?

The scanner compares the feed's is_in_stock flag for the first sampled product against the structured data's availability on its page. If one says in stock and the other says out of stock, that is recorded as a stock conflict under the 15-point cross-surface accuracy check.

My stock lives in a warehouse system, not WooCommerce. What then?

Then the sync into WooCommerce's stock fields is the critical component — the feed can only publish what WooCommerce holds. Keep the sync healthy and monitor it; a stalled sync makes the feed publish stale availability with total confidence, which re-scans and replays are designed to catch.

AgentReady is built by Ingenious AI. Every verdict in an AgentReady scan traces to values actually fetched from the store — no live AI-agent queries are run or claimed.