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:
| Measure | Count | Where |
|---|---|---|
| Aggregate roots | 2 | WorkPool, WorkUnit (ChargeForecast and ShiftPlan moved to warehouse-planning, ADR-0049) |
| Enforced invariants | 14 on aggregates + 2 on value objects | Aggregate design canvas (W1–W8, U1–U6; PathId, Quantity) |
| Domain events | 8 | internal/domain/shared/events.go |
| Inbound integration events handled | 11 types on 7 topics | internal/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 |
| ADRs | 35 | ADR index |
| Concurrency concerns modelled | optimistic version on WorkPool, atomic processed-event mark, idempotency keys | ADR-0029, ADR-0028, ADR-0022 |
Most of the complexity sits in WorkPool (priority, feed modes, WIP,
reconciliation, concurrency).
Evolution (Wardley stage)
| Component | Stage | Why |
|---|---|---|
| Release policy, WIP backpressure, flow balancing | Custom-built | Written 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 classification | Product | Consumed 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 outbox | Commodity | Standard 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
ReleasePolicystays 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.