{"record":{"id":"30093270b3280694","repo":"zeroclaw-labs/zeroclaw","slug":"run-run-id-is-paused-at-a-gate-resolve-the-g","errorCode":null,"errorMessage":"Run {run_id} is paused at a {} gate; resolve the gate through `resolve_gate` (WaitingApproval) or `approve_step` (PausedCheckpoint) before advancing with sop_advance","messagePattern":"Run (.+?) is paused at a (.+?) gate; resolve the gate through `resolve_gate` \\(WaitingApproval\\) or `approve_step` \\(PausedCheckpoint\\) before advancing with sop_advance","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-runtime/src/sop/engine.rs","lineNumber":1798,"sourceCode":"                );\n                anyhow::Error::msg(format!(\"Active run not found: {run_id}\"))\n            })?;\n            if matches!(\n                run.status,\n                SopRunStatus::WaitingApproval | SopRunStatus::PausedCheckpoint\n            ) {\n                ::zeroclaw_log::record!(\n                    WARN,\n                    ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Reject)\n                        .with_outcome(::zeroclaw_log::EventOutcome::Failure)\n                        .with_attrs(::serde_json::json!({\n                            \"run_id\": run_id,\n                            \"status\": run.status.to_string(),\n                            \"step\": run.current_step,\n                        })),\n                    \"SOP engine: advance_step rejected — run is paused at a gate\"\n                );\n                bail!(\n                    \"Run {run_id} is paused at a {} gate; resolve the gate through \\\n                     `resolve_gate` (WaitingApproval) or `approve_step` (PausedCheckpoint) \\\n                     before advancing with sop_advance\",\n                    run.status\n                );\n            }\n            (run.sop_name.clone(), run.current_step)\n        };\n\n        let sop = self\n            .sops\n            .iter()\n            .find(|s| s.name == sop_name)\n            .ok_or_else(|| {\n                ::zeroclaw_log::record!(\n                    WARN,\n                    ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Fail)\n                        .with_outcome(::zeroclaw_log::EventOutcome::Failure)","sourceCodeStart":1780,"sourceCodeEnd":1816,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-runtime/src/sop/engine.rs#L1780-L1816","documentation":"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.","triggerScenarios":"Thrown at crates/zeroclaw-runtime/src/sop/engine.rs:1798 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Resolve the gate via `resolve_gate` (WaitingApproval) or `approve_step` (PausedCheckpoint), then call sop_advance."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}