tinyhumansai/openhuman · error
workflow scheduler graph compile failed
Error message
workflow scheduler graph compile failed: {e} What it means
Compiling the workflow scheduler's tinyagents graph (dispatch → run_phase → done, with command routing on both) failed. A structural error in the scheduler graph topology — invalid edges/entry/finish or command-routing references — i.e. a code-level defect in build_scheduler_graph, not a runtime workflow failure.
Solutions
- Inspect the compile error detail and the builder calls in build_scheduler_graph for topology mismatches
- Add a compile smoke test for the scheduler graph (structure-only topology tests exist alongside)
- Fix the node/edge/routing declarations and redeploy
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/agent/orchestration/workflow_runs/graph.rs:137 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/25c35c6ff0648c67.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/orchestration/workflow_runs/graph.rs:137
.with_goto(["dispatch"]),
)),
PhaseExecOutcome::Terminated => {
Ok(NodeResult::Command(Command::default().with_goto(["done"])))
}
}
}
});
let graph = builder
.add_node("done", |_s: SchedulerState, _c: NodeContext| async move {
Ok(NodeResult::Update(SchedulerUpdate::Noop))
})
.set_entry("dispatch")
.mark_command_routing("dispatch")
.mark_command_routing("run_phase")
.set_finish("done")
.compile()
.map_err(|e| anyhow!("workflow scheduler graph compile failed: {e}"))?
// Bound the dispatch⇄run_phase cycle as a backstop to the DAG's own
// termination: `dispatch` is visited once per phase plus a final
// no-phase visit, `run_phase` once per phase. A validated DAG always
// drains, so this only guards a malformed definition.
.with_recursion_policy(RecursionPolicy {
max_visits_per_node: Some(phase_count + 2),
max_total_steps: (phase_count + 1) * 3 + 16,
..RecursionPolicy::default()
});
Ok(graph)
}
/// Topologically walk the phase DAG on a `tinyagents` conditional-routing graph
/// (issue #4249, Phase 4): a `dispatch` node selects the next runnable phase and
/// a `run_phase` node executes it, looping `dispatch ⇄ run_phase` until no phase
/// remains, then routing to `done`:
///
/// ```textView on GitHub (pinned to 7491200858)