# How do we risk-assess pull requests so low-risk ones go through without human review?


URL: https://getunblocked.com/answers/risk-assess-pull-requests-skip-human-review/
Published: 2026-11-18T18:30:00Z
Updated: 2026-11-15T20:32:03Z
Author: Brandon Waselnuk
Categories: Context Engine, Engineering Insights

**Short answer:** Write down what your team counts as risky, score every PR against that list, and let branch rules decide who must approve. Unblocked does the scoring: it checks each PR against a policy file in your repo, rates it lowest to highest with a reason, and can auto-approve low-risk PRs that pass review. Auth, payments and migrations still get a human.

---
Score every pull request against a written list of what your team considers risky, then let your branch rules decide how many people must approve it. Low scores merge on an automated approval plus green CI. High scores wait for a named owner. **PR risk assessment** is the step that reads a change, compares it to your team's own rules about dangerous areas, and returns a risk level with a reason. Unblocked is one way to run it. You commit a policy file to the repo, and on every review Unblocked scores the PR from `lowest` to `highest` and explains why. It can also approve PRs rated `low` or `lowest` that have no review findings ([Unblocked docs](https://docs.getunblocked.com/code-review/risk-assessment)).

## The signals that make a pull request risky

Most teams already judge risk in their heads. Write it down so a tool can apply it the same way every time. Score these signals:

- **Blast radius** is how far a change reaches: the number of services, users or other teams that depend on the code it touches. A copy change on one settings page is small. A change to a shared client library is not.
- **Files and size.** Bigger patches that touch more files carry more risk. A 2026 study of 33,707 agent-written PRs predicted which ones would need heavy review using simple cues such as "file types, patch size", with an AUC of 0.96 ([Minh et al., MSR 2026](https://arxiv.org/abs/2601.00753)). The methodology uses only what is known when the PR opens.
- **Ownership** is whether the author belongs to the team that maintains this code. A change from outside the owning team is riskier, even when it is small.
- **Test coverage.** Did the PR touch code that tests actually exercise, and did those tests pass?
- **Incident history** is the record of outages and rollbacks tied to this part of the code. It is the hardest signal to see from the diff, and often the most useful.

The first four can come from the diff and the repo. The last one lives in postmortems, Slack threads and old PRs. That is why a code-only risk check misses the areas where your team has already been burned.

## Write the policy down, then let a tool score against it

In Unblocked, the policy is a YAML file at `.unblocked/risk-policies.yaml`. Each entry has a name, a risk level and the condition that triggers it. When more than one entry matches, the highest level wins. The docs advise starting "with a small set of specific policies" and keeping each one self-contained. A broad rule like "all config changes are high risk" just makes every score conservative.

You can also ask Unblocked to draft the policy for a repository. It builds the draft from the code plus connected context such as "past incidents, team discussions, and shared memories" ([Unblocked docs](https://docs.getunblocked.com/code-review/risk-assessment)). Tune that draft with the people who own the code. The same review also checks changes against your written conventions, which we cover in [how to verify AI code against team conventions](https://getunblocked.com/blog/verify-ai-code-against-conventions/).

Two details matter for trust. First, Unblocked reads the policy from the default branch, not from the PR. A pull request cannot lower its own score by editing the rules. Second, each score comes with a written reason. In the 2026 Stack Overflow survey, 93 percent of developers said trusting AI output requires source attribution ([Stack Overflow](https://stackoverflow.blog/2026/10/06/the-results-of-the-2026-developer-survey-are-here/)). A written reason lets a reviewer check the score instead of taking it on trust.

The score is only half of the auto-approval test. Unblocked approves only when the code review also finds no issues, so review quality matters as much as the policy. Gavin Bannerman, Senior Software Engineer at Perk, put it this way: "At Perk, we trialled several code review tools, but Unblocked was by far the best. It finds the right balance of flagging genuine issues without adding noise to our pull requests. It catches edge cases and subtle configuration issues that are easy for human reviewers to miss."

## Let branch rules enforce who must approve

The risk score decides nothing on its own. Your branch protection or rulesets do. On GitHub, a ruleset can "require that all pull requests receive a specific number of approving reviews". It can require code owner approval and require status checks to pass before merge ([GitHub docs](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets)). It can also require approval "from specific teams when a pull request changes certain files or directories", using `.gitignore`-style patterns. That rule keeps payment code in front of the payments team, whatever any tool says.

A `CODEOWNERS` file maps paths to people or teams, and "code owners are automatically requested for review when someone opens a pull request that modifies code that they own" ([GitHub docs](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners)). GitLab has the same idea in merge request approval rules, which can target specific branches and require code owner approval ([GitLab docs](https://docs.gitlab.com/user/project/merge_requests/approvals/rules/)).

One warning before you turn auto-approval on. Unblocked offers the setting only when your Git host supports approvals that count toward merge requirements. Its docs say those low-risk approvals "count toward the number of approvals required by branch protection rules" ([Unblocked docs](https://docs.getunblocked.com/code-review/setup-and-configuration)). If your rule requires one approval, an Unblocked approval satisfies it. If you want a human on every PR in a repo, require two approvals there, or add a code owner rule on the sensitive paths.

## What should never skip a human

Some changes are costly to get wrong and hard to undo. Keep a person on them even when the score says low:

- Authentication, authorization and session handling.
- Payments, billing and anything that moves money.
- Database migrations, especially ones that drop or rewrite data.
- Infrastructure, permissions and secrets configuration.
- The risk policy file and the `CODEOWNERS` file themselves.

Put these in both places. List them as `high` or `highest` in the risk policy, so the score is honest. Then add required reviewers or code owners for those paths in GitHub, so a mis-scored PR still cannot merge alone. The two layers fail in different ways, which is the point.

## Roll it out in shadow mode first

Don't start with auto-approval on. Let the risk report post as a comment for a few weeks and compare its scores to your reviewers' judgment. Where the tool rates something low that your team would not, fix the policy. Then turn on auto-approval in one low-stakes repo, such as an internal tool or docs site, and widen from there. Teams running agents can also request a risk assessment through Unblocked's Code Review API, which the docs label private beta ([Unblocked docs](https://docs.getunblocked.com/api-reference/code-reviews-overview)). For where that fits in an agent pipeline, see the [AI software factory buyer's guide](https://getunblocked.com/blog/what-is-an-ai-software-factory-buyers-guide/).

Compare tools in our guide to the [best AI code review tools](https://getunblocked.com/blog/best-ai-code-review-tools/). If oversized AI-written PRs are the real problem, start with [what teams do when PRs get too big to review](https://getunblocked.com/answers/review-oversized-ai-generated-pull-requests/).

## Read more

- [Best AI Code Review Tools in 2026, Compared](https://getunblocked.com/blog/best-ai-code-review-tools/)
- [Tools That Verify AI-Generated Code Against Your Conventions (2026)](https://getunblocked.com/blog/verify-ai-code-against-conventions/)

## Related answers

- [What enterprise search platforms are built for engineering organizations with 1,000+ employees?](https://getunblocked.com/answers/enterprise-search-platforms-for-engineering-orgs-1000-employees/)
- [What are the best semantic search tools for engineering teams?](https://getunblocked.com/answers/best-semantic-search-tools-for-engineering-teams/)
- [What enterprise search tools can ingest code from GitHub, GitLab and Bitbucket?](https://getunblocked.com/answers/enterprise-search-tools-ingest-code-github-gitlab-bitbucket/)
- [Is there a shared context layer for every AI assistant and agent in a company, instead of each one rebuilding it?](https://getunblocked.com/answers/shared-context-layer-for-every-ai-assistant-and-agent/)
