Skip to content

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

docs(read_rpc): update test documentation and remove obsolete re-export

Steven Enamakel07142a97d160
diff --git a/crates/openhuman-core/src/memory/read_rpc/README.md b/crates/openhuman-core/src/memory/read_rpc/README.md
index 01b97d7274..05e916df13 100644
--- a/crates/openhuman-core/src/memory/read_rpc/README.md
+++ b/crates/openhuman-core/src/memory/read_rpc/README.md
@@ -38,7 +38,8 @@ registry; it rides the same `memory_tree` controller set as the rest of
## Tests
Each file has a colocated `*_tests.rs` (`admin_tests.rs`, `chunks_tests.rs`,
-`entities_tests.rs`, `graph_tests.rs`, `vault_tests.rs`); `read_rpc_tests*.rs`
-at the `memory/` root drives cross-file behavior with `use super::*;` against
-this module, including a `#[cfg(test)]`-only `with_connection` door for
-asserting on the rows a handler wrote directly.
+`entities_tests.rs`, `graph_tests.rs`, `vault_tests.rs`). `read_rpc_tests.rs`
+at the `memory/` root (with its `read_rpc_tests_part_0{1,2}_tests.rs`
+continuations) is mounted as this module's `tests` via `#[path]` and drives
+cross-file behavior with `use super::*;`; `mod.rs` re-exports `Config` and
+`SourceKind` under `#[cfg(test)]` for it.
diff --git a/crates/openhuman-core/src/memory/read_rpc/mod.rs b/crates/openhuman-core/src/memory/read_rpc/mod.rs
index 5596379f14..be286fbd89 100644
--- a/crates/openhuman-core/src/memory/read_rpc/mod.rs
+++ b/crates/openhuman-core/src/memory/read_rpc/mod.rs
@@ -49,16 +49,14 @@ pub(crate) fn parse_source_kind_str(s: &str) -> Option<tinymemory_api::chunks::S
// Re-exports for `read_rpc_tests.rs`, which drives this module with
// `use super::*;`.
//
-// `with_connection` is the raw SQLite door into the engine's chunk store, and
-// it is deliberately the only one left here: the tests use it to assert on rows
-// the RPCs wrote, which is the point of asserting *storage* rather than
-// re-reading through the same handler. It survives the #5560 shed because it is
-// `#[cfg(test)]` — `cfg(test)` code links the `tinymemory-core`
-// **dev-dependency**, which stays after the normal dependency is dropped, so
-// this line does not keep the engine crate in the shipped binary. Nothing
-// production-side in `read_rpc` names the engine any more; `wipe_all`,
+// Only `Config` and `SourceKind` are re-exported, and only under `#[cfg(test)]`.
+// The raw-SQLite `with_connection` door that used to sit here is gone: nothing
+// production-side in `read_rpc` names the engine any more (`wipe_all`,
// `clear_composio_sync_state` and `delete_source` left for `purge_all`,
-// `kv_list` + `kv_delete` and `forget_matching(Source)`.
+// `kv_list` + `kv_delete` and `forget_matching(Source)`), and the tests assert
+// through the contract instead. `cfg(test)` code links the `tinymemory-core`
+// **dev-dependency**, which stays after the normal dependency was dropped
+// (#5560), so nothing here keeps the engine crate in the shipped binary.
#[cfg(test)]
pub(crate) use crate::config::Config;
#[cfg(test)]