Skip to content

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

fix(orchestration): restore subagent delegation tools

Steven Enamakel98bec5b84e6c
diff --git a/crates/openhuman-core/src/agent/orchestration/tools.rs b/crates/openhuman-core/src/agent/orchestration/tools.rs
index 589bc3dba0..67b81f2222 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools.rs
@@ -16,23 +16,23 @@
//! Execution crosses the shared TinyAgents Jobs/Message and subagent driver
//! ports while this module retains product-specific policies and envelopes.
-#[path = "tools/archetype_delegation.rs"]
+#[path = "tools/archetype_delegation_host.rs"]
mod archetype_delegation;
#[path = "tools/awaiting_user.rs"]
pub(crate) mod awaiting_user;
-#[path = "tools/collapsed_delegation.rs"]
+#[path = "tools/collapsed_delegation_host.rs"]
mod collapsed_delegation;
-#[path = "tools/continue_subagent.rs"]
+#[path = "tools/continue_subagent_host.rs"]
mod continue_subagent;
#[path = "tools/delegate_graph.rs"]
mod delegate_graph;
-#[path = "tools/dispatch.rs"]
+#[path = "tools/subagent_dispatch_host.rs"]
mod dispatch;
-#[path = "tools/spawn_async_subagent.rs"]
+#[path = "tools/spawn_async_subagent_surface.rs"]
mod spawn_async_subagent;
#[path = "tools/spawn_parallel_agents.rs"]
mod spawn_parallel_agents;
-#[path = "tools/spawn_subagent.rs"]
+#[path = "tools/spawn_subagent_surface.rs"]
mod spawn_subagent;
#[path = "tools/subagent_abort_report.rs"]
mod subagent_abort_report;
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation.rs b/crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation_host.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/archetype_delegation_host.rs
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/collapsed_delegation.rs b/crates/openhuman-core/src/agent/orchestration/tools/collapsed_delegation_host.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/orchestration/tools/collapsed_delegation.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/collapsed_delegation_host.rs
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/continue_subagent_host.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/orchestration/tools/continue_subagent.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/continue_subagent_host.rs
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_host_impl.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_host_impl.rs
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_results.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_projection.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_results.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_projection.rs
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_args.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_request.rs
similarity index 96%
rename from crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_args.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_request.rs
index 0f37485775..39782fc938 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_args.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_request.rs
@@ -1,7 +1,7 @@
// Argument decoding for `spawn_async_subagent`.
//
// Textually included into `spawn_async_subagent.rs` beside
-// `spawn_async_subagent_execute.rs`, so it shares that module's imports. Split
+// `spawn_async_subagent_host_impl.rs`, so it shares that module's imports. Split
// out because the execute fragment had grown to 847 lines against the layout
// gate's pin, and this prologue is the one phase of that function that is a
// pure function of `args` — every other phase closes over the run context, the
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs
similarity index 99%
rename from crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs
index 2549eda279..e5cd58fd72 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs
@@ -366,9 +366,9 @@ impl SpawnAsyncSubagentTool {
}
}
-include!("spawn_async_subagent_execute.rs");
-include!("spawn_async_subagent_args.rs");
-include!("spawn_async_subagent_results.rs");
+include!("spawn_async_subagent_host_impl.rs");
+include!("spawn_async_subagent_request.rs");
+include!("spawn_async_subagent_projection.rs");
/// Settle a late registration refusal before an accepted response is built.
#[cfg(test)]
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tool_impl.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_host_impl.rs
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_parameters.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_schema.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_parameters.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_schema.rs
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs
similarity index 98%
rename from crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs
index 35f0f4d281..a8bcbd8253 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_surface.rs
@@ -107,8 +107,8 @@ impl SpawnSubagentTool {
}
}
-include!("spawn_subagent_tool_impl.rs");
-include!("spawn_subagent_parameters.rs");
+include!("spawn_subagent_host_impl.rs");
+include!("spawn_subagent_schema.rs");
/// Trim a raw prompt down to a thread-list-friendly title.
///
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/dispatch.rs b/crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs
similarity index 100%
rename from crates/openhuman-core/src/agent/orchestration/tools/dispatch.rs
rename to crates/openhuman-core/src/agent/orchestration/tools/subagent_dispatch_host.rs