Expand description
Context document metadata and dependency-graph management.
Context documents are markdown (or any plaintext) files inside a Lore workspace that carry structured metadata and dependency edges. They are the building blocks for AI context-graph assembly — the system that tells an agent “when user asks about task X, also surface documents Y and Z.”
§Storage model
Metadata is stored as Lore file-level metadata under the
nap.context_docs key (a JSON map keyed by file path). Dependency
edges are stored as nap.context_deps (a JSON adjacency list).
This avoids requiring a separate database or sidecar files — the VCS is the source of truth.
§Thread safety
ContextDocsManager uses interior mutability (a Mutex<Graph>)
for dependency-graph mutations. Read operations take &self.
Structs§
- Context
Docs Manager - Manages context-document metadata and dependency edges inside a Lore workspace.