{"record":{"id":"25c35c6ff0648c67","repo":"tinyhumansai/openhuman","slug":"workflow-scheduler-graph-compile-failed-e","errorCode":null,"errorMessage":"workflow scheduler graph compile failed: {e}","messagePattern":"workflow scheduler graph compile failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/orchestration/workflow_runs/graph.rs","lineNumber":137,"sourceCode":"                        .with_goto([\"dispatch\"]),\n                )),\n                PhaseExecOutcome::Terminated => {\n                    Ok(NodeResult::Command(Command::default().with_goto([\"done\"])))\n                }\n            }\n        }\n    });\n\n    let graph = builder\n        .add_node(\"done\", |_s: SchedulerState, _c: NodeContext| async move {\n            Ok(NodeResult::Update(SchedulerUpdate::Noop))\n        })\n        .set_entry(\"dispatch\")\n        .mark_command_routing(\"dispatch\")\n        .mark_command_routing(\"run_phase\")\n        .set_finish(\"done\")\n        .compile()\n        .map_err(|e| anyhow!(\"workflow scheduler graph compile failed: {e}\"))?\n        // Bound the dispatch⇄run_phase cycle as a backstop to the DAG's own\n        // termination: `dispatch` is visited once per phase plus a final\n        // no-phase visit, `run_phase` once per phase. A validated DAG always\n        // drains, so this only guards a malformed definition.\n        .with_recursion_policy(RecursionPolicy {\n            max_visits_per_node: Some(phase_count + 2),\n            max_total_steps: (phase_count + 1) * 3 + 16,\n            ..RecursionPolicy::default()\n        });\n    Ok(graph)\n}\n\n/// Topologically walk the phase DAG on a `tinyagents` conditional-routing graph\n/// (issue #4249, Phase 4): a `dispatch` node selects the next runnable phase and\n/// a `run_phase` node executes it, looping `dispatch ⇄ run_phase` until no phase\n/// remains, then routing to `done`:\n///\n/// ```text","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/orchestration/workflow_runs/graph.rs#L119-L155","documentation":"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.","triggerScenarios":"Thrown at src/openhuman/agent/orchestration/workflow_runs/graph.rs:137 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","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"}