Stage 4: routine PRs do not need another human review
In this article
- Separate proposals from authorization
- Four stages, using the team directory as an example
- Flow 1: the team directory, without AI
- What the policy can automate
- Flow 2: AI-assisted test review
- The role of AI and tests
- Logs and governance
- The decision beyond approval
- References
Imagine opening a pull request (PR), a request to incorporate a change into a repository, and finding another team-directory update. The membership has changed. You review the change, check the tests, and approve it. Days later, another PR of the same kind arrives.
The content is not identical, but the questions are: is this the right directory? Does the change meet the agreed conditions? Is there anything that needs attention? When the answer always depends on the same checks, repeating human approval begins to look less like a decision and more like a manual step.
What if a person defined in advance what may proceed and was called in when a change fell outside that agreement?
That is the shift in responsibility that interests us in Stage 4, described by Daniel Dines in The Work That Remains: moving from reviewing every occurrence to defining boundaries and handling exceptions.
The context for this discussion is CERC’s data-platform monorepo: a repository shared by several teams. We have described how each area’s context guides work in ICM: fewer agents, better context. Here, the question is different: after understanding the context and preparing a change, what is authorized to proceed?
We will follow two examples without reproducing internal configuration: a script that updates the team directory and a proposed workflow where AI reviews tests for changes from the previous 48 hours. These are different constructions. Both can benefit from Stage 4.
An agent’s ability to prepare a change does not mean it is authorized to apply it. Likewise, automatically creating a change request does not mean it should be approved.
The ability to execute is not the authority to decide.
For the directory, a script can prepare an update. For test review, AI can propose a new test. Neither action, by itself, grants permission to incorporate the change. That permission comes from a policy: explicit rules defined by the team.
Dines summarizes this division of responsibilities in Article 2, page 70: AI proposes, humans decide, automation executes. At Stage 4, the human decision about anticipated cases is incorporated into policy rather than repeated for every occurrence.
Four stages, using the team directory as an example
To understand the difference, follow the same directory update through all four stages:
| Stage | The person’s role | What updating the directory would look like |
|---|---|---|
| 1 — Coordinates | Guides each step | Gets help preparing the update, reviews it, and decides what to do. |
| 2 — Supervises | Delegates but stays involved | Automation prepares the change; the person follows along and corrects what is needed. |
| 3 — Reviews | Approves before it is applied | Automation prepares the proposal; the person reviews and approves or rejects it. |
| 4 — Handles exceptions | Sets the rules and decides cases outside them | Automation applies changes covered by the rules. If something falls outside them, a person decides. |
At Stage 4, the person does not disappear from the process: they set the rules in advance and decide what to do when a case does not fit.
This only applies to the defined kind of task. Automating directory updates does not give permission to automate every other change.
Flow 1: the team directory, without AI
Return to the opening PR. Someone has joined a team, and the directory needs to reflect that. For this example, the team authorizes membership updates but keeps team removal or renaming for human review: changing who belongs to a team is not the same as changing whether that team exists.
This is an example, not a rule for every directory. Each team needs to decide what is safe to automate in its own context.
This kind of policy can be written in YAML, a text format for organizing configuration. The example below follows the structure of an automation policy: it first defines general settings, then describes when a particular update may proceed.
title_edit_policy: forbidden
settings:
merge_method: squash
policies:
- id: team-directory-update
allowed_titles:
- "chore: update team directory"
source_branch: automation/team-directory
target_branch: main
expected_paths:
- examples/team-directory.yaml
allowed_file_statuses:
- modified
required_status_checks:
- validate-directory
- tests
check_script: validate-directory-content
Names and paths are fictional. This YAML illustrates the structure; it does not reproduce the monorepo’s configuration or provide a production-ready recipe. To read the example:
- Which request?
allowed_titles,source_branch, andtarget_branchconstrain the title and the source and destination branches — the lines of work between which the change will be incorporated. - Where may changes happen?
expected_pathslimits the files;allowed_file_statuses: [modified]permits modifying an existing file, not creating or deleting it. - What needs checking?
required_status_checkslists automated checks.check_scriptrepresents content validation: changing only the right file does not prove that the change inside it is acceptable. - How is it incorporated?
merge_method: squashcombines the changes into a single commit, a record of the change.title_edit_policy: forbiddenexpresses a prohibition on editing the request title in this example.
What the policy can automate
With these rules written down, a script can check whether a change follows what was agreed. But someone has to set the rules, review them when circumstances change, and decide cases they do not cover.
If the membership update meets the conditions, it may proceed. If it proposes removing a team, it stops for review. No model interprets whether the change “looks good”: the script applies explicit conditions. This is the deterministic workflow — the same input, under the same rules, produces the same decision.
flowchart TD
A["Team-directory PR"]
A --> B["Script checks the rules"]
B --> C["Validates content and checks"]
C --> D["Applies or requests review"]
Flow 2: AI-assisted test review
Now switch tasks. Code has changed over the last 48 hours. Did the tests keep up? Does an old test still check the expected behavior? Has a case appeared that nobody covered?
Here, recognizing a familiar type of update is not enough. Changes in behavior need to be related to existing tests. This analytical work is where AI comes in, not in deciding to expand its own authority.
In this second workflow, proposed for the monorepo context, AI examines all code changes incorporated in a rolling 48-hour window, consults the context of affected areas, and reviews the related tests. It can prepare test updates, add missing cases, or flag a potentially obsolete test.
Imagine a change that adds a new possible outcome to a function. The existing test covers only the old outcomes. AI can identify that gap and prepare a new case. A separate runner then executes the test suite to verify the changes from that period, including the proposed test changes. AI merely claiming the test is correct is not enough.
flowchart TD
A["Changes from the last 48 hours"]
A --> B["AI reviews code and tests"]
B --> C["Prepares test updates"]
C --> D["Runner executes the suite"]
D --> E["Policy allows or requests review"]
A proposal to remove a test goes to human review. The test may be obsolete, but it may also be the only protection for behavior that still matters. Deleting it just to make the suite green is not an improvement.
What differs between the two workflows
| 1. Team directory | 2. Proposed AI-assisted review and tests | |
|---|---|---|
| Input | A directory update | All code changes in the rolling 48-hour window |
| How the decision is prepared | Explicit rules check whether the update is allowed | AI examines the changes and existing tests; suggests updates, new tests, or tests that may be obsolete |
| Who verifies the result | The rules validate the update; automation only applies what they allow | A separate runner executes the suite covering all changes in the period |
| What may proceed automatically | Changes covered by the policy, such as permitted information updates | Updating or adding tests, if the policy allows it and the suite passes |
| What goes back to a person | An unlisted change, such as removing or renaming a team | A failing test, a change AI cannot confidently assess, or a proposal to remove a test |
Both workflows can operate at Stage 4. One uses fixed rules; the other uses AI to analyze changes, but leaves test execution to a separate runner. Stage 4 does not depend on whether AI is used: it depends on boundaries defined by people and exceptions that return to human judgment.
The role of AI and tests
There are two different questions: “did the tests pass?” and “is this change authorized?” The runner answers the first. The policy sets the boundaries for the second. Green tests do not prove that every important behavior is covered or authorize a change outside the permitted scope.
The principle is simple: AI can analyze and suggest; tests verify the result; rules define what may proceed; people decide exceptions.
Records do not complete governance
Keeping records helps people understand what the automation did, but that is not enough. Someone needs to check from time to time whether the rules still make sense and the results are correct.
It should also be clear who handles exceptions and how to pause the automation if it starts behaving unexpectedly. Automating a task does not remove human responsibility.
The decision that matters more than another approval
Return to the opening PR. Stage 4 does not change the value of human review, but where it makes a difference. Instead of repeating an approval already described by rules, people take responsibility for the quality of those rules and the situations they do not cover.
For the directory, this can happen without AI. In test review, AI helps interpret the changes; the 48-hour window bounds the work rather than granting freedom to change anything. The common element is not the tool: it is authorization defined before execution.
Not every task should be automated. If every case requires a different judgment, human review remains the right choice.
Stage 4 is not about letting AI decide everything. It is about agreeing in advance what automation may do and leaving people to decide what falls outside that agreement.
References
- Building CERC. ICM: fewer agents, better context. Public context about CERC’s data-platform monorepo and each team’s responsibility for its areas.
- Daniel Dines. The Work That Remains: Human Judgment, AI, and the Architecture of the Next Enterprise. Official book page on UiPath’s website. Four stages: pp. 15–16; authority and boundaries: pp. 38–41; how people and automation divide the work: p. 70.
- Schneide Blog. The four stages of automation — Part I, January 3, 2022.
- Schneide Blog. The four stages of automation — Part II, January 9, 2022.
The two models are different. Schneide Blog describes levels of automation, from documentation to fully automated execution. This article follows Dines, who explains how a person’s role changes at each stage.
This post was written by André Tayer.