Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(conversations): simplify module-level documentation

Steven Enamakelab7669278bbb
diff --git a/crates/openhuman-core/src/memory/conversations/mod.rs b/crates/openhuman-core/src/memory/conversations/mod.rs
index 43655e0138..21f95e2283 100644
--- a/crates/openhuman-core/src/memory/conversations/mod.rs
+++ b/crates/openhuman-core/src/memory/conversations/mod.rs
@@ -10,41 +10,21 @@
//! [`crate::memory::tree`], a different index answering a different
//! question.
//!
-//! Three parts, and the split is about ownership rather than size:
+//! The store itself (on-disk format, locking, warm index cache, CRUD and
+//! search) is the `tinymemory-conversations` crate, re-exported below so
+//! callers keep naming `crate::memory::conversations::{...}`. What stays here
+//! is host wiring:
//!
-//! - `store` — the implementation: on-disk format, root lifecycle and sharded
-//! metadata/message locks, the warm index cache, CRUD and search. Everything below is
-//! re-exported from here, so callers name
-//! `crate::memory::conversations::{…}` and never the subtree.
-//! - [`blocking`] — `spawn_blocking` wrappers. Every store entry point is
+//! - [`blocking`] - `spawn_blocking` wrappers. Every store entry point is
//! synchronous and can take `parking_lot` locks across fsync'd file IO, so an
//! `async fn` that calls one directly parks a tokio **worker** thread for the
//! whole wait. Request paths must use these (#5156).
-//! - `bus` — the `core::bus` subscriber that mirrors inbound and processed
-//! channel turns into the store, so Slack/Telegram/… persist alongside the
+//! - `bus` - the `core::bus` subscriber that mirrors inbound and processed
+//! channel turns into the store, so Slack/Telegram/... persist alongside the
//! UI's own threads.
//!
-//! # What #5560 changed here
-//!
-//! Until this change, `store` was `tinycortex::memory::conversations` and
-//! roughly a dozen files across `threads`, `channels` and `agent` named that
-//! crate directly — 72 of this host's ~156 `tinycortex::` call sites, the
-//! single largest block of them. The store is back in the host now, and those
-//! call sites name this module instead.
-//!
-//! It came back because the lift was never load-bearing: nothing inside the
-//! engine ever called into this code, its imports are std plus
-//! `async_trait`/`chrono`/`parking_lot`/`serde`/`serde_json`/`uuid`, and its
-//! sole tie to the rest of the engine was a one-line `from_config` constructor
-//! that no host caller used. The engine's own module docs recorded the code as
-//! "ported from OpenHuman", which is the tell: it was host code parked in a
-//! library. `store`'s module docs carry the full accounting of what the
-//! round trip cost and what deliberately did not come back with it.
-//!
-//! Nothing about the on-disk format moved. The root is still
-//! `<workspace>/memory/conversations`, derived by the same line of code from
-//! the same argument every caller was already passing, so an existing
-//! installation reads and writes exactly the files it did before.
+//! The on-disk format is unchanged: the root is still
+//! `<workspace>/memory/conversations`.
pub mod blocking;