Join the waitlist

Cobaye / Blog

AI keeps breaking working code: the 15-line regression list for non-developers

Updated November 23, 2026. 7 min read.

In short. An AI coding tool rewrites files to satisfy your latest request, and nothing checks that the rest of the app still behaves. The cure is a regression list: fifteen plain-language lines you replay after every prompt, so a break is caught one prompt after it happens, not three weeks later. Add three habits: one change per prompt, a saved version before each change, and a revert instead of a third fix attempt.

Why does the AI break what was already working?

A regression is something that worked yesterday and no longer works today. In vibe coding, a regression has a simple origin: the assistant edits whatever files it needs to make the new request pass, and some of those files are shared with features you were not talking about. A login form, a save button and a pricing page can all depend on the same piece of code.

The assistant does not remember that you approved the save button last Tuesday, and you only look at the thing you just asked for. The break goes unnoticed, the next prompts pile on top of it, and you end up where one developer on the OpenAI forum did: "It fixes one thing and breaks two more."

You cannot read the code to see what moved. You can check the behavior, the same way every time.

What goes on the regression list?

Fifteen lines, each made of one action and what you should see. Not "login works", which nobody can check, but "log out, log back in, I see my own data". Use two test accounts that you keep for this purpose only. Copy the template, replace the brackets, and keep it in a note next to your project.

REGRESSION LIST: [app name]
Test accounts: A = [email], B = [email]
Last full pass: [date], on version [name or bookmark]

ACCESS
1. Sign up with a new email -> I land on [page], no error message.
2. Log out, log back in as A -> I see A's data.
3. Ask for a password reset -> the email arrives and the link works.
4. Open [URL of a private page] while logged out -> I am sent to the login page.

CORE ACTION
5. Create a [thing] -> it appears in the list.
6. Reload the page -> it is still there.
7. Edit it, then reload -> the change is kept.
8. Delete it, then reload -> it is gone.
9. Submit the main form empty -> a clear message, nothing is saved.

DATA BETWEEN ACCOUNTS
10. Log in as B -> none of A's [things] are visible.
11. As B, open the URL of one of A's [things] -> access is refused.

MONEY
12. Pay with the test card -> the account shows the paid plan.
13. Cancel the subscription -> the app shows the end date.

SCREENS
14. Open the app on a phone -> menu, main button and forms are usable.
15. Open the published URL in a private window -> same result as in the preview.

No payment in your app? Replace lines 12 and 13 with your two riskiest actions: an email that must be sent, a file that must upload, an export that must download.

How do you replay it after every prompt?

  1. After each prompt: the line or two closest to what you changed, plus lines 2, 5 and 6. Those three catch the breaks that hurt most: nobody can log in, nothing can be created, nothing is saved.
  2. Before each publish: all fifteen lines, in order, with accounts A and B.
  3. At the first line that fails: stop. Do not send a new feature request on top of a failed line. Fix it or go back first.
  4. Each time a bug reaches a user: add the line that would have caught it, and drop the least useful one to stay near fifteen.

A list of fifteen lines that you replay beats a list of sixty that you skip.

Which habits stop the fix loop?

One change per prompt, with a fence around it

The smaller the change, the fewer files move, and the easier it is to know which prompt broke what. Lovable's own building guide gives the same rule: one change per prompt, check the result, then move on, and split any request that contains more than two "and"s. Naming what must not change helps as much as naming what must.

Change only this: [one change].
Do not modify: [login, checkout, navigation, database tables].
Before writing code, list the files you plan to touch and why.
If the change needs a file outside that list, stop and ask me first.

A saved version before each change

Every tool has its own way of going back, and each has a blind spot. Here is what their documentation says.

ToolWhat is savedHow you go backWhat it does not bring back
LovableEvery change becomes a version automatically; you can bookmark a good oneHistory panel, pick a version, RevertDatabase data: changes made after that version stay in place
CursorAgent creates checkpoints automatically before significant changesRestore Checkpoint on an earlier requestCheckpoints are local and separate from Git, meant only for undoing Agent changes
Claude CodeA checkpoint at each prompt you send/rewind, or Esc twice on an empty promptFiles changed only by shell commands are not tracked
ReplitAgent creates checkpoints at milestonesRollback to here in the Agent tabThe development database, unless you tick the Database option; the production database is not restored automatically

Before a risky prompt, mark the current version as good (a bookmark in Lovable, a commit in Git, the standard tool that keeps a permanent history of code). And since going back restores code but often not data, run your list with test accounts, never with real customer records.

Go back instead of fixing a third time

The loop starts when each fix is stacked on a broken state. Set yourself a rule: two failed fixes on the same line, and you return to the last version where the list passed, then redo the change in a smaller step. Lovable's debugging guide says the same: stop retrying blind fixes, ask for the root cause before any new code, or revert. When you do ask for a fix, quote the line of your list.

Line 6 of my regression list fails since your last change.
Steps: I create a [thing], then I reload the page.
Expected: the [thing] is still in the list.
Actual: the list is empty.
It worked before the last change. Find the cause and explain it to me before writing code. Do not touch anything else.

What will the list not catch?

Anything that is not written on it. A regression list protects fifteen behaviors you chose; it says nothing about the sixteenth, about many users at once, or about how the code is built. It is also written by the person who knows the app best: you never click where a newcomer clicks. Before a launch, add a full outside pass: QA for vibe coders organizes one in an hour.

Frequently asked questions

Why does AI fix one thing and break another?

Because features share code. To satisfy your latest request, the assistant edits files that other screens also use, and nothing replays those other screens afterwards. Small prompts reduce how many files move, and a regression list replays what matters.

How do I get out of an AI fix loop?

Stop stacking fixes. Go back to the last version where your list passed, using your tool's version history or checkpoints, then redo the change as one small prompt that names what must not be modified. If the same line fails twice, ask for the cause before any new code.

Does reverting to an earlier version also restore my database?

Often not. Lovable's documentation says a revert restores the code but not database data, and Replit's says a rollback leaves the development database alone unless you select that option. Check your own tool's documentation, and keep real customer data out of your test runs.

Keep reading

Want a pair of eyes that has never seen your product?

Cobaye tests your SaaS or your MCP server from the outside, with fresh accounts, and hands you the findings ranked by severity, each with the prompt that fixes it. The first 20 on the waitlist get 50% off their first test.

Join the waitlist