Skip to main content

Domain-Driven Design

This section is the tactical and strategic DDD record for the Work Planning & Release bounded context. Everything here is derived from the platform's strategic reference documents and from this repository's own code — no aspirational modelling.

PageContents
Subdomain classificationCore / Supporting / Generic, with the justification
DDD artifacts (ddd-crew)The artifact pack: core domain chart, bounded context canvas, context map, aggregate design canvas, domain message flow, EventStorming, ubiquitous language, UML class, ER and sequence diagrams
Aggregate design canvasBoth aggregates, every invariant, every failing path
Domain eventsThe eight events published, and every event consumed
Read modelsProjections — and why they are never aggregate state
Context relationshipsCustomer/Supplier, ACL, OHS, Conformist — the strategic patterns

One-page summary​

Source: internal/domain/{release,workunit}. Omits: value objects, events and read models — see Class diagrams. The ChargeForecast and ShiftPlan/PathPlan aggregates moved to warehouse-planning (ADR-0049).

Note the association style between WorkPool and WorkUnit: the pool holds entry records keyed by work unit id, not WorkUnit objects. They are two separate aggregates with two separate consistency boundaries, referenced by identity — updated in the same use case and the same transaction, but each guarding its own invariants.