Architecture Decision Records
Deviations from the build plan and significant architecture choices, documented for future reference.
ADRs are written when a decision deviates from the build plan, substitutes a dependency, or makes a significant architectural choice that a future reader would need context for. Numbered sequentially. One page max.
Deployment Contract
AcceptedPhase 0Kubernetes-only deployment target. Ports-and-adapters architecture. No cloud SDK imports in services/ — all go through interfaces in libs/platform-ports/.
Prevents vendor lock-in. Makes cloud adapters swappable without changing service code. CI-enforceable with a simple grep.
Ingest Writes to Staging via Fuseki
AcceptedPhase 1ingest-svc writes materialized triples to urn:ontos:staging, not directly to urn:ontos:data. A steward approval step promotes staging → data.
Data quality gate. AI-generated or connector-materialized triples must be human-reviewed before they enter the production graph. The staging graph is invisible to analysts.
Policy Filter at ARQ Query Rewrite Level
AcceptedPhase 0Access policies are injected as SPARQL subgraph constraints via Jena ARQ query rewriting, not middleware or HTTP-level filtering.
Middleware can be bypassed (missing header, wrong route). ARQ rewriting applies at the query execution engine level — it is impossible to bypass without modifying graph-engine source code. Testable with the PolicyFilter interface contract tests.
Bitnami Images from bitnamilegacy Mirror
AcceptedPhase 0Bitnami Helm subchart image tags are overridden to use the bitnamilegacy frozen mirror in values-local.yaml.
Bitnami retired its free image catalog in Aug 2025. The Helm charts themselves are unchanged (still from Bitnami). Only the image registry changed, so no architectural deviation — just a pragmatic workaround documented in the chart README.
When to Write an ADR
- Deviating from the build plan (different library, different approach)
- Substituting a stack dependency (different database, different runtime)
- Making a cross-cutting security decision
- Resolving a significant ambiguity in the build plan
ADR files live at docs/adr/. Format: numbered (0001-title.md), one page max, includes Context / Decision / Rationale / Consequences.