From a53907888498e15a417e60a31164e2384488436f Mon Sep 17 00:00:00 2001 From: Ian Jhumel Bautista Date: Mon, 15 Jun 2026 19:53:00 +0800 Subject: [PATCH] feat(langchain): LC-101 also applies to raw StateGraph (langchain_state_graph) Widen the code-execution / shell agent rule to the raw LangGraph StateGraph agent kind. Companion to the engine change that discovers StateGraph graphs and resolves their ToolNode / bind_tools tools, so a hand-wired graph wiring a PythonREPLTool / ShellTool now fires LC-101. Mirrors the in-engine test fixture. --- langchain/agent_safety.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/langchain/agent_safety.yaml b/langchain/agent_safety.yaml index 3efbded..2350f54 100644 --- a/langchain/agent_safety.yaml +++ b/langchain/agent_safety.yaml @@ -4,7 +4,7 @@ policy: category: langchain description: > Agent-scope safety and reliability rules for LangChain / LangGraph agents - (create_react_agent, create_agent, AgentExecutor). + (create_react_agent, create_agent, AgentExecutor, and raw StateGraph graphs). rules: - id: LC-101 @@ -15,6 +15,7 @@ rules: applies_to: - langchain_agent - langchain_agent_executor + - langchain_state_graph scope: agent match: agent_uses_hosted_tool_class: