Bounded Contexts
Every bounded context below has the same page set, in this order. The ddd-crew tool behind each page, or the page's source if no ddd-crew tool applies, is given in brackets:
- Business Context: the domain vision and the problem this context solves, in business language. (Hand-written for this site.)
- Ubiquitous Language: the exact vocabulary the context uses, taken from its domain code. (Context repository.)
- Core Domain Chart: where the context sits on the differentiation/complexity chart, with the evidence for that position. (ddd-crew core-domain-charts)
- Bounded Context Canvas: name, purpose, strategic classification, domain roles, inbound and outbound communication, business decisions, assumptions, verification metrics and open questions. (ddd-crew bounded-context-canvas)
- Context Map: this context's upstream and downstream relationships, each with its pattern, technology and status. (ddd-crew context-mapping)
- Aggregate Design Canvas: the context's aggregate(s), with state transitions, invariants, corrective policies, commands, events, throughput and size. (ddd-crew aggregate-design-canvas)
- Domain Events: every event the context publishes and consumes, with
its full CloudEvents
type, topic, partition key, payload and known consumers. (Context repository.) - Domain Message Flow: the context's key scenarios as commands, events and queries crossing its boundary. (ddd-crew domain-message-flow-modelling)
- EventStorming: process-level boards in EventStorming notation. (ddd-crew eventstorming-glossary-cheat-sheet)
- Class Diagram: the domain model as it exists in the code. (Context repository, Mermaid.)
- Entity Relationship: the persisted tables and how they map to the aggregates. (Context repository, Mermaid.)
- Sequence Diagrams: the main runtime interactions. (Context repository, Mermaid.)
- Use Cases: every application use case with its trigger (REST, Kafka, MCP or scheduler), inputs, invariants and the events it raises. (Context repository.)
- Async API: the Kafka integration in narrative form, with a link to
the generated AsyncAPI reference. This page exists only for
inventory-storage,wes-work-planning,fulfillment-execution,workforce-management,process-path-management,labor-performance,network-fulfillment,warehouse-planning,product-master,inbound-receiving,slotting-optimization,network-inventory-planning,pick-face-replenishment,task-interleaving,returns-processing,exception-managementandoutbound-shipping. (Hand-written for this site.)
Pages 2 to 13 are copies synced from each context repository's
develop branch. Each one carries a "Synced from" note and is derived from
that repository's code. To correct one, edit it in the owning repository
and re-sync. Do not edit the copy here. Only the Business Context, the
overview (index) page and the Async API narrative are written for this
site.
Each context also has a collapsed Operations group with five more synced
pages, added by the October 2026
documentation-coverage campaign:
Configuration (every environment variable per binary), Runbook
(deployment, probes, migrations, topics, consumer groups, routine
procedures), Observability (metric instruments, spans, dashboards),
Troubleshooting (symptom, cause, check, fix) and Testing (the test
pyramid, make targets and CI jobs).
| Context | Classification | CloudEvents subdomain | Tier |
|---|---|---|---|
| order-management | Generic/Supporting | wes | Upstream front door |
| inventory-storage | Core | wms | WMS |
| wes-work-planning | Core | wes | WES — the conductor |
| fulfillment-execution | Core | wes | WES |
| workforce-management | Supporting | wes | WES |
| facility-layout | Generic | wms | WMS-adjacent, extracted |
| process-path-management | Generic | wes | Extracted catalogue |
| labor-performance | Supporting | wes | Downstream observer |
| warehouse-ops-agent | Supporting | wes | Operator tooling, no aggregate |
| network-fulfillment | Supporting | wes | External network edge (anti-corruption layer) |
| warehouse-planning | Core | wes | WES — capacity planning |
| product-master | Supporting | wms | WMS — product master data (classification, physical profile and GS1 pack levels; six ProductClassified local-copy consumers and seven pack-level consumers, all wired in warehouse-infra develop) |
| inbound-receiving | Supporting | wms | WMS — everything before the first stow: ASN, dock appointment, receipt, discrepancies; hands good units to inventory-storage as events. Deployed |
| slotting-optimization | Supporting | wms | WMS — which SKUs deserve a forward pick slot: velocity-ranked slot plans a human approves. Registered in warehouse-infra develop (terraform/apps.yaml: database, analytics, web remote; Kong route, MCP) |
| network-inventory-planning | Core | wes | WES — inter-warehouse transfer planning (advisory proposals, operator-approved transfer saga) |
| pick-face-replenishment | Supporting | wms | WMS — keeps forward pick faces stocked from reserve bins (min/max policy, fullest reserve bin). Built and deployed in the reference cluster since 2026-10-20/21 (API, MCP, analytics and web remote). The whole REPLENISH chain is built (inventory-storage, fulfillment-execution, wes-work-planning ADR 0042, process-path-management ADR 0036); the path is seeded by an operator step, and no request has been traced through it yet |
| task-interleaving | Supporting | wes | WES — after each completed task, an advisory, expiring hint of nearby open tasks. Built and deployed in the reference cluster since 2026-10-20/21 (API, MCP, analytics and web remote); fulfillment-execution consumes the hint as a tie-break (its ADR 0051) |
| returns-processing | Supporting | wms | WMS — the reverse flow of goods: RMA authorization against a shipped line, return receipt and grading, the disposition decision, and the staged handover of restockable units to inventory-storage. Built on develop (API, outbox, three consumers, read-only MCP, analytics read side, web remote) and registered in warehouse-infra develop; both output edges are built and wired (inventory-storage ADR 0044, exception-management). Its repository ships part of the synced page set (see below) |
| exception-management | Supporting | wes | WES — the Problem Solve lifecycle: every case opened by a fact another context published (six producer contexts plus the OrderRepromised correlation feed), with dedup, triage, assignment, an SLA clock and declarative auto-resolve. Built on develop and registered in warehouse-infra develop (API, MCP, analytics read side, web remote); the workforce-management and network-inventory-planning fact sources are planned, not built |
| outbound-shipping | Supporting | wms | WMS — what leaves on which trailer: load planning from the first manifested package, staging, loading, the bill of lading and ship-confirm on the trailer's physical departure; hands order-management ShipmentConfirmed and PackageMissedLoad. Released v0.1.0, registered in warehouse-infra (PR 205), applied to the k3s cluster since 2026-11-12 |
exception-management now ships the full synced set like every other
context. returns-processing ships only part of it: its directory holds the
synced ubiquitous language, bounded-context and aggregate-design canvases,
domain events and four of the five Operations pages (no Testing page), plus
the business context, the async narrative and this index written for this
site. Its repository has no core domain chart, context map, domain message
flow, EventStorming, class, entity-relationship, sequence-diagram or use-case
page on develop yet.
See Strategic Design for how these twenty contexts relate to each other at the fleet level, and the DDD Starter Modelling Process for which modelling step each page belongs to.