pub fn read_run(path: impl AsRef<Path>) -> Result<ParsedRun, BenchReadError>Expand description
Reads a version-tolerant benchmark JSONL artifact.
Blank lines are ignored. Unknown record types are retained. Structural protocol errors (records before start/after end, nonsequential IDs, future causes, decreasing elapsed time) do not fail parsing; they make the returned run ineligible for gates.
§Errors
Returns an error for open/read/JSON/typed-record failures or duplicate start and end records.
§Examples
use ailloli_ui_bench::{read_run, BenchReadError, ParsedRun};
fn load(path: &std::path::Path) -> Result<ParsedRun, BenchReadError> {
read_run(path)
}