Skip to content
From request to live: changes that build and test themselves, and where the line is

From request to live: changes that build and test themselves, and where the line is

· Bert Altena

In three months from a request on the board to a chain that builds small changes itself, tests them in a real browser and deploys them. The most interesting part is what is deliberately not automatic.

At the start of August, work on a booking platform I work on was still simple: someone reports a request, I build it, someone tests it, and it goes live. Three months later, a small fix travels from report to production without anyone writing a line of code.

That sounds like a story about AI. It is mostly a story about the chain around it, and about the limits that are deliberately built in. This is how it came about, step by step.

Step 1: testing as a checklist

It did not start with automation, but with testing. There was no fixed regression test. Whoever tested got the task "just check whether it works", and that is exactly the form in which testing goes badly.

In August a test protocol arrived. Each script tests one aspect, in three to six small steps, with the expected result for each step. The first catalogue had 39 scripts. The system itself puts test tasks on the task board as soon as a script is out of date, with the money chain first. The outcome feeds a release gate that is strict on everything involving money and mild on the rest.

That step looks small, but everything that came after leans on it. A chain that builds by itself needs an objective measure for "it still works".

Step 2: a code review across the whole project

Next came the question of whether all the existing work was actually right. The plan: go through every own file one by one, about 975 files and 345,000 lines, reading the context first and only then the file.

The key choice was in how findings are classified. A real bug whose fix provably changes nothing about the behaviour is something different from a real bug whose fix by definition changes behaviour. Correcting a wrong calculation changes the outcome, and then "fixed" can still turn out wrong. Only the first kind is ever eligible to be repaired by the system itself. Everything else goes to a person as a proposal.

A finding has a "Fix now" button. That click is permission for exactly that one finding, not for anything else.

Step 3: a check at the front door

Most of the work was not in the building but in unclear requests. "The calendar is acting weird" is not a task.

Since 1 October every request first goes through a check before it reaches the board. Is what is reported correct? Is there enough information to start? Is it a task for development or a job for someone in the office? Only then does it get a report and a place on the board, plus its own issue on GitHub with the attachments.

That report is followed by build advice: startable, or consultation needed.

Step 4: the build chain

Startable means: a bug or a change within an existing screen, within a size limit. That limit has grown with trust. It started at three files, went to five, and now stands at fifteen files and 800 changed lines at most. The database may only be extended, never have anything removed or renamed.

If a task is startable, a scheduled job checks every five minutes whether work is waiting. An AI builder picks it up, builds it as one commit on its own branch, and runs the checks: PHP syntax, the code scan, the check for em-dashes, the migration check and the size limit. Then the change goes to the test environment, which deploys itself.

Step 5: testing in a real browser

Then comes the retest, without AI. A browser logs in through a session that may only look, and opens every screen the change touches: at desktop width and at 390 pixels, the width of a phone.

A clear problem is hard and measurable: a PHP error in the log, a server error or an empty page. If the test is green, the main branch moves forward to exactly that change, it goes to production and the same test runs there once more. Red on production rolls it back and sets the card back to In progress, with the reason.

One lesson along the way: the retest once opened a call that returns JSON as if it were a screen. In a browser such a call is always "empty", so the test saw a problem and rolled back a good change. A test that is too strict costs just as much trust as one that is too lenient.

What is deliberately not automatic

This is the part I consider most important.

Money is always human work. A task that changes how money is calculated, invoiced, paid or refunded is only created after consultation with the owner, and is never started automatically. Not even when it is a bug reported by an administrator. The reason: money requests that came in as a patch on a single booking. Such a patch can silently break the rest of the chain.

A protected set goes by click. Changes to login, sessions, mail sending, the calendar integrations and the scheduled jobs are built and tested, but never go to production by themselves. A person always clicks there.

The chain does not guard itself. The files with which the chain checks its own limits cannot be changed by the builder. Otherwise it could loosen its own rules.

Everything can be followed. Every step is on the task card and in a log. Anyone who wants to know why a change is live, or why it was rolled back, can read it back.

What I take from this

Three things. Start with testing, not building: without an objective measure, automation has no floor. Let the limit grow with trust, instead of setting it wide in advance. And decide beforehand what may never be automatic, before someone asks for it in a busy week.

How the tasks themselves come out of conversations, I described earlier in from meeting to task list. More of the platform is in the portfolio. If you want to know what something like this means for your own software, get in touch via the contact page.

Frequently Asked Questions

Can AI build software changes and put them live by itself?
For small, well-described changes it can, provided there is a chain around it: a check when the request comes in, a limit on size, automatic checks, a test in a real browser and a way to roll back. For anything involving money, a person keeps deciding.
What is a retest?
After the build, a browser automatically opens the screens the change touches, at desktop width and at 390 pixels like a phone. A PHP error, a server error or an empty page counts as a clear problem and rolls the change back.
Which changes never go automatically?
Anything that changes how money is calculated, invoiced, paid or refunded. Such a task is only created after consultation and never started automatically. Changes to login, mail sending or the integrations also always go to production through a human click.
Chat met ons