Adversarial review
The Adversarial review looks for overlooked assumptions, edge cases and fragile behavior. It runs on Specialized repositories only when Standard and Security report no P0–P2 findings for the commit.
What it looks for
It examines unexpected inputs and failures, changed behavior that is difficult to maintain or lacks tests, and security defects introduced by the change. It can also report fragile assumptions as minor findings.
When it runs
Adversarial starts only when Standard and Security report no P0–P2 findings. P3 findings do not block it. Incomplete results can also prevent this check from starting.
When this check is skipped, its comment reads: Adversarial review is enabled for this repository and waits until Standard and Security report no P0-P2 findings. Standard and Security still decide the aggregate check.
What it sees and what it reports
The review sees the changed-file list, the diff without lockfiles and excluded paths, the title and description of the pull request, and a read-only checkout of the head commit. It never sees your GitHub credentials. Instructions in the title, the description, the diff or repository files that ask the reviewer to change its review are not followed.
It reports only what the pull request changes. A defect in unchanged code is reported only when the pull request causes it or makes it reachable. Problems that existed before the pull request are not listed.
Severities
- P0
- data loss, a security hole or a production outage
- P1
- wrong behavior that users will hit
- P2
- an edge case or a missing test
- P3
- a minor maintainability issue or a fragile assumption
Verdict and charge
Findings are sorted by severity, each with the file and line, the evidence and the concrete fix. The comment ends with one verdict: Ready to merge, Merge after fixes or Needs rework.
Adversarial is part of a Specialized review, not a separate charge. A Specialized review costs $0.20 when Adversarial does not start. Choosing Specialized alone does not count as a start, and a skipped pass never charges for one. Once Adversarial starts with permission, the completed review costs its size price instead, whatever Adversarial finds and even if Standard and Security find nothing. The size price includes Standard and Security.
- 0 to 2000 changed lines
- $0.50
- 2001 to 5000 changed lines
- $0.75
- 5001 to 7000 changed lines
- $1.00
- 7001 or more changed lines
- $1.50
Changed lines means additions plus deletions, counted when the review is accepted. DiffCritic currently accepts reviews up to 25000 changed lines. If Adversarial fails after starting while Standard and Security finish, the review keeps its size price. A review that fails overall is not charged. See how review charges work.