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
feat(orchestration): replace AgentStatus with OrchestrationTaskStatus
Steven Enamakelc16abdf87abf
diff --git a/src/openhuman/agent/orchestration/agent_teams/runtime.rs b/src/openhuman/agent/orchestration/agent_teams/runtime.rsindex 7fe8a27bbd..4ceb3e6c39 100644--- a/src/openhuman/agent/orchestration/agent_teams/runtime.rs+++ b/src/openhuman/agent/orchestration/agent_teams/runtime.rs@@ -23,8 +23,7 @@//! worker's prompt **at spawn** (a well-defined boundary), and are always//! visible in the team timeline. Mid-turn injection into an already-running//! harness loop is intentionally **not** supported — the orchestration layer has-//! no live inbox (`AgentOrchestrationSession::message_agent` records metadata-//! only). Boundary delivery satisfies the issue's "see the message in the team+//! no live inbox. Boundary delivery satisfies the issue's "see the message in the team//! timeline or worker thread" criterion via both paths; a live inbox would be a//! separate orchestration-layer change.@@ -33,7 +32,7 @@ use serde_json::json;use crate::openhuman::agent::orchestration::parent_context::with_root_parent;use crate::openhuman::agent::orchestration::{- AgentOrchestrationSession, AgentStatus, SpawnAgentRequest, WaitAgentOptions,+ AgentOrchestrationSession, OrchestrationTaskStatus, SpawnAgentRequest, WaitAgentOptions,};use crate::openhuman::config::Config;use tinyagents::session::run_ledger::{@@ -300,10 +299,14 @@ async fn drive_member(.ok_or_else(|| anyhow!("worker snapshot missing after wait"))?;Ok(match snapshot.status {- AgentStatus::Completed => super::graph::MemberOutcome::Completed {+ OrchestrationTaskStatus::Completed => super::graph::MemberOutcome::Completed {output: snapshot.result_summary.unwrap_or_default(),},- AgentStatus::Failed | AgentStatus::Cancelled | AgentStatus::Closed => {+ OrchestrationTaskStatus::Failed+ | OrchestrationTaskStatus::Cancelled+ | OrchestrationTaskStatus::CancelRequested+ | OrchestrationTaskStatus::TimedOut+ | OrchestrationTaskStatus::Abandoned => {super::graph::MemberOutcome::Failed {reason: snapshot.errordiff --git a/src/openhuman/agent/orchestration/mod.rs b/src/openhuman/agent/orchestration/mod.rsindex 41863daef4..c3caab5f7f 100644--- a/src/openhuman/agent/orchestration/mod.rs+++ b/src/openhuman/agent/orchestration/mod.rs@@ -54,8 +54,8 @@ pub use subagent_control::{all_registered_controllers as all_subagent_control_registered_controllers,};pub use types::{- AgentSnapshot, AgentStatus, SpawnAgentRequest, SpawnAgentResponse, WaitAgentOptions,- WaitAgentResponse,+ AgentSnapshot, OrchestrationTaskStatus, SpawnAgentRequest, SpawnAgentResponse,+ WaitAgentOptions, WaitAgentResponse,};pub use workflow_runs::{all_workflow_run_controller_schemas, all_workflow_run_registered_controllers,diff --git a/src/openhuman/agent/orchestration/workflow_runs/engine.rs b/src/openhuman/agent/orchestration/workflow_runs/engine.rsindex 5edb4b1559..1d9a7dec4e 100644--- a/src/openhuman/agent/orchestration/workflow_runs/engine.rs+++ b/src/openhuman/agent/orchestration/workflow_runs/engine.rs@@ -507,7 +507,7 @@ pub(super) async fn execute_phase(total_spawned: u32,) -> Result<PhaseExecOutcome> {use crate::openhuman::agent::orchestration::{- AgentStatus, SpawnAgentRequest, WaitAgentOptions,+ OrchestrationTaskStatus, SpawnAgentRequest, WaitAgentOptions,};// Reload so the phase state we mutate + persist is the latest projection.@@ -644,7 +644,7 @@ pub(super) async fn execute_phase(};Ok(match wait.agents.into_iter().next() {Some(s) => match s.status {- AgentStatus::Completed => PhaseWorkerOutcome {+ OrchestrationTaskStatus::Completed => PhaseWorkerOutcome {orchestration_id: Some(oid),output: Some(json!({"orchestrationId": s.orchestration_id,@@ -653,7 +653,11 @@ pub(super) async fn execute_phase(})),error: None,},- AgentStatus::Failed | AgentStatus::Cancelled | AgentStatus::Closed => {+ OrchestrationTaskStatus::Failed+ | OrchestrationTaskStatus::Cancelled+ | OrchestrationTaskStatus::CancelRequested+ | OrchestrationTaskStatus::TimedOut+ | OrchestrationTaskStatus::Abandoned => {PhaseWorkerOutcome {orchestration_id: Some(oid),output: None,@@ -669,7 +673,9 @@ pub(super) async fn execute_phase()),}}- AgentStatus::Pending | AgentStatus::Running | AgentStatus::Waiting => {+ OrchestrationTaskStatus::Pending+ | OrchestrationTaskStatus::Running+ | OrchestrationTaskStatus::Awaiting => {PhaseWorkerOutcome {orchestration_id: Some(oid),output: None,