Architecture Decisions as Technical Memory

In an October 5 design discussion, I wanted an agent to send an intent to a dedicated local application, which would handle approval and interact with a credential provider. I wanted few components with explicit contracts. I pushed back when the design moved into additional platforms and concrete mechanisms before establishing why they were needed.

I also wanted to compare a small working version with a more complete application, to see which omissions were acceptable and which might weaken its boundaries. Looking ahead could reveal a problem in the first version. It could also turn every possible future requirement into something we supposedly needed immediately.

On October 31, I specified a narrower key lifecycle for the proposed first version: a fresh recipient keypair for each request, with its private key kept only in the trusted client’s memory. The public key could accompany the request. Persistent private-key storage, long-lived key rotation, and key recovery were outside the first version. This was still a design proposal. The distinction matters because the decision alone does not establish what the implementation does.

Reading only that list, another engineer could reasonably ask why recovery was missing. They might add a local store so a request could survive a restart. Or they might read the omission as a rule that the application must never retain any state. Neither conclusion follows from the list alone.

The part I want to preserve is why the lifetime of that key was tied to one request, what that choice costs, and what change in requirements would make it worth reconsidering. That is the work I want an architecture decision record to do.

Recording the omission

A sentence such as “the private key stays in memory” describes a boundary in the proposal. It does not explain the whole decision. A reader still needs to know which private key, whose memory, and how long the request is expected to remain useful. Without those details, apparently faithful implementations can mean different things.

For this proposal, I would record that the trusted local client generates the keypair and retains the private key for a single request. I would also say plainly that the first version does not promise to resume that encrypted exchange after the client exits. Keeping key recovery out of scope has a consequence. It is more useful to name that consequence than to describe the design only as simple or secure.

This does not establish that the whole application is stateless. A provider may have its own persistent records. An operation may have an identifier, a result, or an audit event. The decision concerns a particular piece of key material and its lifetime. Extending it into “nothing is ever stored” would make the record sound stronger while making it less accurate.

There is a similar distinction between limiting key lifetime and proving that no copy survives anywhere. The first is a design requirement. The second would demand evidence about the implementation and environment. I would not let the record quietly treat a requirement as a completed verification.

What makes this worth writing down is the ease with which a sensible improvement could change the meaning of the original design. Saving the key might improve continuity after a restart. It would also introduce a place where the key persists, with new questions about access, retention, and deletion. The change may be justified. It should be recognizable as a change.

What would make me revisit it?

Suppose a later version needs to support an operation that takes hours, while the user expects to close the client and return tomorrow. This is a possible future requirement, not something the first proposal had already solved. “Retry the request” may no longer be a sufficient answer.

Even then, persisting the same key is only one candidate. Perhaps the client can authenticate again and obtain a result through a new exchange. Perhaps the operation needs durable status but its original encrypted delivery does not need to survive. Perhaps preserving the original exchange really is necessary. Those possibilities place persistence in different parts of the system.

The old decision cannot choose among them. It can help us ask the question at the right level. Which continuity does the user need: the operation, its result, the authorization, or this particular exchange? A request to “add recovery” is too broad to answer before that distinction is made.

I would want the record to connect the technical limit to the product requirement. The original proposal cannot promise to resume that exchange after losing the client’s key. If that continuity becomes necessary, we have a concrete reason to reopen the decision. We can explain the change without pretending the original design was mistaken or turning it into a permanent architectural principle.

The contrary case matters too. If no requirement has changed, adding recovery merely because a complete application might eventually need it imposes work now. It asks us to design storage and lifecycle behavior for a use we have not yet established. In that situation, retaining the smaller scope can be the more considered decision.

That was the useful tension in my original request: inspect the larger application closely enough to find a missing boundary, while still building the smallest version whose limits I could explain. A decision record should keep both parts visible. Otherwise “minimal” can become an excuse for leaving a requirement unanswered, and “complete” can become a reason to accumulate features.

A record that can be corrected

Michael Nygard’s original account of architecture decision records describes short records of significant choices, with context, status, and consequences. It also retains reversed decisions, marked as superseded and linked to their replacements. That last detail matters to me: the old reasoning remains available without continuing to govern the system.

For the broker, a useful title would name the choice directly: use a fresh client key for each request, without persistent key recovery in the first version. The body would explain the intended lifetime, the limitation after client exit, and the requirements that could justify a different design. It would distinguish the proposal from what had actually been implemented and checked.

I would keep the record near the implementation and link it from the review where key storage is likely to be discussed. A well-written explanation hidden in an archive does little for the engineer deciding whether to add a database field. The reason needs to be discoverable where the apparently local change is being considered.

There is a cost to this. Someone has to update the status when a proposal is accepted, identify a later reversal, and repair an explanation that turns out to be wrong. I do not want a new document for every refactor. My threshold is a consequential choice whose reason is easy to lose and whose reversal could look harmless in the code.

The distinction between an edit and a reversal helps keep that effort small. Correcting an unclear sentence need not create a new decision. Extending the lifetime of a secret beyond the original request does deserve an explanation of what changed and why. Keeping that explanation separate prevents the history from becoming a story in which the latest design was always intended.

I still want the broker to be small enough to build and examine. The record is useful if it helps a later engineer preserve that scope where it still makes sense, and change it where the requirements justify doing so. In this case, remembering why recovery was omitted is what would let us add it deliberately.

Back to Blog