The review was a good one. The reviewer pulled the branch, ran the sync in a tight loop until it hit the provider's rate limit, and found that the payment provider returns 200 OK with an empty body when it rate-limits you. The author added a fallback, the thread got a screenshot, a curl command and a clear reason for the final decision, and the PR merged. Two months later a new teammate sees the fallback, thinks it's dead code, removes it, and spends a day finding out the same thing the hard way.
Review evidence is expensive. Someone had to run the test, read the output, compare behavior, trace the code path or ask the awkward question. If all that work only serves one approval, the team pays for it again the next time the topic comes up.
A PR thread is a bad place to keep knowledge
Pull request threads are great for the conversation and terrible for storage. They get buried under newer PRs, they're hard to search, and nobody reads the history of a file through its old review comments. Google's code review guide says it plainly: "Explanations written only in the code review tool are not helpful to future code readers." When a reviewer asks what a piece of code does, the guide prefers that the author rewrite it more clearly, or add a code comment when that's the right fix (Google Engineering Practices, How to write code review comments).
The same idea goes beyond code comments. Anything you learned in a review that someone will need later should move out of the thread to a place people actually look.
What's worth keeping, and where it goes
Most review comments can stay in the PR. A typo fix or a naming nit has done its job once it's merged. The things worth keeping are the ones that will come back:
| What the review found | Where it should live |
|---|---|
| Why the code looks odd ("this fallback is deliberate") | A short code comment right next to it, with a link to the PR |
| A decision with real trade-offs | A decision record or your team's decision log |
| A manual check someone had to do | An automated test if possible, otherwise a checklist that sits next to the work |
| A command that proves the behavior | The runbook or README, ready to copy and paste |
| A surprise from a provider or dependency | Integration notes or a known-limitations list, plus a test that pins the behavior |
| A risk the team accepted for now | A dashboard or alert with a named owner, so "for now" doesn't become forever |
Good review notes answer future questions before they turn into interruptions. Why is this fallback so conservative? Which command reproduces the empty 200 response? What did the provider do that surprised us? Which assumption did we accept, and which one still needs watching?
Write it for someone who wasn't there
Michael Nygard's original post on architecture decision records describes the reader you're writing for. A new person on a project may be "perplexed, baffled, delighted, or infuriated by some past decision." Without the reasoning, they have two options: blindly accept it, or blindly change it. Both can go badly. He also asks each record to list all the consequences, the negative and neutral ones as well as the positive ones, and to keep records in the repository next to the code (Nygard, Documenting Architecture Decisions).
For review evidence, that translates into a few habits:
- Commands are reproducible: the exact flags, the environment, and what output to expect.
- Screenshots get one line of context: which build, which account, what you're supposed to notice.
- Decisions include the reason and the alternative you turned down, so a future reader can tell whether the context has changed.
- Every note links back to the PR, so anyone who wants the full conversation can still find it.
There's a nice side effect. Once people know their evidence might become shared memory, they write it more clearly during the review itself, and the review gets better too.
Keep it light on purpose
Turning every review into documentation creates drag, and people will slowly stop doing it. Google's SRE book makes the same trade-off for postmortems: writing one costs time and effort, so teams are deliberate about when to write one. When they do, the result goes into a team repository so others can find it and learn from it (Site Reliability Engineering, Postmortem Culture).
A rule of thumb that works for reviews: keep it if it would save real time or prevent a real mistake the next time this topic comes back. If you can't picture that next time, let the PR thread hold it.
A two-minute habit at the end of a review
Before you approve, ask one question: what did we learn here that the next person shouldn't have to rediscover? If the answer is "nothing", approve and move on. If there is something, leave one last comment on the PR:
memory: provider returns 200 with empty body when rate-limited → noted in docs/integrations/payments.md + test added
Try it on your next three reviews. It takes a couple of minutes, and the next time someone wonders why that fallback is there, the answer will be one search away.