pub struct BenchRun {Show 19 fields
pub id: i64,
pub bench_id: i64,
pub channel: String,
pub workflow_version_id: i64,
pub judge_version_id: i64,
pub status: String,
pub triggered_by: Option<String>,
pub triggered_at: String,
pub completed_at: Option<String>,
pub total_cost_usd: f64,
pub total_cases: i32,
pub cache_hit_cases: i32,
pub notes: Option<String>,
pub mcp_session_id: Option<String>,
pub case_filter: Option<Vec<String>>,
pub mean_headline_score: Option<f64>,
pub ok_cases: Option<i64>,
pub status_breakdown: Option<HashMap<String, i64>>,
pub judge_script_name: Option<String>,
}Expand description
A single bench-run row. workflow_version_id and judge_version_id are
resolved at trigger time so a later channel publish doesn’t change what
this run represents.
Fields§
§id: i64§bench_id: i64§channel: String§workflow_version_id: i64§judge_version_id: i64§status: String§triggered_by: Option<String>§triggered_at: String§completed_at: Option<String>§total_cost_usd: f64§total_cases: i32§cache_hit_cases: i32§notes: Option<String>§mcp_session_id: Option<String>§case_filter: Option<Vec<String>>§mean_headline_score: Option<f64>Mean headline score across completed (status='ok' OR 'cached') results
in this run. Populated by the list-runs aggregate query; bare
GET-single-run + coordinator inserts leave it None.
ok_cases: Option<i64>Number of results with status='ok' OR 'cached'. Populated alongside
mean_headline_score by the list-runs aggregate.
status_breakdown: Option<HashMap<String, i64>>Per-BenchResultStatus row count for this run, surfaced by the
list-runs and get-run aggregate queries (#753). Lets consumers
render a failure-mix breakdown (workflow_failed vs judge_failed vs
skipped) without an N+1 /results fetch. Statuses with zero rows
may be absent rather than serialised as 0.
judge_script_name: Option<String>Name of the judge script whose version produced this run. Joined in by
get_run and list_runs on the server so a caller can deep-link to
the judge’s source at judge_version_id without an N+1 lookup. Empty
on coordinator-inserted rows and on benches with no judge wired up.