Skip to content

feat(viewer): show the result of each trial on the Stability tab - #744

Open
omkargaikwad23 wants to merge 4 commits into
feat/agent-run-stats-viewerfrom
feat/agent-run-stats-viewer-trials
Open

omkargaikwad23 wants to merge 4 commits into
feat/agent-run-stats-viewerfrom
feat/agent-run-stats-viewer-trials

Conversation

@omkargaikwad23

@omkargaikwad23 omkargaikwad23 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #743.

What

On the Stability tab, a click on a scenario row opens the result of each trial of the scenario. A second click closes it.

Each trial shows:

  • The goal_completion score and the id of the trial.
  • The error of an unscored trial. A trial with an error shows "Unscored", as in run_stats.csv, also if the judge gave it a score.
  • Each success criterion or sub-goal, with an icon for met or not met and the reason from the judge.
  • The summary from the judge.
  • An "Open conversation" button, which opens the Conversations tab at that trial.

Details:

  • The data comes from scores.csv and evals.csv. The job code does not change.
  • The viewer reads the two files only if a row is open.
  • The color of a score is the same as in the Conversations tab: green for 100, red for 0, and amber between them. The viewer does not label a trial as passed or failed, because run_stats.csv has no pass flag for each trial and pass_threshold can be below 100.
  • conversations.py gets conversation_indexes. It uses the same row filter and the same id rule as the Conversations tab, so the button opens the correct conversation.

Why

The table shows how many trials passed. It does not show which trial failed or why. The user had to find the trial in the Conversations tab by its id.

Testing

  • 26 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, a click on a row of the Stability tab opened 3 trials with the goals and the summaries from scores.csv. A click on "Open conversation" of trial 2 opened the conversation with the eval id csql-instance-not-found-failure_trial_1. After a return to the Stability tab, the row was still open, and a second click closed it.
  • The viewer, local, with a real Antigravity CLI run of 2 scenarios and num_trials: 2. One trial had a simulated-user error, and its scenario has the status ERROR. The open row showed "Unscored" and the error text for that trial.

Screenshots (Google-internal). They are from the top of the stack, so they also show the metric cards of #745.

Not run: a real run with a failed trial (unit tests cover this case), a browser window narrower than 1400 px.

A click on a scenario row of the "Stats across trials" section opens the
result of each trial: the goal_completion score, the verdict of the judge
on each goal, the errors, and the summary. A button opens the conversation
of the trial in the Conversations tab.

The data comes from scores.csv and evals.csv. The viewer reads the two
files only if a row is open.
…viewer-trials

The scenario table is now on the Stability tab. The trial details and the
"Open conversation" button move with it, so the Stability tab gets the
conversation handler and the Dashboard tab does not.
@omkargaikwad23 omkargaikwad23 changed the title feat(viewer): show the result of each trial in the trial stats feat(viewer): show the result of each trial on the Stability tab Nov 26, 2026
The job does not count a trial with an agent error, a simulated-user
error, or a scorer error as scored, also if the judge gave it a score.
The trial details showed the score of the judge for such a trial. They
now show "Unscored" and the error text first, the same result as
run_stats.csv. The label of the error from generated_error is "Error",
because the error can come from the simulated user.
…viewer-trials

The Dashboard tab has no Stability button now. The trial details keep
the Callable import, which the base branch removed.
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