DDD artifacts (ddd-crew)
This pack describes the Fulfillment Execution bounded context with the ddd-crew modelling tools, plus three UML-style views. Every diagram is Mermaid, every page is derived from the code in this repository, and each diagram has a Source: line naming the files it was drawn from.
| Artifact | Page | ddd-crew tool / notation |
|---|---|---|
| Core domain chart | Core domain chart | Core Domain Charts |
| Bounded context canvas | Bounded context canvas | Bounded Context Canvas v5 |
| Context map | Context map (lives in Ecosystem) | Context Mapping |
| Aggregate design canvas | Aggregate design canvas | Aggregate Design Canvas v1.1 |
| Domain message flow | Domain message flow | Domain Message Flow Modelling |
| EventStorming | EventStorming | EventStorming glossary & cheat sheet, design level |
| Ubiquitous language | Ubiquitous language (lives in Business context) | glossary with code mapping |
| UML class diagram | Class diagram | UML class diagram + hexagonal ports/adapters view |
| ER diagram | Entity-relationship diagram | ER diagram of the final migration schema |
| Sequence diagrams | Sequence diagrams | UML sequence diagrams per use case |
| Domain events | Domain events | event catalogue (full CloudEvents types, topics, consumers) |
The narrative DDD pages sit next to the pack and go deeper on single topics: Subdomain classification, Aggregates & invariants, Use cases & ports and Context relationships.
Sources of truth
When a page and the code disagree, the code wins. The pack was drawn from:
| Concern | Source of truth |
|---|---|
| Aggregates, invariants, value objects, events | internal/domain/** (task, station, package (Go package pack), consolidation, pathcatalog, shared) |
| Use cases and ports | internal/application/usecases/*.go, internal/application/ports/*.go |
| REST surface | internal/adapters/inbound/http/router.go and apis/openapi.yaml (kept 1:1 by openapi_routes_test.go) |
| MCP surface | internal/adapters/inbound/mcp/*.go, cmd/mcp/main.go |
| Kafka published | internal/adapters/outbound/kafka/publisher.go, analytics_publisher.go, internal/adapters/kafka/cloudevents/cloudevents.go, apis/asyncapi.yaml |
| Kafka consumed | internal/adapters/inbound/kafka/consumer.go, internal/adapters/outbound/kafkacatalog/consumer.go, internal/adapters/inbound/kafka/analytics_consumer.go |
| Persistence | migrations/*.up.sql, migrations/analytics/*.up.sql, internal/adapters/outbound/postgres/*.go |
| Decisions | Architecture decisions (ADR-0001 to ADR-0035) |
The fleet-level aggregate of these pages lives in the warehouse-docs
repository; this repository is the source those pages are synced from.