---
title: "Set a shadow approval policy and read its decisions | Proofline Help"
description: "Shadow approval records whether each change the merge gate decides would qualify for approval: a small change with a complete review and no blocking finding."
url: https://proofline.sh/help/set-shadow-approval-policy/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Help center](/help/)

# Set a shadow approval policy and read its decisions

Shadow approval records whether each change the merge gate decides would qualify for approval: a small change with a complete review and no blocking finding. Proofline submits no GitHub review and blocks no merge, so you can judge the policy on real pull requests before relying on anything like it.

[![The store-api Merge gate settings show Shadow approval as Off with the Approval policy disclosure below it.](/help-images/merge-gate-light.png)](/help-images/merge-gate-light.png)

Open Approval policy under Shadow approval to review its limits. Fictional demo workspace.

## Set the policy

1.  Open the repository's **Merge gate** page and find **Shadow approval**.
2.  Open **Approval policy**.
3.  Select **Record shadow approval decisions**. It needs the merge gate on; while the gate is off, you can still set the limits, and they apply when you turn it on.
4.  Set **Most changed lines** and **Most changed files**. A change above either is not approved.
5.  Under **Extra protected paths**, enter one repository-relative glob per line, such as `docs/legal/**`, with no leading `/`. Migrations, infrastructure, delivery workflows, authentication, dependency manifests, CODEOWNERS and delivery-target paths are always protected.
6.  Select **Save approval policy**. Heads already decided keep their decision.

The status under the title reads **Recording.** while decisions are recorded, **Paused.** while the merge gate is off, or **Off.** If saving reports a conflict, someone changed the policy meanwhile: select **Reload current policy** and make your change again.

## Read the decisions

The summary under the title shows how many decided heads would be approved, with a line for each check that turned heads away.

For each decision, select **View history** and look under **Shadow approval decisions**. Each pull request head reads **Would approve** or **Not approved**. **Would approve** means every check passed and the change was classified routine. **Not approved** names the check and the reason:

-   **Merge gate**, **Code review**, **Open findings**, **Hypotheses** or **Proofline threads**: the gate blocked the head, a newer head replaced it, the review did not complete, or a finding, hypothesis or Proofline thread is still open.
-   **Protected paths**: the change touches an always-protected path or one of your extra protected paths.
-   **Size**: the change has more lines or files than the policy allows, or GitHub did not list every changed file.
-   **Author**: an App or bot authored the change, the author has no Proofline seat, or the author is unknown.
-   **Pre-merge checks**: a blocking pre-merge check was not met.
-   **Risk class**: the change was not classified routine, or the risk classifier gave no usable answer.

To see whether a looser policy would approve more, change a limit and compare the decisions recorded after you save. Earlier decisions do not change.

## Related guides

-   [Set up a merge gate](/help/merge-gate/)
-   [Read a repository's merge gate history](/help/read-merge-gate-history/)
