pub fn check_file_checkpoint(
req: &CheckRequest,
checkpoint: &Request,
) -> Result<CheckReport, ApiError>Expand description
Runs the native pure-safety checkpoint/recovery slice. It refuses temporal combinations before loading files. Existing frontier/predecessor budgets configure transient storage; native archive work is separately bounded and excluded from both budgets. Recovery uses saved seed/fingerprint defaults when not explicitly supplied; profile/store and all semantic options must match. Actual workers are reported separately.
use dive_api::{CheckRequest, check_file_checkpoint, checkpoint};
let model = CheckRequest { file: "Counter.tla".into(), ..CheckRequest::default() };
let native = checkpoint::Request {
path: "counter.cp".into(),
action: checkpoint::Action::PauseAfterLevels(2),
counters: checkpoint::Counters::Tlc,
config_source_sha256: None,
};
let report = check_file_checkpoint(&model, &native)?;
assert_eq!(report.to_json()["options"]["checkpoint"]["action"], "pause");ยงErrors
File I/O or malformed native request/metadata, without a model verdict.