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(orchestration): re-export SteerError from its source crate
Steven Enamakel29bfebbc802d
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents.rsindex 1c11f492e1..e20dae163a 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents.rs@@ -65,16 +65,16 @@ mod tests;#[cfg(test)]pub(crate) use cancel::prune;#[cfg(test)]-pub(crate) use cancel::{CallerWorkspace, caller_workspace_in};+pub(crate) use cancel::{caller_workspace_in, CallerWorkspace};pub(crate) use cancel::{- CancelledSubagent, cancel_all, cancel_by_session_in_workspace, cancel_by_task,- cancel_for_thread, stop_for_thread,+ cancel_all, cancel_by_session_in_workspace, cancel_by_task, cancel_for_thread, stop_for_thread,+ CancelledSubagent,};-pub(crate) use registry::{RegistrationError, admit_spawn, register, status_channel};+pub(crate) use registry::{admit_spawn, register, status_channel, RegistrationError};pub(crate) use resolve::{resume_ref_for_task_in_workspace, task_id_for_session_in_workspace};pub(crate) use roster::active_subagents_context_block;+pub use steering::steer;pub(crate) use steering::steer_control;-pub use steering::{SteerError, steer};#[cfg(test)]pub(crate) use task_ledger::task_records;pub(crate) use task_ledger::{reconcile_orphaned_tasks_on_boot, task_record_for_task_in_workspace};diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rsindex c51dd49d5d..a696ed18d8 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs@@ -2,13 +2,11 @@use tinyagents_harness::ids::TaskId;use tinyagents_harness::run_queue::QueueLane;-use tinyagents_orchestration::subagent::{SteerAccess, steer_detached};+use tinyagents_orchestration::subagent::{steer_detached, SteerAccess, SteerError};use super::cancel::now_ms;use super::registry::{control_admits, owner_key, registry};-pub use tinyagents_orchestration::subagent::SteerError;-/// Inject an instruction into a detached sub-agent owned by `parent_session`.pub async fn steer(ctx: &crate::core::runtime::DispatchCtx,diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_cancel_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_cancel_tests.rsindex e8da5664db..375232e972 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_cancel_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_cancel_tests.rs@@ -1,6 +1,7 @@//! Cancelling and stopping registered sub-agents: by task, by thread, and all.use super::*;+use tinyagents_orchestration::subagent::SteerError;/// A finished run stays registered until the terminal sweep, so a late/// "Cancel" still finds it. It must come back flagged, so the RPC does notdiff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_steering_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_steering_tests.rsindex 7b8e5cc220..65a5a6c127 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_steering_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_steering_tests.rs@@ -1,4 +1,5 @@use super::*;+use tinyagents_orchestration::subagent::SteerError;#[tokio::test]async fn steer_pushes_into_the_subagent_queue() {diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rsindex 451b3da881..ce377c2693 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs@@ -1,4 +1,5 @@use super::*;+use tinyagents_orchestration::subagent::SteerError;use crate::core::runtime::DispatchCtx;use crate::core::runtime::{ContextOverlay, CoreContext, DomainSet, Mode};use crate::tools::toolpacks::ToolGroups;diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rsindex 7efa1c047b..da290b77d4 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs@@ -1,4 +1,5 @@use super::*;+use tinyagents_orchestration::subagent::SteerError;/// The context these tests dispatch under: the calling task's own.fn cx() -> crate::core::runtime::DispatchCtx {diff --git a/crates/openhuman-core/src/agent/orchestration/tools/steer_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/steer_subagent.rsindex b60a449906..57ca26f070 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/steer_subagent.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/steer_subagent.rs@@ -8,13 +8,14 @@//! without waiting for it to finish or restarting it. Mirrors Codex `send_input`.use crate::agent::harness::fork_context::ParentExecutionContext;-use crate::agent::orchestration::running_subagents::{self, SteerError};+use crate::agent::orchestration::running_subagents;use crate::tools::schema_cache::static_schema;use async_trait::async_trait;use std::sync::Arc;use tinyagents_harness::context::RunContext;use tinyagents_harness::run_queue::QueueLane;use tinyagents_harness::tool::{ToolDispatch, ToolExecutionContext};+use tinyagents_orchestration::subagent::SteerError;use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolResult};pub struct SteerSubagentTool;diff --git a/crates/openhuman-core/src/agent_registry/library/mod.rs b/crates/openhuman-core/src/agent_registry/library/mod.rsindex 51de0edfb1..9ed4e3fe98 100644--- a/crates/openhuman-core/src/agent_registry/library/mod.rs+++ b/crates/openhuman-core/src/agent_registry/library/mod.rs@@ -4,4 +4,4 @@ mod ops;mod types;pub use ops::{list_definition_metadata, metadata_from_definition};-pub use types::{AgentDefinitionDisplay, AgentDefinitionModel, AgentDefinitionSource};+pub use types::{AgentDefinitionDisplay, AgentDefinitionModel};diff --git a/crates/openhuman-core/src/agent_registry/library/ops.rs b/crates/openhuman-core/src/agent_registry/library/ops.rsindex 97886f66dd..aca42f466b 100644--- a/crates/openhuman-core/src/agent_registry/library/ops.rs+++ b/crates/openhuman-core/src/agent_registry/library/ops.rs@@ -2,7 +2,7 @@ use crate::agent_registry::host_definition::{AgentDefinition, AgentDefinitionReguse crate::core::runtime::DispatchCtx;use tinyagents_definition::{AgentTier, ModelSpec, SandboxMode, SubagentEntry, ToolScope};-use super::types::{AgentDefinitionDisplay, AgentDefinitionModel, AgentDefinitionSource};+use super::types::{AgentDefinitionDisplay, AgentDefinitionModel};pub async fn list_definition_metadata(ctx: &DispatchCtx,diff --git a/crates/openhuman-core/src/agent_registry/library/types.rs b/crates/openhuman-core/src/agent_registry/library/types.rsindex bf1f456e40..9b793177ba 100644--- a/crates/openhuman-core/src/agent_registry/library/types.rs+++ b/crates/openhuman-core/src/agent_registry/library/types.rs@@ -1,8 +1,6 @@use serde::{Deserialize, Serialize};-use tinyagents_definition::ToolScope;--pub use tinyagents_definition::DefinitionSource as AgentDefinitionSource;+use tinyagents_definition::{DefinitionSource, ToolScope};#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]pub struct AgentDefinitionModel {@@ -26,5 +24,5 @@ pub struct AgentDefinitionDisplay {pub includes_memory_context: bool,pub can_run_as_user_facing_worker: bool,pub write_capable: bool,- pub source: AgentDefinitionSource,+ pub source: DefinitionSource,}diff --git a/crates/openhuman-core/src/agent_runs/subagent_control.rs b/crates/openhuman-core/src/agent_runs/subagent_control.rsindex 94f13695ce..0b04504c88 100644--- a/crates/openhuman-core/src/agent_runs/subagent_control.rs+++ b/crates/openhuman-core/src/agent_runs/subagent_control.rs@@ -15,12 +15,13 @@//! cancelled.use crate::core::runtime::DispatchCtx;-use serde_json::{Map, Value, json};+use serde_json::{json, Map, Value};+use tinyagents_orchestration::subagent::SteerError;-use crate::agent::orchestration::running_subagents::{CancelledSubagent, SteerError};+use crate::agent::orchestration::running_subagents::CancelledSubagent;use crate::agent::orchestration::{background_completions, running_subagents, subagent_sessions};-use crate::core::Outcome;use crate::core::all::{ControllerFuture, RegisteredController};+use crate::core::Outcome;use crate::core::{ControllerSchema, FieldSchema, TypeSchema};use tinyagents_harness::run_queue::QueueLane;diff --git a/scripts/ci/saas-ambient-baseline.json b/scripts/ci/saas-ambient-baseline.jsonindex ad1a1c9d28..6c9dfffdc7 100644--- a/scripts/ci/saas-ambient-baseline.json+++ b/scripts/ci/saas-ambient-baseline.json@@ -48,20 +48,6 @@"text": "tokio::spawn(async move {","occurrence": 1},- {- "rule": "bare-spawn",- "path": "crates/openhuman-core/src/agent/session_host/tool_progress.rs",- "line": 239,- "text": "let forwarder = tokio::spawn(async move {",- "occurrence": 1- },- {- "rule": "ambient-config",- "path": "crates/openhuman-core/src/integrations/prelude_integrations.rs",- "line": 30,- "text": "None => match crate::config::Config::load_or_init().await {",- "occurrence": 1- },{"rule": "ambient-config","path": "crates/openhuman-core/src/storage/import/schemas.rs",