arc42 Architecture Documentation Template
Complete arc42 9.1 documentation: all 12 chapters with sub-sections, ISO/IEC 25010:2023 and Q42 quality tree and scenarios, risks, worked examples
How to use: Teams documenting an existing or new system in a widely known structure. Fill chapter 1 (quality goals, stakeholders) and chapter 3 (context) first, keep chapter 4 to one page. arc42 favours adequacy: shorten chapters deliberately, but keep the CC BY-SA attribution.
Preview
Architecture Documentation: [System name]
Adapted from arc42 version 9.1 (October 2026), the template for software architecture documentation by Dr. Gernot Starke and Dr. Peter Hruschka (CC BY-SA 4.0). Twelve chapters with sub-sections, worked examples and guidance written for this collection. arc42 favours adequacy over completeness: fill what your stakeholders need and say so where a chapter is deliberately short. Chapter 10 follows the arc42 9.1 practice of naming quality characteristics after ISO/IEC 25010:2023 and the open Q42 quality model (quality.arc42.org). Replace every
[bracketed]value and every row marked Example.License note: adapted structure under CC BY-SA 4.0, https://arc42.org/license/
Document control
| Field | Value |
|---|---|
| Document ID | [ARC42-SYSTEM-001] |
| System | [System name] |
| System release described | [vX.Y] |
| Version | [0.1] |
| Status | [Draft / In review / Approved] |
| Architect / owner | [@architect] |
| Classification | [Internal / Confidential / Public] |
| Last updated | YYYY-MM-DD |
Approvals
| Role | Name | Decision | Date |
|---|---|---|---|
| Lead architect | [@name] | [Approved / Approved with comments / Rejected] | YYYY-MM-DD |
| Product owner | [@name] | [Decision] | YYYY-MM-DD |
| Engineering manager | [@name] | [Decision] | YYYY-MM-DD |
| Operations lead | [@name] | [Decision] | YYYY-MM-DD |
Revision history
| Version | Date | Author | Change summary |
|---|---|---|---|
| 0.1 | YYYY-MM-DD | [@name] | Chapters 1 to 4 drafted |
| 0.2 | YYYY-MM-DD | [@name] | Example: Added runtime scenarios 6.2 and 6.3; ADR-004 recorded |
| 1.0 | YYYY-MM-DD | [@name] | Example: Baseline after architecture review |
| 1.1 | 2026-10-23 | [@name] | Updated to arc42 9.1: chapter 10 quality model references (ISO/IEC 25010:2023, Q42), quality tree and scenario tags, licence note |
Contents
1. Introduction and goals
1.1 Requirements overview
[System name] lets [primary users] [do the core job]. The functions that drive the architecture are listed below; the full requirements live in [link to backlog or SRS].
| ID | Essential requirement | Why it matters architecturally |
|---|---|---|
| RQ-01 | Example: Users edit Markdown documents offline in the browser | Rules out a server-side source of truth |
| RQ-02 | Example: Preview updates while typing for documents up to 1 MB | Requires incremental rendering |
| RQ-03 | Example: Export to HTML, PDF and DOCX | Introduces a conversion pipeline |
| [RQ-nn] | [Requirement] | [Architectural impact] |
1.2 Quality goals
The top three to five quality goals, in priority order. Each one is refined into measurable scenarios in chapter 10.
| Priority | Quality goal | Motivation | Scenario |
|---|---|---|---|
| 1 | Example: Privacy | Documents never leave the device unless the user exports them | QS-01 |
| 2 | Example: Responsiveness | Typing must not lag on mid-range laptops | QS-02 |
| 3 | Example: Maintainability | Small team, frequent releases | QS-04 |
| [n] | [Quality goal] | [Motivation] | [QS-nn] |
1.3 Stakeholders
| Role | Contact | Expectations of the architecture and this document |
|---|---|---|
| Example: Product owner | @po | Understand feasibility and cost of roadmap items |
| Example: Development team | @team | Clear module boundaries, conventions, decisions |
| Example: Operations | @ops | Deployment, monitoring and recovery procedures |
| Example: Security reviewer | @sec | Trust boundaries and data flows |
| [Role] | [@name] | [Expectations] |
2. Architecture constraints
2.1 Technical constraints
| ID | Constraint | Background |
|---|---|---|
| TC-01 | Example: Runs in current Chromium, Firefox and Safari without plug-ins | Target users cannot install software |
| TC-02 | Example: No mandatory backend for editing | Local-first product promise |
| [TC-nn] | [Constraint] | [Background] |
2.2 Organisational constraints
| ID | Constraint | Background |
|---|---|---|
| OC-01 | Example: Team of four developers, no dedicated operations staff | Budget |
| OC-02 | Example: Release every two weeks | Product cadence |
| [OC-nn] | [Constraint] | [Background] |
2.3 Conventions
| ID | Convention | Background |
|---|---|---|
| CV-01 | Example: TypeScript strict mode, ESLint rules in repository | Code quality policy |
| CV-02 | Example: Decisions recorded as ADRs in docs/adr | Traceability |
| [CV-nn] | [Convention] | [Background] |
3. Context and scope
3.1 Business context
[System name] exchanges the following information with its environment.
| Partner | Input to the system | Output from the system |
|---|---|---|
| Example: Author | Text, formatting commands, files to import | Preview, exported HTML / PDF / DOCX |
| Example: Local file system | Existing documents | Saved documents |
| [Partner] | [Input] | [Output] |
3.2 Technical context
| Partner | Channel / protocol | Data format | Notes |
|---|---|---|---|
| Example: Browser storage | IndexedDB API | JSON records | Quota managed by the browser |
| Example: Local file system | File System Access API, download fallback | UTF-8 Markdown | Not available in all browsers |
| Example: Static host | HTTPS | HTML, JS, CSS | Only delivers the application |
| [Partner] | [Channel] | [Format] | [Notes] |
Mapping of business to technical context: [state which channel carries each business exchange above].
4. Solution strategy
| Quality goal or constraint | Strategy | Decision |
|---|---|---|
| Example: Privacy (1.2, priority 1) | All processing in the browser; no telemetry by default | ADR-001 |
| Example: Responsiveness (priority 2) | Debounced incremental rendering in a worker | ADR-003 |
| Example: Maintainability (priority 3) | Modular monolith with enforced import boundaries | ADR-002 |
| Example: TC-01 browser support | Feature detection with graceful fallbacks | ADR-005 |
| [Goal] | [Strategy] | [ADR-nnn] |
Technology choices: [framework, language, key libraries and why]. Top-level decomposition: [style, for example layered, modular monolith, microservices]. Organisational decisions: [for example ownership by module].
5. Building block view
5.1 Level 1: whitebox of the overall system
Motivation for this decomposition: [why these blocks, for example "one block per area of change"].
| Building block | Responsibility | Interfaces |
|---|---|---|
| Example: Editor | Text input, syntax highlighting, commands | Emits change events; reads documents |
| Example: Preview renderer | Turns Markdown into sanitised HTML | render(source) -> html |
| Example: Document store | Persists documents and revisions | save, load, listRevisions |
| Example: Export pipeline | Produces HTML, PDF, DOCX | export(docId, format) |
| [Block] | [Responsibility] | [Interfaces] |
Important interfaces: [describe any interface between level 1 blocks that is not obvious from the table].
5.2 Level 2: whitebox of [Preview renderer]
[Preview renderer] is opened because [it carries the main performance and security risks].
| Building block | Responsibility | Quality goal served |
|---|---|---|
| Example: Parser | Markdown to syntax tree | Correctness |
| Example: Sanitiser | Removes scripts and unsafe attributes | Privacy, security |
| Example: DOM patcher | Updates only changed nodes | Responsiveness |
| [Block] | [Responsibility] | [Goal] |
5.3 Level 2: whitebox of [Document store]
| Building block | Responsibility | Quality goal served |
|---|---|---|
| Example: Autosave scheduler | Debounces writes after typing pauses | Data safety |
| Example: Revision keeper | Stores snapshots, prunes by policy | Data safety |
| [Block] | [Responsibility] | [Goal] |
6. Runtime view
6.1 Scenario: edit and preview
The author types; the preview updates without blocking input.
Notable aspects: [debounce values, what happens on slow devices].
6.2 Scenario: application start with existing documents
| Step | Building block | Action | On failure |
|---|---|---|---|
| 1 | Application shell | Load settings | Use defaults, show notice |
| 2 | Document store | Open database, migrate schema if needed | Read-only mode with export offer |
| 3 | Editor | Restore last open document | Open empty document |
| [n] | [Block] | [Action] | [Failure handling] |
6.3 Scenario: storage quota exceeded
[Describe detection, user message, and how content is protected, for example "keep the document in memory, offer download, prune old revisions only after confirmation".]
| Step | Building block | Action |
|---|---|---|
| 1 | Document store | Write fails with a quota error; the document stays in memory |
| 2 | Application shell | Shows a persistent warning with "Download now" and "Free space" actions |
| 3 | Revision keeper | Offers to prune revisions older than [30] days, only after confirmation |
| 4 | Document store | Retries the write; clears the warning on success |
6.4 Further scenarios
| Scenario | Why it is documented | Status |
|---|---|---|
| Example: Export to PDF of a document with diagrams | Longest-running operation, uses several blocks | [Documented / planned] |
| Example: Import of a folder of files | Bulk write path and error reporting | [Documented / planned] |
| [Scenario] | [Reason] | [Status] |
7. Deployment view
7.1 Infrastructure level 1
| Node | Description | Building blocks deployed |
|---|---|---|
| Example: Production host | Container behind TLS reverse proxy | Static application bundle |
| Example: User browser | Runs the whole application, service worker caches it | All blocks of 5.1 |
| [Node] | [Description] | [Blocks] |
7.2 Environments
| Environment | Purpose | Deployment | Rollback |
|---|---|---|---|
| Example: Production | Live users | Tagged image pulled by host | Redeploy previous tag |
| Example: Staging | Release verification | Branch build | Not needed |
| [Environment] | [Purpose] | [Mechanism] | [Rollback] |
8. Cross-cutting concepts
8.1 Domain model
| Concept | Meaning | Represented by |
|---|---|---|
| Example: Document | A Markdown text with title and metadata | Document record |
| Example: Revision | Immutable snapshot of a document | Revision record |
| [Concept] | [Meaning] | [Type] |
8.2 Security and privacy
[Trust boundaries, content sanitisation, content security policy, handling of secrets, opt-in for remote resources.]
8.3 Persistence
[Storage technology, schema versioning, migrations, backup and export.]
8.4 User interface
[Component library, theming, accessibility target such as WCAG 2.2 AA, keyboard support.]
8.5 Error handling
[Error categories, where they are caught, what the user sees, and the rule that user content is never discarded silently.]
8.6 Logging and observability
[What is logged where, retention, and how privacy is preserved.]
8.7 Testability
[Test levels, test data, seams for fakes, quality gates in CI.]
8.8 Internationalisation and other concepts
[Interface localisation, input methods, configuration, build and release, and any further concepts relevant to this system.]
9. Architecture decisions
| ID | Decision | Status | Date | Record |
|---|---|---|---|---|
| ADR-001 | Example: Process documents only in the browser | Accepted | YYYY-MM-DD | [link] |
| ADR-002 | Example: Modular monolith with import boundaries | Accepted | YYYY-MM-DD | [link] |
| ADR-003 | Example: Render preview in a web worker | Superseded by ADR-007 | YYYY-MM-DD | [link] |
| [ADR-nnn] | [Decision] | [Proposed / Accepted / Superseded] | YYYY-MM-DD | [link] |
10. Quality requirements
arc42 9.1 points chapter 10 at two reference models. Pick one as the team's vocabulary, record the choice below, and use its terms in the quality tree and in the scenario tags.
| Model | Top-level terms | When to prefer it |
|---|---|---|
| ISO/IEC 25010:2023 product quality model | Functional suitability, performance efficiency, compatibility, interaction capability, reliability, security, maintainability, flexibility, safety | Contracts, regulated work or acquirers that cite ISO; evaluation under ISO/IEC 25040 |
| Q42 quality model (quality.arc42.org, CC BY-SA 4.0) | Nine adjective tags: efficient, flexible, maintainable, operable, reliable, safe, secure, suitable, usable; each tag links to a catalogue of more specific qualities and example requirements | Teams that want stakeholder wording, several tags per requirement, and developer-facing qualities that ISO leaves out of scope |
The 2023 edition of ISO/IEC 25010 differs from the 2011 edition, which older arc42 versions referenced: usability became interaction capability, portability became flexibility, and safety was added as a characteristic. Update older quality trees when you move to 9.1, and keep an old-to-new mapping row in the glossary if earlier reviews used the 2011 names.
| Field | Value |
|---|---|
| Quality model used | [ISO/IEC 25010:2023 / Q42 / both, ISO for the tree and Q42 tags for scenarios] |
| Reason | Example: The acquirer evaluates against ISO/IEC 25010:2023; Q42 tags help the team find example requirements |
| Owner of the quality tree | [@architect] |
10.1 Quality tree
The tree refines each top-level goal into the scenarios below. The first level uses ISO/IEC 25010:2023 characteristic names with the team's own goal name in brackets; the Q42 tag column in 10.2 gives the matching adjective.
10.2 Quality scenarios
| ID | ISO/IEC 25010:2023 characteristic | Q42 tag | Scenario (stimulus and environment) | Expected response | Measure |
|---|---|---|---|---|---|
| QS-01 | Security | secure | Example: User edits with remote images disabled | No network request leaves the browser | 0 requests in network log |
| QS-02 | Performance efficiency | efficient, usable | Example: User types in a 1 MB document on a mid-range laptop | Characters appear without visible lag | Input latency p95 below 50 ms |
| QS-03 | Performance efficiency | efficient | Example: User opens a 5 MB file | Editor usable quickly | Interactive within 2 s |
| QS-04 | Maintainability | maintainable, flexible | Example: Developer adds a new export format | Change limited to the export pipeline | Under 3 days, no other module touched |
| QS-05 | Reliability | reliable | Example: Browser tab crashes during editing | Work restored on reopen | At most 1 s of typing lost |
| [QS-nn] | [Characteristic] | [Tag] | [Scenario] | [Response] | [Measure] |
Write each measure so a test or a review can decide pass or fail. A scenario without a number, a threshold or an observable outcome is a wish, not a requirement; move it to chapter 11 as a risk until the team can measure it.
11. Risks and technical debt
| ID | Type | Description | Probability | Impact | Mitigation / action | Owner |
|---|---|---|---|---|---|---|
| RK-01 | Example: Risk | Browser may evict IndexedDB data under storage pressure | Medium | High | Request persistent storage; prompt for export | @name |
| RK-02 | Example: Debt | Export pipeline duplicates rendering logic | High | Medium | Merge with preview renderer in Q[n] | @name |
| [RK-nn] | [Risk / Debt] | [Description] | [L / M / H] | [L / M / H] | [Action] | [@name] |
12. Glossary
| Term | Definition |
|---|---|
| Example: Building block | Any structural part of the system: module, component, service, package |
| Example: Local-first | Data lives on the user's device and works offline; sync is optional |
| Example: Revision | A stored snapshot of a document at a point in time |
| [Term] | [Definition] |
Standard and licence note
Based on arc42 version 9.1 (release tag 2026.10.19, October 2026), the template for architecture communication and documentation by Dr. Gernot Starke and Dr. Peter Hruschka (https://arc42.org). The twelve-chapter structure follows arc42; the sub-section breakdown, guidance comments, worked examples and the document control, revision history and approval sections are additions made for this collection. The explanatory and example text is original to this collection. The adapted structure is shared under CC BY-SA 4.0 (https://arc42.org/license/); keep this attribution and the same licence when you share derived versions of this template. Chapter 10 refers to ISO/IEC 25010:2023 by characteristic names only, and to the Q42 quality model by Dr. Gernot Starke (https://quality.arc42.org, CC BY-SA 4.0) by its tag names only. Check https://arc42.org/download for the current arc42 release before you start a new document. Template licence: CC BY-SA 4.0 (ShareAlike, as required by the arc42 licence).
Related templates
Architecture Decision Record (ADR) Template
Lightweight Nygard-style ADR: status, context, decision, consequences, alternatives, related decisions, lifecycle and log
Software & EngineeringAGENTS.md Template for AI Coding Agents
Repository instructions for AI coding agents: setup, build and test commands, conventions, architecture map, PR and security rules
Software & EngineeringAI Coding Assistant Policy Template
Policy for AI coding assistants and agents: autonomy levels, tool register, secrets, sandboxing, review of generated code, provenance, OWASP ASI and SSDF mapping