Skip to main content

Module report

Module report 

Source
Expand description

Terminal rendering.

A run produces a lot of state; the report exists so the operator can decide what to do next without opening run.json. It leads with the disagreement, because that is the part that carries information: three judges agreeing tells you nothing the winner’s diff does not.

Colour is a six-line local implementation rather than a crate. The alternatives all decide for you whether the stream supports colour, which makes the output untestable — assert!(text.contains("winner A")) fails on an escape sequence the test never asked for.

Functions§

active_seats
The seats currently mid-answer, for magi show and the raw report route.
line
One-line summary, for magi list.
line_with_liveness
[line] with the independent process-liveness observation available to magi list.
liveness_notice
A plainly visible verdict for a non-terminal run whose recorded driver is gone. Kept separate from active_seats because a process can die at a node boundary with no active seat left in the saved state.
repo_summary
Per-repository summary table: repo name, run count, completion rate.
run
Full report for one run.
set_color
Turn colour on or off for every subsequent render.
stats
Aggregate tables, for magi stats.
superseded_notice
A plainly visible note for a run a later attempt at the same task already replaced — the terminal counterpart of the web UI’s “Superseded by …” line. later is the short id of that later attempt, or None when this run is not superseded at all (the common case).