Decisions and Organization / Organization Design

AI Worked 5,855 Times in 30 Days and We Made 1,494 Code Changes, but a Person Approves Only One Place: Releasing to Production | Where to Draw the Line Between Automatic Merge Approval and Production Approval

I have automated our system development so that a person approves only one place: releasing to production. In the last 30 days there were 1,494 code changes, and the AI ran 5,855 times. Today I will tell you everything about where I draw that line and the actual procedure: the tools I use and how I fix things when something fails.

First, what the numbers count

The 1,494 code changes are commits across all repositories and all branches. Identical changes that were moved to another branch are counted once. It is the 30-day total, including the period before the move away from GitHub and the period after it.

The 5,855 is the number of work logs the AI leaves each time it works, where logs for the same piece of work count as one. It covers not only development but also marketing and operations. It is the number of times the AI ran. If I narrow it to work tied to development repositories, it is 645.

There is a caveat. From the author name on a commit, I cannot tell whether a person or the AI wrote it. So I treat the commit count as the volume of development changes and the work-log count as the volume of AI activity, and I always say what was counted before I use a number. Without a definition, a number quickly becomes a tool for making things look bigger.

Before automation: the pain was the gap in the picture, not the waiting

I used to outsource development to companies abroad or to engineers in Japan. The waiting was long, but what troubled me more was that the finished form in my head was different from what came back. When I asked for fixes, I waited again. That cycle repeated.

If you think it is a speed problem, you push people to hurry. But the real problem was that the idea was not getting across. It is the same with AI: if it is not communicated, the AI just builds the wrong thing faster. So the first thing to fix was not the code but how I hand over the specification.

Step 1: Fix the specification as HTML for people, with an image of the finished result

  • Instead of a text-only specification, I write it as an HTML page that opens in a browser. I make it locally with Claude and register it where development happens
  • On the same page I put the look of the screens and a sample of the finished result. Words are read differently by different people, but a picture shows the difference at once
  • There are three tips. Write it screen by screen. Draw the differences in state too, such as after a button is pressed or when the screen is empty. Write what we will not do (because AI sometimes adds things nobody asked for)
  • I give the AI the same content in the body of an Issue. People look at the HTML and the AI reads the Issue. Before starting, I check that both are looking at the same finished image

Step 2: Split the work into projects and tasks, and run them in parallel

I turn what I want to build into a project and split it into small tasks. One task is one Issue. When the tasks are small, several AIs can work on different tasks at the same time.

There are three rules of thumb for task size. It finishes within the two hours for which the work area is reserved. The place it touches is in one spot. The completion condition can be stated as one check. If a task looks bigger, I split it further, because a small task is easy to roll back when it fails.

I check progress in the project and task list in Kaname. Each time the AI works, it leaves one work log: what it did, what remains, and what to do next, in ten fixed headings, so anyone taking over can continue by reading that one entry. The rules for running AIs in parallel are: do not touch what the previous owner is still working on, and before sending anything outside, reread the previous owner's result.

Step 3: The flow is the same every time. Merging is automatic, and only production needs a person

The source of truth for our code is our own forge (SCION). The flow is: create an Issue, reserve the work area, cut a work branch, open a merge request (MR), merge automatically, and have a person approve only production. When the order is the same every time, you can see at once where it stopped.

  1. Issue. Three points, "what", "why" and "completion condition", plus the place to touch as the "target". The completion condition says which checks must pass, so that whether it is finished is not decided by feeling
  2. Reserving the work area. The AI reserves the range of files it will touch for two hours. It prevents two AIs from editing the same place at once and colliding. It is traffic control for working in parallel
  3. Work branch and MR. The branch name is "work/issue-number/content". The MR body has three parts: changes, verification (the checks run and their results), and remaining issues
  4. Merging is automatic. Since November 15 the number of required MR approvals is 0. If the checks pass it merges, and only an MR with a rejection stops. Of the 606 MRs created since November 15, 597 are merged. The median time from creation to merge is about 6 seconds
  5. Only when going to production, a person approves. The AI stops just before reflecting a change in production, and it goes out after I give the OK

People ask whether quality is fine if nobody looks. I put the protection in mechanisms, not in human eyes: automatic checks, a review by Codex (another AI reads the code the AI wrote, and the code is fixed until there are no findings), and a full run of all tests locally before sending. What passes these three is, if anything, more reliable than a person reading each one, because people overlook things when tired.

I keep the decision to set approvals to 0 as a numbered decision record, with the reasons and the weaknesses that remain. If what we rely on is written down, we do not get lost when we review it later.

One line: machines for changes that can be undone, a person only for production, which is hard to undo

A merge can be redone any number of times, but what goes to production is seen by customers. So that is the one place where a person takes responsibility. In the production approval I look at the verification results and remaining issues written in the MR, and what will change in production. I do not read the code itself. The checks and the review confirm whether the code is correct. Splitting the roles keeps approval from taking time.

GitHub is now only a backup. Every day at 3 a.m. I copy the contents of the forge main branch there. Issues, MRs, reviews, approvals and work records exist only in the forge.

Step 4: Keep every version so that you can go back even if something fails

All work remains as branches and commits. An MR also records which commit it merged. So if something happens, we can return to the previous version.

But failures are not zero. On the night of December 4, the process that publishes articles published from an old version, and 17 live pages disappeared. Because every version is kept, we never lacked something to go back to. On top of that, I added a check before publishing that compares against the list of pages that are currently live. If a live page is missing, it stops there. The procedure said "update to the latest first, then publish", but publishing was possible even without following it. So I changed it so that it stops if you do not follow it. Do not add a warning; add a place where it stops. That is the basic way to fix things.

I did this fix through the same flow, too. The fix itself became an Issue, and its completion condition was "confirm that trying to publish an old version stops". I also wrote down the weakness that remains. What matters is not that there are no failures, but that we can go back and we can stop.

Tools I use and tips for delegating

  • Source of truth, Issues, MRs and work-area reservation: forge (SCION)
  • Progress: Kaname
  • Implementation: Claude Code, Cursor agents, and dots (an AI)
  • Review: Codex
  • HTML specifications: Claude
  • Backup: GitHub

There are three tips for delegating to AI. Keep each request small. Write the finish line as checks. Always have the AI leave a record of its work. The AI starts from a blank state every time, so with a record, a different AI can continue from where the last one stopped.

There are about 200 work logs a day, and 1,498 in the last 7 days alone. People do not read them all. I look only at what is waiting for a decision, what has stopped, and what has failed. Instead of looking at everything, I look only at where it stopped. That is also a way to reduce human effort.

Before and after, and where to start automating

The biggest change is that the gap in the picture shrank. Since we align the finished image first, results that differ from what I wanted have almost disappeared. I hardly feel that I am waiting. What I do is decide the specification and decide to release to production.

To decide where to start automating in your own company, first write down every place where a person approves. Next, mark each one "can be undone" or "cannot be undone". Hand the ones that can be undone to machines first, and keep the ones that cannot with people to the end. In development, merging can be undone, and production is hard to undo. Once you mark them like this, where to leave things to machines is decided naturally.

Honestly, the difficulty is high

I built this by imitating what I imagine a company that makes AI would do: that they probably use AI in their own development like this. I have not confirmed whether Anthropic actually does so. I did not copy a correct answer; I imagined it and assembled it to fit the size of my company.

Keeping the source of truth in-house, reserving work areas, automating merges and keeping every version all take effort to build. If you want to go as far as this form, it is more reliable to consult me than to copy it yourself.

A small first step for tomorrow

  1. If you use Google Workspace, build a small dashboard with GAS (Google Apps Script). Start by putting numbers scattered across spreadsheets onto one screen. Run it at a fixed time every morning and collect sales and inquiry counts into one sheet
  2. Before building, draw the screen you want. If you ask Claude to build it, show it that picture
  3. When it works, record what went well and what stopped
  4. Write down every place where a person currently approves and mark each "can be undone" or "cannot be undone". Hand the ones that can be undone to machines first

Note: The numbers are totals from my company's development records as of December 5, 2026. The tools and procedures described here are what I actually use in my own operation. The right shape differs by company and environment.

▶ Watch the full video (Japanese)
https://www.youtube.com/watch?v=8mVrZ-MQ-Aw