The same bug keeps coming back
My island is Djerba, with a D. The planning document for this site spelled it without the D, six times. I asked for the D to go back in. That same evening, a different AI session gave me a draft note with the D missing again.
The planning document tells every session to read it before starting, and that evening it still had all six misspellings. I can’t tell from the draft whether the session read it.
Each time I build the site, a check scans every generated page for the old spelling, so if the mistake keeps coming back, the build stops and names the page.
My project instructions say to spell Djerba with a D. Cursor has project rules for this, and Claude Code loads a project instructions file when a session starts. If your tool supports project instructions, check when it reads them. Fix the spelling in any project document that still has it wrong.
In 2024, Addy Osmani described a “two steps back” pattern: a fix breaks something else, and the repair creates more problems.
Once you can make a bug happen on demand, you can check for it again after the next change. Suppose you are fixing a login bug that showed someone another person’s dashboard. In one sentence a customer would understand, write down what the app should do instead. For example, “When I log in, I see my own dashboard.”
Give each of two test accounts a different made-up dashboard record. Ask your tool to write an automated regression test. It should log in as each account in a fresh session and check that the account’s own record appears and the other account’s stays hidden.
While the bug is still there, run the test on a private preview connected to a test database with only made-up data. You should see the test fail because the wrong record appears. Apply the fix and confirm the same test passes for both accounts. Then add it to the checks your project runs after every change.
This test checks what appears on screen. It can pass even if the app sends both records to the browser, so also check that each account receives only its own record.
If the same bug keeps coming back, we can use a free hour-long call to write down what the app should do.