Expand description
Real-time phase progress reporter to stderr.
Why: Workflow runs take 20–70 minutes; users need live feedback without
polluting stdout.
What: ProgressReporter struct with phase/wave lifecycle hooks and
format_duration helper.
Test: progress::tests::*.
Real-time phase progress streaming to the terminal (#149).
Why: Workflow runs take 20–70 minutes and previously emitted nothing on
stdout/stderr until the observe phase completed. Users had no signal that
the harness was alive, which is terrible UX. Streaming a one-line summary
per phase (and per code-wave) to stderr — colorized when stderr is a TTY —
gives operators live progress without polluting stdout (which is reserved
for the structured --json envelope).
What: ProgressReporter is a tiny stderr-printer with three lifecycle
hooks (phase_start, phase_done, phase_failed) plus a wave_start /
wave_done pair for the code phase’s per-wave loop and a final
workflow_done summary. Output is pure stderr eprintln! — no logging
framework, no allocations on the hot path beyond the formatted line.
Test: see unit tests at the bottom of this file:
progress_reporter_formats_phase_startprogress_reporter_formats_phase_done_no_color
Structs§
- Progress
Reporter - Streams human-readable progress lines to stderr while a workflow runs.
Functions§
- format_
duration - Format a
DurationasMmSSsfor short runs andHh MmSSsfor long ones.