Docs & Diagrams

Diagrams & Arch. Decision Records

07 / 12

In Practice

  • Record decisions as ADRs while context is intact: what, why, alternatives, and trade-offs
  • Have the agent generate diagrams from code: flowcharts, sequence, state, and C4
  • Make “ADR on architecture change” a standing rule so docs stay current
  • Generate, then verify; agent diagrams can drift from reality, so check them against code
  • Keep docs close to code, in-repo and in the PR, so they are versioned and discoverable
  • Write for two audiences now: humans and the next agent that reads your repo
  • Do not over-document; record decisions and the non-obvious and skip the self-
    evident
  • Supersede, don't overwrite: when a decision changes, write
    a new ADR that retires the old one so the trail of why
    survives, not just the latest answer

Page 33 of 72: Docs & Diagrams: In Practice

Contents