AutoMerge is generally available

Last updated:

Compliance Guidance

Guidance for using AutoMerge in a change management process that has to meet separation of duties requirements, such as those in SOC 2 and ISO 27001.

AutoMerge scores each pull request and approves the safe ones, so routine changes stop waiting for a reviewer. If your organization is audited against a framework such as SOC 2 or ISO 27001, you also have to show that this faster review still meets your change management controls, in particular separation of duties.

This page describes how we approach that question and the setup we consider a sound starting point. It is guidance, not a guarantee that you pass an audit.

Important

Auditors differ in how they assess AI-assisted review. What your auditor accepts depends on your control descriptions, your risk assessment, and their own judgement. Talk to your auditor before you change how pull requests are approved in systems that are in scope of your audit.

What Auditors Look For

Change management controls usually ask for evidence that:

  • Changes are authorized: Someone other than the author approved the change before it reached production.
  • Approval is independent: The author cannot approve their own change, or change the rules their change is judged by.
  • Rule changes are traceable: Changes to the approval rules are logged with who made them and when, so an auditor can see which rules applied to a change.
  • Someone is accountable: A named person owns each change that goes to production.
  • The process is consistent: Every change goes through the same process, and you can show it did.

Separation of duties is mostly about the second and third points: the person who makes a change is not the person who approves it or sets the approval rules, and every change to those rules leaves a trail. In AutoMerge, that trail is the configuration's version history and your organization's audit log.

Auto-approve works in an audited change management process today, and we use it on our own repositories. We recommend it, not Auto-merge, for repositories in scope of an audit. The change flows like this:

  1. An engineer makes the change and opens a pull request.
  2. AutoMerge reviews it against criteria that only admins can change. Pull requests that touch sensitive paths are held for a human reviewer.
  3. AutoMerge approves it if it clears the threshold and every criterion floor.
  4. The engineer merges it and stays accountable for the change.

The line of argument is:

  • The review is independent of the author: The author cannot change the criteria, the threshold, or the path rules. AutoMerge reads its configuration from Dash0, and reads steering files such as CLAUDE.md and AGENTS.md from the base branch, so a pull request cannot rewrite the rules it is judged by. See Trust Boundaries.
  • The review is consistent: Every pull request is scored against the same criteria, whatever its size. Human review tends to get thinner as pull requests get longer.
  • The review is risk-based: Changes to the areas that matter most still go to a person. See Make the Review Risk-Based.
  • A person stays accountable: A computer cannot be held accountable for a decision. The engineer who clicks merge owns the change, exactly as they would after a human approval.

Why We Do Not Recommend Auto-merge for In-Scope Systems

In Auto-merge, no person takes an action between the change being written and the change being merged. That leaves no one who clearly accepted responsibility for putting it into production, which is the hardest point to defend in an audit.

Auto-merge can still make sense for repositories that are out of scope, such as internal tools or proof-of-concept code. Grant it with a path rule for those areas, not for the whole repository. See Roll Out AutoMerge.

Make the Review Risk-Based

Define which changes always need a human reviewer, and enforce it with Protected path rules. AutoMerge holds a pull request that touches a protected path without scoring it. Typical candidates:

  • Authentication and authorization: Login, session handling, permission checks, and role definitions.
  • Secrets and key management: Anything that reads, stores, or rotates credentials.
  • Infrastructure and network: Infrastructure as code, firewall and network policy, and IAM definitions.
  • Data stores: Database migrations and data retention or deletion logic.
  • Billing and payments: Pricing, invoicing, and payment flows.
  • The pipeline itself: CI and deployment workflows, such as .github/workflows/**, branch protection as code, and CODEOWNERS. A change here can weaken the controls that protect everything else.

Then tune the scored part of the review:

  • Set criterion floors: A Rejects below floor rejects a pull request on that criterion alone, so a high score elsewhere cannot hide a risky change. See Criterion Floors.
  • Give the evaluators your risk context: Use System prompt addition to say which areas carry the highest consequences, so the evaluators score them more strictly.
  • Start in Dry run: Compare AutoMerge's decisions with your reviewers before it approves anything. The comparison is also evidence that the review works. See Roll Out AutoMerge.

Write these choices down in your change management policy: which paths are protected, why, and which criteria and threshold apply. An auditor will ask how the rules were chosen, not only what they are.

Control the Configuration

The review is only as independent as its configuration. Treat changes to it like changes to any other control:

  • Limit who can change it: Changing a repository's mode, criteria, or path rules requires the Admin role. Keep the number of admins small, and avoid making the engineers whose changes are reviewed the only admins.
  • Name who owns the approvals: The admins who set the criteria, threshold, and path rules are accountable for the approvals AutoMerge makes under them, in the same way a person who pre-approves a category of change owns every change in it. Name them in your change management policy. The engineer who merges still owns the change itself.
  • Review configuration changes: Every save creates a version in Version history, with what changed, who saved it, and when. The same change is recorded in the audit log. Review it periodically, and on demand when the threshold drops or a protected path rule is removed. See Version History.
  • Test before you save: Run proposed changes against past pull requests on the Testing tab. The test result documents why the change was safe. See Test a Configuration Change.

Back It Up in GitHub or GitLab

AutoMerge's check is advisory, and Protected means that AutoMerge does not approve. It does not stop a merge on its own. Enforce the rest in GitHub:

  • Require an approving review: Set branch protection so a pull request cannot merge without at least one approval. Then a pull request that AutoMerge holds cannot merge until a person approves it.
  • Require code owners for protected paths: Add the paths you protect in AutoMerge to CODEOWNERS, and require code owner review. GitHub then enforces that the right person, not just any person, approves those changes.
  • Dismiss stale approvals: AutoMerge already dismisses its own approval when someone pushes a new commit. Turn on the same rule in branch protection so it applies to human approvals too.
  • Restrict who can bypass branch protection: Admins who can bypass the rules can also bypass the review.

On GitLab, use the equivalent settings: merge request approval rules, Code Owner approval on protected branches, Remove all approvals when commits are added to the source branch, and protected branch rules that limit who can merge. Approval rules and Code Owner approval require GitLab Premium or Ultimate.

Collect Evidence

Auditors usually test a sample of changes. For each one, you can show:

  • The decision and why: The bot's comment on the pull request lists each criterion's score and rationale. Dash0 records the same decision, the autonomy level the pull request ran at, and the deciding criterion. With Suppress comments on, the decision is in Dash0 only.
  • Who approved and who merged: The pull request history in GitHub, or the merge request activity in GitLab, shows AutoMerge's approving review, any human reviews, and who merged.
  • Which rules applied and who changed them: Version history shows the configuration that was live at the time. The audit log records every change to a repository's AutoMerge configuration, with the actor and a diff of what changed, and every removal of a repository from AutoMerge.
  • That the review works: Agreement with humans and the decisions graded Incorrect approval show how often AutoMerge's decisions matched your reviewers. See Agreement With Humans.

Use Approval comment to add a fixed note to every approval, for example a reference to your change management policy.

Note

Removing a repository from AutoMerge deletes its AutoMerge history, including its pull requests and evaluations. The removal itself is recorded in the audit log. Keep the evidence you need for your audit period before you remove a repository, or stream your audit logs to a backend with longer retention.

Questions to Discuss With Your Auditor

  • Does an approval by AutoMerge, against admin-defined criteria, meet our control for independent review?
  • Is it acceptable that the author merges a change after AutoMerge approved it?
  • Which kinds of change must always have a human approver?
  • What evidence do you want for a sampled change, and for changes to the AutoMerge configuration?
  • Do the Dry run results count as evidence that the review works, and how long a period do you want to see?

Further Reading