Git Remembers the What. Nobody Remembers the Why.
A new hire asked why our payment service uses a queue, and git blame said only 'per AI suggestion'. The decision survived, the reasoning didn't. That is documentation debt, the sixth of seven AI debts.
Git Remembers the What. Nobody Remembers the Why.
TL;DR: A new hire asked me why our payment service uses a queue instead of a direct call. I opened git blame, found the commit, read the message: “Refactor payment flow per AI suggestion.” That was it. The decision was made. The reasoning was gone. That’s documentation debt — and AI is industrialising it.
Three months into her job, Priya asked the question every new hire eventually asks:
“Why does the payment service write to a queue and then read it back, instead of just calling the downstream API directly? It looks like extra hops for no reason.”
Fair question. Good question. The kind of question I love getting, because it usually means someone is actually reading the code.
I didn’t know the answer.
I knew I had written it — or rather, prompted it — about eight months ago. I remembered the AI suggesting the queue pattern. I remembered it making sense at the time. I did not remember why.
I opened git blame. Found my commit. Commit message:
refactor: improve payment flow reliability
I opened the PR description. It said:
“Refactored per AI suggestion for better reliability. Tests passing.”
That. Was. It.
The what was preserved in beautiful detail — every line of the diff, forever, in git. The why was a single vague sentence written by a tired version of me who had already mentally moved on.
The Conversation That Held the Answer
Somewhere, eight months ago, there was a chat window.
In that chat window, the AI had explained — probably quite well — why a queue was the right call. Maybe it was about retry semantics. Maybe it was about decoupling for an upcoming migration. Maybe it was about a specific failure mode of the downstream API.
I don’t know. Because that chat window is gone. Closed. Unrecoverable. Not in git, not in Notion, not anywhere.
The reasoning lived in a context that lasted one session. The code it produced lives forever.
That asymmetry — ephemeral reasoning, permanent artifact — is the engine of documentation debt.
Pre-AI, the Why Was Implicit
Here’s what people miss: pre-AI codebases were never well-documented either. Let’s be honest.
But the why was recoverable, because:
- The person who wrote it remembered the struggle.
- The struggle left fingerprints — earlier commits, abandoned approaches, comments like
// don't use forEach here, see #1247. - You could ping the author and get the story in 30 seconds.
The reasoning was distributed across humans, commits, comments, and Slack threads. Not centralised, but reconstructible.
In an AI-assisted codebase, the reasoning was never in a human’s head in the first place. It was in the model’s response. And the response was treated as disposable.
You can’t ping the AI session from June. It doesn’t exist.
The Compounding Cost
One missing why is a question Priya asks me on Slack.
A thousand missing whys is:
- New hires onboarding in months, not weeks.
- Architectural decisions getting re-litigated every six months because nobody remembers why the last decision was made.
- Refactors that quietly undo intentional choices, because the choice wasn’t legible.
- Post-mortems that conclude “we forgot why we did this.”
- A codebase that is, slowly, a museum of decisions whose curator has left.
The code keeps working. That’s the cruel part. The bill is paid by future understanding, not present function.
What “Paying It Down” Looks Like
Documentation debt isn’t fixed by writing more docs. Docs rot. It’s fixed by capturing the why at the moment of the decision, in the place the code lives.
- ADRs for AI-assisted decisions. A 5-line Architecture Decision Record per non-trivial AI suggestion. Date, decision, alternatives considered, why this one. Lives in the repo.
- Paste the prompt into the PR. If the AI shaped the design, the prompt is the design rationale. It belongs in the PR description, not in your closed tab.
- Commit messages with reasoning, not just labels. “Refactor payment flow” is a label. “Switched to queue-based to survive downstream 502s during peak — see PR for trade-offs” is a memory.
- Code comments for non-obvious choices. Especially for AI-suggested patterns that look like over-engineering. Future-you (and Priya) will thank you.
- Treat the chat session as a source artifact. Export it. Link it. Summarise it into the PR. Don’t let it die when you close the tab.
The Real Lesson
I owe Priya an answer. Honestly, I’ll probably re-prompt the AI today and reconstruct a plausible reason for the queue. It’ll probably even be the right one.
But I won’t know. I’ll be guessing — at my own past decision.
That’s the moment you realise documentation debt has cashed in: when you become a stranger to your own intent.
Git remembered every character I changed. It remembered nothing about why I changed them. And in an AI-assisted world, “why” is the only part that was ever really mine to keep.
That’s debt number six of seven.
Related Posts
I Shipped a Black Box, Not a Feature
I merged a 400-line AI-assisted PR I understood for about 48 hours, then couldn't explain my own code when a bug came in. That gap between 'I shipped it' and 'I understand it' is comprehension debt, the third of seven AI debts.
I Shipped a Feature That Didn't Match Our Codebase
AI assistants write code that looks like it belongs, but they work from context we never gave them. That invisible gap between what the model assumed and what our codebase does is context debt, the second of seven AI debts.
The Email That Broke Our Codebase
A vendor announced a model deprecation with six months notice, but half our tooling was fitted to that model's quirks. That is model dependency debt, the seventh of seven AI debts.