Our AI wrote the same bug twice
Why we are building an Application Profile: a place for what the system learns to live.
Our AI wrote the same bug twice.
Three weeks apart. Different screen. Nobody edited anything in between.
We found it the first time, fixed it, moved on. Then the next module came back with the same broken login check. The one that thinks you are signed in while the browser is still sitting on the login page.
That is not a model problem.
You can change the model and it happens again. It happens because there is nowhere in our system for a fact to live.
So that is what we are building. We call it the Application Profile.
The idea is small. Every time the system learns something true about a customer's application, it gets written down once and reused.
- The route to a page
- The exact wording of a success message
- Whether a field is required
- What the app does when you leave it blank
- What has to finish loading before the next step
Each fact carries a status. Proven. Unproven. Out of date.
When the application changes, the fact expires and has to be established again. It does not quietly go stale and take a hundred tests down with it.
Two things pushed us here faster than the bug did.
The first is cost. Almost everything we spend on a run goes on re-reading the application, not on writing tests. Every module starts by working the same things out again. There is no second-time discount. The tenth module costs what the first one did.
The second surprised me.
In our last run, the cheapest model started doing this on its own. Instead of guessing what a field allows, its tests said where it had read the rule and named the source file.
Nobody asked it to. It stopped guessing because it had somewhere better to look.
One thing I want to be clear about, because it is the part people get wrong.
This is not caching.
A cached guess is still a guess. A fact only counts once something has run and shown it to be true, and a person has signed off. Skip that and you have only made the system confidently wrong, faster.
We are building it now. I will report back on what breaks.
If you are generating tests with AI, where does what it learns about your application actually live?
Try the AI Accelerator. Free for testers.
Sign up