Repository navigation
feat(viewer): show the result of each trial on the Stability tab - #744
Open
omkargaikwad23 wants to merge 4 commits into
Open
omkargaikwad23 wants to merge 4 commits into
omkargaikwad23 wants to merge 4 commits into
Conversation
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.
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.
omkargaikwad23
marked this pull request as ready for review
November 26, 2026 14:20
omkargaikwad23
requested review from
IsmailMehdi,
helloeve and
prernakakkar-google
as code owners
November 26, 2026 14:20
This was referenced Nov 26, 2026
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.
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:
goal_completionscore and the id of the trial.run_stats.csv, also if the judge gave it a score.Details:
scores.csvandevals.csv. The job code does not change.run_stats.csvhas no pass flag for each trial andpass_thresholdcan be below 100.conversations.pygetsconversation_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
.ci/verify_viewer.pypasses.num_trials: 3. In headless Chrome, a click on a row of the Stability tab opened 3 trials with the goals and the summaries fromscores.csv. A click on "Open conversation" of trial 2 opened the conversation with the eval idcsql-instance-not-found-failure_trial_1. After a return to the Stability tab, the row was still open, and a second click closed it.num_trials: 2. One trial had a simulated-user error, and its scenario has the statusERROR. 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.