Skip to main content

Ubiquitous Language

Built on develop, not deployed

Derived from model/model.yaml. The product-discovery service is built on develop (IQVO/product-discovery at 9c2f945, checked 2026-10-27) and not deployed (no warehouse-infra entry). Every Err... name, REST route and CloudEvents type of this context named on this page exists in the service; where the built service differs from the model's design, the page says so (As built) or the context's Service and operations section lists it.

The terms this context speaks, each mapped to the identifier a future implementation must use. The first table is the context's own ul list in model.yaml. The second holds the model elements of its read side. The third holds neighbour terms this context projects but does not own; their definitions come from the owning context's ul list. The storefront-wide glossary is Ubiquitous Language.

Own terms​

Derived from: model.yaml → contexts[product-discovery].ul.

TermDefinitionCode identifierNot to be confused with
PurchasableItem ACTIVE in the item master, content PUBLISHED, price ACTIVE, and at least one LIVE listing with quantity above 0.productview.PurchasableThe network's sellable listing (one node only): purchasable is an item-level verdict this context derives.
Product ViewThe projection one product page or search hit renders from.productview.ViewThe catalogue item itself (offer-availability) or its content (product-content).
Category ViewThe browsable tree with purchasable counts per category.categoryview.ViewThe Category Tree aggregate in product-content, which owns the tree; this view adds counts.
In StockAt least one LIVE listing with availableQty above 0 for the item.productview.InStockPurchasable: stock is one of the four inputs; an in-stock item can still be unpurchasable (no price, no content).
Product-Type QueryA search for a kind of product; the answer includes category suggestions.(search policy)A navigational query (a category name) or an item-specific query (brand + model).

Model elements of this context​

Derived from: model.yaml → contexts[product-discovery].read_models, .policies, .rest, .business_decisions.

TermDefinitionCode identifierNot to be confused with
ProjectionAn event-fed local copy, rebuildable from its sources; this context is projections only (no aggregate in v1, its ADR 0002).usecases.Consumer (as built: internal/application/usecases/consume*.go folding into productview.View)An aggregate: nothing here enforces an invariant or raises an Err....
Purchasable RulePolicy: the four-input verdict above, recomputed on every relevant event.PurchasableRuleA domain invariant; it derives display state, it rejects nothing.
Unavailable, Not BuyablePolicy: no LIVE listing with quantity above 0 means shown as currently unavailable; out-of-stock purchase is impossible (gap S6).UnavailableNotBuyableA backorder or "ship later" promise, which this network cannot make.
Monotonic GuardPer-source ordering guard on top of the CloudEvents-id inbox: listing asOf, content revision, price version. An older fact is skipped.productview.Stale (as built: the Apply* folds of productview.View answer Stale when the per-source guard skips a fact)The inbox: the inbox deduplicates by id; the guard orders by source sequence.
Search PortThe port search sits behind (D9): PostgreSQL full-text search + pg_trgm today, a dedicated engine later as an adapter swap.ports.SearchPortA ranking service of its own; the weights are fixed by business decision 2.
Typo Fallbackpg_trgm similarity match when full-text search returns too little.search.SimilarityThreshold (as built: pg_trgm similarity in the Postgres search adapter)Synonym or stem expansion, which the model does not name.
FacetA filter axis with counts: category, price band, in-stock.search.FacetFree-form filters; the three axes are fixed by business decision 2.
Snapshot + Catch-upThe rebuild: paged reads of every source, then events from a recorded offset.usecases.Rebuilder (cmd/rebuild)A user-request read; the rebuild never serves a shopper request.

Neighbour terms this context projects​

TermDefinition (owner's)Code identifier (owner)Not to be confused with
Catalog ItemThe network's own entry for a product, independent of who ships it.catalog.Item (offer-availability, network)Product View: the projection of that item plus three other sources.
ListingA catalogue item offered from one node.listing.Listing (offer-availability, network)In Stock: stock asks whether at least one listing is LIVE with quantity above 0.
Available QuantityWhat a node claims it can ship now for one listing.listing.Availability.AvailableQty (offer-availability)A promise of capacity; the network's promise context owns that.
LIVE / SUPPRESSEDA listing's two states; suppressed listings never count.listing.Listing states (offer-availability)The item's own states (ACTIVE / DISCONTINUED).
Effective PriceThe lowest active sale price, else the list price.itemprice.ItemPrice.EffectivePrice (pricing)What this context stores: the projection copies effectivePriceMinor and the price version.
Product ContentDescription, bullets, attributes and media of one catalogue item.content.ProductContent (product-content)The search document: the projection flattens content into the indexed row.
RevisionOne published shape of an item's content; publishing bumps it.content.ProductContent.Revision (product-content)The monotonic guard name on this side of the boundary.
Category TreeThe single, versioned tree of categories, at most four levels deep.category.Tree (product-content)Category View: the tree plus purchasable counts, derived here.

Fleet translation​

None. Product discovery never touches the warehouse-systems fleet, never produces or consumes a warehouse.* topic (meta.hard_boundary), and its one network route outside the Open Host Service (GET /listings) is the documented ops-only exception for the projection rebuild.