Skip to main content

amr-fleet-control

Built - IQVO/amr-fleet-control on develop, released v0.1.1

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​

CapabilityWhat it does
Mission assignmentChooses a robot for each leg by distance, battery and availability.
Path and traffic controlPlans 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 handlingDetects blockages and resolves them by re-routing or waiting.
ChargingSends robots to charge below a battery threshold and keeps them out of assignment until charged.
Robot registryTracks each robot's connection, state, errors and factsheet.
MapKeeps the versioned node and edge map, translated through an ACL from facility-layout's travel graph.

Responsibilities (what it must guarantee)​

  1. A robot executes one order at a time.
  2. A node or edge in a released base is reserved by exactly one robot.
  3. orderUpdateId only increases within one order (the VDA 5050 rule).
  4. A robot below the charge threshold is never assigned a leg.
  5. Every mission is pinned to one map version.
  6. Every accepted leg ends in exactly one of LegCompleted or LegFailed, with a reason.

What it does not own​

ConcernOwner
Which container moves, why, and where it endsmaterial-flow-control, from the WES request
Station sequence and buffersmaterial-flow-control
Container contentsinventory-storage
The building's structure and travel graphfacility-layout (this context keeps only its translated copy)
The AS/RSasrs-control

Ubiquitous language​

TermMeaning
RobotOne AMR, identified by VDA 5050 manufacturer and serialNumber.
MissionThis context's execution of one leg by one robot.
OrderA VDA 5050 order sent to a robot: a node and edge graph segment, with orderId and orderUpdateId. Used only inside this context.
Node, EdgeThe VDA 5050 map elements, translated from facility-layout's waypoints and edges.
Base, HorizonThe released and the not yet released parts of an order (VDA 5050).
ActionA VDA 5050 action at a node or edge, for example lift or drop a container.
FactsheetA robot's published capabilities (VDA 5050).
ChargingStationA node where robots charge.

Candidate aggregates​

AggregateInvariants it protects
Mission3, 5, 6: order updates, map version, one outcome
Robot1, 4: one order, charge threshold
FleetMap2: node and edge reservations within one map version

Inbound communication​

FromMessageChannel
material-flow-controlRequest a leg; cancel a legREST
facility-layoutTravel graph, station and dock locationsIts existing events and REST reads, through the ACL
Robotsstate, connection, factsheetMQTT (VDA 5050)

Outbound communication​

ToMessageChannel
Robotsorder, instantActionsMQTT (VDA 5050)
material-flow-controlLegAssigned, LegCompleted, LegFailed, FleetCapacityChanged, RobotStateChangedKafka
exception-managementDeadlockDetected, LegFailed with reason ROBOT_BLOCKEDKafka

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.