Skip to content

feat(viewer): show the min, median, and max of the numeric metrics - #745

Open
omkargaikwad23 wants to merge 3 commits into
feat/agent-run-stats-viewer-trialsfrom
feat/agent-run-stats-viewer-metrics
Open

omkargaikwad23 wants to merge 3 commits into
feat/agent-run-stats-viewer-trialsfrom
feat/agent-run-stats-viewer-metrics

Conversation

@omkargaikwad23

@omkargaikwad23 omkargaikwad23 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #744.

What

For a run with num_trials above 1, the viewer shows the min, median, and max of each numeric metric, such as token_consumption and end_to_end_latency.

Each card has the same style as the other cards of the Dashboard tab:

  • The label is the metric name as words, for example "End to end latency".
  • The large value is the median. The line below it has the min and the max.
  • A tooltip on the label tells how the job calculates the values.

Details:

  • The viewer shows each metric that the files have. It has no fixed list of metrics.
  • A metric without values has no card.
  • The numbers have no unit, because the two files have no unit for a metric.
  • The multi-run design puts the scenario values next to the pass rate. A run can have 7 numeric metrics with 3 values each, so the values are in the open row and not in more table columns.

Why

The pass rate shows the quality of a scenario across trials. These values show its cost across trials. A wide range between the min and the max shows that the tokens or the latency of a scenario are not stable.

Testing

  • 10 new unit tests.
  • .ci/verify_viewer.py passes.
  • The viewer, local, with a real Antigravity CLI run of 3 scenarios and num_trials: 3. In headless Chrome, the Dashboard tab showed 4 metric cards with the same values as summary.csv. An open row of the Stability tab showed the 4 metric cards of the scenario with the same values as run_stats.csv.
  • The viewer, local, with a second real run of the same scenarios with 7 numeric metrics. The cards are in rows of 4 on both tabs, and the Dashboard values are the same as in summary.csv.

Screenshots (Google-internal).

Not run: a browser window narrower than 1400 px.

For a run with num_trials above 1, the Dashboard tab gets a table with
the min, median, and max across trials of each numeric metric of the
suite, from summary.csv. On the Stability tab, an open scenario row gets
the same values for the scenario, from run_stats.csv.
The metrics were a small text table with the column names of the files.
Each metric is now a card in the style of the other Dashboard cards:
the name as words, the median in large text, and the min and the max
below it. A tooltip on the label tells how the job calculates the
values. The column headers and the cards share the label with a tooltip.
In a flex row, the cards of the last row were wider than the others. A
run with 7 numeric metrics showed 6 cards and then 1 card with the full
width. The cards are now in a grid with 4 cards in each row, as the
cards of the suite stats.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant