Skip to content

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

test(agent_registry): cover flows-gated specialists in routing test

Steven Enamakel5d7f4ef70a25
diff --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.rs
index ef98a17ce1..c8cb4a6178 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
@@ -283,10 +283,15 @@ fn orchestrator_routes_every_registered_specialist_through_spawn_subagent() {
);
continue;
}
- if agent_id == "skill_setup" && !cfg!(feature = "skills") {
+ let gated_off = match agent_id.as_str() {
+ "skill_setup" => !cfg!(feature = "skills"),
+ "workflow_builder" | "flow_discovery" => !cfg!(feature = "flows"),
+ _ => false,
+ };
+ if gated_off {
assert!(
registry.get(agent_id).is_none(),
- "skill_setup is intentionally absent without skills"
+ "{agent_id} is intentionally absent with its feature gate off"
);
continue;
}