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.

Every term this context speaks, mapped to the code identifier an implementation must use. The first table is the context's own ul list in model.yaml. The second holds names that appear elsewhere in this context's model entry (aggregates, states, policies, event data). The third holds the neighbour terms these pages use, with the neighbour that owns them. The domain-wide glossary is at Ubiquitous Language.

Terms of this context​

Derived from: model.yaml → contexts[shipping-and-tracking].ul.

TermDefinitionCode identifierNot to be confused with
Tracking NumberThe network-wide unique id of one package.journey.TrackingNumberlabelRef (the label's id) and poNumber (the vendor instruction, which may cover several packages)
Shipping LabelWhat is printed on the package; the only artefact outside customer-ordering that carries the address.label.ShippingLabelThe Vendor API Label (po.Label), which is only labelRef + trackingNumber + carrier and never the address
Package JourneyThe customer-visible timeline of one package.journey.PackageJourneycustomer-ordering's OrderTrackingView, a read model per order fed by this context's events
ScanOne observation of a package at a node.journey.ScanA Delivery Attempt (route.Attempt), which is a last-mile fact this context turns into a scan
HandoverThe instant a vendor node's package enters the network.journey.HandedOverVendorShipmentConfirmed, the vendor's own statement that it shipped. Handover is the network's observation (HandoverOnFirstScan)
Day-of ETA WindowThe at-most-two-hours delivery window consumed from last-mile-delivery at route start and stored on the journey (etaStart, etaEnd, etaAssignedAt). Not a scan: it never moves the state, and it shows on the journey view only while EtaCurrent holds (OUT_FOR_DELIVERY, assigned at or after the last applied scan).journey.PackageJourneyThe Deliver-By Window of the promise, which is never revised by the window and never clips it
Delivery-Point FlagThe pointFlagReason and pointFlaggedAt stored on each journey of a flagged delivery point (consumed from last-mile-delivery without the stop key) and republished per package by orderId. Not a scan; there is no cleared event, so it ends when the package ends.journey.PackageJourneyThe advisory shown by customer-ordering: the shopper-facing wording of this fact, which this context never writes

Other names in this context's model​

Derived from: model.yaml → contexts[shipping-and-tracking].aggregates, .policies, .publishes, .read_models. Code identifiers in this table are proposed (the model names the concept, not the Go identifier).

TermDefinitionCode identifier (proposed)Not to be confused with
Label RefThe identity of one ShippingLabel.label.LabelReftrackingNumber
Package NoThe number of a package within one purchase order; (poNumber, packageNo) has at most one label.label.PackageNolineNo of a purchase-order line
Ship-to snapshotThe encrypted copy of the address taken from customer-ordering at issue time, kept only to print the label. Never published, never returned.label.ShipToSnapshotShip-To (order.ShipTo), the source of truth in customer-ordering
CarrierWho carries the package, as printed on the label and published on LabelIssued.label.CarrierA Delivery Service Partner (partner.DeliveryServicePartner) in last-mile
Label statusISSUED or VOIDED.label.StatusJourney state
VoidCancel an issued label (VoidLabel, event LabelVoided).label.ShippingLabel.VoidPurchase-order cancellation in vendor-connectivity
Journey stateLABELLED, HANDED_OVER, IN_TRANSIT, AT_STATION, OUT_FOR_DELIVERY, DELIVERED, RETURNED, LOST.journey.StateCustomer order status in customer-ordering (PLACED ... DELIVERED)
Scan typeThe kind of observation a scan records. The model does not enumerate the values; these pages use the name of the source fact.journey.ScanTypeDepartureKind (PICKUP, LINEHAUL, AIR) in linehaul
Applied scanA scan that moved the journey. An out-of-order scan is stored but not applied.journey.Scan.AppliedA duplicate scan, which is refused
Package exceptionA raised problem with a package (RaiseException, event PackageExceptionRaised). The model names one reason: NO_SCAN.journey.ExceptionA failed delivery attempt, which only returns the journey to AT_STATION
SilenceNo scan within the expected leg time plus a tolerance (ExceptionOnSilence).journey.ExceptionOnSilenceNode lateness scored by node-performance
Return to senderEnd the journey as RETURNED from AT_STATION.journey.PackageJourney.ReturnToSenderA customer return (future customer-returns)
LostEnd the journey as LOST from IN_TRANSIT.journey.PackageJourney.DeclareLostAn exception, which keeps the journey open
Catalog dimensions viewLocal, event-fed copy of catalogue dimensions, weight and handling flags.readmodel.CatalogDimensionsViewThe CatalogItem aggregate in offer-availability

Neighbour terms used here​

Derived from: model.yaml → contexts[*].ul of the named owner.

TermDefinition (owner's)Code identifierNot to be confused with
Purchase Order (PO) (vendor-connectivity)The instruction to one vendor node to ship one shipment group in full by requiredShipBy.po.PurchaseOrderThe customer order
Label (vendor-connectivity)labelRef + trackingNumber + carrier; never the address.po.LabelShipping Label (this context), which holds the encrypted address
Required Ship-By (vendor-connectivity)The pickup cutoff the PO must be ready for.po.PurchaseOrder.RequiredShipByHandover, the instant the package actually left
Vendor API (vendor-connectivity)The Open Host Service of vendor-connectivity; its JSON schemas are the Published Language.apis/vendor-connectivity/openapi.yamlThis context's in-org REST API
Ship-To (customer-ordering)The delivery address; synthetic PII held only in customer-ordering.order.ShipToShip-to snapshot
Customer Order (customer-ordering)What the shopper bought, with a promise per shipment group.order.CustomerOrderA package (one order can have many)
Load (linehaul-transportation)The packages consolidated onto one departure.load.LoadA scan (one load event becomes one scan per tracking number)
Pickup Departure (linehaul-transportation)The departure that collects packages at a vendor node at one of its declared cutoffs.departure.KindPickupHandover (the scan of that departure)
Route (last-mile-delivery)One van's ordered stops in one wave.route.RouteA journey
Delivery Attempt (last-mile-delivery)One try to hand a package over: DELIVERED or FAILED with a reason.route.AttemptDELIVERED journey state, which is entered only on a successful attempt
Catalog Item (offer-availability)The network's own entry for a product, independent of who ships it.catalog.ItemA package
Service Tier (delivery-promise)SAME_DAY, NEXT_DAY, TWO_DAY or STANDARD.promise.TierCarrier
Promise Kept / Broken (delivery-promise)The judgement at delivery against deliverByLatest.promise.JudgementPackageDelivered, the fact the judgement uses
Fulfillment Assignment (order-sourcing)The decision of which node and path fulfil one shipment group.assignment.FulfillmentAssignmentA purchase order (one release of an assignment to a vendor node)
Node (node-topology)One physical building of the network, of exactly one node type.node.NodeA scan location (a scan names a nodeId)
On-Time Handover Rate (node-performance)Share of packages handed over before requiredShipBy.scorecard.Metrics.OnTimeHandoverRateHandover itself, which this context only reports

This context does not touch the warehouse-systems fleet, so there is no fleet translation table here. See WMS/WES integration for the one owned by vendor-connectivity.