Skip to content

fix(pipeline): bring the review lanes in line with model tier rules 3 and 4 #11503

Description

@kyle-sexton

Parent

Refs #9154

Depends on

  • none: on the frontier now

Outcome

Every pull request's review verdict meets the repository's model tier rules: its verdict comes from a model at least as strong as the work it checks, or an objective failure signal backs a cheaper one.

Demo: read the review lanes' resolved model for two pull requests, one with an objective signal on the head and one without, and show which rule each meets.

Decisions

  • Decision 3 on Approve the must-not-break gate set, defaults and reviewer rule from #5678's design proposal #9154: no new rule is written. docs/plugin-philosophy.md "Model tiers" rule 3: "A judgment verdict is never on a weaker model than the work it checks." Rule 4: "A cheaper checker is acceptable only when an objective failure signal backs it". Review on Sonnet is allowed when the work it checks ran on Sonnet or a weaker model, or when an objective failure signal such as a build, test or exit-code check backs it. "Otherwise it is not allowed."
  • The repository's caveat stays: applying the advisor rule to a subagent verdict is "our reading, not a source statement".
  • The choice among S1, S2 and S3 is this slice's, and belongs on the slice with its measurement. Options in the proposal: S1 raises the profile to opus; S2 has Sonnet findings hold the PR, with Opus adjudicating disputes and confirming a PR with no objective signal; S3 keeps Sonnet where an objective signal covers the change and routes the rest to opus. The proposal's S2 pick is Basis: judgment.
  • The proposal names review: effort eval sweep for pinned agents, including Haiku 5.5 when it ships #5682 as the evidence. Its body sweeps pinned agents at medium and high effort and compares no models, so this slice is not blocked by it and takes its own Sonnet-against-Opus finding comparison on one pull request set.
  • Class: C3, per Approve the must-not-break gate set, defaults and reviewer rule from #5678's design proposal #9154's first acceptance criterion.

Key interfaces

  • The pr-review profile and the review-code and review-security routes in the PR pipeline contract.
  • The adjudicate-feedback route, the existing pattern for a judge at least as strong as the reviewer.
  • The ci-status requirement for both review lanes, which stays.

Done when

  • AC1: The Sonnet-against-Opus comparison on one pull request set is recorded on this issue, and the chosen option cites it.
  • AC2: The pipeline contract and the lanes implement the chosen option, and a test shows the review verdict for a pull request with no objective failure signal does not rest on a model weaker than the work it checks.
  • AC3: No text in the change states a second reviewer-strength rule. Any rule text it needs cites "Model tiers" rules 3 and 4.

Out of scope

Activity

  1. added
    host-run
    on Oct 31, 2026
  2. added theissue type on Oct 31, 2026
  3. added
    needs-triage
    on Oct 31, 2026
  4. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Medium
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none

    Understood: the review lanes (pr-review profile, review-code and review-security routes) should meet "Model tiers" rules 3 and 4. A review verdict should come from a model at least as strong as the work it checks, or an objective failure signal should back a cheaper one. The issue names the S1/S2/S3 choice as this slice's own decision, to be made on a Sonnet-against-Opus comparison recorded here (AC1). I treated that as an implementation choice, not an open intent question. Nothing is missing. No likely duplicates among open issues; it refs #9154.

    Automated triage, applied by the lanes App.

  5. added and removed
    needs-triage
    on Oct 31, 2026
  6. added
    status: ready
    status: confirmed
    and removed
    status: ready
    on Oct 31, 2026
  7. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  8. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: confirmed; its comment says why.

  9. kyle-sexton commented on Oct 31, 2026

    @kyle-sexton
    MemberAuthor

    Claimed by the Backlog HITL lane (host session), at GitHub Support's direction while laptop Lane 5 is paused; Lane 5 is being told. A PR follows here.

  10. kyle-sexton commented on Oct 31, 2026

    @kyle-sexton
    MemberAuthor

    Host run. This run compared Sonnet against Opus on the review lanes' graded eval cases, chose option S1 from that comparison and the tier rules, and opened the PR that moves both review lanes to Opus.

    What ran

    • Claude Code 2.1.316 (claude-opus-5-5, claude-sonnet-5-5).
    • claude plugin eval was run against a copy of plugins/review outside any git repository. A run in the worktree refused with "registers more linked worktrees than can be screened".
    • Each model ran in its own capped scope, launched together. Settings for both:
      • effort high (CLAUDE_CODE_EFFORT_LEVEL), the lanes' effort
      • --runs 2 -j 2 --ablation none --judge-model opus --scaffold
    • The PR set was 8 of plugins/review/evals' planted-defect cases, all of them run through the lane commands /review:code-review and /review:security-review with tools Read, Glob, Grep, Skill and Agent:
      • 4 code-review cases: closing-criterion-unmet, context-file-absent, large-diff-middle-file, large-diff-pages-to-end
      • 4 security-review cases: kill-switch-fail-open, merge-veto-dropped, secret-logged-encoded, trusted-actor-prefix-match
    • Docs read live on 2026-10-31: model config: model aliases and choose an effort level. high is for "Work where verification matters or edge cases are likely".

    Comparison (AC1)

    Case Opus runs Sonnet runs
    code-review-closing-criterion-unmet 1.00, 1.00 1.00, 0.50
    code-review-context-file-absent 1.00, 1.00 1.00, 1.00
    code-review-large-diff-middle-file 1.00, 1.00 1.00, 1.00
    code-review-large-diff-pages-to-end 1.00, 1.00 1.00, 1.00
    security-review-kill-switch-fail-open 1.00, 1.00 1.00, 1.00
    security-review-merge-veto-dropped 1.00, 1.00 1.00, 1.00
    security-review-secret-logged-encoded 1.00, 1.00 1.00, 1.00
    security-review-trusted-actor-prefix-match 1.00, 1.00 1.00, 1.00
    • Opus passed 16 of 16 runs. Sonnet passed 15 of 16.
    • Sonnet's miss was precision, not recall. It did flag the unmet 90-day criterion as blocking. It also called criterion 1 (CSV) only partly met and blocking, because the Accept check is an exact match. The case's expected outcome fails a review that reports criterion 1 as unmet, and all three judge votes were FAIL. I read the reply and agree with the grader.
    • Wall time: the Opus suite took 647 s, the Sonnet suite 423 s.
    • Not shown: one Sonnet trusted-actor run took 1 turn and passed its one regex grader, and the result shows no evidence text for it.
    • What it settles: with 8 cases at 2 runs each, the cases are near ceiling. Opus is not worse on any case. The sample does not separate the two models on recall.

    Choice: S1

    • Rule 3 says "A judgment verdict is never on a weaker model than the work it checks." Lane PRs come from the code-fix routes, which resolve to opus, and interactive sessions write on Opus or above. A Sonnet verdict on that work is allowed only under rule 4.
    • Rule 4 cannot apply. The review model is chosen at push time (pr-review-hosted.yml resolve-model), in parallel with the test lanes, so no objective signal is on the head yet.
    • S2 and S3 each add a mechanism. S2 needs a new Opus confirmation pass in ci-workflows' pr-review-cli.yml and a ci-status change. S3 needs a path or coverage classifier.
    • The comparison shows no quality cost to S1. Opus held every case, and Sonnet had the one miss.
    • Basis: docs/plugin-philosophy.md, "Model tiers"; the comparison above; docs/conventions/pr-pipeline.yaml models.routes.

    Criteria

    • AC1: met by this record. The comparison is above, and the choice cites it.
    • AC2: met in the PR.
      • pr-review is now opus, effort high, 75 turns.
      • A new models.test.mjs test asserts that review-code and review-security never resolve weaker than resolve-issue, fix-ci, address-feedback or resolve-conflicts.
      • It fails on the old profile: review-code (sonnet) is weaker than resolve-issue (opus).
      • It covers a PR with no objective signal, since the model is fixed before any signal exists.
    • AC3: met. The YAML comment and the changelog fragment cite "Model tiers" rules 3 and 4 and state no rule of their own.

    Every review caller resolves these two routes: pr-review-hosted.yml, pr-review-security-hosted.yml, and pr-review-main.yml through its matrix route:.

    Not covered: when resolve-model fails, the hosted review falls back to the reusable's own default model. That default is sonnet (ci-workflows pr-review-cli.yml@main), and changing it would be a ci-workflows change.

    The reusable caps its review job at 46 minutes, or 48 for the security lane. The longest Opus case here ran 27 turns of the 75-turn budget.

    PR: #11713 (ready, not merged; head 7f0bd9f200).

    Target labels: add none; remove host-run.

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

    host-runstatus: confirmed

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions