The design document
The whole plan.
The plan sets its own goal in its first line: 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
. It has 28 sections and appendices, about 134,000 words, and describes the 1.0 target; for what runs today, see the implementation status.
Where to start
New here
Why this exists, the rules it is built under, and what it reuses.
Storage and time
The commit stream, history, branches and the graph-shaped LSM.
Security and surface
Capabilities, the server and its protocols, and replication.
Verification
Determinism, the test ladder, the invariants and the performance targets.
Foundations
the thesis, the constraints and the model · 5 entriesA 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…
§11,071 wordsConstraints and Non-Negotiables§21,788 wordsFoundation Audit: Exactly What We Stand OnThis section is the result of a full review of the three repositories. It maps specific existing assets to specific FrankenGraphDB subsystems, because the leapfrog claim is only credible if…
§32,094 wordsSOTA Distillation: The Field, and Where It Falls ShortA condensed map of the review (systems + literature), organized as adopt / adapt / reject decisions. Full bibliography in Appendix E.
§44,317 wordsData ModelA bitemporal, schema-gradient, multi-label property multigraph:
Subsystems
the nine named parts of the engine · 10 entriesChronicle is the ECS-native durability substrate — frankensqlite's Native mode, born as the only mode, for graph objects.
§62,008 wordsStrata: The Storage Engine (Bet B2)Strata resolves the write/scan/space trilemma by refusing to pick one point on it. Authoritative incidence is partitioned by stable vertex identity and edge type, never by mutable labels.
§72,642 wordsTransactions: Block-MVCC + Graph-SSI + Semantic MergeBlocks (~256 edges) are the graph analogue of frankensqlite's pages: fine enough that writers to different neighborhoods never touch (fan-out of real workloads means most concurrent writes…
§83,719 wordsLoom: Languages, Algebra, Optimizer, Execution (Bet B3)LanguageContract is a canonically encoded, content-addressed tagged union with common { grammar_oid, lexer_profile_oid, normalizer_oid, semantic_profile_oid, scalar_profile_oid,…
§93,327 wordsRipple: Incremental Everything (Bet B4)Four features that vendors often build separately—recursive evaluation, materialized views, subscriptions, and incremental analytics—share computation over Z-sets advanced by a total…
§101,084 wordsBeacon: The Index FabricEvery index generation exposes IndexSnapshot { identity: DerivedIdentity, root_oid, answer_contract: AnswerContract }; an index definition normally has one canonical advancing source role.
§11471 wordsPrism: In-Database Analytics via franken_networkxCALL fnx.<algorithm>(...) [YIELD …] exposes only registered, semantically compatible fnx signatures. Versioned FnxSignatureRegistry describes per algorithm: zero/one/multiple graph inputs.
§126,312 wordsWarden: Security & GovernanceThe trust matrix distinguishes untrusted clients, mutually hostile tenants, honest-but-curious storage, crash-fault replicas, malicious/stale donors, independent transparency witnesses,…
§134,338 wordsFabric: Server, Protocols, and the Embedded API§142,815 wordsAegis: Replication, HA, and the Distribution DoctrineDoctrine: single-node correctness is the base product; replication adds crash-fault durability, availability, and read scale.
Doctrine
verification, operations, performance and delivery · 6 entriesThis is not a QA appendix; it is a design pillar with its own budget. It opens with the runtime stratum (§15.0 — the calibration plane that governs the live system), then the verification…
§162,702 wordsObservability & Operations§171,472 wordsPerformance Doctrine & TargetsReference machine: 32-core/64-thread, 256 GB RAM, PCIe-4 NVMe, single node. Every number below is a provisional EmpiricalGate, activated only when its benchmark manifest pins CPU/microcode,…
§18484 wordsWorkspace Layout & the Build-It-Ourselves InventoryG0 materializes invariants.toml, evidence.toml, slo.toml, the unsafe-boundary ledger, feature/conformance matrices, threat model, format registries, proof-lane manifests, and exit-criteria…
§193,106 wordsWorkstreams & Convergence GatesNo MVP and no substitute architectures. Work is sequenced by dependency and converges through constitutional gate G0 plus four integration gates.
§20948 wordsRisks & MitigationsAppendices
the normative contracts · 7 entriesRoleTransitionActivationState is the closed role union…
Appendix B1,075 wordsGraph Intent Log (the semantic vocabulary)Intents are deterministic commands captured at statement execution; they are not committed effects or Ripple deltas.
Appendix C995 wordsGLA Operator Inventory (executor contracts)Every physical implementation registers input/output factorization, strict/relaxed determinism, minimum resident set and spill algorithm, maximum work between cancellation checkpoints,…
Appendix D3,333 wordsFGP Protocol ContractConnection state is exactly TransportEstablished -> VersionNegotiated -> Authenticated{AuthContext} -> Ready{ReadyBinding} -> Draining -> Closed. DatabasePosture is exactly Local|Sharded.
Appendix E659 wordsWorking Bibliography (anchors reviewed for this plan)Storage: Sortledton (PVLDB 15(6), 2022) · Teseo (PVLDB 14(6), 2021) · LiveGraph (PVLDB 13(7), 2020) · Aspen (PLDI 2019) · GraphOne (FAST 2019) · GTX / Spruce / RapidStore (2024–25) ·…
Appendix F3,024 wordsInvariant and Evidence RegistriesThis table contains exactly twenty top-level invariant IDs. G0 materializes each row as one or more stable subordinate clause records in invariants.toml.
Appendix G1,790 wordsOperation Cost Registry (normative contract)This appendix is the constitutional instrument required by §1's constraint 12: §1.11 gave correctness claims a registry.