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 skill_setup absence without skills feature

Steven Enamakel810ccc242de6
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 680a417254..4694574a74 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,6 +283,19 @@ fn orchestrator_routes_every_registered_specialist_through_spawn_subagent() {
);
continue;
}
+ if agent_id == "skill_setup" && !cfg!(feature = "skills") {
+ assert!(
+ registry.get(agent_id).is_none(),
+ "skill_setup is intentionally absent without skills"
+ );
+ assert!(
+ !allowed
+ .iter()
+ .any(|candidate| candidate.as_str() == Some(agent_id)),
+ "spawn_subagent must not advertise skill_setup without skills"
+ );
+ continue;
+ }
assert!(
registry.get(agent_id).is_some(),
"orchestrator specialist `{agent_id}` must be registered"