Skip to content

D27 — SQLite, not a graph database

  • Status: Accepted
  • Date: 2026-09-17
  • Origin: design interview
  • Area: foundations

Decision

The graph is stored in SQLite, not a graph database.

The log is the truth; a graph is a projection. If multi-hop ever matters, build a rebuildable current_edges projection (recursive CTEs, or Kùzu as an index). ~~Parked — see D27b.~~ Multi-hop paths were built in slice 13 over the same tables (kg path, D40); D27b is superseded.

Why

The workload is an evidence log, not traversal — nearly every read is "rows for one entity, filtered by two time axes, scored". Our edges are reified (evidence, valid range, score, kind, retraction), and reifying edges in a graph database gives up exactly the traversal advantage that would justify it. Plus: single file in the repo, no server, millisecond test databases, sqlite-vec for embeddings later.