12-Crate Rust Workspace

Bitemporal Knowledge Graph Architecture

Designed as one self-contained Rust binary with SQLite, forward-only migrations, and an embedded force-directed dashboard at /ui.

Graph Data Model

Project memory topology
project ─has_module→ module ─has_feature→ feature ─status→ (current state, with dates)
project ─decision→   decision
project ─todo→       task
project ─bug→        bug
session notes are stored as episodes

When a fact changes, memory_supersede ends the old fact instead of deleting it and records a new validity start date. Querying memory_project_context with as_of replays exact historical state.

Workspace Layout

crates/graph-core

Pure domain types, validation (GroupId, EntityId, RFC3339 timestamps), zero DB or HTTP dependencies.

crates/storage

SQLite repositories (sqlx), FTS5 full-text search, project context queries, vectors, and hygiene.

crates/api

Axum 0.8 HTTP routes, Streamable HTTP MCP handler (src/mcp.rs), blake3 Bearer auth, embedded /ui.

crates/rustgraph

CLI binary entrypoint supporting serve and hash-token commands on Tokio.

temporal / retrieval / ingestion / extraction / resolver / jobs / llm / mcp

Modular workspace crates separating graph operations, bitemporal rules, and background tasks.