> ## Documentation Index
> Fetch the complete documentation index at: https://docs.entire.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Gates

> Configure the requirements a Trail must satisfy before it can merge.

## What Are Gates?

Gates are merge requirements for a Trail. They bring branch freshness, human review, agent findings, and CI checks into one place so your team can see what is satisfied, pending, or blocking a merge.

While [Agents](https://docs.entire.com/guides/trails/agents.md) produce automated evaluations, Gates apply your repository's merge policy to the relevant evidence, including unresolved review findings and check results.

## Configure Gates

With repository admin permission:

1. Open your repository in entire.com.
2. Select **Settings** then **Gates**.
3. Turn on **Enable gates**.
4. Enable the Gates that you need for your repository.
5. Configure the requirements for each enabled gate.
6. Choose who may bypass a blocking gate.

Start with the requirements your team already uses for pull requests. Set up [Agents](https://docs.entire.com/guides/trails/agents.md) before making the **Findings** gate blocking.

[Configure Gates](https://customer-0x5hsk8lh27fm00g.cloudflarestream.com/fa86858d668db71f2eab5aed5b29fb35/iframe)

### Up to Date

This gate checks whether the Trail's branch is current with its base branch. You need to configure whether to allow a clean merge when the branch is behind. Use a blocking requirement when your team needs changes evaluated against the latest base before merging.

### Human Review

This gate evaluates approvals submitted on the Trail. Configure:

* The minimum number of approvals.
* Whether the Trail author's approval counts.
* Whether new pushes reset existing approvals.

For example, require one approval, exclude the author, and reset approvals after a push when changes should receive a fresh review.

### Findings

The Findings gate evaluates unresolved findings on the latest push, from your project's Agents, repository runners, and human reviewers. Findings have `high`, `medium`, or `low` severity, and a finding with no severity always blocks. Choose the severity threshold that matches your team's merge policy. The default is `high`.
Review each blocking finding and fix, resolve, or dismiss it. After a new push, findings tied to older code may become stale. Current findings remain open until they are resolved or dismissed.

<video autoPlay loop muted playsInline poster="/images/videos/gates-blocked-by-findings.jpg">
  <source src="https://mintcdn.com/entire/yKSEaBtqgPAkqkkW/images/videos/gates-blocked-by-findings.mp4?fit=max&auto=format&n=yKSEaBtqgPAkqkkW&q=85&s=7a2bef8cf250d79d6a6ae2c74e7ece29" type="video/mp4" />
</video>

A Trail blocked from merging by unresolved agent findings.

### Checks

This gate evaluates CI checks that GitHub reports on the Trail's head commit, so it is available only on GitHub mirrors. It doesn't use GitHub's branch protection rules. Choose either:

* No names, so every reported check must succeed.
* Specific check names you want to require.

Configure the checks your team needs before merging, such as its existing test and build checks. For CI plugins, and for repositories hosted on Entire, see [CI checks](https://docs.entire.com/guides/ci/checks.md).

## Review Gate Status on a Trail

Open the Trail's Gates section to see which requirements have passed and which are pending or blocking. Address the underlying requirement: update the branch, get an approval, handle findings, or investigate failing CI checks.

<video autoPlay loop muted playsInline poster="/images/videos/findings-inline-to-fix.jpg">
  <source src="https://mintcdn.com/entire/yKSEaBtqgPAkqkkW/images/videos/findings-inline-to-fix.mp4?fit=max&auto=format&n=yKSEaBtqgPAkqkkW&q=85&s=36c234cf22a3b587c4c2109c582b7752" type="video/mp4" />
</video>

Opening a finding in the diff, pushing a fix, and the gate clearing.

Select **Approve** when your review is complete. Once all blocking gates pass, select **Merge**.

<video autoPlay loop muted playsInline poster="/images/videos/trail-merge.jpg">
  <source src="https://mintcdn.com/entire/yKSEaBtqgPAkqkkW/images/videos/trail-merge.mp4?fit=max&auto=format&n=yKSEaBtqgPAkqkkW&q=85&s=fa61fc178857fc18b283da87f2c8f232" type="video/mp4" />
</video>

Merging a Trail once every gate passes.

If a blocking gate needs to be bypassed, only a person permitted by the repository's bypass configuration can do so. Every bypass is recorded on the Trail.
