Skip to content

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

docs(memory): update error type references in docs

Steven Enamakel6c4b6630ad82
diff --git a/crates/openhuman-core/src/memory/README.md b/crates/openhuman-core/src/memory/README.md
index c3aa964f2c..a9fa95c0fb 100644
--- a/crates/openhuman-core/src/memory/README.md
+++ b/crates/openhuman-core/src/memory/README.md
@@ -310,7 +310,7 @@ The agent `memory` tool applies the same confinement and overwrites any
| [`schemas.rs`](./schemas.rs), [`schemas/defs.rs`](./schemas/defs.rs), [`schemas/defs/`](./schemas/defs/) | The `openhuman.memory_*` controller schemas, split by controller group with shared field helpers. |
| [`schemas/handlers.rs`](./schemas/handlers.rs) | Thin handlers using the shared parse, config-load, operation and result-serialization path. |
| [`types.rs`](./types.rs) | RPC request and view shapes; contract types are re-exported from `tinymemory_api`. |
-| [`error.rs`](./error.rs) | `MemoryError` and the seven stable error codes. |
+| [`error.rs`](./error.rs) | Maps upstream `tinymemory_api::Error` values to the existing structured RPC envelope. |
| [`status.rs`](./status.rs) | The memory row of `subsystems.status`. |
| [`test_fixtures.rs`](./test_fixtures.rs) | Shared in-memory engines for the unit tests. |
@@ -356,7 +356,8 @@ The agent `memory` tool applies the same confinement and overwrites any
- `deletion::forget_thread` (`deletion.rs`): called by `threads` when a
thread is deleted. `channels::forget_channel` is called by `channels` on
disconnect.
-- `MemoryError` ([`error.rs`](./error.rs)): every RPC failure carries one of `MEMORY_OFF`,
+- Upstream `tinymemory_api::Error` values map at the RPC boundary ([`error.rs`](./error.rs)):
+ every RPC failure carries one of `MEMORY_OFF`,
`UNSUPPORTED`, `INVALID_REQUEST`, `UNAUTHORIZED`, `INSUFFICIENT_CREDITS`,
`UNAVAILABLE` or `ENGINE` in `data.code`. The two account-wide refusals are
split out so a caller can tell "top up" and "try later" apart from an
diff --git a/crates/openhuman-core/src/memory/explore.rs b/crates/openhuman-core/src/memory/explore.rs
index 58af2d00f2..92382d9a0d 100644
--- a/crates/openhuman-core/src/memory/explore.rs
+++ b/crates/openhuman-core/src/memory/explore.rs
@@ -75,7 +75,7 @@ pub struct ItemsGetView {
///
/// # Errors
///
-/// [`Error::invalid`] for a path that is too long or a step whose
+/// [`Error::InvalidRequest`] for a path that is too long or a step whose
/// value the facet cannot take (blank, or an unknown kind).
pub fn narrowed(filter: Option<MetaFilter>, path: &[PathStep]) -> Result<MetaFilter> {
if path.len() > MAX_PATH_STEPS {
diff --git a/crates/openhuman-core/src/memory/layout_migration/mod.rs b/crates/openhuman-core/src/memory/layout_migration/mod.rs
index 635e16153c..75b792e03b 100644
--- a/crates/openhuman-core/src/memory/layout_migration/mod.rs
+++ b/crates/openhuman-core/src/memory/layout_migration/mod.rs
@@ -11,7 +11,7 @@
//! - [`service`]: running in the background (one run per workspace, gated on
//! the import) and mapping the module's errors to [`Error`].
//!
-//! [`Error`]: crate::memory::error::Error
+//! [`Error`]: tinymemory_api::Error
pub mod app_host;
pub mod claim;