Subdomain Classification
Domain-Driven Design splits a domain into Core, Supporting and
Generic subdomains by how much competitive advantage each one gives. Size,
difficulty and how interesting the code is do not decide it. The table below
gives the fleet verdict for the twenty contexts documented on this site
(every backend service in the fleet). Each verdict matches
the Strategic Classification section of that context's own
Bounded Context Canvas and its point on its own Core Domain
Chart. The fleet-wide plot is on Core Domain Chart.
The four newest synced rows, inbound-receiving and slotting-optimization
(decided 2026-10-08), pick-face-replenishment and task-interleaving
(decided and merged 2026-10-17), are built and ship their own synced canvas and Core
Domain Chart, all in the Supporting quadrant. Two rows,
returns-processing and exception-management (decided and merged
2026-10-20/21), are built on develop and their canvases are written for
this site from their ADR 0001s (their repositories ship no ddd-crew pack
yet, so there is no chart page to link). The newest row, outbound-shipping
(wms, ADR 0001 of 2026-11-05), is released as v0.1.0, registered in
warehouse-infra develop and applied to the k3s cluster since 2026-11-12; it
ships its own synced canvas and Core Domain Chart, in the Supporting quadrant.
The CloudEvents subdomain column is the <subdomain> segment of every
event type the context publishes:
com.warehouse.<subdomain>.<bounded-context>.<entity>.<EventName>. See the
Event Standard. That segment
groups contexts by tier: wms is the warehouse-management tier and wes
is the execution tier. It is not the same as the Core/Supporting/Generic
classification. For example, facility-layout is wms and Generic, while
wes-work-planning is wes and Core.
| Bounded context | Classification | CloudEvents subdomain | Business model (its canvas) | Evolution (its canvas) | Why (its canvas and chart) |
|---|---|---|---|---|---|
wes-work-planning | Core | wes (type segment work-planning) | Cost reduction / throughput | Custom-built | The release decision is where the operation's speed is won or lost: CPT priority, waveless one-at-a-time admission, WIP backpressure, Drum-Buffer-Rope flow balancing. Replacing it with a vendor WES behind an ACL would drop it to Supporting. It decides execution only: the charge forecast, the shift plan and the drift left it for warehouse-planning (ADR 0049). Canvas, chart |
fulfillment-execution | Core | wes | Cost reduction / operational efficiency | Custom-built | Pull-based dispatch with lease semantics is the throughput differentiator. The context's own chart splits it internally: Task dispatch and lease, and Rebin consolidation, are Core. Pack and SLAM are Supporting and kept thin. The analytics read side and WCS equipment control are Generic. Canvas, chart |
inventory-storage | Core | wms | Revenue enabler | Custom-built, moving towards Product | "Inventory & Slotting" is Core in the reference model. Revocable reservations and the chaotic-stow ledger are the differentiators: four aggregates and 30 tested aggregate invariants. Every customer promise rests on its usable answer. Canvas, chart |
warehouse-planning | Core | wes | Risk reduction / engagement creator | Custom-built, recently out of genesis | ADR 0001 introduces it as a Core Domain. No other context computes a normalized, cross-process effective capacity or a forward-looking capacity shortage. workforce-management stops at the path boundary, facility-layout knows structure but not throughput, and inventory-storage knows stock, which is not capacity. It also owns the requirement side of planning (workload forecast, labour plan and its drift, labour requirement, scenarios, supersession), taken over from wes-work-planning (its ADR 0049): the demand-and-labour needed is decided where capacity is decided, and workforce-management keeps the supply. Canvas, chart |
network-inventory-planning | Core | wes | Cost reduction / service level | Custom-built, early | ADR 0001 creates it as a "WES-core bounded context". No other context decides whether stock should move between warehouses: inventory-storage holds stock per site, order-management knows demand, warehouse-planning knows throughput, and none relates them. Every recommendation is reproducible (policy version, reason codes, score breakdown) and an approved transfer is carried to the destination as a saga without a distributed transaction. Held back from the top: no forecasting or optimisation is built yet. Canvas, chart |
order-management | Generic/Supporting | wes | Compliance / engagement enabler | Intake: commodity. Allocation and hold/release: product. Capability-derived promise, routing and re-promise: custom | Intake on its own is commodity: the reference model files "Order Management / ERP interface" as Generic. The fulfillment rules layered on top lift it toward Supporting: fail-closed allocation, ship-complete, held network orders, and a promise derived from CPT schedule and path capacity. Its own chart places the context on the Supporting/Generic border. Canvas, chart |
workforce-management | Supporting | wes | Compliance / cost reduction | Product, with two custom-built parts (the idle-share trim and the installed-capacity ceiling) | Labor management is "important, industry-common". There is no optimiser or scoring function, and rebalancing is a human decision this context only records (ADR 0002). It is not Generic, because it is too tied to the fleet's process-path vocabulary for an off-the-shelf product to fit. Canvas, chart |
labor-performance | Supporting | wes | Compliance / cost reduction | Product | It measures how well finished work matched a standard, and it owns the engineered labor standard itself (LaborStandardDefined, LaborStandardRevised, its ADR 0038), which warehouse-planning reads to price a plan's labour requirement. Labor standards are a standard module in commercial labor-management products (its ADR 0002: "Supporting, not Core"). Canvas, chart |
warehouse-ops-agent | Supporting | wes (it publishes no events) | Cost reduction / operator productivity | Custom-built correlation policy. Product BFF shape | It correlates facts other contexts own and only recommends, with zero write tools. Caveat from its own canvas: it owns no aggregate, so it is not a bounded context in the aggregate-and-invariant sense. The fleet map still files it as Supporting. Canvas, chart |
network-fulfillment | Supporting | wes | Revenue-channel enabler | Custom-built ACL and acknowledgement protocol. CapabilityOffer is genesis → custom | It lets the building's capability be sold through an external network, but the knowledge it uses is owned elsewhere: feasibility is asked of order-management, never recomputed. It is Conformist to the network and an Anti-Corruption Layer for the fleet (its ADR 0001). Canvas, chart |
product-master | Supporting | wms | Compliance and risk reduction | Custom-built (genesis) | It keeps hazmat, temperature and fragile handling correct in every downstream flow, but nobody chooses the warehouse for how it records SKU master data: "necessary for every warehouse flow and specific to this warehouse's handling rules, but it is not where the business differentiates" (its ADR 0001). One aggregate, few rules. It took classification over from inventory-storage (ADR 0003). Canvas, chart |
inbound-receiving | Supporting | wms | Cost reduction / compliance (accurate receipt and discrepancy record) | Custom-built (genesis) | Not generic, because the ASN, dock-appointment and discrepancy rules differ per retailer. Not Core, because nobody chooses a warehouse for how it records a receipt, and the ASN, appointment and discrepancy rules are replaceable policy objects (its ADR 0001, decision 3 of the 2026-10-08 plan). Canvas, chart |
slotting-optimization | Supporting | wms | Cost reduction (pick travel and labor) | Custom-built (genesis) | Not generic, because slotting policy differs per retailer. Not Core, because the competitive core stays the WES conductor, and the v1 policy abc-velocity-v1 is a deterministic, replaceable policy behind a port (its ADR 0001 and ADR 0002, decisions 3 and 7 of the 2026-10-08 plan). Canvas, chart |
pick-face-replenishment | Supporting | wms | Cost reduction (no empty forward pick face, fewer short picks) | Custom-built (genesis) | Not generic, because min/max and source-bin rules differ per retailer. Not Core, because min/max is a replaceable policy object (v1 MIN_MAX per site and SKU behind a port) and the competitive core stays the WES conductor (wes-work-planning) and the task lifecycle (fulfillment-execution). It generates replenishment requests only: it never creates floor work and never writes the stock ledger (its ADR 0001 and ADR 0002). Canvas, chart |
task-interleaving | Supporting | wes | Cost reduction (less travel between tasks) | Custom-built (genesis) | Not generic, because detour limits and eligible task types differ per site. Not Core, because the detour rule is a replaceable policy object (rectilinear-v1 travel model behind a port) and its output is advisory: fulfillment-execution keeps pull-based claimNext and would use a hint only as a tie-break inside one priority band, fail-open. Canvas, chart |
returns-processing | Supporting | wms | Value recovery / compliance (accurate return record and disposition audit) | Custom-built (genesis) | Value recovery is material (returns run 20-30 % of e-commerce volume) but the differentiator is the ledger it feeds: restock reuses inventory-storage's staged-receipt -> stow seam unchanged, and the disposition policy (grade x product class -> outcome) is a replaceable policy object behind a versioned table (its ADR 0001). Four of the five outcomes never touch stock. Canvas |
exception-management | Supporting | wes | Cost reduction / operational accuracy (anomalies get an owner and an outcome) | Custom-built (genesis) | Supporting today, candidate Core once auto-resolution policies and agent recommendations run against it (its ADR 0001). Not generic, because queues, severities and auto-resolve rules are this fleet's own policy vocabulary; not yet Core, because the lifecycle is a fixed, small state machine and the producers own the detection logic. Canvas |
outbound-shipping | Supporting | wms | Cost reduction / revenue protection (fewer missed cutoffs, an accurate "shipped" fact) | Custom-built; the bill of lading leans Product | Not generic, because the split between the yard (physical facts) and shipping (the load) is this fleet's own. Not Core, because the fleet does not win customers by how it records what was loaded on a truck, there is no optimiser or scoring, and the bill of lading is a commodity document; what it protects is the accuracy and timeliness of the "it left" fact other contexts act on (its ADR 0001 and its own chart). Canvas, chart |
facility-layout | Generic | wms | Compliance / enabler | Product, heading toward commodity | The location hierarchy is the industry's WMS convention, adopted rather than invented, and location roles mirror commercial WMS location masters. It has to be correct, not clever. Its complexity is real (eight aggregate roots and a travel graph), but that complexity serves correctness, not differentiation. Canvas, chart |
process-path-management | Generic | wes | Compliance / enabler | Custom-built, heading towards product/commodity | A process-path catalogue is well understood and does not differentiate. It declares what a path is and decides nothing about dispatch, routing or assignment. It is extracted because several contexts need the same definition and none of them is its natural owner (its ADR 0001). Canvas, chart |
Count: five Core, twelve Supporting, two Generic, and one Generic/Supporting.
pick-face-replenishment and task-interleaving are merged on develop (each with a REST API, outbox publisher
and Kafka consumers) and deployed in the reference cluster. returns-processing and
exception-management are merged on develop (each with a REST API, a read-only MCP
server, an outbox publisher and Kafka consumers; service PR #2 plus packaging PR #3)
and have been registered in warehouse-infra develop since 2026-10-22; all four are in the count above, the last
two with pages written for this site until their repositories ship a ddd-crew pack.
outbound-shipping is built on develop (REST API, read-only MCP server, outbox
relay and six Kafka consumers), released as v0.1.0 with its Helm chart merged, registered and
image-pinned in warehouse-infra develop (PR 205), and applied to the k3s
cluster since 2026-11-12 (one api replica at 857edfd). It is in the count above.
The "extract once, don't duplicate" pattern
facility-layout and process-path-management are Generic contexts that
exist so that no Core or Supporting context has to own a concern several of
them need:
- Process paths. Before
process-path-management, three contexts each loaded the same static YAML catalogue at boot:fulfillment-execution,wes-work-planningandworkforce-management. That catalogue,warehouse-infra'sconfig/process-paths/sortable-fc.yaml, is now frozen and kept only as a rollback payload. All three consumers, plusorder-management, read the catalogue fromwarehouse.process-path-management.eventsinstead (see the Context Map). PPM's ADR 0001 records the argument. - Physical location. The WMS tier needs it for stow validity, and the WES
tier needs it for travel and capacity, but neither tier owns it.
facility-layout's context map cites the platform reference's rule: "Extract generic logic instead of duplicating it."
Both contexts keep that role cheap to depend on. Neither calls a sibling:
facility-layout has no outbound adapter to another service, and
process-path-management's build fails if one is added.
Why order-management is both Generic and Supporting
order-management's own CLAUDE.md title line, Bounded Context Canvas and
Core Domain Chart all say Generic/Supporting. Its chart shows why with
three points:
- order intake alone is deep in commodity territory (0.15, 0.12);
- its promise and routing policies sit in the Generic quadrant (0.62, 0.45);
- the context as a whole lands on the border between the two (0.46, 0.36).
Its chart also predicts that the context will move down the chart as the promise inputs settle, and that intake could be replaced by a bought OMS without touching the Core contexts. This page records both labels rather than forcing one that would hide half of that.
Classification is per context; slices can differ
Two Core contexts classify their own internal slices separately on their charts:
fulfillment-execution: Packing and SLAM are Supporting, while dispatch and lease are Core.inventory-storage:- The usable-inventory read is Decisive, a short-term Core.
- Hazmat placement and DOT segregation are Supporting.
- The Flow & Accuracy report and bin registration are Generic.
The context-level verdict in the table above is the one that drives fleet decisions. The slice verdicts explain where investment inside a context concentrates.