feat(langchain): LC-101 also applies to raw StateGraph (langchain_state_graph)#28
Open
jhumel-code wants to merge 1 commit into
Open
feat(langchain): LC-101 also applies to raw StateGraph (langchain_state_graph)#28jhumel-code wants to merge 1 commit into
jhumel-code wants to merge 1 commit into
Conversation
…te_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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Widen the LangChain code-execution / shell agent rule (LC-101) to the raw LangGraph StateGraph agent kind by adding
langchain_state_graphto itsapplies_to.Companion to engine PR trustabl/trustabl#65, which adds raw
StateGraphdiscovery and resolves a graph'sToolNode([...])/llm.bind_tools([...])tools into hosted-tool edges. With this rule change, a hand-wired graph wiring aPythonREPLTool/ShellToolnow fires LC-101.This mirrors the in-engine test fixture exactly, so it clears the engine's
rules-syncCI check (currently red on PR #65 only because the fixture has this line and production does not yet).Severity stays
high(unchanged from current production). Note: a separate unpushed local reclassification of LC-101 tocriticalis intentionally not included here.🤖 Generated with Claude Code