{"record":{"id":"e977a6c20c308909","repo":"tinyhumansai/openhuman","slug":"spawn-teammate-worker-failed-e","errorCode":null,"errorMessage":"spawn teammate worker failed: {e}","messagePattern":"spawn teammate worker failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/orchestration/agent_teams/runtime.rs","lineNumber":286,"sourceCode":"            let run_id = run_id.clone();\n            async move {\n                let resp = session\n                    .spawn_agent(SpawnAgentRequest {\n                        agent_id,\n                        prompt,\n                        model,\n                        metadata: [\n                            (\"teamId\".to_string(), team_id),\n                            (\"memberId\".to_string(), member_id),\n                            (\"taskId\".to_string(), task_id),\n                            (\"teamRunId\".to_string(), run_id),\n                        ]\n                        .into_iter()\n                        .collect(),\n                        ..Default::default()\n                    })\n                    .await\n                    .map_err(|e| anyhow!(\"spawn teammate worker failed: {e}\"))?;\n\n                let wait = session\n                    .wait_agents(WaitAgentOptions {\n                        orchestration_ids: vec![resp.orchestration_id.clone()],\n                        timeout_ms: None,\n                    })\n                    .await\n                    .map_err(|e| anyhow!(\"wait teammate worker failed: {e}\"))?;\n\n                let snapshot = wait\n                    .agents\n                    .into_iter()\n                    .find(|a| a.orchestration_id == resp.orchestration_id)\n                    .ok_or_else(|| anyhow!(\"worker snapshot missing after wait\"))?;\n\n                Ok(match snapshot.status {\n                    AgentStatus::Completed => super::graph::MemberOutcome::Completed {\n                        output: snapshot.result_summary.unwrap_or_default(),","sourceCodeStart":268,"sourceCodeEnd":304,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/orchestration/agent_teams/runtime.rs#L268-L304","documentation":"session.spawn_agent failed while launching a teammate's worker sub-agent (SpawnAgentRequest with teamId/memberId/taskId/teamRunId metadata). The {e} is the tinyagents orchestration error — provider unreachable, agent definition missing, or harness failure at spawn. The team member's run cannot start, so this error propagates out of the member-run driver.","triggerScenarios":"Thrown at src/openhuman/agent/orchestration/agent_teams/runtime.rs:286 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the inner orchestration error to identify spawn-stage vs provider-stage failure","Verify the member's agent definition resolves and its model/provider are configured","Retry the member run once the underlying cause (provider outage, config) is fixed"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}