Skip to content

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

fix(tests): correct agent identity in tool policy test fixtures

Steven Enamakel7528cda8088b
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs
index fe324e48bf..d34732731b 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_policy_tests.rs
@@ -337,7 +337,7 @@ async fn use_skill_reaches_a_withheld_packed_tool() {
// packed names for a non-owner.
let mut visible: std::collections::HashSet<String> =
tools.iter().map(|t| t.name().to_string()).collect();
- strip_packed_from_visible(&mut visible, "unrelated_agent");
+ strip_packed_from_visible(&mut visible, "orchestrator");
let session = ToolPolicyEngine::build_session(
"orchestrator",
"web_chat",
@@ -395,7 +395,7 @@ async fn a_prompt_hidden_delegate_is_not_offered_as_a_direct_route() {
// delegate prompt-hidden and therefore NOT directly callable.
let mut visible: std::collections::HashSet<String> =
tools.iter().map(|t| t.name().to_string()).collect();
- strip_packed_from_visible(&mut visible, "orchestrator");
+ strip_packed_from_visible(&mut visible, "unrelated_agent");
assert!(
!visible.contains("build_workflow"),
"precondition: the delegate is prompt-hidden here"