Skip to main content

Ubiquitous Language

The terms this context speaks, each with the Go identifier that implements it in internal/domain. The domain-wide glossary is on Ubiquitous Language.

Source: internal/domain/node/{node,types,profile,inbound}.go, internal/domain/lane/lane.go, internal/domain/servicearea/servicearea.go, internal/domain/region/region.go.

Context terms​

TermDefinitionCode identifierNot to be confused with
NodeOne physical building of the network, of exactly one node type.node.NodeA fleet site (siteCode): the fleet's own record of a building it runs. One vendor node corresponds to one fleet site only through the fleet's persisted mapping.
Node TypeFULFILLMENT_CENTER, INBOUND_CROSS_DOCK, RETURNS_CENTER, SORTATION_CENTER, DELIVERY_STATION or AIR_HUB.node.TypeThe fleet's siteRole (finer grained, for example ROBOTICS_SORTABLE_FC); it maps to a node type plus a subtype.
Node OperatorWho runs the building: NETWORK or a VENDOR.node.OperatorDeclared by (VENDOR or NETWORK_OPS, node.DeclaredBy): who declared one profile revision.
Operational ProfileThe node's declared operating hours, cutoffs, handling time, throughput cap and time zone, versioned by its revision.node.OperationalProfileThe Scorecard (node-performance): measured, not declared.
CutoffA local time by which a node declares packages are ready to be handed over; the network schedules one pickup departure per cutoff.node.CutoffSlotRequired Ship-By (vendor-connectivity): the one cutoff instant a purchase order must meet. The fleet's CPT: see the fleet translation below.
Handling TimeDeclared time from order release to a package ready for handover.node.ProfileDeclaration.HandlingTimeMinutesNominal transit (a lane's travel time) and the fleet's cycleTimeP95 (a measured per-path figure).
Sort DwellDeclared minutes a package normally spends inside a sortation centre or air hub between arrival and departure; declared only by those node types (ErrSortDwellNotAllowed).node.ProfileDeclaration.SortDwellMinutesHandling Time.
Throughput CapDeclared maximum orders per time unit (HOUR or DAY) a node accepts.node.ThroughputCapA departure's package capacity (linehaul-transportation) and a promise book's share (delivery-promise).
LaneA directed, mode-specific connection between two nodes.lane.LaneA Departure (one scheduled trip on a lane) and a Lane Schedule (the weekly template), both owned by linehaul-transportation.
RegionA largely self-sufficient partition of the network.region.RegionA region line of a ship-to address in customer-ordering (an address field, not a network partition).
Service AreaThe postal prefix one delivery station serves, versioned by an assignment version.servicearea.ServiceAreaA delivery wave's window (last-mile-delivery); a service area says who serves a prefix, not when.

Further terms​

Terms that appear in this context's value objects, invariants and events but are not aggregates of their own.

TermDefinitionCode identifierNot to be confused with
Node SubtypeA refinement of FULFILLMENT_CENTER: SORTABLE, NON_SORTABLE, XL, SOFT_LINES, SUB_SAME_DAY, FRESH, MICRO (ErrSubtypeNotAllowed for any other type).node.SubtypeNode Type.
Node CapabilitiesOutbound, Inbound, Returns, Sort, LastMile, Air, derived from the node type (policy DefaultCapabilitiesByType) and never set by a caller.node.Capabilities, node.Type.Capabilities()A vendor's claimed availability (offer-availability).
Node StatusPROPOSED, ACTIVE, SUSPENDED, RETIRED.node.StatusThe lane status OPEN / CLOSED (lane.Status).
Parcel nodeA SORTATION_CENTER, DELIVERY_STATION or AIR_HUB; always operator NETWORK.node.Type valuesA vendor node.
Profile RevisionThe strictly increasing version of a node's operational profile (ErrStaleProfileRevision).node.ProfileDeclaration.Revision, table node_profile_revisionsThe aggregate's optimistic-concurrency version (Node.Version()).
Operating Hours by DayThe hours a node works on each day of the week, in its time zone: weekday to {start, end} with HH:mm times; a missing day is closed.node.OperatingHours, node.DayHoursHolidays (ProfileDeclaration.Holidays): ISO dates on which the node is closed all day.
Vendor Node CodeThe vendor's own code for one of its nodes, unique per vendor (ErrVendorNodeCodeTaken).node.VendorRef.VendorNodeCodenodeId (node.ID), which the network mints.
Lane ModeGROUND or AIR.lane.ModeDeparture kind (PICKUP, LINEHAUL, AIR) in linehaul-transportation.
Nominal TransitA lane's nominal travel time in minutes. Only STANDARD promises may fall back on it.lane.Lane.NominalTransitMinutes()A scheduled departure's real departsAt to arrivesAt.
Assignment VersionThe strictly increasing version of a postal prefix's service-area assignment (ErrStaleAssignmentVersion).servicearea.ServiceArea.AssignmentVersion()assignmentVersion of a FulfillmentAssignment in order-sourcing, which shares the name and the error ErrStaleAssignmentVersion but nothing else.
Postal PrefixThe key of a service area: 1 to 16 characters from A-Z, 0-9 and -, matched exactly and never normalised.servicearea.PostalPrefixA full postal code (node.GeoLocation.PostalCode).
Inbound LimitsA receiving node's declared carton weight and size limits, whether it accepts pallets and whether it requires an SSCC on every carton (ADR 0007).node.InboundLimits, node.CartonDimsA purchase order's requiredShipBy, which is about outbound handover.

Neighbour terms used here​

Owned by other contexts; the identifiers are theirs and are not checked against this repository.

TermDefinitionOwner and code identifierNot to be confused with
VendorAn organisation operating fulfillment nodes for the network (the warehouse-systems fleet is vendor V-WS).vendor-connectivity, vendor.VendorAccountNode Operator VENDOR, the value on a node.
Vendor APIThe Open Host Service of vendor-connectivity; its JSON schemas are the Published Language.vendor-connectivity, apis/vendor-connectivity/openapi.yamlThis context's own REST API, which only vendor-connectivity and network roles call.
Submission / TransactionAn asynchronous vendor write and its outcome, reconciled by transactionId.vendor-connectivity, submission.SubmissionA synchronous POST /nodes here, which a submission triggers.
Required Ship-ByThe pickup cutoff a purchase order must be ready for; the fleet calls it the CPT.vendor-connectivity, po.PurchaseOrder.RequiredShipByCutoff (the recurring local time declared here).
Pickup DepartureThe departure that collects packages at a vendor node at one of its declared cutoffs.linehaul-transportation, departure.KindPickupCutoff, which it is generated from.
DepartureOne scheduled trip on a lane with a cutoff and a capacity.linehaul-transportation, departure.DepartureLane.
Delivery WaveA station's dispatch slot: induct cutoff, delivery window and stop capacity.last-mile-delivery, wave.DeliveryWaveService Area.
ScorecardA node's measured performance over a rolling window, with a grade.node-performance, scorecard.NodeScorecardOperational Profile.
Declared vs MeasuredWhat a vendor says (profile) against what the network observes (scorecard).node-performance, principle
Service TierSAME_DAY, NEXT_DAY, TWO_DAY or STANDARD.delivery-promise, promise.TierNode subtype SUB_SAME_DAY, which is one input to the SAME_DAY path.
ListingA catalogue item offered from one node.offer-availability, listing.ListingNode.

Fleet translation​

Network term against the warehouse-systems fleet term. The canonical table for the whole seam is on WMS/WES integration; these rows are the ones this context owns. The fleet never sees this context: every row crosses through the Vendor API of vendor-connectivity, and the fleet's network-fulfillment translates.

Network term (this context)warehouse-systems termHow they relate
nodeIdsiteCode (facility-layout)The network mints nodeId when it registers the node. The fleet's network-fulfillment holds the nodeId to siteCode correspondence as a persisted mapping, never as a string convention.
vendorNodeCodechosen by network-fulfillment for the siteThe vendor's own code for the node, unique per vendor. The network never parses it and never derives a siteCode from it.
Node Type + SubtypesiteRole (facility-layout)Mapped by the fleet-site-role table on the aggregator's Business Context page.
Parcel node (SORTATION_CENTER, DELIVERY_STATION, AIR_HUB)siteRole SORTATION_CENTER, DELIVERY_STATION, AIR_HUB_GATEWAYNetwork-operated. The fleet's rows are reference mirrors only and are never registered.
CutoffCPT (Critical Pull Time)A network cutoff is the local time a vendor node declares packages ready for a pickup departure. The fleet plans its floor against its CPT schedule. A purchase order's requiredShipBy is one cutoff instant, which the fleet reads as a CPT.
Handling TimecycleTimeP95 (process-path-management)Handling Time is one declared node-level figure. cycleTimeP95 is a measured per-path percentile inside the fleet. The fleet may base its declaration on it; the network never sees cycleTimeP95.
Operational Profilethe fleet's declaration through PUT /vendor/nodes/{nodeId}/profileThe fleet composes the profile; this context stores each revision as declared (declaredBy VENDOR).

Inbound limits​

The limits are built as ADR 0007 decided and gated as ADR 0015 decided: only a node type with the INBOUND capability (FULFILLMENT_CENTER, INBOUND_CROSS_DOCK) declares them; any other type is ErrInboundLimitsNotAllowed (422 inbound-limits-not-allowed), and the values are checked (ErrValidation, 422 validation-failed) only after the gate. FULFILLMENT_CENTER carries INBOUND beside OUTBOUND, which closes the network model's gap G64 (see Integration).