Skip to main content

DDD artifacts (ddd-crew)

The strategic and tactical design of product-content, drawn with the ddd-crew tools plus UML and ER diagrams. Every diagram is Mermaid, derived from the code and ADRs on this branch, and carries a Source: line naming the files it came from. The starting material was the hand-written pack of the warehouse-docs aggregator (Product Content), re-checked against the code: where the model and the code differ, these pages follow the code and say so.

Artifactddd-crew tool / notationWhat it shows
Core domain chartCore Domain ChartsWhere this context sits on business differentiation vs model complexity, and why it is Generic.
Bounded context canvasBounded Context Canvas v5Purpose, classification, roles, every inbound and outbound message, business decisions.
Context mapContext MappingThis context's slice of the storefront map: patterns per edge, with the built status of each side.
Aggregate design canvasAggregate Design Canvas v1.1ProductContent and CategoryTree: states, invariants, commands, events, concurrency.
Domain message flowDomain Message Flow ModellingThe key scenarios as numbered command / event / query flows across contexts.
EventStormingEventStorming glossary and cheat sheetProcess-level boards with the sticky-note colours, plus hotspots and their resolution.
Ubiquitous languageGlossaryEvery term with the code identifier that implements it.
Class diagramsUML class diagramDomain types, and the hexagonal ports with the adapters that exist.
Entity-relationship diagramER diagramThe Postgres schema created by 0001_product_content_schema.up.sql: six tables and their keys.
Sequence diagramsUML sequence diagramCreate and publish, a rejected publish, a category edit, retire on discontinue and the consumer retry path.
Domain eventsEvent catalogueEvery 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.

Sources of truth

The code wins. Domain rules come from internal/domain/content, internal/domain/category 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 A2A agent (ADR 0006) and the MCP server (ADR 0008) are read surfaces over two existing queries and add no aggregate, entity or event of their own, so the pack has no page for them; they are on the API overview and MCP tools. There is no web remote. The application layer, the HTTP and Kafka adapters, the outbox relay and the database schema are covered by the pages above. :::