Skip to content

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

fix(agent-definition): correct wildcard subagent semantics

Steven Enamakelf139e59f5bad
diff --git a/crates/openhuman-core/src/agent/harness/definition/agent_definition.rs b/crates/openhuman-core/src/agent/harness/definition/agent_definition.rs
index d358074acb..317c1a5204 100644
--- a/crates/openhuman-core/src/agent/harness/definition/agent_definition.rs
+++ b/crates/openhuman-core/src/agent/harness/definition/agent_definition.rs
@@ -247,8 +247,8 @@ pub struct AgentDefinition {
/// * `Worker` MUST NOT list open-ended subagents. Workers execute;
/// they do not orchestrate. Pre-turn memory retrieval is configured
/// separately via [`AgentDefinition::trigger_memory_agent`].
- /// * `{ skills = "*" }` entries expand to the generic
- /// `integrations_agent` (a `Worker`) so they are always allowed.
+ /// * `{ skills = "*" }` entries admit no sub-agent, so they are always
+ /// allowed.
///
/// Combined with the harness's `MAX_SPAWN_DEPTH = 3` task-local
/// gate, this means any execution chain bottoms out within three
@@ -275,10 +275,8 @@ pub struct AgentDefinition {
impl AgentDefinition {
/// The agent ids this definition may spawn, derived from
/// [`AgentDefinition::subagents`]. Only [`SubagentEntry::AgentId`]
- /// entries admit a target; the `{ skills = "*" }` wildcard used to map to
- /// `integrations_agent` here, which is what let a chat agent spin up a
- /// sub-agent for one integration action it can now search for and call
- /// itself. The runner's spawn gate (`parent.allowed_subagent_ids`) reads
+ /// entries admit a target; the `{ skills = "*" }` wildcard admits none —
+ /// a chat agent searches for and calls an integration action itself. The runner's spawn gate (`parent.allowed_subagent_ids`) reads
/// this, so a definition without a bare id for an agent cannot reach it
/// through `spawn_async_subagent` either.
pub fn allowed_subagent_ids(&self) -> Vec<String> {