Key takeaways
- Aisha's builders never push straight to the main branch. Every change arrives as a pull request, with a report, for review.
- In a colleague's browser workspace, changes go out as pull requests only. A check in the workspace blocks pushes to main, so the rule does not rely on anyone's memory.
- The rule protects four things: review, history, rollback and accountability.
- It costs some speed. A good build report with screenshots and steps keeps that cost small.
- Ask any AI that touches your code the same five questions, listed below.
On this page
The rule in one line
An AI can write code. It cannot put that code into the main branch by itself.
The main branch is the version of your code that gets deployed. Anything that reaches it can reach your customers. So the path to it should always pass a second pair of eyes, and the eyes should belong to someone who answers for the result.
What a pull request gives you
A pull request is a proposed change, held at the door. It shows exactly what would change, line by line, and it waits for a decision. That small pause buys four things.
| What it protects | How |
|---|---|
| Review | A person reads the change before it counts |
| History | The change, its reason and its discussion are kept together |
| Rollback | A single change is easy to undo, because it arrived as a single unit |
| Accountability | A named person said yes |
None of this is new. Good engineering teams already work this way with human authors. The only new idea is to apply the same rule to an author that is not human, and to apply it without exceptions for being fast or being confident.
How the path works
- A request. Someone asks in your team chat. Aisha interviews them and writes a spec.
- The start. A small, fully planned fix starts at once; a new feature waits for one yes from the person you name before the build.
- A build. A builder works in an isolated copy of the code and runs your checks.
- A pull request. It opens with a report: screenshots, a short video and two to four steps to try it.
- A review. A person reads it like any other change.
- A merge. Once checks pass and a person says go, the change is merged and deployed using your own recipe.
At no point does the builder merge on its own authority. "Ships when the checks are green" is the whole point of the last step, and on a product your customers use, your developers say go.
Who can do what
| Change | Who starts it | Who decides | What ships it |
|---|---|---|---|
| A new feature | Anyone you list, via a request | The person you name, once | A pull request, then your developers' go |
| A small fix on an internal tool | Anyone you list, and work starts at once | Your checks must pass | It ships after checks pass, and she watches it |
| Client-facing code | Anyone you list, via a request | Your developers | Never ships by itself |
| A change from a colleague's workspace | The colleague | A reviewer | A pull request only, never to main |
Notice that "starts at once" and "ships at once" are different things. A small fix begins work immediately, so no time is lost at the start. Your checks still have to pass before it ships.
Making the rule real
An instruction in a prompt is not a rule. Prompts get forgotten, misread or argued around. A rule is something the system enforces.
In our own deployment, each person's browser workspace is set up so that a push to main is refused. The workspace works with a read-only copy of the data and sends changes as pull requests. The rule does not need anyone to remember it, which is why it can be trusted on a busy Friday.
If you run an AI against your own code, ask your team to protect the main branch in your code host, require review and require checks. Then the AI, and everyone else, follows the same rule.
What it costs
Honest answer: some speed. A change that could have been live in minutes waits for a review. In practice the wait is shorter when the report is good, because the reviewer can see what changed, how to try it and what was checked. A clear build report is the thing that turns a review from a chore into a two-minute read.
We think that trade is right for code that touches customers. For internal experiments the same path works, just faster.
When the rule feels slow
Every team feels it eventually. The change is tiny, the fix is obvious, and the review seems like a formality. That is the moment the rule matters. A rule that bends for small changes is a rule that bends. Keep the path short and the report clear, and the review will take minutes.
Five questions for any AI that touches your code
- Can it push straight to your main branch?
- Who reviews what it writes, and can they see the full diff?
- Are your checks required before a merge?
- How do you undo a change?
- Is there a record of what it changed and who decided?
If the answer to the first is yes, treat that as the reason to pause.
Frequently asked questions
Does the review make the AI useless for small fixes?
No. A small fix is a small review. The rule is about who decides, not how long it takes.
Can the AI merge its own pull request?
Not on its own authority. Merging and deploying follow your recipe, once checks pass and a person says go.
Is the builder locked away from the rest of my systems?
It works in an isolated copy of the code, with only the access you gave it, and the pull request is the gate.
To see the full path from request to merge, read the Opens a pull request action.