Remembering and communicating why design decisions were made and the reasons behind their particular implementations can be critical when it comes to developing software as a team and maintaing that software in the future. This time Jacob shares his thoughts on and experience with one of the most valuable tools to extend the reach of software development memories.
Six months into a firmware project, someone always asks the same questions:
- Why are we doing it like this?
- Why this RTOS?
- Why this build system?
- Why is the hardware abstracted like this?
Sometimes the answer is clear. More often, it’s vague. The original developer is gone. Or busy. Or confident the decision “just made sense at the time.”
Embedded software has a long memory problem. Our products live for years, sometimes even decades! Our code survives hardware revisions, team turnover, toolchain updates, and certification cycles. But the reasoning behind critical decisions quietly disappears. And that’s dangerous.
When context is lost, teams second-guess good decisions, repeat old mistakes, or make changes that undermine the architecture without realizing it. This is how stable systems slowly drift into fragile ones. Comments don’t solve this. Documentation doesn’t either.
What’s missing is a lightweight way to capture why architectural decisions were made while the information is still fresh, in a form that remains useful for years to come. That’s where Architectural Decision Records (ADRs) come in. Whether you’ve seen it or not, you’ve probably felt the symptoms. Some examples include projects where:
- The build system is fragile, but no one remembers why it was structured that way.
- Tests exist, but only for certain modules and no one is sure which ones are safe to refactor.
- Hardware abstractions are inconsistently applied, making portability painful.
- Metrics reveal growing complexity, but the root causes are unclear.
- New engineers hesitate to make changes because they’re afraid of breaking “something important.”
These aren’t tooling problems. They’re memory problems! They show up when critical architectural decisions were made under real constraints such as schedule pressure, hardware availability, and certification needs. But the reasoning behind those decisions was never captured. Over time, context fades. What were once intentional trade-offs start to look like arbitrary design choices. That’s when teams begin to second-guess the architecture, undo good decisions, or repeat old mistakes. Architectural Decision Records address this gap directly.
In this article, we look at what ADRS are and how they help embedded teams preserve intent, manage risk, and scale development. You’ll learn that ADRs are not abstract documentation, but a practical, lightweight tool that fits naturally into modern firmware workflows and helps you preserve your team’s memory. Let’s dive in!
What Is an ADR?
An ADR is a focused, lightweight artifact that captures a single architectural choice and the reasoning behind it. It is not a design document, a requirements specification, or a postmortem justification. Its purpose is much simpler and much more valuable. An ADR answers the question future engineers, or your future self will inevitably ask: “Why did we do it this way instead of the other reasonable options?”
In embedded systems, that question comes up constantly because meaningful decisions almost always involve trade-offs. Choosing a real-time operating system (RTOS) affects scheduling, memory usage, testing strategy, and developer workflow.
Choosing a hardware abstraction strategy influences portability, performance, and long-term maintainability. Choosing a build system shapes everything from continuous integration (CI) to how easily new developers can get started.
An ADR captures those trade-offs at the moment the decision is made, while the reasoning is still clear and the constraints are still visible. It doesn’t try to defend the decision forever. It simply records what was known at the time and why the team believed this path was the best available option. That record becomes invaluable years later, when the same decision is reconsidered under very different circumstances.
Why Embedded Systems Are Especially Vulnerable Without ADRs
Embedded software is particularly prone to losing architectural intent because it sits at the intersection of hardware, tooling, and long-lived products. Unlike many software systems, embedded products often ship for a decade or more. Hardware platforms are revised. Suppliers change. Regulatory requirements evolve. Meanwhile, the firmware grows incrementally, shaped by dozens or hundreds of small changes made under pressure.
In this environment, architectural decisions don’t just influence code structure; they influence how developers think about the system. When the rationale behind those decisions disappears, engineers are forced to infer intent from implementation details. That’s a fragile way to reason about architecture.
I’ve seen teams hesitate to touch critical modules not because the code was poorly written, but because no one understood the assumptions baked into it. I’ve also seen well-meaning refactors quietly undo architectural safeguards simply because those safeguards were never documented.
Perhaps the worst, I’ve seen teams throw away completely good, well-architected software because they didn’t understand the decisions and felt that they knew better! Talk about a waste of time, money, and resources! ADRs give teams a stable reference point. They allow engineers to distinguish between accidental complexity and intentional design, which is a crucial distinction when maintaining embedded systems over the long term.
What Belongs in an ADR?
Not every decision deserves an ADR. But in embedded systems, the decisions that do deserve one tend to share a common trait: they constrain everything else. RTOS selection is a classic example. Once chosen, it shapes scheduling models, memory usage, driver architecture, testing strategy, and even how developers think about the system. Changing it later is expensive and risky, which makes understanding why it was chosen essential. The same is true for decisions such as:
- How hardware abstraction is enforced.
- Whether the system supports off-target testing or simulation.
- How builds are structured and automated.
- How memory is allocated and owned.
- How concurrency is modeled.
These aren’t implementation details. They’re architectural commitments.
If a decision would reasonably trigger debate during a design review, it probably deserves an ADR.
What Doesn’t Belong in an ADR
ADRs are not a dumping ground for trivia. They shouldn’t document naming conventions, coding styles, minor refactors, or bug fixes. They also shouldn’t capture decisions that are easily reversible or purely experimental. A simple heuristic works well in practice:
- If undoing the decision takes an afternoon, don’t write an ADR.
- If undoing it takes a sprint or a rewrite, write one.
This keeps ADRs valuable rather than burdensome.
Setting Up ADRs in a Real Embedded Project
ADRs only work if they’re easy to write, easy to find, and easy to maintain. The simplest setup is also the most effective: store ADRs directly in the repository alongside the code. I’ve seen this give some teams problems, so an alternative is to simply store them with your project documentation. However, if you can keep code and ADRs together, they are always right there in front of the developers and easy to access.
A common structure looks like Figure 1. As you can see, we typically create an ADR folder and then label each ADR in numerical order with a short description of what it is. You may find that you want to separate ADRs for different parts of the system by creating additional folder structure, but I find that is only helpful for more complex projects.
Using plain Markdown keeps the barrier low. It also enables you to leverage AI tools to help you quickly write-up decisions! The goal of an ADR isn’t to keep you writing documentation, it’s to document a decision concisely and then move on!
A Minimal, Effective ADR Template
An ADR doesn’t need to be long to be useful. In fact, shorter is usually better. Michael Nygard first conceived the idea of ADRs and put together a fantastic template that architects can use to track the decisions they make. It’s described in his post [1].
To save you from the hassle of jumping to another location, take a look at Figure 2. Here’s a template that works well not just for embedded teams, but for all software teams whether it’s cloud, mobile, web, or others.
At first glance, it might look like a lot of material. It’s not. There are a few major sections that you need to fill out. You need to start by filling out the filename and the header. These two should include the record number and a description of what decision the record is making. In this example, the first record, the first decision, is to record architectural decision records! That makes filling out your first record super easy!
Next, it’s useful to include a date. Is this a decision that was just made or something that was decided a decade ago? Including a status section is also a good idea. When you work in a team, a decision is often proposed first and then later accepted. This isn’t always the case. Sometimes architects have the right to just make a decision and now it’s the design law! Other times, there are design-by-committee type organizations where approval is needed. There are even times when decisions may be superseded or become deprecated!
The ADR should then have a section that describes the context. What is the problem or challenge that we are trying to solve with this decision? Be concise. Use a couple of sentences. Don’t write a book, otherwise no one will read it.
Now, we get to the important piece. The decision we are making! What direction have we decided to go? That information should go into the decision section. In our example, the decision was that we’re using ADRs using the markdown format.
Every decision has a consequence. You should make sure that you have thought through those as well. The consequences for our template example is that we need to develop a process and expend time and effort to develop and maintain the ADRs.
Finally, we need to identify how we ensure that the decision made will be complied with. In some cases this might be through manual checks. In others, you might be able to leverage AI or automated tools to ensure that the ADR is followed.
ADRs in the Embedded Development Workflow
One of the biggest misconceptions about ADRs is that they’re something you “do up front” as part of a big architecture phase. They’re not. ADRs work best when they’re written incrementally, at the same time decisions are made, and then quietly maintained alongside the code. In practice, ADRs naturally align with moments that already exist in most embedded workflows.
For example, ADRs are a perfect fit for design discussions. If a team is debating whether to introduce a HAL boundary, adopt a new RTOS feature, or restructure the build system, that discussion already contains everything needed to write an ADR. Capturing the outcome takes only a few minutes and preserves hours, or weeks, of future confusion.
They also fit naturally into code reviews. If a pull request introduces a structural change or relies on an architectural assumption that isn’t documented, that’s often a signal that an ADR is missing. The goal isn’t to block the change, but to capture the reasoning while it’s still clear.
Over time, ADRs also become useful during refactoring and modernization efforts. When metrics show growing complexity or tests reveal fragile areas, ADRs help teams understand whether those problems stem from violated assumptions or outdated decisions. That makes refactoring targeted instead of speculative.
Perhaps most importantly, ADRs shine during onboarding. New engineers don’t need to reverse-engineer architectural intent from source code or Slack messages. They can read a small set of ADRs and quickly understand how the system is meant to be shaped and why. The key is to treat ADRs as part of engineering work, not extra documentation. If a decision matters enough to debate, it matters enough to record.
Stop Memory Erosion
Most embedded teams don’t have an architecture problem. They have a memory problem.
Early in a project, the team makes smart trade-offs. They choose an RTOS for a reason. They put abstraction boundaries in place for a reason. They structure the build system for a reason. But months later, when the pressure shifts to delivery, those decisions start to look like arbitrary constraints. That’s when things get dangerous.
Developers route around the HAL “just to ship this feature.” Tests get skipped because “they’re annoying.” The build system grows a second set of scripts because “nobody understands CMake.” The architecture doesn’t collapse in a dramatic failure. It erodes quietly until every change feels risky.
ADRs are a simple way to stop that erosion. They don’t add bureaucracy. They add clarity. They capture the reasoning behind decisions while it’s still fresh, and they give future engineers a way to change the system deliberately instead of accidentally.
If you’ve already invested in modernizing your firmware practices, better architecture, better build workflows, automated testing, metrics, and ADRs are the glue that keeps those improvements from regressing over time.
Where to go from here
- Create a docs/adr/ folder in your repository and add a simple template.Write one ADR this week for a decision you’ve already debated (RTOS, HAL boundaries, build targets).
- Review ADRs during design discussions so decisions get captured when they’re made, not six months later during a fire drill.
- Treat “Superseded” as success, not failure. Changing your mind is fine. Forgetting why you changed it is not.
When you start capturing architectural intent, something interesting happens: Onboarding gets easier, refactoring gets safer, and the architecture stops being tribal knowledge. That’s how you build firmware that scales.
REFERENCES
[1] M. Nygard, “Documenting Architecture Decisions,” November 15, 2011, Cognitect, http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions.
SOURCES
Embedded Software Architecture Worksheets and ADR Templates,
https://link.beningo.com/CCarchitecture
Embedded Bytes Newsletter,
https://link.beningo.com/news
— ADVERTISMENT—
—Advertise Here—



