Program 02 · Module 02 of 9
Module 02: Architecture Recovery and Documentation
Recover the structure a system actually has, as opposed to the one its documents describe. You identify components, boundaries and dependencies, record decisions, and use an assistant to draft diagrams you then verify.
- Suggested study time
- 5–6 hours
- Prerequisites
- Module 1, or an equivalent reading log for a repository.; Familiarity with request flow in a web or batch application.
Sign in to track your progress. Every lesson stays free to read without an account.
Learning outcomes
By the end of this module you will be able to:
- Identify components, boundaries and external dependencies from code and configuration.
- Produce a context diagram and a component diagram that match the code.
- Recover the reasons behind past decisions from history, tests and people.
- Record architecture decisions in a short, reviewable form.
Lessons
- 2.1
Components, Boundaries and Dependencies
Find the parts of a system and the lines between them, from imports, configuration and runtime wiring.
40 min - 2.2
Diagramming What the Code Does
Draw context and component diagrams from evidence, and use an assistant to draft them for you to verify.
45 min - 2.3
Recovering Design Decisions
Use history, tests, tickets and people to recover why a system is built the way it is.
40 min - 2.4
Recording Decisions in Short Form
Write brief decision records that capture context, options and consequences for the next engineer.
35 min
About 2 h 40 min of lessons in total.
Practical assignment
Recover the architecture of your repository
Using your orientation work, recover the architecture of the repository and document it in a way that can be checked against the code.
Deliverables
- A context diagram showing the system, its users and its external services.
- A component diagram with each box linked to a directory or module.
- Three recovered decision records, each noting how the reason was established.
- A list of places where the documents and the code disagree.
Validation checklist
Use this to check your assignment before you move on.
Knowledge check
Show the answer and explanation
Answer: B. A tree shows names, not wiring, so the diagram is an informed guess. It is not worthless: it gives you something to confirm or correct. Covering every folder does not make it right.
Show the answer and explanation
Answer: B. Marking confidence lets readers weight it correctly. Inferred reasons are often right, so the last option overstates. Length is unrelated.
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.