Repository navigation
RepoDNA v0.9.0 — Live Architecture Engine
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(Rustnotify:ReadDirectoryChangesWon Windows,inotifyon Linux,FSEventson 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
.gitmetadata monitoring (.git/HEAD,.git/index,.git/packed-refs,.git/refs/heads/*, external Git worktree gitdirs) while suppressing.git/objects/*and.git/*.lockstorms.
- Uses
- 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 asVERIFIED_CURRENT. - Bounded queue overflow triggers explicit
reconciliation_requiredrecovery rather than silently dropping edits.
- Coalesces burst saves via debounce (
- 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-IDreplay, explicitstream_reseton replay gap or slow-subscriber overflow, and recursive raw-source/secret redaction (64 KBpayload cap). - FastAPI
@asynccontextmanagerlifespan shutdown andloopback_security_middlewareblocking DNS rebinding (403 FORBIDDEN_HOST) and untrusted browserOriginCSRF (403 FORBIDDEN_ORIGIN), replacing wildcard CORS with an explicit loopback regex.
- Versioned Server-Sent Events (
- CLI Watch & 27 Read-Only MCP Tools:
repodna watch [target] --format {table,jsonl}with clean stdout JSONL and gracefulCtrl+Cteardown.- 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
fitViewresets.
- 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 (
Verified Empirical Benchmarks (docs/live/BENCHMARKS.md)
- 5-Minute Native Idle:
0.1094%of 1 logical core (0.33 sCPU /300 s),+0.07 MBRSS,0leaked threads/handles. - 30-Minute Continuous Soak (60 real edits):
60/60converged (0failures),0.8281%avg CPU,+2.67 MBbounded RSS plateau,1 -> 3 -> 1threads,0handle 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
- Small/medium repos (
Release Checksums (SHA-256)
44a7606c5ca05c6aab9baf9cd02e099f42c81e75dfc9e1684c1a6ce89da45cbb repodna-0.9.0-py3-none-any.whl
b77ad58cd1c0d6f65134128aa642a85479339b60f743dc66aea0318dc981bae7 repodna-0.9.0.tar.gz