The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
docs(memory): add README for tree module
Steven Enamakelc555de085edc
diff --git a/crates/openhuman-core/src/memory/tree/README.md b/crates/openhuman-core/src/memory/tree/README.mdindex ce46d1fec3..ec810a02ee 100644--- a/crates/openhuman-core/src/memory/tree/README.md+++ b/crates/openhuman-core/src/memory/tree/README.md@@ -17,9 +17,9 @@ from them (they cannot live in the extracted crate alongside the rest of| Module | Role || --- | --- |-| [`tree/`](tree/) | Host surface over what used to be `tinymemory_core::tree::tree` — the per-source summary tree's persistence-adjacent RPC (`rpc.rs`, `canonicalize_types.rs`). |+| [`tree/`](tree/) | Host surface over what used to be `tinymemory_core::tree::tree`: the `memory_tree` write/status handlers in `rpc.rs` (`ingest_rpc`, `list_chunks_rpc`, `get_chunk_rpc`, `backfill_status_rpc`, `pipeline_status_rpc`, `doctor_rpc`, `retry_failed_rpc`, `set_enabled_rpc`), and the canonical chat/email/document ingest payload shapes in `canonicalize_types.rs`. Called from [`memory/schema/handlers.rs`](../schema/handlers.rs). || [`tree_runtime/`](tree_runtime/) | The markdown time tree's host surface: JSON-RPC handlers (`ops.rs`, `schemas.rs`), the `tree-summarizer` CLI (`cli.rs`), and an event subscriber (`bus.rs`). Reaches the tree through the contract's six runtime doors (`runtime_buffer_write`, `runtime_read_node`, `runtime_read_children`, `runtime_tree_status`, `runtime_summarize`, `runtime_rebuild`) rather than building an engine config host-side. |-| [`retrieval/`](retrieval/) | Host layer over `tinymemory_core::tree::retrieval`: LLM-callable retrieval primitives (`query_source`, `cover_window`, `search_entities`, `drill_down`, `fetch_leaves`) as `memory_tree.*` JSON-RPC methods, delegating to the bound driver via `crate::memory::api::provider::retrieval`. |+| [`retrieval/`](retrieval/) | Host layer over `tinymemory_core::tree::retrieval`: the retrieval primitives (`query_source`, `cover_window`, `search_entities`, `drill_down`, `fetch_leaves`) as `memory_tree.*` JSON-RPC methods. `rpc.rs` calls the contract's `MemoryRetrieval` family on the **unguarded** `binding.provider()`, so it passes `source_scope::as_bus_scope()` explicitly on every scoped call — read its module doc before touching a scope argument. || [`health/`](health/) | The pipeline failure taxonomy (`FailureCode`, `FailureClass`, `PipelineFailure`, `DegradedState`) and the `user_error` wire payload for a web channel, plus the doctor `report` that reads the bound driver's `MemoryMaintenance::{diagnose, degraded_state}`. Not to be confused with `tinymemory_api::health::MemoryHealth` (driver liveness) — see the module doc for the name collision. |## Registered RPC namespaces@@ -28,7 +28,9 @@ from them (they cannot live in the extracted crate alongside the rest of- `all_memory_tree_registered_controllers` (from [`memory/schema/`](../schema/),`mod.rs`'s `pub use crate::memory::schema::{...}`) — the core `memory_tree`- namespace's ingest/query controllers.+ namespace: `ingest`, `list_chunks`, `get_chunk`, `pipeline_status`,+ `set_enabled`, `doctor`, `retry_failed`, `memory_backfill_status`,+ `smart_walk`, plus every [`memory/read_rpc/`](../read_rpc/) method.- `all_retrieval_registered_controllers` (`retrieval/schemas.rs`) — Phase 4retrieval tools, also under the `memory_tree` namespace (kept in the samenamespace deliberately, "to keep the tool surface tightly grouped with the@@ -44,8 +46,10 @@ the rest of the RPC registry.## Related surfaces- [`memory/query/`](../query/) is the agent-facing `memory_tree` tool- (`MemoryQueryTool`) that calls into this directory's retrieval RPC through- `memory/query/backend.rs`, not directly into `retrieval::rpc`.+ (`MemoryQueryTool`). It reuses `retrieval/rpc.rs`'s request DTOs but does+ not call its handlers: the read modes go through the *guarded* driver+ (`crate::memory::ops::guard::active_memory_guard`) and the `ingest_document`+ mode calls `tree::rpc::ingest_rpc`.- [`memory/read_rpc/`](../read_rpc/) is the Memory tab dashboard's readsurface; it shares the `memory_tree` namespace with the controllersregistered here rather than defining its own.