Skip to content

The code-review Eval suite can't tell Arms apart: 7 of its 10 tasks never pass #1434

Closed

Description

@JacobStephens2

This was generated by AI during triage.

Parent

#1252

Why

Two A/A Experiments (#1267, then #1370 on the repaired suites) show that the code-review Eval suite can't tell Arms apart. In both runs, the only tasks that passed any Trial were the same three: bug-182-pr-99, bug-652-pr-462 and bug-686-pr-267. The other 7 tasks in today's suite failed every Trial, in both Arms:

Task Trials, both runs Passed
bug-1084-pr-1053 12 0
bug-175-pr-17 12 0
bug-303-pr-293 12 0
bug-559-pr-449 12 0
bug-607-pr-592 12 0
bug-847-pr-788 12 0
bug-603-pr-566 (added in #1370) 6 0

A task that always fails ties 0/3 against 0/3, so it adds nothing to the Verdict. In effect the suite measures 3 tasks. In #1370:

  • Its 95% accuracy interval for a change that does nothing was [−0.268, +0.067], about 0.33 wide.
  • At 80%, the interval sat entirely below zero, so a no-op would read as a regression.
  • The Experiment estimates that a no-op needs about 26 more tasks to clear accuracy with 80% probability.

The Grader's reasons on the rechecked Trials suggest more than one cause. On bug-175-pr-17, every review describes the target defect the wrong way round. On bug-603-pr-566 and bug-847-pr-788, the reviews report other plausible findings and never reach the target. Nobody has yet looked at the other four tasks Trial by Trial.

What to do

  1. Classify each never-passing task. Compare its target bug and criteria with all of its review reports and the Grader's reasons, then record one of:

    • fair but hard: keep it;
    • criteria too narrow: reports name the defect in other words, so reword the criteria to accept them;
    • out of scope for the two-axis skill: park it with the six correctness-review seed tasks for Spec: a verification skill beside code review #1371.

    Criteria changes must keep the same target. Don't loosen them just to create disagreement between Arms.

  2. Grow the suite with tasks whose bugs the two-axis thirdshift-code-review skill is asked to find: a Spec line or documented standard covers them. Candidates: merged thirdshift bug fixes, including Bug origins settled in the Console.

  3. Rerun A/A on code review alone. Use --suite code-review, both Arms on the same commit, on a quiet host: about 60 Trials and 5 hours at today's size. Record the rechecks, then post the results here in Run the A/A Experiment on the host #1267's format.

  4. Decide the advisory question. Should a release Experiment report a suite that falls short of Set the default pass level from the A/A Experiment #1268's floor without letting it block a release, until the suite measures enough tasks? If yes, file it as a follow-up Ticket.

Why a human: the suites are private data on the host, outside the repository. Each classification is a judgment call. Each A/A run costs hours of sessions.

Acceptance criteria

  • A backup of the code-review suite is kept on the host before any edit.
  • Each of the 7 tasks has a recorded classification and action. Name only thirdshift's own public tasks.
  • In a code-review-only A/A Experiment on the revised suite, at least half of the tasks pass at least one Trial. Its rechecks are recorded and its results are posted here.
  • The advisory decision (step 4) is recorded here, with a follow-up Ticket if the answer is yes.

Out of scope

Activity

  1. added
    enhancement
    ready-for-human
    on Oct 27, 2026
  2. added a commit that references this issue on Oct 27, 2026
  3. JacobStephens2 commented on Oct 28, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Step 4: the advisory decision

    Decision: yes. A suite with too few Eval tasks that can tell Arms apart is reported, but it can neither pass nor block a release.

    This was decided in the grill on #1434's follow-ups (docs/grill-with-docs/1434-eval-follow-ups.md). Q1.5 decided it, and Q2.5 set the threshold at 20 discriminating Eval tasks, saved in the Bar.

    The follow-up Ticket already exists: #1480, "Advisory suites: too few discriminating Eval tasks can't pass or block a release", a Ticket of Spec #1477. I've filed nothing under #1252: Q3.1 deliberately kept this work out of #1252's Spec, so that its Spec PR #1279 isn't held up.

    This step's code-review A/A Experiment supports the decision:

    • 9 of its 20 Eval tasks passed in any Trial.
    • Under both 0.17.x's Bar and issue-1252's Bar, the Verdict hinges on whether one task splits 3–0 between Arms.

    Pooling both Arms gives 6 Trials per Eval task. On that count, 7 of the 20 tasks fall inside #1477's discriminating band (Difficulty 0.15–0.95, here 1 to 5 passes out of 6):

    • the 5 thirdshift tasks bug-182-pr-99, bug-652-pr-462, bug-686-pr-267, bug-1086-pr-1061 and bug-1435-pr-1270;
    • 2 cross-repository tasks.

    Two more cross-repository tasks passed all 6 Trials, which is at the ceiling. The remaining 11 never passed, which is the floor. Under #1480, the suite would therefore be an Advisory suite. #1481 records these Difficulties on the host once #1477 is released.

  4. JacobStephens2 commented on Oct 28, 2026

    @JacobStephens2
    OwnerAuthor

    A/A Experiment results (step 3)

    One code-review-only A/A Experiment ran on the thirdshift host, on the revised suite. Both Arms used commit 1df25ae (v0.17.1) with codex · gpt-6.1-sol · xhigh and --suite code-review, under 0.17.x's Bar: margin −0.10, credible level 0.95, prior 1. The Grader was claude · claude-opus-5-5 · medium. It ran 120 Trials from 2026-10-27 15:35 to 21:50 EDT: 343 Arm-minutes for Baseline and 330 for Candidate.

    Verdict: inconclusive. All 7 borderline Trials are rechecked, and none was decisive.

    Code review (20 Eval tasks × 3 Trials per Arm)

    All 20 approved tasks counted, and none was dropped:

    • 14 are thirdshift tasks: 8 kept and 6 new.
    • 6 are new tasks from other repositories, counted here but not named.
    • The one proposed task was skipped.
    Baseline better Tied Candidate better
    Accuracy (tasks) 5: bug-182-pr-99 by three Trials; bug-1435-pr-1270 and bug-686-pr-267 by one each; 2 cross-repository tasks by one each 13 2: bug-1086-pr-1061 and bug-652-pr-462, by one each
    Wrong findings (tasks) 0 20 0
    Interval on the mean difference 95% (the Experiment's own)
    Accuracy [−0.221, +0.039]
    Wrong findings [−0.065, +0.069]

    The suite is inconclusive on accuracy and passes on wrong findings. The Experiment estimates that a no-op would need about 47 more tasks to clear accuracy with 80% probability. pass_cubed, the share of tasks where all three Trials passed, was Baseline 0.20 and Candidate 0.15.

    bug-182-pr-99 passed every Trial in #1267 and #1370. This time it passed all 3 Baseline Trials and none of the Candidate's. In each Candidate Trial, the review reported a nearby race (a Foreign commit before the first push) instead of the target (a Foreign commit during a Repair, after the single fetch). Both Arms run the same commit, so this is sampling variance. Still, this one task carries most of the interval's shift below zero.

    Passes per task (Baseline / Candidate, out of 3 each)

    Task Baseline Candidate
    bug-182-pr-99 3 0
    bug-686-pr-267 3 2
    bug-652-pr-462 2 3
    bug-1086-pr-1061 (new) 1 2
    bug-1435-pr-1270 (new) 1 0
    bug-1084-pr-1053, bug-1167-pr-868 (new), bug-1261-pr-756 (new), bug-1341-pr-1131 (new), bug-175-pr-17, bug-603-pr-566, bug-607-pr-592, bug-847-pr-788, bug-961-pr-743 (new) 0 each 0 each
    Cross-repository task A 3 3
    Cross-repository task B 3 3
    Cross-repository task C 2 1
    Cross-repository task D 1 0
    Cross-repository tasks E and F 0 each 0 each
    Total 19 / 60 14 / 60

    Acceptance criterion: not met

    9 of 20 tasks passed at least one Trial; the criterion needs at least 10.

    • Passed at least once: 5 of the 14 thirdshift tasks (bug-182, bug-652, bug-686, bug-1086 and bug-1435) and 4 of the 6 cross-repository tasks.
    • Never passed: 9 thirdshift tasks, listed in the table above with 0 each, and 2 cross-repository tasks.
    • The 6 new thirdshift tasks: only bug-1086 and bug-1435 passed.
    • The 6 cross-repository tasks: 4 passed.
    • The 8 kept tasks: the same three passed as in Run the A/A Experiment on the host #1267 and Rerun the A/A Experiment on repaired Eval suites #1370.

    No criteria were changed to reach the count. The only Trials that could have raised it to 10 were the two borderline bug-1261 Trials, and both clearly miss the target (below).

    Rechecks (7 borderline, none decisive)

    Task Arm, Trial Grader Recheck
    bug-175-pr-17 Baseline 0, Candidate 1 fail, wrong finding fail, not a wrong finding. Each frames the post-Repair check backwards (a stale ref that needs refetching) but quotes a real parent-Spec requirement. This is the same call as #1370's rechecks.
    bug-1261-pr-756 Baseline 1, Candidate 1 fail fail. The only finding in each is the all-Tickets-closed gate; neither mentions the order of label events or createdAt.
    bug-1086-pr-1061 Baseline 0 fail fail, as a near miss. It names the mechanism and ties it to "every Session log", but not to the "all six Harnesses" acceptance criterion, which the criteria require.
    Cross-repository task D Baseline 2 fail fail. It explicitly excludes the target's case.
    Cross-repository task C Baseline 0 pass pass. It states the target's mechanism and ties it to the change's stated intent.

    Void and failed Trials

    • Void: none in either Arm. The new tasks whose [trial] base is a Spec branch, and the cross-repository tasks, all prepared and ran.
    • Failed, as recorded: two timeouts, both on bug-961-pr-743, one per Arm, so they tie. Each reviewer ran part of the integration suite inside the sandbox while a Spec run was building and testing on the same 4-CPU host, at a load average of up to 21 (Scheduled Passes start Runs during an Experiment on the same host, so Trials time out under load #1494). The other four Trials of that task took 4 to 5 minutes each.
    • Interruptions:
    • Other notes: some Trials couldn't build the code under review: crates.io is blocked in the sandbox and the offline index was incomplete. Those reviewers reviewed without running tests, and others vendored from the cache. This matches earlier runs.

    Under the issue-1252 Bar

    issue-1252's Bar is margin −0.10, pass level 70%, fail level 95%, with a pass needing only the pass-level lower bound above the margin (paired-dirichlet-v3, ADR-0025). I computed it from the Verdict's difference_counts using the same posterior: Dirichlet(counts + prior/7) over per-task differences of (−3…+3)/3, with linear quantiles and 100,000 draws. The calculation reproduces the stored 95% interval to within ±0.002.

    Metric difference_counts (−3…+3) 70% (pass level) 95% (fail level) Decision
    Accuracy [1, 0, 4, 13, 2, 0, 0] [−0.144, −0.017] [−0.223, +0.039] inconclusive: the lower bound is below −0.10, and the upper bound at 95% isn't below zero
    Wrong findings [0, 0, 0, 20, 0, 0, 0] [−0.020, +0.020] [−0.068, +0.067] pass

    Suite: inconclusive under the new Bar too.

    As a sensitivity check only, not a result: counting bug-182 as a tie (counts [0, 0, 4, 14, 2, 0, 0]) gives a 70% interval of [−0.079, +0.015]. That would pass. So the Verdict at 20 tasks still turns on whether a single task splits 3–0.

  5. JacobStephens2 commented on Oct 28, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI.

    Step 1: classification of the 7 never-passing tasks

    The classification was done on 2026-10-27, before the suite grew. I rebuilt this record from three sources on the host:

    The test for "in scope" is the one #1434 sets: a Spec line or documented standard must cover the target bug. For each task I also asked whether any report named the defect in other words. None did, so no criteria were reworded.

    Task Trials, all runs Passed Classification Action
    bug-1084-pr-1053 18 0 Fair but hard Kept
    bug-175-pr-17 18 0 Fair but hard Kept
    bug-603-pr-566 12 0 Fair but hard Kept
    bug-607-pr-592 18 0 Fair but hard Kept
    bug-847-pr-788 18 0 Fair but hard Kept
    bug-303-pr-293 12 0 Out of scope for the two-axis skill Parked with the correctness-review seed tasks for #1371
    bug-559-pr-449 12 0 Out of scope for the two-axis skill Parked with the correctness-review seed tasks for #1371

    Criteria too narrow: none.

    Fair but hard (kept)

    • bug-1084-pr-1053.
      • Covered by: the Spec's acceptance criterion "show --json's latest event comes from the latest record".
      • What the reviews do: no review mentions that session::tail_events keeps a fixed 64 KiB raw-byte window, which OTLP-wrapped records overflow. Several Spec reviews explicitly call the tail handling correct. The rest report a Session-link 404 or a duplicated test fixture.
    • bug-175-pr-17.
      • Covered by: Issue Keeping the PR mergeable: merge the Base branch and conflict Repair #8's conflict Repair, after which a correct resolution must be pushed.
      • What the reviews do: they report other findings (--no-commit mergeOptions, duplicated setup, hook handling). Seven of them frame the post-Repair check the wrong way round: as a stale ref that needs refetching, not a shared ref that a fetch can move. That is a different claim, so no wording change to the criteria would let them catch it. They're rechecked as fail, not as wrong findings.
    • bug-603-pr-566.
      • Covered by: Issue Reproducing each finding #542 says the Security run reproduces each finding after its audit.
      • What the reviews do: none says a failed reproduction after a recorded audit is reported as "audit failed". The reports raise other plausible findings: duplicated triage predicates, the publication race, evidence loss.
    • bug-607-pr-592.
      • Covered by: the Spec line "the session ends incomplete rather than asking", together with that reason reaching the Cause and Hold.
      • What the reviews do: none reaches the missing incomplete: <reason> ending. They report the private-record handoff, the Codex delegation instruction and the stale Base diff.
    • bug-847-pr-788.
      • Covered by: the README's promise that reservation pushes skip hooks.
      • What the reviews do: none mentions the missing --no-verify. Many report the lost-race ls-remote fallthrough, which the criteria exclude. That exclusion stays, because it is a different defect, not the target in other words.

    Out of scope (parked)

    • bug-303-pr-293. The defect lives between two modules that are each correct against their own Spec text:
    • bug-559-pr-449. The target is a new test's 2-second wall-clock bound, which also covers the Run's finishing work: Failed run preservation, Worktree removal and Claim release. That makes the test timing-fragile on slow runners. Neither the Spec (Deepen Harness process execution around one owned lifetime #448) nor CODING_STANDARDS.md says anything about test timing, so it is test-robustness correctness, not a Standards or Spec finding.

    Both now sit in ~/.thirdshift/evals/parked/correctness-review/tasks/ on the host. The suite was backed up before any edit, to suites.bak-20261027-pre1434/.

  6. JacobStephens2 commented on Oct 28, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Closing: three criteria met, the A/A criterion not met

    Acceptance criterion Result
    A backup of the code-review suite before any edit Met: suites.bak-20261027-pre1434/ on the host
    A recorded classification and action for each of the 7 tasks Met: 5 kept as fair but hard, 2 parked for #1371, none with criteria too narrow (classification comment above)
    In a code-review-only A/A on the revised suite, at least half the tasks pass a Trial; rechecks recorded; results posted Not met. 9 of 20 tasks passed at least one Trial. All 7 rechecks are recorded and the results are posted above.
    The step 4 advisory decision, with a follow-up Ticket if yes Met: yes, via #1480 (Spec #1477)

    I haven't loosened any criteria to reach 10. The only Trials that could have done it, the two borderline bug-1261 Trials, clearly miss the target.

    #1434 closes here rather than running another A/A, because the work that remains is tracked elsewhere:

    Other issues filed while running the A/A:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions