Skip to main content

Business Context

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.

The business problem​

A shopper decides whether to buy partly on one line of text: "Arrives Thursday." A retailer that shows an early date sells more. A retailer that shows an early date and then misses it loses the customer's trust and pays for the failure. The problem this context solves is to show the earliest date the network can actually keep, and to keep it.

Three things make that hard in this network:

  1. The network does not own the buildings that ship. Fulfillment centres are operated by vendors. A vendor declares its operating hours, cutoffs and handling time (owned by node-topology), and the network measures how well it keeps them (owned by node-performance). The promise must use both, and trust neither blindly.
  2. The date depends on a chain of capacities owned elsewhere. A package leaves a node at a pickup departure, rides scheduled middle-mile departures (linehaul-transportation) and joins a delivery wave at a delivery station (last-mile-delivery). Each has a cutoff and a finite capacity. A date that ignores any link is a guess.
  3. Promising is not assigning. The node that proves a date is feasible now (the witness) need not be the node that ships. order-sourcing decides that later, as late as the promise allows (ADR 0002). The promise only has to be true; the assignment has to be cheap and still true.

The context therefore makes a promise true by construction: a delivery offer exists only if a concrete witness path with remaining capacity exists right now, and a promise reserves capacity on the witness node's pickup cutoff before the shopper pays (ADR 0008).

Actors​

ActorWhat they want from this contextChannel
Shopper, through the storefrontA delivery date per tier on a product page or in the cartPOST /delivery-quotes (Open Host)
customer-ordering (checkout)Offers for the cart, then one promise per shipment group, then updates when a promise changesPOST /delivery-quotes, POST /promises; Kafka PromiseAtRisk, PromiseRevised, PromiseKept, PromiseBroken
order-sourcingRevised constraints when a promise moves, and a signal when a pickup cutoff is fullKafka PromiseRevised, PromiseBookExhausted
node-performanceThe kept / broken judgement per node, to grade itKafka PromiseKept, PromiseBroken
The network's own clockExpired offers and expired holds cleaned up, books closed at their cutoffinternal sweeps (ExpireOffers, ReleaseExpiredHolds, CloseBook)

Network-ops planners, vendors and delivery partners never talk to this context directly. Their decisions reach it as events from the contexts they do talk to.

What it decides​

  • Whether a tier can be offered at all. No feasible path means no offer at that tier, with the constraint that blocked it: DESTINATION_NOT_SERVED, ITEM_QUANTITY_NOT_AVAILABLE, DELIVERY_SLA_UNAVAILABLE or NODE_CAPACITY_EXHAUSTED.
  • The window. The earliest feasible path wins: earliest delivery-wave window end, then in-region, then fewer legs, then the better scorecard grade. The window shown is the window of the delivery wave that path ends in.
  • How much to trust a node. A node's ship-by is pushed later by its scorecard grade (the handicap), never silently dropped.
  • How a cart splits. One node for the whole cart if possible; otherwise the fewest shipment groups, one promise each.
  • Whether to offer a later, consolidated day. The opt-in CONSOLIDATED tier is quoted only when the caller asks for it, on a day the shopper chooses at or after the fastest window. It may fall back to nominal lane times like STANDARD, and it says whether the day leaves room to merge the order (consolidationEligible). The estimates route never returns it.
  • When a fast tier is honest. SAME_DAY, NEXT_DAY and TWO_DAY are quoted only from scheduled departures and waves. Only STANDARD and CONSOLIDATED may fall back to nominal lane times, and the promise then records basis NOMINAL.
  • How much demand a pickup cutoff can take. Provisional plus confirmed holds never exceed the node's share of that cutoff.
  • Whether the promise was kept. Kept means delivered on or before deliverByLatest.

The search itself is described step by step in the Use Cases page, and worked through with numbers in the promise model.

How this relates to the real fulfillment networks​

The shape of this context follows public descriptions of how a large retail network promises delivery: a date computed from the network's real schedules and capacity, regional fulfillment and delivery stations, scorecards that penalise vendors who ship late, and fast tiers that are constrained at peak. The facts, with citations, are on public fulfillment-network research. What a vendor can and cannot declare through a public API, and how promise and acknowledgement windows appear there, is mapped on the vendor platform API surface map. Other retailers and order-management products used as benchmarks are on the benchmarks page.

None of this pack claims anything about a real company's internal services. DeliveryOffer, Promise, PromiseBook, the witness path and the handicap are this proposed model's names.

Deliberately out of scope​

Out of scopeWho owns it instead
Choosing the node that actually ships, and moving it until the vendor acceptsorder-sourcing (path lock on acceptance, ADR 0005)
Registering nodes, lanes, service areas and regionsnode-topology
Scheduling departures and booking packages onto themlinehaul-transportation
Delivery waves, routes and delivery attemptslast-mile-delivery
Grading nodesnode-performance (this context only applies the grade)
Listings and available quantitiesoffer-availability
The shopper, the ship-to address and the ordercustomer-ordering (PII stays there, ADR 0006)
Notifying the customer of a revised datecustomer-ordering today; a future customer-notification context
Deciding which node should hold which item before demandseller-inbound's advisory placement plan (gap G49); the seller still names the destination node
Anything inside a vendor's buildingthe vendor (the warehouse-systems fleet is one vendor, reached only through the Vendor API)

This context never calls a warehouse-systems service and never reads a warehouse.* topic. It never sees an address: it promises to a destination postal prefix.