DDD artifacts (ddd-crew)
The strategic and tactical design of linehaul-transportation, drawn with the ddd-crew tools plus UML and ER diagrams. Every diagram is Mermaid,
derived from the code, the migrations and the ADRs on this branch, and carries a Source: line naming the files it came from. The same pack, in its model-derived form, is on
the retail-network pages of warehouse-docs.
| Artifact | ddd-crew tool / notation | What it shows |
|---|---|---|
| Core domain chart | Core Domain Charts | Where the context sits on business differentiation vs model complexity, and why it is Supporting. |
| Bounded context canvas | Bounded Context Canvas v5 | Purpose, classification, roles, every inbound and outbound message, business decisions. |
| Context map | Context Mapping | Patterns per edge, with what is implemented on each side. |
| Aggregate design canvas | Aggregate Design Canvas v1.1 | Departure, LaneSchedule, Load and ExpectedVolume: 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 | Design-level process flow with the sticky-note colours, plus hotspots. |
| Ubiquitous language | Glossary | Every term with the code identifier that implements it. |
| Class diagrams | UML class diagram | Domain types, and the hexagonal ports with the adapters that exist. |
| Entity-relationship diagram | ER diagram | The Postgres schema created by migrations/0001_linehaul_schema.up.sql. |
| Sequence diagrams | UML sequence diagram | Define a schedule, horizon roll, book on lock, cancel with rebooking, load lifecycle, with error branches. |
| Domain events | Event catalogue | Every event published and consumed: 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/{departure,schedule,load,volume,network}, 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 0008), the A2A agent (ADR 0011) and the console remote
(web/, ADR 0009) 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.
:::