Architecture Diagrams Index
This directory contains comprehensive visual representations of DocBuilder’s architecture. Each diagram set has been verified against the current codebase implementation.
Last Updated: January 4, 2026 - All diagrams verified and split into focused documents.
Overview
The architecture diagrams are organized into separate documents by category:
- High-Level System Architecture - Layered architecture view
- Pipeline Flow - Sequential stage execution and detailed stage operations
- Package Dependencies - Import relationships and dependency rules
- Data Flow - Configuration, build execution, and state persistence flows
- Component Interactions - Theme config, forge integration, change detection
- State Machines - Build, repository, and theme configuration state transitions
Quick Navigation
By Use Case
Understanding the System:
- Start with High-Level System Architecture for overall structure
- Then review Package Dependencies for code organization
Build Pipeline Development:
- Review Pipeline Flow for stage details
- Check Data Flow for data movement
- Reference State Machines for state transitions
Integration Work:
- See Component Interactions for forge and theme integration
- Review Data Flow for configuration and metadata handling
Debugging:
- Check State Machines for valid state transitions
- Review Pipeline Flow for stage execution order
- See Data Flow for data transformation steps
By Component
Hugo Generator:
Git Operations:
- Data Flow: Repository Metadata
- State Machines: Repository State
- Component Interactions: Change Detection
Build Service:
Forge Integration:
Diagram Verification Status
All diagrams have been verified against the current codebase (January 4, 2026):
| Diagram Set | Verification Status | Key Updates |
|---|---|---|
| High-Level Architecture | ✅ Verified | Updated to 12-step transform pipeline |
| Pipeline Flow | ✅ Verified | Corrected stage names and execution order |
| Package Dependencies | ✅ Verified | Confirmed import rules and layer boundaries |
| Data Flow | ✅ Verified | Validated against current implementation |
| Component Interactions | ✅ Verified | Updated for Relearn-only configuration |
| State Machines | ✅ Verified | Confirmed state transitions and triggers |
Key Architecture Changes Reflected
These diagrams reflect the following architectural decisions:
- ADR-003: Fixed 12-step transform pipeline (not 11)
- Relearn Theme Only: No multi-theme system, hardcoded Relearn defaults
- Unified Error Handling: All errors use
internal/foundation/errors - Layer Architecture: Strict dependency flow (command → service → domain → infrastructure → foundation)
- State Decomposition: BuildState split into GitState, DocsState, PipelineState
Diagram Conventions
Layer Diagrams:
- Boxes represent components
- Arrows show dependencies (A → B means “A depends on B”)
- Layers are horizontal (upper layers depend on lower layers)
Flow Diagrams:
- Rectangles represent processes/stages
- Diamonds represent decisions
- Arrows show execution flow
- Dashed lines show optional flows
State Machines:
- Circles/rounded boxes represent states
- Arrows show transitions
- Notes explain transition conditions
Sequence Diagrams:
- Vertical lines represent components
- Horizontal arrows show interactions
- Time flows top-to-bottom
Maintenance
When updating architecture:
- Check All Affected Diagrams: Changes may impact multiple diagram sets
- Verify Implementation: Ensure diagrams match actual code behavior
- Update Verification Date: Update “Last Updated” timestamp
- Cross-Reference: Update related documentation links
Common Update Triggers:
- Adding/removing pipeline stages
- Changing package dependencies
- Adding new components
- Modifying state transitions
- Changing configuration structure
Related Documentation
- Comprehensive Architecture - Detailed architecture guide
- Architecture Overview - High-level architecture concepts
- Package Architecture Guide - Package-level documentation
- Namespacing Rationale - Design decisions for namespace structure
[architecture-diagrams-index](https://docs.home.luguber.info/_uid/b43f4ed6-21cb-4a80-9cdd-3304d03cca05/)