Skip to main content

validate_checkpoint

Function validate_checkpoint 

Source
pub fn validate_checkpoint(
    checkpoint: &PipelineCheckpoint,
    current_config: &Config,
    registry: &AgentRegistry,
) -> ValidationResult
Expand description

Validate a checkpoint before resuming.

Performs comprehensive validation to ensure the checkpoint can be safely resumed:

  • Working directory matches
  • PROMPT.md hasn’t changed (if checksum available)
  • Agent configurations are compatible

Note: File system state validation is handled separately with recovery strategy in the resume flow (see validate_file_system_state_with_strategy).

§Arguments

  • checkpoint - The checkpoint to validate
  • current_config - Current configuration to compare against
  • registry - Agent registry for agent validation

§Returns

A ValidationResult with any warnings or errors found.