When Your Commit Messages Are the Only Documentation You Wrote

This app has no top-level README. Everything about why a decision was made — the fault it fixed, the alternative it rejected, the number that motivated it — lives in git log, or it doesn't exist anywhere.

When Your Commit Messages Are the Only Documentation You Wrote

There is no README in this repository. Not an outdated one, not a stub — none at all. Everything I've written about in this series, I reconstructed from git log and the source itself, and the striking thing is how rarely that felt like a limitation. The commit messages carry what a README usually would: why a decision was made, what it replaced, and what number motivated it.

The commit messages that explain what the diff cannot
The commit messages that explain what the diff cannot

Real messages from this repo's git log — each one states the fault, the fix, and why.

What a good commit message does that a diff can't

A diff shows what changed. It cannot show what was tried and rejected, or what number made the change worth making. Compare a generic message — "update tag admin" — against the real one in this repo:

feat: offer tags one axis at a time rather than all 65 at once The tag vocabulary mixes four unrelated things - what kind of poem it is, its language, the melodic mode it is sung in, the metre it is written in - plus a few that describe the state of our own record. In a single control that means choosing a metre by scrolling past the languages.

The subject line alone states the problem and the fix in one sentence. The body gives the concrete reason (four unrelated axes, sixty-five values) that a diff of admin.py and forms.py would never surface on its own — you'd see a ModelMultipleChoiceField split into six fields and have to guess why.

Precision about numbers, not vibes

The rename from arabic_title to native_title is justified with an exact ratio rather than a general complaint about naming:

This library is 3,302 Urdu works to 473 Arabic, and the field holding a title in its own script was called arabic_title. The name described the exception.

That number is doing real work. "The naming felt off" invites debate; "the field name describes 12.5% of the rows and mislabels the other 87.5%" does not. A reviewer — or, months later, a maintainer trying to remember why this happened — doesn't have to trust a vague impression, they can check the number against the database if they doubt it.

Naming the false leads, not just the fix

The Postgres network-name commit does something rarer: it explicitly rules out plausible-but-wrong explanations rather than leaving them for someone else to re-investigate later.

Neither the logging nor the entrypoint work released before this caused any of it: the 50% failure rate was measured from outside before that deploy went out.

Without that sentence, a future engineer skimming the same timeframe would reasonably suspect the entrypoint change first, since it shipped right before the fix and touches adjacent code. Writing down what didn't cause a bug is as valuable as writing down what did — it prevents the same dead end from being walked twice.

When a fix explicitly contradicts an earlier commit

The verse-pairing regression is the sharpest example of intellectual honesty in this log:

the fifth line of the original sat against nothing while its transliteration sat against the next stanza - the precise misalignment the previous commit claimed to avoid... Found by testing the claim rather than restating it.

That message doesn't paper over the fact that an earlier commit's stated guarantee didn't hold. It says so, names the exact failure, and credits the fix to testing rather than to insight — which is a more useful thing for a future reader to learn than "bug fixed."

The pattern worth copying

None of these messages are long for their own sake. Each follows roughly the same shape: state the user-visible fault first, give the concrete mechanism (not "sometimes fails" but "the resolver returns two addresses"), and say what was tried or ruled out. That's a template, not a talent — and on a project with no other documentation, it's the only place a decision's reasoning survives at all.

Series: Qasida App.