Project documentation package
You build a project documentation package with an engineering-post README, three ADRs, a Week 6 postmortem, and a project retro. The README includes Mermaid diagrams, local k6 measurements with hardware, and three detailed bug stories.
Ticket
You build the project's documentation package: an engineering-post README.md, three ADRs under docs/adr/, a blameless postmortem under docs/, and docs/retro.md.
Another engineer needs a reliable path from the product problem through its architecture to measured behaviour and failure analysis. The README also links to the decisions and incident record. The next exercise, Demo video and portfolio entry, uses this material as source content for your demo and portfolio entry.
Acceptance criteria
- The repository-root
README.mdcontains## Problem,## Architecture,## Numbers,## Hardest bugs, and## Next steps. Each section has at least 25 words of body text. - The Architecture section contains a Mermaid code fence whose first line starts with
flowchart, and a Mermaid code fence whose first line issequenceDiagram. - The Numbers section contains a Markdown table with a header, at least two data rows, and a
Hardwarecolumn. Every row has the same number of cells, and no cell is empty. - The Hardest bugs section contains at least three
###subsections, each with at least 40 words. README.mdcontains neither an em dash nor an en dash.- Every relative Markdown link in
README.mdpoints to a file that exists in the repository. docs/adr/contains at least three Markdown files. Their filenames collectively mentionmysql,outbox, andwebsocket, and every ADR contains the exact headings## Status,## Context,## Decision, and## Consequences.docs/contains at least onepostmortem-*.mdfile, and each one contains the exact headings## Summary,## Timeline,## Root cause, and## Follow-ups.docs/retro.mdcontains the exact headings## What slipped,## Why, and## Next, and explicitly mentions at least two weeks using forms such asWeek 3orWeek 6.
Constraints
- Use the repository-root paths
README.mdanddocs/retro.md, keep ADRs indocs/adr/, and name postmortemsdocs/postmortem-*.md. - Do not modify the provided tests.
Design direction
Keep README.md as the entry point and put the longer engineering records in docs/. Use the ADR directory for architectural decisions, a separate postmortem file for the Week 6 incident, and docs/retro.md for project-level reflection. Link these documents from the README with repository-relative paths.
Prefer a component flowchart for explaining system boundaries and a sequence diagram for tracing order placement. Combining both views into one diagram can make the architecture difficult to follow.
For the Numbers section, put the benchmark conditions beside each result. Use your own local k6 measurements and identify the hardware and configuration for every run. A controlled local comparison is useful evidence, but it does not establish production capacity.
Write each hardest bug as a debugging story. Start with the symptom, explain what you investigated, and identify the technical cause. That gives another engineer more useful context than a list of bug names.
Any layout that meets the contract passes.
How to check your work
Run the documentation checks from the backend directory:
cd backend
make test W=8B5Read the first failing assertion as the earliest file or structure check that needs attention, then inspect that path before changing later documents.
The reference solution passes every check for this exercise. Try the hints first; reading the answer before you have struggled with the problem teaches much less.
Implementation
Run locally
Write the code in your editor inside zomato-prep, then work through this list.
- README contains all five required sections with enough body text.
- Architecture includes a Mermaid flowchart and sequence diagram.
- Numbers includes a complete table with a Hardware column.
- Hardest bugs contains three detailed debugging stories.
- Three ADRs, a postmortem, and a retro meet their required structures.
- All README relative links resolve and the documentation tests pass.
Commands
cd backend && make test W=8B5Tests
TestW8B5_ReadmeHasTheEngineeringPostSectionsinbackend/internal/docs/docs_test.goTestW8B5_ArchitectureHasAMermaidFlowchartAndASequenceDiagraminbackend/internal/docs/docs_test.goTestW8B5_NumbersTableStatesHardwareOnEveryRowinbackend/internal/docs/docs_test.goTestW8B5_ThreeHardestBugsAreWrittenAsStoriesinbackend/internal/docs/docs_test.goTestW8B5_ReadmeUsesNoEmDashesOrEnDashesinbackend/internal/docs/docs_test.goTestW8B5_RelativeLinksInTheReadmePointAtRealFilesinbackend/internal/docs/docs_test.goTestW8B5_ThreeADRsFollowTheContextDecisionConsequencesShapeinbackend/internal/docs/docs_test.goTestW8B5_APostmortemCoversTimelineCauseAndFollowUpsinbackend/internal/docs/docs_test.goTestW8B5_ARetroSaysWhichWeeksSlippedinbackend/internal/docs/docs_test.go