Type of issue
issue / bug
Language
Python
Description
In this paragraph:
https://docs.langchain.com/oss/python/langgraph/graph-api#accessing-and-handling-the-recursion-counter
The documentation currently states:
The recursion limit check follows the logic: step > stop where stop = step + recursion_limit + 1.
This is mathematically impossible, because if:
stop = step + recursion_limit + 1
then stop is always greater than step, so the condition step > stop can never be true.
This creates confusion about how LangGraph actually computes and enforces recursion limits.