Skip to main content

Module state

Module state 

Source
Expand description

Progress persistence and resume for long-running workflows.

This module defines the data types for checkpointing and the CheckpointBackend trait that persistence engines (e.g. SQLite) implement.

Key features:

  • Event log persistence
  • Agent result caching
  • Resume from last checkpoint
  • Run state management

Structs§

AgentResultCache
AgentSessionCheckpoint
PhaseSummary
RunCheckpoint
Run state persisted to the backend.

Enums§

CheckpointStatus

Traits§

CheckpointBackend
Persistence backend for a single run.

Functions§

current_timestamp
Helper: current unix timestamp.
list_run_dirs
List all run directory names under the base dir. For SQLite backends, this is derived from the runs table. This helper remains for filesystem-based discovery.