Skip to main content

Ubiquitous Language

The terms this context speaks, each mapped to the code identifier that implements it. Where the business word and the code name differ, the difference is flagged in the last section. Code wins over this page.

Network side (the counterpart's concepts, translated at the ACL)​

TermMeaningCode identifier
NetworkThe external retail fulfillment network this context is Conformist to. Since ADR 0009 the fleet's own retail-network plays this role.ports.NetworkGateway; internal/adapters/outbound/network
NetworkRefThe network's own opaque identity for one unit of demand (its purchase-order number). It is never parsed, and it is the primary key.shared.NetworkRef; column network_orders.network_ref
NetworkLineRefThe network's identity for one line, unique only within its order.shared.NetworkLineRef; network_order_lines.network_line_ref
NetworkProductIdThe network's product identifier. It is not a SKU.shared.NetworkProductId; network_order_lines.network_product_id
Inbound demandOne unit of demand as polled, before translation.contract.InboundDemand, contract.InboundLine
Network modeWhich gateway is wired: stub (default) or live (refuses to boot).network.Mode, ModeStub, ModeLive; env NETWORK_MODE
Submission statusThe network's transaction-status answer for a submission: PENDING, SUCCESS or FAILURE.contract.SubmissionStatusValue, SubmissionPending/Success/Failure
LabelWhat a label request may return: {labelRef, trackingNumber, carrier} and never ship-to PII.contract.LabelResult (port only; no caller)

Our side​

TermMeaningCode identifier
NetworkOrderDemand from the network with a deadline we did not choose, answered exactly once, in full or not at all.networkorder.NetworkOrder
LineOne line already translated into our vocabulary. It keeps the network's product id, because answers go back in the network's terms.networkorder.Line, NewLine
SKUOur product identity. It is only ever the output of translation.shared.SKU
Product translationThe ACL dictionary from NetworkProductId to SKU.ports.ProductTranslation (ToSKU, KnownSKUs) and, read the other way per site by the inventory feed, ports.FeedCatalogue (ListedSKUs) and the live gateway's listing lookup (ListingFor); file PRODUCT_TRANSLATION_FILE
Untranslatable demandDemand naming a product with no mapping. It is recorded lineless and rejected.networkorder.ReceiveUntranslatable; shared.ErrUnknownProduct
SiteIdThe fulfillment site the demand is destined for.shared.SiteId
requiredShipByThe network's deadline, passed to order-management unchanged.NetworkOrder.RequiredShipBy(); HeldOrderRequest.RequiredShipBy
Acknowledgement window24h. A fact about the counterparty, not configuration.networkorder.AcknowledgementWindow
acknowledgeByreceivedAt + 24h, fixed at receipt and persisted.NetworkOrder.AcknowledgeBy(); network_orders.acknowledge_by
OverdueStill NEW and past acknowledgeBy.NetworkOrder.AcknowledgementOverdue(now)
Held orderAn order-management order raised allocated but not released (releaseOnAllocation: false, ship-complete).FulfillmentPlanner.RaiseHeldOrder; contract.HeldOrderRequest/Result
Feasibleorder-management's verdict that the deadline can be met, read from the presence of a promiseDate.contract.HeldOrderResult.Feasible
LocalOrderIdorder-management's OrderId for the held order. A persisted one-to-one mapping, recorded on the order as soon as the hold is raised (ADR 0024); REST and MCP show it from SUBMITTED on.shared.LocalOrderId; network_orders.local_order_id; NetworkOrder.RecordHold, CommittedLocalOrderId
HoldThe held order this context raised in order-management for a demand, as NF records it: the LocalOrderId plus how it ended. It reserves real inventory until it is released or cancelled.NetworkOrder.LocalOrderId(), HoldOpen()
Pending shipmentA shipment that left (outbound-shipping's ShipmentConfirmed) while the order was still SUBMITTED: its shipment reference (the load id), package count and when it was noted. Kept on the order until it is ACKNOWLEDGED and then confirmed; the first one noted wins (ADR 0014 addendum D7). Not a State.networkorder.PendingShipment; NetworkOrder.NoteShipmentBeforeAcknowledge, DropPendingShipment; network_orders.pending_shipment_ref, pending_package_count, pending_shipment_noted_at
Hold outcomeHow the hold ended, as far as this context has confirmed: CANCELLED (a 2xx or a 404 on the cancel) or ALREADY_RELEASED (a 409 or 422, someone released it). Unset while the hold is open. Not a State.networkorder.HoldOutcome, HoldCancelled, HoldAlreadyReleased; network_orders.hold_outcome, hold_settled_at
Orphaned holdA recorded, still-open hold of a NEW or REJECTED order, once now is past acknowledgeBy plus the grace: nobody decided it any more.NetworkOrder.HoldOrphaned(now, grace)
GraceORPHAN_HOLD_GRACE (default 1h), added to acknowledgeBy so RejectOverdueOrders frees the hold first and the sweep stays a backstop.SweepOrphanedHolds.Grace; env ORPHAN_HOLD_GRACE
Orphaned-hold sweepThe pass that cancels orphaned holds and records their outcome.SweepOrphanedHolds, runSweepOrphanedHolds
Orphaned hold cancelledThe reported fact that the sweep freed a hold: answer is CANCELLED (2xx) or NOT_FOUND (404). Not a state transition.shared.OrphanedHoldCancelled, shared.HoldAnswer
SubmitDecide to accept in full and tell the network. A commitment in flight.NetworkOrder.Submit(); state SUBMITTED
ReconcileAsk the network whether a submission settled.ReconcileSubmittedOrders; NetworkGateway.SubmissionStatus
AcknowledgedThe network has confirmed our acceptance. A settled commitment.NetworkOrder.ConfirmAcknowledgement(); state ACKNOWLEDGED
RejectedWe told the network no. Terminal.NetworkOrder.Reject(); state REJECTED
Rejection reasonWhy we refused: untranslatable SKU, infeasible deadline, acknowledgement deadline missed, or submission failed.shared.RejectionReason (UNTRANSLATABLE_SKU, INFEASIBLE_DEADLINE, ACKNOWLEDGEMENT_DEADLINE_MISSED, SUBMISSION_FAILED)
ReleaseCommit the held order to the floor, after SUCCESS.FulfillmentPlanner.ReleaseHeldOrder
Cancel holdAbandon the held order and free its reservations. order-management answers 2xx, 404 (gone) or 409/422 (already released); only the orphaned-hold sweep treats the last two as answers.FulfillmentPlanner.CancelHeldOrder; contract.ErrHeldOrderNotFound, ErrHeldOrderAlreadyReleased
Shipment confirmationTell the network the order shipped, which closes it.NetworkOrder.ConfirmShipment(); ConfirmNetworkOrderShipment; state CONFIRMED
Deadline at riskThe reported fact that an order is overdue. Re-fired on every sweep pass.shared.AcknowledgementDeadlineAtRisk; SweepAcknowledgementDeadlines
CapabilityOfferWhat we would tell the network we can ship for one (sku, siteId).capabilityoffer.CapabilityOffer
Advertised quantitymin(physicalAvailable, throughputFeasible), never above physical stock.CapabilityOffer.AdvertisedQuantity(); capabilityoffer.Compute
BasisWhich rule produced the quantity: PHYSICAL or THROUGHPUT_CONSTRAINED.capabilityoffer.Basis, BasisPhysical, BasisThroughputConstrained
Physical available / usable inventoryOn-hand minus reservations minus held stock, from inventory-storage.ports.InventoryAvailability.UsableQuantity
Next cutoff (CPT)The site's next Critical Pull Time and the paths eligible for it.ports.ProcessPathCapability.NextCutoff; contract.NextCutoff, EligiblePath
Remaining capacityWhat a path can still admit before a cutoff, from wes-work-planning.ports.PathCapacity.RemainingCapacity
Throughput feasibleRemaining capacity summed over the eligible paths with a known figure.RecomputeCapabilityOffers.throughputFeasible

Terms whose code name differs​

Business termCode nameNote
"Acknowledge" (business)Submit then ConfirmAcknowledgement; Acknowledge() does bothAcknowledge() exists for tests and fixtures. The real flow splits it across ReceiveNetworkDemand and ReconcileSubmittedOrders.
"Acknowledged" eventNetworkOrderAcknowledged (v2)Decided 2026-10-06 (ADR 0016): raised only when the order settles ACKNOWLEDGED (ReconcileSubmittedOrders). The earlier fact, the move to SUBMITTED, is NetworkOrderSubmitted.
"Not acknowledged" errorErrNotAcknowledgedReturned by LinkLocalOrder when the state is not SUBMITTED/ACKNOWLEDGED. The name predates the SUBMITTED state.
"Linked" local orderLocalOrderId on the aggregate, recorded by RecordHold at raise timeLinkLocalOrder (at SUBMITTED) is now a no-op for the id RecordHold already stored; ErrLocalOrderAlreadyLinked still means a different id.
"Deadline at risk"AcknowledgementDeadlineAtRiskADR 0001 §6 says "approaching" the deadline. The code fires only once it is already past (AcknowledgementOverdue).
Purchase order / ASIN / poNumberNetworkRef / NetworkProductIdBy design (Hard rule 1). The counterpart's names never appear outside adapters/outbound/retailnetwork/.
"Planner"FulfillmentPlannerThis is order-management seen through a port. It does not plan anything itself.