Skip to content

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

test(orchestration): replace delegate_to_integrations_agent with research tool in tests

Steven Enamakel70618dbc5f45
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs
index 5b0bc37529..e3b77490f0 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs
@@ -36,14 +36,14 @@ fn build_scout_prompt_includes_request_focus_and_catalog() {
let prompt = AgentPrepareContextTool::build_scout_prompt(
"summarise my unread gmail",
Some("last 24h"),
- "- delegate_to_integrations_agent: route to a connected integration\n",
+ "- research: web and docs crawler\n",
);
assert!(prompt.contains("[Request]"));
assert!(prompt.contains("summarise my unread gmail"));
assert!(prompt.contains("[Focus]"));
assert!(prompt.contains("last 24h"));
assert!(prompt.contains("[Orchestrator tools]"));
- assert!(prompt.contains("delegate_to_integrations_agent"));
+ assert!(prompt.contains("research"));
assert!(prompt.contains("[context_bundle]"));
}
@@ -398,16 +398,13 @@ async fn catalog_lists_the_parents_synthesised_delegates_from_its_visible_specs(
],
vec![
catalog_spec("echo", "durable"),
- catalog_spec(
- "delegate_to_integrations_agent",
- "route to a connected integration",
- ),
+ catalog_spec("research", "web and docs crawler"),
catalog_spec("agent_prepare_context", "this tool"),
],
);
let catalog = AgentPrepareContextTool::render_parent_tool_catalog(Some(&ctx));
assert!(
- catalog.contains("- delegate_to_integrations_agent: route to a connected integration\n"),
+ catalog.contains("- research: web and docs crawler\n"),
"the parent's delegate must be recommendable: {catalog:?}"
);
assert!(catalog.contains("- echo: durable\n"));
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.rs
index 97031c47d9..fe40dd7e39 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
@@ -112,7 +112,6 @@ fn crypto_agent_has_narrow_wallet_market_tools_and_safety_on() {
"composio_list_tools",
"spawn_subagent",
"spawn_worker_thread",
- "delegate_to_integrations_agent",
// Synthesised delegation tools use the unprefixed
// `delegate_name` overrides — forbid those names too.
"run_code",
@@ -504,9 +503,8 @@ fn rejects_worker_with_subagents() {
#[test]
fn allows_skill_wildcards_on_any_non_worker_tier() {
- // Skills wildcards collapse to delegate_to_integrations_agent
- // and must not be policed by the tier check (it'd be a false
- // positive — they fan out to a worker anyway).
+ // Skills wildcards expand to searchable integration actions, not to
+ // an agent, so there is no tier pair for the check to police.
let mut defs = load_builtins().unwrap();
let planner = defs.iter_mut().find(|d| d.id == "planner").unwrap();
planner.subagents.push(SubagentEntry::Skills(
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
index b0b68fe35c..0b127693c9 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_adapter_tests.rs
@@ -400,7 +400,8 @@ fn availability_notes_are_status_not_instructions() {
);
assert!(note.contains("Do not tell the user to reconnect or restart"));
}
- assert!(notes[0].contains("delegate_to_integrations_agent") && notes[0].contains("gmail"));
+ assert!(notes[0].contains("tool_search") && notes[0].contains("gmail"));
+ assert!(!notes[0].contains("delegate_to_integrations_agent"));
assert!(notes[1].contains("use_mcp_server") && notes[1].contains("filesystem, github"));
assert!(notes[2].contains("run_skill") && notes[2].contains("deploy"));
assert!(integration_announcement_note(&[]).is_none());