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: files changed crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_
Steven Enamakel18cb24d0642b
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rsindex f311d7c987..4825effdcf 100644--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs@@ -276,3 +276,45 @@ fn allows_skill_wildcards_on_any_non_worker_tier() {));validate_tier_hierarchy(&defs).expect("skill wildcards on reasoning tier must validate");}++/// The orchestrator defers its rarely-used or duplicate-route tools for itself+/// only (`deferred_tools`): they stay registered, searchable through+/// `tool_search` and callable by name, while other agents that name them keep+/// them advertised. The belt must opt into discovery for the list to apply.+#[test]+fn orchestrator_defers_its_duplicate_route_tools() {+ let def = find("orchestrator");+ let mut deferred = def.deferred_tools.clone();+ deferred.sort();+ assert_eq!(+ deferred,+ vec![+ "composio_list_toolkits",+ "current_time",+ "file_read",+ "file_write",+ "http_request",+ "mcp_registry_connect",+ "mcp_registry_list_tools",+ "mcp_registry_status",+ "mcp_registry_tool_call",+ ]+ );+ match &def.tools {+ crate::agent::harness::definition::ToolScope::Named(named) => {+ assert!(+ named.iter().any(|name| name == "tool_search"),+ "`deferred_tools` only applies to a belt that opted into discovery"+ );+ for name in &def.deferred_tools {+ assert!(+ named.contains(name),+ "`{name}` is deferred but not on the belt, so deferring it does nothing"+ );+ }+ }+ crate::agent::harness::definition::ToolScope::Wildcard => {+ panic!("the orchestrator keeps a named belt")+ }+ }+}diff --git a/crates/openhuman-core/src/agent/tinyagents/discovery/discovery_tests.rs b/crates/openhuman-core/src/agent/tinyagents/discovery/discovery_tests.rsindex effa922a89..5e391cc26f 100644--- a/crates/openhuman-core/src/agent/tinyagents/discovery/discovery_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/discovery/discovery_tests.rs@@ -128,3 +128,15 @@ fn bridge_prompt_tools_are_empty_without_a_deferred_catalogue() {let _g = guard();assert!(bridge_prompt_tools(0).is_empty());}++/// The live policy carries no per-tool manifest on any dialect: the harness+/// default (4,000 tokens) listed every deferred tool in `tool_search`'s+/// description on every native request, ~3.9k tokens on a workspace with a+/// few integrations connected.+#[test]+fn discovery_policy_renders_no_manifest() {+ let _g = guard();+ clear_tool_ranker();+ apply_tool_search_config(&ToolSearchConfig::default());+ assert_eq!(discovery_policy().manifest_token_budget, 0);+}