[gemma-4-multimodal] Multimodal Documentation Synthesis #1488

Open
Rockachopa wants to merge 1 commits from gemma4-worker-20260409-105326-1483 into main
Owner

Architecture Drift Detector

Closes: #1483

Summary

Adds a tool to detect drift between architecture diagrams and the actual codebase, using multimodal vision analysis on diagrams and code scanning on the source tree.

What's Added

scripts/doc_drift_detector.py

  • ArchitectureDriftDetector class — scans codebase for components
  • Supports Python, JavaScript/TypeScript, YAML, and shell scripts
  • Extracts component names, imports, and lines of code
  • Vision analysis prompt generation for diagram parsing
  • Drift detection comparing diagram components against code
  • Confidence scoring based on match rate
  • JSON and human-readable output modes

Usage

# Analyze a diagram and cross-reference with code
python scripts/doc_drift_detector.py --diagram docs/architecture.png --src src/

# Generate codebase-only report
python scripts/doc_drift_detector.py --report

# JSON output for CI integration
python scripts/doc_drift_detector.py --report --json
## Architecture Drift Detector **Closes:** #1483 ### Summary Adds a tool to detect drift between architecture diagrams and the actual codebase, using multimodal vision analysis on diagrams and code scanning on the source tree. ### What's Added **`scripts/doc_drift_detector.py`** - `ArchitectureDriftDetector` class — scans codebase for components - Supports Python, JavaScript/TypeScript, YAML, and shell scripts - Extracts component names, imports, and lines of code - Vision analysis prompt generation for diagram parsing - Drift detection comparing diagram components against code - Confidence scoring based on match rate - JSON and human-readable output modes ### Usage ```bash # Analyze a diagram and cross-reference with code python scripts/doc_drift_detector.py --diagram docs/architecture.png --src src/ # Generate codebase-only report python scripts/doc_drift_detector.py --report # JSON output for CI integration python scripts/doc_drift_detector.py --report --json ```
Rockachopa added 1 commit 2026-04-09 14:53:45 +00:00
feat: add architecture drift detector for multimodal doc synthesis
Some checks are pending
Tests / lint (pull_request) Waiting to run
Tests / test (pull_request) Blocked by required conditions
909bd0ec0d
Cross-references architecture diagrams with codebase to find drift:
- Scans Python, JS/TS, YAML, shell scripts
- Extracts component names, imports, LOC
- Compares diagram components against code
- Generates drift reports with confidence scoring
- Vision analysis prompts for diagram parsing

Relates to #1483
Some checks are pending
Tests / lint (pull_request) Waiting to run
Tests / test (pull_request) Blocked by required conditions
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin gemma4-worker-20260409-105326-1483:gemma4-worker-20260409-105326-1483
git checkout gemma4-worker-20260409-105326-1483
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1488