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
chore(tests): remove unused test files
Steven Enamakel3353d7d8930c
diff --git a/crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rs b/crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rsindex 88c0318d2e..f17613c1c1 100644--- a/crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rs+++ b/crates/openhuman-core/src/agent/learning/prompt_sections_tests_2_tests.rs@@ -1,3 +1,4 @@+use crate::memory::test_support::NoopMemory;use super::*;use crate::agent::prompts::LearnedContextData;use crate::memory::{Memory, MemoryCategory, MemoryEntry};@@ -6,64 +7,6 @@ use std::collections::HashSet;use std::path::Path;use std::sync::Arc;-struct NoopMemory;--#[async_trait]-impl Memory for NoopMemory {- fn name(&self) -> &str {- "noop"- }-- 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: crate::memory::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<crate::memory::NamespaceSummary>> {- Ok(Vec::new())- }-- async fn count(&self) -> anyhow::Result<usize> {- Ok(0)- }-- async fn health_check(&self) -> bool {- true- }-}-fn prompt_context(learned: LearnedContextData) -> PromptContext<'static> {let visible_tool_names = Box::leak(Box::new(HashSet::new()));PromptContext {diff --git a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rsindex ba8d4f76c6..d9a9b14640 100644--- a/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/agent_teams/runtime_tests.rs@@ -8,6 +8,7 @@//! real entry point; its `Started` path (which spawns a loop building a real//! `Agent` from config) is covered by the JSON-RPC e2e over the live core stack.+use crate::memory::test_support::NoopMemory;use std::collections::HashSet;use std::sync::Arc;@@ -29,57 +30,6 @@ use tinytools::Tool;// ── Mocks (mirror workflow_runs::engine_tests) ──────────────────────────────-#[derive(Default)]-struct NoopMemory;--#[async_trait]-impl Memory for NoopMemory {- async fn store(- &self,- _ns: &str,- _key: &str,- _content: &str,- _cat: MemoryCategory,- _sid: Option<&str>,- ) -> anyhow::Result<()> {- Ok(())- }- async fn recall(- &self,- _q: &str,- _l: usize,- _o: RecallOpts<'_>,- ) -> anyhow::Result<Vec<MemoryEntry>> {- Ok(Vec::new())- }- async fn get(&self, _ns: &str, _key: &str) -> anyhow::Result<Option<MemoryEntry>> {- Ok(None)- }- async fn list(- &self,- _ns: Option<&str>,- _cat: Option<&MemoryCategory>,- _sid: Option<&str>,- ) -> anyhow::Result<Vec<MemoryEntry>> {- Ok(Vec::new())- }- async fn forget(&self, _ns: &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- }- fn name(&self) -> &str {- "noop"- }-}-fn text_response(text: impl Into<String>) -> ModelResponse {ModelResponse::assistant(text)}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rsindex 29edbd85d6..80541bd6ff 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/close_subagent_tests.rs@@ -1,3 +1,4 @@+use crate::memory::test_support::NoopMemory;use super::*;use crate::agent::harness::fork_context::ParentExecutionContext;use crate::agent::prompts::ToolCallFormat;@@ -132,60 +133,3 @@ fn parent_context(workspace_dir: &Path) -> ParentExecutionContext {}}-struct NoopMemory;--#[async_trait::async_trait]-impl Memory for NoopMemory {- fn name(&self) -> &str {- "noop"- }-- 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- }-}diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rsindex 245209947b..bb18f598c8 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_tests.rs@@ -1,3 +1,4 @@+use crate::memory::test_support::NoopMemory;use super::{ArchetypeDelegationTool, DelegationTarget, SpawnSubagentTool, SpawnWorkerThreadTool};use crate::agent::harness::definition::AgentDefinitionRegistry;use crate::agent::harness::{with_parent_context, ParentExecutionContext};@@ -501,60 +502,3 @@ fn flatten_messages(messages: &[Message]) -> String {.join("\n")}-struct NoopMemory;--#[async_trait]-impl Memory for NoopMemory {- async fn store(- &self,- _namespace: &str,- _key: &str,- _value: &str,- _category: MemoryCategory,- _source: 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>,- _source: 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- }-- fn name(&self) -> &str {- "noop"- }-}diff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rsindex 01ee5a32af..d43a3482ee 100644--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch_tests.rs@@ -13,6 +13,7 @@//! `use_skill`'s registration to `harness.register_tool(adapter)` reproduces//! that failure and is the fastest way to see these tests fail red.+use crate::memory::test_support::NoopMemory;use super::*;use crate::agent::harness::definition::AgentDefinitionRegistry;use crate::agent::harness::ParentExecutionContext;@@ -82,64 +83,6 @@ impl ChatModel<()> for AnyAnswerModel {#[allow(dead_code)]fn unused_message_ref(_m: &Message) {}-struct NoopMemory;--#[async_trait]-impl Memory for NoopMemory {- async fn store(- &self,- _namespace: &str,- _key: &str,- _value: &str,- _category: MemoryCategory,- _source: 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>,- _source: 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- }-- fn name(&self) -> &str {- "noop"- }-}-fn parent_execution_context(workspace_dir: &Path) -> ParentExecutionContext {ParentExecutionContext {workspace_descriptor: None,