← All notes

Before you fix it: triage is worth more than the patch

Any business system in production generates a steady stream of tickets: something doesn’t add up, a screen misbehaves, a number looks wrong. The instinctive reaction — and the one the client expects to see — is to open the code and fix it. It’s almost always the wrong move, because it assumes the conclusion: that there is something to fix.

A ticket describes an environment, not the code

Whoever files it is describing what they saw on their screen, at a given moment, on a given installed version. None of those three coordinates is obvious, and the third one is always the one that gets skipped.

A real case, stripped of specifics: a ticket filed eight days after the fix had already gone to production, opened from a workstation that had never received that release. The frustration was genuine, the defect was real, the solution had existed for a week. All that was missing was the deployment. Touching the code would have produced a second solution to the same problem, with twice the lines to maintain.

Four possible verdicts, only one is called “defect”

A serious investigation always closes with one of these four answers:

  • already fixed, not yet released — that’s a distribution problem, not a development one;
  • duplicate of an open ticket — merge it, don’t work it twice;
  • not reproducible with the data provided — you need the real case, not a plausible hypothesis;
  • confirmed defect — only here do you move on to designing the fix.

Three verdicts out of four produce no code at all. A triage that ends with “this isn’t a defect” isn’t wasted time: it is the answer, and it’s the one that saves the most.

When it is a real defect, it’s usually worse than described

There’s one more reason to investigate first: the person reporting sees the symptom that hit them, while the investigation finds the chain.

An operation that “sometimes doesn’t start” is the visible symptom. Underneath it, more often than not, hides the worse behaviour: the same error, at a different point, blocks nothing — it gets read as a valid answer and passed downstream. The case you notice costs a user a few minutes. The one you don’t notice goes into the data and stays there.

The cost that never shows up on an invoice

Triage delivers nothing visible: no lines of code, no new screen. That’s why it’s the first activity to get squeezed when time is short. The bill arrives anyway, in another form: two fixes for the same problem, patches applied to versions nobody is running, regressions introduced to solve a case that was never reproduced.

The operating rule is a single one, and it costs a few hours: no line of code gets touched until there’s a written verdict — what actually happens, on which version, reproduced how. Then, if needed, you fix it.

Often you don’t need to.

Let’s talk