The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(agent): remove workflow run controllers and graph_topologies rpc
Steven Enamakel3c8698f34d09
diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rsindex 7ab5db9a29..5b53623324 100644--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs@@ -622,7 +622,7 @@ pub(crate) fn capability_diagnostics(project_descriptors(&mut registry,ComponentKind::Graph,- tinyagents_orchestration::topology::all_graph_topologies()+ host_graph_topologies().into_iter().map(|report| report.name),);@@ -671,6 +671,11 @@ pub(crate) fn capability_diagnostics(/// feature; delegation remains live for sub-agent orchestration.pub(crate) fn host_graph_topologies() -> Vec<tinyagents_graph::GraphTopologyReport> {tinyagents_orchestration::topology::all_graph_topologies()+ .into_iter()+ .filter(|report| {+ !report.name.starts_with("agent_teams:") && !report.name.starts_with("workflow_runs:")+ })+ .collect()}diff --git a/crates/openhuman-core/src/agent_runs/mod.rs b/crates/openhuman-core/src/agent_runs/mod.rsindex 224d12d72a..ae23072692 100644--- a/crates/openhuman-core/src/agent_runs/mod.rs+++ b/crates/openhuman-core/src/agent_runs/mod.rs@@ -6,7 +6,6 @@ pub(crate) mod replay;mod schemas;pub(crate) mod subagent_control;mod subagent_finalize;-pub(crate) mod workflow_runs;pub(crate) mod worktree_schemas;pub(crate) use command_center::{@@ -17,9 +16,6 @@ pub(crate) use subagent_control::{all_controller_schemas as all_subagent_control_controller_schemas,all_registered_controllers as all_subagent_control_registered_controllers,};-pub(crate) use workflow_runs::{- all_workflow_run_controller_schemas, all_workflow_run_registered_controllers,-};pub(crate) use worktree_schemas::{all_controller_schemas as all_worktree_controller_schemas,all_registered_controllers as all_worktree_registered_controllers,@@ -35,7 +31,6 @@ pub(crate) fn all_orchestration_registered_controllers() -> Vec<crate::core::all::RegisteredController> {let mut controllers = Vec::new();controllers.extend(all_command_center_registered_controllers());- controllers.extend(all_workflow_run_registered_controllers());controllers.extend(all_worktree_registered_controllers());controllers.extend(all_subagent_control_registered_controllers());controllers@@ -45,7 +40,6 @@ pub(crate) fn all_orchestration_registered_controllers(pub(crate) fn all_orchestration_controller_schemas() -> Vec<crate::core::ControllerSchema> {let mut schemas = Vec::new();schemas.extend(all_command_center_controller_schemas());- schemas.extend(all_workflow_run_controller_schemas());schemas.extend(all_worktree_controller_schemas());schemas.extend(all_subagent_control_controller_schemas());schemasdiff --git a/crates/openhuman-core/src/agent_runs/schemas.rs b/crates/openhuman-core/src/agent_runs/schemas.rsindex 7b6e4e2080..c92cfe33be 100644--- a/crates/openhuman-core/src/agent_runs/schemas.rs+++ b/crates/openhuman-core/src/agent_runs/schemas.rs@@ -37,7 +37,6 @@ pub fn all_controller_schemas() -> Vec<ControllerSchema> {schemas("get_definition"),schemas("reload_definitions"),schemas("triage_evaluate"),- schemas("graph_topologies"),schemas("registry_snapshot"),schemas("context_breakdown"),]@@ -73,10 +72,6 @@ pub fn all_registered_controllers() -> Vec<RegisteredController> {schema: schemas("triage_evaluate"),handler: handle_triage_evaluate,},- RegisteredController {- schema: schemas("graph_topologies"),- handler: handle_graph_topologies,- },RegisteredController {schema: schemas("registry_snapshot"),handler: handle_registry_snapshot,@@ -188,19 +183,6 @@ pub fn schemas(function: &str) -> ControllerSchema {],outputs: vec![json_output("result", "Triage evaluation result.")],},- "graph_topologies" => ControllerSchema {- namespace: "agent",- function: "graph_topologies",- description: "Export the structure-only topology (Mermaid + JSON + structural \- validation report) of every custom tinyagents orchestration graph \- for debugging and UI inspection. Structure only — node names, \- edges, and routing; never closure bodies or run state.",- inputs: vec![],- outputs: vec![json_output(- "graphs",- "Object containing graph topology reports and built-in agent graph resolutions.",- )],- },"registry_snapshot" => ControllerSchema {namespace: "agent",function: "registry_snapshot",@@ -478,44 +460,6 @@ fn handle_triage_evaluate(ctx: DispatchCtx, params: Map<String, Value>) -> Contr})}-fn handle_graph_topologies(_ctx: DispatchCtx, _params: Map<String, Value>) -> ControllerFuture {- Box::pin(async {- let reports = tinyagents_orchestration::topology::all_graph_topologies();- let agents = crate::agent_registry::agents::load_builtins()- .map_err(|e| format!("loading built-in agent graph resolutions: {e}"))?- .into_iter()- .map(|def| {- let graph = "default";- serde_json::json!({- "id": def.id,- "graph": graph,- })- })- .collect::<Vec<_>>();- tracing::debug!(- graphs = reports.len(),- agents = agents.len(),- "[rpc][agent] graph_topologies export"- );- let graphs: Vec<Value> = reports- .iter()- .map(|r| {- serde_json::json!({- "name": r.name,- "ok": r.ok,- "errors": r.errors,- "warnings": r.warnings,- "mermaid": r.mermaid,- // The topology JSON is embedded as structured JSON, not a string.- "topology": serde_json::from_str::<Value>(&r.json)- .unwrap_or(Value::Null),- })- })- .collect();- Ok(serde_json::json!({ "graphs": graphs, "agents": agents }))- })-}-/// Read-only projection of the tinyagents `CapabilityRegistry` inventory.////// The per-turn registry (`tinyagents::assemble_turn_harness`) owns live model@@ -532,8 +476,8 @@ fn handle_graph_topologies(_ctx: DispatchCtx, _params: Map<String, Value>) -> Co/// needs config/memory/audit/action-dir wiring that only exists inside a turn,/// so only the baseline set is projected here. Deferred — see `deferred` in/// the response and the migration follow-up.-/// * **Graph** — `tinyagents::all_graph_topologies()` (same source the turn-/// registers as `ComponentKind::Graph` descriptors).+/// * **Graph** — the surviving host graph descriptors registered as+/// `ComponentKind::Graph` components./// * **Agent** — the built-in agent archetypes/// (`agent_registry::agents::load_builtins()`); id + `when_to_use` blurb.///@@ -620,7 +564,7 @@ fn handle_registry_snapshot(ctx: DispatchCtx, _params: Map<String, Value>) -> Co}// ── Graphs: structure-only topology reports ─────────────────────────- let reports = tinyagents_orchestration::topology::all_graph_topologies();+ let reports = crate::agent::tinyagents::tool_registration::host_graph_topologies();let graph_count = reports.len();for report in &reports {let mut meta = ComponentMetadata::new(report.name, ComponentKind::Graph)diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rsindex 4cdf5470fa..df843526a9 100644--- a/crates/openhuman-core/src/core/all.rs+++ b/crates/openhuman-core/src/core/all.rs@@ -842,9 +842,6 @@ pub fn namespace_description(namespace: &str) -> Option<&'static str> {"agent_work" => Some("Background agent command center — recent agent runs grouped by status (needs-input, working, completed, failed, stopped).",),- "workflow_run" => Some(- "Durable dynamic workflow runs — declarative multi-agent definitions and the read surface over persisted runs.",- ),"tool_registry" => Some("Read-only discovery for MCP stdio tools and controller-backed tools, including routes, schemas, version, allowed agents, and health.",),