Skip to main content

Bounded Context Canvas

As built

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​

AxisValue
DomainSupporting
Business modelSupply enabler
EvolutionCustom-built

4. Domain roles​

Execution (inbound plans and shipments), Gateway for sellers (Open Host Service), Enforcer (carton and label compliance).

5. Inbound communication​

SenderTypeMessageChannelRelationship
seller / seller portalcommandOnboardSellerREST POST /sellersOHS
network partner managerscommandSuspendSeller, ReinstateSellerREST POST /sellers/{sellerId}/suspensions, POST /sellers/{sellerId}/reinstatementsUI
seller / seller portalcommandCreateInboundPlan, ConfirmInboundPlan, CancelInboundPlanREST POST /inbound-plans, POST /inbound-plans/{planId}/confirmations, POST /inbound-plans/{planId}/cancellationsOHS
seller / seller portalcommandCreateInboundShipment, AddCarton, LabelShipment, ShipInboundShipmentREST POST /inbound-plans/{planId}/shipments, POST /inbound-shipments/{shipmentId}/cartons, POST /inbound-shipments/{shipmentId}/labels, POST /inbound-shipments/{shipmentId}/dispatchesOHS
seller / seller portalqueryGetInboundPlan, GetInboundShipment, GetLabelsREST GET /inbound-plans/{planId}, GET /inbound-shipments/{shipmentId}, .../labelsOHS
seller / seller portal, network partner managersqueryGetSellerScorecard (informational)REST GET /sellers/{sellerId}/scorecard?window=7d or 30dOHS
seller / seller portal, network partner managersqueryGetSellerCapacityAllocations (the operator-facing read of the monthly capacity reservations, service ADR 0015)REST GET /sellers/{sellerId}/capacity-allocations?month=OHS
vendor-connectivityeventInboundReceiptSubmittedKafka retailnetwork.vendor-connectivity.eventsCustomer/Supplier
node-topologyeventNodeRegistered, NodeOperationalProfileDeclared, NodeActivated, NodeSuspended, NodeRetiredKafka retailnetwork.node-topology.eventsConformist
offer-availabilityeventCatalogItemPackagingDeclared, CatalogItemPackLevelRetiredKafka retailnetwork.offer-availability.eventsConformist

All write routes take an Idempotency-Key. No authentication, as in every other context (conventions.no_auth).

6. Outbound communication​

MessageTypeConsumers
SellerOnboardedeventanalytics only
SellerSuspended, SellerReinstatedeventoffer-availability (service ADR 0013)
InboundPlanConfirmedeventanalytics only
InboundShipmentLabelledeventvendor-connectivity
InboundShipmentReceivedeventvendor-connectivity, offer-availability (the received lines, service ADR 0014)
InboundShipmentShippedeventvendor-connectivity, node-performance
InboundDiscrepancyRecorded, SellerComplianceViolationRecordedeventanalytics 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 MISSING only 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.