« All posts

LangGraph Pipelines Can Succeed and Still Be Wrong

LangGraph pipelines can finish cleanly while routing decisions silently drift wrong. See why maker/checker divergence and state snapshots catch what standard monitoring misses.

The most dangerous failure mode for production LangGraph pipelines is a clean, successful run that is nonetheless wrong. Standard observability stacks only confirm that a pipeline executed -- they cannot confirm it executed correctly, since classification confidence, retrieval quality, or model behavior can drift gradually without ever triggering an exception.

A 19-node financial pipeline classifying transactions across seven data sources illustrates the risk: every run exited cleanly, but the real question wasn't whether the tax formula was calculated correctly -- it was whether the upstream classifier had assigned the correct jurisdiction in the first place. A mathematically correct calculation applied to the wrong jurisdiction still looks like a successful, plausible output.

Catching this requires treating conditional edges as inspectable decisions rather than mere control flow. That means capturing full state snapshots at critical checkpoints, tracking edge-traversal distributions over time, logging the inputs and confidence behind every routing decision, and monitoring node-level latency and token usage as early quality signals.

Among these, the divergence rate between an independent maker node and checker node has proven the most reliable leading indicator. In the example pipeline, the checker didn't catch a math error -- it flagged a correct formula applied to the wrong jurisdiction, routing the case for human review. Because the team had tracked divergence rates over time, the rising trend on jurisdiction-related transactions surfaced before any bad output reached production.