Skip to content

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

chore: document search utility in README

Steven Enamakelb43cbde2702c
diff --git a/crates/openhuman-core/src/skills/search.rs b/crates/openhuman-core/src/skills/search.rs
index f3d27a4544..ce677c63e5 100644
--- a/crates/openhuman-core/src/skills/search.rs
+++ b/crates/openhuman-core/src/skills/search.rs
@@ -12,7 +12,7 @@
//! deciding it should.
//!
//! Search is the third way: pay for the one skill that matches, and nothing for
-//! the rest. It is the same bargain [`crate::tools::implementations::meta::tool_search`]
+//! the rest. It is the same bargain [`crate::tools::implementations::meta::deferred`]
//! makes for deferred tool schemas, over a different corpus.
//!
//! # What it returns, and what it does not
@@ -24,7 +24,7 @@
//!
//! # The seam
//!
-//! Ranking is [`crate::util::bm25`], which names nothing from this
+//! Ranking is [`tinytools::rank::Bm25Index`], which names nothing from this
//! crate. The host-owned half is everything else in this file: which roots are
//! scanned and whether the workspace is trusted. That is the split to preserve
//! if this ever becomes a loadable module — a module can rank, but it cannot be
diff --git a/crates/openhuman-core/src/util/README.md b/crates/openhuman-core/src/util/README.md
index 38377ddcf7..beffb71a5a 100644
--- a/crates/openhuman-core/src/util/README.md
+++ b/crates/openhuman-core/src/util/README.md
@@ -6,14 +6,13 @@ domain. No file in this directory has a `use crate::` line, and that is the
rule: a helper that needs config, a `Tool`, a workspace, or security policy
belongs in the domain that owns those, not here. New external crates are also
off-limits — this is kernel surface under the `scripts/kernel-floor.limits`
-dependency ratchet, which is why `bm25` is hand-rolled and `redact` is a
+dependency ratchet, which is why `redact` is a
six-line copy rather than an engine link.
## Layout
| File | Purpose |
| --- | --- |
-| `bm25.rs` | `Bm25Index` + `tokenize` — BM25 ranking over `(id, text)` pairs, the shared core behind `tools/impl/meta/tool_search.rs` and `skills/search.rs`. Names nothing from `crate::` so it can move into a loadable module unchanged. |
| `redact.rs` | `redact()` — SHA-256 → 8 hex chars for source ids, entity ids, and content paths in log lines. Same helper as `tinymemory_core::util::redact`, kept as a local copy so the host does not link the memory engine for a log formatter; the two copies never need to agree. |
| `retry.rs` | `retry_with_backoff` / `retry_with_backoff_async` (`base_ms * 2^i` backoff, `warn!` per retry) and `is_transient_fs_error` — for Windows mandatory-locking errors (`ERROR_SHARING_VIOLATION`, `ERROR_ACCESS_DENIED`) on a tree another handle still holds. |
| `sanitize.rs` | Pure re-export of `tinymcp_bus::sanitize` (`sanitize_for_llm`, `strip_control_chars`, `strip_instruction_fences`, `truncate_utf8_safe`, `MAX_DESCRIPTION_BYTES`, `MAX_TITLE_BYTES`) at the path callers already use. The rule lives in `tinymcp_bus` so MCP tool descriptions and the orchestrator prompt builder's skill descriptions get the same stripping; do not fork it back here. |
@@ -27,7 +26,7 @@ six-line copy rather than an engine link.
`mod.rs` re-exports `retry`, `text`, and `types` items at the module root, so
`crate::util::truncate_with_ellipsis`, `crate::util::retry_with_backoff`, and
-`crate::util::MaybeSet` resolve without the submodule. `bm25`, `redact`,
+`crate::util::MaybeSet` resolve without the submodule. `redact`,
`sanitize`, and `tls` are reached through their submodule:
`crate::util::bm25::Bm25Index`, `crate::util::redact::redact`,
`crate::util::sanitize::sanitize_for_llm`, `crate::util::tls::tls_client_builder`.