The user wants to "Architect an architectural decision record (ADR) cadence ensuring traceability, review, and adoption."
This is a request for a process or framework for managing ADRs within an organization or project. It's not about a single decision, but about the lifecycle management of decisions.
Key requirements:
- Traceability: How do we link ADRs to code, requirements, and other ADRs? How do we know why something was done years ago?
- Review: How do we ensure quality, validity, and consensus before a decision is locked in?
- Adoption: How do we make sure people actually follow the decisions? How do we enforce them (gently or strictly)?
Conceptualizing the Architecture:
I need to structure this as a system or a lifecycle flow. A chronological approach makes the most sense: Drafting -> Reviewing -> Approving -> Implementing -> Maintaining.
-
Phase 1: Structure & Tools (The Foundation): To have traceability, we need a standard format and a storage location.
- Format: MADR (Markdown Any Decision Records) or Nygard style.
- Location: Git repository (monorepo or docs repo) is best for version control and linking to code.
- Tooling: ADR-tools, log4brains, or just markdown files.
-
Phase 2: The Workflow (The "Cadence"): This is the core process.
- Drafting: Anyone can propose. Needs a template.
- Discussion/Review: RFC (Request for Comments) phase.
- Approval: Who signs off? (Tech Lead, Architecture Guild, etc.)
- Status: Proposed -> Accepted -> Deprecated/Superseded.
-
Phase 3: Traceability Mechanics:
- Linking ADRs to code (comments in code pointing to ADR number).
- Linking ADRs to Jira/Issues.
- Linking ADRs to other ADRs (supersedes, amends).
-
Phase 4: Adoption & Enforcement:
- Code Review checklists (Does this PR violate an ADR?).
- Linting/Static Analysis (harder for high-level arch, but possible for things like dependency rules).
- "Town Crier" or newsletters to announce new ADRs.
-
Phase 5: The "Cadence" (Recurring Events):
- Weekly/Bi-weekly Architecture Review Board (ARB) meetings?
- Quarterly cleanups?
Refining the "Architectural" aspect:
I shouldn't just list steps; I should frame it as an "Architecture" for the process. I'll use terms like "Lifecycle Phases," "Governance Gates," and "Feedback Loops."
Drafting the Content Structure:
- The Core Philosophy: "Code is Truth, Context is King."
- The Infrastructure (Tooling/Format):
- Standardized Template (MADR).
- Repo placement (Docs-as-Code).
- The Lifecycle (The Cadence):
- Ideation (Draft)
- Scrutiny (Review) - The Governance Gate.
- Ratification (Acceptance)
- Implementation (Adoption)
- Specific Mechanisms for the 3 Constraints:
- Traceability: Bi-directional linking (Code -> ADR, ADR -> Code).
- Review: The "Architecture Guild" or async PR review.
- Adoption: The "ADR Sheriff" or CI/CD checks.
- The Maintenance Cadence (Governance):
- Hygiene checks.
- Deprecation protocol.
Self-Correction/Refinement during thought process:
- Initial thought: Suggest an Architecture Review Board (ARB).
- Correction: ARBs are often bottlenecks. Suggest a "distributed" model or "lazy consensus" for minor decisions, and a "forum" only for major ones. Don't make it too heavy.
- Traceability: It's not enough to have the ADR. The code must reference the ADR. I need to emphasize code comments like
// See ADR-005 for auth strategy.
- Adoption: How do you force adoption? Code reviews are the primary vector. Also, "Decision Records" aren't just for architecture; they can be for tools or processes too.
Final Polish: Use a structured format (tables, bold headers, steps) to make it readable. "Architect" implies a blueprint, so deliver a blueprint.
Proposed Output Structure:
- Executive Summary: High-level view.
- The Framework (Lifecycle): 5 Stages (Propose, Review, Adopt, Implement, Maintain).
- Deep Dive into Requirements:
- Traceability Matrix (How to link).
- Review Protocol (Who and How).
- Adoption Strategy (Enforcement).
- The Cadence (Calendar view): Daily/Weekly/Quarterly activities.
- Tech Stack Recommendation: Tools to support this.
Let's write this out. Focus on Actionable architecture. Ensure the distinction between the record and the process is clear. The user asked for a "cadence," so emphasize the time-based aspects and the flow.
Key addition: The concept of "Status" in ADRs is vital for the lifecycle. (Proposed, Accepted, Deprecated, Superseded).
Key addition: Specific templates help. Mentioning MADR (Markdown Any Decision Records) is good practice.
Let's synthesize this into the final response.
This architecture outlines a governance framework for Architectural Decision Records (ADRs). It moves beyond simple documentation to establish a living system where decisions are actively managed, linked to code, and reviewed continuously.
We call this framework the "ADR Lifecycle Loop."
1. The Foundation: Structure & Tooling
Before establishing a cadence, the infrastructure must support traceability.
- Format: MADR (Markdown Any Decision Records). Use the standard template (Context, Decision, Consequences, Pros/Cons).
- Location: Docs-as-Code. ADRs live in the same Git repository as the source code (usually in
/docs/adr).
- Why: This links decisions directly to Pull Requests (PRs) and ensures the decision history branches and merges alongside the code.
- Indexing: An auto-generated
README.md index in the ADR folder that lists statuses (Proposed, Accepted, Deprecated, Superseded).
2. The Lifecycle Cadence (The "Loop")
The cadence is divided into three phases: Ideation, Ratification, and Maintenance.
Phase 1: Ideation & Drafting (The "Proposal" State)
- Trigger: A significant technical challenge is identified that lacks a precedent.
- Actor: The Lead Engineer or Architect.
- Mechanism:
- Copy the
0000-template.md.
- Draft the ADR in a branch.
- Traceability Hook: Create a PR for the ADR before writing the solution code. Use tags in the ADR front matter (e.g.,
JIRA-TICKET-123) to link back to product requirements.
Phase 2: Review & Ratification (The "Acceptance" State)
This phase ensures Review. We avoid "Architecture by Dictatorship" by enforcing a standardized review window.
- The 72-Hour Rule:
- ADRs are submitted as PRs.
- Automated bots tag the
@architecture-guild.
- The PR must remain open for 72 hours (unless flagged as critical/hotfix) to allow asynchronous review across time zones.
- The Review Checklist:
- Does it conflict with an existing ADR?
- Are the "Consequences" fully articulated?
- Is the scope clear?
- Approval:
- Requires 2 approvals from the Architecture Guild.
- Once merged, the ADR status changes to Accepted.
Phase 3: Adoption & Enforcement (The "Implementation" State)
This phase ensures Adoption. An ADR is useless if ignored.
- The Code Enforcement Gate:
- When the feature PR is submitted, the author must reference the ADR number in the PR description (e.g.,
Implements ADR-005).
- The "Sheriff" Check: A designated reviewer verifies that the code matches the decision in the ADR. If the code deviates, the ADR must be updated or the code rejected.
- Linting/Static Analysis: For concrete decisions (e.g., "We use PostgreSQL"), use tools like ArchUnit or Open Policy Agent (OPA) to enforce architectural constraints in the CI/CD pipeline.
3. The Cadence Calendar
To prevent ADRs from becoming "dead documentation," implement these recurring rituals:
| Cadence | Ritual | Owner | Goal |
|---|
| Continuous | ADR PR Review | Tech Leads | Review and merge new proposals. |
| Per Sprint | Tech Huddle | Chapter Leads | Discuss "Proposed" ADRs that are controversial. Unblock stuck decisions. |
| Quarterly | Architecture Hygiene | Architecture Guild | Audit "Accepted" ADRs. Identify candidates for "Deprecation" or "Superseding." |
4. Mechanisms for Traceability
We ensure traceability using Bi-Directional Linking.
-
Forward Traceability (Code → Decision):
- Use inline code comments for localized decisions:
// Refs ADR-012: Using Redis for caching here.
- This helps future developers understand why a weird block of code exists without guessing.
-
Backward Traceability (Decision → Requirement):
- Every ADR must contain a
## Context section that links to the specific Jira Ticket, RFC, or Compliance Regulation that necessitated the change.
-
Lateral Traceability (Decision → Decision):
- In the ADR template, include a
Related Decisions section.
- Example: If ADR-008 defines a logging standard, and ADR-012 defines a new microservice, ADR-012 must link to ADR-008 to show it adheres to the logging standard.
5. Mechanism for Drift & Deprecation
The hardest part of ADRs is dealing with outdated decisions.
- The "Supersede" Workflow:
- Never delete an ADR.
- If a decision changes, create a new ADR (e.g., ADR-015).
- In ADR-015, add:
Supersedes ADR-004.
- Go back to ADR-004 and change the status to
Superseded by ADR-015.
- Drift Detection (Quarterly):
- During the Quarterly Hygiene review, compare the current codebase structure against the
/docs/adr folder.
- If the code uses React but the ADR says "Angular," the team must decide: Is the ADR wrong (update it), or is the code wrong (refactor it)?
Summary of the Architecture
To implement this, you need:
- A Template (MADR).
- A Workflow (Git PRs with 72-hour windows).
- A Culture (Referencing ADRs in code comments and commit messages).
- A Ritual (Quarterly audits for deprecation).