pub fn format_traces(traces: &[Trace], limit: usize) -> String
Render the most recent limit traces as JSON lines — machine-first (SPEC §0.2): each line is a full Trace, newest last.
limit
Trace