# Vortex Swarm on Martian's Code Review Bench: reviews and judgements

This package holds the reviews and judgements behind our self-run result of Mergestorm's Vortex Swarm reviewer on the offline set of Martian's Code Review Bench. It is published so readers can inspect every review comment and judge decision directly. Martian runs the tools it lists itself, and Vortex is not listed, so this is our own result and not a leaderboard entry.

## Summary of the result

- **Benchmark:** Martian's Code Review Bench, offline set (https://github.com/withmartian/code-review-benchmark) — 50 real pull requests, 10 each from Cal.com, Discourse, Grafana, Keycloak and Sentry.
- **Reviewer:** Vortex with Swarm mode on (default settings). Lower-confidence secondary findings are kept in notes and not posted on the pull request unless turned on. Each entry under `reviews` in `dataset.json` is the review Vortex would post.
- **Scoring:** The benchmark's own extraction, deduplication and judging code, unchanged, with the benchmark's GPT-5.2 judge.
- **Run date:** December 5, 2026. One run across all 50 pull requests; none failed.
- **Comparison date:** Martian's published results for other tools under the same judge carry the leaderboard header "As of Sep 8, 2026". Those tools have shipped new versions since then, so this comparison measures Vortex today against every other tool as Martian measured it.

| Profile | Items | Hits | False alarms | Misses | Precision | Recall | F1 | F2 |
|---|---|---|---|---|---|---|---|---|
| Strict | 139 | 96 | 56 | 43 | 63.16% | 69.06% | 65.98 | 67.80 |
| Core | 158 | 103 | 56 | 55 | 64.78% | 65.19% | 64.98 | 65.11 |
| All | 173 | 106 | 56 | 67 | 65.43% | 61.27% | 63.28 | 62.06 |

Core recall by severity: Critical 9 of 12 (75.0%), High 41 of 54 (75.9%), Medium 40 of 59 (67.8%), Low 13 of 33 (39.4%).

Core F1 by repository: Cal.com 70.1, Sentry 66.7, Keycloak 65.3, Grafana 61.5, Discourse 60.5.

## Method notes

- **Self-run, one run:** We ran Vortex locally on the 50 public pull requests and scored the output with the benchmark's unchanged evaluation pipeline. Reviews and judge verdicts vary from run to run.
- **Judge:** Scored under the benchmark's GPT-5.2 judge. Martian's site shows a different judge by default; scores from different judges should not be compared directly.
- **Public benchmark set:** The benchmark's pull requests and answer key are public, and we used them while building Swarm.
- **Secondary findings:** On this run, lower-confidence findings were kept in notes (83 findings across 24 pull requests) rather than posted inline on the pull request, matching the default setting.

## Files in this package

- `dataset.json`: single UTF-8 JSON file containing `summary`, `reviews` (50 pull request keys), and `judgements` (50 pull request keys):
  - `reviews.<key>`: `pull_request` (public GitHub pull request URL), `project`, `review_body` (the review summary as judged, including the "Prompt for AI agents" block and the count of secondary findings kept in notes), and `inline_comments` (`path`, `line`, `body`).
  - `judgements.<key>`: the benchmark pipeline's output for each review:
    - `candidates`: every issue extracted from the review (`index`, `text`), with its `verdict` ("hit" or "false alarm") and `basis`.
    - `hits`: each matched answer-key item with its `severity`, `category`, `profiles`, matched candidate, and judge `confidence` and `reasoning`.
    - `missed`: each unmatched answer-key item.
    - `duplicate_groups`: deduplication groups from the benchmark's dedup step.
    - `counts`: per-profile item, hit, false-alarm and miss counts for that pull request.
- `summary.json`: standalone aggregate totals for the Strict, Core and All profiles plus the Core breakdowns by repository and severity.

Profiles follow Martian's definitions: **Strict** counts bug, security, concurrency, data and api items; **Core** (the benchmark's default) adds perf, test_gap and doc_defect; **All** adds style and speculative. Precision = hits / (hits + false alarms); recall = hits / items; F1 is their harmonic mean; F2 weights recall higher. Summing `counts` over `dataset.json`'s `judgements` entries reproduces `summary.json`.

## Attribution and licences

- The answer key ("golden comments") and the scoring pipeline (extraction, deduplication and judging code and prompts) are Martian's: https://github.com/withmartian/code-review-benchmark, MIT licensed. The answer-key text under `judgements` in `dataset.json` is copied from that repository under the notice below.
- Code quoted inside review comments belongs to the five projects (Cal.com, Discourse, Grafana, Keycloak, Sentry) and remains under their respective licences.

```
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.
```
