Field Notes

Reasonable Assumptions About This Codebase

2026-11-126 min readDesignSoftwareWork

A repository can share the assumptions its maintainers have learned to question, giving unfamiliar developers and agents context they may not know to look for.

I had a good chuckle reading Noah Sussman’s Falsehoods programmers believe about time. It brought back work I’d done with a datetime library and reporting analytics, mapping time and duration across large datasets. I remembered how many small details there were to consider (timezones still give me a shudder). The list felt familiar.

I started thinking about the equivalent list for platform work and design systems. A deprecated component won’t acquire new consumers. A workaround for an unsupported browser is safe to remove. Everybody knows accessibility is important.

These are different kinds of assumptions. One confuses a declared lifecycle with actual adoption. Another treats a support policy as enough information to make a code change. The last assumes that a shared value gives everyone the same understanding of what to do. Each can make a decision feel straightforward before someone familiar with the system explains why it isn’t.

I would have thought these were things developers already considered. I’m realizing how much that expectation depends on context. What feels like common knowledge may be knowledge held by the people who were present when something went wrong, or who have spent enough time in a codebase to recognize the possibility.

I’ve also seen how making that context explicit helps collaboration across teams. Developers can be particular about how a codebase should work. I frequently encounter frustration when a repository doesn’t conform to someone’s assumptions. Putting the reasoning in the repository gives that person something to work with, even if they still disagree with the decision. They can see that the choice exists, understand what informed it, and discuss whether those reasons still hold.

There is a distinction worth keeping here: a local decision isn’t automatically evidence that someone else’s preference is false. Some entries will describe constraints; others will explain tradeoffs the team chose. Making both visible gives a visiting developer room to question a decision without first having to reconstruct it.

That context matters when someone starts developing in an unfamiliar repository with an agent, too. They can begin changing the implementation before they know which of their reasonable assumptions are unreliable here. If neither the developer nor the agent encounters the relevant history, a request to clean something up can proceed without the question a longtime maintainer would have asked first.

I want each repository to have a small collection of those questions, expressed as assumptions that seem reasonable but have proved false in its own context. Somewhere a person can browse the lessons without first knowing which skill to invoke, which incident to search for, or which colleague remembers.

The falsehood format is useful because it starts with a belief the reader might already hold. “Lessons learned” can mean almost anything. “No imports in this repository means nobody uses this export” gives someone a specific reason to reconsider their next search result.

Here is the kind of collection I mean. These are illustrative entries; an actual repository would need its own evidence behind them.

A deprecated component won’t be used in new work. An old starter template or a copied example can introduce it again. Deprecation communicates intent, but the paths by which people discover and adopt components need attention too. A useful entry would point to those paths and explain how new usage is handled.

An unsupported browser’s workaround is safe to remove. The code may also preserve behavior in an embedded environment, or the support decision may explicitly permit dropping that behavior. The entry should explain what the workaround does and which conditions justify removing it. Otherwise, “unsupported” has to carry a decision it may never have settled.

Everybody knows accessibility is important. Agreement about importance leaves practical questions open. Someone changing a dialog still needs to understand its keyboard behavior and focus expectations. A local lesson could identify the interaction people overlook and point to the example or check that makes it concrete.

Two tokens with the same value are interchangeable. Equal values in one theme don’t establish equal meaning. A token for text and a token for a border may happen to resolve to the same color while carrying different expectations in another theme. The entry would explain which distinction this system needs to preserve.

Each entry needs enough explanation to make the complexity visible. A bare warning risks becoming another rule people follow without understanding. An assumption, a counterexample, and a pointer to the relevant code or decision would often be enough. Where there is a test, link it. Where the knowledge still lives with a team, make that visible too.

The collection could live in an ordinary file linked from the repository’s entry points for humans and agents. Its usefulness should survive a change of development tool. A skill could refer to a relevant lesson; a code comment could link back to it. The collection would remain readable without executing a workflow or loading a particular set of instructions.

There is something generous about sharing this material across repositories. Another team may recognize a failure they haven’t experienced yet. They may also discover that their situation is different. The context needs to travel with the lesson so that someone can decide whether it applies. A workaround learned in one project should not quietly become a permanent requirement everywhere else.

That includes revisiting the lessons at home. Consumers migrate. Support commitments change. An old assumption may eventually become safe enough to rely on. Recording why an entry exists gives a future maintainer a way to challenge it, instead of inheriting a prohibition with no explanation.

I don’t expect a file to make an unfamiliar codebase fully understood, or to guarantee that an agent will read and apply every lesson. I do think it can give a developer a better starting point. It can surface a question before they have enough experience here to formulate it themselves.

I’d start with the next review comment that begins, “We have to keep this because…” Write down the assumption behind the proposed change, explain what the reviewer knows, and put the explanation somewhere the next person can find before they make the same proposal. Over time, that would give the repository a record of what its maintainers have learned to notice.