warehouse-systems documentation
This site is the fleet-wide reference for the warehouse-systems
ecosystem. The ecosystem is twenty Go services
with hexagonal architecture that together implement a warehouse fulfillment
platform: nineteen domain bounded contexts plus warehouse-ops-agent. Each
domain context has its own REST surface and a read-only MCP server
(cmd/mcp), owns a Postgres database (all but the newest, outbound-shipping,
plus a separate analytical database; it keeps its load board in its single
database), and publishes Kafka events. warehouse-ops-agent is the exception: a thin
read-side agent with no database and no Kafka, which serves its own MCP tools
in-process. This site documents all nineteen domain contexts and the agent,
each with its synced artifact pack and, where it has specs, generated API
references. All twenty have an entry in the application registry of
warehouse-infra develop (terraform/apps.yaml), returns-processing and
exception-management since 2026-10-22. The twentieth, outbound-shipping
(released as v0.1.0 on 2026-11-11, Helm chart merged), was registered and
image-pinned there by PR 205 and is not applied: it has no pod in the k3s
cluster. That is the wiring in warehouse-infra develop; whether a given
cluster has applied a context is not something most pages here record.
No single repository's docs site can show the strategic picture: the context map, the core-domain classification, the shared ubiquitous language, and the message flows that cross context boundaries. Each context's own repository still owns and publishes its own docs site, with its ADRs, detailed tactical design and run-locally guide. This site gathers those artifacts, links them together, and adds the fleet-level strategic layer.
All source repositories live in the IQVO GitHub organization.
The twenty contexts on this site
| Context | Classification | CloudEvents subdomain |
|---|---|---|
order-management | Generic/Supporting | wes |
inventory-storage | Core | wms |
wes-work-planning | Core | wes |
fulfillment-execution | Core | wes |
warehouse-planning | Core | wes |
workforce-management | Supporting | wes |
labor-performance | Supporting | wes |
warehouse-ops-agent | Supporting | wes |
network-fulfillment | Supporting | wes |
facility-layout | Generic | wms |
process-path-management | Generic | wes |
product-master | Supporting | wms |
inbound-receiving | Supporting | wms |
slotting-optimization | Supporting | wms |
network-inventory-planning | Core | wes |
pick-face-replenishment | Supporting | wms |
task-interleaving | Supporting | wes |
returns-processing | Supporting | wms |
exception-management | Supporting | wes |
outbound-shipping | Supporting | wms |
The newest context on this site is outbound-shipping (wms, Supporting;
released v0.1.0, registered in warehouse-infra, not applied): trailer load planning, staging, loading, the
bill of lading and the ship-confirm on the trailer's physical departure, which
hands order-management the ShipmentConfirmed and PackageMissedLoad facts.
Before it came returns-processing and
exception-management (both decided 2026-10-20, built on develop since
2026-10-21). returns-processing owns the reverse flow of goods: the RMA
against a shipped order line, the return receipt and its inspection grade,
and the disposition decision, handing restockable units to
inventory-storage as staged lines. exception-management owns the Problem
Solve lifecycle: every case is opened by an anomaly fact another context
published, then deduplicated, triaged, assigned and timed against an SLA.
Before them, inbound-receiving and
slotting-optimization (decided 2026-10-08) cover what
happens before the first stow (ASN, dock appointment, receipt, discrepancies)
and which SKUs deserve a forward pick slot. pick-face-replenishment
(2026-10-17) keeps those forward pick faces stocked from reserve bins, and
task-interleaving (2026-10-17) recommends, after each completed task, the
nearby open tasks a station could chain next. network-inventory-planning recommends and
orchestrates inter-warehouse stock transfers as an operator-approved saga
without ever moving stock itself. product-master, before them, is the single source of
truth for what a SKU is: its handling classification (taken over from
inventory-storage) and its physical profile. warehouse-planning answers
whether the warehouse can process the demand assigned to it. network-fulfillment is the
anti-corruption layer to an external retail fulfillment network;
warehouse-infra develop wires it to run NETWORK_MODE=live against the
in-cluster retail network (its ADRs 0026 to 0028). The
Subdomain Classification and
Core Domain Chart pages give the
reasoning behind each classification.
Fleet-wide rules
- CloudEvents 1.0, structured content mode, on every Kafka message. This
applies to the integration topics (
warehouse.<ctx>.events) and the analytics topics (warehouse.<ctx>.analytics) alike. Every message carries the Kafka headercontent-type: application/cloudevents+json; charset=UTF-8, andtypeiscom.warehouse.<subdomain>.<bounded-context>.<entity>.<EventName>. Consumers dispatch on the fulltype, ignore unknown types, dedupe onid, and dead-letter or skip anything that fails CloudEvents validation. All contexts share one Kafka broker. The Event Standard page has the full rule. - REST and MCP are unauthenticated. Static bearer keys were adopted and then removed fleet-wide by deliberate decision (see ADRs).
- Each context owns its data. Cross-context facts travel as REST/MCP
calls or as CloudEvents.
process-path-managementandlabor-performancemake no REST or MCP calls to other contexts. They integrate through events only.
How this site is generated, and what is copied vs written here
-
Per-context DDD artifacts are synced copies. Each context repository keeps an artifact pack on
develop, derived from its own code. These pages are copied here without edits, and each one starts with a "Synced from" note that links to its source:- Core Domain Chart
- Bounded Context Canvas
- Context Map
- Aggregate Design Canvas
- Domain Message Flow
- EventStorming
- Ubiquitous Language
- Class Diagram
- Entity-Relationship
- Sequence Diagrams
- Domain Events
To fix one, edit it in the owning repository and re-sync. Each context also has a business-context page and a landing page written here. Most contexts also have an Async API page here that describes their Kafka topics.
-
Strategic Design is written here, from the synced per-context pages. It follows the ddd-crew templates:
- Domain Vision
- Core Domain Chart
- Subdomain Classification
- Big Picture EventStorming
- Context Map
- Domain Message Flows
- Event Standard
- Ubiquitous Language
The DDD Starter Modelling Process walks through the fleet one step at a time and links to the artifact each step produces.
-
REST API reference is generated from each context's
apis/openapi.yaml, the same spec each service lints in its own CI. Regenerate it withnpm run gen-api-docs:all. -
Async API reference is generated from each context's
apis/asyncapi.yamlby the official AsyncAPI Generator (@asyncapi/html-template) and embedded as static HTML. Regenerate it withnpm run gen-async-docs:all. -
Architecture section. The C4 views and the fleet summaries of the domain model, data model and runtime flows are written here. They are checked against each context's synced class, entity-relationship and sequence pages and its code on
develop. -
ADRs are linked to their own repositories, never copied, so they never drift.
npm run validate:mermaid parses and renders every Mermaid diagram on this
site in a real browser. docusaurus build does not check diagrams that
render client-side, so without this step a syntax error would reach the
published site as an error box.
Scope
This section documents the twenty backend contexts listed above (nineteen
domain bounded contexts and warehouse-ops-agent), which is every backend
service of the WMS and WES fleet. The retail network and the storefront have
their own sections, at /network/ and /storefront/.
The two frontend repositories (warehouse-console, warehouse-ui-kit) and
the deployment repository (warehouse-infra) appear on context pages where
relevant, for example as Module Federation remotes or in the Kafka topology.
They are not bounded contexts in the Evans/Vernon sense, so they have no DDD
artifacts here.
Navigating this site
| Section | What it covers |
|---|---|
| Strategic Design | Fleet-wide: the DDD Starter Modelling Process, domain vision, core domain chart, subdomain classification, Big Picture EventStorming, context map, domain message flows, the CloudEvents event standard, ubiquitous language |
| WMS and WES | The industry definitions of WMS, WES and WCS (Gartner, MHI, Interact Analysis, KNAPP, APQC, O'Reilly) and the qualification of every bounded context against them, with the tier each context belongs to |
| WCS (designed, not built) | The strategic DDD design of the warehouse control system tier for an AMR fleet and an AS/RS: industry reference, subdomains, three bounded contexts, context map, seam decisions, message flows and the implementation handoff |
| Business Capability Architecture | The fleet's business capability map (L1, L2, L3) built with the TOGAF and BIZBOK rules, every L3 traced to code, with heat maps, gaps and value streams |
| Architecture | Structural views: C4 levels 1–3, the domain model, the persistence model, and runtime sequence flows |
| Bounded Contexts | Per context: business context, then the synced ddd-crew artifact pack (ubiquitous language, core domain chart, Bounded Context Canvas, context map, Aggregate Design Canvas, domain events, domain message flow, EventStorming, class diagram, entity-relationship, sequence diagrams), then the Async API narrative where the context has one |
| API Reference | Per context: generated REST (OpenAPI) and async (AsyncAPI) documentation |
| ADRs | Index of Architecture Decision Records, linking to each context's own repository |
| Glossary | Key terms from every context's ubiquitous language, in one alphabetical index |
Study-project disclosure
warehouse-systems is an educational Domain-Driven Design exercise
following real industry-standard patterns (WMS/WES/WCS, CloudEvents,
RFC 7807, hexagonal architecture). It is not a production system and is not
affiliated with, endorsed by, or representative of Manhattan
Associates, Blue Yonder, or any other company. Where this documentation
grounds a design decision in public industry research (e.g. how large-scale fulfillment centers work), that research is cited. Anything derived from it
is labeled as a reference model, not as a factual claim about any real
company's internal systems.