ResumeStateMiddleware()Persists per-checkpoint resume facts after each model call.
See the module docstring for why this rides the model node's checkpoint
instead of a separate aupdate_state (avoids a standalone UpdateState
run in LangSmith and works identically against remote graphs).