Going public soon.Companies on the waitlist are onboarded first.Join the waitlist

All guides

Field noteGuide

Why our AI never pushes to main

The pull-request-only rule for AI-written code: what it protects, what it costs in speed, how it is enforced, and five questions to ask any AI near your code.

The Aisha team5 min read

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
  1. The rule in one line
  2. What a pull request gives you
  3. How the path works
  4. Who can do what
  5. Making the rule real
  6. What it costs
  7. When the rule feels slow
  8. Five questions for any AI that touches your code
  9. Frequently asked questions

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 protectsHow
ReviewA person reads the change before it counts
HistoryThe change, its reason and its discussion are kept together
RollbackA single change is easy to undo, because it arrived as a single unit
AccountabilityA 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

  1. A request. Someone asks in your team chat. Aisha interviews them and writes a spec.
  2. 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.
  3. A build. A builder works in an isolated copy of the code and runs your checks.
  4. A pull request. It opens with a report: screenshots, a short video and two to four steps to try it.
  5. A review. A person reads it like any other change.
  6. 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

ChangeWho starts itWho decidesWhat ships it
A new featureAnyone you list, via a requestThe person you name, onceA pull request, then your developers' go
A small fix on an internal toolAnyone you list, and work starts at onceYour checks must passIt ships after checks pass, and she watches it
Client-facing codeAnyone you list, via a requestYour developersNever ships by itself
A change from a colleague's workspaceThe colleagueA reviewerA 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

  1. Can it push straight to your main branch?
  2. Who reviews what it writes, and can they see the full diff?
  3. Are your checks required before a merge?
  4. How do you undo a change?
  5. 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.

engineeringSample
Jonas

@Aisha The coupon field rounds 12.5% wrong on the checkout page.

AishaAPP

Reproduced, fixed and tested. The pull request is open with a screenshot and a 20-second clip of the fix; it ships once your checks are green. I will tell you the moment it ships.