Skip to main content

Bounded Context Canvas

Following the ddd-crew Bounded Context Canvas.

Source: internal/adapters/inbound/{http,kafka,mcp,a2a}, internal/adapters/outbound/kafka/encoder.go, apis/asyncapi.yaml.

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

See Subdomain classification.

4. Domain roles​

Execution (inbound plans and shipments), Gateway for sellers (Open Host Service), Enforcer (carton and label compliance at pack time; the receipt side only records).

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
agentsquerythe reads above and the placement-plan readsMCP get_inbound_plan, get_inbound_shipment, get_shipment_labels, get_seller_scorecard, get_placement_plan, list_placement_plans; A2A skills seller_compliance, inbound_statusread-only, unauthenticated
vendor-connectivityeventInboundReceiptSubmittedKafka retailnetwork.vendor-connectivity.eventsCustomer/Supplier
node-topologyeventNodeRegistered, NodeOperationalProfileDeclared, NodeActivated, NodeSuspended, NodeRetiredKafka retailnetwork.node-topology.eventsConformist
offer-availabilityeventCatalogItemPackagingDeclared, CatalogItemPackLevelRetired, ListingAvailabilityChangedKafka retailnetwork.offer-availability.eventsConformist
order-sourcingeventFulfillmentReleasedToNode, FulfillmentCancelledKafka retailnetwork.order-sourcing.eventsConformist

All write routes take an Idempotency-Key. No authentication, as in every other context of the fleet.

6. Outbound communication​

MessageTypeConsumers
SellerOnboardedeventanalytics only
SellerSuspended, SellerReinstatedeventoffer-availability (ADR 0013)
InboundPlanConfirmedeventanalytics only
InboundShipmentLabelledeventvendor-connectivity
InboundShipmentReceivedeventvendor-connectivity, offer-availability (received, ADR 0014)
InboundShipmentShippedeventvendor-connectivity, node-performance
InboundDiscrepancyRecorded, SellerComplianceViolationRecordedeventanalytics only

This context makes no synchronous call to any sibling.

7. Ubiquitous language​

See Ubiquitous language.

8. Business decisions​

See Introduction and Use cases. The rules as policies, named in the model: SsccIssuance, NodeMustBeAbleToReceive, OwnerSegregation, ReceiveOnVendorReceipt, RecordDiscrepancies. In code: requireNode and Node.CanReceive (node able to receive), addWithSSCC and sscc.Issuer (SSCC issuance), ApplyInboundReceipt and Shipment.RecordReceipt (receipt and discrepancies).

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 (node-cannot-receive, case-qty-mismatches-gtin) 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.
  • The assumptions the model left open are settled in ADR 0002 (its numbered assumptions, for example A3 for repeated suspend, A5 for SSCC issuance, A8 for unmanifested cartons).

10. Verification metrics​

Built: the Tier-2 counter seller_inbound.shipment.shipped (attribute outcome shipped or rejected, reason the problem slug; ADR 0008) and the per-seller scorecard (receiptAccuracyRate, discrepancyRatePerShipment, discrepanciesByKind, complianceViolations, complianceTier; 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​

From the network gap register (G41 to G55, in IQVO/warehouse-docs): commingling, compliance scoring beyond the informational scorecard (nothing acts on its tier), inbound freight, EDI adapters, FEFO, pallets and inner packs. G51 (who creates owner-scoped listings from received stock) is closed: InboundShipmentReceived carries received per item and offer-availability creates the listings (ADR 0014).