Skip to main content

Big Picture EventStorming

This page is a fleet-level Big Picture EventStorming in the notation of the ddd-crew EventStorming glossary and cheat sheet. It lays the order-to-ship timeline across all bounded contexts on one wall. It was reconstructed from the code-grounded artifacts each context publishes, not from a workshop. Each context's own design-level EventStorming page has the detail, and the pages are linked at the end.

Every orange sticky is a real domain event: it appears in a synced apis/<context>/asyncapi.yaml or on that context's Domain Events page. Every hotspot is a gap that is already documented somewhere, and the hotspot table cites the source for each one. Nothing on this page is a guess. outbound-shipping (released v0.1.0, registered in warehouse-infra, not applied) is drawn in the timeline overview and in Phase 4, from its synced asyncapi.yaml. Four other recent contexts, inbound-receiving (before the first stow), slotting-optimization (beside the order-to-ship line), pick-face-replenishment (keeping the forward faces stocked) and task-interleaving (hinting the next nearby task at a station), have their own phase, Phase 0b, drawn from their synced asyncapi.yaml files.

Legend​

StickyColourMeaning here
Domain Eventorange #f6a04dA fact a context publishes, named in the past tense, for example WorkReleased
Pivotal Eventorange, thick black borderA fact that hands the timeline from one phase to the next
Commandblue #4aa3dfA request to change state: a REST write, an MCP write tool or a network port call
Policylilac #c39bd3"Whenever X happens, do Y". These are reactions wired in code.
Read Modelgreen #7dcea0Data a person or policy reads to decide, often a local cache fed by events
External Systemsalmon #f1948aSomething outside the fleet's contexts: the retail network, an external scheduler
Actoryellow #fff176A person or role who issues a command
Hotspotred #e74c3cA documented gap, numbered H1 and up and sourced in the table below

How to read this page​

  • Time flows left to right. Each diagram is one phase of the timeline. The overview strings the pivotal events together.
  • Swimlanes are bounded contexts. Each boxed lane holds the stickies owned by one context. An arrow that crosses lanes is an integration. It is a Kafka event, or a synchronous call where the label says so.
  • Pivotal events have a thick border. They mark the hand-offs: receipt line received, slot plan approved, shift plan committed, demand accepted, work released, work completed, package manifested and shipment confirmed.
  • Hotspots hang off the sticky they concern with a dotted line. Their number points to the source in the table.
  • Analytics-only events, such as OrderReceived or TaskCreated, are still domain events. They are drawn where they belong in time, even though no sibling consumes them. The Domain Message Flows page states which topic carries each event and who consumes it.
  • warehouse-ops-agent has no lane. It publishes and consumes no events and issues no commands. It only queries the other contexts over MCP and REST.

Timeline overview​

Solid arrows are the causal order of the happy path. Dotted arrows are feedback and read-model feeds. PathCapacityChanged, CPTScheduleChanged and published shortages are cached locally by order-management, and its promise and order view read from those caches. TaskPerformanceRecorded reaches the next staffing proposal. Product Classified feeds the local classification copies that stow, order intake, release and package sealing read (product-master ADR 0003). Receipt Line Received is the inbound handover that inventory-storage books as Stock Received before the stow (see Phase 0b, which also draws slotting-optimization). The FE4 to NF3 arrow is dotted on purpose. No event or call links a manifested package to the network order, and an operator closes the loop by hand (hotspot H26). outbound-shipping is the context that would close it: it plans a load from PackageManifested (dotted, because the producer omits site_id today and a manifest without it plans nothing, H45) and raises ShipmentConfirmed on the trailer's physical departure, but it is registered in infra and not applied (H43), and network-fulfillment has no handler for the event (H44).

Sources: event names from every apis/*/asyncapi.yaml. Causal order from the per-context Domain Message Flow pages, joined on Domain Message Flows.

Phase 0: the building, the catalogue and the standards​

Reference data has to exist before the first order arrives. Facility structure, product master data, process paths and CPT schedules, labor standards and stock on the shelves are all set up in this phase.

Sources: facility-layout flows 1 and 3, process-path-management flows 1 to 3, labor-performance flow 2, inventory-storage flow 3, product-master domain message flow.

Phase 0b: inbound receiving and forward-pick slotting​

Two wms contexts work beside the order-to-ship line. inbound-receiving covers everything before the first stow: an ASN announces a delivery, a dock appointment books a door, and a receipt counts the delivery line by line. Its Receipt Line Received is the handover that inventory-storage books as received stock. slotting-optimization decides which SKUs deserve a forward pick slot from local copies of demand, product facts and slots, and a human approves the plan. Every event below is a message in the context's synced apis/<context>/asyncapi.yaml. Beyond the plan decision, the diagram follows an approved plan to the floor: wes-work-planning plans one RELOCATE work unit per move, fulfillment-execution runs the task, inventory-storage moves the stock and raises Stock Relocated, and slotting-optimization turns that into the plan's execution progress.

Dock Appointment Completed is raised by Close Receipt for a receipt opened from an appointment. inventory-storage books only Good quantities from Receipt Line Received and logs Damaged lines without booking them (its ADR 0037). Slot Plan Approved carries the full forward-slot map and the moves (Assign, Relocate, Vacate); approving supersedes the site's previous Approved plan, which raises no event of its own.

Sources: inbound-receiving domain message flow, inbound-receiving EventStorming, slotting-optimization domain message flow, slotting-optimization EventStorming, and the two contexts' apis/<context>/asyncapi.yaml.

Replenishment of the forward faces​

pick-face-replenishment (the sixth wms context, built on develop, not deployed) keeps the faces that slotting-optimization assigned stocked. A planner declares a min/max policy per site and SKU. From local copies of bin levels, the forward map and the layout, a detector raises a Replenishment Requested when a face's projected level reaches its minimum, choosing the fullest reserve bin. A planner can also sweep a site or ask for a request by hand, and a request is cancelled by a planner, by a newer approved slot plan that drops the assignment, or by removing the policy. It is completed only by inventory-storage's Stock Relocated with reason REPLENISHMENT. wes-work-planning turns each request into one REPLENISH work unit (its ADR 0042, opt-in; REPLENISHMENT_MODE=kafka is set in the reference deployment), so the loop is complete on develop (H40, resolved) and the context runs in the reference cluster (H39, resolved). No request has been traced through the whole loop on the cluster yet.

Sources: pick-face-replenishment domain message flow, pick-face-replenishment EventStorming, its apis/pick-face-replenishment/asyncapi.yaml and the fleet context map (K39, K40 and K42 to K44, all live since the 2026-10-20/21 deploy).

Task interleaving at the station​

task-interleaving (a wes context, deployed in the reference cluster since 2026-10-20/21) listens to the task lifecycle of fulfillment-execution and the geometry of facility-layout. Task Available and Task Claimed keep a copy of the open-task pool (announced for RELOCATE and REPLENISH tasks only), and a Task Completed moves the station to where the task ended. If the site has declared an interleaving policy, a rule then ranks the open tasks by detour and issues an Interleaving Hint Issued with up to five candidates. The hint is Consumed when the station claims a candidate before it expires, Expired otherwise, and is only advice: claimNext stays the one claim path. Thick arrows are consumed by running instances in the reference cluster (H41 and H42, resolved); the dashed arrow is the claim of a candidate, drawn as a reading of Task Claimed.

Sources: task-interleaving domain message flow, task-interleaving EventStorming, its apis/task-interleaving/asyncapi.yaml and the fleet context map (K41 and K45 to K47).

Phase 1: demand intake and allocation​

Two entry points converge on OrderAllocated. A direct customer order allocates and releases at once. A network purchase order is held until the network confirms our acceptance.

The held order publishes OrderAllocated twice. The first one, at intake, carries no released lines. The second one follows Release Held Order and carries the released lines that wes-work-planning schedules.

Sources: network-fulfillment flows 1 and 2, network-fulfillment EventStorming, order-management flows 1 and 2, order-management EventStorming, inventory-storage flows 1 and 2.

Phase 2: staffing, capacity planning and release​

Released lines become work units. Each shift's staffing and planned capacity set how much work the floor can absorb, and the release policy admits work continuously, without waves.

order-management is drawn as an external box here only to keep the lane count readable. It is the Phase 1 lane. Usable Inventory Observed is fed by Stock Reserved and Reservation Revoked from Phase 1. Path Capacity Changed also reaches network-fulfillment's capability offer.

Sources: workforce-management flows 1 and 2, workforce-management EventStorming, warehouse-planning flows 1 and 2, wes-work-planning scenarios 1 to 3, wes-work-planning EventStorming.

Phase 3: execution on the floor​

Work Released becomes a task that a station pulls. Completing the task closes the WIP loop and scores the associate. The last rebin arrival creates the pack task, and SLAM ends in a manifested package.

Item Picked and Stock Picked are drawn unconnected on purpose. Item Picked is never raised (H18). Stock Picked is raised by inventory-storage's confirm-pick consumer on an order's last completed PICK (ADR 0035), but that consumer is off by default, so the live flow does not yet trigger it.

Sources: fulfillment-execution scenarios 1 and 2, fulfillment-execution EventStorming, labor-performance flow 1, labor-performance EventStorming, inventory-storage EventStorming.

Phase 4: ship, close and the exception loop​

A manifested package, or a missed CPT, re-promises the order line. The network order is closed by an explicit shipment confirmation. Overdue acknowledgements are reported and then refused. outbound-shipping, released (v0.1.0), registered in infra and not applied, owns what is loaded on which trailer: it raises ShipmentConfirmed only on the physical departure the yard reports, and flags every package a departing trailer left behind as PackageMissedLoad.

network-fulfillment's two deadline passes run on their own tickers. Its capability offer is computed from Phase 2's Path Capacity Changed, the CPT schedule and usable stock, and in live mode each pass is fed to the network as one inventory feed per site (H30, resolved).

Sources: outbound-shipping Domain Events and Async API, order-management flow 3, fulfillment-execution scenario 3, network-fulfillment flows 1, 3 and 4, network-fulfillment EventStorming.

Hotspots and their sources​

Every hotspot comes from one of three places. It is either a hotspot already on a context's own EventStorming page, or a "wired but unused" edge on a context map, or an entry in the docs-agents' spec/code discrepancy log from the 2026-10-05 sync. That log is not published on this site, and the corroborating context page is linked instead.

#ContextHotspotSource
H1inventory-storageThe binary default LOCATION_LOOKUP_MODE=permissive enforces no placement ruleinventory-storage EventStorming H3. Discrepancy log. Decided 2026-10-06: kept (cold-cache safety; kafka injected in the cluster).
H2inventory-storageA bin id is never validated against facility-layout's slot catalogueinventory-storage EventStorming H1
H3facility-layoutNo use case decommissions a Site, Zone or Aisle, or sets UnderMaintenancefacility-layout EventStorming H1
H4process-path-managementDeactivating a path does not revisit CPT schedules that name it Resolved 2026-10-06. Now rejected with 409 path-referenced-by-cpt-schedule (ADR 0026).process-path-management ADR 0026
H5process-path-managementA CPT schedule's siteId is never validated (ADR 0010)process-path-management EventStorming, Hotspots
H6network-fulfillmentNetworkOrderAcknowledged fires at SUBMITTED, before reconciliation Resolved 2026-10-06. NetworkOrderSubmitted now announces SUBMITTED; NetworkOrderAcknowledged (v2) fires only on settle (ADR 0016).network-fulfillment EventStorming
H7network-fulfillmentNo event when an order settles from SUBMITTED to ACKNOWLEDGED Resolved 2026-10-06. The settle now raises NetworkOrderAcknowledged v2 (ADR 0016).network-fulfillment EventStorming
H8network-fulfillmentA crash after raising the hold leaves a NEW order with no localOrderIdnetwork-fulfillment EventStorming, sticky inventory
H9order-managementAn orphaned held order is never swept Resolved by network-fulfillment's SweepOrphanedHolds (ADR 0024, on by default): an order-management hold nobody decided, or whose cancel was never confirmed, is cancelled and reported as OrphanedHoldCancelled.order-management EventStorming H3
H10order-managementOrderLineReleased and OrderReleased are never raised Resolved 2026-10-06. Raised on the analytics topic only (ADR 0034).order-management EventStorming
H11inventory-storageNo background sweeper. An unread, expired reservation keeps its stock until the next read.inventory-storage EventStorming H5 Decided 2026-10-06: kept (lazy expiry, ADR 0003).
H12wes-work-planningUsableInventoryObserved is projected but feeds no decisionwes-work-planning EventStorming, Hotspots. Discrepancy log. Decided 2026-10-06: kept read-only (ADR 0006).
H13wes-work-planningNo code path creates a flow-fed pool or changes the WIP limit Resolved 2026-10-06. The explicit ConfigurePool command (PUT /paths/{pathId}/pool) now does (ADR 0034).wes-work-planning EventStorming
H14wes-work-planningPathPlanDriftDetected has no consumerwes-work-planning EventStorming, Hotspots. wes-work-planning context map ("published but unconsumed").
H15warehouse-planningBottleneckDetected has no consumerwarehouse-planning EventStorming. order-management flow 4.
H16workforce-managementThe headcount proposal divides by MeanActualSeconds, a duration, where a per-head rate is expected Resolved 2026-10-06. Now converts to a per-hour rate, 3600 / seconds (ADR 0033).workforce-management Ubiquitous Language
H17fulfillment-executionA claim does not require a station check-infulfillment-execution EventStorming
H18fulfillment-executionItemPicked is defined but never raisedfulfillment-execution EventStorming
H19inventory-storageNo sibling context calls POST /reservations/{id}/pick-confirmations Resolved 2026-10-07. A consumer confirms an order's reservations on its last completed PICK, driven by TaskCompleted.order_ref (inventory-storage ADR 0035, fulfillment-execution ADR 0040), and since ADR 0036 per picked line. It is off by default in the binary and on (taskCompletedConsumerMode: kafka) in the reference deployment, where it also applies RELOCATE moves (K37).inventory-storage EventStorming
H20fulfillment-executionRebin events never leave the processfulfillment-execution EventStorming
H21fulfillment-executionThe sort lane is decided, but no WCS acts on itfulfillment-execution EventStorming
H22labor-performanceREBIN and other unknown task types are never scoredlabor-performance EventStorming
H23fulfillment-executionNo in-process scheduler for expire-leases or sweep-cpt-misses Resolved 2026-10-06. The chart CronJobs now run both sweeps by default (ADR 0037).fulfillment-execution EventStorming
H24fulfillment-executionTaskCPTMissed re-fires on every sweep passfulfillment-execution EventStorming
H25order-managementNo known consumer of OrderRepromised Resolved 2026-10-22: exception-management consumes it to auto-resolve TaskCPTMissed cases (context map K58, group exception-management-order-correlation), wired in warehouse-infra develop.order-management EventStorming H5. order-management context map. Decided 2026-10-12: kept unconsumed (it carries no new cutoff instant; warehouse-planning ADR 0004, ecosystem gaps tracker E4).
H26network-fulfillmentNo persisted WorkUnitId-to-NetworkRef mapping, so shipment confirmation is an explicit call (ADR 0014). outbound-shipping's ShipmentConfirmed is meant to replace the call (its ADR 0004), but network-fulfillment has no consumer of it yet (H44)network-fulfillment EventStorming, section 3
H27network-fulfillmentConfirming a shipment before acknowledgement surfaces as HTTP 500 Resolved 2026-10-06. Now 409 confirm-before-acknowledge (ADR 0015).network-fulfillment EventStorming
H28network-fulfillmentAcknowledgementDeadlineAtRisk fires only after the deadline, while ADR 0001 says "approaching"network-fulfillment EventStorming, sticky inventory
H29network-fulfillmentwarehouse.network-fulfillment.events is wired but unused: no consumer in the fleet Resolved for the alarm types: exception-management consumes AcknowledgementDeadlineAtRisk and OrphanedHoldCancelled (context map K57). The five NetworkOrder* types keep no consumer by decision (K19).network-fulfillment context map
H30network-fulfillmentThe capability offer is never submitted outward. SubmitAvailability is unused. Resolved: in live mode each recompute pass's offers go to the network as one inventory feed per site (SubmitInventoryFeed, which replaced SubmitAvailability; ADR 0027, network-fulfillment#123).network-fulfillment EventStorming, section 4
H31workforce-managementThe default INSTALLED_CAPACITY_MODE=permissive rejects every shift-plan commit Resolved 2026-10-13. The chart now sets INSTALLED_CAPACITY_MODE=http and the fulfillment-execution base URL by default (workforce-management#164); the binary default stays permissive for local runs.workforce-management EventStorming. Ecosystem gaps tracker 10b.
H32fulfillment-executionapis/openapi.yaml expands CPT as "Committed Processing Time" Resolved 2026-10-06. Now reads "Critical Pull Time".fulfillment-execution Ubiquitous Language
H33product-masterA SKU classified moments before its first stow may reach a consumer's local copy lateproduct-master EventStorming (product-master ADR 0001, Consequences)
H34product-masterNo live event consumer of the physical profile (ProductDimensionsDeclared, ProductMeasured) Resolved 2026-10-16. slotting-optimization consumes both into its product copy (PRODUCT_MODE=kafka) and warehouse-infra develop deploys it (K25, H38)product-master EventStorming (ADR 0002, "later phases"), slotting-optimization context map
H36inbound-receivingDockAppointmentBooked has no consumer: inbound-labor demand in warehouse-planning is planned, not built (K28) Resolved 2026-10-20 on develop, deployed 2026-10-20/21. warehouse-planning ADR 0017 (warehouse-planning#79) consumes DockAppointmentBooked and DockAppointmentCancelled into a local read model and prices them with a declared labour standard. The source later moved to dock-scheduling (warehouse-planning ADR 0020) and the four dockappointment types were retired in inbound-receiving (ADR 0022, 2026-11-10).inbound-receiving context map, row 4
H37slotting-optimizationSlotPlanApproved has no consumer: executing the moves as MOVE and REPLENISH work is planned, not built (K29) Resolved 2026-10-14. Decided by slotting-optimization ADR 0010 (supersedes ADR 0007) and built as RELOCATE work: wes-work-planning ADR 0040 plans one work unit per move, fulfillment-execution ADR 0047 runs the task, inventory-storage ADR 0039 moves the stock and raises StockRelocated, which slotting-optimization records as the plan's execution progress (K29, K37, K38).slotting-optimization context map, domain events
H38slotting-optimizationNot deployed: no warehouse-infra wiring, so its three local copies are not fed in the reference cluster Resolved 2026-10-16 on develop. warehouse-infra#75 registers it (database, Kong route, ArgoCD application) and helm-values/slotting-optimization.yaml turns on EVENT_PUBLISHER=kafka and the four consumers (the three local copies and RELOCATION_MODE). It runs once warehouse-infra is applied, and the RELOCATE process path must be seeded first.slotting-optimization Business Context, ecosystem gaps tracker 6
H39pick-face-replenishmentNot deployed: warehouse-infra develop has no database, Kong route, ArgoCD application, values file or dashboard for it. Resolved 2026-10-20/21. warehouse-infra#116 registered it and #121 added its MCP server, analytics and web remote; the ArgoCD application is Synced and Healthy with five pods, and its inputs K39, K40, K42 and K43 are consumed by a running instance. Still open: its cmd/api emits no metrics or traces.pick-face-replenishment Business Context, Runbook (deployment status)
H40pick-face-replenishmentA request cannot yet reach the floor: nothing consumes ReplenishmentRequested Resolved 2026-10-17 on develop. wes-work-planning ADR 0042 plans one REPLENISH work unit per request (consumer internal/adapters/inbound/kafka/replenishment_consumer.go, opt-in REPLENISHMENT_MODE=kafka) and process-path-management ADR 0036 declares the REPLENISH path; fulfillment-execution ADR 0050 and inventory-storage ADR 0040 and 0041 were already built. K44 is live since the 2026-10-20/21 deploy (REPLENISHMENT_MODE=kafka is set and pick-face-replenishment runs, H39).pick-face-replenishment context map, Async API
H41task-interleavingNot deployed: warehouse-infra develop has no database, Kong route, ArgoCD application, values file or dashboard for it. Resolved 2026-10-20/21. The ArgoCD application is Synced and Healthy with five pods (API, MCP, analytics projector and reports, frontend); its inputs K41, K45 and K46 are consumed by a running instance. Still open: its cmd/api emits no metrics or traces.task-interleaving Business Context, Runbook (deployment status)
H42task-interleavingThe hint has no reader: fulfillment-execution has no consumer of InterleavingHintIssued, no hint table and no claimNext tie-break (K47) Resolved 2026-10-18 on develop, deployed 2026-10-20/21. fulfillment-execution ADR 0051 (fulfillment-execution#224) stores one active hint per station and uses it as a tie-break inside one claimNext priority band.task-interleaving context map, Async API
H35product-masterStage E (remove the legacy importer, the inventory-storage backfill and the deprecated classification endpoint) has no date Resolved 2026-10-17: stage E removed the legacy importer, the inventory-storage backfill and the legacy ProductClassified type (product-master ADR 0003 index: "importer removed at stage E (2026-10-17)").product-master EventStorming (ADR 0003, stage E)
H43outbound-shippingReleased as v0.1.0 (2026-11-11), chart merged, registered and image-pinned in warehouse-infra develop (PR 205: terraform/apps.yaml entry, helm-values/outbound-shipping.yaml with one API replica, MCP off and no relay deployment, dashboards, alert rules, image 857edfd-arm64), applied to k3s on 2026-11-12: one api replica at 857edfd runs (read-only kubectl, 2026-11-13), so loads are planned and confirmed; seven edges are live (the five inbound feeds, the analytics fold, exception-management) and three are not (order-management's consumer dark, network-fulfillment's running image predates its consumer, yard-management's handler unbuilt)outbound-shipping Async API, Context Map K67 to K75
H44outbound-shippingThe two consumers its ADRs name for ShipmentConfirmed (network-fulfillment, ADR 0004) and for LoadingStarted, LoadClosed, LoadReopened (yard-management, ADR 0005) have no handler on their develop; the asyncapi marks the three yard-bound types pendingoutbound-shipping Async API, Context Map K74 and K75
H45fulfillment-executionPackageManifested omits site_id today (no source in the order-work chain yet), and outbound-shipping ignores a manifest without it, so no load is planned from a manifest even when both ends runoutbound-shipping Business Context, outbound-shipping ADR 0003, Context Map K67

Other wired-but-unused edges are not drawn, because they sit outside the order-to-ship timeline. They are warehouse-ops-agent's MCP clients for process-path-management and order-management, warehouse-planning's get_capacity_plan, get_storage_capacity and list_station_standards tools, and workforce-management's REST client to labor-performance. They are listed on the warehouse-ops-agent, warehouse-planning and workforce-management context maps.

Per-context EventStorming​

Each context's design-level EventStorming has its aggregates, the full sticky inventory and the code evidence:

ContextEventStorming
order-management/contexts/order-management/eventstorming
inventory-storage/contexts/inventory-storage/eventstorming
wes-work-planning/contexts/wes-work-planning/eventstorming
fulfillment-execution/contexts/fulfillment-execution/eventstorming
workforce-management/contexts/workforce-management/eventstorming
facility-layout/contexts/facility-layout/eventstorming
process-path-management/contexts/process-path-management/eventstorming
labor-performance/contexts/labor-performance/eventstorming
warehouse-ops-agent/contexts/warehouse-ops-agent/eventstorming
network-fulfillment/contexts/network-fulfillment/eventstorming
warehouse-planning/contexts/warehouse-planning/eventstorming
product-master/contexts/product-master/eventstorming
inbound-receiving/contexts/inbound-receiving/eventstorming
slotting-optimization/contexts/slotting-optimization/eventstorming
pick-face-replenishment/contexts/pick-face-replenishment/eventstorming
task-interleaving/contexts/task-interleaving/eventstorming
network-inventory-planning/contexts/network-inventory-planning/eventstorming
outbound-shipping/contexts/outbound-shipping/eventstorming

network-inventory-planning's inter-warehouse transfer flow is not one of the five phases above, which follow a customer order from intake to shipment. It has its own design-level board, linked in the last row: facts from facility-layout, order-management and warehouse-planning feed a fail-closed snapshot, an operator approval starts a saga that reserves stock in inventory-storage, and the floor facts from fulfillment-execution carry it to the destination stow. Its hotspots are on that page and in the Context Map (K30 to K36).