feat: visual eval trend dashboard (agent-strace dashboard --trend)#74
Merged
Conversation
Extends dashboard with --trend mode: reads per-session eval scores from eval.json, computes error/retry/cost time-series, and renders a self-contained HTML report with inline SVG charts. - TrendPoint, TrendReport, EvalScorePoint data structures - build_trend_report(): extracts metrics from events + eval.json - format_trend_terminal(): terminal summary with pass-rate deltas - render_html_trend(): self-contained HTML, no CDN, no JS libraries, inline SVG sparklines with annotation markers - save_annotation() / load_annotations(): persist timeline markers - CLI: --trend, --since Nd, --html FILE flags on dashboard subcommand - dashboard annotate --date --note subcommand - 25 new tests covering SVG rendering, annotation storage, trend builder, terminal formatting, and HTML output Closes #68 Co-authored-by: Ona <no-reply@ona.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Extends
agent-strace dashboardwith--trendmode: reads per-session eval scores fromeval.json, computes error/retry/cost time-series, and renders a self-contained HTML report with inline SVG charts.Closes #68
New flags
What the HTML report shows
Eval quality section (one sparkline per judge, requires
agent-strace evalscores):Behavioral metrics section (four sparklines, no eval required):
Recent sessions table with eval scores inline.
Design constraints met
Files changed
src/agent_trace/dashboard.py—TrendPoint,TrendReport,EvalScorePoint,build_trend_report(),format_trend_terminal(),render_html_trend(),save_annotation(),load_annotations(),_svg_sparkline()src/agent_trace/cli.py—--trend,--since,--htmlflags;dashboard annotatesubcommandtests/test_dashboard_trend.py— 25 new testsTest results