Repository navigation
Description
This was generated by AI from a grill-with-docs session.
Decided in docs/grill-with-docs/1434-eval-follow-ups.md (Q1.1–Q3.2). The research behind it is in docs/research/eval-suite-scaling.md and docs/research/eval-build-vs-buy.md. Blocked by #1252, whose Spec PR #1279 changes the same Verdict code. The host work stays outside this Spec: --record-difficulty reaches the host only once this Spec's PR is merged and released, so a host Ticket inside it would deadlock the Spec PR (see "Split a Spec at a release" in docs/agents/triage-labels.md). #1434 stays standalone, and a ready-for-human release step, blocked by this Spec, does the recording.
Problem Statement
An Eval task that both Arms always fail adds a zero difference to the Verdict. That pulls the estimate toward zero, inside the −10-point margin, so the Eval task doesn't just waste tokens: it can hide a regression. In eval-suite-scaling.md §1.5, 10 Eval tasks that can be solved pass a really regressed Candidate 3% of the time. Add 30 Eval tasks that always fail, and the same regression passes 63% of the time. The padding also makes an A/A Experiment look healthier: it passes 98% of the time instead of 47%.
Our suites are padded like this today. In #1370, 7 of code review's 10 Eval tasks failed every Trial in both Arms. In #1267, 17 of Spec review's 30 Eval tasks never passed. Nothing in an Experiment says which Eval tasks can tell Arms apart, so a pass on a padded suite looks the same as a pass on a sound one.
A suite with only a few Eval tasks that can tell Arms apart can't settle a release either way. At 10 such Eval tasks, a no-op passes 48% of the time, and a real regression fails only 34%. Today such a suite still passes or blocks a release.
Solution
Measure each Eval task's Difficulty, judge only the Eval tasks it shows to be discriminating, and stop a suite with too few of them from passing or blocking a release.
- Difficulty is how often an Eval task passes on the Baseline arm's setup, over a stated number of Trials. It is measured by pooling both Arms of an A/A Experiment, and recorded in the Eval task's manifest by a command.
- An Eval task is discriminating when its Difficulty lies between 0.15 and 0.95, over at least 6 Trials.
- When an Experiment starts, it saves in the Bar the list of discriminating Eval tasks in each suite. The Verdict judges only those.
- Approved Eval tasks with no Difficulty yet still run. Their Trials are reported as measurement and never judged.
- Eval tasks outside the band are parked on the host, out of every suite, and keep their Difficulty.
- A suite with fewer than 20 discriminating Eval tasks is an Advisory suite. It still gets a Verdict, marked advisory, but it can neither pass nor block a release.
User Stories
Difficulty:
- As the Day shift, I want each Eval task to carry its measured Difficulty, so that I can see which Eval tasks can tell Arms apart.
- As the Day shift, I want Difficulty to record its passes, its Trials, and the Experiment, commit, Harness, Model and Effort it was measured on, so that I know what a reading rests on.
- As the Day shift, I want one command that records Difficulty for every Eval task in a finished A/A Experiment, so that I never pool Trials by hand across 20 Eval tasks.
- As the Day shift, I want that command to pool both Arms' Trials, so that a code-review A/A gives 6 Trials per Eval task.
- As the Day shift, I want the command refused unless both Arms have the same commit, Harness, Model and Effort, so that Difficulty is never pooled across different setups.
- As the Day shift, I want the command refused on an Experiment that isn't completed, so that a partial run never records Difficulty.
- As the Day shift, I want re-measuring an Eval task to replace its Difficulty, so that a stale reading never sits beside a fresh one.
- As the Day shift, I want Void Trials left out of Difficulty, so that a sandbox failure never counts as a failed review.
- As the Day shift, I want the command to list each Eval task's new Difficulty and whether it is discriminating, so that I know which Eval tasks to park.
- As the Day shift, I want a parked Eval task to keep its Difficulty, so that I can see why it was parked.
Judging:
- As the Day shift, I want an Experiment to save its list of discriminating Eval tasks in the Bar before the first Trial, so that what is judged can't be chosen from the Experiment's own results.
- As the Day shift, I want the Verdict to judge only discriminating Eval tasks, so that Eval tasks that always fail can't hide a regression.
- As the Day shift, I want approved Eval tasks with no Difficulty to keep running, so that a new Eval task gets measured without a separate mode.
- As the Day shift, I want those Eval tasks' Trials reported as measurement, apart from the judged Eval tasks, so that I can see their results without them deciding anything.
- As the Day shift, I want an Experiment refused if Eval tasks' Difficulty changes after its first Trial, as the rest of the Bar is, so that a resumed Experiment judges the list it started with.
- As the Day shift, I want Difficulty measured on another Harness, Model or Effort to still count, so that a release that changes the Model is still judged.
- As the Day shift, I want the Verdict to say how many judged Eval tasks were measured on a setup other than the Baseline's, so that I know when Difficulty may be out of date.
- As the Day shift, I want the Verdict to show, per suite, how many Eval tasks were judged, measured only, and void-dropped, so that a suite's real size is visible.
Advisory suites:
- As the Day shift, I want a suite with fewer than 20 discriminating Eval tasks marked advisory, so that a suite that can't tell Arms apart never passes or blocks a release.
- As the Day shift, I want an Advisory suite still to get its Verdict and intervals, so that I can watch it improve as it grows.
- As the Day shift, I want the threshold saved in the Bar before the first Trial, with a
--min-discriminating-tasksflag to set it for one Experiment, so that the rule is fixed like the rest of the Bar. - As the Day shift, I want the overall Verdict decided only by suites that aren't advisory, so that an Advisory suite's pass or fail doesn't carry it.
- As the Day shift, I want
release.shto show each Advisory suite and its Verdict in the release summary, so that I see what wasn't counted. - As the Day shift, I want
release.shto ask before releasing when every selected suite is advisory, as it asks on inconclusive, so that "we couldn't tell" never ships without a question. - As the Day shift, I want
experiments <id>, its--jsonand the Console's Experiment page to show which suites are advisory, so that every place a Verdict appears agrees with the release. - As the Day shift, I want an Experiment saved before this change to keep its old Bar and Verdict, so that a change of method doesn't rewrite past results.
Host work (#1434):
- As the Day shift, I want code review's Difficulty taken from The code-review Eval suite can't tell Arms apart: 7 of its 10 tasks never pass #1434's running A/A, Experiment
83721fbb…, so that no extra Trials are spent. - As the Day shift, I want Spec review measured once by an A/A with
--trials-per-task 3, giving 6 Trials per Eval task, while its Experiments stay at 1 Trial, so that tokens are spent once on measuring, not on every release. - As the Day shift, I want Eval tasks below the band parked in
parked/floor/and those above it inparked/ceiling/, with the README saying how one comes back, so that the two kinds can return for different reasons.
Implementation Decisions
- Difficulty in the task format. An Eval task's manifest gains an optional
difficultytable: passes, Trials, and the Experiment ID, commit, Harness, Model and Effort it was measured on. A missing table means the Eval task hasn't been measured. Manifests without it stay valid, so existing suites load unchanged. - Recording Difficulty is a flag on the existing
experiments <id>command,--record-difficulty, and needs no new top-level command. It refuses on an Experiment that isn't completed, and on one whose Arms differ in commit, Harness, Model or Effort. It pools the retained, non-void Trials of both Arms for each Eval task, and writes each Eval task's table, replacing any earlier one. The write is atomic per manifest, and the command locks the suites as approval does. - The band is 0.15–0.95, over at least 6 Trials. It is a constant of the method, not a Bar flag. A Difficulty from fewer than 6 Trials counts as unmeasured.
- The Bar gains, per selected suite, the list of discriminating Eval tasks, read when the Experiment starts, and
min_discriminating_tasks, which defaults to 20 and is set by--min-discriminating-tasks. Both are saved before the first Trial. A resume refuses if either would change, as it does for the rest of the Bar. - The Verdict is computed over the listed Eval tasks only. Each suite's Verdict gains:
- its counts of judged, measurement-only and void-dropped Eval tasks;
- its count of judged Eval tasks measured on another setup;
- an
advisoryflag.
The overall Verdict combines only suites that aren't advisory. When every suite is advisory, the overall Verdict is inconclusive, sorelease.shasks as it does today.
- The method gets a new name, so that a Verdict judged this way is never mistaken for one judged over every approved Eval task. Experiments saved earlier are read under their stored method. An ADR records why the judged list comes from recorded Difficulty, fixed before the first Trial, rather than from the Experiment's own results. Choosing it from the results would bias the Verdict.
- Measurement Trials run and are graded like any other. They are reported per Eval task under each suite, but enter no interval, no Verdict, no
pending_rechecksand no "about N more Eval tasks" prediction. - Rechecks. The decisive-Score rule applies only to judged Eval tasks.
release.shreads the advisory flag fromexperiments <id> --json, lists Advisory suites in its summary, and leaves its prompt rules unchanged: it asks on fail and on inconclusive.- The Console's Experiment page marks Advisory suites and shows the judged and measurement counts. It changes nothing else.
- Host work is outside this Spec, because the suites are private data on the host and recording Difficulty needs this Spec released. The code-review Eval suite can't tell Arms apart: 7 of its 10 tasks never pass #1434 carries on standalone with its A/A and its judgment-based classification. A separate
ready-for-humanrelease step, blocked by this Spec, installs the release, then records Difficulty, runs the Spec-review A/A and parks out-of-band Eval tasks.
Testing Decisions
-
A good test drives
thirdshiftthe way the Day shift does, through the CLI with the fake Harnesses, and checks what it prints, the JSON it emits and the files it writes. It never reaches into internals. -
The
experimentsCLI (tests/experiments.rsand itstests/experiments/modules) carries most of it:--record-difficultywrites each Eval task's table, pools both Arms, leaves out Void Trials, and replaces an earlier reading;- it refuses non-identical Arms, and an Experiment that isn't completed;
- the Bar saves the discriminating list and the threshold before the first Trial;
- a resume is refused when either would change;
- an unmeasured approved Eval task runs, appears under measurement, and changes neither the Verdict nor
pending_rechecks; --min-discriminating-tasksis saved and honoured;- an Experiment saved before the change keeps its stored Verdict.
Prior art:
unapproved_proposals_never_run_and_approval_only_changes_future_experiments,stop_and_resume_preserve_finished_trials_and_refuse_a_changed_bar, and the recheck tests intests/experiments/rechecks.rs. -
Verdict unit tests (beside the existing Verdict tests) check:
- judging only the listed Eval tasks;
- padding a suite with unlisted Eval tasks that always fail doesn't change its interval;
- a suite below the threshold is advisory, and is left out of the overall Verdict;
- all suites advisory gives inconclusive.
Prior art: the existing tests built with the
task(baseline_passes, candidate_passes, trials)helper. -
Release tests (
tests/release/experiments.rs) check thatrelease.shlists Advisory suites in its summary and asks when every suite is advisory. Prior art: the existing fail and inconclusive prompt tests there. -
No new seams.
Out of Scope
- The cost prompt before an Experiment starts (grill Q1.6, Q2.6). It's a standalone Ticket.
- The versioned output-format document (Q1.7). It's a standalone Ticket.
- The implement Eval suite (Q1.9). It's an idea issue, grilled after The code-review Eval suite can't tell Arms apart: 7 of its 10 tasks never pass #1434.
- Splitting suites into regression and capability suites. That waits until Difficulty has been measured.
- Changing the Bar's prior. The Verdict cross-check (
eval-suite-scaling.md, appendix) found the prior conservative, not wrong, and growing the suites is the better fix. - Raising Spec review's Trials per Eval task in Experiments. It stays at 1 (Q1.4).
- Injecting synthetic bugs to grow the suites.
- Recording Difficulty automatically after every Experiment.
Further Notes
- Tickets, roughly in order:
- Difficulty in the task format, and
--record-difficulty. - Judging only discriminating Eval tasks, with measurement-only Trials, the new method name and its ADR. Blocked by 1.
- Advisory suites in the Bar, the Verdict,
experimentsoutput, the Console andrelease.sh. Blocked by 2. - Outside the Spec: the
ready-for-humanrelease step, blocked by this Spec, which records Difficulty on the host. The code-review Eval suite can't tell Arms apart: 7 of its 10 tasks never pass #1434 stays standalone.
- Difficulty in the task format, and
- Blocked by Spec: a Bar a release that changes nothing can pass #1252. Its Spec PR Spec: a Bar a release that changes nothing can pass #1279 changes the same Verdict code, so this Spec's Tickets build on the two-level Bar.
- The glossary already has Difficulty, discriminating and Advisory suite.
site/how-it-works/anddocs/guide.md's Experiments section need the judged list and Advisory suites in the same pull request as Ticket 3.
Activity
JacobStephens2 commentedon Oct 28, 2026
The Experiment results format moved to 2
#1279 (merged) bumped the CLI view to
format: 2, because the two-level Bar renames fields that the format 1 contract covers. Seedocs/experiment-results.md. Format 2 isn't released yet: v0.17.3 has format 1.This Spec changes the view again. It adds the Bar's discriminating list,
min_discriminating_tasksand each suite'sadvisoryflag. Under the contract's versioning rules, that needs a new format number unless the changes reach the same release as format 2.docs/experiment-results.mdand its checked contract in the same PR.cargo test --test experiments result_formatcatches any undocumented field.Either way, the drift test in
tests/experiments/result_format.rsmust pass.