From 5e8194d271a8460c3e5bd543f65c0a2ff7c3369d Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Thu, 4 Jun 2026 14:19:38 -0600 Subject: [PATCH] fix: add agent context check to skill visibility validation --- src/graph/validator.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/graph/validator.rs b/src/graph/validator.rs index bd0a2cd..b755a69 100644 --- a/src/graph/validator.rs +++ b/src/graph/validator.rs @@ -205,7 +205,12 @@ impl GraphValidator { .and_then(|c| c.app_config.visible_skills.as_deref()); let skill_exists = self.skill_exists; + let has_agent_ctx = self.agent_ctx.is_some(); let check_visibility = |name: &str| -> Option { + if !has_agent_ctx { + return None; + } + match visible_skills { Some(list) if !list.iter().any(|s| s == name) => Some(format!( "'{name}' is not in the global 'visible_skills' allow-list"