LESSON 11

Capstone: Produce the Architecture Documentation

Assemble, review, and validate the SignalDesk architecture documentation and prepare it for planning and implementation.

Introduction

You have drivers, scenarios, an architectural style, views, data and API designs, scalability and reliability analysis, trade-offs, and decision records. The capstone assembles them into one coherent package that the team can use to plan, build, test, and operate the system.

Good architecture documentation is short enough to be read and precise enough to be used. It is not a record of everything considered; it is a map of what was decided and why.

Learning Objectives

  • Assemble architecture artifacts into a structured, navigable document.
  • Verify that the architecture traces to requirements and quality scenarios.
  • Run a structured review and resolve findings.
  • Identify risks, open questions, and technical debt honestly.
  • Prepare a handoff to project planning and development.

1. Documentation Structure

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
architecture/
|
+-- 00-readme.md                    (purpose, audience, how to navigate)
+-- 01-introduction-and-goals.md    (scope, key requirements, stakeholders)
+-- 02-constraints.md               (technical, organizational, legal)
+-- 03-context-and-scope.md         (context view, external interfaces)
+-- 04-solution-strategy.md         (style, key decisions, summary of why)
+-- 05-building-blocks.md           (containers and components)
+-- 06-runtime-views.md             (key scenarios as sequences)
+-- 07-deployment-view.md           (environments, infrastructure, regions)
+-- 08-data-architecture.md         (model, stores, tenancy, retention)
+-- 09-api-design.md                (conventions, OpenAPI link)
+-- 10-cross-cutting-concepts.md    (security, observability, error handling)
+-- 11-quality-requirements.md      (utility tree, scenarios, evaluation)
+-- 12-risks-and-technical-debt.md  (risk register, open questions)
+-- 13-glossary.md
+-- adr/                            (decision records and index)
+-- traceability.md                 (requirement -> architecture -> scenario)

This structure is adapted from the widely used arc42 template. Adapt it: omit what does not apply and explain why. Prefer linking to the authoritative source (OpenAPI file, ADRs) over copying content.

2. Principles for Useful Architecture Documentation

  • Audience first. Name who reads each section and what they need to do.
  • Why before what. Rationale and constraints matter more than listing components.
  • One source of truth. Do not duplicate; link.
  • Diagrams as code. Use text-based diagram formats under version control, so they can be reviewed and updated with the system.
  • Consistent notation. Include a legend. Avoid unexplained shapes and colors.
  • Small and current. An outdated document is worse than a short one.
  • Explain the unusual. Document where the system departs from the obvious.

3. Traceability

Show how requirements and drivers map to the architecture.

Driver / requirement Scenario Architectural response ADR Evidence Status
NFR-PER: search p95 1 s at 50k items QS-01 Indexed relational search; derived search index if needed ADR-0005 Search spike pending Open
NFR-PRV: deletion within 30 days QS-06 Deletion job covering all stores; backup purge ADR-0008 Data inventory Designed
CON: EU data residency QS-07 EU regions for all stores and processors ADR-0002 Provider checklist Designed

Use the SRS requirement IDs. Flag any requirement not covered by the architecture and any architecture element with no requirement behind it. Do not invent evidence: if a spike has not been run, say it is pending.

4. Evaluate Against the Scenarios

Walk the documentation through each of your top quality scenarios as a review:

  1. Can a reader find the relevant components, flow, and decisions within a few minutes?
  2. Does the design satisfy the response measure, and what evidence supports that?
  3. What are the failure behavior and the recovery path?
  4. What would change if the load or the requirement changed by a factor of ten?

Record the results in the quality section as risks, non-risks, sensitivity points, and trade-off points.

5. Independent Review With AI

Use a fresh conversation and provide the documents.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Act as an independent architecture reviewer who did not write
this documentation.

Inputs: the architecture documentation, the quality scenarios, and
the SRS requirement list.

Review for:
1. Requirements or scenarios not addressed by the architecture.
2. Architecture elements with no requirement or scenario behind them.
3. Inconsistencies between views (for example a component in the
   building blocks missing from the runtime views, or data stored in a
   place not in the data inventory).
4. Single points of failure and unaddressed failure modes.
5. Decisions made without recorded alternatives or evidence.
6. Security, privacy, and compliance concerns, including deletion and
   residency.
7. Claims about performance, cost, or product capabilities that are
   not backed by evidence.
8. Sections that would be hard for a new team member to follow.

For each issue: cite the section, explain the concern, rate severity,
and say whether it is a definite defect or a possible issue.
Do not rewrite the documentation. Do not invent facts.

Triage: confirmed defects are fixed in the source documents; possible issues become open questions with owners; false positives are noted briefly. Fix the documents yourself so that the version history shows human accountability.

Also ask a human who was not involved in the design to read it and explain the system back to you. The places where they hesitate are the places the documentation fails.

6. Risks, Open Questions, and Technical Debt

Be candid.

Item Description Impact Owner Action / trigger
Risk R-01 Search latency at 50k items unmeasured High Tech lead Run spike before sprint 2
Open question Q-03 Is 99.5% availability sufficient for pilot customers? Medium Product owner Confirm with stakeholders
Technical debt TD-01 Module boundaries enforced only by convention initially Medium Team Add dependency checks in CI

Intentional shortcuts are acceptable when recorded with their cost and a trigger to revisit. Hidden ones are not.

7. Handoff to Planning and Development

Prepare a brief handoff that the next courses (project management, development, quality, and DevOps) can use:

  • The architectural skeleton: the first thin slice that exercises the riskiest path end to end (for example upload, queue, worker, store, search), to be built first.
  • The architecture backlog: spikes, setup tasks, and risk-reduction work.
  • Working agreements: module rules, API conventions, testing expectations for architecture (such as tenancy isolation tests and dependency rules).
  • Constraints for estimates: what is decided and what is still open.
  • Fitness functions: automated checks that keep the architecture honest (dependency rules, performance budget tests, tenant isolation tests, API compatibility checks).

Architecture is not finished at handoff. Plan to revisit it when the first slice has been built and measured.

8. Capstone Acceptance Criteria

Your architecture documentation is complete when:

  • Drivers, quality scenarios, and constraints are documented and ranked.
  • Context, container, component, runtime, deployment, and data views are consistent.
  • The API contract exists as a specification and follows the stated conventions.
  • Scalability and reliability designs are tied to measurable targets, with load model and failure mode analysis.
  • At least seven ADRs exist with alternatives, consequences, and evidence.
  • A traceability table links requirements to scenarios, architecture elements, and decisions.
  • Risks, open questions, and technical debt are listed with owners.
  • An independent review has been performed and findings triaged.
  • A handoff note and an architecture backlog exist.

9. Final Reflection

  1. Which driver most shaped the architecture, and what would have been different without it?
  2. Which decision changed most as you analyzed trade-offs?
  3. Where did AI propose something that did not fit your context?
  4. Which claim did you verify and find to be wrong or unsupported?
  5. What is the biggest remaining uncertainty, and what would resolve it?
  6. What would trigger you to revise the architecture?

Key Takeaways

  • Good architecture documentation explains structure, rationale, and evidence concisely.
  • Traceability connects requirements, scenarios, decisions, and evidence.
  • Independent review and honest risk reporting build trust in the design.
  • AI accelerates exploration and review, but accountability for decisions remains human.

What’s Next?

The Software Architecture course is complete. The next course in the series is AI-Powered Project Management, where the SRS and architecture become the basis for a work breakdown structure, estimates, sprint planning, risk management, and stakeholder communication.