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.md contains ## 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 is sequenceDiagram.
  • The Numbers section contains a Markdown table with a header, at least two data rows, and a Hardware column. 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.md contains neither an em dash nor an en dash.
  • Every relative Markdown link in README.md points to a file that exists in the repository.
  • docs/adr/ contains at least three Markdown files. Their filenames collectively mention mysql, outbox, and websocket, and every ADR contains the exact headings ## Status, ## Context, ## Decision, and ## Consequences.
  • docs/ contains at least one postmortem-*.md file, and each one contains the exact headings ## Summary, ## Timeline, ## Root cause, and ## Follow-ups.
  • docs/retro.md contains the exact headings ## What slipped, ## Why, and ## Next, and explicitly mentions at least two weeks using forms such as Week 3 or Week 6.

Constraints

  • Use the repository-root paths README.md and docs/retro.md, keep ADRs in docs/adr/, and name postmortems docs/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:

bash
cd backend
make test W=8B5

Read the first failing assertion as the earliest file or structure check that needs attention, then inspect that path before changing later documents.

Finished Exercise 8.10?

Implementation

Run locally

Write the code in your editor inside zomato-prep, then work through this list.

  1. README contains all five required sections with enough body text.
  2. Architecture includes a Mermaid flowchart and sequence diagram.
  3. Numbers includes a complete table with a Hardware column.
  4. Hardest bugs contains three detailed debugging stories.
  5. Three ADRs, a postmortem, and a retro meet their required structures.
  6. All README relative links resolve and the documentation tests pass.

Commands

terminal
cd backend && make test W=8B5

Tests

  • TestW8B5_ReadmeHasTheEngineeringPostSections in backend/internal/docs/docs_test.go
  • TestW8B5_ArchitectureHasAMermaidFlowchartAndASequenceDiagram in backend/internal/docs/docs_test.go
  • TestW8B5_NumbersTableStatesHardwareOnEveryRow in backend/internal/docs/docs_test.go
  • TestW8B5_ThreeHardestBugsAreWrittenAsStories in backend/internal/docs/docs_test.go
  • TestW8B5_ReadmeUsesNoEmDashesOrEnDashes in backend/internal/docs/docs_test.go
  • TestW8B5_RelativeLinksInTheReadmePointAtRealFiles in backend/internal/docs/docs_test.go
  • TestW8B5_ThreeADRsFollowTheContextDecisionConsequencesShape in backend/internal/docs/docs_test.go
  • TestW8B5_APostmortemCoversTimelineCauseAndFollowUps in backend/internal/docs/docs_test.go
  • TestW8B5_ARetroSaysWhichWeeksSlipped in backend/internal/docs/docs_test.go