Skip to content

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

fix(tests): update exposure assertion to match hidden archetype delegates

Steven Enamakel09078cc5a130
diff --git a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs
index 0b7abd0751..ffd24c2ed1 100644
--- a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs
+++ b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs
@@ -152,14 +152,15 @@ fn collects_agentid_entries_and_expands_skills_wildcard_to_deferred_actions() {
);
// Every action is `Deferred`: off the wire, reachable through
- // `tool_search`. The delegation tools stay `Direct`.
- for tool in &tools {
- let expected = if tool.name().starts_with("delegate_") || tool.name() == "research" {
- tinytools::ToolExposure::Direct
- } else {
- tinytools::ToolExposure::Deferred
- };
- assert_eq!(tool.exposure(), expected, "exposure of {}", tool.name());
+ // `tool_search`. (The archetype delegates are `Hidden` — the collapsed
+ // `delegate_to` tool advertises them — so only the actions are checked.)
+ for tool in tools.iter().filter(|t| t.name().starts_with("G")) {
+ assert_eq!(
+ tool.exposure(),
+ tinytools::ToolExposure::Deferred,
+ "exposure of {}",
+ tool.name()
+ );
}
}