Subdomain classification
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.
| Aspect | Value | Source |
|---|---|---|
| Strategic class | Supporting | ADR 0001 "Classification"; fleet table in warehouse-docs |
| Tier / CloudEvents subdomain | wms | ADR 0001; every published type is com.warehouse.wms.inbound-receiving.<entity>.<EventName> (internal/adapters/kafka/cloudevents) |
| Business model | cost reduction / compliance: an accurate receipt and discrepancy record | warehouse-docs subdomain classification |
| Evolution | custom-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-storagebooks stock from itsReceiptLineReceivedevents. 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
wmssegment, likefacility-layout,inventory-storage,product-masterandslotting-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.
| Context | Class | Tier | Relationship to inbound-receiving |
|---|---|---|---|
product-master | Supporting | wms | upstream: ProductRegistered on warehouse.product-master.events feeds the known_skus local copy (PRODUCT_MODE=kafka) |
facility-layout | Generic | wms | upstream: LocationSlotRegistered / LocationSlotDecommissioned on warehouse.facility.events feed the dock_doors local copy (DOCK_DOOR_MODE=kafka) |
inventory-storage | Core | wms | downstream: consumes ReceiptLineReceived and ReceiptCartonReceived; books Good units as received stock |
warehouse-ops-agent | Supporting | wes | downstream reader: calls the seven read-only MCP tools |
warehouse-planning | Core | wes | no 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.