Skip to main content

Core domain chart

A ddd-crew Core Domain Chart for this bounded context, with the directly integrated siblings plotted for contrast. Business differentiation is the y-axis, model complexity the x-axis. The classification matches Subdomain classification: this context is Core.

Source: positions are a judgement call grounded in the evidence below and in the classifications on Subdomain classification. Omits: contexts with no edge to this one (labor-performance, warehouse-planning, warehouse-ops-agent).

Why this context sits top-right​

Business differentiation — high. The release decision is where the operation's speed is won or lost, and the platform builds it rather than buying a vendor WES:

  • the CPT priority function and waveless, one-at-a-time admission (ADR-0002);
  • the WIP-limit backpressure that is a hard invariant on release-fed paths and only an alarm on flow-fed ones (ADR-0003);
  • Drum-Buffer-Rope flow balancing with two levers (ThrottleUpstream, ReassignLabor);
  • the published remaining-capacity signal other contexts promise against (ADR-0018).

Model complexity — high, but concentrated. Evidence from the code:

MeasureCountWhere
Aggregate roots2WorkPool, WorkUnit (ChargeForecast and ShiftPlan moved to warehouse-planning, ADR-0049)
Enforced invariants14 on aggregates + 2 on value objectsAggregate design canvas (W1–W8, U1–U6; PathId, Quantity)
Domain events8internal/domain/shared/events.go
Inbound integration events handled11 types on 7 topicsinternal/adapters/kafka/cloudevents/cloudevents.go (consumed-type constants), internal/adapters/inbound/kafka/consumer.go, internal/adapters/inbound/kafka/product_classification_consumer.go, internal/adapters/outbound/kafkacatalog
ADRs35ADR index
Concurrency concerns modelledoptimistic version on WorkPool, atomic processed-event mark, idempotency keysADR-0029, ADR-0028, ADR-0022

Most of the complexity sits in WorkPool (priority, feed modes, WIP, reconciliation, concurrency).

Evolution (Wardley stage)​

ComponentStageWhy
Release policy, WIP backpressure, flow balancingCustom-builtWritten and tuned here; the differentiator. Expected to keep changing (customer tiering, cold chain, aisle batching), which is why ReleasePolicy is a separate object.
Process-path catalogue, product classificationProductConsumed from siblings (process-path-management, Generic; product-master, Supporting, through a local copy of its ProductClassified events — ADR-0035), never re-modelled here.
Postgres, Kafka, CloudEvents, OpenTelemetry, transactional outboxCommodityStandard infrastructure behind ports.

What would move it​

  • Replacing the in-house release policy with a vendor WES behind an ACL would drop this context to Supporting — the conditional in the platform's strategic reference.
  • If ReleasePolicy stays a one-line "earliest CPT first" for long, the differentiation claim weakens: today's priority function is simple, and the investment is in the model around it rather than in the rule itself.