Skip to content

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

docs(util): add README for utility module

Steven Enamakelfdf9c3812d0b
diff --git a/crates/openhuman-core/src/util/README.md b/crates/openhuman-core/src/util/README.md
index f557902278..07d05bba98 100644
--- a/crates/openhuman-core/src/util/README.md
+++ b/crates/openhuman-core/src/util/README.md
@@ -1,11 +1,11 @@
# util
-Kernel helper family — `pub mod util;` in `lib.rs` is unconditional, never
+Kernel helper family. `pub mod util;` in `lib.rs` is unconditional, never
feature-gated. Helpers reused across domains; nothing here may reach into a
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`
+off-limits: this is kernel surface under the `scripts/kernel-floor.limits`
dependency ratchet, which is why `redact` is a
six-line copy rather than an engine link.
@@ -13,12 +13,12 @@ six-line copy rather than an engine link.
| File | Purpose |
| --- | --- |
-| `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. |
+| `redact.rs` | `redact()`: SHA-256 to 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. |
| `text.rs` | `truncate_with_ellipsis` / `truncate_with_suffix` (char-count truncation), `truncate_at_byte_boundary` (byte-cap with `…`), `floor_char_boundary` / `ceil_char_boundary` / `utf8_safe_prefix_at_byte_boundary` (byte-index rounding), `provenance_tag` (`chat:xxxxxxxx` hash of a session id for the cross-chat context block, so the raw `client_id` never reaches a prompt). |
-| `types.rs` | `MaybeSet<T>` — `Set(T)` / `Unset` / `Null`, distinguishing "field absent" from "field explicitly null" in partial-update payloads (see `tools/impl/system/proxy_config.rs`). |
-| `tls/` | `tls_client_builder()` — platform-conditional TLS backend for `reqwest` clients. See [tls/README.md](tls/README.md). |
+| `types.rs` | `MaybeSet<T>`: `Set(T)` / `Unset` / `Null`, distinguishing "field absent" from "field explicitly null" in partial-update payloads (see `tools/impl/system/proxy_config.rs`). |
+| `tls/` | `tls_client_builder()`: platform-conditional TLS backend for `reqwest` clients. See [tls/README.md](tls/README.md). |
`*_tests.rs` files sit beside each module.