amr-fleet-control
Classification Generic: VDA 5050 master control, built to the standard so a
vendor fleet controller could replace it. CloudEvents segment wes. Topics
warehouse.amr-fleet-control.events and .analytics. Speaks VDA 5050 v3 over
MQTT to the robots. Repository: IQVO/amr-fleet-control,
merged 2026-11-22 (plan WCS-03, PR #2), released v0.1.1 2026-11-23: OpenAPI and
AsyncAPI contracts, the versioned node-and-edge example floor map
(config/map.example.yaml, pinned to the equipment emulator's world), which
carries the pick-face, forward and clarification handoff points
PK1/FWD1/CLR1 since map version 2026-11-22.1 (plan WCS-06). The
facility-layout ACL stays a design proposal; the built map is the
hand-maintained example floor. Verified at develop a628a70 on 2026-12-02:
released v0.1.1 (the tag carries cmd/api, cmd/mcp and cmd/a2a, and is
the image the k3s cluster runs), applied to the cluster with mcp.enabled: true, a2a.enabled: true and agents.colocate: true (warehouse-infra
helm-values/amr-fleet-control.yaml); on 2026-12-02 amr-fleet-control-agents
was 1/1 and amr-fleet-control 0/1 Pending (the agent node was NotReady).
Agent surfaces: a read-only MCP server (4 L1 tools) and a read-only A2A agent
(4 L1 skills), see Agent surfaces.
Purpose
Execute transport legs with a fleet of autonomous mobile robots, safely and without deadlocks. It is the "fleet control system" of VDA 5050, which does "Assignment of orders to the mobile robots", "Detection and resolution of blockages ('deadlocks')" and "Traffic control" (see the industry reference).
Business capabilities
| Capability | What it does |
|---|---|
| Mission assignment | Chooses a robot for each leg by distance, battery and availability. |
| Path and traffic control | Plans the route on the node and edge map, releases nodes and edges as VDA 5050 base and horizon, and reserves them so that two robots never hold the same one. |
| Deadlock handling | Detects blockages and resolves them by re-routing or waiting. |
| Charging | Sends robots to charge below a battery threshold and keeps them out of assignment until charged. |
| Robot registry | Tracks each robot's connection, state, errors and factsheet. |
| Map | Keeps the versioned node and edge map, translated through an ACL from facility-layout's travel graph. |
Responsibilities (what it must guarantee)
- A robot executes one order at a time.
- A node or edge in a released base is reserved by exactly one robot.
orderUpdateIdonly increases within one order (the VDA 5050 rule).- A robot below the charge threshold is never assigned a leg.
- Every mission is pinned to one map version.
- Every accepted leg ends in exactly one of
LegCompletedorLegFailed, with a reason.
What it does not own
| Concern | Owner |
|---|---|
| Which container moves, why, and where it ends | material-flow-control, from the WES request |
| Station sequence and buffers | material-flow-control |
| Container contents | inventory-storage |
| The building's structure and travel graph | facility-layout (this context keeps only its translated copy) |
| The AS/RS | asrs-control |
Ubiquitous language
| Term | Meaning |
|---|---|
| Robot | One AMR, identified by VDA 5050 manufacturer and serialNumber. |
| Mission | This context's execution of one leg by one robot. |
| Order | A VDA 5050 order sent to a robot: a node and edge graph segment, with orderId and orderUpdateId. Used only inside this context. |
| Node, Edge | The VDA 5050 map elements, translated from facility-layout's waypoints and edges. |
| Base, Horizon | The released and the not yet released parts of an order (VDA 5050). |
| Action | A VDA 5050 action at a node or edge, for example lift or drop a container. |
| Factsheet | A robot's published capabilities (VDA 5050). |
| ChargingStation | A node where robots charge. |
Candidate aggregates
| Aggregate | Invariants it protects |
|---|---|
Mission | 3, 5, 6: order updates, map version, one outcome |
Robot | 1, 4: one order, charge threshold |
FleetMap | 2: node and edge reservations within one map version |
Inbound communication
| From | Message | Channel |
|---|---|---|
material-flow-control | Request a leg; cancel a leg | REST |
facility-layout | Travel graph, station and dock locations | Its existing events and REST reads, through the ACL |
| Robots | state, connection, factsheet | MQTT (VDA 5050) |
Outbound communication
| To | Message | Channel |
|---|---|---|
| Robots | order, instantActions | MQTT (VDA 5050) |
material-flow-control | LegAssigned, LegCompleted, LegFailed, FleetCapacityChanged, RobotStateChanged | Kafka |
exception-management | DeadlockDetected, LegFailed with reason ROBOT_BLOCKED | Kafka |
MQTT topics follow VDA 5050:
vda5050/v3/<manufacturer>/<serialNumber>/<topic>.
Agent surfaces
amr-fleet-control ships the fleet's two agent adapters over the same read
use cases as REST, both read-only at authority L1: ADR 0006,
docs/adr/0006-read-only-mcp-and-a2a-surfaces.md (accepted 2026-11-20).
Requesting and cancelling a leg belong to material-flow-control alone
(relationship 4 of the context map); neither binary may do
it, and a future L2 tool needs its own ADR. The levels are those of the
Agentic Standard v2.
MCP server
cmd/mcp on port 8090: Streamable HTTP, stateless, at /mcp and /, with
/healthz open. Four tools, all read-only, idempotent, closed world and
declaring _meta["com.warehouse/authority"] = "L1"; the registry is pinned by
internal/adapters/inbound/mcp/testdata/tool_registry.golden.json. One
resource template, warehouse://amr-fleet-control/fleets/{fleetId}, and one
prompt, review_leg. Every tool call is one mcp.tool span carrying
warehouse.authority=L1.
|| Tool | Authority | What it reads |
|| --- | --- | --- |
|| get_fleet | L1 | The fleet: map id and version, the handoff points (AS/RS ports and stations), every robot with its connection, PackML state (IDLE, EXECUTE, SUSPENDED = charging, HELD = a blocking error, STOPPED = offline or stale), battery, node and errors, and the capacity counts. |
|| list_open_legs | L1 | The fleet's open legs (QUEUED, ASSIGNED, PICKED_UP, CANCEL_REQUESTED) in acceptance order, each the get_leg shape. Internal charge and park missions are not legs. |
|| get_leg | L1 | One leg: container, from and to handoff points, status, the robot executing it, and once failed the reason (CANCELLED, ROBOT_BLOCKED, ROBOT_FAULT, ROBOT_OFFLINE, ORDER_REJECTED, PICK_FAILED, DROP_FAILED, MAP_VERSION_RETIRED) with the robot's errorType. |
|| get_robot | L1 | One robot of the registry: connection, PackML state, battery, charging, availability, the node it stands on, its mission, its active error types, when it last reported, and its factsheet. |
fleet-not-found and robot-not-found are retryable (ADR 0004: a map deploy
or a robot's first report clears them), so no tool calls an unknown id final.
A2A agent
cmd/a2a on port 8093: JSON-RPC at /a2a and /, the Agent Card at
/.well-known/agent-card.json, GET /healthz open, no security scheme. A
message-only agent whose reply is one agent message bound to the caller's
contextId; domain problems travel inside the message envelope as the REST
catalogue slug. Four skills of the same names as the tools, each tagged
authority:L1.
|| Skill id | Name | Authority | Arguments | What it reads |
|| --- | --- | --- | --- | --- |
|| get_fleet | Read the fleet | L1 | fleetId | The fleet as get_fleet reads it. |
|| list_open_legs | List the open legs | L1 | fleetId | The open legs in acceptance order. |
|| get_leg | Read one leg | L1 | fleetId, legId | One leg as get_leg reads it. |
|| get_robot | Read one robot | L1 | fleetId, manufacturer, serialNumber | One robot as get_robot reads it. |
Routes and deployment
REST goes through Kong at /api/amr-fleet-control (the chart's
gatewayApi.path, prefix stripped). MCP and A2A go through the Agent Router
(Envoy Gateway agent-router in envoy-gateway-system; warehouse-infra ADR
0015 for MCP, 0014 for A2A): /api/mcp/amr-fleet-control is rewritten to
/mcp on the amr-fleet-control-mcp Service (:8090), and
/api/a2a/amr-fleet-control is rewritten to / on the
amr-fleet-control-a2a Service (:8093); on the host the Agent Router is
http://localhost:8010. The chart defaults mcp.enabled, a2a.enabled and
agents.colocate to false; warehouse-infra
helm-values/amr-fleet-control.yaml (read at d12d05f on 2026-12-02) switches
all three on, so cmd/mcp and cmd/a2a run as the two containers of one
amr-fleet-control-agents Deployment (warehouse-infra ADR 0012). Both
binaries read Postgres through a read-only reader over which every write
answers ErrReadOnly (a read-only pool whose transactions are BEGIN READ ONLY), never dial Kafka or MQTT and never start the relay. Nothing
authenticates; the in-cluster boundary is the access control.