{"record":{"id":"6b223968dca8f0dc","repo":"tinyhumansai/openhuman","slug":"agent-replay-read-run-status-failed-run-id-run","errorCode":null,"errorMessage":"[agent] replay read_run_status failed run_id={run_id}: {e}","messagePattern":"\\[agent\\] replay read_run_status failed run_id=(.+?): (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/tinyagents/replay/ops.rs","lineNumber":105,"sourceCode":"    Ok(RunEventsPage {\n        events,\n        next_offset,\n    })\n}\n\n/// Latest durable [`HarnessRunStatus`] for `run_id`, or `None` when the run is\n/// unknown. Backed by the C4 status seam\n/// ([`crate::openhuman::agent::tinyagents::journal::read_run_status`] /\n/// [`FileStatusStore::get_status`]).\npub(crate) async fn read_run_status(\n    workspace: &Path,\n    run_id: &str,\n) -> anyhow::Result<Option<HarnessRunStatus>> {\n    log::debug!(\"[agent] replay read_run_status run_id={run_id}\");\n    let stores = open_session_stores(workspace);\n    let store = FileStatusStore::new(stores.kv);\n    let status = store.get_status(run_id).await.map_err(|e| {\n        anyhow::anyhow!(\"[agent] replay read_run_status failed run_id={run_id}: {e}\")\n    })?;\n    log::debug!(\n        \"[agent] replay read_run_status run_id={run_id} found={}\",\n        status.is_some()\n    );\n    Ok(status)\n}\n\n/// Is a run still live (i.e. eligible for the \"active\" listing)?\n///\n/// Mirrors the liveness predicate the crate's status store uses for\n/// `list_active` (Pending / Running / Interrupted).\nfn is_active(status: &HarnessRunStatus) -> bool {\n    matches!(\n        status.status,\n        ExecutionStatus::Pending | ExecutionStatus::Running | ExecutionStatus::Interrupted\n    )\n}","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/tinyagents/replay/ops.rs#L87-L123","documentation":"Reading the latest durable harness run status from the journal status store (FileStatusStore over the session KV store) failed, wrapping the underlying storage/IO error. Fires when the workspace's session store cannot be opened or read for the given run_id (corrupt KV file, permissions, or a missing workspace dir), not when the run is merely unknown — that case returns Ok(None).","triggerScenarios":"Thrown at src/openhuman/agent/tinyagents/replay/ops.rs:105 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the run_id actually belongs to a run journaled in this workspace","Check the workspace path exists and the session store files are readable","Inspect the wrapped error `e` for the underlying IO or deserialization cause","If the KV store is corrupted, restore from backup or re-run the harness turn"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}