Skip to main content

DDD artifacts (ddd-crew)

The strategic and tactical design of seller-inbound, drawn with the ddd-crew tools plus UML and ER diagrams. Every diagram is Mermaid. The pack started from the retail-network design pack in IQVO/warehouse-docs (network/docs/contexts/seller-inbound/, origin/main) and was verified against this repository's code, migrations, contracts and ADRs on develop; each page carries a Source: line where it states something the code decides.

Artifactddd-crew tool / notationWhat it shows
Core domain chartCore Domain ChartsWhere this context sits on business differentiation vs model complexity, and why it is Supporting.
Bounded context canvasBounded Context CanvasPurpose, classification, roles, every inbound and outbound message, business decisions.
Context mapContext MappingThis context's slice of the network map: pattern and channel per edge.
Aggregate design canvasAggregate Design Canvas v1.1SellerAccount, InboundPlan, InboundShipment and Carton: states, invariants, commands, events.
Domain message flowDomain Message Flow ModellingA case-packed shipment end to end, a receipt with a discrepancy, SSCC issuance.
EventStormingEventStorming glossary and cheat sheetProcess-level boards with sticky colours and hotspots.
Ubiquitous languageGlossaryEvery term with the Go identifier that implements it.
Class diagramsUML class diagramDomain types and the hexagonal layout.
Entity-relationship diagramER diagramThe Postgres schema of migrations 0001 to 0004: fourteen tables and one sequence.
Sequence diagramsUML sequence diagramAddCarton, ShipInboundShipment, the receipt consumer and plan confirmation, with error branches.
Domain eventsEvent catalogueTen published events with payloads and an example envelope; the eleven consumed.

Related pages outside the pack: Use cases, Subdomain classification, Integration and the event catalogue.

Sources of truth

The code wins. Domain rules come from internal/domain/{seller,inboundplan,inboundshipment,network,scorecard,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 adapter (ADR 0009) and the web console remote (ADR 0007, web/) 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. They are described under MCP tools and the API overview. :::