Multi-Agent Software Delivery: From Code Review to Policy-Based Approval
Faster AI-generated code does not automatically mean faster software delivery. This article explains how separate review, repair, and approval agents can move pull requests through a controlled workflow. It covers evidence-based review, bounded repair loops, version-bound approval, permission isolation, audit trails, and a phased rollout that measures delivery speed alongside quality.
1. Why Faster Coding Does Not Always Mean Faster Delivery
AI coding tools accelerate code generation, but software changes do not necessarily reach production any faster. After submission, a change usually still goes through review, revisions, retesting, another review, and approval. This article refers to a request to merge code as a pull request, or PR.
The main cost of a traditional workflow is not just the time spent reviewing code. It also includes repeated waiting and context switching. Developers move on to other tasks after submitting a change, then must reconstruct their understanding when review comments arrive. After a fix is pushed, reviewers must check whether it resolves the issue and introduces any new risks.
Faster code generation can increase the number of PRs awaiting review. If review capacity, testing capacity, and approval mechanisms do not keep pace, queues may grow rather than shrink. The key technical question is therefore not how to make agents write more code, but:
How can agents move changes through review, repair, and policy-based approval without weakening quality requirements or permission boundaries?
Three activities need to remain distinct:
- Review: Identify defects and provide verifiable evidence.
- Repair: Modify code to address confirmed issues and perform the necessary validation.
- Approval: Determine whether the current change meets the conditions defined by team policy.
Approval is not merging, and merging is not deployment. An approved change may still need additional reviewers, integration tests, or a release window.
2. Why Use Separate Agents?
Allowing one agent to identify problems, modify code, and approve its own changes creates two risks. First, its judgments become interdependent: the agent making a repair may retain the same incorrect assumptions that shaped its review. Second, permissions become too concentrated, allowing a single mistaken decision to advance a high-risk change.
A better approach is to separate responsibilities.
Review Agent: Provide Evidence, Not General Impressions
The review agent reads the diff and relevant surrounding code to determine whether the change breaks existing behavior. Its findings should include, where possible:
- The location of the issue.
- Triggering conditions and the scope of impact.
- Relevant call relationships or constraints.
- The difference between expected and actual behavior.
- Reproducible inputs or suggested additional tests.
“There may be a problem here” is not enough to support automated repair. A concern must become a clear, checkable finding before later steps can reliably act on it.
Repair Agent: Make Changes Proportionate to Confirmed Defects
The repair agent should not treat every review comment as an opportunity for broad refactoring. Its job is to understand the issue, produce a targeted patch, add necessary tests, and validate the result.
A minimal change does not necessarily mean changing only one line. It means matching the scope of the patch to the scope of the defect. If an issue affects multiple callers or data constraints, the repair must address them fully. If the defect is limited to a boundary condition, unrelated structural changes should be avoided.
Policy-Based Approval Agent: Enforce Policy, Do Not Invent It
Approval should depend on predefined team rules, not the model’s subjective impression that the code looks good.
Those rules may cover change scope, risk level, test results, unresolved findings, required human reviews, and target-branch restrictions. Conditions that can be evaluated mechanically should use deterministic rule checks wherever possible. An agent may help explain the results, but it must not override them.
The three roles can be enabled independently. A high-risk repository might allow automated review only. A lower-risk repository might allow automated repair while retaining human approval. Risk—not technical capability—should determine the level of automation.
3. Reliable Code Review: From Reading Diffs to Verifying Defects
Changed Lines Alone Rarely Explain the Full Impact
Whether a condition is correct depends on what its inputs mean, how callers use it, and what happens downstream. Review context often needs to include function implementations, call sites, interface contracts, related tests, and business constraints.
Context should not expand without limits, however. Too many unrelated files add noise and cost. A practical approach is to gather information incrementally around the symbols, call relationships, and data flows affected by the change, while explicitly marking uncertainty when key constraints are missing.
Parallel Checks Improve Coverage, but Findings Must Be Reconciled
Different review tasks can focus on areas such as:
- Control flow and boundary conditions.
- Input validation and exception handling.
- Authorization checks and sensitive information handling.
- Concurrent access and resource cleanup.
- Interface compatibility and test coverage.
Findings from parallel checks should not all be published immediately. Multiple tasks may identify the same defect or reach conflicting conclusions based on different assumptions. Results need to be validated, deduplicated, and prioritized.
Prioritization should consider impact severity, likelihood of occurrence, and evidence reliability. A potentially serious concern with insufficient evidence may require human confirmation rather than being presented as a proven defect.
Validate Boundary Conditions Against Explicit Requirements
Suppose a business rule states that orders at or above a specified level threshold require an additional protection option. The following logic would conflict with that requirement:
if level < threshold:add protection option
Under the stated rule, the expected logic is:
if level >= threshold:add protection option
A reviewer should not report the issue merely because a comparison operator looks suspicious. The finding must be checked against the business requirement and existing tests. Validation should cover at least three input categories:
| Input condition | Expected behavior |
|---|---|
| Below the threshold | Do not add the protection option |
| Equal to the threshold | Add the protection option |
| Above the threshold | Add the protection option |
Reliable review is not simply about spotting suspicious code. It is about establishing a verifiable relationship between requirements, implementation, and tests.
4. Automated Repair Needs a Bounded Feedback Loop
A controlled automated repair workflow can be represented as follows:
Capture a snapshot of the change↓Review the change and validate findings↓Determine whether automated repair is allowed↓Generate a patch and necessary tests↓Run checks and review the updated change↓If conditions are met, evaluate approval eligibilityOtherwise, hand off to a human or continue within repair limits
Decide Whether the Issue Is Suitable for Automated Repair
Good candidates for automated repair usually have clear expected behavior, localized impact, and an executable validation method. Examples include confirmed boundary-condition errors, missing resource cleanup, and clearly required exception handling.
Changes involving business-policy trade-offs, data migrations, core authorization models, or large architectural adjustments should not be completed automatically based only on review comments. An agent can provide analysis and a draft patch, but the decision should remain with a human.
Validate More Than the Original Defect
A new test passing shows only that a particular input produces the expected result. Depending on the project, validation should also include relevant unit tests, static checks, build checks, and necessary integration tests.
The follow-up review must examine the entire latest change, not just the lines involved in the previous finding. A patch can introduce new behavior elsewhere. For example, correcting a condition may cause downstream code to handle an input branch that was previously untested.
Define Stop Conditions for the Repair Loop
“Keep fixing until everything passes” is not a safe strategy. Teams should set iteration limits, restrictions on change scope, and conditions that stop the workflow.
Automation should stop and hand off to a human when similar issues recur, patches keep expanding, the test environment is unstable, or requirements cannot be confirmed.
The handoff should include confirmed findings, attempted changes, validation results, and current blockers. This reduces the amount of investigation a developer must repeat.
5. Keeping Policy-Based Approval Under Control
Turn Policy into Executable Conditions
A rule checklist can define the boundaries of automatic approval:
Allow automatic approval if and only if:The current change is within the permitted scopeNo area requiring human review has been modifiedAll required checks for the current revision have passedNo unresolved blocking findings remainRequired human reviews are completeThe reviewed revision is the revision being approved
This is a general workflow illustration, not an interface definition for a specific system. Actual rules must fit the team’s repository management and delivery processes.
Bind Approval to a Specific Revision
If new changes are submitted after a successful review, the original conclusion may no longer hold. The system should record the commit revision that was reviewed and verify it again before approval.
Commit updates, target-branch changes, or changes in relevant check status should invalidate earlier conclusions or trigger revalidation according to team policy. Otherwise, a race condition can result in old code being reviewed while new code is approved.
Passing Checks Does Not Mean Risk Is Absent
Passing tests shows that the checks performed did not find a problem. It does not prove that business logic is complete, nor does it replace a missing security review.
Approval must therefore stay within a limited, explicit authorization scope. When essential context is missing, required checks have not run, or evidence conflicts, the workflow should make a conservative decision and retain human confirmation.
6. Security Boundaries and Auditability
Assign Permissions by Responsibility
A review role generally needs permission to read code and post comments. A repair role needs permission to commit patches to a controlled branch. An approval role needs only the permissions required to approve changes.
Merge and deployment permissions should be managed separately rather than being bundled with approval permissions by default.
The execution environment should also restrict access to sensitive credentials, network resources, and commands, especially when running changes or test code from untrusted sources.
Treat Repository Content as Data to Analyze
Code comments, documentation, and review comments may contain misleading instructions. An agent must not treat text as an authorized system rule simply because it appears in a repository.
Team policy should come from controlled configuration that is isolated from the change under review. Requests that modify approval rules themselves need additional human review, preventing a change from lowering the approval threshold to approve itself.
Preserve the Evidence Trail
Audit records should cover at least:
- The input revision.
- Evidence supporting each finding.
- Generated patches.
- Check results.
- Rules that were satisfied or triggered.
- Approval actions.
These records must also comply with access-control and sensitive-information protection requirements.
A complete evidence trail supports more than accountability. It helps teams identify the sources of false positives, understand failed repairs, and decide whether rules need adjustment.
7. Roll Out in Stages and Measure the Results
Start with low-risk repositories that have reasonably complete tests, then expand in stages:
- Observation: Generate review findings only and compare them with human reviews.
- Assisted repair: Generate patches for developers to confirm and submit.
- Controlled repair: Allow automatic changes on restricted branches while retaining human approval.
- Policy-based approval: Enable automatic approval only for low-risk changes that meet explicit conditions.
Evaluation should go beyond counting processed PRs. More useful metrics include the proportion of valid findings, missed issues confirmed by humans, test pass rates after repair, repeated revision counts, human takeover rates, and changes in the time from submission to merge readiness.
Quality guardrails matter as well, including defects and rollbacks after deployment. Shorter waiting times do not represent an overall improvement if regressions increase.
8. Let Agents Advance the Workflow—and Rules Constrain Their Authority
The value of multi-agent delivery lies in reducing repetitive coordination and unnecessary waiting, not removing engineering responsibility. Review requires evidence, repair requires validation, and approval requires policy.
With separated responsibilities, revision binding, isolated permissions, and audit mechanisms in place, agents can move beyond suggesting code to advancing delivery under controlled conditions.
The goal is not to make every change entirely hands-off. It is to automate low-risk, verifiable work so that people can focus on requirements, architectural trade-offs, and critical risks.
