Repository navigation
feat(agent): add the suite stats across trials to summary.csv - #715
Open
omkargaikwad23 wants to merge 2 commits into
Open
omkargaikwad23 wants to merge 2 commits into
omkargaikwad23 wants to merge 2 commits into
Conversation
With num_trials above 1, the summary of an agent run gets the pass rate, Wilson interval, flakiness, confidence, and flaky scenario count of the suite on the goal_completion row. Each numeric metric gets the min, median, and max of its suite average in each trial. A run with one trial has no new column.
omkargaikwad23
requested review from
IsmailMehdi,
helloeve and
prernakakkar-google
as code owners
November 18, 2026 07:30
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 #713.
What
With
num_trialsabove 1, thesummary.csvof an agent run gets 9 new columns. They hold the stats of the whole suite across trials. The existing columns do not change, and a run with one trial has no new column.pass_rategoal_completioninterval_low,interval_highgoal_completionpass_rate.flakiness,confidencegoal_completionflaky_scenariosgoal_completiontrial_min,trial_median,trial_maxExample from a job with 4 scenarios and
num_trials: 3. One scenario runs in one trial only, so the job has 10 trials. Empty cells and the rows without new values are left out.metric_namemetric_scorecorrect_results_counttotal_results_countpass_rateinterval_lowinterval_highflakinessconfidenceflaky_scenariostrial_mintrial_mediantrial_maxgoal_completiontoken_consumptionOn the
goal_completionrow,correct_results_countgives partial credit.pass_ratecounts a trial only as a pass or a failure, with thepass_thresholdof the scorer.Why
The summary shows one average for each metric. It does not show if the trials agree. With these columns, a team can see the certainty of the pass rate, the number of flaky scenarios, and the range of cost and latency between trials.
Testing
num_trials: 1and withnum_trials: 3. With one trial,summary.csvhas no new column. With 3 trials, the new values match a separate calculation fromscores.csv.scores.csvof an earlier Claude Code run, in which one scenario passed 2 of 3 trials. The result is apass_rateof 0.9, aflakinessof 0.2963, and 1 flaky scenario.Logs: https://paste.googleplex.com/6755399437150219 (Google-internal)
Not run: a job through the gRPC service (two unit tests cover this path), a job with the
bigqueryreporter, the other harnesses.