Skip to content

feat(review): routing evidence readout, and retarget the shadow by size - #801

Merged
kixelated merged 4 commits into
mainfrom
quest/m0/routing-evidence/README
Nov 22, 2026
Merged

kixelated merged 4 commits into
mainfrom
quest/m0/routing-evidence/README

Conversation

@kixelated

@kixelated kixelated commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

The first readout of routing evidence, one week after both experiments went live: the shadow reviewer (moq-dev/quest#676, merged 2026-11-13) and the writer A/B (moq-dev/quest#720, merged 2026-11-14).

  • Shadow reviewer: XS, S, and M have enough PRs. At every size, the effort one step below the routed one misses most of what the routed one finds. L is about four weeks short.
  • Writer A/B: no arm has reached its sample yet. As the Plan says, the quest now waits for a date: ## Scheduled 2026-12-01, when XS and S reach theirs. M reaches its sample about 2027-01-03.
  • Each review-table change and keeping the shadow are the maintainer's decisions, listed under `## Decisions

Decided 2026-11-22 (maintainer, /quest-run, comment), from the readout's tallies below:

  • Review table: ✅ keep every cell, Sol medium, medium, high, xhigh, xhigh for XS to XL (rejected: lower XS to low).
  • Shadow reviewer: ✅ retarget it: none at XS, one effort above the routed pick at S and M, one below at L until L reaches its sample, about 2026-12-20 (rejected: keep it unchanged until 12-20 then end it; end it now; a permanent second reviewer at L and XL, left to moq-dev/quest#802).

Applied in src/cli/review.ts: shadowOf(size, routed) reads a per-size step, SHADOW_STEPS (XS: null, S: +1, M: +1, L: -1, XL: -1), and quest eval seats the same shadow. quest review --help and the README describe it. A pick with no shadow at its size still seats one at its own effort while an earlier shadow has open findings, as before, so a branch resized to XS settles them. Both decisions are in the quest's Plan.

Choice made without asking: XL, which the decision did not name, keeps its step down alongside L.

Charts

From quest usage --since 2026-11-14 --ssh nixos --ssh fedora --json, run in the moq-dev/moq, moq-dev/moq.pro, and moq-dev/quest clones on the maintainer's desktop (the laptop was offline), 2026-11-14 to 11-21. Mermaid quadrant charts scale both axes to 0-1. Cost is plotted on a log scale, x = (log10 $ + 1) / 2.5, so 0 is $0.10, 0.4 is $1, and 0.8 is $10. Each label ends with its PR count, and "thin" marks too few PRs for the variance estimate.

quadrantChart
    title Local reviewers - cost per PR (log, $0.10 to $31.6) vs first-round findings per PR (0 to 3.5)
    x-axis Cheaper --> Costlier
    y-axis Fewer findings --> More findings
    XS low shadow 73: [0.017, 0.004]
    XS medium 143: [0.207, 0.022]
    S low shadow 120: [0.058, 0.038]
    S medium 285: [0.218, 0.055]
    M medium shadow 82: [0.152, 0.105]
    M high 208: [0.338, 0.202]
    L high shadow thin 25: [0.325, 0.354]
    L xhigh 61: [0.467, 0.487]
    XL high shadow thin 1: [0.41, 0.571]
    XL xhigh thin 6: [0.539, 0.952]
Loading
Reviewer (Sol) First-round PRs First-round findings per PR Cost per PR
XS low shadow 73 0.01 $0.11
XS medium 143 0.08 $0.33
S low shadow 120 0.13 $0.14
S medium 285 0.19 $0.35
M medium shadow 82 0.37 $0.24
M high 208 0.71 $0.70
L high shadow 25 1.24 $0.65
L xhigh 61 1.70 $1.47
XL high shadow 1 2.00 $1.06
XL xhigh 6 3.33 $2.22

For a writer, more first-round findings is worse. Cost here is the median merged PR with any attributed spend, not the mean the model check's procedure names, since one S arm B PR cost $533.

quadrantChart
    title Writer A/B - median cost per merged PR (log, $0.10 to $31.6) vs first-round findings per PR (0 to 3.5)
    x-axis Cheaper --> Costlier
    y-axis Fewer findings --> More findings
    XS A Sonnet high 22: [0.137, 0.014]
    XS B Opus medium 17: [0.245, 0.051]
    S A Opus medium 54: [0.29, 0.08]
    S B Sonnet high 52: [0.308, 0.109]
    M A Opus medium 57: [0.436, 0.22]
    M B Opus high 46: [0.645, 0.154]
    XL A Opus xhigh thin 1: [0.582, 0.857]
    XL B Fable medium thin 2: [0.926, 0.714]
Loading
Arm PRs First-round findings per PR (PRs) Rounds Handed back Caused by Median cost PRs per arm needed
XS A, Sonnet high 26 0.05 (22) 1.26 5 0 $0.22 26
XS B, Opus medium 19 0.18 (17) 1.65 2 0 $0.41 26
S A, Opus medium 67 0.28 (54) 2.25 7 3 $0.53 115
S B, Sonnet high 59 0.38 (52) 2.42 4 5 $0.59 115
M A, Opus medium 65 0.77 (57) 4.04 19 5 $1.23 292
M B, Opus high 51 0.54 (46) 2.76 15 4 $4.10 292
XL A, Opus xhigh 1 3 (1) 4 1 0 $2.85 count only
XL B, Fable medium 2 2.5 (2) 6 2 1 $20.66 count only

"Needed" is the number of PRs per arm to detect 0.25 first-round findings per PR (two-sided α 0.05, power 0.8).

Choices made without asking

  • The writer A/B is decided on first-round findings, with cost reported beside them. Per-PR cost is too heavy-tailed to separate the arms: its log has a standard deviation of about 1.5. Detecting a 25% cost difference would take about 380 merged PRs per arm at XS and 780 at S and M, months at the current rate. "Worth acting on" is set at 0.25 first-round findings per PR, about one more finding every four PRs. I recorded both in the Plan.
  • PRs whose first Implementer: line names an arm but another model are left out. There were 13, mostly quests resized after their arm was drawn, such as moq-dev/quest#777, written as XS arm B (Opus) and now an S PR. I did not change the arms rollup in src/cli/usage.ts. An iterate line's own size means the work left, so filing by the line's size would misfile iterates, and the rollup already separates these PRs by model. The 2026-12-01 readout applies the same exclusion.
  • The wait is now a ## Scheduled date, not a Waiting item. The date clears on its own, and until then quest unblocked won't offer the quest. It reads quest/m0/routing-evidence/README.md is blocked.
  • No tallies are carried into the model check yet. It already reads this quest's readout first. The final readout carries both experiments' tallies at once.

Validation

  • Ran quest usage --since 2026-11-14 --ssh nixos --ssh fedora --json (this checkout's build) in each repository's clone: 631 moq PRs, 339 moq.pro, 74 quest. The laptop host was offline, so its sessions are missing. That, plus sessions token-max could not price fully, leaves 5 to 27% of each arm's merged PRs with no attributed cost.
  • Per-PR arm metrics, variance, and sample sizes come from the pulls rows with the rollup's own rules: only the latest PR of each branch counts tallies, and the shadow is kept apart. Each arm's PR, merged, hand-back, and Caused by counts matched the arms rollup's rows for the same cells. Its first-round findings per PR, counted over merged PRs only, are within 0.05 of the rollup's, which also counts open PRs. The shadow pairs' first-round totals matched the reviewers rollup to within the PRs only one seat reviewed.
  • Matched individual findings from 3,920 saved review files copied from the three hosts' .git/quest/review/. Checked 15 random matches by hand, and all 15 were the same defect. Re-ran the match at 0, 3, 30 lines and anywhere in the file. Routed-only beat shadow-only at S and M at every window (S 20-25 vs 1-6, M 36-42 vs 7-13), and L stayed 17-24 vs 10-17.
  • The retarget: shadowOf over every REVIEWERS entry gives none at XS; S Sol medium to high, Opus low to medium; M Sol high to xhigh, Opus medium to high; L Sol xhigh to high, Opus high to medium; XL xhigh to high. quest review --help prints the new rule. The fake-CLI tests in test/review.test.ts and test/eval.test.ts run the real command end to end at each changed size, including a resize to XS that settles the old shadow's open finding.
  • No quest eval run: neither REVIEWERS in src/cli/models.ts nor the review prompts changed, only which effort the measurement-only shadow runs at.
  • quest check --base origin/main, just check, and just test (1570 passed) pass.

Public API

quest review and quest eval run seat a different shadow: none for XS, one effort above the pick for S and M, one below for L and XL. No flags, output formats, or records change.

Follow-ups

None.

Related

  • moq-dev/quest#802 - guardrails, started concurrently. It edits /quest-run and review routing. Its high tier's second reviewer is the permanent second review the shadow decision left to it, and both PRs edit src/cli/review.ts, so whichever lands second merges the other.

Models

  • Size: L
  • Implementer: Claude Code, claude-opus-5-5, unknown effort
  • Implementer: Claude Code, claude-opus-5-5, unknown effort (iterate, S)
  • Implementer: Claude Code, claude-opus-5-5, unknown effort (iterate, XS)

🤖 Generated with Claude Code

(Written by Claude Opus 5.5)

Review

Rewritten by quest review after each round.

  • Head: 7a5baad

  • Base: origin/main at f6f98c2

  • Risk: medium, If the shadow reviewer's effort routing is wrong, agents reading `quest review` output get misleading shadow findings, and per-PR review spend shifts (up at S and M, gone at XS), which a revert of this change undoes; the change touches no listed export, record shape, permission, sandbox, or credential, and the shadow already ran automatically, so this is a behavior change rather than a high-tier one.

  • Classified: medium by Claude Code, claude-haiku-5-5, low effort, session f43fae79-e7e6-4272-bd94-16ba201f2a6b

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

  • Session: 01a2019b-ab79-7d80-a521-3b08dbb06f5a, round 2

  • Score: 9/10, The updated assertion correctly verifies the default M-sized review’s xhigh shadow, with no actionable defects found; builds and tests were not run as instructed.

  • Rounds: 2; first round 0; findings 0: fixed 0, refuted 0, open 0

  • Findings: none

  • Reviewer: Codex, gpt-6.1-sol, high effort, shadow

  • Session: 01a2019b-ab78-7200-af63-af098fb4e4b9

  • Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0

kixelated and others added 2 commits November 21, 2026 19:31
Shadow reviewer pairs settle XS, S, and M (L needs about four more weeks).
The writer arms have not reached their sample, so the readout waits for
2026-12-01, deciding the arms on first-round findings since per-PR cost
is too heavy-tailed to separate them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title Routing evidence Routing evidence readout of 2026-11-22: shadow settles XS-M, writer arms wait for 12-01 Nov 22, 2026
@kixelated

Copy link
Copy Markdown
Collaborator Author

Maintainer decision (2026-11-22, /quest-run) on the readout's two ## Waiting decisions:

  • Review table: ✅ keep every cell, Sol medium, medium, high, xhigh, xhigh for XS to XL (rejected: lower XS to low).
  • Shadow reviewer: ✅ retarget it: drop it at XS, run it one effort above the routed pick at S and M, and keep it one below at L until L reaches its sample (about 2026-12-20) (rejected: keep it unchanged until 12-20 then end it; end it now; a permanent second reviewer at L and XL, left to quest: scale review, CI, and landing to the risk tier #802).

(Written by Claude Opus 5.5)

Per the maintainer's decision on the 2026-11-22 routing evidence readout:
XS runs no shadow, S and M run it one effort above the routed pick to
measure whether raising them pays, and L and XL keep the step down until
L reaches its sample. The review table stays as it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kixelated kixelated changed the title Routing evidence readout of 2026-11-22: shadow settles XS-M, writer arms wait for 12-01 feat(review): routing evidence readout, and retarget the shadow by size Nov 22, 2026
@kixelated
kixelated marked this pull request as ready for review November 22, 2026 04:56
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5b54f444-1531-4ff9-88db-534f00bff2f8
Commits

Reviewing files that changed from the base of the PR and between 67893bb and 7a5baad.

Files selected for processing: 8

  • README.md
  • quest/m0/routing-evidence/README.md
  • src/cli/main.ts
  • src/cli/review-eval.ts
  • src/cli/review-record.ts
  • src/cli/review.ts
  • test/eval.test.ts
  • test/review.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues. One test assertion got weaker; a suggestion is inline.

Approach: sound. A per-size step table that shadowOf reads changes the shadow in one place, and quest review and quest eval both use it. The open-findings fallback still settles an old shadow's findings.

Reviewed changes

All three commits were reviewed: the readout, the change to ## Scheduled, and the shadow retarget.

  • SHADOW_STEPS / shadowOf(size, routed): the shadow is now one effort above the pick for S and M and one below for L and XL. XS gets no shadow. An effort past either end of the ladder, or off it, returns null.
  • seatsFor and evalSeats: both now pass the PR's size through. The stale and open-shadow seating is unchanged, so a branch resized to XS still settles the old shadow's findings.
  • Docs and help: the README, the quest review --help text and the doc comments now say "one effort away".
  • Quest doc: adds the 2026-11-22 tallies and decisions. The Waiting item becomes ## Scheduled 2026-12-01 - …, which matches the format src/core/doc.ts parses.
  • Tests: expectations are updated for the new efforts. The "no shadow below low" case is now an XS resize case.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

Comment thread test/review.test.ts Resolved
… goes unread

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

One commit since the prior pullfrog review.

  • Test assertion tightened: test/review.test.ts now asserts the default size M's xhigh shadow, so a leaked XS size from the stranger's PR would fail the check. This addresses the earlier inline finding.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 380562a Nov 22, 2026
17 checks passed
@kixelated
kixelated deleted the quest/m0/routing-evidence/README branch November 22, 2026 05:12
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