Skip to main content

Ubiquitous language

The terms of the context and the code identifier that implements each one.

TermMeaningCode
Pick faceA forward bin assigned to one SKU by the site's latest approved slot plan, from which pickers pickrepository.Assignment, usecases.PickFaceView
Forward binThe location code of a pick faceRequest.ForwardBin(), table forward_assignments.bin
Reserve binA known, not decommissioned Storage location of the same site whose zone code is in RESERVE_ZONE_CODESPickFaceReadModel.ReserveBins
Forward zoneA zone whose code is in FORWARD_ZONE_CODES; a face in a known zone outside it is not a pick faceusecases.ZoneConfig.Forward
PolicyThe explicit MIN_MAX rule of one (site, SKU): minQty, maxQty, multiple, versionpolicy.Policy
Min, maxReorder trigger and fill-up ceiling; 0 <= min < maxPolicy.MinQty, Policy.MaxQty
MultipleThe unit a quantity is rounded down to, so a request never overfills the face; default 1Policy.Multiple, Policy.RoundDown
Availableon_hand - reserved of the forward bindetection.Outcome.Available
Open requestThe one Requested request of a pick face; its quantity counts as inbound stockdetection.OpenRequest, RequestRepo.OpenFor
Projected levelavailable + the open request's quantity (0 without one)detection.Outcome.Projected
Usable stockon_hand - reserved of a reserve bin: what it can give up nowdetection.ReserveBin.Usable
Replenishment requestOne decision to move quantity units of one SKU from one reserve bin to one forward bin, and how it endedreplenishment.Request
Request idrepl- plus a random UUID, 41 characters; the request's subject and Kafka keymemory.RandomIDs.NewRequestID
Requested, Completed, CancelledThe states; the last two are finalreplenishment.State
PriorityURGENT when nothing was available at detection (available <= 0), else NORMALreplenishment.Priority
Cancel reasonOPERATOR, ASSIGNMENT_CHANGED (a newer slot plan dropped the assignment), POLICY_REMOVEDreplenishment.CancelReason
Moved quantityThe units a relocation actually moved; can be less than requestedRequest.MovedQuantity
VerdictThe detector's result: Raise, Healthy, AlreadyOpen, NoPolicy, NoSourcedetection.Kind
Pick-face statusThe REST view of a verdict: BELOW_MIN, OK, NO_SOURCE, NO_POLICYusecases.StatusBelowMin and siblings
Source bin policyThe versioned rule that picks the reserve bin; v1 is fullest-reserve-bin-v1detection.SourceBinPolicy, detection.FullestReserve
SweepPOST /sites/{siteId}/evaluations: detect over every pick face of a site; convergesusecases.EvaluateSite
Local copyAn event-fed table this context reads instead of calling a siblingbin_stock_levels, forward_assignments, zones, locations
Forward mapThe site's full SKU-to-slot assignment from the latest approved slot plan, with the plan's approved_at stampforward_assignments, forward_assignment_maps
Stale mapA SlotPlanApproved whose approved_at is not after the recorded one; ignoredApplyForwardAssignmentMap.isStale
Replenishment relocationA StockRelocated with reason REPLENISHMENT and source_ref = the request id; it completes the requestreplenishment.RelocationReason, Request.Complete
OutcomeWhat a consumer did with a message: applied, duplicate, stale, ignoredusecases.Outcome
ClaimThe (consumer, event id) row that makes a consumer effect idempotentprocessed_events, ports.ProcessedEvents
OutboxThe transactional table of already-encoded CloudEvents waiting for the relayoutbox_events, outbox.Message
Idempotency keyThe caller's Idempotency-Key, whose first answer is stored and replayedidempotency_keys, inboundhttp.Idempotency
Dead letterA message moved to <topic>.dlq with x-dlq-* headersinboundkafka.DLQSuffix