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 ─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-corePure domain types, validation (GroupId, EntityId, RFC3339 timestamps), zero DB or HTTP dependencies.
crates/storageSQLite repositories (sqlx), FTS5 full-text search, project context queries, vectors, and hygiene.
crates/apiAxum 0.8 HTTP routes, Streamable HTTP MCP handler (src/mcp.rs), blake3 Bearer auth, embedded /ui.
crates/rustgraphCLI binary entrypoint supporting serve and hash-token commands on Tokio.
temporal / retrieval / ingestion / extraction / resolver / jobs / llm / mcpModular workspace crates separating graph operations, bitemporal rules, and background tasks.