Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 2.17 KB

File metadata and controls

54 lines (35 loc) · 2.17 KB

Repository Structure

This folder documents the TRR-Backend repository structure and architecture.

Generated Documentation

Auto-generated by CI (weekly) and make repo-map:

* Generated by the Repository Map workflow; may not exist until the first workflow run. ** Complex diagram may not render in GitHub's Mermaid viewer; download the rendered SVG artifact from the workflow run.

Curated Diagrams

Stable template diagrams (auto-generated but manually curated):

These diagrams use stable templates and can be manually updated by editing scripts/generate_repo_mermaid.py.

Regenerating Locally

# Generate Tree-sitter-based code diagrams
make repo-map

# Check if diagrams are up to date
make repo-map-check

CI Updates

The Repository Map workflow runs weekly (Sunday midnight UTC) and on manual trigger:

  1. Generates repo structure using PGSch/graph-git-repo
  2. Post-processes REPO_STRUCTURE.mermaid.md to fix Mermaid subgraph/node ID conflicts
  3. Generates code diagrams using Tree-sitter
  4. Opens a PR with any changes

Note: The REPO_STRUCTURE.mermaid.md file is post-processed by scripts/fix_repo_structure_mermaid.py to resolve subgraph identifier conflicts that would cause Mermaid rendering errors.

Generated vs Hand-Authored

Type Location Updated By
Generated generated/ CI workflow + make repo-map
Hand-authored diagrams/ Manual edits only

Rule: Never manually edit files in generated/ - they will be overwritten.