Skip to main content

Subdomain classification

DockAppointment moved (ADR 0019)

The dock appointment is owned by dock-scheduling since ADR 0019. This context keeps a read-only local copy fed by dock-scheduling's DockAppointmentBooked / DockAppointmentCancelled, no longer books, checks in, cancels or completes appointments, and no longer raises the four DockAppointment* events (the one-shot api republish-appointments backfill that re-announced them was removed, ADR 0022). Where this page describes those commands, rules or events, read it as the pre-transfer design; the page is not yet rewritten.

Verdict​

inbound-receiving is a Supporting subdomain in the wms tier.

AspectValueSource
Strategic classSupportingADR 0001 "Classification"; fleet table in warehouse-docs
Tier / CloudEvents subdomainwmsADR 0001; every published type is com.warehouse.wms.inbound-receiving.<entity>.<EventName> (internal/adapters/kafka/cloudevents)
Business modelcost reduction / compliance: an accurate receipt and discrepancy recordwarehouse-docs subdomain classification
Evolutioncustom-built (genesis)warehouse-docs subdomain classification

Reasoning​

  • Not Generic. Every warehouse receives goods, but the rules that matter here differ per retailer: what counts as a discrepancy (Short, Over, Damaged), how long a dock window may be and when check-in is allowed (from 30 minutes before the window until it ends), whether an ASN line must name a known SKU. An off-the-shelf receiving module would have to be bent to these rules, and the local copies of product-master's SKUs and facility-layout's inbound doors tie it to the fleet's own vocabulary.
  • Not Core. Nobody chooses a warehouse for how it records a receipt. The appointment window and the discrepancy kinds are replaceable policy objects (ADR 0001), and the context makes no throughput or allocation decision: the differentiating decisions (release, dispatch, reservations) live in the Core contexts downstream.
  • What it still must get right. The receipt is the source of truth for what physically arrived; inventory-storage books stock from its ReceiptLineReceived events. That makes correctness (idempotent writes, transactional outbox, version guards) important even though the subdomain is not differentiating.
  • Tier. Receiving books units into the WMS stock ledger; it is "what and where", not task execution, so its events use the wms segment, like facility-layout, inventory-storage, product-master and slotting-optimization.

Neighbours​

Classifications copied from warehouse-docs docs/strategic-design/subdomain-classification.md on origin/main; the relationship column is from this repo's integration pages.

ContextClassTierRelationship to inbound-receiving
product-masterSupportingwmsupstream: ProductRegistered on warehouse.product-master.events feeds the known_skus local copy (PRODUCT_MODE=kafka)
facility-layoutGenericwmsupstream: LocationSlotRegistered / LocationSlotDecommissioned on warehouse.facility.events feed the dock_doors local copy (DOCK_DOOR_MODE=kafka)
inventory-storageCorewmsdownstream: consumes ReceiptLineReceived and ReceiptCartonReceived; books Good units as received stock
warehouse-ops-agentSupportingwesdownstream reader: calls the seven read-only MCP tools
warehouse-planningCorewesno longer downstream of this context: its inbound labour demand is read from dock-scheduling (its ADR 0020), and this context stopped raising the DockAppointment* types it used to read (ADR 0022)

The fleet count in warehouse-docs is five Core, nine Supporting, two Generic and one Generic/Supporting; inbound-receiving is one of the nine Supporting contexts.

See also the Core domain chart and the Bounded context canvas.