zeroclaw-labs/zeroclaw · error · anyhow::Error
Run is not paused at a checkpoint (status: )
Error message
Run {run_id} is not paused at a checkpoint (status: {}) What it means
revise_checkpoint_with_principal checked the run's status before re-drafting and it is not PausedCheckpoint (actual status embedded). Only runs parked at a checkpoint can be revised; this is the state guard that runs before the prior-run snapshot and rollback logic.
Solutions
- Check the run status; only checkpoint-paused runs accept this decision.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/zeroclaw-runtime/src/sop/engine.rs:2971 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23).
Data as JSON: /api/errors/84c09cade7307864.
Report an issue: GitHub.
Appendix: source
Thrown at crates/zeroclaw-runtime/src/sop/engine.rs:2971
}
/// Apply a revise decision while preserving the current store contract: the
/// new parked draft and its gate-resolution event commit together, or the
/// in-memory run rolls back to the previous answerable draft.
fn revise_checkpoint_with_principal(
&mut self,
run_id: &str,
guidance: &str,
decision: super::approval::ApprovalDecision,
principal: super::approval::ApprovalPrincipal,
) -> Result<()> {
let prior_run = self
.active_runs
.get(run_id)
.cloned()
.ok_or_else(|| anyhow::Error::msg(format!("Active run not found: {run_id}")))?;
if prior_run.status != SopRunStatus::PausedCheckpoint {
bail!(
"Run {run_id} is not paused at a checkpoint (status: {})",
prior_run.status
);
}
if self.is_park_persist_pending(run_id) {
bail!(
"Run {run_id} cannot re-draft: its parked checkpoint snapshot is not yet \
durably persisted (retrying)"
);
}
self.can_revise_checkpoint(run_id)?;
let (_, sop) = self.resolve_active_run_sop(run_id)?;
self.revise_checkpoint_draft(run_id, guidance)?;
let event = super::approval::GateLedgerEntry {
run_id: run_id.to_string(),
step: prior_run.current_step,
gate_revision: Some(prior_run.revision),View on GitHub (pinned to 88bb9c8533)