h.jk

Documentation Density Tiers

meta: Forgot to publish last week's blog even though it was saved and all... let's hope I don't repeat the same mistake in the future!

It's late 2026 and the models I use still has a tendency to over-elaborate or use too much prose.

This is regardless of code comments, MR/PR descriptions, work-issue descriptions or general wiki documentation. They all tend to have a verbose, flat veneer to them.

As such, I worked out with their assistance a documentation density tier to guide them on the choice of words.


The four-tier density ladder

Each tier gets progressively tighter. Trim to the tier by default — don't wait to be asked. When updating an existing description as scope evolves, rewrite it for its tier from scratch rather than incrementally appending; the tightening rule applies to the final artifact, not each edit.

Wiki / long-form docs

Prose, context, and narrative are legitimate here, but still need a tightening pass before publishing.

Issue / ticket descriptions

Specific to the item, no chain-of-thought narration. Links to other items get a brief note on why the link matters, not a re-explanation of the linked item.

MR/PR descriptions

Tighter still: a summary of what's in the diff, one entry per change. An MR is not a shorter copy of its ticket — if a line would be true before any code was written, it belongs on the ticket; the MR says what changed, the ticket says why it should. Terseness at this tier tends to fall out as a list rather than prose, and an entry growing into a paragraph is the signal that it's ticket content, not that it needs more room. Minimize outbound references, including back to its own issue — the title already carries it. A large diff isn't a smell; a small diff propped up by cross-links and rationale prose is.

Commit messages

Tightest; not an overflow bucket for prose cut from other tiers. Default to a single short summary line. A paragraph of rationale belongs on the issue/ticket (tier 2): rationale moves up to the ticket, never down to the commit.


MR/PR descriptions versus work-issue descriptions

The difference is simple - the MR/PR should focus more on the implementation that fits the "summary of what's in the diff". However, the purpose of the MR/PR description is also not to just turn code into words on the summary, because that will be how the code is written. Similar to code comments then, the MR/PR descriptions should align more on the why the code belongs in the MR/PR.

The work-issue might talk about the bug discovery and at most why a solution is more preferred over the others. It is then the purpose of the MR description to focus on why the solution is preferred - without going into the details covered by the work-issue.


Code comments

Not mentioned on the top, not rolled into a fifth tier as it is so fundamental it has its own guidelines. Generally speaking, the why not how, the comment:code ratio, how to make comments TIGHT...

AI disclaimer: Practically the four tiers' contents with some light edits on my part.

#code-review #documentation-density-tiers #tight-comments