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.
| Artifact | ddd-crew tool / notation | What it shows |
|---|---|---|
| Core domain chart | Core Domain Charts | Where this context sits on business differentiation vs model complexity, and why it is Supporting. |
| Bounded context canvas | Bounded Context Canvas | Purpose, classification, roles, every inbound and outbound message, business decisions. |
| Context map | Context Mapping | This context's slice of the network map: pattern and channel per edge. |
| Aggregate design canvas | Aggregate Design Canvas v1.1 | SellerAccount, InboundPlan, InboundShipment and Carton: states, invariants, commands, events. |
| Domain message flow | Domain Message Flow Modelling | A case-packed shipment end to end, a receipt with a discrepancy, SSCC issuance. |
| EventStorming | EventStorming glossary and cheat sheet | Process-level boards with sticky colours and hotspots. |
| Ubiquitous language | Glossary | Every term with the Go identifier that implements it. |
| Class diagrams | UML class diagram | Domain types and the hexagonal layout. |
| Entity-relationship diagram | ER diagram | The Postgres schema of migrations 0001 to 0004: fourteen tables and one sequence. |
| Sequence diagrams | UML sequence diagram | AddCarton, ShipInboundShipment, the receipt consumer and plan confirmation, with error branches. |
| Domain events | Event catalogue | Ten 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.
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.
:::