pub fn read_run(
store: &dyn JournalStore,
paths: &JournalPaths,
run_id: &str,
) -> Result<Option<(Vec<JournalEvent>, RunState)>>Expand description
Read a run’s event log and its reduced state, read-only — the read path
behind release show.
release show needs both halves: the ordered JournalEvent log (to stream
as a live JSONL event window) and the folded RunState (to decide live
vs. terminal and render the post-mortem summary). This is the write-free,
unlocked twin of Journal::open that returns the log alongside the
projection so the caller reduces once, not twice.
Like read_run_state it ignores the manifest.json fast path and reduces
the authoritative journal.jsonl, so a manifest lagging the log by its last
event cannot hide the newest fact from a live tail. Returns Ok(None) when
the run has no journal.
§Errors
An invalid run_id (io::ErrorKind::InvalidInput), or any store/parse
error from read_events.