Checkpoints
A checkpoint_dir is managed by a manifest.json. Reading that manifest tells
a caller which checkpoints can be resumed from. The tier rules are under
Parameter tiers and resuming.
load_checkpoint_manifest
load_checkpoint_manifest(
directory: str | Path,
) -> tuple[CheckpointManifestEntry, ...]
Load + fully verify a directory's manifest, returning entries in order.
CheckpointManifestEntry
dataclass
A frozen, JSON-safe manifest entry (kd-ckptman-v1).
from_dict
classmethod
from_dict(data: object) -> CheckpointManifestEntry
Strictly reconstruct an entry, rejecting any wire drift.
to_dict
to_dict() -> dict[str, Any]
Return a JSON-safe dict, iterating the frozen scheme key table.
CheckpointManifestError
Bases: RecordSchemaError
Raised on any kd-ckptman-v1 manifest contract violation.
KIND_FINAL
module-attribute
KIND_FINAL: Final[str] = 'final'
FINAL_STATUS_COMPLETED
module-attribute
FINAL_STATUS_COMPLETED: Final[str] = 'completed'