DDD artifacts (ddd-crew)
This is the ddd-crew artifact pack for
warehouse-ops-agent, plus UML class / ER / sequence diagrams, all derived
from the code on develop.
warehouse-ops-agent is not a bounded context in the
aggregate-and-invariant sense (see
Subdomain classification and
ADR 0001). It owns no
aggregate, has no Postgres, no migrations, and no Kafka I/O. Several
artifacts below therefore record an honest absence and then document what
the service does hold instead (pure policy value objects, in-memory read
models, process-local caches). They are kept under the standard file names
so the fleet aggregator can sync them mechanically.
The pack
| Artifact | ddd-crew tool / notation | What it shows here |
|---|---|---|
| Core domain chart | Core Domain Charts | Placement as Supporting (fleet map), with the "not a bounded context" caveat. |
| Bounded context canvas | Bounded Context Canvas v5 | Purpose, classification, every inbound route/tool and outbound tool/endpoint. |
| Context map | Context Mapping | Upstream/downstream edges with OHS / CF / Separate Ways patterns (kept in ecosystem/). |
| Aggregate design canvas | Aggregate Design Canvas v1.1 | Records that there is no aggregate root, and lists the read models / decision objects instead. |
| Domain message flow | Domain Message Flow Modelling | Four scenarios with qry: messages only (this service issues no commands and no events). |
| EventStorming | EventStorming glossary / cheat sheet | Design-level boards with read models, policies, external systems and hotspots; no domain events, by design. |
| Ubiquitous language | Glossary | Every term mapped to its code identifier (kept in business-context/). |
| Class diagram | UML class diagram | internal/domain/policy types plus the hexagonal ports/adapters view. |
| Entity relationship | ER diagram | States that there is no database; documents the in-memory state instead. |
| Sequence diagrams | UML sequence diagrams | Every inbound use case: daily brief, flow balance (+ LLM arbitration), travel factor, stranded reservation, console-bff, runtime signals. |
| Domain events | Event catalogue | Records that no event is published or consumed, with the evidence. |
Sources of truth
Code wins over every page here. The diagrams were derived from:
internal/domain/policy/*.go— the pure decision-policy layer.internal/application/usecases/*.go— the use cases.internal/ports/*.go— outbound port interfaces and DTOs.internal/adapters/inbound/http/router.go,internal/adapters/inbound/mcp/{server,tools}.go— the inbound surface.internal/adapters/outbound/{mcpclient,restclient,telemetry,logs,llm/anthropic}— who this service calls.cmd/agent/{main,reasoner}.go,internal/config/config.go— wiring and configuration.go.mod(no Kafka, CloudEvents or database driver) and the absence ofmigrations/andapis/.
Hand-maintained companions: API surface, Governance note, and the ADRs.