Inbound Receiving
Inbound Receiving is one of the fleet's sixteen domain bounded contexts.
It sits in the wms tier of the CloudEvents subdomain taxonomy, the fourth
wms context after facility-layout, inventory-storage and
product-master. It owns what happens before the first stow: the
supplier's advance ship notice (ASN), the booking of a dock door and time
window, and the receipt that counts a delivery against the ASN and records
any discrepancy. It books no stock itself: good units reach
inventory-storage as events.
Per this context's own Context Map,
checked against each side's develop and warehouse-infra develop:
Built: the service
(IQVO/inbound-receiving, ADRs
0001 to 0006) ships four binaries: cmd/api (REST, the transactional outbox
and two local-copy consumers, known_skus from ProductRegistered and
dock_doors from the facility-layout slot events), cmd/mcp (seven read-only
MCP tools, ADR 0005), and the analytics read side cmd/inbound-projector and
cmd/inbound-reports (receiving performance and freshness reports, ADR 0006).
Its web remote inbound_mfe is mounted by warehouse-console, and it ships a
Helm chart (charts/inbound-receiving).
Live in the reference deployment (wired in warehouse-infra develop):
it runs with EVENT_PUBLISHER=kafka, both local copies in kafka mode and the
pack-level consumer (packagingConsumerGroup, product-master's
ProductPackLevelDeclared/Retired for carton-level receiving);
inventory-storage consumes the handover event ReceiptLineReceived (its ADR
0037) and the identity-only ReceiptCartonReceived (its ADR 0045/0046, the same
consumer group) and books Good lines only; warehouse-planning no longer reads
this context's appointment events (its ADR 0020 moved the source to
dock-scheduling, K28); exception-management consumes CartonDiscrepancyRaised
(its ADR 0006); network-fulfillment consumes ReceiptCartonReceived,
CartonDiscrepancyRaised and ReceiptClosed for its seller inbound loop (its
ADR 0028, live mode); warehouse-ops-agent reads it over MCP (its ADR 0021).
Four of the eight published event types have no consumer today
(ASNRegistered, ASNCancelled, ReceiptOpened, ReceiptStowCompleted). The four
dockappointment types are retired: the appointment strangler (ADR 0019) is
finished on develop for the migration code (stage E, ADR 0022, 2026-11-10), so
nothing raises them and the contract no longer declares them.
It owns two aggregates, each its own consistency boundary: Asn and
Receipt; the DockAppointment moved to dock-scheduling (ADR 0019) and
is kept here as a read-only local copy. The richest package is receipt.
This context's pages
- Business Context: the gap before the first stow, the decisions taken, and what the context deliberately does not own.
- Ubiquitous Language: ASN, dock appointment, door, window, receipt, condition, discrepancy (Short, Over, Damaged), snapshot, local copy.
- Core Domain Chart: Supporting, and why.
- Bounded Context Canvas (ddd-crew bounded-context-canvas): purpose, classification, roles, inbound and outbound communication, business decisions and open questions.
- Context Map: every edge with its pattern, technology and status, planned edges labelled.
- Aggregate Design Canvas:
Asn,DockAppointmentandReceipt. - Domain Events: the published events and the consumed ones.
- Domain Message Flow, EventStorming, Class Diagram, Entity Relationship, Sequence Diagrams and Use Cases.
- Async API: the Kafka narrative.
- Generated references: REST
(including the two
reportspaths served bycmd/inbound-reports) and AsyncAPI.
Elsewhere
- Repository: github.com/IQVO/inbound-receiving.
Its ADRs live under
docs/adr/: 0001 (bounded context), 0002 (aggregates and invariants), 0003 (local copies and the handover), 0004 (CloudEvents envelope and type catalogue), 0005 (MCP server adoption), 0006 (analytics read side). The appointment move and the dock-to-stock KPI are 0019 (the DockAppointment moves to dock-scheduling), 0020 (the appointment copy follows reschedules and door reassignments), 0021 (dock-to-stock from yard arrival and inventory stow facts) and 0022 (stage E removes the backfill, the legacy encoders andReplay). - Fleet-level: Context Map (K22 to K24 and K28), the Event Standard (subdomain table and type catalogue), Subdomain Classification and the Ubiquitous Language.