Business Context
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 problem
The retail network owns the customer, the catalogue, the promise, sourcing
and the parcel network. It does not operate fulfillment centres. Every
fulfillment, cross-dock and returns node belongs to a vendor (see
ADR 0004). The
warehouse-systems fleet is one such vendor, V-WS; there can be many.
So the network has a buying problem. Once order-sourcing releases a
shipment group to a vendor node, the network needs a firm answer from a
company it does not control: "yes, all of it, by the pickup cutoff" or
"no". It needs that answer early enough to send the group elsewhere if the
answer is no. Until the answer is yes, the network cannot lock the path
(ADR 0005).
Vendors, in turn, need one stable contract they can integrate once: how to register a building, how to tell the network what the building can do, how to report stock, how to see work, how to answer it, how to get a label and how to say it shipped. They build to that contract; the network does not build to theirs. That is an Open Host Service with a Published Language.
Actors
| Actor | What they do here | Channel |
|---|---|---|
Vendor system (for V-WS: the fleet's network-fulfillment) | Registers nodes, declares profiles, sends inventory, polls and acknowledges purchase orders, requests labels, confirms shipment, reconciles transactions, reads its scorecard | Vendor API (/vendor/...) |
| Network partner manager (human) | Onboards a vendor and sets its acknowledgement window | REST POST /vendors |
order-sourcing | Releases a shipment group to a vendor node, or cancels it | Kafka events |
node-topology, offer-availability | Own the node registry and the listings; this context relays vendor writes to them and keeps local views of their facts | REST (in-org) and Kafka |
shipping-and-tracking | Issues the label for each package | REST (in-org) |
node-performance | Measures every vendor node from this context's facts; serves the scorecard | Kafka, REST (in-org) |
Decisions this context makes
These come straight from business_decisions in the model.
- Acknowledge once, in full, before
ackBy. Fill-or-kill. A partial acknowledgement is refused (ErrPartialAcknowledgement); a second one is refused (ErrAlreadyAcknowledged); a late one is refused (ErrAckWindowClosed). ackBy = min(issuedAt + vendor ackWindow, requiredShipBy - node handlingTime). The vendor never gets more time to answer than it has left to pick and pack.- A label only for an
ACCEPTEDpurchase order; a shipment confirmation only after a label (ErrLabelBeforeAcceptance,ErrConfirmWithoutLabel). - Every vendor write returns
202with atransactionId. The write takes effect when its transaction succeeds, not when the request returns. - The Vendor API never carries ship-to PII. A label is
labelRef,trackingNumberandcarrier. The address stays inshipping-and-tracking(ADR 0006). - Rate limits are part of the contract:
429withRetry-After.
How this relates to the real-world reference
The protocol is modelled on a large retailer's direct-fulfillment vendor interface, in the network's own vocabulary: polled orders, whole-order acknowledgement inside a window, asynchronous submissions reconciled by a transaction id, label then shipment confirmation. The public facts and their citations are on the vendor platform API surface map; how vendor nodes fit a large logistics network is on public fulfillment-network research. This page restates no numbers from either. Where the model deliberately departs from the reference (for example, operational profile declared through the API rather than out-of-band configuration), the reason is ADR 0003.
The simulation knobs make the network behave like a demanding real counterpart, so the fleet's Anti-Corruption Layer can be exercised. All default to well-behaved:
| Knob | Effect |
|---|---|
TX_PROCESSING_DELAY | A submission is not processed before notBefore = receivedAt + delay (ErrSubmissionNotDue) |
TX_FAILURE_RATE | Share of submissions that end in FAILURE |
RATE_LIMIT_RPS | Request rate above which the API answers 429 with Retry-After |
PO_REDELIVERY_RATE | Share of polls that return a purchase order already delivered |
Out of scope
- Payments and invoicing. A future Generic context
(
payments-and-invoicing). - Vendor authentication. No auth, consistent with the fleet. The vendor names itself in each write.
- Inventory placement. Vendors place their own stock;
seller-inboundoffers sellers an advisory placement plan (gap G49). A seller names the destination node inseller-inbound. - Returns authorisation. The future
customer-returnscontext routes returns to aRETURNS_CENTER; this context only lets a vendor register one. - Measuring the vendor.
node-performanceowns the scorecard; this context only relays it. - Choosing the node.
order-sourcingowns assignment and reassignment; this context reports the vendor's answer and never picks another node. - Anything inside the warehouse. No retail-network context reads a
warehouse.*topic or calls a fleet service. The fleet calls this API; this context never calls the fleet.
Inbound shipments and receipts
Built, ADR 0009 as realized by
vendor-connectivityADR 0005 (inbound shipments, inbound receipts and catalogue packaging). This section is the delta the seller-inbound design added to this page; where the service decided differently, the text below says so.
A seller's cartons reach a vendor node through this context, not directly.
The vendor polls GET /vendor/inbound-shipments for a carton manifest
(published by seller-inbound as InboundShipmentLabelled, and made visible to the vendor once InboundShipmentShipped) and answers with
POST /vendor/inbound-receipts, a carton-level receipt. The Vendor API stays
the only channel between the two organizations. The model decides the shape
of the exchange; how a vendor's own systems receive the cartons is the
vendor's business.