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
test(tools): remove delegate related tests and update source registrations
Steven Enamakelf9f4d9d7d309
diff --git a/crates/openhuman-core/src/tools/ops_tests.rs b/crates/openhuman-core/src/tools/ops_tests.rsindex 378a00fa33..af6327e419 100644--- a/crates/openhuman-core/src/tools/ops_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests.rs@@ -309,7 +309,6 @@ const DESKTOP_ALWAYS_ON: &[&str] = &[const REPRESENTATIVE: &[(&str, crate::core::all::DomainGroup)] = {use crate::core::all::DomainGroup as G;&[- ("delegate", G::Agent),("memory", G::Memory),("goal_get", G::Threads),("mcp_list_servers", G::Mcp),diff --git a/crates/openhuman-core/src/tools/ops_tests_execution_and_serde_tests.rs b/crates/openhuman-core/src/tools/ops_tests_execution_and_serde_tests.rsindex 4eaa4950fe..23a323e910 100644--- a/crates/openhuman-core/src/tools/ops_tests_execution_and_serde_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_execution_and_serde_tests.rs@@ -1,5 +1,4 @@use super::*;-use crate::config::DelegateAgentConfig;use crate::tools::ops::default_tools;#[test]@@ -104,63 +103,6 @@ fn default_tools_all_have_schemas() {}}-#[test]-fn all_tools_includes_delegate_when_agents_configured() {- let tmp = TempDir::new().unwrap();- let security = Arc::new(SecurityPolicy::default());-- let browser = BrowserConfig::default();- let http = crate::config::HttpRequestConfig::default();- let cfg = test_config(&tmp);-- let mut agents = HashMap::new();- agents.insert(- "researcher".to_string(),- DelegateAgentConfig {- model: "llama3".to_string(),- system_prompt: None,- temperature: None,- max_depth: 3,- },- );-- let tools = all_tools(- Arc::new(Config::default()),- &security,- AuditLogger::disabled(),- &browser,- &http,- tmp.path(),- &agents,- &cfg,- );- let names: Vec<&str> = tools.iter().map(|t| t.name()).collect();- assert!(names.contains(&"delegate"));-}--#[test]-fn all_tools_excludes_delegate_when_no_agents() {- let tmp = TempDir::new().unwrap();- let security = Arc::new(SecurityPolicy::default());-- let browser = BrowserConfig::default();- let http = crate::config::HttpRequestConfig::default();- let cfg = test_config(&tmp);-- let tools = all_tools(- Arc::new(Config::default()),- &security,- AuditLogger::disabled(),- &browser,- &http,- tmp.path(),- &HashMap::new(),- &cfg,- );- let names: Vec<&str> = tools.iter().map(|t| t.name()).collect();- assert!(!names.contains(&"delegate"));-}-#[test]fn all_tools_registers_no_hosted_integration_families_without_a_tool_source() {let tmp = TempDir::new().unwrap();diff --git a/crates/openhuman-core/src/tools/sources_tests.rs b/crates/openhuman-core/src/tools/sources_tests.rsindex 0fa3bf8904..2294d3b1ca 100644--- a/crates/openhuman-core/src/tools/sources_tests.rs+++ b/crates/openhuman-core/src/tools/sources_tests.rs@@ -141,9 +141,9 @@ fn anchored_sources_sit_where_the_catalogue_always_listed_them() {move |_| anchor_tools(&["anchor_fake_search_b"]),);register_tool_source_at(- "test::after_delegate",- ToolSourcePlacement::After(ANCHOR_AFTER_DELEGATE),- move |_| anchor_tools(&["anchor_fake_delegate"]),+ "test::after_search_extra",+ ToolSourcePlacement::After(ANCHOR_AFTER_SEARCH),+ move |_| anchor_tools(&["anchor_fake_search_extra"]),);register_tool_source("test::end", |_| vec![Box::new(FakeTool("anchor_fake_end"))]);register_tool_source_at(@@ -155,7 +155,7 @@ fn anchored_sources_sit_where_the_catalogue_always_listed_them() {for id in ["test::after_search_a","test::after_search_b",- "test::after_delegate",+ "test::after_search_extra","test::end","test::unknown_anchor",] {@@ -176,8 +176,8 @@ fn anchored_sources_sit_where_the_catalogue_always_listed_them() {assert!(pos("anchor_fake_search_b") < pos("image_info"));// End sources, and sources with an unknown anchor, trail every built-in// and keep registration order.- assert!(pos("image_info") < pos("anchor_fake_delegate"));- assert!(pos("anchor_fake_delegate") < pos("anchor_fake_end"));+ assert!(pos("image_info") < pos("anchor_fake_search_extra"));+ assert!(pos("anchor_fake_search_extra") < pos("anchor_fake_end"));assert!(pos("anchor_fake_end") < pos("anchor_fake_unknown"));// Sibling tests register sources on the same process-wide slot, so only// relative positions are asserted, never the total length.