Architecture Decision Records
Each ADR records a significant technical decision — its context, what was decided, and the trade-offs accepted. They describe the system as it is built. When a decision turned out to be questionable in hindsight, this is recorded in a Retrospective section rather than hidden.
| ADR | Decision | Theme | Status |
|---|---|---|---|
| 001 | Hexagonal architecture (ports and adapters), checked by ArchUnit | Backend structure | Accepted |
| 002 | Reactive stack: Spring WebFlux + R2DBC | Backend runtime | Accepted |
| 003 | Kotlin on the JVM, Java 25 toolchain | Language | Accepted |
| 004 | Authentication delegated via OIDC (resource server + confidential client) | Security | Accepted |
| 005 | Database-driven per-project RBAC, through a custom PermissionEvaluator | Authorization | Accepted |
| 006 | PostgreSQL with Flyway migrations and pg_trgm trigram search | Persistence | Accepted |
| 007 | Frontend configuration injected at runtime (one immutable image) | Frontend delivery | Accepted |
| 008 | NGXS for frontend state management | Frontend state | Superseded by ADR 013 |
| 009 | Distroless container delivery with semantic-release | Build and release | Accepted |
| 010 | Retention purges: internal scheduler plus permission-protected endpoints | Data retention | Accepted |
| 011 | PrimeNG with runtime theming | Frontend UI | Superseded by ADR 014 |
| 012 | Per-instance authentication rate limiting with Caffeine, without a shared store | Security | Accepted |
| 013 | Signal stores behind facades, replacing NGXS | Frontend state | Accepted |
| 014 | @sgdf/ui design system with Tailwind for layout | Frontend UI | Accepted |
| 015 | /api/v2: a uniform list, search, sort and error contract | API | Accepted |
| 016 | Optimistic concurrency with ETag/If-Match, backed by row locks | Consistency | Accepted |
| 017 | Dedicated permissions for soft delete and restore | Authorization | Accepted |
| 018 | Versioned history of log-type items | Consistency | Accepted |
| 019 | Asynchronous audit log of access to personal data | Security | Accepted |
Format
markdown
# ADR NNN — Title
## Status
<Badge type="tip" text="Accepted" />
## Context
What problem or constraint triggered this decision?
## Decision
What was decided?
## Consequences
Positive and negative trade-offs, and why the alternatives were ruled out.
## Retrospective (optional)
How the decision held up in practice, regrets included.The Status badge uses one of the following:
| Badge | Meaning |
|---|---|
| Accepted | Decided and in force |
| Proposed | Drafted, not yet decided |
| Rejected | Considered and ruled out |
| Superseded by ADR NNN | Replaced by a more recent ADR (or Deprecated) |