Ontos
Last updated on July 14, 2026

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.

ADR-0001

Deployment Contract

AcceptedPhase 0
Decision

Kubernetes-only deployment target. Ports-and-adapters architecture. No cloud SDK imports in services/ — all go through interfaces in libs/platform-ports/.

Rationale

Prevents vendor lock-in. Makes cloud adapters swappable without changing service code. CI-enforceable with a simple grep.

ADR-0002

Ingest Writes to Staging via Fuseki

AcceptedPhase 1
Decision

ingest-svc writes materialized triples to urn:ontos:staging, not directly to urn:ontos:data. A steward approval step promotes staging → data.

Rationale

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.

ADR-0003

Policy Filter at ARQ Query Rewrite Level

AcceptedPhase 0
Decision

Access policies are injected as SPARQL subgraph constraints via Jena ARQ query rewriting, not middleware or HTTP-level filtering.

Rationale

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.

ADR-0004

Bitnami Images from bitnamilegacy Mirror

AcceptedPhase 0
Decision

Bitnami Helm subchart image tags are overridden to use the bitnamilegacy frozen mirror in values-local.yaml.

Rationale

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.

Was this page helpful?