Stock projection / 43.36s

Hide sold out. Restore on receipt.

Warehouse reality changes customer discovery while Stock remains the authority and search remains a projection.

Silent film with burned-in narrationOpen WebM directly

What You Will See

  1. Start sellableThe Astra wireless headset appears with six available units.
  2. Warehouse write-offStock records the reduction and the product leaves normal storefront search.
  3. Goods receiptA receipt adds twelve units to authoritative Stock state.
  4. Discovery returnsThe same product reappears after the updated availability reaches Catalog search.

Why It Matters

Customers should not discover a known sold-out product as if it were sellable—and replenishment should restore selling time automatically.

The visibility path may be asynchronous, but it never grants inventory. Checkout still asks Stock for the authoritative reservation.

The System Underneath

Stock changeCommitted full availability state
Kafka eventAggregate-keyed fact
Catalog projectionAvailability + durable index work
Search visibilityElasticsearch document updated
The asynchronous projection changes discovery. The synchronous reservation path remains authoritative for quantity allocation.

What This Story Proves

Visible proof

A warehouse write-off removes the product from search and a receipt restores it.

Not claimed

Unknown Stock currently fails open; the film does not prove every variant-level availability rule.

Read the Stock-driven search design.

AI engineering connectionExecutable feedback constrains autonomous change