Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(tests): remove stale host install calls and update delegation target types

Steven Enamakeld154e744f6ab
diff --git a/src/openhuman/agent/harness/session/builder/builder_tests.rs b/src/openhuman/agent/harness/session/builder/builder_tests.rs
index 770d9bf690..f3fc3cfca2 100644
--- a/src/openhuman/agent/harness/session/builder/builder_tests.rs
+++ b/src/openhuman/agent/harness/session/builder/builder_tests.rs
@@ -332,7 +332,6 @@ fn use_skill_survives_a_ceiling_that_excludes_it_when_a_pack_is_still_reachable(
#[tokio::test]
async fn an_empty_named_scope_advertises_no_tools_at_all() {
- crate::openhuman::memory::host_impls::install_for_tests();
use crate::openhuman::agent::harness::session::types::Agent;
// `summarizer` is a shipped definition with `named = []`. Using the real
@@ -368,7 +367,6 @@ async fn a_zero_tool_agent_does_not_gain_the_compaction_recovery_tool() {
// first time. Without `is_empty_tool_scope` there, "no tools" would have
// quietly become "one tool" — and there is nothing for it to recover,
// because an agent with no tools produces no tool output to truncate.
- crate::openhuman::memory::host_impls::install_for_tests();
use crate::openhuman::agent::harness::session::types::Agent;
use crate::openhuman::inference::tokenjuice::RETRIEVE_TOOL_NAME;
diff --git a/src/openhuman/agent/orchestration/tools/collapsed_delegation_tests.rs b/src/openhuman/agent/orchestration/tools/collapsed_delegation_tests.rs
index f0275d35c0..e4ae99bf15 100644
--- a/src/openhuman/agent/orchestration/tools/collapsed_delegation_tests.rs
+++ b/src/openhuman/agent/orchestration/tools/collapsed_delegation_tests.rs
@@ -106,7 +106,9 @@ fn adding_a_target_costs_only_its_name_and_description() {
// growth must be linear in the *description*, not in the envelope.
let one = CollapsedDelegationTool::for_targets(vec![DelegateTarget {
tool_name: "research".to_string(),
- agent_id: "researcher".to_string(),
+ agent_id: openhuman::agent::orchestration::tools::archetype_delegation::DelegationTarget(
+ "researcher".to_string(),
+ ),
description: String::new(),
}])
.expect("non-empty");
@@ -216,7 +218,9 @@ fn every_member_is_hidden_so_the_collapse_actually_saves_something() {
// save nothing, and nothing else in the build would notice.
let member = ArchetypeDelegationTool {
tool_name: "research".to_string(),
- agent_id: "researcher".to_string(),
+ agent_id: openhuman::agent::orchestration::tools::archetype_delegation::DelegationTarget(
+ "researcher".to_string(),
+ ),
tool_description: "Web research.".to_string(),
};
assert_eq!(member.exposure(), ToolExposure::Hidden);