tinyhumansai/openhuman · error · anyhow::Error
[agent] replay read_run_status failed run_id=
Error message
[agent] replay read_run_status failed run_id={run_id}: {e} What it means
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).
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
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/openhuman/agent/tinyagents/replay/ops.rs:105 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/6b223968dca8f0dc.
Report an issue: GitHub.
Appendix: source
Thrown at src/openhuman/agent/tinyagents/replay/ops.rs:105
Ok(RunEventsPage {
events,
next_offset,
})
}
/// Latest durable [`HarnessRunStatus`] for `run_id`, or `None` when the run is
/// unknown. Backed by the C4 status seam
/// ([`crate::openhuman::agent::tinyagents::journal::read_run_status`] /
/// [`FileStatusStore::get_status`]).
pub(crate) async fn read_run_status(
workspace: &Path,
run_id: &str,
) -> anyhow::Result<Option<HarnessRunStatus>> {
log::debug!("[agent] replay read_run_status run_id={run_id}");
let stores = open_session_stores(workspace);
let store = FileStatusStore::new(stores.kv);
let status = store.get_status(run_id).await.map_err(|e| {
anyhow::anyhow!("[agent] replay read_run_status failed run_id={run_id}: {e}")
})?;
log::debug!(
"[agent] replay read_run_status run_id={run_id} found={}",
status.is_some()
);
Ok(status)
}
/// Is a run still live (i.e. eligible for the "active" listing)?
///
/// Mirrors the liveness predicate the crate's status store uses for
/// `list_active` (Pending / Running / Interrupted).
fn is_active(status: &HarnessRunStatus) -> bool {
matches!(
status.status,
ExecutionStatus::Pending | ExecutionStatus::Running | ExecutionStatus::Interrupted
)
}View on GitHub (pinned to 7491200858)