Skip to content

RepoDNA v0.9.0 — Live Architecture Engine

Choose a tag to compare

@Cihanak1 Cihanak1 released this 29 Nov 16:57
· 160 commits to main since this release
a02d504

RepoDNA v0.9.0 — Live Architecture Engine

RepoDNA v0.9.0 introduces the Live Architecture Engine — an opt-in, local-first, loopback-only, zero-execution real-time architecture monitoring engine built directly on top of the v0.8.0 Performance Engine.

Highlights

  • Cross-Platform Native Watching + Resilient Fallback (repodna.live):
    • Uses watchfiles (Rust notify: ReadDirectoryChangesW on Windows, inotify on Linux, FSEvents on macOS) with an automatic pure-Python polling fallback and bounded exponential backoff recovery.
    • Strict repository boundary, symlink, Windows NTFS junction (os.path.isjunction), traversal, IDE atomic-save scratch, and self-event loop prevention.
    • Targeted .git metadata monitoring (.git/HEAD, .git/index, .git/packed-refs, .git/refs/heads/*, external Git worktree gitdirs) while suppressing .git/objects/* and .git/*.lock storms.
  • Authoritative Freshness & Single-In-Flight Scheduling:
    • Coalesces burst saves via debounce (300 ms) + anti-starvation ceiling (2,000 ms) and verifies disk truth via parallel SHA-256 file manifests, ordered resolver/workspace config hashes, and read-only Git status.
    • Rejects superseded in-flight runs (analysis_superseded) cleanly so outdated snapshots are never published as VERIFIED_CURRENT.
    • Bounded queue overflow triggers explicit reconciliation_required recovery rather than silently dropping edits.
  • Typed SSE Event Protocol & Loopback Security (repodna.api.app):
    • Versioned Server-Sent Events (GET /api/live/sessions/{id}/events) with <generation>:<sequence> IDs, bounded replay ring (500), Last-Event-ID replay, explicit stream_reset on replay gap or slow-subscriber overflow, and recursive raw-source/secret redaction (64 KB payload cap).
    • FastAPI @asynccontextmanager lifespan shutdown and loopback_security_middleware blocking DNS rebinding (403 FORBIDDEN_HOST) and untrusted browser Origin CSRF (403 FORBIDDEN_ORIGIN), replacing wildcard CORS with an explicit loopback regex.
  • CLI Watch & 27 Read-Only MCP Tools:
    • repodna watch [target] --format {table,jsonl} with clean stdout JSONL and graceful Ctrl+C teardown.
    • 4 new cross-process read-only MCP tools (repodna_live_status, repodna_live_changes, repodna_live_alerts, repodna_live_context) backed by PID- and heartbeat-verified SQLite WAL persistence (repodna_live_state.sqlite3), preserving all 23 existing MCP tools.
  • Live Architecture Workstation UI & Stable Incremental Graph:
    • Dedicated Live tab with Simple/Advanced progressive disclosure, honest Freshness & Connection badges, Pause/Resume/Reconcile/Stop controls, Live Working-Tree Timeline, deduplicated Live Guardian Alerts with honest Acknowledge (is_underlying_issue_present=true) and coverage-drop guards (unknown_coverage_drop), and full TR/EN localization + WCAG 2.2 AA accessibility.
    • Incremental React Flow graph updates preserve existing node positions and user viewport/zoom without jarring fitView resets.

Verified Empirical Benchmarks (docs/live/BENCHMARKS.md)

  • 5-Minute Native Idle: 0.1094% of 1 logical core (0.33 s CPU / 300 s), +0.07 MB RSS, 0 leaked threads/handles.
  • 30-Minute Continuous Soak (60 real edits): 60/60 converged (0 failures), 0.8281% avg CPU, +2.67 MB bounded RSS plateau, 1 -> 3 -> 1 threads, 0 handle leaks.
  • 7-Repository End-to-End Save-to-SSE P95 Latency:
    • Small/medium repos (psf/requests, go-chi/chi, pallets/flask, BurntSushi/ripgrep, expressjs/express, RepoDNA): 738.5–915.0 ms
    • Large TypeScript monorepo (colinhacks/zod, 632 files / 124,255 LOC): 1,726.9 ms

Release Checksums (SHA-256)

44a7606c5ca05c6aab9baf9cd02e099f42c81e75dfc9e1684c1a6ce89da45cbb  repodna-0.9.0-py3-none-any.whl
b77ad58cd1c0d6f65134128aa642a85479339b60f743dc66aea0318dc981bae7  repodna-0.9.0.tar.gz