Skip to main content

Ubiquitous Language

As built

Derived from network/model/model.yaml. This context's service is built; the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses.

The terms this context speaks, each mapped to the identifier an implementation must use. The network-wide glossary is Ubiquitous Language.

This context's terms​

The first eight rows are the model's ul entries for last-mile-delivery. The rest are aggregate states, value objects and policies of the same context.

TermDefinitionCode identifierNot to be confused with
Last MileFrom the delivery station to the customer's door.(context) last-mile-deliveryMiddle Mile (linehaul-transportation): transport between nodes, ending at the station
Delivery WaveA station's dispatch slot: induct cutoff, delivery window and stop capacity.wave.DeliveryWaveDeparture (linehaul-transportation): a trip on a lane, counted in packages, not stops
Stop EmissionThe planner's declared marginal greenhouse emission of one delivery stop on a wave, in grams of CO2 equivalent (0 to 10000000); per stop, never per package. A declaration, not a measurement; 0 is legal and an undeclared wave also reads 0.wave.DeliveryWave.EmissionPerStopGLane Emission (node-topology): declared per package-unit crossing a lane
InductionPlacing an arrived package into a wave.wave.InductPackageLoad arrival (LoadArrived): the package is at the station but in no wave yet
RouteOne van's ordered stops in one wave.route.RouteLane (node-topology): a directed node-to-node connection
Delivery Service Partner (DSP)An independent delivery business working for a station.partner.DeliveryServicePartnerVendor (vendor-connectivity): operates fulfillment nodes, never stations
Delivery AttemptOne try to hand a package over: DELIVERED or FAILED with a reason, plus an optional outcomeDetail category the driver client reports (ADR 0014).route.AttemptDelivered journey state (shipping-and-tracking): the customer-visible outcome derived from the attempt
Stop ETA WindowThe day-of delivery window of one stop of a started route: at most two hours, spread linearly over what is left of the wave's delivery window at the start instant. A deterministic spread, not a prediction; never retracted.route.StopEtaDelivery window of the wave, which the spread is computed over, and the Deliver-By Window (delivery-promise), which it never revises
Delivery Point ProfileThe learning record of one delivery point (an opaque stop key, never an address): outcome tallies and counted-failure strikes. Two counted failures inside 60 days flag the point; the flag changes no route, no ETA and no promise.deliverypoint.DeliveryPointProfileStop: the packages of one route visit; the profile is per address key across routes and days
Induct cutoffThe instant by which a package must be at the station to join a wave.DeliveryWave.inductCutoffAtCutoff (node-topology): a vendor node's handover time for a pickup departure
Delivery windowWhen the wave delivers: windowStart to windowEnd.wave.Window{start, end}Deliver-By Window (delivery-promise): what the customer was promised
Stop capacityHow many stops a wave can take, and how many are assigned.wave.StopCapacity{stops, assigned}Van capacity: the stop limit of one partner's van, enforced on a route
Van capacityThe maximum stops a partner's van can take on one route; must be greater than zero.DeliveryServicePartner (invariant ErrInvalidVanCapacity)Stop capacity of a wave
StopOne numbered place on a route with the tracking numbers delivered there and an outcome.route.Stop{stopNo, trackingNumbers[], outcome}Scan (shipping-and-tracking): an observation of a package at a node
Service dateThe calendar day a wave belongs to.DeliveryWave.serviceDate—
Wave statesOPEN, INDUCTION_CLOSED, DISPATCHED, COMPLETED, CANCELLED.wave.StateDeparture states SCHEDULED, CLOSED, ...
Route statesPLANNED, OUT_FOR_DELIVERY, COMPLETED.route.StateJourney state OUT_FOR_DELIVERY in shipping-and-tracking, which this context's PackageOutForDelivery feeds
Partner statesACTIVE, INACTIVE.partner.State—
Induct on arrivalOn LoadArrived at a delivery station, induct every package into the earliest eligible wave.policy InductOnArrival—
Retry next waveA FAILED attempt re-inducts the package into the next wave; three failures return it to sender.policy RetryNextWaveReturn to sender (shipping-and-tracking ReturnToSender): the journey transition

Neighbour terms used here​

TermDefinition (owner's)Code identifierOwner
NodeOne physical building of the network, of exactly one node type.node.Nodenode-topology
Node TypeFULFILLMENT_CENTER, INBOUND_CROSS_DOCK, RETURNS_CENTER, SORTATION_CENTER, DELIVERY_STATION or AIR_HUB. A station is DELIVERY_STATION.node.Typenode-topology
Service AreaThe postal prefixes one delivery station serves.servicearea.ServiceAreanode-topology
LoadThe packages consolidated onto one departure.load.Loadlinehaul-transportation
Middle MileTransport between nodes: vendor node to sortation centre, sortation centre to delivery station, air.(context)linehaul-transportation
Tracking NumberThe network-wide unique id of one package.journey.TrackingNumbershipping-and-tracking
Package JourneyThe customer-visible timeline of one package.journey.PackageJourneyshipping-and-tracking
Witness PathThe concrete node, pickup, departures and delivery wave that prove a promise is feasible.promise.WitnessPathdelivery-promise
Promise BasisSCHEDULED (from real departures and waves) or NOMINAL.promise.Basisdelivery-promise

This context does not touch the warehouse-systems fleet, so there is no fleet translation table. The canonical one is on WMS/WES integration.