What is a stock conflict between the feed and structured data?
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.
The short answer
Your store telling two opposite stories about whether a product can be bought. The accuracy check compares the first sampled product's feed stock flag (is_in_stock) against the in-stock signal in its JSON-LD availability; if they disagree — in either direction — that is a stock conflict, failing the 15-point check with both values quoted. Agents resolving the same contradiction either recommend a product you cannot ship or hide one you can.
What is a stock conflict?
A stock conflict is a disagreement about a product's availability between the surfaces that publish it: the catalog feed's is_in_stock flag and the Product JSON-LD's offers.availability. When one surface says the product can be bought and the other says it cannot, AgentReady records a stock conflict under the cross-surface accuracy check, quoting both claims.
Two surfaces, two verbs: has and says
The feed's stock flag is operational data: WooCommerce computes is_in_stock from the product's stock record — quantity, management settings, backorder policy. The JSON-LD's availability is a declaration: whatever the emitter wrote into offers.availability when the page (or its cache) was generated. Operational data changes the moment a sale lands; declarations change when something regenerates them. A stock conflict is what happens in the gap between those two clocks, and its direction tells you which clock is behind.
Feed-out, data-in is the restock gap: inventory synced back in, declaration still mourning the sell-out — agents hide a product you could sell. Feed-in, data-out is the sell-out gap: the last unit sold, the declaration still cheerful — agents sell a product you cannot ship, and the buyer meets the truth at your product page or, worse, at checkout. The second direction generates the angry emails; the first generates nothing at all, which is why it survives longer. Both are the same repair: make the declaration read the operational record, at generation time, every time.
How the scanner detects the disagreement
The comparison is deliberately simple, because stock truth is binary at the point of recommendation. From the feed's first sampled product, the scanner takes is_in_stock as a boolean. From the sampled page's parsed JSON-LD, it reads the availability string and treats the presence of 'instock' within it as the in-stock signal. When both values exist and the booleans differ, the conflict is recorded — field 'stock', with the feed flag and the full availability string as its quoted values — and the accuracy check fails, its detail line leading with the conflict before any praise for agreeing prices.
The evidence standard matters here: the report does not say 'stock inconsistent'; it prints store_api_in_stock true beside structured_data_availability 'https://schema.org/OutOfStock' (or the reverse), so the two claims sit side by side in their native forms and the stale one can be identified by anyone who knows which surface was touched last. When one side publishes nothing, there is no conflict — instead the accuracy comparison loses a term, contributing to the too-few-surfaces warn, and the completeness and stock-presence checks carry the finding on their own rows.
The usual stale surface, and why it's the data
In practice the JSON-LD is the laggard, for structural reasons. It is commonly emitted by an SEO or schema plugin, sometimes rendered at page-cache time, and page caches are at their stalest exactly when stock moves fastest (a popular product's page is the most cached page you own). The feed, reading the live record per request or on a short regeneration cycle, usually carries the fresher state. So the sell-out gap — data still declaring InStock for a product the shelf has lost — is the conflict stores meet first, and its fix is generational: emit availability from the live record at render, or shorten the cache's life on product pages until the lag stops mattering.
The feed is not innocent by nature, though. Stores whose inventory lives in an external system meet the mirror pattern: the warehouse sells the last unit, the sync into WooCommerce is hourly (or broken), the feed keeps declaring in-stock from its stale record while the page — rendered from the warehouse-driven theme — shows sold out, and the JSON-LD generated from the page's state agrees with the page. Two-against-one in the scan's wider evidence (page text is not part of the stock comparison, but the truth check reads it) points at the feed's sync as the stale layer. Direction plus architecture identifies the culprit; the quoted values start the conversation.
Backorders and the honest middle states
Schema availability has middle terms — BackOrder, PreOrder — and the scanner's in-stock reading is a substring test, which treats any availability containing 'instock' as in and everything else as not-in for the comparison. A product legitimately on backorder, declared as BackOrder in the data while the feed's flag reports its own backorder-aware state, can therefore present as a conflict that is really a vocabulary gap between two honest systems. Read such a conflict as a prompt to align vocabularies — declare in the data the state the feed means, in the schema term agents will classify correctly — rather than as proof one surface is lying.
The general principle survives the edge case: whatever nuance your stock model has, the surfaces must express the same nuance in the shared vocabulary. An agent's recommendation logic is coarser than your warehouse model — buyable now, buyable later, not buyable — and the mapping from your states to those three buckets should be a deliberate, documented choice implemented identically in the feed and the declaration, not an accident of two plugins' defaults.
What agents do inside a stock conflict
They improvise policy. A cautious agent weights the page's live signals (the sold-out ribbon, the disabled button it can detect) over declarations and may rescue the truth by scraping — succeeding only when the page's theatre is legible to it. A fast agent quotes the first surface it read. An agent burned by overselling a store's products learns the store-level lesson and discounts that store's availability claims generally. None of these policies is yours; all of them are consequences of your surfaces disagreeing. The store that speaks once, consistently, gets the only policy that serves it: taken at its word.
Buyers feel the conflict asymmetrically. Being told 'in stock' and meeting a sold-out page reads as the store's carelessness, retold in reviews with the agent as witness. Being told 'out of stock' about a buyable product reads as nothing at all — the buyer buys elsewhere and the store never learns what it lost. Stock accuracy is thus a trust feature with a silent failure mode, which is the exact profile of problem that scheduled verification exists to catch: the re-scan diff naming a new stock conflict the week it appears, rather than the quarter it has cost.
Making stock a single-clock fact
The repair pattern is the series' refrain in work boots: one stock record, generated surfaces, no independent clocks. Concretely — availability in the JSON-LD emitted at render from the product record; the feed reading the same record; external inventory syncing into that record with its health monitored (a sync that stops should alarm, because its failure mode is confident staleness); page caches on product pages kept short enough that a sell-out outruns them, or invalidated on stock change, which most serious caching layers can do on the stock-update hook.
Verify as the instruments do: after the next sell-out of a popular product, pull the feed flag and the page's JSON-LD and compare them yourself; then let the re-scans and the replay's structured-data and price-consistency steps keep the comparison running daily. Stock is the fastest-moving fact in your catalog — the surface agreement about it should be checked at something like its own speed, and a daily automated comparison is the slowest cadence that honestly qualifies.
Stock-conflict check: five things to verify
Use the next sell-out or restock as a live test — it is the moment conflicts are born:
- When a product sells out, immediately compare its feed is_in_stock with its JSON-LD availability: they must flip together.
- Emit offers.availability from the live product record at render time — never from a page cache older than your stock's rate of change.
- If inventory is external, monitor the sync into WooCommerce as a health-checked job; a stopped sync means confidently stale stock everywhere.
- Align middle states deliberately: map backorder/pre-order to the same schema terms in feed and data so honest nuance is not read as conflict.
- Re-scan after busy sales periods and confirm no new stock conflict appears in the diff — the scan quotes both claims when one does.
Worked example: the sold-out hammock that agents kept selling
A fictional hammock store in Belize, Siesta Sisters, sells out of its flagship double hammock on a Friday. The WooCommerce record flips correctly — the feed's is_in_stock reads false by Friday night. But the product page is the store's most cached page, and its JSON-LD, baked into the cached render on Thursday, keeps declaring InStock through the weekend. The scan's accuracy row fails with the pair quoted side by side, and the store's weekend support mail — 'the assistant said you have it' — agrees with the machine's diagnosis.
The fix pairs a purge with a principle: the cache is invalidated on stock changes (the caching layer's stock hook, enabled at last), and availability is confirmed to render from the live record. The next sell-out flips both surfaces within the hour, and the Monday re-scan shows the accuracy row green. The store's note in its runbook understates the lesson the way good runbooks do: 'Agents believe the data. Keep the data on the same clock as the shelf.'
Frequently asked questions
How does the scanner decide there is a stock conflict?
It takes the first sampled product's feed is_in_stock as a boolean and reads the JSON-LD availability for its in-stock signal ('instock' in the string). If both exist and disagree, a stock conflict is recorded under the accuracy check with both values quoted — feed flag beside the full availability string.
Which surface is usually stale?
Usually the JSON-LD: it is often emitted into cached page renders, and popular product pages are the most cached — so a sell-out leaves the declaration declaring InStock. With external inventory the feed can be the laggard instead, when its sync into WooCommerce stalls. Direction plus your architecture identifies the culprit.
What if my product is on backorder — is that a conflict?
It can present as one if the surfaces use different vocabularies for the same state: the scanner reads availability by its in-stock signal, so BackOrder classifies as not-in. Treat the finding as a vocabulary alignment task — express the same state in the shared schema terms on both surfaces — rather than evidence of a lie.
What does a stock conflict cost if I ignore it?
Direction decides. Data-in/feed-out (oversell): buyers arrive for products you cannot ship and blame the store. Feed-in/data-out (undersell): agents hide products you could sell and nobody ever reports the loss. The second is quieter and usually costs more over a season.
How do I keep the surfaces on the same clock?
Emit availability from the live product record at render, invalidate product-page caches on stock change, and health-monitor any external inventory sync. Then verify with re-scans after busy periods — the diff names new stock conflicts with both claims quoted, while they are still young.
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.