> Agent-ready spec from Diff of the Day (2026-12-01, playbook 1). Give this file to your coding agent (Claude Code, Codex, Cursor) and ask it to build the P0 requirements first.

# Spec: Mixed-model review panel

## Problem Statement
One model reviewing a pull request has blind spots, and a second run of the same model shares most of them. A small team usually picks one reviewer model and never measures what it misses. GitHub shows that several cheaper reviewers on different models catch more at the same price.

## Goals
- Catch more of 20 known past bugs with a three-reviewer panel than with one run of the strongest model, at the same or lower cost.
- Keep false alarms at or below the single-reviewer count by voting and verification.
- Report cost and time per pull request for both setups.

## Non-Goals
- Blocking merges: the panel only comments in this version, because trust comes after measurement.
- Eight reviewers or more: GitHub reports little gain after about three runs of one model, so three mixed reviewers are the test.
- Fine-tuning a reviewer: prompts and model choice are the only variables.

## User Stories
- As a maintainer, I want findings that two reviewers agree on shown first so that I read the likely bugs before the noise.
- As the owner of the bill, I want the cost per pull request for each setup so that I can pick a tier.
- Edge case: as a maintainer, I want a finding from one reviewer only to be kept when a verifier call can point to the exact line and failure, so that a real bug with one vote is not lost.

## Requirements
### P0
- A benchmark folder: 20 past pull requests, each with the diff and the later fix commit as the answer.
  - [ ] Each case names the file and line of the real bug.
- A panel runner: three reviewers on different models, each with only the diff and the repository rules.
  - [ ] Reviewers do not see each other's output.
- A merge step with voting and one verifier call for single findings.
  - [ ] Output is one list, ordered by votes and then severity.
- A score report: bugs caught, false alarms, cost and seconds, for the panel and for the single reviewer.
  - [ ] Both setups run on the same 20 cases.

### P1
- A comment-only integration for new pull requests.
  - [ ] It posts one summary comment and never approves or blocks.

### P2
- A cheaper tier with small models only, scored on the same benchmark.
  - [ ] The report adds it as a third column.

## Success Metrics
- Known bugs caught out of 20, per setup.
- False alarms per pull request.
- Median cost and time per review.

## Open Questions
- Which two or three models differ enough in what they miss?
- Is 20 cases enough to see a difference, or do you need 50?

## Timeline
Two days: benchmark and single-reviewer baseline on day one, panel, merge step and report on day two.

## Agent Instructions
- Suggested stack: one script, two or three model providers through one client, the repository's own review rules file as shared context.
- Build order: benchmark cases, baseline run, panel run, voting, verifier, report, then the comment integration.
- Safety: read API keys from the environment, send only the diff and the rules to the models, post comments only on your own repository, never approve or merge.
- Done when: the report compares the panel and the single reviewer on the same 20 cases with bugs caught, false alarms and cost.

## Sources
- https://github.blog/ai-and-ml/github-copilot/more-agents-fewer-blind-spots-inside-github-copilot-code-review/
