Bounded Context Canvas
Derived from network/model/model.yaml. This context's service is built (IQVO/seller-inbound, designed by ADR 0009); the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses. Where the model left a choice open, the service's own ADRs 0002 to 0005 record what it does.
Following the ddd-crew Bounded Context Canvas.
Derived from: model.yaml → contexts[seller-inbound].inbound, .publishes, .consumes; contexts[vendor-connectivity].publishes.
1. Name
Seller Inbound (seller-inbound, SI), tier partner, Supporting.
2. Purpose
Let a seller plan, pack, label and ship stock to a vendor node, and close each shipment from the vendor's carton-level receipt, with eaches as the ledger unit and the seller as owner of the stock.
3. Strategic classification
| Axis | Value |
|---|---|
| Domain | Supporting |
| Business model | Supply enabler |
| Evolution | Custom-built |
4. Domain roles
Execution (inbound plans and shipments), Gateway for sellers (Open Host Service), Enforcer (carton and label compliance).
5. Inbound communication
| Sender | Type | Message | Channel | Relationship |
|---|---|---|---|---|
| seller / seller portal | command | OnboardSeller | REST POST /sellers | OHS |
| network partner managers | command | SuspendSeller, ReinstateSeller | REST POST /sellers/{sellerId}/suspensions, POST /sellers/{sellerId}/reinstatements | UI |
| seller / seller portal | command | CreateInboundPlan, ConfirmInboundPlan, CancelInboundPlan | REST POST /inbound-plans, POST /inbound-plans/{planId}/confirmations, POST /inbound-plans/{planId}/cancellations | OHS |
| seller / seller portal | command | CreateInboundShipment, AddCarton, LabelShipment, ShipInboundShipment | REST POST /inbound-plans/{planId}/shipments, POST /inbound-shipments/{shipmentId}/cartons, POST /inbound-shipments/{shipmentId}/labels, POST /inbound-shipments/{shipmentId}/dispatches | OHS |
| seller / seller portal | query | GetInboundPlan, GetInboundShipment, GetLabels | REST GET /inbound-plans/{planId}, GET /inbound-shipments/{shipmentId}, .../labels | OHS |
| seller / seller portal, network partner managers | query | GetSellerScorecard (informational) | REST GET /sellers/{sellerId}/scorecard?window=7d or 30d | OHS |
| seller / seller portal, network partner managers | query | GetSellerCapacityAllocations (the operator-facing read of the monthly capacity reservations, service ADR 0015) | REST GET /sellers/{sellerId}/capacity-allocations?month= | OHS |
vendor-connectivity | event | InboundReceiptSubmitted | Kafka retailnetwork.vendor-connectivity.events | Customer/Supplier |
node-topology | event | NodeRegistered, NodeOperationalProfileDeclared, NodeActivated, NodeSuspended, NodeRetired | Kafka retailnetwork.node-topology.events | Conformist |
offer-availability | event | CatalogItemPackagingDeclared, CatalogItemPackLevelRetired | Kafka retailnetwork.offer-availability.events | Conformist |
All write routes take an Idempotency-Key. No authentication, as in every
other context (conventions.no_auth).
6. Outbound communication
| Message | Type | Consumers |
|---|---|---|
SellerOnboarded | event | analytics only |
SellerSuspended, SellerReinstated | event | offer-availability (service ADR 0013) |
InboundPlanConfirmed | event | analytics only |
InboundShipmentLabelled | event | vendor-connectivity |
InboundShipmentReceived | event | vendor-connectivity, offer-availability (the received lines, service ADR 0014) |
InboundShipmentShipped | event | vendor-connectivity, node-performance |
InboundDiscrepancyRecorded, SellerComplianceViolationRecorded | event | analytics only |
This context makes no synchronous call (sync_calls is empty).
7. Ubiquitous language
See Ubiquitous Language.
8. Business decisions
See Business Context.
The rules as policies: SsccIssuance, NodeMustBeAbleToReceive,
OwnerSegregation, ReceiveOnVendorReceipt, RecordDiscrepancies.
9. Assumptions
- A node's inbound limits and an item's packaging hierarchy reach this
context as events before a seller plans against them; a cold read model
refuses (
ErrNodeCannotReceive,ErrCaseQtyMismatchesGtin) rather than guesses. - The vendor receives the cartons and reports each SSCC it saw. An SSCC the
vendor did not report is
MISSINGonly when a receipt says so.
10. Verification metrics
As built: the Tier-2 counter seller_inbound.shipment.shipped (attribute
outcome shipped or rejected, reason the problem slug; service ADR 0008)
and the per-seller scorecard (receiptAccuracyRate,
discrepancyRatePerShipment, discrepanciesByKind, complianceViolations,
complianceTier; service ADR 0005). Not built: share of cartons whose SSCC
was network-issued; time from SHIPPED to the first receipt; share of
case-packed cartons refused at AddCarton.
11. Open questions
See the gap register, G41 to G55: commingling, compliance scoring beyond the scorecard (only the monthly capacity gate reads its tier, service ADR 0015), inbound freight, EDI adapters, FEFO, who creates owner-scoped listings from received stock, pallets and inner packs.