{"record":{"id":"d1bf2d497a218dd3","repo":"tinyhumansai/openhuman","slug":"workflow-fan-out-worker-failed-err","errorCode":null,"errorMessage":"workflow fan-out: worker {} failed: {err}","messagePattern":"workflow fan-out: worker (.+?) failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/orchestration/workflow_runs/engine.rs","lineNumber":720,"sourceCode":"                    config,\n                    &run,\n                    phase_states,\n                    child_run_ids,\n                    WorkflowRunStatus::Interrupted,\n                    None,\n                    false,\n                )?;\n                return Ok(PhaseExecOutcome::Terminated);\n            }\n            Err(err) => return Err(anyhow!(\"workflow fan-out failed: {err}\")),\n        };\n\n        let mut outcomes = Vec::with_capacity(expected_outcomes);\n        for item in outcome.outcomes {\n            match item.result {\n                Ok(value) => outcomes.push(value),\n                Err(err) => {\n                    return Err(anyhow!(\n                        \"workflow fan-out: worker {} failed: {err}\",\n                        item.index\n                    ));\n                }\n            }\n        }\n        if outcomes.len() != expected_outcomes {\n            return Err(anyhow!(\n                \"workflow fan-out: expected {expected_outcomes} result(s), got {}\",\n                outcomes.len()\n            ));\n        }\n\n        // Aggregate worker outcomes in phase order: record every spawned\n        // child id, collect completed outputs, and surface the first failure.\n        for outcome in outcomes {\n            if let Some(oid) = outcome.orchestration_id {\n                spawned_this_phase += 1;","sourceCodeStart":702,"sourceCodeEnd":738,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/orchestration/workflow_runs/engine.rs#L702-L738","documentation":"Fan-out completed, but one worker in the phase returned an Err result for its assigned task (identified by item.index). The phase fails as a whole — workflow phases are all-or-nothing over their fan-out set. The {err} is that specific worker's failure (its agent turn errored: provider failure, tool failure past limits, or harness error).","triggerScenarios":"Thrown at src/openhuman/agent/orchestration/workflow_runs/engine.rs:720 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the failing worker's run records/logs (the index maps to the phase's worker list)","Fix the worker's failure cause (prompt, tools, provider) and resume the run — completed phases are skipped","Make the worker's task more robust (retryable tools, clearer instructions) if it fails nondeterministically"],"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-23T08:17:48.524Z"}