This directory captures architectural decisions using the lightweight Michael Nygard format. One ADR per decision — immutable once merged.
The format stays strictly standard (flat numbering, immutable files,
Superseded by ADR-NNNN when reversed). What's added on top is a
hierarchical index by theme below the flat index — purely
navigational, no file layout change.
- Non-obvious decisions must be justified and dated. "Why did we pick Kustomize and not Helm?" becomes a git-tracked answer instead of a Slack thread no one can find 6 months later.
- Onboarding. New developers (and new Claude sessions) can read the ADR index to understand the constraints shaping the codebase.
- Reversibility. An ADR is a point-in-time record. If we reverse
a decision later, we don't delete the old one — we mark it
Superseded by ADR-NNNNand write a new one.
- Accepted: 44
- Superseded: 3 (ADR-0003 → ADR-0013; ADR-0008 → ADR-0044; ADR-0037 → Path B embedded)
- Deprecated: 0
- Reserved (never drafted): 0045, 0046 — consolidated into 0041/0042
before acceptance (see commit
33e31e5). The numbers are intentionally skipped in the flat index ; don't re-use them for new ADRs.
How historical decisions evolved into the current set. Each arrow reads "was superseded by" — the arrow-head carries the reason the reversal happened.
flowchart LR
A0003[ADR-0003<br/><b>Cloud SQL over in-cluster Postgres</b><br/><i>2026-04 · superseded</i>]
A0013[ADR-0013<br/><b>In-cluster Postgres on GKE</b><br/><i>2026-04 · accepted</i>]
A0008[ADR-0008<br/><b>Feature-sliced package layout</b><br/><i>2026-04 · superseded</i>]
A0044[ADR-0044<br/><b>Hexagonal considered, feature-slicing retained</b><br/><i>2026-04 · accepted</i>]
A0037[ADR-0037 v1<br/><b>Spectral oas3-valid-* rules disabled</b><br/><i>temporary shield</i>]
A0037b[ADR-0037 v2<br/><b>OpenApiSchemaSanitizer bean (Path B)</b><br/><i>same doc, Path B addendum</i>]
A0003 -->|"€2/mo cost-control<br/>ADR-0022 wins"| A0013
A0008 -->|"port/ sub-package<br/>for outbound events"| A0044
A0037 -->|"root cause fixed<br/>(schema sanitizer)<br/>rules re-enabled"| A0037b
classDef superseded fill:#f3f3f3,stroke:#999,stroke-dasharray:5,color:#666
classDef current fill:#e8f5e9,stroke:#2e7d32,color:#1b5e20
class A0003,A0008,A0037 superseded
class A0013,A0044,A0037b current
Reading the graph: dashed boxes = historical decisions kept for audit trail (per Michael Nygard's rule "immutable once merged"). Solid-green boxes = the current, authoritative decisions. The arrow label captures the SHORT reason the reversal happened — full context in the superseding ADR's Context section.
Pattern to preserve: when superseding an ADR, keep the old file
with Status: Superseded by ADR-NNNN, write the new decision as a
fresh ADR that references the old one in its Supersedes: header.
Never edit the old file to change its decision — only the Status
line is mutable.
Every ADR follows the same 5 sections:
- Context — what problem we're solving, what constraints apply
- Decision — what we're doing, concretely
- Consequences — positive, negative, neutral
- Alternatives considered — what we rejected and why
- References — links that informed the decision
File name pattern: NNNN-kebab-case-title.md. Numbering is
monotonic across supersessions.
The table below is auto-regenerated from the ADR files by
bin/dev/regen-adr-index.sh. Do not edit by hand — changes are overwritten on the next CI pass.bin/dev/stability-check.shreports drift when the table no longer matches the ADR files.
The same ADRs, grouped to show how they relate. An ADR can legitimately belong to two themes — it's listed under its primary one here to avoid duplication. Cross-references inside each ADR file remain authoritative.
- ADR-0006 — Hoist Maven versions into
<properties> - ADR-0008 — (superseded) Feature-sliced package layout → ADR-0044
- ADR-0011 — Minimal
@Transactionalsurface - ADR-0017 — Java 25 + Spring Boot 4
- ADR-0020 — API versioning via
X-API-Version - ADR-0026 — Spring Boot scope limit
- ADR-0044 — Hexagonal considered, feature-slicing retained (+
customer/port/sub-package convention) - ADR-0051 — JPA entity = domain model (accept the coupling, document the invariants)
- ADR-0003 — (superseded) Cloud SQL over in-cluster Postgres
- ADR-0005 — In-cluster Kafka for cost
- ADR-0013 — In-cluster Postgres on GKE
- ADR-0004 — Local CI runner, zero SaaS quota
- ADR-0028 — kind cluster in CI
- ADR-0029 — Jenkinsfile parity demonstrator + linter
- ADR-0031 — Version adoption policy
- ADR-0033 — Playwright E2E in kind-in-CI
- ADR-0034 — CI memory budget + Testcontainers-heavy ITs
- ADR-0035 — Defer Pact + Biome adoption (deferred trigger conditions)
- ADR-0041 — CI hygiene: honest green (scope-out over shield, tag on post-merge main green)
- ADR-0042 — Quality reports routing (ESLint, Pitest, Trivy, Semgrep, Spectral)
- ADR-0043 — Pin GitHub Actions by commit SHA
- ADR-0002 — Kustomize over Helm
- ADR-0009 — Container runtime base image
- ADR-0014 — Single-replica for demo
- ADR-0015 — Argo CD for GitOps
- ADR-0040 — Accept
insecureSkipVerify: trueon GKE kubelet scrape
- ADR-0021 — Cost-deferred patterns
- ADR-0022 — Ephemeral demo cluster
- ADR-0023 — Stay on GKE Autopilot
- ADR-0025 — UI local-only, no public ingress
- ADR-0027 — Decline service mesh
- ADR-0030 — Choose GCP (GKE)
- ADR-0036 — Multi-cloud Terraform posture (reference modules)
- ADR-0007 — Workload Identity Federation
- ADR-0016 — External Secrets Operator + GSM
- ADR-0018 — JWT HMAC + refresh rotation
- ADR-0047 — Auth0 consent screen stays for social logins
- ADR-0010 — OTLP push to collector
- ADR-0012 — Stay on LGTM with bloom filters
- ADR-0024 — BFF observability proxy + Unleash
- ADR-0038 — Cluster metrics via OTel Collector receivers in lgtm (no kube-prom-stack)
- ADR-0039 — Two overlays: OTel-native (
local) vs Prometheus-community (local-prom)
- ADR-0019 — CB + Retry + rate limit + idempotency
ADRs often touch multiple themes. The list below flags the 5 most frequently cross-linked ones — worth reading first for a broad understanding:
- ADR-0022 — the €2/month budget anchor that influences every subsequent cost decision.
- ADR-0026 — the "app doesn't know about third-party tools" rule that shaped ADR-0024 (BFF retirement) and the UI-side ADR-0008 (observability page retirement).
- ADR-0017 — the bleeding-edge vs stable trade-off anchoring ADR-0031 (version adoption) and the compat matrix.
- ADR-0021 — the editorial rule that decides which "nice-to-have" features land.
- ADR-0029 —
the canonical-vs-parity CI rule that produced
docs/ops/ci-philosophy.md.
Write an ADR when the decision:
- Changes the public API or contract with another system
- Introduces a new tool, service, or dependency at the infrastructure level
- Replaces one approach with another (Helm → Kustomize, Java 21 → 25)
- Defines a pattern others are expected to follow (security, error handling)
- Locks in a constraint that limits future choices
Do not write an ADR for:
- Code-style choices (that's what Prettier/Checkstyle are for)
- One-off bug fixes
- Library upgrades within a major version (unless the major itself is an ADR — ADR-0017 for Java 25)
Copy 0000-template.md and fill in the sections.
When a new ADR lands, the author updates two places in the same MR:
- The flat index table (above) — new row
- The appropriate hierarchical section — new bullet
A reviewer who spots an ADR missing from either is entitled to block the MR on that. Keeping the nav in sync is cheaper than regenerating it from scratch each quarter.