Skip to content

Spec: blind pairwise grading of process Trials by a Grader panel and people #1872

Closed
6 of 6 issues completed

Description

@JacobStephens2

This was generated by AI during a grill-with-docs session.

Grilled in docs/grill-with-docs/1484-implement-suite.md (Rounds 2–10). Decisions: ADR 0028 (who decides a Verdict is fixed in the Bar, and when a Grader panel may stand in for people) and ADR 0027. Research: docs/research/eval-process-arms-and-human-review.md and docs/research/eval-grader-panel.md. Blocked by #1484, whose process Trials this grades.

Problem Statement

#1484's suite grades a process Trial by running the real fix's tests. Tests show whether the work is done, but not whether it's good: whether a person would merge it, whether its tests are proportionate, or whether it does more than asked. In the Day shift's hand-run process comparison, the evidence that mattered most came from a blind human merge call per pull request, from blind model Graders reading both presentation orders, and from cross-tests. thirdshift has none of these for pairs of Trials.

No outside tool fills the gap. Langfuse, Braintrust, LangSmith, Phoenix, promptfoo, Inspect and Harbor were checked. None hides which Arm produced an output from a human reviewer or randomises the sides, and none computes a Verdict.

Solution

Blind pairwise grading of each Baseline–Candidate pair of Trials (Baseline Trial k with Candidate Trial k), by a Grader panel, by people, or both. The Bar fixes who decides before the Experiment starts (ADR 0028).

  • Evidence for every Grader: base-tests (each Arm's new tests run on the unchanged base) and cross-tests (each Arm's new tests run against the other Arm's code), run offline. They're evidence, never Scores (Q3.7).
  • The Grader panel: the Models the Bar names, one or more, on any supported Harness, several per family allowed. Each reads every pair in both orders with a per-criterion rubric. It gives a merge call per side and a preference (A, B, tie or both bad), and a call that flips with the order is a tie (Q3.8, Q4.2, Q5.1). The panel votes one vote per family by default, or one per Model (Q6.3). Two family rules are on by default: a Grader from either Arm's family doesn't vote while another family is available, and stand-in needs a set number of families, two by default (Q6.1). A tied merge call is not ready (Q6.2).
  • The blind pairwise page in the Console. It shows the Ticket, a numbered acceptance checklist, the two diffs side by side with code before tests, and the evidence, with the sides randomised for each pair and no Arm identity or model Scores. The reviewer first makes a sealed merge call per side, then a preference, then optionally the panel's rubric. Records are append-only and per reviewer, and there's a CLI equivalent (Q2.3).
  • Two Bar settings: the panel and the people, each off, beside the Verdict or counted in it, with the people's seeded sample and overlap. When counted, a Trial passes only if the code Grader passes and it's called ready to merge. When both are counted, the panel's call stands in on unread pairs, and agreement below the Bar's level makes the Verdict inconclusive (Q3.6, Q4.1, Q9.1, Q9.2).
  • Panel cost: estimated per Model before the Experiment, and capped by a spending limit that pauses grading (Q5.3).
  • New providers: Kimi on Fireworks and DeepSeek on Baseten. DeepSeek runs through opencode. Kimi waits on the Kimi CLI Harness, which is its own issue (Q6.4, Q7.2).

User Stories

  1. As the Day shift, I want each Arm's new tests run on the unchanged base, so that I can see whether its tests check the change at all.
  2. As the Day shift, I want each Arm's new tests run against the other Arm's code, so that defects the diffs and fail-to-pass tests miss come to light.
  3. As the Day shift, I want a cross-test failure shown as a disagreement to look into, not counted as a defect, so that one Arm's over-specific test doesn't condemn the other.
  4. As the Day shift, I want to name a Grader panel in the Bar, from one Model up to about eleven, on any Harness thirdshift supports, so that I can choose the panel's breadth and cost per Experiment.
  5. As the Day shift, I want several Models from one family allowed in a panel, so that different strengths within a family can be used.
  6. As the Day shift, I want each panel Grader to read every pair in both orders, with a flip counted as a tie, so that position bias doesn't decide a call.
  7. As the Day shift, I want each panel Grader to give a per-criterion rubric with evidence, a merge call per side and a preference, with the reason before the winner, so that its calls can be audited.
  8. As the Day shift, I want the panel to vote one vote per family by default, each family first taking its own majority, so that a family with many Models can't outvote the rest through a shared bias.
  9. As the Day shift, I want the vote unit as a Bar setting, so that an Experiment can test whether per-family voting matters.
  10. As the Day shift, I want a Grader from either Arm's family kept out of the vote while another family is available, with that rule as a Bar setting on by default, so that self-preference is controlled but can be measured.
  11. As the Day shift, I want every Grader's own calls reported whether or not it voted, so that same-family leaning shows up in my data.
  12. As the Day shift, I want a tied panel merge call to count as not ready, for both Arms, so that ties are judged cautiously and symmetrically.
  13. As the Day shift, I want a blind page per pair in the Console, showing the Ticket, the acceptance checklist, both diffs side by side with code before tests, and the evidence, so that I can judge the work itself.
  14. As the Day shift, I want the page to hide which Arm is which, and every model Score, until my calls are recorded, so that my judgment isn't steered.
  15. As the Day shift, I want the sides randomised for each pair, so that position bias averages out.
  16. As the Day shift, I want to make a sealed merge call per side before giving a preference or a rubric, so that my unaided call is recorded first.
  17. As the Day shift, I want to give a preference of A, B, tie or both bad, and optionally fill in the panel's rubric, so that my judgment and the panel's can be compared item by item.
  18. As the Day shift, I want my records append-only and attributed to me, with a CLI equivalent of the page, so that grading is auditable and scriptable.
  19. As the Day shift, I want the Bar to set the panel and the people each to off, beside or counted, so that one Experiment can calibrate the panel and another can rely on it.
  20. As the Day shift, I want to read only a seeded sample of pairs, so that an Experiment with 60 pairs doesn't need me to read all 60.
  21. As the Day shift, I want two or more people to grade, each with a seeded sample and a set overlap, with a shared pair counting as ready only if every reader says so, so that I learn how much careful people disagree.
  22. As the Day shift, with only people counted on a sample, I want the Verdict to rest on the sampled pairs alone and say inconclusive when the sample is too small, so that a small sample never gives a false answer.
  23. As the Day shift, with both counted, I want the panel's call to stand in on unread pairs, and the Verdict to be inconclusive when people–panel agreement on the sample is below the Bar's level, so that model calls decide only when they match ours.
  24. As the Day shift, I want people–people and people–panel agreement reported in every mode where people grade, so that I can judge the panel over time.
  25. As the Day shift, I want the panel's cost estimated per Model before the Experiment, priced from the frozen table, so that I know what an eleven-Model panel will spend.
  26. As the Day shift, I want a spending limit for the panel that pauses grading when reached, so that API-billed Models can't overspend.
  27. As the Day shift, I want Kimi on Fireworks and DeepSeek on Baseten usable as panel seats, so that my panel can span more families.

Implementation Decisions

  • Pairs. Baseline Trial k is paired with Candidate Trial k for each Eval task, and the pair is the unit of every pairwise judgment.
  • Evidence runner. Base-tests and cross-tests run offline in the code-Grader sandbox, using Spec: process Trials and a code-graded implement Eval suite #1484's overlay mechanism with each Arm's own new test files. Results go to the page and to every panel Grader's packet.
  • Panel packets extend today's blind packet, with shuffled neutral labels and identifying lines removed. They gain both diffs, the evidence, the rubric and the presentation order. Each Grader session runs in the Grader sandbox as model Graders do now.
  • Panel configuration in the Bar: a list of Harness and Model seats; the vote unit (per family, the default, or per Model); the same-family-as-Arm rule (on by default); the number of families needed for stand-in (two by default); and the agreement level. Model families come from each seat's provider. Today's single-Grader exclusion, which compares exact Model names, gives way to the family rule.
  • People in the Bar: the setting (off, beside or counted); the sample size per person; the overlap; and the list of readers. The sample is drawn by pair from the Bar's seed.
  • Verdict. In counted modes, a Trial's pass needs the code Grader's pass and a ready-to-merge call from whoever decides that pair under ADR 0028. The statistics are unchanged. Agreement below the Bar's level makes a stand-in Verdict inconclusive. A sample-only Verdict uses the sampled pairs and reports how many more it would need.
  • Console page. A new page per pair under the Experiment, plus a queue of the pairs assigned to the signed-in reader. It builds on the /scores form's practice of revealing nothing until the reader has submitted. Records are append-only.
  • Providers. The sandbox proxy's provider hosts gain Fireworks' and Baseten's API hosts. opencode's configuration takes an API key per provider instead of one.
  • Panel cost is priced from Spec: process Trials and a code-graded implement Eval suite #1484's frozen price table, reported apart from the Arms, with a panel spending limit in the Bar that pauses grading as an unavailable Grader does now.

Testing Decisions

  • Test external behaviour: Experiment JSON and Verdicts under each Bar setting, Console HTTP responses, and what's revealed before and after submission.
  • Seams: thirdshift experiment candidate --json through the Experiment test fixture, with fake Harness scripts acting as panel Graders. The Console's HTTP tests cover the page, as the existing scoring tests check that human Scores come before the model's are revealed.
  • Prior art: the Experiment model-Grader and code-Grader tests, and the Console's experiments and scoring tests. No Console browser tests exist, so the page is tested over HTTP.

Out of Scope

Further Notes

  • The research found same-family Graders only slightly more correlated in their errors than cross-family ones (0.437 against 0.389), but family preference real and pointing one way. Accuracy stops improving at about five Graders.
  • An eleven-Model panel over 60 pairs in both orders costs about $900 at API rates, on an assumed session size to be checked on a pilot pair.

Sub-issues

Sub-issues

6 of 6 Issues completed
Loading 6 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions