Write the decision down while you still remember why

The reason you picked an approach fades faster than the code does. A short note on the same day is worth more than a perfect write-up later.

The part of a change I forget first is not what I did. It is why I did not do the other thing. A month later the code is still there, the pull request is merged, and I am left squinting at a comment I wrote as if a stranger will explain it to me.

I try to write that reason down the same day, while the rejected options are still in my head. It does not have to be a blog post. A paragraph in the PR, a few lines in a `DECISIONS.md`, or a short journal note is enough.

What belongs in the note

Three sentences will carry most of it:

  • What I chose.
  • What I decided not to do.
  • What would make me revisit it.

That last one matters. "We will never switch" is not a decision. "We will switch if this breaks at this scale, or if the library stops supporting this runtime" is a decision you can use later.

I also write down anything I verified, as a fact, not as a vibe. "I read the migration docs and the upgrade is not a version bump" is useful. "This felt safer" is not, unless I can say what I was afraid of.

What I leave out

I do not write a memoir of the afternoon. I do not include secrets, tokens, or private URLs. I do not invent a number to make the choice look more scientific than it was. If I did not measure it, I say I did not measure it.

I also do not wait until the wording is elegant. A slightly rough paragraph written today is more accurate than a polished one I might write next month, when I have already started to defend the choice instead of remembering it.

Where I put it

If the decision is about a public engineering question, it can become a journal entry. If it is about a single repo, it should live next to the code, in the PR or a decisions file, so the next change can find it. The important part is that it is searchable and dated.

This is also why I like Conventional Commits and a written PR description. They are not documentation by themselves, but they give the later note a place to hang. The note is for the why. The commit is for the what.

I have lost time re-litigating choices I had already made carefully, just because I left no trail. Writing the trail is part of the work, the same way tests are. It is not an extra essay I will get to when things are slow.

Back to Journal