tinyhumansai/openhuman · error
workflow fan-out: worker
Error message
workflow fan-out: worker {} failed: {err} What it means
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).
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
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/openhuman/agent/orchestration/workflow_runs/engine.rs:720 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/d1bf2d497a218dd3.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/orchestration/workflow_runs/engine.rs:720
config,
&run,
phase_states,
child_run_ids,
WorkflowRunStatus::Interrupted,
None,
false,
)?;
return Ok(PhaseExecOutcome::Terminated);
}
Err(err) => return Err(anyhow!("workflow fan-out failed: {err}")),
};
let mut outcomes = Vec::with_capacity(expected_outcomes);
for item in outcome.outcomes {
match item.result {
Ok(value) => outcomes.push(value),
Err(err) => {
return Err(anyhow!(
"workflow fan-out: worker {} failed: {err}",
item.index
));
}
}
}
if outcomes.len() != expected_outcomes {
return Err(anyhow!(
"workflow fan-out: expected {expected_outcomes} result(s), got {}",
outcomes.len()
));
}
// Aggregate worker outcomes in phase order: record every spawned
// child id, collect completed outputs, and surface the first failure.
for outcome in outcomes {
if let Some(oid) = outcome.orchestration_id {
spawned_this_phase += 1;View on GitHub (pinned to 7491200858)