tinyhumansai/openhuman · error
agent_id ' ' not found
Error message
agent_id '{}' not found What it means
The agent_id supplied to spawn_worker_thread resolves to no entry in the AgentDefinitionRegistry — the requested worker agent does not exist in this build/config. The registry holds builtin and configured agents; the faulting input is the agent_id string (typo, removed agent, or an agent compiled out by a feature gate — e.g. a gated builtin agent referenced by an ungated orchestrator TOML).
Solutions
- List available agent definitions and correct the agent_id
- If a builtin agent is expected, verify its feature gate is enabled in this build
- Update the referencing config/TOML if the agent was renamed or removed
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/agent/orchestration/tools/spawn_worker_thread.rs:194 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/c9539f989869a7e7.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/orchestration/tools/spawn_worker_thread.rs:194
if is_delegated_label || current_thread.parent_thread_id.is_some() {
tracing::warn!(
agent_id = %agent_id,
current_thread_id = %current_thread_id,
is_delegated_label,
has_parent_thread_id = current_thread.parent_thread_id.is_some(),
elapsed_ms = started.elapsed().as_millis() as u64,
"[spawn_worker_thread] depth guard blocked spawn from worker thread"
);
return Ok(ToolResult::error("Worker threads cannot spawn other worker threads. Depth is capped at 1. Use spawn_subagent for inline delegation instead."));
}
}
let registry = AgentDefinitionRegistry::global()
.ok_or_else(|| anyhow::anyhow!("AgentDefinitionRegistry not initialised"))?;
let definition = registry
.get(&agent_id)
.ok_or_else(|| anyhow::anyhow!("agent_id '{}' not found", agent_id))?;
if !parent.allowed_subagent_ids.contains(&definition.id) {
tracing::warn!(
parent_agent = %parent.agent_definition_id,
requested_agent = %definition.id,
allowed = ?parent.allowed_subagent_ids,
"[spawn_worker_thread] blocked subagent outside parent allowlist"
);
return Ok(ToolResult::error(format!(
"spawn_worker_thread: agent '{}' is not in parent agent '{}' subagents.allowlist",
definition.id, parent.agent_definition_id
)));
}
tracing::debug!(
parent_agent = %parent.agent_definition_id,
requested_agent = %definition.id,
"[spawn_worker_thread] subagent allowlist check passed"View on GitHub (pinned to 7491200858)