## TL;DR

Keep your node return values strictly inside the state schema, especially with Pydantic models, because an invalid write can poison the thread beyond repair.

## Steps

1. Keep your node return values strictly inside the state schema, especially with Pydantic models, because an invalid write can poison the thread beyond repair. A maintainer-proposed fix validates node updates before they reach the checkpointer so the graph fails fast instead of corrupting history; until you confirm it is in your version, treat any unreadable checkpoint as possibly corrupt and start a fresh thread rather than debugging the dead one.

## When to use

You are seeing this: The result was permanently corrupted thread history with no recovery path. Use this skill when you run into "LangGraph can checkpoint invalid node output and permanently corrupt a thread".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
