Skip to content

Review writing and medium tickets run on Sonnet 5.5 unless the team chose its heavy model - #375

Merged
nambok merged 1 commit into
mainfrom
feat/sonnet-routes
Oct 30, 2026
Merged

nambok merged 1 commit into
mainfrom
feat/sonnet-routes

Conversation

@nambok

@nambok nambok commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Moves the two routes the evals showed to hold their quality from Opus 5.5 to Sonnet 5.5: the reviewer's reading and writing of a review, and medium tickets. The critic, which decides what blocks, stays on Opus, and so do complex tickets. A team that saved its own heavy model in Settings keeps it on every route.

Thresholds were set before any run. Each config ran 2 repetitions on main (runs 40979499303, 40979510392, 40979520698, 40979531837):

Route Recall Blocking recall Precision Blocking accuracy Clean cases blocked Pass rate Cost
Review, Opus writer + Opus critic 40/40 40/40 0.69 53/56 3 $0.049 / review
Review, Sonnet writer + Opus critic 40/40 40/40 0.82 55/56 1 $0.020 / review
Medium ticket, Opus 20/20 $0.091 / ticket
Medium ticket, Sonnet 20/20 $0.040 / ticket

Changes

  • agent/provider.rs:
    • heavy_model_chosen is true when the team saved a heavy model.
    • review_model_id() and implement_model_id(complexity) pick each route's model.
    • MEASURED_LIGHT_MODEL is claude-sonnet-5-5.
    • A unit test covers both the default team and a team that chose its heavy model.
  • review_agent::generate_review uses review_model_id(). critique_findings is unchanged (heavy).
  • implement.rs: the model comes from implement_model_id. Simple tickets stay on primary and complex tickets stay on heavy.
  • review_pr.rs: the review's reward record names the model that wrote it. Analytics already count every call under its own model (model#<id>#calls), so the change can be checked per model afterwards.

Verification

  • cargo fmt --all --check, cargo clippy --workspace -- -D warnings, cargo test --workspace (1138 + 1281 + 605 + 2 passed).
  • Both evals are near their ceiling: both models found every planted defect and passed every ticket. They show Sonnet is no worse on this set, not that it matches Opus on harder work. The per-model analytics are the check in production.

…hose its heavy model

Measured on the route evals (reviewer-evals.yml route suites, two
repetitions each), against Opus 5.5 on both:
- Review writing on Sonnet with the Opus critic: 40/40 planted defects
  found and blocking, verdict right on 55/56 cases (Opus: 40/40, 53/56),
  at $0.020 a review against $0.049.
- Medium tickets on Sonnet: 20/20 hidden tests passed (Opus: 20/20), at
  $0.040 a ticket against $0.091.
Both are within the thresholds set before the runs.

The critic, which decides which findings are kept and so what blocks,
stays on the heavy model, as do complex tickets and every other heavy
call. A team that saved a heavy model in Settings keeps it on every
route. The reward record of a review names the model that wrote it;
the analytics already count every call under its own model.
@nambok
nambok merged commit 9807ddb into main Oct 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant