FrankenGraphDB

The Thesis: What "Leapfrog" Actually Means Here

1,086 words1 tableA design document: it describes the 1.0 target, not what runs today.

A blank-slate, memory-safe, ultra-high-performance graph database in Rust, built entirely on the Franken/asupersync ecosystem, designed to leapfrog every commercial and open-source graph system in existence.


Every graph database on the market today is a compromise fossilized around a decision made years ago:

  • Neo4j fossilized around pointer-chasing "index-free adjacency" on the JVM: superb ergonomics, mediocre analytics, painful memory behavior, and a query runtime that took 15 years to get vectorized.
  • TigerGraph fossilized around MPP analytics with a proprietary language and an operational footprint that makes it a platform decision, not a library.
  • Kùzu got the query processing story right (columnar CSR + vectorization + factorization + worst-case-optimal joins) and then left the commons: Kùzu Inc. was acquired by Apple (acquisition agreed October 2025, disclosed February 2026 via Apple's EU DMA filing), the upstream repository was archived read-only on 2025-10-10, and community forks (LadybugDB, Kineviz's bighorn, ryugraph, Vela) continue the architecture while inheriting its gaps. Upstream Kùzu's execution surface was incomplete — single-writer (the one gap the Vela fork explicitly targets with multi-writer agent memory), no replication story, no temporal story, no deterministic testing story.
  • Memgraph / FalkorDB are fast in-memory engines with thin durability and no principled answer to larger-than-memory, history, or verification.
  • JanusGraph / NebulaGraph fossilized around generic KV underlays (Cassandra/RocksDB) and pay a permanent impedance-mismatch tax on every traversal.
  • The academic frontier (Sortledton, Teseo, LiveGraph, GTX, Spruce, RadixGraph; factorized WCOJ processing; DBSP; AeonG) has solved, in isolation, essentially every hard subproblem — transactional adjacency at near-CSR speed, unified join processing, automatic incrementalization, cheap temporal storage — and no shipping system has ever composed them.

FrankenGraphDB's leapfrog is not one trick. It is the composition of six bets, each individually at or beyond the current frontier, made feasible only because the foundation libraries already exist:

# Bet One-line statement Why nobody else can do it
B1 One Version Universe MVCC publication, retained time-travel history, replication order, change subscriptions, and git-style database branches share one append-only, content-addressed, RaptorQ-protected commit mechanism, while their retention and proof products remain explicitly distinct. Requires ECS-style durability substrate (frankensqlite) + fountain codes (asupersync) designed in from byte zero.
B2 Graph-Structured LSM ("Strata") Adjacency lives in three temperature tiers—versioned delta blocks → sealed compressed CSR runs → archived checkpoints—so one store can target high transactional ingest and static-CSR-class scans; actual rates remain §17 benchmark gates. Existing systems choose different write/scan/space points; Strata makes the representation choice per stable adjacency descriptor without changing semantics.
B3 Unified Factorized/WCO Execution ("Loom") One Free-Join-style physical family covers binary and multiway join strategies plus factorized intermediates, using only the trie orders that Strata/Beacon actually expose and building spillable COLTs for missing orders. Kùzu and Free Join validate important pieces; the integration over mutable, authorized, larger-than-memory graph storage remains the engineering bet.
B4 Incremental Everything ("Ripple") One checked Z-set delta algebra powers the registered recursive-query subset, materialized views, standing queries/subscriptions, and eligible incremental analytics; final committed effects produce the canonical ordered delta batches. Requires B1's final-effect stream and a typed operator inventory whose derivatives, deletion laws, recursion bounds, and fallbacks are explicit.
B5 Determinism, Evidence, and Calibrated Adaptivity CGSE tie-break policies, complexity witnesses, and evidence-closed manifests make every eligible STRICT result reproducible and auditable while its full closure is retained. Every adaptive decision emits a replayable decision card under a versioned policy epoch. The Sextant calibration plane evaluates policies against pinned deterministic fallbacks, but statistical evidence is never mislabeled as a safety proof. The whole database runs under asupersync's lab runtime for bounded DPOR exploration, seed replay, and chaos injection, with scoped Lean/TLA+ anchors. Requires franken_networkx's CGSE + asupersync's lab runtime + a codebase that threads Cx capability contexts through every effect from day one.
B6 Agent-Native by Construction Branch-per-agent isolation with semantic intent-log merge, capability-scoped (macaroon) subgraph authorization, provenance as first-class edges, hybrid vector+text+graph retrieval in one planner, and retained-evidence replay of strict agent reads—purpose-built for GraphRAG and multi-agent memory. Requires B1 (branches), B4 (fresh incremental views), B5 (scoped replay), and asupersync's macaroon security layer.

The 2026 market context makes the timing exact: GraphRAG and agent memory have become the first mainstream non-fraud use case pulling enterprises into graph databases; practitioners have converged on hybrid vector+graph architectures; and reviewers explicitly flag governance/access-control and freshness-of-derived-state as the unsolved problems of current systems. Meanwhile the strongest technical design in the space was removed from open source at the exact moment demand inflected: Apple acquired Kùzu Inc. (agreed October 2025, disclosed February 2026 via Apple's EU DMA filing) — at once the wildcard in this market and the strongest available validation of the embedded-graph thesis. The Kùzu-shaped hole is not empty and is not staying open: community forks (LadybugDB, bighorn, ryugraph, Vela) carry the architecture forward, and cloud GQL gravity is consolidating the query surface — Microsoft Fabric Graph is GA with native ISO GQL and NL2GQL over OneLake, Spanner Graph is GQL-compatible, and Neo4j itself is converging on GQL through Cypher 25 and Neo4j 6 — which makes ISO GQL conformance table stakes, not a wedge. What the market has demonstrated it lacks is an abandonment-proof, governance-grade embedded engine: GitLab adopted Kùzu for its Knowledge Graph, then declared it an unviable foundation and began a forced migration — a marquee adopter burned by embedded-graph abandonment, now shopping for exactly the durability, governance, and continuity properties this plan specifies. The correct move is therefore not to refill the hole as it was — it is to build the system Kùzu would have become in 2030, plus the durability, temporal, verification, and multi-writer stories it never had. FrankenGraphDB is the only embedded graph engine that combines git-grade branches, deterministic byte-level replay for STRICT results, capability governance, and outsider-verifiable proofs.

Anti-goals of this document: There is no "MVP", no "v1 simplification", no "phase where we use RocksDB temporarily." Section 19 sequences integration, not ambition: every workstream below is specified at full strength. Horizontal sharding is explicitly post-1.0: the 1.0 formats reserve the identities and fencing fields it needs, but this plan does not claim that adding distributed atomic commit, distributed SSI, or a global-time service is a configuration-only activation. Those protocols have their own workstream and proof gates before sharding may ship.