Skip to content

Architecture Decision Records

View as Markdownllms.txt

These twenty-four records describe the decisions that shape OpenLakeForge today. Each is binding: if the code disagrees with one, either the code is wrong or the ADR is, and one of them gets fixed.

An ADR is rewritten in place when its decision changes, with a History footer recording what it absorbed. The log is not an append-only archive — a superseded decision is interesting until it stops explaining anything about the current system, and then it lives in git log rather than here.

0001 for what the platform is made of, 0002 for how it deploys, 0004 for how user code is laid out, and 0008 for why olf is the only interface.

ADR Decision
0001 Platform baseline and component stack — Kubernetes-native, batch-first, Iceberg; dlt → Floe → dbt-trino → Trino under Dagster; Slim and Full
0002 Deployment lifecycle — foundation, platform, artifacts in order; the static/dynamic split is the CD boundary
0003 Provider contracts are the portability boundary — Terraform exports typed v3 contracts per stage; olf parses them fail-closed; consumers branch on catalog_type
0004 Medallion layout, ownership, and catalog namespaces — lakehouse_code/ replaces domains/; Bronze is source-owned, Silver domain-owned, Gold product-owned; per-layer buckets and flat namespaces
0005 The descriptor model — governance.yml, source.yaml and optional alerts.yml, implemented once in openlakeforge-core; tables belong by schema
0006 Dagster runtime and code locations — one project-code image, one merged code location by default, Kubernetes run launcher, Floe as one Kubernetes Job per domain on the same image
0007 Governance and lineage — optional OpenMetadata; lineage only from the engine that wrote; quality results published after the run
0008 olf owns orchestration and its managed toolchain — no tracked shell, a pinned private toolchain, cloud sign-in through SDKs
0009 Distribution — a PyPI package carrying a verified platform payload; the project root is the current directory; olf init
0010 Cloud provider implementations — AWS swaps in EKS, S3, RDS, ECR, Pod Identity and one prefixed Glue catalog; Azure relocates hosting to AKS/ACR; both proof of concept
0011 Deployment Profile v1beta1 — provider, stage, preset and sizing are distinct types; openlakeforge.yaml resolves to one DeploymentTopology before anything is applied
0012 Project revisions — a build-once, content-addressed ProjectRevision covering descriptors, Floe contracts, dbt, Dagster, reports, and the project-code image digest; excludes deployment intent and every stage-rendered artifact
0013 Service access — one ingress switched on by spec.access; <service>-<stage> routes in the contract; HTTP on *.localhost by default
0014 Identity and authorization — canonical roles, the identity.oidc issuer (GitHub through Dex, or external) and the sign-in perimeter; members are administered in GitHub
0015 Polaris identity-provider evaluation — superseded by 0019 (2026-11-23); workloads keep Polaris’s own credentials (0019 D13)
0016 Trino workload authentication — none — every caller sends its own token and Polaris decides; fixed-user Web UI behind the perimeter; AWS keeps Glue rules until #681
0017 Local NetworkPolicy and RBAC — default deny for stage namespaces and the listed olf-system workloads, every flow a row of one file, an enforcing-dataplane gate, kindnet as the CNI, RBAC exceptions named and pinned
0018 GitHub is the forge — source, CI, release, GHCR, and people and roles from GitHub teams through Dex; client CD in GitHub Actions not built
0019 Data-plane authorization — Polaris decides for every caller — the data_access matrix as Polaris grants, keyless per-stage Trino, vended credentials, olf query and Superset per person
0020 Infrastructure, common and platform CLI surfaces — the credential a command needs decides its surface; old paths stay as warning aliases
0021 The platform API — one Python backend for the portal, olf and agents; the person’s token where the service authorizes, a tested role matrix and audit elsewhere
0022 Pod log collection and the log archive format — a Fluent Bit DaemonSet routing by namespace writes gzipped NDJSON hour partitions; one reader for v1 and v2
0023 Alert evaluation, alert policy, incident state and webhook delivery — a */5 CronJob evaluates health signals, alerts.yml declares what alerts, one HTTPS webhook delivers
0024 Optional metrics: a bounded Prometheus reference and its read path — one Prometheus 3.13 LTS in olf-system when metrics are enabled and supported; a minimal scrape baseline; only the platform API reads it, by named series; accepted, M-f footprint open (#21)

Start from TEMPLATE.md. A record states what binds, not how it was built: each decision has a stable ID (D1., D2., …) that is never renumbered, because code and other documents cite it, and a decision that stops binding stays as “D3. Withdrawn (date): reason”. Each decision is a one-sentence rule, a short paragraph, and the file or check that enforces it. Evidence tags, build orders, per-PR narrative and test inventories stay out: issues, git log and CHANGELOG.md hold them, and History gets one line per change to a decision. Reference tables live in docs/reference/ or docs/architecture/, and the record links to them.

Approval. When an ADR is written or rewritten, the pull request carries a review thread on its ## Decision heading. The maintainer approves that Decision text by resolving the thread; since every review thread must be resolved before merge, the pull request cannot merge until each one is.


Synced from openlakeforge @ v0.7.5-beta.1 (8a7bf72), docs/adr/README.md.