> Full documentation index: [llms.txt](https://docs.qualitymax.io/llms.txt)

# Code Review & Gates

The QualityMax review pipeline checks pull requests on connected repositories. Each enabled gate reports its own verdict. Nexus also provides multi-persona AI review inside the app, and the code-health scan posts line-level findings to GitHub.

## The four gates

| Gate | What it does | When it runs | On failure |
|------|--------------|--------------|------------|
| **Alpha** | Reviews the diff with AI and static application security testing (SAST) | When enabled for a pull request | AI findings are advisory. High or critical scanner findings can fail the pipeline. Incomplete required reviews need action. |
| **Beta** | Runs Playwright tests in a real browser against the live preview | When a successful deployment reports a preview URL | Test failures can fail the pipeline. |
| **Gamma** | Runs the repository's existing test suite | When test execution is enabled and a supported suite is detected | Test failures can fail the pipeline. |
| **Delta** | Runs QualityMax-generated test scripts for the project's framework | When test execution is enabled and the project has matching scripts | Test failures produce an advisory warning. |

On GitHub, a `push` or `pull_request` webhook starts the pipeline's Alpha, Gamma and Delta checks when they apply. Beta waits for your deployment provider to report a live preview URL. Gates that don't apply to the repository are skipped.

## How the final verdict is computed

```
gate_conclusion starts as "success"
    Alpha MODEL-ONLY candidates → advisory, no change to conclusion
    Alpha deterministic medium → action_required
    Alpha deterministic critical/high → failure
    Gamma fail  → failure (hard override)
    Gamma pass  → reverts an earlier WARN back to success
    Delta fail  → action_required (only if currently "success")
    Beta fail   → failure
```

Hard failures fail the pipeline. To enforce those failures on GitHub, make the QualityMax pipeline check required in branch protection. Warnings from Delta remain advisory. See [Verdicts & merge blocking](/code-review-gates-verdicts/) for how the pipeline combines results.

## Configuring gates

- **Disable Gamma + Delta per project:** turn off test execution in the project's Test Framework settings.
- **Disable Beta for a repo:** mark the repository as a non-web app type (CLI tool, TUI agent, library/SDK, docs site, or API-only) — non-web repos have no preview deployment.
- **Add Delta coverage:** create automation scripts for the project (via the UI or MCP `add_script_to_framework`). Existing scripts automatically become Delta checks on future PRs.

## In this section

- [Gate Alpha — AI review & SAST](/code-review-gates-alpha/)
- [Gate Beta — preview deployment tests](/code-review-gates-beta/)
- [Gate Gamma — native test suite](/code-review-gates-gamma/)
- [Gate Delta — generated scripts](/code-review-gates-delta/)
- [Verdicts & merge blocking](/code-review-gates-verdicts/)
- [Nexus multi-persona review](/nexus-review/)
- [Nexus persona catalogue](/nexus-personas/)
- [Review learning & preferences](/review-learning/)
- [Code health & tech-debt checks](/tech-debt-scan/)
