zeroclaw-labs/zeroclaw · error · anyhow::Error

Run {run_id} is paused at a {} gate; resolve the gate throug

Error message

Run {run_id} is paused at a {} gate; resolve the gate through `resolve_gate` (WaitingApproval) or `approve_step` (PausedCheckpoint) before advancing with sop_advance

What it means

Error "Run {run_id} is paused at a {} gate; resolve the gate through `resolve_gate` (WaitingApproval) or `approve_step` (PausedCheckpoint) before advancing with sop_advance" thrown in zeroclaw-labs/zeroclaw.

Source

Thrown at crates/zeroclaw-runtime/src/sop/engine.rs:1798

                );
                anyhow::Error::msg(format!("Active run not found: {run_id}"))
            })?;
            if matches!(
                run.status,
                SopRunStatus::WaitingApproval | SopRunStatus::PausedCheckpoint
            ) {
                ::zeroclaw_log::record!(
                    WARN,
                    ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Reject)
                        .with_outcome(::zeroclaw_log::EventOutcome::Failure)
                        .with_attrs(::serde_json::json!({
                            "run_id": run_id,
                            "status": run.status.to_string(),
                            "step": run.current_step,
                        })),
                    "SOP engine: advance_step rejected — run is paused at a gate"
                );
                bail!(
                    "Run {run_id} is paused at a {} gate; resolve the gate through \
                     `resolve_gate` (WaitingApproval) or `approve_step` (PausedCheckpoint) \
                     before advancing with sop_advance",
                    run.status
                );
            }
            (run.sop_name.clone(), run.current_step)
        };

        let sop = self
            .sops
            .iter()
            .find(|s| s.name == sop_name)
            .ok_or_else(|| {
                ::zeroclaw_log::record!(
                    WARN,
                    ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Fail)
                        .with_outcome(::zeroclaw_log::EventOutcome::Failure)

View on GitHub (pinned to 88bb9c8533)

Solutions

  1. Resolve the gate via `resolve_gate` (WaitingApproval) or `approve_step` (PausedCheckpoint), then call sop_advance.

When it happens

Trigger: Thrown at crates/zeroclaw-runtime/src/sop/engine.rs:1798 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/30093270b3280694. Report an issue: GitHub.