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
test(agent): add coverage for builtin registration and host builders
Steven Enamakela834c0cda96d
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rsindex 596775cc66..dcc88a901b 100644--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs@@ -59,7 +59,7 @@ fn trigger_reactor_has_agentic_hint_and_narrow_tools() {assert_eq!(def.sandbox_mode, SandboxMode::None);assert_eq!(def.max_iterations, 6);assert!(- !def.omit_memory_context,+ !def.extensions.omit_memory_context,"trigger_reactor needs global memory/context");}@@ -96,11 +96,11 @@ fn trigger_triage_has_no_tools_and_pulls_memory_context() {ToolScope::Wildcard => panic!("trigger_triage must have a Named empty tool scope"),}assert!(- !def.omit_memory_context,+ !def.extensions.omit_memory_context,"trigger_triage needs global memory/context to reason about triggers");- assert!(def.omit_identity);- assert!(def.omit_safety_preamble);+ assert!(def.extensions.omit_identity);+ assert!(def.extensions.omit_safety_preamble);assert_eq!(def.sandbox_mode, SandboxMode::ReadOnly);assert_eq!(def.max_iterations, 2);}@@ -349,7 +349,7 @@ fn master_agent_has_coding_hint_and_named_tools() {// #6958: coding turns routinely need substantially more than fifty model calls.assert_eq!(def.max_iterations, 200);assert!(- !def.omit_memory_context,+ !def.extensions.omit_memory_context,"the user-facing agent opens new sessions with the memory context");}@@ -411,7 +411,7 @@ fn broad_agent_surfaces_expose_storage_transfer_not_lifecycle_tools() {fn critic_is_read_only() {let def = find("critic");assert_eq!(def.sandbox_mode, SandboxMode::ReadOnly);- assert!(def.omit_safety_preamble);+ assert!(def.extensions.omit_safety_preamble);}/// Planner runs `composio_execute` so it can ground plans in realdiff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rsindex 749670c816..49205a1013 100644--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_specialist_agents_tests.rs@@ -264,9 +264,9 @@ fn morning_briefing_is_read_only() {ToolScope::Wildcard => panic!("morning_briefing must have a named belt"),}// The brief grounds itself in the compiled memory context.- assert!(!def.omit_memory_context);- assert!(def.omit_identity);- assert!(def.omit_safety_preamble);+ assert!(!def.extensions.omit_memory_context);+ assert!(def.extensions.omit_identity);+ assert!(def.extensions.omit_safety_preamble);assert_eq!(def.max_iterations, 8);}diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rsindex 2c0301bc4e..089fd5ed77 100644--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests_host_only_tests.rs@@ -134,7 +134,7 @@ fn a_host_only_session_runs_a_definition_that_cannot_delegate_or_act() {assert!(def.subagents.is_empty(), "no delegation surface");assert!(def.deferred_tools.is_empty());assert_eq!(def.sandbox_mode, SandboxMode::ReadOnly);- assert!(def.omit_memory_context);+ assert!(def.extensions.omit_memory_context);}#[tokio::test]diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rsindex bd40c3376a..8e702e5232 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests_slug_filter_typed_mode_tests.rs@@ -337,7 +337,7 @@ async fn typed_mode_includes_memory_context_when_definition_allows_it() {"[Memory context]\n- prior fact: branch X failed\n".into(),));let mut def = make_def_named_tools(&[]);- def.omit_memory_context = false;+ def.extensions.omit_memory_context = false;let _ = with_parent_context(parent, async {run_subagent(