Skip to content

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

fix(profiles): exclude skills, flows and mcp tools from capability admission

Steven Enamakel76c675f06ddc
diff --git a/crates/openhuman-core/src/profiles/capabilities.rs b/crates/openhuman-core/src/profiles/capabilities.rs
index 5d085f94b9..46464bbefb 100644
--- a/crates/openhuman-core/src/profiles/capabilities.rs
+++ b/crates/openhuman-core/src/profiles/capabilities.rs
@@ -68,6 +68,12 @@ impl ProfileCapabilities {
/// Whether a selected name may reach the host permission decision.
pub fn admits(&self, name: &str) -> bool {
super::tools::admits_with(name, true, &self.groups)
+ && !matches!(
+ crate::tools::ops::tool_group(name),
+ crate::core::all::DomainGroup::Skills
+ | crate::core::all::DomainGroup::Flows
+ | crate::core::all::DomainGroup::Mcp
+ )
&& !matches!(
name,
"http_request" | "spawn_agent" | "spawn_async_subagent" | "use_skill"