DDD artifacts (ddd-crew)
The strategic and tactical design of shipping-and-tracking, drawn with the ddd-crew tools plus UML and ER diagrams. Every diagram is Mermaid, checked against the code and ADRs on develop, and carries a Source: line naming the files it came from.
| Artifact | ddd-crew tool or notation | What it shows |
|---|---|---|
| Core domain chart | Core Domain Charts | Where this context sits on business differentiation against model complexity, and why it is Generic |
| Bounded context canvas | Bounded Context Canvas v5 | Purpose, classification, roles, every inbound and outbound message, business decisions |
| Context map | Context Mapping | This context's slice of the network map: pattern per edge, channel and messages |
| Aggregate design canvas | Aggregate Design Canvas v1.1 | ShippingLabel and PackageJourney: states, invariants, commands, events, concurrency |
| Domain message flow | Domain Message Flow Modelling | The key scenarios as numbered command, event and query flows across contexts |
| EventStorming | EventStorming glossary and cheat sheet | Process-level boards with the sticky colours, plus hotspots |
| Ubiquitous language | Glossary | Every term with the Go identifier that implements it |
| Class diagram | UML class diagram | Domain types, events, use cases, ports and the adapters that implement them |
| Entity relationship | ER diagram | The Postgres schemas as migrated: eight OLTP tables (0001_schema.up.sql, 0002_idempotency_key_global.up.sql) and four analytical tables (analytics/migrations/0001_delivery_facts.up.sql), keys and indexes |
| Sequence diagrams | UML sequence diagram | Issue label, void, record scan, apply scans, silence sweep and return, with error branches |
| Domain events | Event catalogue | Every event published and consumed: full CloudEvents type, topic, key, payload, producer, consumers |
Related pages outside the pack: Use cases, Subdomain classification, Integration and the event catalogue.
:::note Sources of truth
The code wins. Domain rules come from internal/domain/label, internal/domain/journey and internal/domain/shared, behaviour from internal/application/usecases, the envelope from internal/adapters/kafka/cloudevents, the schema from internal/adapters/outbound/postgres/migrations, the REST contract from apis/openapi.yaml, the event contract from apis/asyncapi.yaml, and decisions from the ADRs in docs/adr/. Where a page and the code disagree, the page is wrong.
:::
:::info Not in this pack
The MCP server (ADR 0006), the A2A agent (ADR 0009) and the console remote web/ (ADR 0007) are built, but they are read surfaces over the model and add no aggregate, entity or event of their own, so the pack has no pages for them. The application layer, the HTTP and Kafka adapters, the outbox relay and the database schema are covered by the pages above.
:::