Skip to main content

WCS context map

This page is the Connect step for the WCS tier: every relationship between the three WCS contexts, the existing fleet and the emulated equipment, drawn with ddd-crew's context-mapping patterns. Upstream (U) is the side whose model the other side depends on.

Arrows point from upstream to downstream.

Relationships​

#Upstream → downstreamPatternChannelWhat crosses
1material-flow-control → fulfillment-executionCustomer/Supplier. The WCS supplies an Open Host Service with a Published Language; fulfillment-execution is the customer, and its EquipmentCommandPort (ADR-0015) is the Anti-Corruption Layer on its side.REST command POST /transport-requests with Idempotency-Key; outcomes as events on warehouse.material-flow-control.eventsRequest: container, source, destination, purpose, priority, due. Facts back: TransportAccepted, TransportRejected, ContainerArrivedAtStation, TransportCompleted, TransportFailed.
2material-flow-control → wes-work-planningCustomer/Supplier, with an ACL on the WES side that translates equipment capacity into a release constraint.Kafka eventsSubsystemCapacityChanged: AMRs available, AS/RS retrieval rate, station queue depth.
3facility-layout → amr-fleet-controlConformist through an ACL: the travel graph and station and dock locations are translated into a VDA 5050 node and edge map.facility-layout's existing events and REST readsWaypoints, edges, stations, dock doors, handoff points.
4amr-fleet-control → material-flow-controlCustomer/Supplier inside the WCS; material-flow-control is the customer. The supplier offers the subsystem-controller interface.REST command and Kafka eventsOne transport leg; robot assigned; leg completed or failed; fleet capacity.
5asrs-control → material-flow-controlCustomer/Supplier inside the WCS, the same subsystem-controller interface.REST command and Kafka eventsStore or retrieve a container; container presented at a port; equipment state; AS/RS capacity.
6robots → amr-fleet-controlConformist to VDA 5050 v3.MQTT with JSONorder, instantActions, state, connection, factsheet.
7AS/RS PLC → asrs-controlConformist to a fleet-defined telegram protocol with a handshake. No public standard exists; SAP EWM's telegrams are the model.MQTTMove and storage telegrams and their acknowledgements.
8WCS contexts → exception-managementConformist: exception-management already conforms to every producer it consumes.Kafka eventsClarification, robot blocked, deadlock, AS/RS fault.
9fulfillment-execution → inventory-storageUnchanged. The stock ledger stays the single writer.The existing TaskCompletedPicks and putaways, including stows into the AS/RS logical location.

Rules the map enforces​

  • One door to the WES. Only material-flow-control faces the WES. The WES never addresses a robot, a node, a shuttle or a rack position. That is ADR-0015's vocabulary rule, enforced from the WCS side.
  • No WCS link to the stock ledger. There is no relationship from any WCS context to inventory-storage. The WCS never needs to know what is inside a container, and the ledger learns about moves only through fulfillment-execution's existing TaskCompleted.
  • MQTT stays inside the WCS. Relationships 6 and 7 are the only MQTT edges. Everything that crosses to the WMS or the WES is a CloudEvents 1.0 event on Kafka (see seam decision 5).
  • Subsystem controllers are interchangeable. Relationships 4 and 5 use one subsystem-controller interface, so a vendor controller behind an adapter can replace either context without changing material-flow-control.
  • Read-only consumers are not drawn. warehouse-ops-agent and warehouse-console read equipment state and container position the way they read every other context. The three contexts also expose read-only MCP servers and A2A agents (every tool and skill L1; see Agent surfaces); those surfaces are not relationships on this map either.

Why a REST command at relationship 1​

fulfillment-execution needs an immediate accept or reject: an unknown container, a busy container or an unreachable destination must fail the request at once, not minutes later through an event. Progress after acceptance is asynchronous and goes on events, which is how order-management already calls inventory-storage for reservations. Relationships 4 and 5 use the same shape so that the three WCS contexts follow one pattern.