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
| Property | Value |
|---|---|
| Subdomain classification | Core Domain (ADR 0001; reasoning and neighbours on Subdomain classification) |
| Tier | wes (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 / style | Go backend, hexagonal architecture (ports and adapters) |
| Inbound adapters | REST (cmd/api, :8080) and MCP (cmd/mcp, :8090, Streamable HTTP) |
| Integration | Kafka CloudEvents 1.0 (structured mode), transactional outbox for publishing |
| Auth | None 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:
- Bounded context: purpose, context map, the no-live-lookup rule.
- Aggregates:
ProcessCapacityandCapacityPlanand their invariants. - Capacity composition: how a step's capacity is resolved (window coverage, station capacity).
- Runtime: the four binaries and how they are wired.
- Use cases and Subdomain classification.
- DDD artifacts: the ddd-crew pack (core domain chart, canvases, context map, EventStorming, class, ER and sequence diagrams).
- Integration contracts: every upstream, downstream and caller, with failure behaviour.
Run and operate it:
- Quickstart: build, test and run locally, first calls.
- Configuration: every environment variable per binary.
- Runbook, Observability and Troubleshooting.
- Testing: the test pyramid,
maketargets and CI jobs.
Reference:
- API reference: REST (generated from
apis/openapi.yaml) and the event catalogue. - MCP tools: every tool of
cmd/mcp. - Architecture decision records: the index of all twelve ADRs.
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.