{"record":{"id":"0b5d4b78ccedc217","repo":"zeroclaw-labs/zeroclaw","slug":"active-run-not-found-run-id","errorCode":null,"errorMessage":"Active run not found: {run_id}","messagePattern":"Active run not found: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-runtime/src/sop/engine.rs","lineNumber":2643,"sourceCode":"            .active_runs\n            .get(run_id)\n            .map(|run| run.llm_calls_saved)\n            .unwrap_or(0);\n        let action = self.finish_run(run_id, SopRunStatus::Completed, None)?;\n        ::zeroclaw_log::record!(\n            INFO,\n            ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Note),\n            &format!(\"Deterministic SOP run {run_id} completed ({saved} LLM calls saved)\")\n        );\n        self.deterministic_savings.total_llm_calls_saved += saved;\n        self.deterministic_savings.total_runs += 1;\n        Ok(action)\n    }\n\n    /// Cancel an active run.\n    pub fn cancel_run(&mut self, run_id: &str) -> Result<()> {\n        if !self.active_runs.contains_key(run_id) {\n            bail!(\"Active run not found: {run_id}\");\n        }\n        self.finish_run(run_id, SopRunStatus::Cancelled, None)?;\n        ::zeroclaw_log::record!(\n            INFO,\n            ::zeroclaw_log::Event::new(module_path!(), ::zeroclaw_log::Action::Note)\n                .with_attrs(::serde_json::json!({\"run_id\": run_id})),\n            \"SOP run  cancelled\"\n        );\n        Ok(())\n    }\n\n    pub fn approve_step(&mut self, run_id: &str) -> Result<SopRunAction> {\n        self.resume_checkpoint(run_id, None)\n    }\n\n    /// Resume a run paused at a deterministic checkpoint, optionally amending one\n    /// field of the piped value first (`amend = (field, text)`, the operator-edited\n    /// draft). The amended value becomes the checkpoint's recorded output, so the","sourceCodeStart":2625,"sourceCodeEnd":2661,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-runtime/src/sop/engine.rs#L2625-L2661","documentation":"Error \"Active run not found: {run_id}\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-runtime/src/sop/engine.rs:2643 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["List active runs and use a valid run_id."],"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"}