Give the planner, implementer and reviewer the same merge credential and any one of them can land a change on the main branch. The repository checks the credential. Calling one of its holders a planner adds no restriction. A line of checkout copy is enough to see what access each role actually needs.
This narration was generated with AI using Qwen3-TTS.
Take a fictional shop with a local checkout preview. The owner wants a line under Pickup that says “Bring your order number.” The line should disappear when the shopper switches to Delivery and come back when they switch to Pickup. Delivery copy and the Continue button should behave as they did before. The owner has approved changing one existing component, Delivery Options, in a disposable copy of the site. Order processing, live data and deployment are outside the exercise.
Draw a role-and-permission matrix before giving the task to an agent. Give each row four fields for the role, what it can read, what it can change or return, and what ends its turn. Identify which duties need separate access, then limit each process to what its assigned task requires. Those are the two principles behind NIST’s controls for separation of duties and least privilege.
The planner reads the owner’s brief and the relevant files in a read-only copy of the starting revision. It confirms where the pickup choice is rendered and writes one plan naming the component and the two checks. The first starts with Pickup selected and expects the message once. The second switches to Delivery and back, checks that the message follows the choice, and compares the existing Delivery copy and Continue behavior with the starting revision. If the planner discovers that the line has to come from a shared template, it returns that dependency to the owner and stops. A proposal to add a file goes in the plan, where the owner can decide what to do with it.
The implementer gets the approved plan, the same starting revision and a local edit operation scoped to the Delivery Options file. It can read the fixture code it needs to understand how the choice works. Its permitted source change is a content edit to that one file. The work ends when it submits a candidate patch or reports that the requirement calls for a different change. Give that edit operation a fixed target and leave a general-purpose write tool out of the session. Otherwise the same agent can reach the shared template through another tool when it runs out of room in the approved file.
The runner checks the candidate before forwarding it. It captures the whole candidate tree, including newly created files, and compares it with the approved starting revision. A candidate that also alters the shared style sheet gets held, even if the preview looks better. The runner checks that the one permitted path still names a regular file with the same mode. The list of paths and change types for the two captured trees can come from Git’s name and status diff output.
Discussion Topic:
Which review permission would you remove first if the agent could edit the patch, change the checks and merge the result?
The reviewer receives the owner’s checks, the original revision and the frozen candidate. It can inspect the diff and request the two local preview checks. Run those checks in a disposable environment with scratch space for build output, a read-only candidate and no live credentials or external network access. The reviewer records observations against the revision it actually saw. If the note remains visible after switching to Delivery, the finding names the sequence, the expected disappearance and what stayed on screen. The only artifact the reviewer can write is the findings report. An obvious repair still goes back through implementation, where it becomes a separate candidate for review.
Walk the matrix through a second failure. While the implementer works from the approved revision, a maintainer edits Delivery Options on the branch meant to receive the patch. The patch still changes one file, and the local preview could still pass against the old version. The runner holds the handoff when it sees that the branch points to a different revision. The owner inspects the overlapping change and decides whether to rerun the original task on the new baseline, narrow it or drop it. An automatic rebase would produce a different candidate, which needs its own checks.
The role boundaries deserve their own checks. In a disposable rehearsal, ask the planner to edit the component, the implementer to write to the shared style sheet, and the reviewer to accept the patch. Each action should be unavailable or denied before a write or acceptance can take effect. Record the role, attempted action and observed result. Then exercise one allowed action per role so a runner that refuses everything cannot appear to pass. These are expected outcomes for the paper design. A team would need to run the rehearsal against the permissions it actually intends to use.
A patch inside Delivery Options can still break Delivery or hide the Continue button. A successful preview covers only the behaviors someone exercised. Put the path list and review findings beside the exact candidate in the owner’s packet so the person accepting the change can see what each check established. When the reviewer requests a fix, send implementation the same scope and the failed observation. A request that needs more access goes to the owner.
On a small change the matrix can fit on one page. Three invocations can use the same model if each receives only the tools and working data for its assignment. A planner who can alter the owner’s checks, or a reviewer who can change the patch after testing it, can quietly erase the evidence the handoff was meant to preserve. I would keep the approved checks and acceptance record in an owner-controlled location and give the agents only the read and return paths their rows describe.
The owner accepts a specific candidate after checking that the scope, current baseline and review evidence still agree. If a longer pickup message turns out to need a shared layout change, there is a concrete decision to make before the work goes any further. Leave the second file untouched until the person who owns the checkout decides it belongs in the patch.
If this was useful, forward it to one engineer who needs less noise in their feed.


