warehouse-systems · ecosystem executive briefing

Retail network

Promise an arrival date the network can keep, then prove it order by order
11 bounded contexts46 event routes between thembusiness + architecture

This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic. · November 2026

the short version · read this if nothing else

The network promises from a real path, assigns the node as late as it can, and grades every node on what happened.

1

Every quoted date rests on a feasible path with capacity held: a node cutoff, a departure, a delivery wave.

2

Which node fulfils an order is decided late, and the vendor's acceptance locks the path.

3

Measured node grades feed the next promise, so the network learns from what actually happened.

The ask

Agree to measure before adding features: extend analytics read sides to the seven contexts that have none.

part 1 · the business · why it exists

A delivery date is a promise, and the network exists to keep it

The retail network is the part of a retail business between a shopper's click and their doorstep. It tells the shopper an arrival date, takes the order, picks which fulfilment node ships it, moves the parcel through sortation, linehaul and last mile, tracks it, and measures every node against what it declared. The warehouse fleet is one vendor of this network, not part of it.

Today

Every context is built as a service on develop and wired into the reference cluster definition; the warehouse fleet plugs in as one vendor.

The catch

Only four contexts have an analytics read side, there are no report screens yet, and every REST and MCP endpoint is unauthenticated.

part 1 · the business · who it is for

Shoppers, vendors, sellers and planners each use a different door

Shopper

needs

See a delivery date before buying and have it kept

served by

delivery-promise quotes it; customer-ordering and shipping-and-tracking show status

Vendor node operator

needs

Receive purchase orders, accept or refuse them, and ship with a label

served by

vendor-connectivity, the Vendor API; the warehouse fleet is one such vendor

Seller

needs

Get stock into the network in labelled cartons and see what was received

served by

seller-inbound plans, labels and closes each inbound shipment

Network planner

needs

Declare nodes, lanes and cutoffs, and see how every node performs

served by

node-topology, linehaul-transportation and node-performance

Delivery station operator

needs

Know wave capacity, get routes for partners and record each attempt

served by

last-mile-delivery waves, routes and delivery attempts

part 1 · the business · A shopper's order, promise to doorstep

One order crosses the network from a quoted date to the doorstep

1

Quote a date

delivery-promise

Offer quoted only from a feasible witness path: DeliveryOfferQuoted

2

Place the order

customer-ordering

Promise confirmed per group, then CustomerOrderPlaced

3

Source late

order-sourcing

Queued group re-optimised, then FulfillmentReleasedToNode

4

Purchase order

vendor-connectivity

Release becomes a purchase order the vendor must answer in full

5

Node fulfils

warehouse-systems fleet

Fleet WMS accepts; PurchaseOrderAccepted locks the path

6

Middle mile

linehaul-transportation

Pickup at the node cutoff: LoadDeparted, then LoadArrived

7

Last mile

last-mile-delivery

Package inducted into a wave; route planned, attempts recorded

8

Track to the door

shipping-and-tracking

One timeline ends delivered, returned or lost: PackageDelivered

A shopper's order, promise to doorstep · press → to walk the story step by step · each chip is the bounded context that owns the step

part 1 · the business · what it can do

The network promises, sources, moves, tracks and grades, each in its own context

Promise and order
Quote delivery offersDates per tier from a feasible path, with capacity helddelivery-promise
Judge every promiseEach promise ends kept or broken, with a stated causedelivery-promise
Sellable listingsOne listing per item and node, with the vendor's basisoffer-availability
Capture the orderCheckout, order record, status views and cancellationcustomer-ordering
Source and connect
Late node assignmentVirtual queue, re-optimised until release, locked on acceptanceorder-sourcing
Vendor APIPurchase orders, fill-or-kill acknowledgements, labels, confirmationsvendor-connectivity
Seller inboundPlans, SSCC-labelled cartons and receipts with discrepanciesseller-inbound
Know the network
Node registryNodes, declared profiles, lanes, regions and service areasnode-topology
Node scorecardsGrades from observed facts, never from declarationsnode-performance
Fast-tier eligibilityA 7-day window keeps weak nodes out of the fastest tiersnode-performance
Move the parcel
Scheduled departuresPickups at every vendor cutoff, with remaining capacitylinehaul-transportation
LoadsPackages built onto departures, with depart and arrive factslinehaul-transportation
Delivery wavesInduct cutoff, delivery window and stop capacitylast-mile-delivery
Routes and attemptsRoutes for delivery partners; every attempt is recordedlast-mile-delivery
Label and track
Shipping labelsThe only place besides ordering that sees the ship-to addressshipping-and-tracking
Package timelineOne customer-visible journey from handover to deliveredshipping-and-tracking
Ship-to retentionThe address snapshot is purged after the journey closesshipping-and-tracking
CoreSupportingGeneric· tile edge = DDD subdomain class of the owning context (gold = the competitive edge)
part 1 · the business · what is different

Dates come from real capacity, and the node is chosen late

Dates proven by a witness path

A quote exists only if a real route does: a node cutoff, departures with room, a wave with stops left. Fast tiers never use guessed times.

delivery-promise; ADR 0008, promise-model

Node chosen late, locked on accept

Sourcing keeps each group queued and may pick a different node than the promise, if the date still holds. The vendor's acceptance locks it.

order-sourcing; ADR 0002, ADR 0005

Declared, then measured

Nodes declare hours and cutoffs; node-performance grades them on facts, and the grade delays them or keeps them out of the fastest tiers.

node-performance; ADR 0003

Addresses live in two places

Ship-to addresses stay in customer-ordering and shipping-and-tracking. Events carry only a postal prefix; vendors get a label, never an address.

customer-ordering; ADR 0006
part 1 · the business · the house rules

A few house rules keep every promise honest and every address private

1
Fast tiers need a real scheduled pathA guessed time becomes a commitment the node is measured against; only standard may fall back to nominal times.
delivery-promise
2
Capacity is held from quote to orderHolds expire with checkout, so a node cutoff is never sold twice beyond its share.
delivery-promise
3
A vendor's acceptance locks the nodeAcceptance is all or nothing; after it, no vendor works an order the network has moved away.
vendor-connectivity
4
Never break a promise silentlyWhen no node can keep the date, sourcing says so and the promise is revised, not quietly missed.
order-sourcing
5
Only two contexts ever hold an addressWhat a service never had, it cannot leak; other events carry just the postal prefix.
customer-ordering
6
Suspending a node is a human decisionGrades only delay a node or limit its fast tiers; suspension stays with people in node-topology.
node-topology
part 1 · the business · against the market

Structurally close to public research on large networks, but not yet measuring

PartialLarge retail fulfillment networksvs Large retail fulfillment networks, from public operator research

Where we match or lead

  • Node taxonomy, regions and a tier ladder mirror what public research describes
  • Capacity held per node cutoff at quote time is explicit here; public sources say little about it
  • Node scorecards feed the promise handicap and fast-tier eligibility
  • A Vendor API plus seller inbound with SSCC cartons covers vendor-operated nodes

Gaps to close

  • High Only four contexts have an analytics read side; the other seven measure nothing yet
  • Medium Cost is planner-declared, not measured; no cost-per-order reporting exists yet
  • Medium No context owns customer returns or notifications; failure prevention is thin
  • Low Placement advice is advisory only; inbound freight and commingling are not modelled

Leader capabilities are public research and vendor-published material; gaps reflect repo docs reviewed in November 2026. Our judgement, not a certification.

part 2

Under the hood

How the 11 contexts are cut, how they talk to each other, and what holds them together.
1 · principles2 · context map3 · who listens to whom4 · layers & patterns5 · seams6 · decisions & platform7 · risks & roadmap
11bounded contexts
46event routes inside
160decisions on record
11MCP servers
part 2 · architecture · the ground rules

Events, local read models and one owner per fact keep contexts independent

Events in, local read models

Contexts keep local copies of sibling facts fed by events; the promise makes no synchronous call.

One owner per fact

Topology owns nodes, linehaul owns departures, last mile owns waves; consumers conform and never write back.

Open Host Service everywhere

Each context publishes REST plus CloudEvents on its own topics; no shared database between contexts.

Outbox out, idempotent in

Every event leaves through a transactional outbox, and every consumer dedupes on the CloudEvents id.

A hard boundary to the fleet

No network context reads a warehouse topic; the only door is the Vendor API, and identifiers are mapped, never parsed.

part 2 · architecture · the context map

Two Core contexts sit on top of facts supplied by all the others

Commerce: promise andorderQuote, hold, place and source: thetwo Core contexts and their directPartner doorsWhere vendors and sellers reachthe network and its purchaseLogistics: move andtrackMiddle mile, last mile, labels andthe package timelineNetwork facts andgradesThe registry of nodes and lanes,and the measured grades on everyNext doorother ecosystems: dashed pills,real Kafka routesdelivery-promisecustomer-orderingorder-sourcingoffer-availabilityvendor-connectivityseller-inboundlinehaul-transportationlast-mile-deliveryshipping-and-trackingnode-topologynode-performancecustomer-paymentspricingproduct-contentproduct-discoveryshopping-cart
CoreSupportingGeneric· every curve is a real event route (producer → dot = consumer), derived from the AsyncAPI contracts · dashed ring = busiest publisher
part 2 · architecture · who listens to whom

46 event routes wire 42% of the possible pairs, so the contexts are densely woven: change one and several others notice

LISTENS TO → (columns)PUBLISHES ↓ (rows)delivery-promisedelivery-promisecustomer-orderingcustomer-orderingorder-sourcingorder-sourcingoffer-availabilityoffer-availabilityvendor-connectivityvendor-connectivityseller-inboundseller-inboundlinehaul-transportationlinehaul-transportationlast-mile-deliverylast-mile-deliveryshipping-and-trackingshipping-and-trackingnode-topologynode-topologynode-performancenode-performance46event routes among 11 contexts42%of the 110 possible pairs are wired1 · 0pure sources · pure sinks (listen only)cell colour = subdomain class of the publisher
part 2 · architecture · the hubs

node-topology is the most listened-to context: 8 neighbours react to what it publishes, and order-sourcing follows 9 sources

HEARD BY MOST · CONTEXTS LISTENINGLISTENS TO MOST · SOURCES FOLLOWEDnode-topology 8offer-availability 6shipping-and-tracking 6order-sourcing 5linehaul-transportation 4vendor-connectivity 4delivery-promise 3last-mile-delivery 39 order-sourcing8 delivery-promise6 node-performance4 seller-inbound4 shipping-and-tracking4 vendor-connectivity3 customer-ordering3 last-mile-delivery
part 2 · architecture · where we invest

Only the promise and the late assignment are Core; the rest support or are generic

Core · 2

Build in-house, invest the most: this is the competitive edge.
  • delivery-promiseTells a shopper, before and at purchase, the date a package will arrive…
  • order-sourcingDecides, as late as the promise allows, which node and path will actually fulfil each shipment…

Supporting · 7

Needed and specific to us: build well, keep it simple.
node-topologyoffer-availabilityvendor-connectivitylinehaul-transportationlast-mile-deliverynode-performanceseller-inbound

Generic · 2

Solved elsewhere: keep boring, or swap for a product.
customer-orderingshipping-and-tracking
part 2 · architecture · the layers

Commerce decides, partners connect, logistics moves, and facts keep it honest

Commerce: promise and order

Quote, hold, place and source: the two Core contexts and their direct inputs

delivery-promisecustomer-orderingorder-sourcingoffer-availability
↓ 8 routes flow down across this line · ↑ 14 flow back up

Partner doors

Where vendors and sellers reach the network and its purchase orders

vendor-connectivityseller-inbound
↓ 7 routes flow down across this line · ↑ 14 flow back up

Logistics: move and track

Middle mile, last mile, labels and the package timeline

linehaul-transportationlast-mile-deliveryshipping-and-tracking
↓ 5 routes flow down across this line · ↑ 9 flow back up

Network facts and grades

The registry of nodes and lanes, and the measured grades on every node

node-topologynode-performance
part 2 · architecture · how the contexts depend on each other

8 relationships show who bends to whom, in 3 DDD patterns

node-topology
Conformist
delivery-promise

Node, lane and service-area events fill the promise's local views

delivery-promise
Customer/Supplier
customer-ordering

Synchronous quote and confirm at checkout; promise facts return as events

customer-ordering
Customer/Supplier
order-sourcing

A placed order queues each shipment group for sourcing

order-sourcing
Customer/Supplier
vendor-connectivity

Releasing a group to a node becomes a purchase order for the vendor

vendor-connectivity
Open Host Service
network-fulfillment

The fleet side is Conformist behind an ACL; no Kafka topic is shared

node-performance
Conformist
delivery-promise

Scorecards and tier eligibility feed the handicap and fast-tier filter

linehaul-transportation
Conformist
delivery-promise

Departures and capacity changes feed the witness paths

customer-ordering
Customer/Supplier
shipping-and-tracking

At label time, a restricted call fetches the ship-to address

part 2 · architecture · the seams between ecosystems

Two doors lead out, plus carriers: the fleet as a vendor, the storefront as a consumer

The fleet is one vendor:only network-fulfillmentcalls the Vendor API…The storefront consumesretailnetwork.* topics andcalls the network's OpenHost Service routes…WMS and WESinside the four walls21 CONTEXTSRetail networkbetween the walls11 CONTEXTSYOU ARE HEREDigital storefrontin the shopper's hands6 CONTEXTSequipment control (WCS): notbuiltdelivery partners and carriersthe payment provider
WMS and WES · via

vendor-connectivitynetwork-fulfillment The fleet is one vendor: only network-fulfillment calls the Vendor API; no topic is shared and no address crosses.

Digital storefront · via

customer-orderingdelivery-promisestorefront-bff The storefront consumes retailnetwork.* topics and calls the network's Open Host Service routes; PII stays here.

an external system · via

last-mile-deliveryshipping-and-tracking Carriers serve low-density areas through a handoff node; their tracking comes back inbound to the timeline.

part 2 · architecture · the decisions that shaped it

Domain decisions: separate promise from assignment, declare then measure, lock on acceptance

ADR 0002

Promise and order assignment are separate

Promising needs a fast local answer; assignment gains from waiting, so each gets its own model and owner.

ADR 0003

Capability is declared and measured

Nodes declare a profile, node-performance grades them from facts, and the promise applies the grade.

ADR 0005

The vendor's acceptance is the path lock

The network cannot see a vendor's floor, so a fill-or-kill acceptance is the moment the node stops changing.

ADR 0006

PII stays in two contexts

Only customer-ordering and shipping-and-tracking hold an address; the Vendor API returns a label and nothing else.

ADR 0007

CloudEvents namespace, no shared topic

A separate com.retailnetwork namespace stops a fleet consumer from subscribing to a network topic.

ADR 0008

Capacity is held at promise time

Fast tiers need a scheduled path; capacity is held per node cutoff and provisional holds expire with checkout.

part 2 · architecture · what every context shares

Every context shares the same gateway, event rules, observability and agent surface

Gateway, REST and MCP

Each context ships REST, a read-only MCP server and a console remote behind the gateway.

CloudEvents on Kafka

Outbox out, idempotent in, on retailnetwork.* topics with no shared topic to the fleet.

Fleet observability standard

Every context adopted it, plus an A2A inbound adapter and the REST API guideline.

Model checked in CI

model.yaml is the source; docs pages are generated and the build fails when they disagree.

11/11contexts with an MCP server
11/11contexts with an A2A agent
92database migrations
82BDD feature files

Counted from the repositories (develop). REST and MCP endpoints are unauthenticated fleet-wide by decision: a known risk, not a capability.

part 2 · architecture · by the numbers

The numbers show a built network with thin analytics and no report screens

BOUNDED CONTEXTS21WMS and WES11Retail network6Digital storefrontEVENTS PUBLISHED151WMS and WES102Retail network27Digital storefrontDECISIONS ON RECORD585WMS and WES160Retail network47Digital storefrontBDD FEATURE FILES132WMS and WES82Retail network25Digital storefront

Counted, not typed: contexts and decisions from the registry on develop, events and feature files from each context's verified profile. Highlighted = this ecosystem.

part 2 · architecture · what could go wrong · and what we do about it

Contract drift, a synchronous checkout call and open endpoints are the risks to watch

No authentication anywhere

Every REST and MCP endpoint is unauthenticated; vendor ownership checks are consistency checks, not security.

→

No mitigation on the roadmap yet: this one needs an owner.

Contract drift across event fan-in

Core contexts read dozens of sibling event types; a payload change can silently stale a read model and misquote dates.

→

Model-checked docs in CI, and a proposed fleet-level game day for exhausted capacity books.

Checkout needs a live promise call

customer-ordering calls delivery-promise synchronously; an outage there stops order placement end to end.

→

Proposed: timeout budgets and a circuit breaker so checkout degrades predictably.

Seven contexts have no analytics

Only four contexts project analytics; seven have none, no report screens exist, and some analytics streams have no consumer.

→

The evolution research ranks the analytics read side first; no delivery date is set.

part 2 · architecture · what comes next

Measure first, then report cost, then place stock, then shape demand

NOW1Measure first:analyticseverywhereExtend the analyticsread side from fourcontexts to the rest,and publish promiseaccuracy per tier andnode as metrics.NEXT2Harden checkoutand alertingAdd timeout budgets anda circuit breaker aroundthe promise call, andalerts on outboxbacklog, consumer lagand dead-letter topics.NEXT3Report cost, thenadvise placementReport cost to serve perorder and node on theanalytics side, thengrow placement advicefrom demand signals.LATER4Quote frommeasured transitQuote from measuredtransit, not onlydeclared times; checkaddresses at label timeand message shoppersabout exceptions.LATER5Close the openmodel gapsWork through Opengap-register rows:commingling, inboundfreight, palletmanifests and shopperaction on delivery-pointadvisories.
the decision we need

Agree to measure before adding features: extend analytics read sides to the seven contexts that have none.

WHAT ISEvery context is built as a serviceon develop and wired into thereference cluster definition; thewarehouse fleet plugs in as oneTHE CATCHOnly four contexts have an analyticsread side, there are no reportscreens yet, and every REST and MCPendpoint is unauthenticated.WHAT COULD BEPromises learn from measuredtransit, cost is reported per orderand node, and sellers get advice onwhere stock should sit.
Why it matters

The network promises from a real path, assigns the node as late as it can, and grades every node on what happened.

appendix · for the engineers in the room

The roster: every context, one row, one click to its own briefing

ContextClassOutInADRsDoors
delivery-promiseCore124325MCP · A2A
customer-orderingGeneric21913MCP · A2A
order-sourcingCore153716MCP · A2A
offer-availabilitySupporting9714MCP · A2A
vendor-connectivitySupporting111413MCP · A2A
seller-inboundSupporting101114MCP · A2A
linehaul-transportationSupporting101313MCP · A2A
last-mile-deliverySupporting111312MCP · A2A
shipping-and-trackingGeneric91412MCP · A2A
node-topologySupporting10015MCP · A2A
node-performanceSupporting31513MCP · A2A

Out / In = event types published / consumed (from each context's profile). Doors = MCP server and A2A agent. Links open the per-context executive briefing.