Skip to content

risk!: risk buys review, not CI - #819

Draft
kixelated wants to merge 5 commits into
mainfrom
quest/m0/benchmark/review-not-ci
Draft

kixelated wants to merge 5 commits into
mainfrom
quest/m0/benchmark/review-not-ci

Conversation

@kixelated

@kixelated kixelated commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes quest/m0/benchmark/review-not-ci.md: a PR's risk tier now changes only how it is reviewed and approved, never which CI it runs. A high PR gets stronger review instead of the full suite.

Changes

  • Review routing (src/cli/review.ts):
    • A head the classifier or an override holds high takes both reviewers from the largest size's list (XL), whatever its size. One is the pick and the other is the second reviewer, on a different model. With the writer's model avoided, that is Sol xhigh plus Opus xhigh, or Sol xhigh plus Sonnet high when Opus wrote it.
    • A high head runs no shadow, so it gets exactly two reviewers. A shadow left with open findings resumes as it last ran to settle them.
    • When a reviewer raises the tier, the XL second reviewer runs at once, and the pick stays as it is (see Choices).
    • Medium keeps one reviewer at the size's pick, and low is unchanged.
  • Eval (src/cli/review-eval.ts): quest eval run seats each case the way quest review now does for its tier, including a high case's second reviewer, and reports a second tally. Without this the eval could not tell the two builds apart.
  • Full suite removed: src/cli/suite.ts, the quest suite command, test/suite.test.ts, RiskFile.suite, and the ## Full suite parsing are gone. In the README, the Full suite example, the Run the full suite section, and the CI column of the tier table are replaced by one sentence saying every tier runs the checks its diff reaches.
  • Skills (assets/skills/run.md, assets/skills/review.md): updated to the new routing; the maintainer asked for this work. The quest file is deleted, and the benchmark epic's plan states the outcome.

Choices for review

  • ## Full suite is not refused. The plan expected a RISK.md with ## Full suite to "fail as an unknown section, like any other", but the parser never refused unknown sections. Everything else is prose the classifier reads, and moq-dev/moq's RISK.md has a prose ## Tiers section. So the section is now plain prose, the plan's intent of no special case, and I dropped the test that would refuse it. No RISK.md in moq-dev or kixel-ai lists the section, so a refusal would guard nothing, and AGENTS.md rules out compatibility shims.
  • "The top entry of the review ranking quest models prints": quest models prints only writers, so I read this as the reviewer ranking (REVIEWERS) at its top size, XL. Both of a high head's reviewers are that list's first entries on different models.
  • A reviewer's raise doesn't move the pick. The pick's list follows only the classifier's tier and the maintainer's override, which are stable for a head. Moving the pick on a raise replaced the session that raised, which dropped its raise, so the tier and the pick flipped between runs of the same head (review findings 4 and 6). A head that only reviewers judge high therefore gets the size's pick plus the XL second reviewer.
  • No shadow on a high head (review finding 3), matching the plan's rejection of a third reviewer.

Public API

  • Breaking: RiskFile from quest/core loses suite, and the quest suite command is removed. To migrate, drop any read of suite, and run only the scoped checks in a gate that called quest suite.
  • quest eval run --json: seats may carry second: true, and totals/by gain second keys. Existing keys keep their meaning.
  • No wire impact.

Validation

Follow-ups

None.

Waiting

  • Maintainer: the review's round-3 checkpoint. Sonnet high reported no findings (9/10). Sol xhigh (8/10) found two medium gaps in round 2's fix, which resumes an old shadow as it last ran: the fix ignores --exclude-model and the latest writer, and it never falls back when that shadow's harness is down. Stepping back, the design I would build from scratch is the one here: the tier from a stable source picks the list, a second reviewer comes from the top list, and a high head runs no shadow. The gaps are only in the settling path.
    • Continue (recommended): settle at the old shadow's own model and effort only while that model isn't avoided and its harness is up, else at the pick. That is the rule secondFor already applies to a second reviewer's own model, about 5 lines plus a test.
    • Revert round 2's fix: always settle at the pick, which is simpler, but a raise only the old shadow made is lost when its session is replaced, and the tier flips again.
    • Done when the maintainer answers on this PR; /quest-iterate then applies it and reruns /quest-review.

Models

  • Size: M
  • Implementer: Claude Code, claude-opus-5-5, unknown effort (arm A)

🤖 Generated with Claude Code

Review

Rewritten by quest review after each round.

  • Head: e48adfc, named in full once no reviewer reports a finding

  • Base: origin/main at 470157d

  • Risk: high, It removes the `quest suite` command and the `suite` field of the exported `RiskFile` from `quest/core`, and makes `parseRiskFile` refuse any base RISK.md that still has a `## Full suite` section, so repositories whose gates run `quest suite` or whose RISK.md lists that section will see `quest review` and their gates fail until they change, and reverting restores the command but not the removed CI-facing behavior already set by their updated files.

  • Classified: high by Claude Code, claude-haiku-5-5, low effort, session 8652b966-8c3f-4272-8d35-8e1320bb05cb

  • Reviewer: Codex, gpt-6.1-sol, xhigh effort

  • Session: 01a20552-f7bc-7210-abf0-28097479128b, round 3

  • Score: 8/10, The session-preservation finding is fixed, but retaining the old shadow's model introduces exclusion and fallback regressions.

  • Rounds: 3; first round 1 (low 1); findings 4 (medium 3, low 1): fixed 2, refuted 0, open 2

  • Findings, open until the next round settles them:

    • Medium, src/cli/review.ts:2279: Honor model exclusions when retaining an outstanding shadow
    • Medium, src/cli/review.ts:2277: Allow reviewer fallback to replace an unavailable retained shadow
  • The last round's findings, at 967999d:

    • Fixed: medium, src/cli/review.ts:2004: Preserve an outstanding shadow's configuration when suppressing shadows; src/cli/review.ts:2277–2283 now preserves the outstanding shadow's saved harness, model, and effort, allowing its raising session to resume without the reported effort change.
  • Reviewer: Claude Code, claude-sonnet-5-5, high effort, second

  • Session: eab8dcdc-1ef2-4155-9458-a4386c3bc15b, round 3

  • Score: 9/10, The README High row now matches the routing, and a shadow with open findings on a head that turned high resumes as it last ran, so no finding remains.

  • Rounds: 3; first round 9 (medium 5, low 4); findings 10 (medium 5, low 5): fixed 6, refuted 4, open 0

  • Findings: none

  • The last round's findings, at 967999d:

    • Fixed: low, README.md:1720: Tier table says every high head gets both reviewers from the largest size's list; README.md:1720's High row now says no shadow, a second reviewer from the largest size's list, and a pick from that list only when the classifier or an override set the tier, which matches the code at review.ts:2082.

kixelated and others added 3 commits November 22, 2026 12:17
A high head is reviewed by two models from the largest size's list,
whatever its size, and RISK.md's ## Full suite and quest suite are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title Risk buys review, not CI risk!: risk buys review, not CI Nov 22, 2026
kixelated and others added 2 commits November 22, 2026 14:25
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated

Copy link
Copy Markdown
Collaborator Author

Maintainer decision (2026-11-22, /quest-run):

  • Second reviewer for high PRs: the maintainer rejected Sonnet reviewing Opus-written work ("don't have sonnet review opus, that's extremely dumb") and asked to consider Fable, Astra, and Gemini for high-risk and high-difficulty PRs.
  • ✅ A reviewer is never a weaker model than the PR's writer, everywhere: every size and risk tier (rejected: high risk only). Tiers: Sonnet < Opus, Sol < Fable, Astra. Sonnet reviews only Sonnet-written work.
  • ✅ High PRs: Sol xhigh plus a frontier second reviewer. Evaluate claude-fable-5-2 and gpt-6.2-astra as candidates against Opus xhigh (rejected: also gpt-6.2-sol in this eval). Use more than the 5 high cases, and weigh findings on clean PRs and cost, not only catches: Opus xhigh's 16 findings on a clean PR is a cost.
  • ✅ Shadow-reviewer fix: continue. The leftover shadow finishes its findings only when its model is allowed and available, else the first reviewer does (rejected: revert that fix).
  • ✅ Frontier reviewers for L and XL PRs that are not high-risk: a follow-up quest in this PR, eval-gated (rejected: widening this PR).
  • ✅ quest/m1/gemini-reviewer.md: add Gemini 4 Neon beside Carbon as a candidate, and move the quest to m0 so it feeds the high-risk pair, in this PR's follow-ups (rejected: add Neon and keep m1).

(Written by Opus 5.5)

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant