Skip to main content

Class Diagram

As built

Derived from network/model/model.yaml. This context's service is built (IQVO/customer-returns, decided by ADR 0012); the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses. Where the model left a choice open, the service's own ADRs 0001 to 0005 record what it does.

UML class diagrams of the domain model. Fields are shown unexported (-), methods exported (+). As built, the service keeps the aggregate in internal/domain/returnauthorization and the read-model value types in internal/domain/network; the class names below are the model's names, the Go types are on Ubiquitous Language.

1. ReturnAuthorization aggregate​

Derived from: model.yaml → contexts[customer-returns].aggregates[ReturnAuthorization] (value_objects, commands, states).

2. The decision and the read models​

Derived from: model.yaml → contexts[customer-returns].read_models, .policies[DispositionDecidedAtAuthorization].

3. Hexagonal layout​

Derived from: the service's ADRs 0002 to 0006 and 0009 (package names) and model.yaml → contexts[customer-returns].inbound, .policies[ReverseLabelCall]. As built the two agent adapters are internal/adapters/inbound/mcp (cmd/mcp, the two read tools, one resource template and one prompt of service ADRs 0006 and 0011) and internal/adapters/inbound/a2a (cmd/a2a, the one skill of ADR 0009); both hold the read-only slice of the application service and no write seam, so neither reaches the aggregate, the outbox or the label client.