Skip to main content

rto_graph/
lib.rs

1//! Provenance-tagged knowledge graph store.
2//!
3//! Every edge in a Roteiro graph carries a [`Provenance`] tag recording how it
4//! was produced: deterministically derived from source ASTs, authored by a
5//! human or agent in an ADR/blueprint, or inferred heuristically from docs and
6//! other artifacts. See ADR-0001.
7//!
8//! The graph is a set of [`Node`]s addressed by a deterministic natural
9//! [`Node::key`], connected by [`Edge`]s. Facts extracted from one source blob
10//! are grouped into a [`FactSet`] and applied atomically to a [`Store`].
11//!
12//! @rto:0001
13
14mod cache;
15mod extract;
16mod git;
17mod migrations;
18mod model;
19mod provenance;
20mod query;
21mod store;
22mod sync;
23
24pub use cache::{CacheError, ObjectCache};
25pub use extract::{Extractor, FileNodeExtractor, Registry, RustExtractor};
26pub use git::{BlobRef, GitError, Repo};
27pub use model::{Direction, Edge, EdgeKind, FactSet, Node, NodeKind, Span};
28pub use provenance::Provenance;
29pub use query::{
30    EdgeRef, Explanation, Listing, NodeSummary, Path, PathHop, SCHEMA, explain, list_kind, path,
31};
32pub use store::{Store, StoreError};
33pub use sync::{SyncError, SyncReport, sync, sync_worktree};