warehouse-systems · ecosystem executive briefing

WMS and WES

Stock lives in one place, work is decided in another, and every handoff is an event.
21 bounded contexts83 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 WMS keeps stock and transactions true; the WES decides when and where work runs, one unit at a time.

1

A pallet's day runs from a booked door to a trailer that really left, through events between small contexts.

2

Work is released without waves and pulled by stations, so the floor follows the truck cutoff, not a batch.

3

The gaps are plain: no equipment control, no lot or serial traceability, and two chains not yet proven on the cluster.

The ask

Pick the next bet: prove the open chains on the cluster first, then lot traceability, then the equipment edge.

part 1 · the business · why it exists

A warehouse core that keeps stock true and decides when work runs

This is the warehouse itself: everything that gets goods through the building. The WMS side books the door, tracks the trailer, receives and stows stock, keeps every bin true, refills pick faces, handles returns and loads the outbound trailer. The WES side releases allocated orders in cutoff order, lets stations pull tasks, scores labor and opens an owned case when something goes wrong.

Today

Stock, dock and yard, order release and floor tasks each live in their own context, joined by events on one broker.

The catch

The fleet's 'wes' label is wider than the industry's WES. There is no WCS, no lot or serial traceability, and every endpoint is open.

part 1 · the business · who it is for

Five kinds of people use it, from the gate clerk to the network planner

Gate and receiving clerk

needs

Know which truck is due, where it sits in the yard and what was counted against the notice.

served by

dock-scheduling, yard-management and inbound-receiving, used from warehouse-floor-client.

Floor associate

needs

Get the next job they are certified for, scan to confirm it, and not walk back empty.

served by

fulfillment-execution pull dispatch, task-interleaving hints and warehouse-floor-client.

Shift supervisor

needs

See where a path is short of people, decide the move, and own the problems that open.

served by

workforce-management, labor-performance and exception-management, read in warehouse-console.

Inventory controller

needs

Trust every bin count, approve slot plans, and keep forward pick faces stocked.

served by

inventory-storage, slotting-optimization and pick-face-replenishment.

Network and capacity planner

needs

Promise orders the floor can ship, and move stock between sites only after approval.

served by

order-management, warehouse-planning, network-fulfillment and network-inventory-planning.

part 1 · the business · A pallet's day

A pallet crosses eight contexts between a booked door and a departed trailer

1

Book and arrive

dock-scheduling

A door window is booked once; the yard records the gate arrival and the docking.

2

Receive

inbound-receiving

Cartons are counted against the ASN; good units leave as ReceiptLineReceived.

3

Stow

inventory-storage

Item and bin are scanned into a free bin; hazmat rules checked, StockReceived raised.

4

Reserve

order-management

An order reserves its stock or fails closed; OrderAllocated announces the demand.

5

Release

wes-work-planning

Work leaves the pool earliest cutoff first, within a WIP limit: WorkReleased.

6

Pick, pack, SLAM

fulfillment-execution

A station pulls a task under lease; TaskCompleted also feeds labor scoring.

7

Load and depart

outbound-shipping

ShipmentConfirmed only after TrailerDeparted; the network is told by hand today.

8

Problems get owners

exception-management

Missed cutoffs, diversions and short counts open cases with an owner and an SLA.

A pallet's day · 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

Six capability groups cover the truck, the stock, the order, the floor, the load and the people

Inbound and yard
Door calendarOne calendar per site; no two trucks share a door window.dock-scheduling
Yard and gateVisits, trailer spots, moves, seals and door work.yard-management
ASN and receiptNotice, count and discrepancies before the first stow.inbound-receiving
Stock and master data
Bin-accurate stockChaotic stow, reservations, counts and hazmat placement.inventory-storage
Warehouse mapSite, zone, aisle and slot, with travel distances.facility-layout
SKU masterHandling class and declared versus measured size.product-master
Returns and dispositionRMA, grade and restock, refurbish or dispose.returns-processing
Order to work
Allocate and promiseFail-closed allocation and cutoff-based promise dates.order-management
Waveless releaseOne unit at a time by cutoff, plus flow balancing.wes-work-planning
Paths and cutoffsOperator-set process paths and shipping cutoff schedules.process-path-management
Network ordersTakes retail-network demand and keeps the ack clock.network-fulfillment
Floor execution
Pull-based tasksPick, rebin, pack and SLAM under time-boxed leases.fulfillment-execution
Interleaving hintsAdvises a nearby next task; never imposes it.task-interleaving
Pick-face refillsMin/max requests that move stock to forward slots.pick-face-replenishment
Slot plansVelocity-ranked plans a planner approves before moves.slotting-optimization
Ship and fix
Outbound loadStaging and loading per trailer before its cutoff.outbound-shipping
Bill of ladingProof of what left, confirmed on physical departure.outbound-shipping
Problem casesTriage, owner, SLA and resolution for every anomaly fact.exception-management
People and planning
Shift plansCertified assignment and staffing gaps per path.workforce-management
Labor standardsActual versus engineered standard per task type.labor-performance
Capacity plansCan the building process the demand it was given?warehouse-planning
Transfer proposalsExplainable inter-site moves, approved by a person.network-inventory-planning
CoreSupportingGeneric· tile edge = DDD subdomain class of the owning context (gold = the competitive edge)
part 1 · the business · what is different

Four design choices set it apart from a classic batch-driven WMS

Waveless release, pull dispatch

Work is released one unit at a time by cutoff and pulled by stations under a lease, so stalled jobs return to the pool.

wes-work-planning ADR 0002; fulfillment-execution ADR 0002, 0003

Stock you can promise against

Chaotic storage with scan-checked stow and revocable reservations means every item has one bin or is flagged lost.

inventory-storage ADR 0002, 0003

Shipped means the trailer left

The yard is the only recorder of physical facts, and ship-confirm waits for the trailer's departure, not a button press.

outbound-shipping ADR 0002; yard docs YD-0004

Every problem has an owner

Anomaly facts from six producers open cases with triage, assignment and an SLA clock; the producer's own state is never touched.

exception-management ADR 0001
part 1 · the business · the house rules

Six house rules keep stock honest and work flowing

1
Stock is promised only through a revocable reservationA cancelled or failed order hands its stock back instead of leaving it stuck.
inventory-storage
2
Work is released one unit at a time, earliest cutoff firstA level flow with a WIP limit keeps the floor from drowning in backlog.
wes-work-planning
3
Stations pull work; the system never names who does itTime-boxed leases return unconfirmed claims to the pool, so no job is stranded.
fulfillment-execution
4
Shipped means the trailer physically departedTelling the network a shipment left on a belief is worse than telling it late.
outbound-shipping
5
Each context owns its data; facts travel as eventsLocal copies let a context keep working without calling another team live.
inbound-receiving
6
People approve transfers, slot plans and labor movesAdvice is automated; a change to the building stays a human call.
network-inventory-planning
part 1 · the business · against the market

Against the big WMS vendors the design direction matches, but the reach is partial

PartialWMS and WES softwarevs Manhattan, Blue Yonder, SAP EWM, Körber, SSI Schäfer

Where we match or lead

  • Waveless, cutoff-ordered release and pull dispatch, the direction Manhattan and Blue Yonder describe
  • Chaotic-storage stow with scan checks, revocable reservations and hazmat placement rules
  • Yard facts kept apart from the door calendar, so ship-confirm follows the trailer's departure
  • People approve transfers, slot plans and labor moves; the fleet only proposes them

Gaps to close

  • High No WCS or robotics orchestration; only a reserved seam in fulfillment-execution (ADR 0015)
  • High No lot, serial or expiry (FEFO) traceability in the stock model
  • High No demand forecasting or multi-echelon optimisation; planning runs on deterministic rules
  • Medium Replenishment and interleaving chains not traced end to end; REPLENISH path is seeded by hand

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 21 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
21bounded contexts
83event routes inside
585decisions on record
21MCP servers
part 2 · architecture · the ground rules

Five architecture principles keep every context small and independent

Each context owns its data

One database per context, plus an analytical one; no shared tables, no sibling imports. Cross-context facts are events or calls.

One envelope, one outbox

Every Kafka message is a CloudEvent, committed with the change through a transactional outbox before the relay sends it.

The domain depends on nothing

Hexagonal ports and adapters, and an architecture fitness test fails the build if an adapter reaches into the domain.

Agents advise, people act

MCP tools and A2A skills declare an authority level; the ops agent is read-only apart from two human-confirmed act slices.

Build where it differentiates

Core effort goes to stock, release, dispatch and planning; configuration, layout and labor standards stay Generic or Supporting.

part 2 · architecture · the context map

Stock and master data flow down, work flows through the WES, and facts flow back

Above the warehouseOrders, the retail network,capacity and inter-site planningWES: when and wherework runsReleases work, dispatches tasks tostations and advises the nextWMS core: stock, data,returnsKeeps the stock ledger, the map,the SKU master and the reverseWMS extended: doors,slots, shipDock calendar, yard, slotting,pick-face refills and the outboundPeople and problemsLabor plans and scores, plus ownedcases for anything that goesorder-managementnetwork-fulfillmentnetwork-inventory-planningwarehouse-planningwes-work-planningfulfillment-executionprocess-path-managementtask-interleavinginventory-storagefacility-layoutproduct-masterinbound-receivingreturns-processingdock-schedulingyard-managementslotting-optimizationpick-face-replenishmentoutbound-shippingworkforce-managementlabor-performanceexception-management
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

83 event routes wire 20% of the possible pairs, so most contexts stay independent of most others

LISTENS TO → (columns)PUBLISHES ↓ (rows)order-managementorder-managementnetwork-fulfillmentnetwork-fulfillmentnetwork-inventory-plann…network-inventory-plann…warehouse-planningwarehouse-planningwes-work-planningwes-work-planningfulfillment-executionfulfillment-executionprocess-path-managementprocess-path-managementtask-interleavingtask-interleavinginventory-storageinventory-storagefacility-layoutfacility-layoutproduct-masterproduct-masterinbound-receivinginbound-receivingreturns-processingreturns-processingdock-schedulingdock-schedulingyard-managementyard-managementslotting-optimizationslotting-optimizationpick-face-replenishmentpick-face-replenishmentoutbound-shippingoutbound-shippingworkforce-managementworkforce-managementlabor-performancelabor-performanceexception-managementexception-management83event routes among 21 contexts20%of the 420 possible pairs are wired3 · 1pure sources · pure sinks (listen only)cell colour = subdomain class of the publisher
part 2 · architecture · the hubs

facility-layout is the most listened-to context: 10 neighbours react to what it publishes, and exception-management follows 10 sources

HEARD BY MOST · CONTEXTS LISTENINGLISTENS TO MOST · SOURCES FOLLOWEDfacility-layout 10fulfillment-execution 10product-master 9process-path-management 7inventory-storage 6order-management 6dock-scheduling 5inbound-receiving 510 exception-management9 wes-work-planning7 inventory-storage6 network-inventory-planning6 order-management5 inbound-receiving5 outbound-shipping5 warehouse-planning
part 2 · architecture · where we invest

Core investment goes to stock, release, dispatch and planning; the rest supports them

Core · 5

Build in-house, invest the most: this is the competitive edge.
  • inventory-storageAuthoritative record of what is held where and how much of it is usable.
  • fulfillment-executionPick, pack and SLAM task lifecycle with pull-based claimNext dispatch and lease semantics.
  • network-inventory-planningSKU placement, inventory balancing and inter-warehouse transfer orchestration: advisory…
  • warehouse-planningProcess and process-path capacity, normalisation across native units…
  • wes-work-planningThe core WES context: charge forecasts, waveless release and flow balancing.

Supporting · 14

Needed and specific to us: build well, keep it simple.
inbound-receivingdock-schedulingyard-managementoutbound-shippingpick-face-replenishmentreturns-processingproduct-masterslotting-optimizationexception-managementlabor-performancenetwork-fulfillmentorder-managementtask-interleavingworkforce-management

Generic · 2

Solved elsewhere: keep boring, or swap for a product.
facility-layoutprocess-path-management
part 2 · architecture · the layers

Five lanes split what to promise, when to run work, what is stored, what moves and who acts

Above the warehouse

Orders, the retail network, capacity and inter-site planning decide what to promise.

order-managementnetwork-fulfillmentnetwork-inventory-planningwarehouse-planning
↓ 7 routes flow down across this line · ↑ 16 flow back up

WES: when and where work runs

Releases work, dispatches tasks to stations and advises the next nearby task.

wes-work-planningfulfillment-executionprocess-path-managementtask-interleaving
↓ 14 routes flow down across this line · ↑ 16 flow back up

WMS core: stock, data, returns

Keeps the stock ledger, the map, the SKU master and the reverse flow true.

inventory-storagefacility-layoutproduct-masterinbound-receivingreturns-processing
↓ 24 routes flow down across this line · ↑ 9 flow back up

WMS extended: doors, slots, ship

Dock calendar, yard, slotting, pick-face refills and the outbound load.

dock-schedulingyard-managementslotting-optimizationpick-face-replenishmentoutbound-shipping
↓ 12 routes flow down across this line · ↑ 2 flow back up

People and problems

Labor plans and scores, plus owned cases for anything that goes wrong.

workforce-managementlabor-performanceexception-management
part 2 · architecture · how the contexts depend on each other

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

order-management
Customer/Supplier
wes-work-planning

OrderAllocated feeds the release pool; work planning reads it through its own translation layer.

wes-work-planning
Customer/Supplier
fulfillment-execution

WorkReleased becomes tasks; TaskCompleted flows back and closes the release loop.

facility-layout
Open Host Service
inventory-storage

Zone and slot events become a local copy, so stow is validated without a live call.

product-master
Published Language
inventory-storage

ProductClassified is copied locally by each consumer, applied only when the version is newer.

inbound-receiving
Conformist
inventory-storage

ReceiptLineReceived makes inventory-storage run its existing receive use case for good units.

yard-management
Published Language
dock-scheduling

Arrival, docking and door release are recorded only by the yard; the calendar follows (YD-0004).

fulfillment-execution
Open Host Service
outbound-shipping

PackageManifested is copied locally and starts the load plan for the trailer.

vendor-connectivity
Anti-Corruption Layer
network-fulfillment

The retail network's vocabulary stops here; the rest of the fleet never sees it.

part 2 · architecture · the seams between ecosystems

Only two doors lead out: the retail network, and an equipment layer that is not built

The only fleet service thattalks to the retailnetwork, through its VendorAPI…The storefront consumesretailnetwork.* topics andcalls the network's OpenHost Service routes…WMS and WESinside the four walls21 CONTEXTSYOU ARE HERERetail networkbetween the walls11 CONTEXTSDigital storefrontin the shopper's hands6 CONTEXTSequipment control (WCS): notbuiltdelivery partners and carriersthe payment provider
Retail network · via

network-fulfillment The only fleet service that talks to the retail network, through its Vendor API, as an anti-corruption layer.

an external system · via

fulfillment-execution Equipment control (WCS) is not built; fulfillment-execution reserves an anti-corruption seam that nothing implements.

part 2 · architecture · the decisions that shaped it

Six decisions shaped it: no waves, pull dispatch, stock truth, yard facts, a network wall

wes-work-planning ADR 0002

Waveless, continuous release

Release one unit at a time by cutoff instead of batching waves; the model the industry's WES layer emerged to serve.

fulfillment-execution ADR 0002, 0003

Pull dispatch with leased claims

Stations ask for the best-fit task; an unconfirmed claim expires back to the pool, so work cannot be stranded.

fulfillment-execution ADR 0015

Equipment control as a reserved seam

No WCS is built; the seam is reserved so equipment can be added without touching dispatch rules.

inventory-storage ADR 0002, 0003

Chaotic storage and revocable reservations

Items go to any free legal bin, tracked to the bin; reservations can be revoked so held stock is never lost.

yard docs YD-0004

Physical facts win

Only the yard records arrival, docking and departure; the calendar and ship-confirm follow, so shipped means shipped.

network-fulfillment ADR 0001

One context owns the network wall

Network demand, its acknowledgement clock and its vocabulary stay in one anti-corruption layer, not inside order-management.

part 2 · architecture · what every context shares

Every context shares one gateway, one event standard, agent tools and delivery gates

One gateway and two front ends

Kong routes every context's API; warehouse-console and warehouse-floor-client sit in front.

One broker, one event standard

CloudEvents on Kafka with an outbox per context; consumers dedupe and ignore unknown types.

MCP and A2A for agents

Domain contexts expose read-only MCP tools; warehouse-ops-agent turns them into a daily brief.

Delivery and telemetry gates

Argo CD deploys to k3s; fitness tests and BDD gate CI; Prometheus, Grafana and Loki watch.

21/21contexts with an MCP server
18/21contexts with an A2A agent
200database migrations
132BDD 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 wide fleet with a long decision trail, counted from the repositories

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

The biggest risks are open endpoints, no equipment layer and chains never traced end to end

Every endpoint is open

Static bearer keys were adopted, then removed fleet-wide by decision; every REST and MCP call is unauthenticated.

→

Reachable only inside the cluster today; bringing auth back needs a new owner decision and an ADR.

No equipment layer

With no WCS, release reacts to backlog and capacity, not to equipment state, and no robot or conveyor can be driven.

→

An anti-corruption seam is reserved in fulfillment-execution (ADR 0015); no adapter is built.

Chains not traced end to end

Replenishment and interleaving are built hop by hop but not traced on the cluster; the REPLENISH path is an operator seed.

→

Tracked as open rows in the fleet gap tracker; the next step is one real request through every hop.

Built but dark, and thinly watched

Yard MCP, reports and sweeps are switched off on the cluster; several newer contexts emit no metrics or traces.

→

The infra switches are already built; each context's docs name a metrics registry as the next step.

part 2 · architecture · what comes next

Next we light up what is built, prove the open chains, then reach for equipment

NOW1Light up what isbuiltSwitch on the yard anddock MCP servers, reportservices and sweeps thatare built but off on thecluster, and apply theirmetrics.NEXT2Trace the openchainsRun one replenishmentrequest and oneinterleaving hintthrough every hop on thecluster; the REPLENISHseed is still anoperator step.NEXT3Close theshipped-fact loopShipmentConfirmed toorder-management andnetwork-fulfillment iswired but unused; itshould replace themanual shipmentconfirmation.LATER4Qualify andinstrument thenewestRun the industry testson the contexts withouta verdict, and addmetrics and traces tothe newest contexts.LATER5Reach forequipment andtraceabilityLater: a WCS adapterbehind the reservedseam, and lot, serialand expiry attributeswith a FEFO draw onreservations (new ADR).
the decision we need

Pick the next bet: prove the open chains on the cluster first, then lot traceability, then the equipment edge.

WHAT ISStock, dock and yard, order releaseand floor tasks each live in theirown context, joined by events on onebroker.THE CATCHThe fleet's 'wes' label is widerthan the industry's WES. There is noWCS, no lot or serial traceability,and every endpoint is open.WHAT COULD BEThe newest chains proven end to end,shipped facts reaching the networkon their own, and an equipment edgebehind the reserved seam.
Why it matters

The WMS keeps stock and transactions true; the WES decides when and where work runs, one unit at a time.

appendix · for the engineers in the room

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

ContextClassOutInADRsDoors
order-managementGeneric/Supporting5451MCP · A2A
network-fulfillmentSupporting6234MCP · A2A
network-inventory-planningCore2423MCP · A2A
warehouse-planningCore5520MCP · A2A
wes-work-planningCore7548MCP · A2A
fulfillment-executionCore4164MCP · A2A
process-path-managementGeneric5141MCP · A2A
task-interleavingSupporting4712MCP · A2A
inventory-storageCore3152MCP · A2A
facility-layoutGeneric12145MCP · A2A
product-masterSupporting9114MCP · A2A
ContextClassOutInADRsDoors
inbound-receivingSupporting12323MCP · A2A
returns-processingSupporting7410MCP · A2A
dock-schedulingSupporting141012MCP
yard-managementSupporting231312MCP
slotting-optimizationSupporting4515MCP · A2A
pick-face-replenishmentSupporting4812MCP · A2A
outbound-shippingSupporting1397MCP
workforce-managementSupporting2242MCP · A2A
labor-performanceSupporting3137MCP · A2A
exception-managementSupporting71711MCP · 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.