diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/LICENSES/MIT-martian.txt b/LICENSES/MIT-martian.txt new file mode 100644 index 0000000000000000000000000000000000000000..d7da7e66f99f7c7c6c92346a4e13bd41f2ae4cc0 --- /dev/null +++ b/LICENSES/MIT-martian.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Martian (withmartian.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/LICENSES/MIT-qodo.txt b/LICENSES/MIT-qodo.txt new file mode 100644 index 0000000000000000000000000000000000000000..25b6be4e90d209a6ed6a4abc2306f6118291b999 --- /dev/null +++ b/LICENSES/MIT-qodo.txt @@ -0,0 +1,25 @@ +MIT License + +Qodo PR-Review-Bench (https://huggingface.co/datasets/Qodo/PR-Review-Bench, revision +a73957c450a70693a743260e5637fffc44625f16), curated by the Qodo team. Its dataset card declares +`license: mit` and names no copyright line of its own; the copyright is the Qodo team's. + +Copyright (c) the Qodo team + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000000000000000000000000000000000000..a6142071d34d94ab70d7b3a9e8c5de65137caf9d --- /dev/null +++ b/NOTICE @@ -0,0 +1,41 @@ +This dataset was assembled by Quickchat AI and is distributed under the Apache License, +Version 2.0 (LICENSE). Its `archive/` and `slim/` folders carry their own NOTICE. + +It contains material derived from AACR-Bench v1.0 (https://github.com/alibaba/aacr-bench, +dataset commit ab8af8d5c74e2a4d1945d247ea4bbc49f93eb33f, harness commit +68a569759289a83654a59d06db2a72910edf0a4a), licensed under the Apache License, Version 2.0. +AACR-Bench ships no NOTICE file of its own. MODIFIED WORK: the `aacr_references` config reproduces AACR-Bench's reference comments for the 185 runnable PRs with our derived keys, bot-derived flags and labels added; `prs`, `defects` and `exclusions` are a new answer key built on AACR-Bench's PR selection; nothing in AACR-Bench itself was changed. Cite: Zhang et al., "AACR-Bench: +Evaluating Automatic Code Review with Holistic Repository-Level Context", arXiv:2601.19494 (2026). + +The `martian_*` configs contain material from Martian's offline code-review benchmark +(https://github.com/withmartian/code-review-benchmark, commit +e616e849755441da38f18bf3adba2c9583b03803): its golden comments and, in the tables, its +published tool-level judgements. MIT License, Copyright (c) 2025 Martian (withmartian.com); +the full licence text, whose copyright and permission notice must accompany these portions, +is in LICENSES/MIT-martian.txt. That part stays under the MIT licence. + +The `qodo_*` configs contain issues from Qodo PR-Review-Bench +(https://huggingface.co/datasets/Qodo/PR-Review-Bench, revision +a73957c450a70693a743260e5637fffc44625f16), curated by the Qodo team, MIT licence; the full +licence text is in LICENSES/MIT-qodo.txt. That part stays under the MIT licence. + +Code quoted anywhere in this release (defect evidence and sites, review comments, judge +verdicts and reasoning, Elo judgments, Qodo's problematic-code snippets) comes from the +reviewed open-source repositories at the commits each row or case names, and stays under +each project's own licence, including copyleft (AGPL) and source-available ones (for +example sentry's FSL, n8n's Sustainable Use Licence, elasticsearch's and timescaledb's +source-available parts). The release carries short excerpts only: the reviewed repositories' +code itself (their trees and diffs) is not included. + +Comments written by third-party review tools (the vendors Martian and Qodo publish, the +upstream GitHub Copilot reviews) and the descriptions PR authors wrote are not included: each +is replaced by a hash and a link to the original. Two copies of vendor text do ship verbatim, +in the run archive and the slim bundle: the Martian judge's extractions of the re-judged +vendors' comments (the scoring dirs' `candidates.json` and `evaluations.json`) and, in the +archive only, the blind annotation's vendor candidates (`analysis/.../fair/secret.json`). That +text belongs to its authors, the vendors' review bots that posted it on public pull requests, +and is not covered by this release's licence. AACR-Bench's own reference comments, some of +which AACR-Bench derived from review bots' comments (flagged `bot_derived`), ship under +AACR-Bench's Apache-2.0 licence as part of its dataset. + +The licence of each reviewed repository is in `prs.repo_license`, `martian_prs.repo_license` and `qodo_prs.repo_license` (SPDX ids). diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..31d68a970ea6e9222568cdd4e7c4afd6e014dfac --- /dev/null +++ b/README.md @@ -0,0 +1,1077 @@ +--- +license: apache-2.0 +language: +- en +pretty_name: Real defects in code review (QuickReview benchmark data) +size_categories: +- 100K`. The code, the benchmark definition and both papers are in the +QuickReview repository, https://github.com/quickchatai/quickreview, under +`bench/aacr/`. + +The two papers: + +- *Measuring whether a code review finds the real defects: a verified defect + benchmark on AACR-Bench, applied to eight reviewers at their best-shot + configurations* (the benchmark paper, arXiv ``). +- *QuickReview: a multi-pass automated code reviewer, its design, its cost, + and how it performs on a verified defect benchmark* (the technical report, + arXiv ``). + +`bench/aacr/claims.json` in the repository lists every benchmark number of +both papers, the README, `bench/aacr/docs/` and this card, with the data and +the script behind it, and one command recomputes them all from this data with +no model call ("How to verify"). Every one of them passes: a number the release could not check was cut from the pages or reworded to the number the data gives. Published numbers that +differed from the data were corrected to it before this release ("Versions"). +Third-party figures the pages quote (AACR-Bench's own metadata, Qodo's and +Martian's published scores and leaderboards) are attributed to their source +and listed in the manifest as quotes, not as claims. + +## Read this first + +- **No human has checked the key or the judge yet.** LLM agents verified the + 520 defects and the 3,093 exclusions against the code, and an LLM judge + graded every review. A human audit of a sample is planned and will be + published with its agreement numbers. Until then, treat the key as an + LLM-built answer key, with the error rate that implies. +- **The key was partly built from QuickReview's own earlier output.** The + candidates checked for each PR included the comments that reviewers posted + in our runs, QuickReview's among them. They were anonymised, and every + candidate was checked against the code. A reviewer whose earlier comments + seeded the key can still be favoured by it. `defects.provenance_*` records + where each defect came from: 369 of the 520 were raised by the blind hunt or + by an AACR reference, and the papers report recall on those separately. +- **The authors build one of the reviewers (QuickReview), and it was tuned on + these benchmarks.** The last tuning round was mined from misses on part of + each benchmark, including 145 of the 185 AACR-Bench PRs. The tuning sets are + named per PR (`prs.set`, `prs.in_s40`, `martian_goldens.audit_split`), and + the papers and the README report the held-out results beside the tuned ones. +- **Most results rest on one judge from one model family.** A second judge + from another family scored only the earlier gpt-6-sol study. The final + comparison, the frozen build, the open-model runs, Martian and Qodo each + have one GPT judge. See "Judges" below. +- **AACR-Bench's reference labels are agent-produced**, not human labels + (`aacr_references.is_ai_comment`, `source_model`). At least 80 of the + references marked human are rewritten review-bot comments + (`aacr_references.bot_derived`). +- **Each reviewer ran once and each review was judged once,** except where a + config says otherwise: the stability runs, the second judge, the judge + re-run. +- **Builds and judges differ between rows.** The open-model runs used a + mid-October build and the `gpt-6.1-sol-high` judge; the frozen build and the + papers' comparisons used `gpt-6-sol-high`. Compare rows within one judge. + +## What is in here, and which claim each part backs + +The claim ids in the second column are claim groups of the repository's +`bench/aacr/claims.json`, which describes each one (`groups`). The `runs` +config lists a group on each run directory its claims' recompute keys read +(`runs.claims`): a key that names the run, its arm or its scoring directory, +and for a script that reads the run archive the keys its `reads` ties to each +unit (the keys whose numbers moved when that unit's files were changed and the +script rerun). A group none of whose keys reads a run is on no run: +`do:sets`. +Volume names drop the `quickreview-runs-` prefix and the `.tar.zst` suffix. +The scripts are in the QuickReview repository under `bench/aacr/`. + +| Published claim | Claim id | Tables | Archive volumes | Recomputed by | +|---|---|---|---|---| +| README "AACR-Bench, verified defects" chart and full table; benchmark paper `tab:final`, `tab:grades`, `tab:lang`, `tab:costfinal`, `tab:selection`; QuickReview paper `tab:final` | `readme:aacr`, `bench:final-tables`, `qr:tab:final` | `prs`, `defects`, `arms`, `reviews`, `defect_verdicts`, `comment_verdicts` | `aacr-frozen-build`, `aacr-final-comparison-g61`, `aacr-claude-code-opus55`, `answer-key` | `final/score.sh` on the slim bundle; `validation.json` | +| The frozen build on 185 PRs (benchmark paper `tab:finalbuild`; QuickReview paper `tab:frozen`) | `bench:tab:finalbuild`, `qr:tab:frozen` | as above, arm `quickreview-frozen` | `aacr-frozen-build` | `validation.json`; `recompute/aacr_bootstrap.py` | +| Bootstrap intervals and paired differences (README "+8.3 points [+1.9, +14.6]"; `tab:ci` in both papers) | `readme:aacr-ci` | `prs`, `defects`, `defect_verdicts`, `reviews` | as above, `analysis` | `recompute/aacr_bootstrap.py` | +| README "Same model, two reviewers" chart | `readme:same-model` | `arms`, `defect_verdicts` | `aacr-opus55-basemodel`, `aacr-gpt6sol-study`, `aacr-claude-code-opus55`, `aacr-frozen-build`, `aacr-final-comparison-g61` | `validation.json`; `final/score.sh` | +| README "Other models" table | `readme:other-models` | `arms` (`quickreview-glm-53-flash`, `quickreview-deepseek-v41-flash`, `quickreview-luna`, `quickreview-opus55`), `reviews`, `defect_verdicts` | `openmodels-glm53-full`, `openmodels-dsv41f-full`, `openmodels-dsv41f-low`, `openmodels-dsv41f-mix`, `openmodels-driver`, `aacr-luna-basemodel`, `aacr-opus55-basemodel` | `recompute/open_models.py`; `validation.json` | +| README "Tuning and held-out PRs" | `readme:heldout-aacr`, `readme:heldout-martian`, `readme:heldout-qodo` | `prs`, `defect_verdicts`, `martian_goldens`, `martian_verdicts`, `qodo_issues`, `qodo_reviews`, `qodo_verdicts`; the repository's `bench/aacr/sets/` (Qodo's held-out PRs: `sets/qodo-heldout31.json`) | `aacr-frozen-build`, `martian-final`, `qodo-final`, `analysis` | `recompute/heldout.py` | +| The earlier gpt-6-sol study, two judges (benchmark paper `tab:sol-summary`, `tab:second-sol` and the rest of that section) | `bench:sol-study` | `arms` (`*-sol`, `claude-code-opus55`), `defect_verdicts`, `comment_verdicts` | `aacr-gpt6sol-study`, `aacr-claude-code-opus55`, `aacr-v2-default-rerun` | `validation.json`; `final/score.sh` | +| Base models (QuickReview paper `tab:bm185`, `tab:bm40`, `tab:bmsplit`) | `qr:basemodel` | `arms`, `defect_verdicts` | `aacr-final-comparison-g61`, `aacr-gpt6sol-study`, `aacr-v2-default-rerun`, `aacr-opus55-basemodel`, `aacr-luna-basemodel` | `validation.json` | +| Stability (`tab:stab-sol`, `tab:stab`) | `bench:tab:stab-sol`, `qr:tab:stab` | `arms` (`quickreview-stab-r1` to `-r4`) | `aacr-stability-repeats`, `aacr-v2-default-rerun` | `validation.json` | +| Best-shot configuration search (`tab:bestshot`, `tab:transfer`) | `bench:bestshot` | `arms` (`*-s40`) | `aacr-bestshot-search`, `aacr-final-comparison-g61` | `final/score.sh` | +| AACR-Bench's own metric and the reference-label study (`tab:aacr`, `tab:labels-sol`) | `bench:final-tables`, `bench:sol-study` | `aacr_matches`, `aacr_references`, `aacr_reference_labels` | `aacr-final-comparison-g61`, `answer-key` | `validation.json` | +| Harvested Copilot 2025 reviews (`tab:copilot2025`) | `bench:tab:copilot2025` | `arms` (`copilot-2025-upstream`, links only, and the arms below the table), `reviews`, `defect_verdicts`, `comment_verdicts`, `aacr_matches` | `aacr-upstream-copilot`, `aacr-gpt6sol-study`, `aacr-v2-default-rerun`, `aacr-final-comparison-g61`, `aacr-claude-code-opus55` | `final/score.sh` (its `tab:copilot2025` call) on the slim bundle; `verify_claims.py` from the tables | +| README Martian chart and table; benchmark paper `tab:martianfinal` and the golden-comment audit | `readme:martian`, `bench:tab:martianfinal` | `martian_prs`, `martian_goldens`, `martian_reviews`, `martian_verdicts`, `martian_scores` | `martian-final`, `analysis` | Martian's scorer on the slim bundle (`verify_slim.py`); `validation.json` | +| Martian development rounds, posting policies, judge noise (`tab:martianraw`, `fig:martianpolicy`) | `bench:tab:martianraw`, `bench:tab:martianfinal` (the judge-noise numbers) | `martian_scores`, `martian_verdicts` | `martian-tuning-rounds`, `martian-posting-variants`, `martian-judge-calibration` | Martian's scorer on the slim bundle | +| README Qodo chart and table; benchmark paper `tab:qodo` | `readme:qodo`, `bench:tab:qodo` | `qodo_prs`, `qodo_issues`, `qodo_reviews`, `qodo_verdicts` (QuickReview's two builds: `work_dir` and `tool` `final1-qodo-pr100` and `quickreview-frozen`, `ext-r6-qodo-pr100` and `quickreview-2026-10-02`) | `qodo-final`, `qodo-r6-and-vendors` | our scorer, `ext/qodo_judge.py`, on the slim bundle (`verify_slim.py --qodo-gt`; Qodo publishes none); `validation.json` | +| README "Judged side by side" (pairwise Elo) and its chart | `readme:elo` | `elo_judgments`, `elo_ratings` | `elo-pairwise`; the reviews: `ccvq-hard20-claude-max-sonnet`, `ccvq-claude-code-high`, `ccvq-quickreview-on-claude`, `martian-final`, `openmodels-glm53-full`, `openmodels-dsv41f-mix` | `recompute/elo_ratings.py --check-ratings` | +| `docs/DIGITALOCEAN.md`: speed and cost table, the smokes, the review time limit | `do:speed`, `do:glm-smoke`, `do:gemma-smoke`, `do:timeouts` | none (archive only) | `openmodels-smokes`, `openmodels-gpt61-baselines`, `openmodels-glm53-full`, `openmodels-driver`, `aacr-frozen-build` | `recompute/do_speed.py` | +| QuickReview paper: cost mechanism (pass counts, lens shares, validator dispositions) | `qr:mechanism` | `reviews` | `aacr-gpt6sol-study` (the transcripts' numbers-only extracts) | `recompute/passes.py`, `recompute/lens_credit.py`, `recompute/tokens.py` | +| Benchmark paper `tab:martiantiers` (QuickReview on Martian by its own severity) | `bench:tab:martiantiers`, `bench:tab:martianfinal` | `martian_goldens` | `analysis` (`analysis/relabel/martian_tiers.labels.jsonl`, its prompt, `LABELS.json`; the blind `tune20` classification), `martian-posting-variants`, `martian-tuning-rounds` | `relabel/martian_tiers.py --compute` | +| QuickReview paper: the validator's kills and the lost-credit attribution | `qr:mechanism`, `qr:tab:final` | `defects`, `reviews`, `defect_verdicts` | `analysis` (`analysis/relabel/lost_credit.labels.jsonl`, its prompt, `LABELS.json`), `aacr-gpt6sol-study` | `relabel/lost_credit.py --compute` | +| QuickReview paper: tuning appendix (prompt iterations, levers, lenses) | `qr:app:tuning` | `arms`, `defect_verdicts` | `aacr-dev-iterations`, `aacr-dev-levers-presets` | `verify_claims.py` (its table checks, `recompute/claim_metrics.py`); `recompute/missed_defects.py` | +| QuickReview paper: the max preset example | `qr:basemodel` | `arms` (`quickreview-max-g61`) | `aacr-g61-smokes` | `compare.py` | + +`tab:copilot2025`'s rows are these arms, on the 19 PRs that have a +`copilot-2025-upstream` review (`final/copilot19.txt`): + +| Row | Arm | +|---|---| +| QuickReview default | `quickreview-default-sol` (the `tab:final` row of that name is `quickreview-default-g61`) | +| QuickReview default, current build | `quickreview-default-sol-rerun` | +| QuickReview default, gpt-6.1-sol | `quickreview-default-g61` | +| QuickReview low | `quickreview-low-sol` | +| Claude Code (Opus 5.5) | `claude-code-opus55` | +| open-code-review | `ocr-medium-sol` | +| pi-review | `pireview-medium-sol` | +| OpenCode | `opencode-bridge-sol` | +| Codex CLI | `codex-medium-sol` | +| Copilot 2025 (upstream) | `copilot-2025-upstream` | + +The claim ids come from `bench/aacr/claims.json` alone: a run or an arm +carries exactly the claim groups whose recompute keys read it (`runs.claims`, +`arms.paper_tables`, `arms.in_paper`), and `validation.json` lists the run +families and archive volumes of each group whose keys name a run (a group +whose keys read only the key, a set or a published number lists none). A +claim's `q` key names its exact rows. + +The other run families back no published number and ship anyway: the fast +option of the frozen build, the v1.0.7 re-baseline, the review-efficiency +arms, the refactor smoke, configuration ablations, development and plumbing +runs, freeze validations, a duplicate-merge check, a partial base-model probe, +the Opus 5.5 Martian smoke, one-PR probes, and the SWE-PRBench runs (archive +only). Their AACR reviews and verdicts are in the tables under arms of their +own (`arms.in_paper` is false); `runs.purpose` says what each one was for. + +## Configs + +One split, `test`, in every config. Which PR set a row belongs to is the `set` +column (AACR: `smoke10`, `dev10`, `holdout10`, `fresh10`, `rest145`); the +papers' 40-PR selection set S40 is `prs.in_s40`. Every review, verdict and +match row carries `run_family`, the family of the run directory it was read +from (the archive volume of the same name). + +```python +from datasets import load_dataset +defects = load_dataset("quickchatai/quickreview-bench", "defects", split="test") +verdicts = load_dataset("quickchatai/quickreview-bench", "defect_verdicts", split="test") +runs = load_dataset("quickchatai/quickreview-bench", "runs", split="test") +``` + +| Config | Rows | +|---|---| +| `defects` | 520 | +| `exclusions` | 3,093 | +| `prs` | 185 | +| `aacr_references` | 1,418 | +| `aacr_reference_labels` | 253 | +| `arms` | 187 | +| `reviews` | 5,593 | +| `defect_verdicts` | 18,928 | +| `comment_verdicts` | 25,810 | +| `aacr_matches` | 28,894 | +| `martian_prs` | 50 | +| `martian_goldens` | 173 | +| `martian_reviews` | 4,010 | +| `martian_verdicts` | 13,093 | +| `martian_scores` | 529 | +| `qodo_prs` | 100 | +| `qodo_issues` | 580 | +| `qodo_reviews` | 2,215 | +| `qodo_verdicts` | 12,888 | +| `elo_judgments` | 654 | +| `elo_ratings` | 140 | +| `runs` | 928 | +| `aacr_candidates` | 3,748 | +| `pr_diffstats` | 185 | + +**The run index** + +- `runs` — one row per shipped run index unit, 928 rows. Most are + run directories and their scoring directories; the open-model driver's + files (scripts, logs, gate reports) and a few top-level trees (the answer + key, the analysis, the re-run logs, the Elo runs, the what-if study) are + units of their own, and `path` shows which. Each row gives its path in + the archive and its volume (`archive_volumes`), its family and the family's + title, the benchmark and PR set, the number of cases, start and end times, + the reviewer configuration (`arm_config`), the model it billed + (`model_billed`), its judges, what it was for (`purpose`), the claim + groups whose recompute keys read it (`claims`, the ids above) and the + tables that hold its rows (`hf_tables`). `qcr_commit` is the QuickReview + commit the run's image was + built from (for a third-party tool's run, the harness around that tool). The + repository's history was rewritten before publication, so the ids the runs + recorded are not in the public history: `qcr_commit` names the public main + commit the recorded one became, with `qcr_commit_on_public_main` true and + `qcr_commit_match` saying how it was matched: `same`, the rewrite's commit + maps carry the recorded commit to it; `ancestor`, the rewrite dropped the + recorded commit because it changed only files that were never published, so + it maps to the nearest ancestor the rewrite kept, whose published files are + the same. A build with no public equivalent (from a side branch that was + never merged, or from another clone whose commits no rewrite map holds) + keeps its recorded id, with `qcr_commit_on_public_main` false and + `qcr_commit_match` null. The dirty flag is separate: a dirty build + (built from a checkout with uncommitted or untracked files; the recorded id + ends in `-dirty`) maps to the commit it was built on, keeps the `-dirty` + suffix and is flagged `qcr_commit_dirty` true (false for every other build): + it is that commit plus whatever was not committed, which was not saved, so + not necessarily the commit itself. A row that recorded no build has + `qcr_commit`, `qcr_commit_on_public_main`, `qcr_commit_match` and + `qcr_commit_dirty` all null. The archive's `run.json` and + `case-summary.json` files carry the same remap, and its `RUNS-INDEX.json` + holds the same rows, plus the families that were withheld and a + description of each claim group the rows carry. + +**The answer key (AACR-Bench, 185 PRs)** + +- `prs` — the 185 runnable PRs: repo, PR URL, title, base and head commit, + merge base, language, set, S40 membership, counts, and the repo's licence + (SPDX). `merge_base` is the merge base of the PR's base and head on GitHub. + The reviewers and the judge saw the diff `merge_base..head_commit`, not + `base_commit..head_commit`: on most PRs the two differ. +- `defects` — 520 defects (90 high, 145 medium, 285 low): title, mechanism + and consequence (`statement`), sites, kind, severity, evidence (file:line + and short code quotes), what a finding must say to count (`counts_if`), + provenance, and two never-scored annotations (`benchmark_limitation`, + `bot_derived_reference`). The provenance is the key files': on the T40 sets + it records the older runs those keys were built from, and the answer-key + volume's `orig40-code//truth-ext.json` adds the extension reviewers' + matches; each paper number says which reading it uses. `key_version` is the key version the judge used + (fresh10 is on version 1, the other sets on version 2). +- `exclusions` — 3,093 candidates checked and rejected, each with its reason. +- `aacr_references` — AACR-Bench's own 1,418 reference comments on these PRs + (Apache-2.0), with their category and context labels, `ref_key` (the key + `aacr_matches` uses), and whether a review bot wrote the original comment. +- `aacr_reference_labels` — our check of the 253 references on 30 PRs: + real defect, real maintainability point, trivial, dubious or duplicate. +- `aacr_candidates` — how the key was built: one row per candidate the + agents checked, with the earlier run or the reviewer that raised it + (`raised_by`), its file, lines and text. `round` is `candidates` for the + first key of the rest145 PRs (each candidate mapped to the run that raised + it) and `new-candidates` for the extended key (each mapped to the comparison + reviewer). These back the papers' provenance table, the defects only + QuickReview's earlier runs raised, and the leave-one-reviewer-out key. +- `pr_diffstats` — each PR's size as the papers bucket it: files changed, + insertions, deletions and their sum (`changed_lines`), from the PR's + `git diff --stat`. It backs recall by PR size. AACR-Bench's own + `prs.change_line_count` counts differently. + +**The reviews and verdicts (AACR)** + +- `arms` — one row per reviewer configuration: display name, the run + directories it is scored from, the study and the paper tables it feeds, + its run family, the model it billed, its primary judge (`judge`) and every + judge with verdicts for it (`judges`). `in_paper` marks the configurations + a published number reads (a claim's key in `claims.json`), and + `paper_tables` names the claim groups that read them. The final comparison is eight + configurations: `quickreview-default-g61`, `quickreview-low-g61`, + `pireview-panel-high-g61`, `ocr-high-g61`, `codex-high-g61`, + `opencode-native-pr-g61`, `pragent-g61` and `claude-code-opus55` (the other + `*-g61` arms, `quickreview-max-g61`, `best-pragent-g61` and + `pi099-smoke-g61`, are not in it). The frozen build is `quickreview-frozen`; + the earlier gpt-6-sol study is `quickreview-default-sol`, + `quickreview-low-sol`, `ocr-medium-sol`, `codex-medium-sol`, + `opencode-bridge-sol`, `pireview-medium-sol` and `claude-code-opus55` + (`pi099-smoke-sol` is a smoke, not in it); `*-s40` arms are the best-shot + selection runs on S40; the open-model rows are + `quickreview-glm-53-flash` and `quickreview-deepseek-v41-flash`. Every other + shipped AACR run is an arm named after its run. +- `reviews` — one row per arm and PR: the review body, its comments exactly + as the judge numbered them (`C1`, `C2`, …), list-price cost and wall-clock + minutes, and the number of comments AACR-Bench's harness scored. A comment's + `text` is what the judge read: QuickReview's tag (`[blocker]`, `[question]`, + `[nit]`) moved to `tag`, and its footer (priority, confidence and lens, in + italics) removed when it starts with the priority (`_P1 · …_`). A footer of + another form (`_nit · confidence … · lens …_`, a bare `_confidence …_`, or + one not in italics) was not removed: the judge read it, and it stays in + `text`. `raw_text` is the comment as the run's result file holds it, after + the release's name rewrite ("Names rewritten"): QuickReview's comment as it + posted it, a third-party harness's finding text, and Claude Code's summary + and failure scenario, which it never posted. `priority` (`P0` to `P4`, or + `nit`) and `confidence` are read from QuickReview's footer in every form; + both are null for a comment with no footer, as for every other reviewer. A + link-only arm's `raw_text` is null. The archive has the review as it was + written: `results/all/.json` (`content`), `cases//comments.json`, + `review.md` and `findings-record.json`. +- `defect_verdicts` — per arm, PR, defect and judge: found, partial or + missed (`credit` 1, 0.5, 0), the comments that found it, and the judge's + reason. +- `comment_verdicts` — per arm, PR, comment and judge: correct-valuable, + correct-minor, partly-correct or incorrect, the defect it maps to, and + whether the judge flagged a possible new defect. +- `aacr_matches` — AACR-Bench's own metric: per arm, PR and reference, the + share of the harness's three judge rounds that matched it. Only runs the + AACR harness scored have rows. + +A defect with no row for an arm and PR counts as missed. Every arm of the +final comparison has a judged review for all 185 PRs. Some reviews list a +comment twice: once on the deleted line it was written on, and once +re-anchored to the new side with the same text. The judge read and graded +both copies, and both count: 12, 15 and 24 comments in the frozen build and +the two open-model arms (51 in all), and a few in arms no paper reports. + +**Martian offline benchmark (50 PRs)** + +- `martian_prs`, `martian_goldens` — the 173 golden comments (MIT), with our + adversarial audit's bucket for each (86 real, 77 not real, 10 disputed) and + its evidence. +- `martian_reviews`, `martian_verdicts`, `martian_scores` — the Martian + scorings of our runs (the frozen build, the three third-party + harnesses we ran, the development rounds, the posting-policy variants, the + open-model and Claude runs), and the published vendor reviews re-judged by + our judge (`rejudged-*`), each golden matched or not. `work_dir` names the + scoring directory. `martian_scores` also carries Martian's own published + tool-level judgements (`judge` = `published: …`). +- A QuickReview row's `comments` are what Martian's step 1 reads from + GitHub: the first 30 inline comments (one API page) and the review body. + `n_posted_inline` counts every inline comment posted, and + `comments_beyond_first_page` holds the ones past the page, which Martian's + judge never saw. The text is as posted, after the name rewrite (which also + touches a few sandbox paths the comments quote). +- `fast1-martian50` scored the fast option beside the re-judged vendors, and + its QuickReview reviews were ingested under the tool name `claude-code`. + They are relabelled `quickreview` here. That dir's `claude-code` rows in + `martian_scores` are Martian's published scores for Claude Code. +- The posting-policy runs (`mv-*`, `mt-test30-frozen`, `qr-all50-*`) are + filters of stored reviews. 5 of the 56 also shorten each comment, to its + title or its title and first line. Each run's `VARIANT.json` in the archive + states its policy. + +**Qodo PR-Review-Bench (100 PRs)** + +- `qodo_prs`, `qodo_issues` — the 580 injected issues (MIT; 309 functional, + 271 rule violations). `qodo_prs.base_commit` and `head_commit` are the real + GitHub commits: the PR's merge-base and its head, whose trees are the trees + our runs reviewed. The runs reviewed them as replay commits, the same trees + under a synthetic author, date and message so the reviewer could not read + the PR's history; those ids never existed on GitHub. The run files carry + them, and the case directories are named by the short replay head, so + `replay_base_commit` and `replay_head_commit` keep them for the join. + `repo_license` is per PR: the redis fork's licence changed between its PRs + (read from `LICENSE.txt` at each PR's head). +- `qodo_reviews`, `qodo_verdicts` — the Qodo scorings of our runs + (the frozen build, an earlier build of 2026-10-02, the same three harnesses, + the fast option, the open-model runs) and Qodo's nine published vendor + runs, each issue matched or not, with the location rule applied at ±5 lines + and at "same file". Every verdict row has its review. QuickReview's two + published builds are the rows with `work_dir` and `tool` + `final1-qodo-pr100` and `quickreview-frozen` (the frozen build), and + `ext-r6-qodo-pr100` and `quickreview-2026-10-02`, 100 reviews each. + `qodo_reviews.comments` holds what our judge was sent: `ask()` in + `bench/aacr/ext/qodo_judge.py` builds the message from it and cuts a long + comment's text and a long issue's code (its limits are there). The two builds + were sent their deleted-line comments differently: the frozen build's 12 + were re-anchored to the new side and judged, and the 2026-10-02 build's 18 + were left out (2 of them on held-out PRs). So the rise in rule violations + found, 14.8% to 37.6%, compares builds under slightly different inputs. + The held-out PRs are `sets/qodo-heldout31.json` in the repository. + +**Pairwise Elo (Martian, 20 PRs)** + +- `elo_judgments` — one row per pairwise judgment: the plan, the PR, the two + configurations (`a`, `b`) as the judge saw them, the judge and its effort, + the winner overall and in four categories (recall, precision, finding + quality, writing) with the judge's reasoning, and the sha256 of the prompt. + `used_in_ratings` marks, per plan, the judgments that plan's ratings use: + the 596 of the README's plan (`martian-hard20-all-gpt`) and the smoke + plan's own. The rest are attempts at a superseded prompt, live Opus probes + and an exploratory DeepSeek judge, kept for completeness. +- `elo_ratings` — per plan, judge table (`gpt`, `opus`, `combined`) and + category: each configuration's Elo, its 95% bootstrap interval, its wins, + ties and losses, and its games. The pairing plans themselves are in the + `elo-pairwise` volume. + +**Other files.** `figures/` holds the papers' charts and their data, and +`keys/` the answer key rendered as Markdown. `validation.json` holds the +checks below. `LICENSES/` holds the MIT licence texts of Martian's and +Qodo's data (see "Licence"). The working report the papers grew from is not +included: the papers supersede it. + +## Judges + +Which judge scored what, exactly. The `judge` column of each table uses the +labels in the first column. + +| Judge | Model | What it scored | +|---|---|---| +| `gpt-6-sol-high` | GPT-6 Sol, high effort | the primary judge of the papers: the frozen build, the final comparison, the earlier study, and every other AACR arm except the open-model ones below (base models, stability, selection, development runs, the re-baseline, the refactor smoke). | +| `claude-opus-5-5` | Claude Opus 5.5 | the second judge. **Only the earlier gpt-6-sol study:** its seven arms (listed under `arms` above), 3,640 reviewer-defect pairs. Claude Code's run is shared by both comparisons, so the final comparison's Claude Code row carries both judges; no other final-comparison arm does. | +| `gpt-6-sol-high-repeat` | GPT-6 Sol, high effort | the primary judge run again, on the same seven arms and 30 PRs, for self-consistency. | +| `gpt-6.1-sol-high` | GPT-6.1 Sol, high effort | the open-model runs (GLM-5.3 Flash, DeepSeek V4.1 Flash, the DigitalOcean smokes) and the GPT-6.1 Sol baselines copied beside them. | +| AACR-Bench's harness | GPT-6 Sol, low effort, three rounds | `aacr_matches` for every arm the papers report. Early development arms (prompt iterations, smokes, end-to-end checks; none in the papers) ran it with GPT-5.6 Terra at low effort, or with a single round. `arms.aacr_judge` names the model and rounds per arm. | +| `gpt-6.1-sol` | GPT-6.1 Sol, low effort, medium verbosity (`ext_judge.py`'s default) | every row of `martian_verdicts` and `qodo_verdicts`. One judge, served by the ChatGPT Codex backend through `bench/aacr/ext/ext_judge.py`. The backend rejects a sampling temperature, so the bridge drops the harnesses' temperature 0 (and, on one Martian smoke, some requests' `max_completion_tokens`). On Martian the same model also extracts and merges the candidates (steps 2 and 2.5). Each Martian scoring dir's `runs.judges` row states the model, effort, backend and dropped request keys from its request log (one dir has none, and says so), and the verbosity as `ext_judge.py`'s default, which no log records. | +| Elo: `gpt-6.1-sol` and `claude-opus-5-5` | GPT-6.1 Sol and Claude Opus 5.5, both at xhigh | the pairwise judgments, 298 each in the ratings, pooled into 596. The two pick the same overall winner in 56% of the comparisons both judged. | + +The primary AACR judge's prompt is `judgePrompt()` in `src/bench/defects.ts`. +The repository's public main builds exactly the prompts behind the published +verdicts from commit `34164fe0e` to `839e26454`; later commits render a few +reviews differently. `bench/aacr/recompute/judge_prompt.py` prints that prompt +for any arm and PR from these tables. `review_hash` in the archive's judge +files is not a public check: it was taken before the name rewrite. The Qodo +judge was asked twice on the 10 PRs of `ext-r6-qodo-smoke10`, every tool's +review: 222 of the 223 matches of the first pass recur in the second (the +run's `scores.md`). The final comparison, the frozen build, the open-model rows, Martian and +Qodo each rest on one judge from the GPT family. The two judges agree closely +on defect verdicts where both ran (3,593 of 3,640 pairs) and much less on +pairwise preference. `validation.json` checks this coverage against the +tables: the second judge and the re-run hold rows for the seven arms only, +`arms.judges` names exactly the judges with rows for each arm, and the +Martian, Qodo and Elo judges are the ones named here. + +## What is not here, and why + +- **QuickReview reviewing the authors' own repositories.** A self-review run + and the follow-up-round experiments on the authors' private product + repository are withheld whole. They are not benchmark runs, and they quote + private code. +- **A post-cleanup check of the default build** (`pc2-*`, public AACR-Bench + and SWE-PRBench PRs) is withheld by the authors. It is a regression check of + a development build and backs no published number. +- **Raw model session logs** of every kind are not published: the reviewers' + pi event streams and session files, lens, Codex, Claude Code and OpenCode + transcripts, the judges' event streams, the review and judge processes' own + output logs, the sandbox command logs, and the prompt files each session was + given. They hold the prompt text QuickReview's sessions were built from during + development, not benchmark data. Each JSONL session log ships instead as a + numbers-only extract (`*.pruned.jsonl`: timestamps, token usage, cost, stop + reasons and lens outcomes, no prompt or model text), so the speed, cost, + token and lens claims stay verifiable: `compare.py` prices a case from its + extract exactly as from the full stream. Session text inside the files that + are kept is rewritten field by field: a harness result's `stdout` (the + Codex event stream) and `stderr` become numbers-only extracts, a prompt in + a driver's recorded argv or a tool's prompt template becomes a hash, and + Claude Code's denied commands become a count. The set is defined by file + kind and fails closed, and a kept data file that still holds session text + is left out whole; the archive's README lists every kind and its count. +- **Aborted and interrupted attempts** (`aborted-*`, the open-model + driver's `interrupted*`) are left out. Most were re-run under their normal + name, and the re-run ships. The attempts at a full Martian run of + QuickReview on Opus 5.5 (`aborted-c4-opus55-martian50`, + `aborted-ratelimit-opus55-martian50`) were stopped and never completed: + only that configuration's smoke, `opus55-martian-smoke10`, ships. The + partial base-model probe (`aacr-astra-probe`) ships as the partial run it + is; `runs.purpose` says where it stopped. +- **The Elo `packs/`** are left out. They are whole files of the reviewed + repositories, cut to each PR, and some are under AGPL or source-available + licences. `bench/aacr/elo/elo.py pack` rebuilds them from the public + repositories at the commits of the plan's set (`expect_merge_base` and + `head_commit`), read from bare clones the archive does not ship + (`bench/aacr/elo/README.md` says how to make them), and `packs.jsonl` lists + the files each pack held. `recompute/elo_ratings.py` refits the ratings from the + judgments alone, with no pack. +- **Third-party text** is linked, not copied: the vendor review comments + Martian publishes (and its `published-benchmark_data.json`), the reviews of + Qodo's nine vendors, the upstream Copilot reviews, SWE-PRBench's human + review comments, and PR authors' descriptions wherever a file copied one + (the answer key's `meta.json`, PR-Agent's describe output, the open-model + case sets). A Qodo or Copilot row carries the source URL and the comment + locations; a Martian vendor row carries none (Martian's own file lists + them). An archived file carries + `[third-party text omitted, sha256:; see ]`, so equal texts + stay equal and every score recomputes unchanged. To restore the text, fetch + it and match the prefix (the sha256 of the comment's text): Martian's + vendor comments are in Martian's repository at `e616e84` + (`offline/results/benchmark_data.json`); Qodo's are on the vendors' public + fork PRs (`qodo_reviews.source_url`), and the archive's + `.qodo/judgements.jsonl` holds each comment's prefix; Copilot's are on + the upstream PRs: fetch `pulls/{n}/reviews` and `pulls/{n}/comments` from + GitHub's API into `.reviews.json` and `.comments.json`, and + `bench/aacr/harvest_upstream.py --api DIR --out RUNS --prefix + upstream-copilot2025 --fetch` rebuilds the run dirs. Third-party text that does + ship, under its own licence: Martian's golden comments and published + tool-level judgements and Qodo's issues (MIT, see "Licence"), AACR-Bench's + reference comments (Apache-2.0), and code quoted by reviewers and judges + (each project's licence). Two copies of vendor text also ship verbatim: + the Martian judge's extractions of the re-judged vendors' comments (the + vendor candidates in the archived and slim `candidates.json` and + `evaluations.json`) and the vendor candidates of the blind annotation's + candidate list (the archive's `analysis/…/fair/secret.json`). That text + belongs to its authors, the vendors' review bots that posted it on public + pull requests, and is not covered by this dataset's licence. The tables + keep it out: `martian_reviews` rows of a vendor carry no comment or + candidate text. +- **Encrypted reasoning blobs** are blanked: the value of every OpenAI + `encrypted_content` and every Anthropic `thinkingSignature` and `signature` + is the empty string, and the record around it is kept. They are ciphertext + under the providers' keys. The usage records still carry the reasoning-token + counts. +- **Data anyone can regenerate:** the reviewed repositories' code (`repo.git`, + `base/`, `head/`, `pr.diff`; refetch from the repo and commits in each case's + `meta.json` for AACR-Bench, the `martian_prs` table for Martian; for Qodo and + SWE-PRBench the run files carry the harness's replay commit ids, made so the + reviewer could not read the PR's history and never on GitHub: the real + commits are in each case set's `leakproof` block, `source_head` and + `source_merge_base` in `bench/aacr/sets/.json` of the repository, and + in `qodo_prs`, and the replayed trees equal those commits' trees), the + external benchmarks' cached data and harnesses (pinned: + withmartian/code-review-benchmark@e616e84, Qodo/PR-Review-Bench@a73957c, + foundry-ai/swe-prbench@b87f579), scratch directories, scheduler state and + release build outputs. +- **The authors' private working notes.** +- **SWE-PRBench runs** are in the archive only, with no table. They back no + published number. The eval100 run's judged comments + (`quickreview-answers.json`) differ from the posted ones on 8 of its 100 + PRs: 5 add a finding the review posted in its body, and 3 leave out a + deleted-line comment. Both sets ship. + +## Names rewritten + +Before export, every string in every table passed through one rewrite, the +same one the run archive applies. Apart from it, the only changes to the +text are the third-party omissions above and the `qcr_commit` remap (see +`runs`). + +| What | Replaced with | Occurrences in the tables | +|---|---|---| +| credential value | `` | 0 | +| old product name | `quickreview` | 0 | +| old product name (other case) | `quickreview` | 0 | +| review bot | `` | 3,874 | +| review bot (bare) | `` | 0 | +| owner | `` | 2 | +| owner (other case) | `` | 0 | +| private repo | `` | 0 | +| host path: runs dir | `` | 0 | +| host path: repo checkout | `` | 0 | +| host path: scratchpad | `` | 0 | +| host path: Claude Code project | `.claude/projects/` | 0 | +| host path: home | `` | 0 | +| host path: home (dashed) | `-` | 0 | +| host path: home (JSON-escaped) | `` | 0 | +| host volume: pi login | `` | 0 | +| private token | `` | 0 | +| private host | `` | 0 | +| study rename | `ccvq` | 2,318 | +| tracker path | `` | 0 | +| ticket id | `` | 40 | +| public-repository stand-ins (content rules) | `the public repository's stand-in` | 3,952 | + +- `` is the operator the reviewer's production prompt addresses. +- `` is the reviewer's GitHub App persona. +- `quickreview` is the public name of the product. Its earlier internal name + appears in prompts and footers, in any case. +- `` is the authors' private product repository. A few model + texts name it. +- `` replaces every value of the bench's credential files, + wherever one occurs. A provider API key that a reviewer could read from its + container environment appeared in a few open-model transcripts; those + transcripts are not published. +- `` replaces the ids of the authors' tracker, which is not public, + in any spelling (with or without the hyphen, in any case, as in an image tag + `qcr-bench:`), and any path into it. No ticket number is kept: the + runs of the Claude Code vs QuickReview study, whose directory names began + with one, are named `ccvq-*` throughout (with the Elo plan + `martian-hard20-ccvq`), as the public repository's Elo plans name them. +- `` and `` replace a personal handle, a private + commit id, an account id and private host names. +- ``, ``, `` and `` replace host paths + and a docker volume name; they occur almost only in the archive's logs (the + table above counts the few in the tables). +- The public repository's stand-ins: where QuickReview's prompts, as built + at run time, carried examples from private work, the same stand-ins the + public repository's history carries replace them, by the same rules. +- Paths under `profiles/quickchat` are left as they are: the public + repository holds that profile. + +The archive's README gives the count of every rewrite over the whole archive. + +## How to verify + +Download the dataset and the QuickReview repository at the ref this release +was verified against, then recompute: + +```sh +hf download quickchatai/quickreview-bench --repo-type dataset --local-dir quickreview-bench +git clone --branch bench-data-v1 https://github.com/quickchatai/quickreview +cd quickreview +D=../quickreview-bench + +# the tables: bootstrap intervals, paired differences, held-out results +uv run --no-project --with pyarrow python bench/aacr/recompute/aacr_bootstrap.py --data $D +uv run --no-project --with pyarrow python bench/aacr/recompute/heldout.py --data $D + +# the slim bundle: every final table and chart, the open-model rows, +# the DigitalOcean table, the Elo refit +mkdir slim && tar --zstd -xf $D/slim/quickreview-bench-slim.tar.zst -C slim +QCR_BENCH_RUNS_DIR=$PWD/slim/runs QCR_CHARTS_OUT=$PWD/charts-out bench/aacr/final/score.sh +python3 bench/aacr/recompute/open_models.py --runs-dir slim/open-models/runs +python3 bench/aacr/recompute/do_speed.py --runs-dir slim/open-models/runs --gpt-runs-dir slim/runs +python3 bench/aacr/recompute/elo_ratings.py slim/elo/martian-hard20-all-gpt --check-ratings \ + --runs-dir slim/runs --runs-dir slim/open-models/runs +``` + +Two tables in the papers rest on a labelling pass as well as the runs: the +benchmark paper's `tab:martiantiers` and the QuickReview paper's lost-credit +figures. The label files ship in the archive's `analysis` volume and the slim +bundle under `analysis/relabel/`, each row with the model that wrote it +(gpt-6.1-sol) and the sha256 of the prompt shipped beside it; `LABELS.json` +names the script, model, effort, prompt hash and row count of each pass. The +two scripts turn the labels and the archive into the published numbers with no +model call (each unpacks the archive volumes it reads into `work/`), and refuse +a row whose prompt hash is not the shipped prompt's: + +```sh +uv run --no-project --with pyarrow python3 bench/aacr/relabel/martian_tiers.py \ + --archive $D/archive --data $D --work work --compute +uv run --no-project --with pyarrow python3 bench/aacr/relabel/lost_credit.py \ + --archive $D/archive --data $D --work work --compute +``` + +`QCR_CHARTS_OUT` keeps the re-drawn charts out of the clone (a re-rendered +JPEG differs byte for byte from the committed one). +`bench/aacr/recompute/README.md` maps each published number to its script. +The claims verifier checks every published number listed in +`bench/aacr/claims.json` against this data in one command. Two of its +inputs are third-party and never in this dataset: a checkout of Martian's +benchmark at the pinned commit (its scorer and published judgements) and +Qodo's ground-truth file (the dataset's +`git_code_review_bench_100_w_open_prs.jsonl`): + +```sh +git clone https://github.com/withmartian/code-review-benchmark martian +git -C martian checkout e616e849755441da38f18bf3adba2c9583b03803 +hf download Qodo/PR-Review-Bench --repo-type dataset --revision a73957c450a70693a743260e5637fffc44625f16 --local-dir qodo +uv run --no-project --with pyarrow python bench/aacr/verify_claims.py --data $D \ + --martian martian --qodo-gt qodo/git_code_review_bench_100_w_open_prs.jsonl +``` + +It fails on a mismatch, an error, a missing source, a claim with no +recompute script and a claim whose data the release does not hold; left +without an input above, it fails on the claims that need it. +On this release: all 6,076 claims pass, with 0 mismatch, 0 error, 0 missing source and no claim left unchecked. The release's own checks (the tables' validation and the slim bundle's) pass 276 of 276. + +With the tables alone (no slim bundle, no archive, no third-party input), +`verify_claims.py --data $D --partial` recomputes every claim they hold. + +`validation.json` recomputes, from these tables alone, the row counts (520 +defects, 3,093 exclusions, 185 PRs per full arm, 1,418 references, 173 +Martian goldens, 580 Qodo issues), the papers' headline numbers (every arm's +defects found by severity, comments correct, cost and time; the second judge; +judge agreement; the AACR metric; Martian and Qodo scores), the open-model +rows, the Elo ratings (refit from `elo_judgments` and compared with the +run's own `ratings.json`), the judge coverage above, and that every shipped +run family has rows in the tables it should. This release passes 495 of 495 +checks. + +## Re-judge with your own judge + +Every QuickReview review behind a published number is in the tables, so you +can judge it with your own judge and score that judge's answers the way we +scored ours, with no model call of ours. Write your answers as tables shaped +like ours (`.parquet` or `.jsonl`, in a directory `DIR`, no `judge` column), +pick a label no published row carries (`LABEL`), and run the scorer. It +prints your judge's numbers beside our judge's on the same reviews: when your +judge judged only some of a run's PRs, both columns are counted over those +PRs, and the header says how many (`--whole-run` counts every PR instead, a PR +your judge did not judge counting as missed, so the two columns are then not +comparable). Each +script's docstring gives the columns and what it refuses. `D` is this +dataset, and the scripts are in the repository's `bench/aacr/recompute/`; +run them as `uv run --no-project --with pyarrow python