Skip to main content

Ubiquitous language

The terms of this bounded context, with the identifier the code uses (package.Type, constant or field) and what each term is not. The network-wide glossary is in the aggregator's Ubiquitous Language. Identifiers are read from internal/domain/assignment, internal/domain/sourcing, internal/domain/network and internal/application/usecases.

This context's terms​

TermDefinitionCode identifierNot to be confused with
Fulfillment assignmentThe decision of which node and path fulfil one shipment group. One per (orderId, groupNo).assignment.Assignment (table assignments)The promise, which only proves one feasible path exists.
Virtual queueWhere QUEUED assignments wait, re-optimisable, until their release point. It is not a store of its own: the rows in state QUEUED, ordered by releaseAt.assignment.StateQueued, assignments_queue_idx, usecases.SweepQueueA queue at the vendor node. Nothing has reached any node while an assignment is queued.
Release (to node)Sending a group to one node; for a vendor node this issues a purchase order.Assignment.Release, assignment.Release, use case ReleaseToNode, event FulfillmentReleasedToNodeA promise release (a provisional hold that expired in delivery-promise).
Path lockThe point after which an assignment never changes node: the vendor's acceptance.Assignment.Lock, assignment.StateLocked, ErrAssignmentLocked, event FulfillmentLockedThe vendor's pick, which the network cannot see. The acceptance stands in for it.
ReassignmentMoving a group to another node after a refusal, or while still queued.Assignment.RefuseRelease, Reoptimise, event FulfillmentReassignedA re-promise, which changes the customer's window. A reassignment never does.
UnsourceableNo node can still meet the promise; the group goes back to delivery-promise.assignment.StateUnsourceable, event FulfillmentUnsourceableA broken promise. Unsourceable is raised before the deadline, so the promise can still be revised.
Promise constraintWhat the assignment must honour: promiseId, tier, deliverByLatest, witnessNodeId, revisionNo.assignment.PromiseConstraintThe full promise terms of delivery-promise. Only these fields cross.
CandidateOne feasible way to fulfil the group: node, pickup departure, legs, delivery wave, eta, cost.assignment.CandidateThe witness path. The witness is one candidate, the best may be another.
Release recordOne attempt to send the group to a node: releaseNo, nodeId, releasedAt, requiredShipBy, outcome (PENDING, ACCEPTED, REJECTED, EXPIRED), reasonCode.assignment.Release, assignment.OutcomeThe purchase order. A release names its purchase order by assignmentId + releaseNo; vendor-connectivity owns the order.
Release pointThe instant an assignment leaves the queue: best candidate's pickup cutoff minus node handling time minus the 30 minute ack budget, never before now; now for SAME_DAY.releaseAt, sourcing.AckBudgetackBy, the vendor's acknowledgement deadline, computed by vendor-connectivity after the release.
Vendor ack budgetThe time reserved, before handling must start, for the vendor to acknowledge.sourcing.AckBudget (30 minutes)The vendor's own ack window.
Excluded nodeA node that refused this group, with the reason (REJECTED:<reasonCode> or EXPIRED). Never chosen again for the same promise revision.assignment.ExcludedNode, ErrNodeExcludedA suspended node, which is unavailable to every group.
Assignment costMoney first (ADR 0011): the declared estimatedCostCents ranks candidates, plus the sourcing policy's surcharge (effectiveCostCents). The ordinal points (100 per onward leg, 10 per hour of wait, 1000 cross-region, a scorecard penalty, 500 book pressure) are the tie-break; then the witness node.sourcing.LegCost, HourCost, CrossRegionPenalty, BookPressurePenalty, Candidate.CostThe scorecard handicap of delivery-promise, which delays a promise.
Sourcing policyThe versioned document the operator publishes: a cross-region surcharge in cents and a regional cost-deviation budget in percent. Every publish is version n+1; version 0 is the default (both 0, off). The search reads it once and the release carries its policyVersion.policy.Policy, sourcing.Policy, table sourcing_policies, PUT /sourcing-policyThe PromisePolicy of delivery-promise, a different document in another context.
Carrier, follower, merged releaseThe groups of one shopper (same consolidationKey, all CONSOLIDATED) released together as ONE purchase order (ADR 0015). The first group whose release timer fires is the carrier: vendor-side services know only its id. The others are its followers: each keeps its own events, locks with the carrier and is delivered with it. A cancel of a member is refused until the carrier locks or the merge dissolves.assignment.Assignment (ConsolidationKey, ConsolidatedInto, Members), sourcing.Merge, FulfillmentReleaseWithdrawnA split of one order into several groups (a different thing: groups of one order are never merged by this rule alone).
Effective costestimatedCostCents plus the surcharges of the sourcing policy; what the comparator and the budget read. Reported on the release only when a surcharge changed the cost.Candidate.EffectiveCostCents, effectiveCostCentsThe estimate itself, which never includes a surcharge.
Cost-deviation budgetcheapest + floor(cheapest * maxCostDeviationPercent / 100): inside it an in-region candidate beats a cross-region one; outside it the cheapest wins.sourcing.Policy.MaxCostDeviationPercent, ordersourcing_budget_preferred_totalA hard cap on cost: nothing is filtered out.
Book pressureKnowing that a node's promise book for a cutoff is exhausted, used as a cost penalty.network.Pressure, table rm_book_pressureDeparture capacity, which linehaul-transportation owns.
Assignment versionA counter that strictly increases with every change of the assignment.Assignment.Version, column version, ErrStaleAssignmentVersionnode-topology's service-area assignmentVersion, an unrelated counter with the same name.
Revision numberThe applied revision of the promise. A higher one resets the exclusion list.PromiseConstraint.RevisionNo, ErrStaleRevisionThe assignment version.
Fill-or-killA group goes to one node in full; a partial answer is not a thing.Assignment.Release with checkReleaseLines, sourcing.ResolveLinesShipment grouping, decided earlier by delivery-promise.
Cancel refusedA cancel request that came after the lock; the state stays and the version moves.Assignment.RefuseCancel, ErrCancelAfterLock, event FulfillmentCancelRefusedA cancellation.
WorldThe immutable snapshot of the read models one search reads.sourcing.World, port WorldReaderThe aggregate.
Inbox, outboxThe rows that make consumers idempotent and publishing transactional.processed_events, outbox_events, ports Inbox, EventOutboxKafka offsets.

Neighbour terms this context uses​

TermDefinition (from the owner)OwnerNot to be confused with
Shipment groupThe lines of an order promised and shipped together from one node; here groupNo.delivery-promiseA package. A group may ship as several packages (trackingNumbers).
PromiseThe network's commitment of a delivery window for one shipment group.delivery-promiseThe assignment, which decides how the promise is kept.
Witness pathThe concrete node, pickup, departures and delivery wave that prove a promise feasible; here witnessNodeId.delivery-promiseThe assigned path.
Service tierSAME_DAY, NEXT_DAY, TWO_DAY or STANDARD.delivery-promisenone
Re-promiseRevising a confirmed promise to a later window; event PromiseRevised.delivery-promiseA reassignment.
Promise bookCapacity ledger of one node pickup cutoff on the promise side; event PromiseBookExhausted.delivery-promiseDeparture capacity.
Purchase orderThe instruction to one vendor node to ship one shipment group in full by requiredShipBy.vendor-connectivityThe release. One release produces at most one purchase order.
AcknowledgementThe vendor's single, whole-order accept or reject.vendor-connectivityThe lock. Only an accept locks.
Required ship-byThe pickup cutoff the purchase order must be ready for; here Release.requiredShipBy.vendor-connectivityThe promise's ship-by at the witness node.
VendorAn organisation operating fulfilment nodes for the network.vendor-connectivityA node.
NodeOne physical building of the network, of exactly one node type.node-topologynone
Node operatorWho runs the building: network or a vendor. Every release target is VENDOR-operated.node-topologynone
Operational profileThe node's declared handling time, cutoffs and hours, versioned by profileRevision.node-topologyThe measured scorecard.
RegionA largely self-sufficient partition of the network; drives the cross-region penalty and the sourcing policy's surcharge and budget.node-topologynone
Service areaThe postal prefixes one delivery station serves; matched exactly to destinationPostalPrefix.node-topologynone
LaneA directed, mode-specific connection between two nodes.node-topologyA departure on that lane.
ListingA catalogue item offered from one node; a release carries catalogItemId and listingId.offer-availabilityThe catalogue item.
Available quantityWhat a node claims it can ship now for one listing.offer-availabilityStock reserved for this group. This context reserves nothing.
Pickup departureThe departure that collects packages at a vendor node at one of its cutoffs.linehaul-transportationnone
DepartureOne scheduled trip on a lane with a cutoff and a capacity.linehaul-transportationnone
Delivery waveA station's dispatch slot: induct cutoff, delivery window and stop capacity.last-mile-deliverynone
Scorecard, gradeA node's measured performance over a window, graded A to D or PROVISIONAL.node-performanceThe declared profile.
Tracking numberThe network-wide unique id of one package.shipping-and-trackingThe group.
Customer orderWhat the shopper bought, with a promise per shipment group.customer-orderingThe assignment, one per group of the order.

No fleet translation table is needed here: this context never touches the warehouse-systems fleet. Only vendor-connectivity does, through its Vendor API.