Blog

A fix is only a fix until the next change

Fixing a bug and keeping it fixed are two different jobs. When a bug is fixed, write the check that would have caught it, and keep that check running after every change.

·5 min read·Ray Festa
An enormous dark mousetrap, set and baited with a small pale block on its trigger, sits on a plain cream background. One very small person in a dark suit stands on the ground beside its front edge, looking at it.

A bug that gets fixed and then comes back costs more than it did the first time. The person who finds it again remembers that it was supposed to be fixed, and trusts the product a little less.

Fixing a bug and keeping it fixed are two different jobs. The first is done when the behavior is right today. The second is done when something fails loudly the moment the old behavior comes back.

Two jobs with the same name

When someone says "that's fixed", they usually mean the first job. The form saves again. The invoice total adds up. Someone tried it, it worked, and the ticket was closed.

That is real work, and it is only half. Every change made after it is a new chance for the old behavior to return. Someone tidies the code nearby, a supplier changes the format of what they send, a new option gets added to a screen. None of those people are thinking about last month's bug. Nothing tells them they just brought it back.

The second job is to leave something behind that does remember: a check that runs on its own after every change and fails, loudly, if the old problem shows up again. Until that exists, the fix lasts only until the next change.

Engineers call a bug that comes back this way a regression. The useful question for everyone else is whether anything would catch one.

How you find out nothing is watching

The clearest sign is a sentence: "I thought that was fixed."

Once is normal. Hearing it more than once about the same system, in the same week, means fixes are being made and then left alone. Each time, the only reason anyone knows is that a person happened to try that exact thing again. That person might be you. It might be a customer.

This is tiring for whoever owns the product, because they become the check. They end up re-trying old problems by hand after each change, and they will miss some.

The fix covers what someone listed

A fix can also be right for every case someone wrote down and still wrong for the one that actually happened.

Picture an import that brings in records from an outside service. People report that some of their records never show up. Someone looks at it, finds the problem with the record types they know about, and fixes those. The service has more kinds of records than the ones on that list, so one whole kind is still being skipped, with no error and no warning.

Look closer and there can be two separate causes behind one complaint: the incoming data read in the wrong format, and a category of items quietly dropped because the code only handled some of the documented kinds. A fix aimed at the first leaves the second in place.

A check written from the list would pass. A check written from the person's real failure would not. Take what actually went wrong for them, the real records that went missing, and make the check bring those in and confirm every one arrives. That check catches the path nobody listed, because it does not depend on anyone remembering it.

What a standing check looks like

It does not have to be elaborate. For each fixed bug, write down the thing that went wrong in a form a machine can repeat, and run it after every change.

The bug The fix The check that keeps it fixed
A form stopped saving one field Field saves again Fill in the form, save, reload, confirm every field is still there
An invoice total came out wrong once Rounding corrected Rebuild that exact invoice and compare the total to the right number
An export dropped a column Column restored Export a real file and confirm every expected column is present
A booking confirmation never sent Sending repaired Make a test booking and confirm the message was actually produced

Each check in the right column fails on its own, without anyone remembering to look.

One strong version: keep a set of real past cases where things went wrong, and run them through the system before and after each change. Then compare how often the wrong behavior shows up. If a change makes it more common, you know before anyone else does.

The question to ask whoever builds for you

You don't need to read code to know whether this is happening. Ask whoever builds or runs your software one question: if a problem we fixed comes back, what happens, mechanically?

  • "A check fails and we get told before it goes out." Something is standing guard.
  • "We'd see it in testing." Ask what testing means here, and whether it includes the old bugs.
  • "Someone would notice." Nothing is watching. The someone is you, or your customer.

If I were the one asking, I'd follow up with a smaller question: for the last bug you fixed, can you show me the check that would catch it next time? If the answer is no, that is the next thing to build.

What to take away

  • Treat "fixed" and "stays fixed" as two jobs. The second is done only when something fails loudly if the old behavior returns.
  • Write the check from the person's real failure, not from the list of cases someone remembered. That is how it catches the path nobody listed.
  • If you hear "I thought that was fixed" more than once about the same system, nothing is standing guard. Ask what would happen, mechanically, if it came back.

Re-running old checks after every change is busywork, and a machine should do it. Deciding which failures matter enough to guard against is the judgment. The AI does the busywork. You still make the calls.

Software qualityBug fixingAutomated checksProduct reliabilityHuman in the loop
← All posts
Start a project

Thinking about where an agent fits in your business?