{"record":{"id":"71793d277f7170cb","repo":"tinyhumansai/openhuman","slug":"workflow-fan-out-failed-err","errorCode":null,"errorMessage":"workflow fan-out failed: {err}","messagePattern":"workflow fan-out failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/orchestration/workflow_runs/engine.rs","lineNumber":712,"sourceCode":"            Err(TinyAgentsError::Cancelled) => {\n                log::debug!(\n                    target: LOG_TARGET,\n                    \"[workflow_run_engine] phase.cancelled_by_sdk run={run_id} phase={}\",\n                    phase.name\n                );\n                session.abort_all().await;\n                persist(\n                    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()","sourceCodeStart":694,"sourceCodeEnd":730,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/orchestration/workflow_runs/engine.rs#L694-L730","documentation":"The phase's fan-out call to the orchestration session (spawning/waiting the phase's workers in bulk) failed with a non-Cancelled tinyagents error. Unlike TinyAgentsError::Cancelled (which maps to a graceful Interrupted persistence), any other fan-out error aborts the whole run with this wrap. Causes: spawn failures, harness errors, provider-level failures during worker orchestration.","triggerScenarios":"Thrown at src/openhuman/agent/orchestration/workflow_runs/engine.rs:712 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the inner {err} to find whether spawn, wait, or the harness itself failed","Fix the underlying cause (agent definitions, provider config, session state) and re-run/resume the workflow","For transient provider failures, resume_workflow_run restarts from the first incomplete phase"],"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"}