Warehouse Control System (WCS)
This section is the strategic design of the WCS tier. All three contexts
are BUILT and released: IQVO/asrs-control
(develop 9e1dd55, merged 2026-11-20, plan WCS-02, released v0.1.2),
IQVO/amr-fleet-control
(develop a628a70, merged 2026-11-22, plan WCS-03, released v0.1.1) and
IQVO/material-flow-control
(develop cabc7c1, merged 2026-11-22, plan WCS-04, released v0.1.1),
each with its OpenAPI, AsyncAPI, warehouse.<context>.events and
.analytics topics. material-flow-control calls amr-fleet-control and
asrs-control over REST as drawn (relationships 4 and 5 of the
context map); asrs-control speaks telegram protocol v1
and amr-fleet-control VDA 5050 v3 over MQTT to equipment-emulator
(released v0.1.0). warehouse-infra (d12d05f) registers all four
applications and switches the REST, MCP and A2A routes of the three
controllers on; the pods were checked on 2026-12-02 (the agent node was
NotReady, so pods on it were Pending): asrs-control 0/1 and
asrs-control-agents 1/1, amr-fleet-control 0/1 and
amr-fleet-control-agents 1/1, material-flow-control 1/1 and
material-flow-control-agents 1/1, equipment-emulator 0/1.
fulfillment-execution still keeps its empty EquipmentCommandPort reserved
(ADR-0015); wiring it to material-flow-control is a change on the WES side
that this section does not claim.
A warehouse runs on a stack of software categories. The WMS keeps the inventory and the transactions, the WES decides when and where work runs, and the WCS drives the equipment (see the industry reference). The fleet has a WMS tier and an embedded WES. This section designs the missing third tier for two kinds of automation, an AMR fleet and an AS/RS (shuttle storage), across four flows: goods-to-person picking, putaway into the AS/RS, replenishment moves and outbound transport to pack and dock.
The design follows the fleet's method, ddd-crew's DDD Starter Modelling Process, for the steps that come before code: Understand (the industry reference), Decompose and Strategize (subdomains), Connect (context map, message flows) and Define (one page per context).
The WCS in the stack
The design in brief
- Three bounded contexts, split the way the sources split the layer, as a
material flow controller over subsystem controllers:
material-flow-control(Supporting),amr-fleet-control(Generic, VDA 5050 master control) andasrs-control(Generic). - One door to the WES. Only
material-flow-controlfaces the WES. It is an Open Host Service whose Published Language is transport requests and container arrivals. The WES never addresses a robot, a shuttle or a rack position. - The WCS owns no inventory.
inventory-storageowns a container's identity and contents. The WCS owns where the container physically is and how it moves (seam decision 1). - The AS/RS is one logical location to the WMS. Rack positions, reshuffles
and internal moves stay inside
asrs-controland never touch the stock ledger (seam decision 2). - The WES becomes automation-aware.
material-flow-controlpublishes subsystem capacity, andwes-work-planningreleases against it. That meets Interact Analysis's first WES criterion, release "based on the utilization status of the automation equipment", which the fleet cannot meet today. - MQTT stays inside the WCS. Robots and the AS/RS emulator speak MQTT to
their controllers. Everything that crosses to the WMS or the WES is a
CloudEvents 1.0 event on Kafka with the
wessegment. - Generic, built to a standard. The fleet's verdict that equipment control
is Generic holds. The study project builds the Generic parts anyway, behind
VDA 5050 and a subsystem-controller interface, so that a vendor product could
replace either one without changing
material-flow-control.
Agent surfaces (MCP and A2A)
The three controllers carry the fleet's two agent surfaces over the same read
use cases as REST, as the Agentic Standard v2
asks every context to; the fleet-wide inventory is the
agent catalogue and the
A2A agents page. Each controller ships its own
cmd/mcp (Streamable HTTP, the official Go SDK, port 8090, open
/healthz) and its own cmd/a2a (JSON-RPC, port 8093, Agent Card at
/.well-known/agent-card.json), and warehouse-infra runs the two as the
containers of one <context>-agents Deployment (agents.colocate, its ADR
0012). REST goes through Kong at /api/<context>; MCP and A2A go through the
Agent Router (Envoy Gateway agent-router in envoy-gateway-system,
warehouse-infra ADR 0014 and 0015) at /api/mcp/<context> (rewritten to
/mcp) and /api/a2a/<context> (rewritten to /); on the host the Agent
Router is http://localhost:8010. Nothing authenticates: the in-cluster
boundary is the access control. A2A is delegation only; facts still travel as
CloudEvents on Kafka, and a skill never proxies another context's data. Every
tool and skill of the three controllers is L1 (inform: it reads and changes
nothing; the emulator below is the exception with its L3 world tools),
declared as _meta["com.warehouse/authority"] on each tool and as the
authority:L1 tag on each skill, and held by a read-only fitness test in each
repository; a write would need a new ADR at L3 or above.
Facts below were read on 2026-12-02 at origin/develop of each repository
and at the release tag the k3s cluster runs (warehouse-infra
terraform/targets/k3s.images.yaml pins 1ed1375 = v0.1.2,
c9a54ba = v0.1.1, bc26b63 = v0.1.1 and b58201e = v0.1.0); the
tool list is each repository's pinned golden registry
internal/adapters/inbound/mcp/testdata/tool_registry.golden.json, the skill
list its internal/adapters/inbound/a2a/server.go.
|| Context | MCP tools (by authority) | A2A skills (authority) | Routes | Deployed |
|| --- | --- | --- | --- | --- |
|| asrs-control (develop 9e1dd55, released v0.1.2) | 5 tools, all L1: list_asrs, get_asrs_state, get_asrs_capacity, get_storage_job, list_storage_jobs; one resource template, one prompt review_storage_job | 2 skills, both L1: job_status, asrs_capacity (ADR 0005) | REST /api/asrs-control (Kong); MCP /api/mcp/asrs-control; A2A /api/a2a/asrs-control (Agent Router) | mcp.enabled: true, a2a.enabled: true, agents.colocate: true in helm-values/asrs-control.yaml; asrs-control-agents 1/1 on 2026-12-02 (asrs-control 0/1 Pending, agent node NotReady) |
|| amr-fleet-control (develop a628a70, released v0.1.1) | 4 tools, all L1: get_fleet, list_open_legs, get_leg, get_robot; one resource template, one prompt review_leg | 4 skills, all L1: get_fleet, list_open_legs, get_leg, get_robot (ADR 0006) | REST /api/amr-fleet-control (Kong); MCP /api/mcp/amr-fleet-control; A2A /api/a2a/amr-fleet-control (Agent Router) | mcp.enabled: true, a2a.enabled: true, agents.colocate: true; amr-fleet-control-agents 1/1 on 2026-12-02 (amr-fleet-control 0/1 Pending) |
|| material-flow-control (develop cabc7c1, released v0.1.1) | 5 tools, all L1: get_container_track, get_station, get_transport, list_equipment_units, list_subsystems; one resource template, one prompt review_transport | 5 skills, all L1: transport_status, container_position, station_queue, subsystem_capacity, equipment_units (ADR 0007) | REST /api/material-flow-control (Kong); MCP /api/mcp/material-flow-control; A2A /api/a2a/material-flow-control (Agent Router) | mcp.enabled: true, a2a.enabled: true, agents.colocate: true; material-flow-control 1/1 and material-flow-control-agents 1/1 on 2026-12-02 |
|| equipment-emulator (develop 0313271, released v0.1.0 = the image the cluster runs) | 12 tools built on develop only, as a second listener of the emulator process on MCP_ADDR (:8090), not a cmd/mcp: L1 x8 list_robots, get_robot, get_asrs, list_faults, get_clock, list_scenarios, get_scenario_result, explain_robot; L3 x4 inject_fault, clear_fault, reset_world, run_scenario (ADRs 0007 and 0008) | none (no A2A agent) | no route family: the chart renders no HTTPRoute, so the listener is reachable inside the cluster only | off: the chart defaults mcp.enabled to false and helm-values/equipment-emulator.yaml has no mcp block; v0.1.0 predates the listener; equipment-emulator 0/1 Pending on 2026-12-02 |
The emulator is the one exception to the fleet's "MCP in its own cmd/mcp"
rule, and it is deliberate (its ADR 0007): all of its state lives in the
emulator process's memory, so a second process would have nothing to read. Its
four L3 tools change the simulated world, never a real one, and only on a
human approval with dry_run on every write; an agent never orders a robot,
submits a PLC job or drives the clock, which stay on MQTT.
material-flow-control's ADR 0007 keeps robot keys, storage job ids and leg
ids off its relationship-1 REST interface and its published events; they appear
only on its MCP and A2A read surfaces, which is where an agent can answer
which robot holds a container.
Pages in this section
| Page | What it answers |
|---|---|
| Industry reference | What a WCS is, owns and does not own, according to MHI, vendors, VDA 5050, the OPC UA companion specifications, SAP EWM and Bartholdi and Hackman. Where the sources disagree. |
| Subdomains | The WCS problem space split into subdomains, classified Core, Supporting or Generic, with a Core Domain Chart. |
| Context map | The three contexts and every relationship to the fleet, with its pattern and channel. |
| material-flow-control | Purpose, capabilities, invariants, language and published facts of the WES-facing context. |
| amr-fleet-control | The same for VDA 5050 master control of the AMR fleet. |
| asrs-control | The same for the AS/RS controller. |
| Seam decisions | The five decisions at the seams: container ownership, the AS/RS location, the WES-WCS contract, the transport purposes and the event segment. |
| Message flows | The four flows end to end, the failure path and the capacity loop. |
| Ecosystem impact | What changes in each existing context, the ADRs to write, and the infrastructure. |
| Implementation handoff | Build order, emulator scope, acceptance criteria per flow and open questions. |
Related: WMS and WES (where the existing contexts sit), Subdomain Classification and the Event Standard.