pub fn recover_pending_ledger_journal(
repo_root: &Path,
required_manifest_path: Option<&Path>,
dry_run: bool,
) -> Result<bool>Expand description
Executes standalone recovery of any open BATCH_PENDING record, torn journal line, or
verified CSV-provenanced .ctbnodes tail ahead of ledger-journal.jsonl.
This function lives in ctb_build_support so it can be built and invoked via
ctb-lint recover-ledger-journal even when ctb-formats-dcdata/build.rs is blocked by an
uncommitted BATCH_PENDING transaction.