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
chore: files changed crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_test
Steven Enamakelea55e727bb0b
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rsindex bd15cfd49b..3f52fc6af2 100644--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs@@ -326,4 +326,3 @@ async fn cancelling_a_paused_driver_through_rpc_settles_once_with_its_reason() {forget_workspace_for_test(workspace.path());assert!(!parent_cancellation.is_cancelled());}-diff --git a/crates/openhuman-core/src/agent/registration.rs b/crates/openhuman-core/src/agent/registration.rsindex f09b2a58d0..e49744e103 100644--- a/crates/openhuman-core/src/agent/registration.rs+++ b/crates/openhuman-core/src/agent/registration.rs@@ -1,8 +1,8 @@//! Registration of agent dialogue and delegation tools.use super::orchestration::tools::{- CloseSubagentTool, ContinueSubagentTool, ListSubagentsTool,- SpawnAsyncSubagentTool, SpawnSubagentTool, SteerSubagentTool, WaitSubagentTool,+ CloseSubagentTool, ContinueSubagentTool, ListSubagentsTool, SpawnAsyncSubagentTool,+ SpawnSubagentTool, SteerSubagentTool, WaitSubagentTool,};use super::tools::{PlanExitTool, TodoTool};use crate::config::Config;diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rsindex e62de11c32..7c2bfc6a05 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs@@ -184,47 +184,46 @@ impl SubagentExecutor<crate::agent::tinyagents::host::OpenHumanRunContext> for O.map(Message::text).unwrap_or_default();let definition = invocation;- let native = crate::agent::tinyagents::NativeSubagentRunContext {- depth: native_run_config.lineage.depth,- config: native_run_config,- parent_events,- child_events: std::sync::Arc::default(),- child_journal: std::sync::Arc::default(),- name: definition.id.clone(),- };- let run = Box::pin(- crate::agent::subagent_host::ops::run_subagent_direct_with_native_context(- &definition,- &input,- options.clone(),- native,- ),- );- let result = match dispatch.into_core() {- Some(core) => {- crate::core::runtime::CoreContext::scope_with_turn_origin(core, origin, run)- .await- }- None => run.await,- };- match result {- Ok(outcome) => {- self.host_outcome- .lock()- .unwrap_or_else(|p| p.into_inner())- .insert(task_key, outcome.clone());- Ok(host_outcome_to_neutral(outcome, &definition, &options))- }- Err(error) => {- self.failures- .lock()- .unwrap_or_else(|p| p.into_inner())- .insert(task_key, error);- Err(SubagentError::Execution(- "OpenHuman execution failed".into(),- ))- }- }+ let native = crate::agent::tinyagents::NativeSubagentRunContext {+ depth: native_run_config.lineage.depth,+ config: native_run_config,+ parent_events,+ child_events: std::sync::Arc::default(),+ child_journal: std::sync::Arc::default(),+ name: definition.id.clone(),+ };+ let run = Box::pin(+ crate::agent::subagent_host::ops::run_subagent_direct_with_native_context(+ &definition,+ &input,+ options.clone(),+ native,+ ),+ );+ let result = match dispatch.into_core() {+ Some(core) => {+ crate::core::runtime::CoreContext::scope_with_turn_origin(core, origin, run).await+ }+ None => run.await,+ };+ match result {+ Ok(outcome) => {+ self.host_outcome+ .lock()+ .unwrap_or_else(|p| p.into_inner())+ .insert(task_key, outcome.clone());+ Ok(host_outcome_to_neutral(outcome, &definition, &options))+ }+ Err(error) => {+ self.failures+ .lock()+ .unwrap_or_else(|p| p.into_inner())+ .insert(task_key, error);+ Err(SubagentError::Execution(+ "OpenHuman execution failed".into(),+ ))+ }+ }}}diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_storage_adoption_tests.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_storage_adoption_tests.rsindex 6d38ce811a..8f3cbda76f 100644--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_storage_adoption_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_storage_adoption_tests.rs@@ -185,7 +185,10 @@ async fn a_detached_lifecycle_write_uses_its_carried_actor_scope() {let mut outcome = SubagentOutcome::cancelled(task_id);outcome.output = "detached actor result".into();let detached = tokio::spawn(async move {- persistence.record_terminal(&key, &outcome, None).await.unwrap();+ persistence+ .record_terminal(&key, &outcome, None)+ .await+ .unwrap();key});let key = detached.await.unwrap();@@ -193,18 +196,17 @@ async fn a_detached_lifecycle_write_uses_its_carried_actor_scope() {crate::core::runtime::DispatchCtx::ambient()}).await;- let alice_persistence = super::super::persistence::OpenHumanPersistence::new(checkpoints.clone())- .with_dispatch(alice_dispatch);+ let alice_persistence =+ super::super::persistence::OpenHumanPersistence::new(checkpoints.clone())+ .with_dispatch(alice_dispatch);let durable = alice_persistence.load_terminal(&key).await.unwrap().expect("detached lifecycle write committed in its carried actor scope");assert_eq!(durable.output, "detached actor result");- let bob_dispatch = CoreContext::scope(bob, async {- crate::core::runtime::DispatchCtx::ambient()- })- .await;+ let bob_dispatch =+ CoreContext::scope(bob, async { crate::core::runtime::DispatchCtx::ambient() }).await;let other = super::super::persistence::OpenHumanPersistence::new(checkpoints).with_dispatch(bob_dispatch);assert!(other.load_terminal(&key).await.unwrap().is_none());diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rsindex d69b269d86..c77a5b1245 100644--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs@@ -12,10 +12,7 @@ fn child_tool_surface_never_contains_any_spawn_or_continuation_tool() {let spawn_names = tinyagents_definition::SPAWN_TOOL_NAMES.iter().copied()- .chain([- "delegate_researcher",- "continue_subagent",- ])+ .chain(["delegate_researcher", "continue_subagent"]).collect::<Vec<_>>();for name in &spawn_names {assert!(diff --git a/crates/openhuman-core/src/agent/tinyagents/config.rs b/crates/openhuman-core/src/agent/tinyagents/config.rsindex a059bfcc10..9767e9a963 100644--- a/crates/openhuman-core/src/agent/tinyagents/config.rs+++ b/crates/openhuman-core/src/agent/tinyagents/config.rs@@ -14,9 +14,7 @@ use tinyagents_harness::config::{RequiredOutput, SessionConfig, ToolConfig, ToolDispatcher, TurnConfig,};-use crate::config::{- AgentConfig, Config, RequiredOutputContract, DEFAULT_MODEL,-};+use crate::config::{AgentConfig, Config, RequiredOutputContract, DEFAULT_MODEL};/// Translates OpenHuman's free-form `agent.tool_dispatcher` string into the/// crate enum.diff --git a/crates/openhuman-core/src/agent/tinyagents/config_tests.rs b/crates/openhuman-core/src/agent/tinyagents/config_tests.rsindex 75494f3760..b6b8a753cc 100644--- a/crates/openhuman-core/src/agent/tinyagents/config_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/config_tests.rs@@ -233,4 +233,3 @@ fn a_blank_team_pin_does_not_displace_the_default() {assert_eq!(s.effective_lead_model(), "sonnet");assert_eq!(s.effective_subagent_model(), "sonnet");}-diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rsindex 901623a5ad..c63da2a65e 100644--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration.rs@@ -19,8 +19,7 @@ use tinyinference_llm::model::ChatModel;use tinytools::{Tool, ToolCallOptions, ToolResult, ToolRunContext};use crate::agent::orchestration::tools::{- ContinueSubagentDispatch, DelegationDispatch,- SpawnAsyncSubagentDispatch, SpawnSubagentDispatch,+ ContinueSubagentDispatch, DelegationDispatch, SpawnAsyncSubagentDispatch, SpawnSubagentDispatch,};use crate::agent::tinyagents::host::run_context::HostOperationContext;use crate::agent::tinyagents::host::OpenHumanRunContext;diff --git a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rsindex 09e307dc82..5144df6149 100644--- a/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/tool_registration_tests.rs@@ -121,7 +121,10 @@ fn capability_diagnostics_omit_retired_graphs() {.iter().map(|diagnostic| diagnostic.name.as_str()).collect();- assert!(reused_names.is_empty(), "retired graph diagnostics: {reused_names:?}");+ assert!(+ reused_names.is_empty(),+ "retired graph diagnostics: {reused_names:?}"+ );}#[tokio::test]diff --git a/crates/openhuman-core/src/agent_runs/schemas_tests.rs b/crates/openhuman-core/src/agent_runs/schemas_tests.rsindex 3550f7ac72..edd7e50475 100644--- a/crates/openhuman-core/src/agent_runs/schemas_tests.rs+++ b/crates/openhuman-core/src/agent_runs/schemas_tests.rs@@ -78,7 +78,6 @@ fn deserialize_params_and_helpers_cover_success_and_failure_paths() {assert!(matches!(json_output("result", "x").ty, TypeSchema::Json));}-#[tokio::test]async fn registry_snapshot_omits_retired_graphs() {let result = handle_registry_snapshot(DispatchCtx::process_default(), Map::new())diff --git a/crates/openhuman-core/src/config/migrations/retire_configured_agents_tests.rs b/crates/openhuman-core/src/config/migrations/retire_configured_agents_tests.rsindex cae4fa6fae..f91a39d58a 100644--- a/crates/openhuman-core/src/config/migrations/retire_configured_agents_tests.rs+++ b/crates/openhuman-core/src/config/migrations/retire_configured_agents_tests.rs@@ -14,5 +14,7 @@ fn removes_only_the_top_level_agents_table_idempotently() {assert_eq!(document, first);assert_eq!(document["default_model"].as_str(), Some("kept"));assert!(document.get("agents").is_none());- assert!(document["memory"]["agents"]["local"]["recall"].as_bool().unwrap());+ assert!(document["memory"]["agents"]["local"]["recall"]+ .as_bool()+ .unwrap());}diff --git a/crates/openhuman-core/src/config/mod.rs b/crates/openhuman-core/src/config/mod.rsindex 9c6c2b349b..ac9d9cb3c9 100644--- a/crates/openhuman-core/src/config/mod.rs+++ b/crates/openhuman-core/src/config/mod.rs@@ -49,12 +49,12 @@ pub use schema::{CapabilityProviderTrustState, ChannelsConfig, CompactionSettings, CompactionStrategy,ComposioConfig, ComposioDirectBaseUrls, ComposioHostCredential, ComputerConfig, Config,ContextConfig, CostConfig, CronConfig, CurlConfig, DashboardConfig, DecisionModel,- DiagramViewerConfig, DictationActivationMode, DictationConfig,- DiscordConfig, DockerRuntimeConfig, EmailConfig, EmbeddingRouteConfig, GitbooksConfig,- HttpHeader, HttpRequestConfig, IMessageConfig, IntegrationToggle, IntegrationsConfig,- LarkConfig, LegacySearchInputs, LinqConfig, LocalAiConfig, LocalJailConfig, MatrixConfig,- McpAuthConfig, McpClientConfig, McpClientIdentityConfig, McpServerConfig, McpToolExposure,- MemoryConfig, MemoryLayoutMode, ModelRouteConfig, MultimodalConfig, MultimodalFileConfig,+ DiagramViewerConfig, DictationActivationMode, DictationConfig, DiscordConfig,+ DockerRuntimeConfig, EmailConfig, EmbeddingRouteConfig, GitbooksConfig, HttpHeader,+ HttpRequestConfig, IMessageConfig, IntegrationToggle, IntegrationsConfig, LarkConfig,+ LegacySearchInputs, LinqConfig, LocalAiConfig, LocalJailConfig, MatrixConfig, McpAuthConfig,+ McpClientConfig, McpClientIdentityConfig, McpServerConfig, McpToolExposure, MemoryConfig,+ MemoryLayoutMode, ModelRouteConfig, MultimodalConfig, MultimodalFileConfig,ObservabilityConfig, OrchestratorModelConfig, PresentationMode, PrivacyConfig, PrivacyMode,ProviderRoute, ProxyConfig, ProxyScope, ReliabilityConfig, ResourceLimitsConfig, RuntimeConfig,SandboxBackend, SandboxConfig, SchedulerConfig, SchedulerGateConfig, SchedulerGateMode,diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rsindex c91f8e0f44..860c1afb49 100644--- a/crates/openhuman-core/src/config/schema/mod.rs+++ b/crates/openhuman-core/src/config/schema/mod.rs@@ -77,7 +77,9 @@ mod tools;mod update;mod web_chat_config;-pub use agent::{AgentConfig, OrchestratorModelConfig, RequiredOutputContract, TeamModelConfig, ToolSearchConfig};+pub use agent::{+ AgentConfig, OrchestratorModelConfig, RequiredOutputContract, TeamModelConfig, ToolSearchConfig,+};pub use autonomy::AutonomyConfig;pub use capability_providers::{CapabilityProviderConfig, CapabilityProviderTrustState};pub use channels::{diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rsindex 61b493d4fd..0dfd3a06a1 100644--- a/crates/openhuman-core/src/inference/provider/factory.rs+++ b/crates/openhuman-core/src/inference/provider/factory.rs@@ -89,9 +89,7 @@ use local_runtime::{try_create_local_runtime_chat_model, try_create_local_runtime_chat_model_from_string,OptionalChatModelResult,};-pub(crate) use managed_backend::{- make_openhuman_backend_model_for_thread,-};+pub(crate) use managed_backend::make_openhuman_backend_model_for_thread;use managed_backend::{managed_chat_model, resolve_managed_model};use primary_cloud::{legacy_inference_slug, resolve_primary_cloud_provider_string};use subprocess_providers::{diff --git a/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs b/crates/openhuman-core/src/inference/provider/factory/managed_backend.rsindex c859ad89c9..ff19ac6228 100644--- a/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs+++ b/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs@@ -132,4 +132,3 @@ pub(crate) fn make_openhuman_backend_model() -> anyhow::Result<ManagedChatModel> {managed_chat_model(role, config, None, None, true, None, &EgressLedger::none())}-diff --git a/crates/openhuman-core/src/inference/provider/ops/mod.rs b/crates/openhuman-core/src/inference/provider/ops/mod.rsindex b6851b7e89..728cb7272d 100644--- a/crates/openhuman-core/src/inference/provider/ops/mod.rs+++ b/crates/openhuman-core/src/inference/provider/ops/mod.rs@@ -23,9 +23,7 @@ pub use models::{list_configured_models, list_configured_models_from_config, synthesize_local_runtime_entry,};-pub use provider_factory::{- list_providers, ProviderInfo, INFERENCE_BACKEND_ID,-};+pub use provider_factory::{list_providers, ProviderInfo, INFERENCE_BACKEND_ID};// ── test re-exports for ops_tests.rs ──diff --git a/crates/openhuman-core/src/platform/doctor/core/config_checks.rs b/crates/openhuman-core/src/platform/doctor/core/config_checks.rsindex cf768feb6e..f7bcc7ae1e 100644--- a/crates/openhuman-core/src/platform/doctor/core/config_checks.rs+++ b/crates/openhuman-core/src/platform/doctor/core/config_checks.rs@@ -184,7 +184,6 @@ pub(super) fn check_config_semantics(config: &Config, items: &mut Vec<Diagnostic"no channels configured - configure one in the UI",));}-}pub(super) fn embedding_provider_validation_error(name: &str) -> Option<String> {diff --git a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rsindex 802753e2db..15af6b8c9b 100644--- a/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_capability_gating_tests.rs@@ -77,12 +77,7 @@ fn tool_group_classifies_gate_and_harness_families() {}assert_eq!(tool_group("learning_list_facets"), DomainGroup::Agent);assert_eq!(tool_group("spawn_subagent"), DomainGroup::Agent);- for name in [- "ask_user_clarification",- "wait",- "wait_loop",- "todo",- ] {+ for name in ["ask_user_clarification", "wait", "wait_loop", "todo"] {assert_eq!(tool_group(name), DomainGroup::Agent);}assert_eq!(tool_group("config_snapshot"), DomainGroup::Config);diff --git a/crates/openhuman-core/src/tools/sources_tests.rs b/crates/openhuman-core/src/tools/sources_tests.rsindex 09bee1e804..fe9b68ee8b 100644--- a/crates/openhuman-core/src/tools/sources_tests.rs+++ b/crates/openhuman-core/src/tools/sources_tests.rs@@ -175,6 +175,9 @@ fn anchored_sources_sit_where_the_catalogue_always_listed_them() {// The post-image-info anchor precedes Composio, while end sources and// sources with an unknown anchor trail every built-in.assert!(pos("image_info") < pos("anchor_fake_delegate"));+ if let Some(composio) = names.iter().position(|name| name.starts_with("composio")) {+ assert!(pos("anchor_fake_delegate") < composio);+ }assert!(pos("anchor_fake_delegate") < pos("anchor_fake_end"));assert!(pos("anchor_fake_end") < pos("anchor_fake_unknown"));// Sibling tests register sources on the same process-wide slot, so only