Architecture decision records
Document why a choice was made
An architecture decision record (ADR) captures a significant design choice, its context and consequences. Add status, decision owner, date, alternatives, assumptions, security requirements, verification evidence and review triggers. An ADR is not a test result or a risk acceptance by itself. For the reservation service, record why separate workload identities and asynchronous notification were selected instead of shared credentials and synchronous delivery.
A worked decision record
ADR-055-01 (proposed): separate API and worker identity; use minimal job payload and bounded retries. Context: delivery outages must not prevent reservations; member data is restricted. Alternatives: shared identity with direct delivery (simpler but broad authority); separate identities with queue (selected); external notification outsourcing (deferred pending privacy review). Consequences: delayed notifications and queue maintenance. Owner: service team. Evidence needed: authorization regression, job schema review, commit/outbox consistency test, queue saturation test and retention review.
Track residual risk and evidence
Residual risk is the exposure remaining after planned controls, including uncertainty about whether they work. The queue could accumulate jobs during an extended mail outage. Require a queue-depth alert, recovery owner and delivery-delay target. The target is not an observed result until tested. Record cost estimate (35 units/month), privacy review, accessibility of delayed-delivery status and review date. A risk owner must explicitly approve any acceptable remaining exposure; developers must not infer acceptance from the ADR.
Keep the decision history
If a later design replaces the queue, mark the old ADR superseded and link the new decision; do not silently rewrite history. Review on identity-provider change, major data classification change, sustained queue overload or cost growth beyond budget. Separate proposed, approved and implemented states. A passed unit test supports only its stated claim; it cannot substitute for deployment and integration evidence.
Practice an architecture review
Complete an ADR using fixtures/adr.json and the evidence table. Distinguish an offline pass from a missing integration result. Write a recommendation to approve design for further testing, or hold, with a named owner and review trigger. Add one alternative, its usability and privacy implications, and a residual-risk statement. Continue to industrial and embedded security after this chapter.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Architecture decision records — knowledge check
Review trust boundaries, STRIDE requirements, failure modes and architecture decisions.
What belongs in an ADR?
When should residual risk be accepted?
A new design supersedes a decision. What should happen?
A model test passes but queue integration is missing. What is proven?
What is a reasonable review trigger?