Skip to main content

Warehouse Planning

warehouse-planning is a Core bounded context in the warehouse-systems fleet (GitHub org IQVO). It answers one question:

Can this warehouse process the demand assigned to it, given its current labor, location, equipment, station, conveyor and buffer constraints?

No other fleet context computes normalized, cross-process effective capacity or forward-looking capacity shortages. Inventory Management answers "what do we have"; this context answers "how much work can we perform".

Where it sits​

PropertyValue
Subdomain classificationCore Domain (ADR 0001; reasoning and neighbours on Subdomain classification)
Tierwes (CloudEvents type prefix com.warehouse.wes.warehouse-planning.*; wms is the tier of facility-layout, inventory-storage, product-master, inbound-receiving and slotting-optimization)
Language / styleGo backend, hexagonal architecture (ports and adapters)
Inbound adaptersREST (cmd/api, :8080) and MCP (cmd/mcp, :8090, Streamable HTTP)
IntegrationKafka CloudEvents 1.0 (structured mode), transactional outbox for publishing
AuthNone on REST or MCP (fleet-wide revert of 2026-09-11)

:::note Study project Like the rest of the warehouse-systems fleet, this is a personal study project exploring Domain-Driven Design, hexagonal architecture and AI-agent harness engineering. It is not production software and carries no support guarantee. :::

What this context owns​

  • ProcessCapacity - the usable throughput of one warehouse process at one location for one time window: the minimum across its registered constraints.
  • CapacityPlan - assigned demand for a location and planning window, compared with the capacity of a process path, producing a shortage (if any) and a bottleneck.
  • ProcessPath - an ordered sequence of process types (for example Pick, Rebin, Pack). It is locally declared by an operator; it is not copied from process-path-management.
  • StationStandard - the operator-declared throughput of one station of a process at a site. No upstream publishes it.

It also keeps an expected-demand read model (one row per order-management order, fed only by Kafka; ADR 0004) that a capacity plan defaults its demand to when the caller omits it.

It does not own labor scheduling (workforce-management), storage slotting and layout (facility-layout), stock levels (inventory-storage), SKU master data such as handling classification and unit dimensions (product-master) or path capability and eligibility authoring (process-path-management).

Where to go next​

Understand the model:

Run and operate it:

Reference:

Disclaimer

This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic.