48. The AutomatedStorage location type
Status
Accepted (2026-11-20). Additive: no existing route, event, field or column
changes meaning; one enum value (Pick) is added to the WorkCenter activities.
Builds on ADR 0016 (location roles) and
follows the additive pattern of ADR 0040 and
ADR 0045. Records the facility-layout row of the
WCS design (warehouse-docs docs/wcs/ecosystem-impact.md, seam decision 2).
Context
The WCS stores containers in an AS/RS that moves them between rack positions on
its own. Seam decision 2: "facility-layout gains a LocationType
AutomatedStorage with the role Storage. Each AS/RS is one logical location
with an ordinary LocationCode. … Rack positions stay inside asrs-control."
The ecosystem-impact row adds: "registers AS/RS ports, stations and dock handoffs as
locations", and the AMR map (amr-fleet-control, context-map relationship 3) is built
from this context's travel graph and its "waypoints, edges, stations, dock doors,
handoff points".
LocationType names are free strings (RegisterLocationType accepts any name); the
role is a closed enum. Nothing stops AutomatedStorage being registered as a dock
today, and nothing says which ports belong to which AS/RS.
Decision
- Well-known types with canonical roles.
AutomatedStorage→Storage;AsrsPort→Drop;HandoffPoint→Drop(Drop: "used to hold both inbound and outbound LPNs while in between warehouse processes"). Registering one of these names with another role is422 location-type-role-mismatch. Every other name stays free, exactly as today. No new LocationRole, handling unit or event. - One AS/RS is one Aisle with one
AutomatedStorageslot. At most one activeAutomatedStorageslot per aisle (409 automated-storage-already-in-aisle, backed by a Postgres partial unique index for concurrent registrations). AnAsrsPortslot is accepted only in an aisle that holds an activeAutomatedStorageslot (422 asrs-port-without-automated-storage). Decommissioning the AS/RS slot does not cascade to its ports. A keyedPOST /location-importsthat loses the aisle race on the index answers500 internal-error: the whole import rolls back, its key is released, and a retry re-executes (and reports the row rejected). - Convention (not enforced beyond decision 2): the AS/RS zone is
<site>-AUTO-ASRS(areaAUTO, zone codeASRS), the aisle code is asrs-control'sasrsId, the storage slot is<site>-AUTO-ASRS-<asrsId>-00-00-S, a port is<site>-AUTO-ASRS-<asrsId>-<asrs aisle, 2 digits>-00-<portId>(e.g.WH1-AUTO-ASRS-ASRS1-01-00-IN1), so material-flow-control and amr-fleet-control read(asrsId, portId)from a port's code: aisle segment and position segment. The port's geometry (PUT /locations/{code}/geometry) is where robots drop and pick. A handoff point is aHandoffPointslot in the zone it serves (a dock's outbound lane, a forward area). - Stations are WorkCenter locations. The activity
Pickis added for goods-to-person stations; a decant station declaresReceiveandDeconsolidate(existing). fulfillment-execution already requires a station's location to be a WorkCenter.
Consumers (proved before this change; re-verified in the PR)
Consumer of LocationSlotRegistered / GET .../locations | Reads | Why it is tolerant |
|---|---|---|
| inventory-storage facility cache | locationCode, zoneId, handlingUnit, and since its ADR 0054 locationType | free string; AutomatedStorage makes the bin container-only there |
| inbound-receiving dock-door copy | role, dockFlow | acts on role Dock only |
| dock-scheduling, yard-management | role | act on Dock / Yard only |
| outbound-shipping | role | acts on Staging only |
| order-sourcing, task-interleaving | codes, zones, geometry | no role or type switch |
| pick-face-replenishment | role (IsStorage) | reserve sources need a zone in RESERVE_ZONE_CODES (default RSV); the AS/RS zone ASRS is not one |
| slotting-optimization | role | forward candidates need a zone in FORWARD_ZONE_CODES (default FWD); ASRS is not one |
| warehouse-planning storage tally | role, locationType, activities | Storage → a bucket per type (a new AutomatedStorage bucket); WorkCenter → a bucket per upper-cased activity (a new PICK bucket); Drop → skipped with a WARN, as today |
| fulfillment-execution station registration | role | WorkCenter required, unchanged |
e2e-tests seed-inventory, retail-day | role=Storage listing | changed first to skip AutomatedStorage (e2e-tests PR, WCS plan 05a Task 1) |
Consequences
- An AS/RS appears in every Storage-role reading as ONE slot with the AS/RS's capacity envelope; its rack positions never exist here.
- material-flow-control and amr-fleet-control can locate an AS/RS's ports without a new attribute; if they ever need one (port kind, port order), it is a later additive field.
- The cluster's AS/RS, ports, stations and handoffs are data registered by WCS plan 06, not by this change.
Alternatives considered
- A new LocationRole
AutomatedStorage. Rejected: seam decision 2 fixes the role asStorage, and a new role value breaks every consumer that switches on role (warehouse-planning WARN-skips unknown roles). - Rack positions as slots. Rejected by seam decision 2.
- An
asrsIdattribute on port slots. Rejected for now: the aisle already expresses membership; an attribute is a REST + event + DB + MCP + A2A change for a fact the code carries.