Skip to main content

Subdomain classification

Verdict: Generic, CloudEvents tier logistics, business model compliance and experience, evolution commodity. This is the retail-network model's verdict for the context, restated in ADR 0001. The neighbour table below is copied from the central subdomain classification page of warehouse-docs.

Why Generic​

The test for Core is not "is it hard" but "would buying it, and conforming to the vendor's model, cost us the reason customers choose us". Here it would not:

  • Low differentiation. The context makes no commercial decision. It never chooses a node, a path, a load or a route. It issues an identifier, keeps an address safe and records what other contexts report. Every retail and parcel business has labels and tracking; doing them well is expected, doing them differently wins no customer. The network differentiates on the delivery promise and on order sourcing, which are Core and live elsewhere.
  • Real but undifferentiating complexity. The timeline is the hard part: PackageJourney has nine states and a single edge table (internal/domain/journey/types.go), is fed by facts from three producers on three topics that arrive in no guaranteed order, with one load event naming many tracking numbers. It must apply scans in time order, refuse duplicates, store late scans unapplied, and close for good (ErrScanOutOfOrder, ErrDuplicateScan, ErrJourneyClosed). The label side adds a synchronous read of personal data and encryption at rest. This is real engineering, not a differentiator.
  • The two policies carry the little business weight. HandoverOnFirstScan defines the handover instant that node-performance scores vendors against, and ExceptionOnSilence lets delivery-promise re-promise before the customer notices. They are small policies on top of a generic timeline.
PartEvolution stageWhy
ShippingLabel issueCommodityOne label per package, a unique number, an address. The only network-specific rule is confining the personal data
PackageJourney timelineProduct, tending to commodityThe consolidation rules are specific to this network's event names, the shape (forward-only scans, terminal outcomes) is standard
Handover and silence policiesCustom-built, smallNetwork choices on top of a generic timeline

Movement to watch​

A Generic context is a candidate to buy rather than build. If the network adopted an external tracking or label product, this context would shrink to an anti-corruption layer that keeps the event names other contexts consume (LabelIssued, PackageHandedOver, PackageDelivered, PackageExceptionRaised). The two policies would stay with the network because node-performance and delivery-promise depend on their exact definitions. Nothing in the code or the ADRs records such a decision; it would be a new ADR.

Neighbours​

Copied from warehouse-docs network/docs/strategic-design/subdomain-classification.md on origin/main:

Bounded contextClassificationTierBusiness modelEvolutionRelationship to this context
delivery-promiseCorecommerceRevenue (conversion) and costCustom-builtDownstream: consumes PackageDelivered, PackageExceptionRaised
order-sourcingCorecommerceCost-to-serve reductionCustom-builtDownstream: consumes PackageDelivered
customer-orderingGenericcommerceEngagementCommodityUpstream (GetShipTo) and downstream (events, GetJourney)
vendor-connectivitySupportingpartnerRevenue-channel enablerProductCalls POST /labels; publishes VendorShipmentConfirmed
linehaul-transportationSupportinglogisticsCost reducer, speed enablerCustom-builtUpstream (LoadDeparted, LoadArrived); downstream of LabelIssued
last-mile-deliverySupportinglogisticsCost reducer, experience creatorCustom-builtUpstream (PackageOutForDelivery, DeliveryAttempted, PackageReturnInitiated)
offer-availabilitySupportingcommerceRevenue enablerProductUpstream (CatalogItemCreated)
node-performanceSupportingpartnerRisk reducerCustom-builtDownstream: consumes PackageHandedOver
shipping-and-tracking (this context)GenericlogisticsCompliance and experienceCommodity

The central page counts two Core, seven Supporting and two Generic contexts in the network, and records that the problem-space subdomain "Shipping Labels & Tracking" is Generic.