Skip to content

Internal documentation

Updated 13 Jul 2026jirkamotejl

Internal documentation should preserve what is hard to find in code, generated API docs, or Slack history:

  • product invariants,
  • domain models and their exceptions,
  • historical decisions,
  • operational runbooks,
  • edge cases and the reasons why the system behaves in non-obvious ways.
TypeExample
Architecture overviewApplication surfaces, Rails layers, background jobs, async flows.
Domain invariantsWhy a participation exists, how versions change, what cannot be deleted.
Operational runbooksWhat to inspect when assignments, imports, or webhooks look wrong.
Historical contextWhy a behavior exists even when it looks surprising in the UI.
SourceNote
knowspread/docs/content_assigner.mdAlready strong domain documentation.
knowspread/docs/digital-ocean.mdOperational knowledge and historical notes.
knowspread/swagger/rest/v1/swagger.yamlSource for API documentation.
knowspread/docs/model/*.plantumlOlder diagrams suitable for Mermaid migration or preservation as reference.
  1. Architecture overview
  2. Domain map
  3. User in company space
  4. Content, versions, and licenses
  5. Assignments and study
  6. ContentAssigner