Skip to content

docs: Add Mermaid diagrams for architecture visualization#7

Merged
whitmo merged 1 commit intomainfrom
work/bright-bear
Feb 25, 2026
Merged

docs: Add Mermaid diagrams for architecture visualization#7
whitmo merged 1 commit intomainfrom
work/bright-bear

Conversation

@whitmo
Copy link
Copy Markdown
Owner

@whitmo whitmo commented Feb 3, 2026

Summary

  • Adds docs/DIAGRAMS.md with 12 Mermaid diagrams covering all major system flows
  • Diagrams render in GitHub's Markdown viewer for easy navigation
  • Complements existing ASCII diagrams in ARCHITECTURE.md with interactive visualizations

Diagrams included

  1. System Overview - High-level component architecture
  2. Brownian Ratchet - Core philosophy visualization
  3. Agent Types and Relationships - How agents interact
  4. Worker Lifecycle - State machine from spawn to cleanup
  5. Worker Creation Flow - Sequence diagram of spawn process
  6. Message Routing - How messages flow between agents
  7. Message Status Flow - Status state machine
  8. Repository Initialization - Init sequence diagram
  9. Health Check Loop - Flowchart of health check logic
  10. Daemon Goroutines - Background loop structure
  11. File System Layout - Directory tree visualization
  12. Shutdown Sequence - Graceful shutdown flow
  13. State Thread Safety - Mutex and concurrent access model

Test plan

  • Verify diagrams render correctly on GitHub
  • Review diagram accuracy against ARCHITECTURE.md

🤖 Generated with Claude Code

Add comprehensive visual diagrams covering:
- System overview and component relationships
- The Brownian Ratchet philosophy
- Agent types and relationships
- Worker lifecycle (spawn → complete → cleanup)
- Message routing and status flow
- Repository initialization sequence
- Health check loop logic
- Daemon goroutine structure
- File system layout
- Shutdown sequence
- State thread safety model

These diagrams complement the existing ASCII diagrams in ARCHITECTURE.md
and render properly in GitHub's Markdown viewer.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@whitmo whitmo added the multiclaude PR managed by multiclaude label Feb 3, 2026
@whitmo whitmo merged commit 5468946 into main Feb 25, 2026
@whitmo whitmo deleted the work/bright-bear branch March 1, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multiclaude PR managed by multiclaude

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant