Skip to main content

DDD artifacts (ddd-crew)

The strategic and tactical design of network-fulfillment, drawn with the ddd-crew tools plus UML/ER diagrams. Each page below follows one tool; every diagram is Mermaid and is derived from code, not from intent.

Artifactddd-crew tool / notationPage
Where this context sits on differentiation vs complexityCore Domain Chartscore-domain-chart.md
Purpose, classification, every inbound/outbound messageBounded Context Canvas v5bounded-context-canvas.md
Upstream/downstream relationships and their patternsContext Mappingcontext-map.md
NetworkOrder and CapabilityOffer designAggregate Design Canvas v1.1aggregate-design-canvas.md
Key business scenarios across contextsDomain Message Flow Modellingdomain-message-flow.md
Commands, events, policies, read models, hotspotsEventStorming glossary & cheat sheeteventstorming.md
Glossary mapped to code identifiersUbiquitous Languageubiquitous-language.md
Domain types and ports/adaptersUML class diagramclass-diagram.md
Postgres schema (OLTP + analytics)ER diagramentity-relationship.md
Each use case, step by stepUML sequence diagramsequence-diagrams.md
Every event published and consumedEvent cataloguedomain-events.md

Sources of truth​

When a page and the code disagree, the code wins. The pages were derived from these paths on develop:

  • Domain: internal/domain/networkorder/, internal/domain/capabilityoffer/, internal/domain/shared/ (value objects, errors, domain events).
  • Application: internal/application/usecases/, internal/application/ports/ports.go, internal/application/contract/contract.go.
  • Adapters: internal/adapters/inbound/{http,poller,mcp,kafka}/, internal/adapters/outbound/*/, internal/adapters/kafka/cloudevents/.
  • Composition roots: cmd/netfulfil, cmd/mcp, cmd/netfulfil-projector, cmd/netfulfil-reports.
  • Schema: migrations/0001–0005 (OLTP) and migrations/analytics/0001–0002.
  • Contracts: apis/openapi.yaml, apis/asyncapi.yaml (aligned with the code on 2026-10-06, ADR 0015; open design notes are listed on domain-events.md and bounded-context-canvas.md).
  • Decisions: docs/adr/, chiefly ADR 0001 (with 0009 and 0014 amending it; 0015 records the audit's contract corrections).

Strategic classification (Supporting Subdomain, Conformist upstream, ACL downstream) comes from ADR 0001 and is not re-decided here. Neighbour classifications follow the fleet's: order-management Generic/Supporting; inventory-storage, wes-work-planning, fulfillment-execution, warehouse-planning Core; workforce-management, labor-performance, warehouse-ops-agent, network-fulfillment, product-master Supporting; facility-layout, process-path-management Generic.