Skip to main content

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:

  1. Business Context: the domain vision and the problem this context solves, in business language. (Hand-written for this site.)
  2. Ubiquitous Language: the exact vocabulary the context uses, taken from its domain code. (Context repository.)
  3. Core Domain Chart: where the context sits on the differentiation/complexity chart, with the evidence for that position. (ddd-crew core-domain-charts)
  4. 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)
  5. Context Map: this context's upstream and downstream relationships, each with its pattern, technology and status. (ddd-crew context-mapping)
  6. Aggregate Design Canvas: the context's aggregate(s), with state transitions, invariants, corrective policies, commands, events, throughput and size. (ddd-crew aggregate-design-canvas)
  7. Domain Events: every event the context publishes and consumes, with its full CloudEvents type, topic, partition key, payload and known consumers. (Context repository.)
  8. Domain Message Flow: the context's key scenarios as commands, events and queries crossing its boundary. (ddd-crew domain-message-flow-modelling)
  9. EventStorming: process-level boards in EventStorming notation. (ddd-crew eventstorming-glossary-cheat-sheet)
  10. Class Diagram: the domain model as it exists in the code. (Context repository, Mermaid.)
  11. Entity Relationship: the persisted tables and how they map to the aggregates. (Context repository, Mermaid.)
  12. Sequence Diagrams: the main runtime interactions. (Context repository, Mermaid.)
  13. Use Cases: every application use case with its trigger (REST, Kafka, MCP or scheduler), inputs, invariants and the events it raises. (Context repository.)
  14. 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-management and outbound-shipping. (Hand-written for this site.)
Synced pages

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).

ContextClassificationCloudEvents subdomainTier
order-managementGeneric/SupportingwesUpstream front door
inventory-storageCorewmsWMS
wes-work-planningCorewesWES — the conductor
fulfillment-executionCorewesWES
workforce-managementSupportingwesWES
facility-layoutGenericwmsWMS-adjacent, extracted
process-path-managementGenericwesExtracted catalogue
labor-performanceSupportingwesDownstream observer
warehouse-ops-agentSupportingwesOperator tooling, no aggregate
network-fulfillmentSupportingwesExternal network edge (anti-corruption layer)
warehouse-planningCorewesWES — capacity planning
product-masterSupportingwmsWMS — 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-receivingSupportingwmsWMS — everything before the first stow: ASN, dock appointment, receipt, discrepancies; hands good units to inventory-storage as events. Deployed
slotting-optimizationSupportingwmsWMS — 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-planningCorewesWES — inter-warehouse transfer planning (advisory proposals, operator-approved transfer saga)
pick-face-replenishmentSupportingwmsWMS — 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-interleavingSupportingwesWES — 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-processingSupportingwmsWMS — 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-managementSupportingwesWES — 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-shippingSupportingwmsWMS — 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.