pub fn get_checkpoint(
run_dir_name: &str,
base_dir: &Path,
) -> Result<Option<RunCheckpoint>>Expand description
Fetch a run’s checkpoint by reading checkpoint.json directly from disk.
This is a read-only query — it deliberately does not consult the
in-memory RunStore cache, which is only populated for runs started in
the current process (via init_run / open_run / update_from_event).
Reading from disk is what makes list_runs / get_run_status work for
runs created by other processes — e.g. the MCP server (started via
luft mcp serve) querying runs created by luft run, or vice-versa.
Returns Ok(None) when the run directory or checkpoint.json is absent
(unknown run id, or a run directory that never reached init_run).