Skip to content

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

chore: files changed crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs,tests/comp

Steven Enamakel96ee81923bd8
diff --git a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs
index d98593ff53..9cfa9589cd 100644
--- a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs
+++ b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs
@@ -321,7 +321,7 @@ async fn full_domain_set_keeps_platform_tools() {
use crate::core::runtime::DomainSet;
let tmp = TempDir::new().unwrap();
- let ctx = CoreContext::for_test(DomainSet::full(), None, None);
+ let ctx = CoreContext::for_test(DomainSet::full(), None);
let names = CoreContext::scope(ctx, async { tool_names(&expansion_tools_for(&tmp)) }).await;
for name in ["shell", "file_read", "file_write", "todo"] {
assert!(names.iter().any(|n| n == name), "missing `{name}`");
diff --git a/tests/composio_list_tools_stack_overflow_regression.rs b/tests/composio_list_tools_stack_overflow_regression.rs
index 8e0e88580b..47d8fe0546 100644
--- a/tests/composio_list_tools_stack_overflow_regression.rs
+++ b/tests/composio_list_tools_stack_overflow_regression.rs
@@ -114,7 +114,6 @@ use openhuman_core::agent::harness::{with_parent_context, ParentExecutionContext
use openhuman_core::agent::prompts::ToolCallFormat;
use openhuman_core::agent::subagent_host::{run_subagent, SubagentRunOptions};
use openhuman_core::config::AgentConfig;
-use openhuman_core::memory::{Memory, MemoryCategory, MemoryEntry, NamespaceSummary, RecallOpts};
use parking_lot::Mutex;
use serde_json::json;
use std::sync::Arc;
@@ -247,53 +246,6 @@ impl ChatModel<()> for StubModel {
}
}
-// ── stub memory ──────────────────────────────────────────────────────
-
-struct StubMemory;
-
-#[async_trait]
-impl Memory for StubMemory {
- async fn store(
- &self,
- _: &str,
- _: &str,
- _: &str,
- _: MemoryCategory,
- _: Option<&str>,
- ) -> Result<()> {
- Ok(())
- }
- async fn recall(&self, _: &str, _: usize, _: RecallOpts<'_>) -> Result<Vec<MemoryEntry>> {
- Ok(vec![])
- }
- async fn get(&self, _: &str, _: &str) -> Result<Option<MemoryEntry>> {
- Ok(None)
- }
- async fn list(
- &self,
- _: Option<&str>,
- _: Option<&MemoryCategory>,
- _: Option<&str>,
- ) -> Result<Vec<MemoryEntry>> {
- Ok(vec![])
- }
- async fn forget(&self, _: &str, _: &str) -> Result<bool> {
- Ok(true)
- }
- async fn namespace_summaries(&self) -> Result<Vec<NamespaceSummary>> {
- Ok(vec![])
- }
- async fn count(&self) -> Result<usize> {
- Ok(0)
- }
- async fn health_check(&self) -> bool {
- true
- }
- fn name(&self) -> &str {
- "stub"
- }
-}
-
// ── the regression itself ────────────────────────────────────────────
/// Structural regression for the path that crashed in `crahs.log`.
@@ -368,7 +320,6 @@ async fn drive_subagent() {
temperature: 0.4,
workspace_dir: std::env::temp_dir(),
workspace_descriptor: None,
- memory: Arc::new(StubMemory),
agent_config: AgentConfig::default(),
workflows: Arc::new(vec![]),
memory_context: Arc::new(None),
diff --git a/tests/in_process/agent_builder_public.rs b/tests/in_process/agent_builder_public.rs
index 825464c472..5929e2af8a 100644
--- a/tests/in_process/agent_builder_public.rs
+++ b/tests/in_process/agent_builder_public.rs
@@ -2,7 +2,6 @@ use anyhow::Result;
use async_trait::async_trait;
use openhuman_core::agent::prompts::SystemPromptBuilder;
use openhuman_core::agent::OpenHumanSessionHost;
-use openhuman_core::memory::{Memory, MemoryCategory, MemoryEntry};
use tinytools::{Tool, ToolResult};
use tinytools_agent::dialect::XmlDialect;
@@ -49,64 +48,6 @@ impl Tool for StubTool {
}
}
-struct StubMemory;
-
-#[async_trait]
-impl Memory for StubMemory {
- async fn store(
- &self,
- _namespace: &str,
- _key: &str,
- _content: &str,
- _category: MemoryCategory,
- _session_id: Option<&str>,
- ) -> Result<()> {
- Ok(())
- }
-
- async fn recall(
- &self,
- _query: &str,
- _limit: usize,
- _opts: openhuman_core::memory::RecallOpts<'_>,
- ) -> Result<Vec<MemoryEntry>> {
- Ok(Vec::new())
- }
-
- async fn get(&self, _namespace: &str, _key: &str) -> Result<Option<MemoryEntry>> {
- Ok(None)
- }
-
- async fn list(
- &self,
- _namespace: Option<&str>,
- _category: Option<&MemoryCategory>,
- _session_id: Option<&str>,
- ) -> Result<Vec<MemoryEntry>> {
- Ok(Vec::new())
- }
-
- async fn forget(&self, _namespace: &str, _key: &str) -> Result<bool> {
- Ok(false)
- }
-
- async fn namespace_summaries(&self) -> Result<Vec<openhuman_core::memory::NamespaceSummary>> {
- Ok(Vec::new())
- }
-
- async fn count(&self) -> Result<usize> {
- Ok(0)
- }
-
- async fn health_check(&self) -> bool {
- true
- }
-
- fn name(&self) -> &str {
- "stub"
- }
-}
-
fn base_builder() -> openhuman_core::agent::SessionHostBuilder {
OpenHumanSessionHost::builder()
.chat_model(Arc::new(StubModel))
@@ -114,7 +55,6 @@ fn base_builder() -> openhuman_core::agent::SessionHostBuilder {
Box::new(StubTool("alpha")),
Box::new(StubTool("beta")),
])
- .memory(Arc::new(StubMemory))
.tool_dispatcher(Box::new(XmlDialect))
}
@@ -138,15 +78,6 @@ fn builder_validates_required_fields() {
.tools(vec![Box::new(StubTool("alpha"))])
.build()
.err()
- .expect("missing memory should error");
- assert!(err.to_string().contains("memory is required"));
-
- let err = OpenHumanSessionHost::builder()
- .chat_model(Arc::new(StubModel))
- .tools(vec![Box::new(StubTool("alpha"))])
- .memory(Arc::new(StubMemory))
- .build()
- .err()
.expect("missing dispatcher should error");
assert!(err.to_string().contains("tool_dispatcher is required"));
}
diff --git a/tests/in_process/agent_turn_overrides_e2e.rs b/tests/in_process/agent_turn_overrides_e2e.rs
index 7a695600c2..af91414e9c 100644
--- a/tests/in_process/agent_turn_overrides_e2e.rs
+++ b/tests/in_process/agent_turn_overrides_e2e.rs
@@ -27,7 +27,6 @@
use crate::env_guard::env_lock;
use crate::env_guard::EnvVarGuard;
-use crate::noop_memory;
use async_trait::async_trait;
use std::collections::VecDeque;
use std::path::PathBuf;
@@ -259,7 +258,6 @@ fn agent_with(
OpenHumanSessionHost::builder()
.chat_model(model)
.tools(tools)
- .memory(noop_memory::noop_memory())
.tool_dispatcher(dispatcher)
.workspace_dir(workspace_path)
.event_context("turn-overrides-session", "turn-overrides-channel")
diff --git a/tests/support/noop_memory.rs b/tests/support/noop_memory.rs
deleted file mode 100644
index 3e75031c5a..0000000000
--- a/tests/support/noop_memory.rs
+++ /dev/null
@@ -1,85 +0,0 @@
-//! A [`Memory`] that stores nothing, for integration targets that need one.
-//!
-//! Three targets build an `Agent` or a session that must be handed *a* memory
-//! and never read one back. They used to get it from the engine's factory with
-//! `backend: "none"` — an engine call whose entire purpose was to obtain
-//! something that does not store, and one of the last things keeping
-//! `tinymemory-core` on this crate's test critical path (openhuman#6161).
-//!
-//! It lives under `tests/support/` and is pulled in with `#[path]` because
-//! `memory::test_support::noop_memory` is `pub(crate)`: a `tests/*.rs` target
-//! links this crate as an ordinary dependency and cannot see crate-private
-//! items, however they are declared.
-
-#![allow(dead_code)]
-
-use std::sync::Arc;
-
-use openhuman_core::memory::api::recall::RecallOpts;
-use openhuman_core::memory::api::types::{MemoryCategory, MemoryEntry, NamespaceSummary};
-use openhuman_core::memory::Memory;
-
-/// Accepts every write and answers empty.
-#[derive(Debug)]
-pub struct NoopMemory;
-
-#[async_trait::async_trait]
-impl Memory for NoopMemory {
- fn name(&self) -> &str {
- "none"
- }
-
- async fn store(
- &self,
- _namespace: &str,
- _key: &str,
- _content: &str,
- _category: MemoryCategory,
- _session_id: Option<&str>,
- ) -> anyhow::Result<()> {
- Ok(())
- }
-
- async fn recall(
- &self,
- _query: &str,
- _limit: usize,
- _opts: RecallOpts<'_>,
- ) -> anyhow::Result<Vec<MemoryEntry>> {
- Ok(Vec::new())
- }
-
- async fn get(&self, _namespace: &str, _key: &str) -> anyhow::Result<Option<MemoryEntry>> {
- Ok(None)
- }
-
- async fn list(
- &self,
- _namespace: Option<&str>,
- _category: Option<&MemoryCategory>,
- _session_id: Option<&str>,
- ) -> anyhow::Result<Vec<MemoryEntry>> {
- Ok(Vec::new())
- }
-
- async fn forget(&self, _namespace: &str, _key: &str) -> anyhow::Result<bool> {
- Ok(false)
- }
-
- async fn namespace_summaries(&self) -> anyhow::Result<Vec<NamespaceSummary>> {
- Ok(Vec::new())
- }
-
- async fn count(&self) -> anyhow::Result<usize> {
- Ok(0)
- }
-
- async fn health_check(&self) -> bool {
- true
- }
-}
-
-/// The shorthand the `backend: "none"` call sites use.
-pub fn noop_memory() -> Arc<dyn Memory> {
- Arc::new(NoopMemory)
-}