DDD Artifacts
The DDD artifact pack for process-path-management, built with the
ddd-crew tools plus UML/ER diagrams. Every
diagram is Mermaid, derived from the code on develop, and carries a
"Source:" line naming the files it came from and a note on what it omits.
| Artifact | What it shows | ddd-crew tool / notation |
|---|---|---|
| Core Domain Chart | Where this context sits on business differentiation vs model complexity (Generic) and its evolution | Core Domain Charts |
| Bounded Context Canvas | Purpose, classification, roles, every inbound and outbound message | Bounded Context Canvas v5 |
| Context Map | This context's slice of the fleet map: OHS + PL to five Conformists over Kafka, MCP and console edges, deliberately absent edges | Context Mapping |
| Aggregate Design Canvas | ProcessPath, CPTSchedule and ProcessFlow: states, invariants, commands, events, throughput, size | Aggregate Design Canvas v1.1 |
| Domain Message Flow | Four business scenarios as numbered cmd: / evt: / qry: flows | Domain Message Flow Modelling |
| EventStorming | Design-level boards for the path lifecycle, the CPT schedule and the analytics projection, with real hotspots | EventStorming glossary and cheat sheet |
| Ubiquitous Language | Glossary, every term mapped to its code identifier and wire name | ddd-crew glossary practice |
| Class Diagram | UML class diagrams of internal/domain/** and the hexagonal ports and adapters | UML (Mermaid classDiagram) |
| Entity Relationship | Final Postgres schema of the OLTP and analytics databases after every migration | ER (Mermaid erDiagram) |
| Sequence Diagrams | Every command use case through adapter, use case, aggregate, repository and outbox | UML (Mermaid sequenceDiagram) |
| Domain Events | Every published and consumed event: full CloudEvents type, topic, key, payload, producer, consumers | Event catalogue |
Narrative background that predates the pack and is still current: Aggregates and Invariants (the "why" behind each rule) and the ADRs.
Sources of truth
Code wins over every page here. When a page and the code disagree, the code is right and the page is a bug.
- Domain model:
internal/domain/processpath,internal/domain/cptschedule,internal/domain/processflow,internal/domain/shared. - Use cases and ports:
internal/application/usecases,internal/application/ports. - REST contract:
apis/openapi.yaml(rendered in the API Reference); routes ininternal/adapters/inbound/http/server.go. - Event contract:
apis/asyncapi.yaml; the exacttypestrings ininternal/adapters/kafka/cloudevents/types.go; payload structs ininternal/adapters/outbound/kafka/publisher.go. - Schema:
migrations/*.up.sqlandmigrations/analytics/*.up.sql. - Sibling relationships: the consumer files named on the
Context Map, read from each sibling's
origin/develop.