Skip to content

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

test(orchestration): remove obsolete skill delegation e2e test

Steven Enamakel6b1a1a70f64c
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.rs
index 057bb51604..950caec63a 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,7 +1,4 @@
-use super::{
- ArchetypeDelegationTool, DelegationTarget, SkillDelegationTool, SpawnSubagentTool,
- SpawnWorkerThreadTool,
-};
+use super::{ArchetypeDelegationTool, DelegationTarget, SpawnSubagentTool, SpawnWorkerThreadTool};
use crate::agent::harness::definition::AgentDefinitionRegistry;
use crate::agent::harness::{with_parent_context, ParentExecutionContext};
use crate::agent::messages::ChatMessage;
@@ -348,63 +345,6 @@ async fn continue_subagent_without_checkpoint_or_durable_session_names_the_roste
);
}
-#[tokio::test]
-async fn skill_delegation_tool_runs_integrations_agent_e2e() {
- let _ = AgentDefinitionRegistry::init_global_builtins();
- let workspace = tempfile::TempDir::new().expect("workspace");
- let provider = Arc::new(ScriptedModel::new(vec![(
- SKILL_DELEGATION_CANARY,
- "skill-delegation-child-answer",
- )]));
- let tool = SkillDelegationTool::for_connected(vec![(
- "gmail".to_string(),
- "Email access.".to_string(),
- )])
- .expect("delegation tool");
-
- let result = with_parent_context(
- parent_context(
- workspace.path(),
- provider.clone(),
- vec![ConnectedIntegration {
- toolkit: "gmail".to_string(),
- description: "Email access.".to_string(),
- tools: Vec::new(),
- gated_tools: Vec::new(),
- connected: true,
- connections: Vec::new(),
- non_active_status: None,
- }],
- ),
- async {
- tool.execute(json!({
- "toolkit": "gmail",
- "prompt": format!("Summarize inbox state for {SKILL_DELEGATION_CANARY}"),
- "model": "test-model"
- }))
- .await
- },
- )
- .await
- .expect("tool execution");
-
- assert!(!result.is_error, "{}", result.output());
- // The sub-agent's answer comes back verbatim, followed by the
- // inline-result note: this delegation is blocking and registers no
- // worker, so the orchestrator must not go hunting for one (#6033).
- let output = result.output();
- assert!(
- output.starts_with("skill-delegation-child-answer"),
- "the child's answer must lead the result: {output}"
- );
- assert!(
- output.contains("[INLINE_RESULT]") && output.contains("no sub-agent worker"),
- "a blocking delegation must say its result is inline: {output}"
- );
- assert!(provider.saw(SKILL_DELEGATION_CANARY));
- assert!(provider.saw("gmail"));
-}
-
#[tokio::test]
async fn spawn_worker_thread_tool_persists_worker_thread_e2e() {
let _ = AgentDefinitionRegistry::init_global_builtins();