import { ... } from "@langchain/langgraph-checkpoint-validation";Conformance tests for BaseCheckpointSaver.getDeltaChannelHistory ā the
walk that reconstructs DeltaChannel state from checkpoint_writes.
This is the one checkpointer method with no coverage in the default spec
suite, and it is intentionally opt-in: it is not run by specTest,
so adding it does not raise the conformance bar for third-party savers (the
method is Beta and inherits a default implementation from
BaseCheckpointSaver). Each in-repo saver's .spec.ts calls it explicitly so
the shared base walk is validated against every backend's real storage ā
Postgres, SQLite, Redis, MongoDB, and the MemorySaver override.
The scenarios target the per-backend behaviours the walk depends on:
round-tripping DeltaSnapshot and plain-array seed blobs, following
parentConfig up the ancestor chain, and ā critically ā replaying concurrent
same-superstep writes in the canonical (task_id, idx) order regardless of how
a given store happens to return pendingWrites (insertion order, locale
collation, etc.).
Exercises the list method of the checkpointer.
IMPORTANT NOTE: This test relies on the getTuple method of the checkpointer functioning properly. If you have
failures in getTuple, you should fix them before addressing the failures in this test.
Kicks off a test suite to validate that the provided checkpointer conforms to the specification for classes that extend