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(orchestrator): update tool-scope assertion for new enum variant
Steven Enamakel286aa0d36a97
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rsindex 200703a7cd..f73c7ca3e3 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs@@ -146,11 +146,18 @@ fn prompt_routes_workflow_authoring_to_the_builder_not_use_skill() {"the prompt tells the model to call `build_workflow`; that must still be \workflow_builder's delegate_name, or the rule names a tool nobody has");- for tool in ["list_flows", "get_flow"] {- assert!(- builder.tool_scope.allows(tool),- "the saved-flow lookup route needs `{tool}` on workflow_builder's belt"- );+ match &builder.tool_scope {+ crate::agent::harness::definition::ToolScope::Named(tools) => {+ for tool in ["list_flows", "get_flow"] {+ assert!(+ tools.contains(&tool.to_string()),+ "the saved-flow lookup route needs `{tool}` on workflow_builder's belt"+ );+ }+ }+ crate::agent::harness::definition::ToolScope::Wildcard => {+ panic!("workflow_builder must retain its explicit, narrow tool belt")+ }}}