pub fn format_agent_rows(
agents: &[AgentStatusEntry],
now: Instant,
) -> Vec<AgentRow>Expand description
Converts raw agent status entries into formatted display rows.
The phase introspection field is the supervisor’s lifecycle surface
(supervisor-introspection capability): when present on the supervisor
row, the status field renders that phase (with the matching status symbol)
instead of the message-type-derived label — labels like "feedback" (the
wire message type) are misleading, and the real lifecycle phase is "sweep",
"audit", "merge", etc.
phase is honoured only for the supervisor row. A non-supervisor row
ignores its phase and renders exactly as in v0.5.0 (status + summary) —
coding agents do not emit introspection phases in v0.6.0. The single
exception is the supervisor-published [STUCK_ON_PROMPT_PHASE] alert, which
detect-stuck targets at the stalled coding agent’s row by design.
Pure function: performs no I/O, holds no locks, and is deterministic given the same inputs.