{"record":{"id":"69eb882dcf333dfb","repo":"tinyhumansai/openhuman","slug":"member-graph-compile-failed-e","errorCode":null,"errorMessage":"member graph compile failed: {e}","messagePattern":"member graph compile failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/orchestration/agent_teams/graph.rs","lineNumber":185,"sourceCode":"        async move {\n            on_failed(s.payload.unwrap_or_default())\n                .await\n                .map_err(graph_err)?;\n            Ok(NodeResult::Update(MemberUpdate::Noop))\n        }\n    });\n\n    let graph = builder\n        .add_node(\"done\", |_s: MemberState, _c: NodeContext| async move {\n            Ok(NodeResult::Update(MemberUpdate::Noop))\n        })\n        .add_edge(\"complete\", \"done\")\n        .add_edge(\"fail\", \"done\")\n        .set_entry(\"execute\")\n        .mark_command_routing(\"execute\")\n        .set_finish(\"done\")\n        .compile()\n        .map_err(|e| anyhow::anyhow!(\"member graph compile failed: {e}\"))?;\n    Ok(graph)\n}\n\n/// Structure-only [`GraphTopology`] of the member-execution graph for debug /\n/// inspection (issue #4249, Phase 4). Built with no-op stub closures — the\n/// topology exposes only node names, edges, and routing, never closure bodies.\npub(crate) fn member_graph_topology() -> anyhow::Result<GraphTopology> {\n    let graph = build_member_graph(\n        || async {\n            Ok(MemberOutcome::Completed {\n                output: String::new(),\n            })\n        },\n        |_: String| async { Ok(()) },\n        |_: String| async { Ok(()) },\n    )?;\n    Ok(graph.topology())\n}","sourceCodeStart":167,"sourceCodeEnd":203,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/orchestration/agent_teams/graph.rs#L167-L203","documentation":"Compiling the tinyagents member-execution graph failed at builder.compile() — a structural error in the graph definition itself (e.g. a node referenced by an edge was never added, entry/finish not marked, or command routing points at a nonexistent node). This is a programming/config error in the member graph topology, not a runtime failure of the member's work.","triggerScenarios":"Thrown at src/openhuman/agent/orchestration/agent_teams/graph.rs:185 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the graph construction just above (add_node/add_edge/set_entry/set_finish/mark_command_routing) for inconsistencies with the compile error's detail","Ensure every edge target ('complete','fail','done') has a corresponding add_node","Add a unit test that compiles the member graph so topology regressions fail at build time"],"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-14T00:17:10.932Z"}