DDD artifacts (ddd-crew)
The strategic and tactical design of vendor-connectivity, drawn with the
ddd-crew tools plus UML and ER diagrams. The pages started from the
aggregator's pack for this context (network/docs/contexts/vendor-connectivity/ in
warehouse-docs) and were then checked against this repository's code: every
identifier, route, event type and table was verified, the proposals the pack still carried were replaced
by what is built, and every diagram carries a Source: line naming the files it came from. Nothing here
was captured from a live run.
| Artifact | ddd-crew tool / notation | What it shows |
|---|---|---|
| Core domain chart | Core Domain Charts | Where this context sits on differentiation against complexity, and why it is Supporting. |
| Bounded context canvas | Bounded Context Canvas v5 | Purpose, roles, every inbound and outbound message, business decisions, and how the open questions were settled. |
| Context map | Context Mapping | This context's slice of the retail network's map: the pattern of every edge. |
| Aggregate design canvas | Aggregate Design Canvas v1.1 | VendorAccount, PurchaseOrder and Submission: states, invariants, commands, events, concurrency. |
| Domain message flow | Domain Message Flow Modelling | Accepted and shipped, refused and reassigned, onboarding, and a failed or rate-limited transaction. |
| EventStorming | EventStorming glossary and cheat sheet | Process boards with the sticky-note colours, plus hotspots marked resolved or open. |
| Ubiquitous language | Glossary | Every term with the Go identifier that implements it, and the fleet translation table. |
| Class diagrams | UML class diagram | Domain types, events, use cases and read models, and the hexagonal ports and adapters. |
| Entity-relationship diagram | ER diagram | The Postgres schema created by the two migrations: aggregate tables, read models, outbox, inbox and idempotency keys. |
| Sequence diagrams | UML sequence diagram | One sequence per command use case, with error, version-conflict and idempotency 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.
The code wins. Domain rules come from internal/domain/vendor, purchaseorder, submission, network
and inbound, behaviour from internal/application/usecases, the envelope from
internal/adapters/outbound/kafka (the encoder) and the consumers in internal/adapters/inbound/kafka,
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 read-only MCP server (ADR 0006, tools),
the A2A adapter (ADR 0009) and the web 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
aggregator's business-context page has no counterpart here; its content is folded into the
Introduction.
:::