Architecture#
How the service is structured and why. Roughly ordered C4-style — start at the top for the big picture and zoom in.
Doc |
When you need it |
|---|---|
Hexagonal layout, layer rules, why we picked this pattern |
|
The app and its external neighbours (LLM provider, Presidio, Postgres, callers) |
|
Ports, adapters, the application services, the composition root |
|
Anonymisation, tracking, error handling, logging — concerns that span layers |
|
Domain models and persistence schema |
|
Three-constant system message, XML-style envelope, escape helper, judge call contract for |
|
The |
For decision history (why we chose what we chose), see the architecture decision records.