Skip to main content
| Some bugs only show up when events happen in an unlucky order or when values combine in a way nobody tried: two webhooks that race, a retry that runs a charge twice, a limit that overflows for one input in a million. Tracing a few examples through the diff rarely finds them. When a finding depends on a property like that, CodeRabbit can test it formally while it verifies the finding. It writes a small model of the logic in question and runs a formal tool on it: a model checker that tries every allowed order of events, a solver that searches for an input that breaks a condition, or a proof checker that confirms a rule holds for every input. The result becomes evidence for or against the finding, and you can read it.

Where it runs

Formal checks run in pull request reviews on CodeRabbit Cloud for repositories on GitHub Cloud (github.com), GitLab.com, Azure DevOps Services and Bitbucket Cloud, public and private, on every plan. They’re on by default, and there’s nothing to configure. They don’t run for GitHub Enterprise Server, self-managed GitLab, Azure DevOps Server or Bitbucket Data Center, even when connected to CodeRabbit Cloud, or in self-hosted CodeRabbit, IDE and CLI reviews. CodeRabbit decides for each finding whether a check would help settle it.

The tools

What a check proves

A check runs on the model CodeRabbit wrote, not on your code. It shows what holds in that model, and the model can leave out details of the real code. That’s why a check is evidence for a finding and not a verdict:
  • A check can’t decide a finding, Merge Risk or an automatic approval on its own. CodeRabbit weighs it with the rest of what it found in the code.
  • A check that fails to run or can’t express the property doesn’t hold up or fail the review. CodeRabbit verifies the finding another way.
  • A check never posts a finding by itself. It only tests a concern that the review raised.
A check result can show one of these outcomes:

Read the evidence

In CodeRabbit Explain

On GitHub, in CodeRabbit Explain, the finding’s comment has a View evidence button. It opens Review evidence, which shows:
  • The analysis title, such as Code analysis ¡ TLA+ model checking, and Supporting formal checks, followed by the tools behind it.
  • One item per check, such as TLA+ check, with its outcome and the model CodeRabbit ran. Expand an item to read the full model.
CodeRabbit Explain shows this evidence whatever your review details setting is.

In the pull request comment

When review details are on, a finding that a formal check supports has a collapsed section titled after the tools, such as 🔎 Code analysis · TLA+ model checking. It lists each model CodeRabbit ran. The outcome labels appear only in CodeRabbit Explain. Review details are off by default. Turn them on with reviews.review_details, or reviews.output.review_details in configuration V3.
.coderabbit.yaml
Bitbucket Cloud comments don’t show this section.

What’s next

Understand findings

Read the labels on each finding in CodeRabbit Explain and decide what to fix first.

Merge Risk

See how CodeRabbit rates the risk of merging a pull request from the findings that remain.

PR Walkthroughs

Choose which sections, including review details, appear in CodeRabbit’s review comments.