Overview
The current commit graph visualization in Monolex provides branch-level views through a comprehensive TypeScript module. However, this implementation lacks commit-level granularity that would expose the true Git DAG structure to users. The Work-Wiki system requires complete transparency of AI development work. For git operations, this means showing not just which branches exist, but the precise commit relationships that form the development history.Current Implementation
BranchNode Interface
The current implementation captures branch-level information:Missing Fields for DAG Visualization
Two critical fields are absent:-
parents: Vec<String>- Without parent references, we cannot show:- Merge commit relationships
- Branch divergence points
- True development history flow
- AI’s commit decision tree
-
lane: usize- Without lane assignment, we cannot:- Position commits visually without overlap
- Show parallel development streams
- Distinguish simultaneous AI work streams
Visualization Mode Comparison
Current Mode: Branch-Level Only
Target Mode: Commit-Level DAG
Backend Limitations
The current Rust backend provides branch relationship data but lacks commit-level capabilities: What it DOES:- Lists all branches
- Gets branch HEAD SHA
- Detects ahead/behind status
- Finds merge base
- Branch-to-branch connections
- Commit iteration
- Parent SHA retrieval
- Lane assignment logic
- DAG traversal
- Commit-level connections
Frontend Rendering
Current SVG Structure
Gap Analysis for THE CENTER
Transparency Gaps
Feedback Loop Impairment
Feedback Loop Efficiency
Performance Considerations
Current Performance Profile
Upgrade Performance Implications
Commit-level visualization will increase data volume significantly:Technology Stack
The current implementation uses:| Layer | Technology | Purpose |
|---|---|---|
| Backend | Rust + git2-rs | Git operations |
| IPC | Tauri invoke/emit | Frontend-backend communication |
| Frontend | TypeScript | UI logic |
| Rendering | SVG DOM | Vector graphics |
| Styling | CSS | Visual styling |
Summary
Current State
- Exists as: git-branch-diagram-viewer.ts (2,331 lines) + Rust backend (360 lines)
- Shows: Branch-level relationships only
- Hides: Individual commits, parent relationships, lane assignments
- Limits: THE CENTER’s Human ◈ AI feedback loop effectiveness
Gap Summary
| Aspect | Current | Required | Gap |
|---|---|---|---|
| Granularity | Branch-level | Commit-level | High |
| Parent tracking | None | Full DAG | Critical |
| Visual positioning | Branch layout | Lane algorithm | High |
| Transparency | ~3% of AI work visible | ~80% target | Critical |
Upgrade Necessity
The upgrade is necessary because:- THE CENTER requires complete transparency
- Human ◈ AI feedback loop needs granular visibility
- Current implementation hides 97% of commit-level information
- Monokinetics demands Human and AI operate as ONE motion
Next: Upgrade Requirements
Documenting all requirements for the Git Commit Graph upgrade