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
fix(tests): install memory host impls in turn test helpers
Steven Enamakel3be4366e3dab
diff --git a/src/openhuman/agent/harness/session/turn_tests.rs b/src/openhuman/agent/harness/session/turn_tests.rsindex a54266d96b..6072b356f7 100644--- a/src/openhuman/agent/harness/session/turn_tests.rs+++ b/src/openhuman/agent/harness/session/turn_tests.rs@@ -386,6 +386,13 @@ fn make_agent(visible_tool_names: Option<HashSet<String>>) -> Agent {backend: "none".into(),..crate::openhuman::config::MemoryConfig::default()};+ // `create_memory` reaches the engine's embedding seam, which fails loudly+ // when unwired rather than degrading — a deliberate choice, so an unwired+ // host cannot corrupt an embedding space quietly. Nothing in a unit test+ // runs the startup wiring that installs it, so the helper installs it+ // itself. `install_for_tests` is idempotent (a `Once`), so every helper in+ // this file calling it costs one install for the whole binary.+ crate::openhuman::memory::host_impls::install_for_tests();let mem: Arc<dyn Memory> =Arc::from(tinymemory_core::store::create_memory(&memory_cfg, &workspace_path).unwrap());@@ -440,6 +447,13 @@ fn make_agent_with_builder_and_dispatcher(backend: "none".into(),..crate::openhuman::config::MemoryConfig::default()};+ // `create_memory` reaches the engine's embedding seam, which fails loudly+ // when unwired rather than degrading — a deliberate choice, so an unwired+ // host cannot corrupt an embedding space quietly. Nothing in a unit test+ // runs the startup wiring that installs it, so the helper installs it+ // itself. `install_for_tests` is idempotent (a `Once`), so every helper in+ // this file calling it costs one install for the whole binary.+ crate::openhuman::memory::host_impls::install_for_tests();let mem: Arc<dyn Memory> =Arc::from(tinymemory_core::store::create_memory(&memory_cfg, &workspace_path).unwrap());@@ -997,6 +1011,13 @@ async fn turn_triggers_configured_memory_agent_before_parent_prompt() {backend: "none".into(),..crate::openhuman::config::MemoryConfig::default()};+ // `create_memory` reaches the engine's embedding seam, which fails loudly+ // when unwired rather than degrading — a deliberate choice, so an unwired+ // host cannot corrupt an embedding space quietly. Nothing in a unit test+ // runs the startup wiring that installs it, so the helper installs it+ // itself. `install_for_tests` is idempotent (a `Once`), so every helper in+ // this file calling it costs one install for the whole binary.+ crate::openhuman::memory::host_impls::install_for_tests();let mem: Arc<dyn Memory> =Arc::from(tinymemory_core::store::create_memory(&memory_cfg, &workspace_path).unwrap());@@ -1172,6 +1193,13 @@ async fn turn_override_suppress_memory_agent_skips_memory_trigger() {backend: "none".into(),..crate::openhuman::config::MemoryConfig::default()};+ // `create_memory` reaches the engine's embedding seam, which fails loudly+ // when unwired rather than degrading — a deliberate choice, so an unwired+ // host cannot corrupt an embedding space quietly. Nothing in a unit test+ // runs the startup wiring that installs it, so the helper installs it+ // itself. `install_for_tests` is idempotent (a `Once`), so every helper in+ // this file calling it costs one install for the whole binary.+ crate::openhuman::memory::host_impls::install_for_tests();let mem: Arc<dyn Memory> =Arc::from(tinymemory_core::store::create_memory(&memory_cfg, &workspace_path).unwrap());