Stage 4: routine PRs do not need another human review
← Back to Articles

Stage 4: routine PRs do not need another human review

In this article

  1. Separate proposals from authorization
  2. Four stages, using the team directory as an example
  3. Flow 1: the team directory, without AI
  4. What the policy can automate
  5. Flow 2: AI-assisted test review
  6. The role of AI and tests
  7. Logs and governance
  8. The decision beyond approval
  9. 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.

First, separate proposals from authorization

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:

StageThe person’s roleWhat updating the directory would look like
1 — CoordinatesGuides each stepGets help preparing the update, reviews it, and decides what to do.
2 — SupervisesDelegates but stays involvedAutomation prepares the change; the person follows along and corrects what is needed.
3 — ReviewsApproves before it is appliedAutomation prepares the proposal; the person reviews and approves or rejects it.
4 — Handles exceptionsSets the rules and decides cases outside themAutomation 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, and target_branch constrain the title and the source and destination branches — the lines of work between which the change will be incorporated.
  • Where may changes happen? expected_paths limits the files; allowed_file_statuses: [modified] permits modifying an existing file, not creating or deleting it.
  • What needs checking? required_status_checks lists automated checks. check_script represents content validation: changing only the right file does not prove that the change inside it is acceptable.
  • How is it incorporated? merge_method: squash combines the changes into a single commit, a record of the change. title_edit_policy: forbidden expresses 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 directory2. Proposed AI-assisted review and tests
InputA directory updateAll code changes in the rolling 48-hour window
How the decision is preparedExplicit rules check whether the update is allowedAI examines the changes and existing tests; suggests updates, new tests, or tests that may be obsolete
Who verifies the resultThe rules validate the update; automation only applies what they allowA separate runner executes the suite covering all changes in the period
What may proceed automaticallyChanges covered by the policy, such as permitted information updatesUpdating or adding tests, if the policy allows it and the suite passes
What goes back to a personAn unlisted change, such as removing or renaming a teamA 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

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.