The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(memory): remove traits from the bus facade re-export
shanuc59f5bca95eb
diff --git a/src/openhuman/memory/api.rs b/src/openhuman/memory/api.rsindex f5f02e7de2..a82423a7a7 100644--- a/src/openhuman/memory/api.rs+++ b/src/openhuman/memory/api.rs@@ -52,11 +52,13 @@//! - **`null`** is `NullMemoryProvider`, the fallback bound by//! `memory::binding` when no module driver is available. It is what runs//! when nothing crosses the bus, which makes it the opposite of contract.-//! - **`traits`**, **`version`** (as a module path) and **`is_compatible`** had-//! no use anywhere in `src/`; they were alias surface only. Version-//! negotiation is done through [`CONTRACT_VERSION`], which `memory::binding`-//! and `memory::ops::provider` compare against the driver's reported-//! contract, so that constant stays.+//! - **`traits`** is the engine-embedding scaffolding (`Memory` supertrait and+//! its provider helpers). It is not wire vocabulary and never crosses a bus+//! boundary. `memory::mod` re-exports `tinymemory_api::traits::Memory`+//! directly for the handful of in-process callers that need it; reaching it+//! through this facade would make engine-only scaffolding appear to be contract+//! surface. **`version`** (as a module path) and **`is_compatible`** likewise+//! had no bus use; version negotiation uses [`CONTRACT_VERSION`] directly.//!//! Everything else is re-exported as a whole namespace on purpose: each of//! `capabilities`, `chunks`, `error`, `goals`, `health`, `provider` (with its@@ -74,8 +76,8 @@//! move in the same change that removed the duplicate.pub use tinymemory_api::{- capabilities, chunks, error, goals, health, provider, recall, tool_memory, traits, tree, types,- wire, CONTRACT_VERSION,+ capabilities, chunks, error, goals, health, provider, recall, tool_memory, tree, types, wire,+ CONTRACT_VERSION,};/// The inbound half of the seam: the `tinymemory_api::host` types that crossdiff --git a/src/openhuman/memory/mod.rs b/src/openhuman/memory/mod.rsindex c46b7b27e3..bcbee55664 100644--- a/src/openhuman/memory/mod.rs+++ b/src/openhuman/memory/mod.rs@@ -141,10 +141,9 @@ pub use tinymemory_core::ingestion::{// are simply ours now. See `rpc_models`'s module docs.pub mod rpc_models;pub use rpc_models::*;-// Named at the contract, where they are defined — `tinymemory_core::traits`-// is itself a re-export of these (#18 §A1), so this changes no item, only-// which crate the alias holds in the build (#5560).-pub use crate::openhuman::memory::api::traits::Memory;+// Named on the crate directly — `traits` is engine scaffolding, not bus+// vocabulary, and is deliberately not re-exported from `memory::api` (#5560).+pub use tinymemory_api::traits::Memory;pub use crate::openhuman::memory::api::types::{MemoryCategory, MemoryEntry, MemoryTaint, NamespaceSummary, RecallOpts,};