Repository navigation
Releases
RepoDNA v1.0.2 — MCP Registry & Distribution Compatibility
Packaging and distribution compatibility patch release for RepoDNA (Python distribution repodna-engine v1.0.2).
Scope note: This is strictly a packaging, distribution, and official MCP Registry compatibility update for the Python
repodna-enginepackage. The VS Code Marketplace extension (Cihanak1.repodna-vscode) remains atv1.0.1with full compatibility. Existingv1.0.1release artifacts and tags are unchanged.
What Changed
- Official MCP Registry Metadata (
server.json): Added rootserver.jsonconforming to official schema2025-12-11/server.schema.jsonfor namespaceio.github.cihanak1/repodna(stdiotransport,uvxruntime, optional fail-closed--allowed-root/REPODNA_ALLOWED_ROOTSandREPODNA_MCP_TOOL_PROFILE). - PyPI Package Ownership Verification Marker (
README.md): Embedded<!-- mcp-name: io.github.cihanak1/repodna -->into the package long description (METADATAandPKG-INFO) for official MCP Registry verification. - Direct
uvx& Backwards-Compatible CLI Alias (pyproject.toml): Preservedrepodna = "repodna.cli.main:main"and addedrepodna-engine = "repodna.cli.main:main"so MCP clients can invokeuvx repodna-engine==1.0.2 mcpdirectly without--from.
Verification Summary
- Built from verified
maincommit271786186e1dbd704216ddf900afe86e370bcfafwith the compiled production React Workstation UI bundled inside. twine check --strict: PASSED for wheel and sdist.- Clean isolated Wheel & SDist installations verified:
repodna --version,repodna-engine --version,repodna doctor, bundled WebUI assets, livestdioMCPinitialize, 47 read-only tools, representative tool execution, and fail-closed authorized-root isolation.
Checksums (SHA256SUMS.txt)
482058833080151e893fb6897041ebb368a2e06c0b63d3be818f2dde4e9e4fba repodna_engine-1.0.2-py3-none-any.whl
70a9e5fb6a0694413563812c9d8b2181d99a7a653a4436bb564ea3b574a04bea repodna_engine-1.0.2.tar.gz
1fc68d68c2bba910ea9c9dcd6a4942907de22694b0bc7de97a4dedbf62ee4d40 repodna-1.0.2-cyclonedx-sbom.json
RepoDNA v1.0.1 — Security & Reliability Update
RepoDNA v1.0.1 — Security & Reliability Update
Recommended security and reliability release closing all 15 security findings (SEC-01–SEC-15) and 4 correctness findings (COR-01–COR-04) identified during independent post-v1.0.0 verification.
Upgrade Guidance for v1.0.0 Users
All v1.0.0 users should upgrade to v1.0.1:
pip install --upgrade https://github.com/Cihanak1/RepoDNA/releases/download/v1.0.1/repodna_engine-1.0.1-py3-none-any.whl
repodna --version
repodna start --open-browser- Local API Authentication:
repodna startnow generates a per-launch cryptographicREPODNA_API_TOKENby default. The bundled same-origin WebUI bootstraps via a distinctHttpOnly; SameSite=Strictbrowser session cookie (never exposingREPODNA_API_TOKENin cookies or URLs). Automation clients calling/api/*directly should passAuthorization: Bearer <token>orX-RepoDNA-Token: <token>. - CLI Command Note: Use
repodna start --port 8000(replacing the erroneousrepodna servenote inv1.0.0). - Immutability: The
v1.0.0tag (65f02ba) and its release artifacts remain untouched for audit traceability.
Security & Reliability Highlights
- Workspace & MCP Authorization (
SEC-01,COR-01): Fail-closedauthorized_rootsenforcement across all 5 MCP workspace tools (allowed_roots) and all REST workspace routes (including cached freshness checks), plus canonical resolved root propagation toSymbolIndexer. - Contract & Historical Evidence Containment (
SEC-02,SEC-03): Symlink, containment, size, and binary guards on architecture contracts (safe_read_evidence_file); centralized sensitive-path blocking (.env*, private keys, credential files/dirs) on Git historical blobs. - Unified Secret Redaction & Bounded Expansion (
SEC-04,SEC-11,SEC-12): Centralizedredact_secrets_unified(full multiline PEM blocks, modern PAT/API keys, Bearer headers, DB URI credentials, quoted/unquoted assignments) across Brain, History, Legacy Context, Agent Context, REST, and MCP; boundedsafe_read_evidence_fileinProgressiveContextExpander. - Local API Auth, Host/Origin & VS Code Identity (
SEC-05,SEC-13,SEC-14): Per-launch session token, exact-origin validation, strictHostvalidation, HMAC-SHA256instance_proofhandshake verification andredirect: 'error'in VS Code extension,localResourceRoots: []in Webview, andrealpathSyncpath containment. - Bounded YAML, OpenAPI Containment, Live SQLite Recovery & Plugin ReDoS (
SEC-07–SEC-10): Alias-disabled bounded YAML loader across all untrusted repo YAML inputs, symlink/containment guards on OpenAPI discovery, non-blocking exclusive revalidate-quarantine-rebuild recovery inLiveStatePersistence, and structural linear-time regex validation. - Correctness, Cache Lifecycle & UI Stability (
COR-02–COR-04): Closed MCP/REST/Workspace snapshot freshness blind spots, integratedquality_reportsinto SQLite cache migration/clear/quota/eviction/stats, and fixed frontend/api/healthmount hydration race. - Supply Chain, SBOM & Distribution (
SEC-06,SEC-15): Transitive CycloneDX 1.5 SBOM (68components,42dependency nodes, includingwatchfilesand exactpackage-lock.jsonversions with RFC%40PURLs),0CVEs viapip-auditandnpm audit --omit=dev, SHA-pinned GitHub Actions, rootaction.ymlwithbranding:and self-contained install, and a 128×128 PNG VS Code extension icon.
Verification Summary
- Main Commit:
e44521187219146a9b82aba585eb710e8d820193(300commits, PR #15 standard merge) - CI Status: PR #15 (
46496911744) 8/8 PASS, Main CI 8/8 PASS - Independent Security Review: PASS (0 remaining Critical/High findings)
- Installed Wheel & SDist Full E2E + 20-Run Playwright: PASS (
20/20,0errors) - Genuine 60-Minute Live Soak: PASS (
3600.53s,50analyses,0failures,rss_max=48.2 MB,1,204SSE events) - Large Repo Stress: PASS (
504real,1,050synthetic,5,050synthetic files) - Held-Out AI Abstention:
91.67%File Recall@5,86.67%(13/15) negative-task abstention - External Registries (PyPI, VS Code Marketplace, Open VSX, GHCR, GitHub Marketplace):
NOT PUBLISHED(requires maintainer authorization)
Release Artifacts & SHA-256 Checksums
repodna_engine-1.0.1-py3-none-any.whl—94fdd6826624ca7174ea6633df4a8adb05ca63160015e67228d24e82f00c990crepodna_engine-1.0.1.tar.gz—e1da283a9ce3e3a701401f561c8724be950b3ac1ee4ba1bf2bdd2828a4858a6frepodna-1.0.1.vsix—8ecefa80438f4332262b2b79bde68cae5d2a4926323dad72d5291113902c6f4crepodna-1.0.1.cdx.json—8b7d8f788b0452c26d56cb1d45e3ff8b674ffa21b9f35b682f4025061158deedSHA256SUMS.txt
RepoDNA v1.0.0 — Architecture & Code Intelligence
RepoDNA v1.0.0 — Architecture & Code Intelligence
First production-hardened public release of RepoDNA — a local-first, evidence-based architecture, code quality, multi-repository, and AI agent intelligence platform.
Highlights
- Zero-Execution Static Analysis Engine: Multilingual AST extraction (Python, TypeScript/JavaScript, Go, Java, Rust) with SQLite content-hash incremental cache (
<1swarm analysis), architectural layer detection, dependency graph, cycle detection, and evidence-backed findings. - Architecture Governance & Quality: Architectural contracts (
repodna-contract.yml), PR Guardian with SARIF 2.1.0 output, Refactoring Advisor, complexity hotspots, clone detection, unused candidate detection, and test relationship mapping. - Live Architecture & Time Machine: Real-time local filesystem watch/diff/alert loop and Git commit snapshot evolution explorer.
- AI Agent Intelligence & MCP: 47 frozen read-only MCP JSON-RPC tools (
repodna mcp) for task-conditioned context packing, progressive expansion, preflight/postflight verification, and evidence inspection. - Multi-Repository Intelligence: Cross-repository workspace graph (
repodna-workspace.yml), OpenAPI/HTTP & package dependency edge detection, and cross-repo impact analysis — validated on real Pallets (markupsafe+jinja+flask, 402 files) and Encode (httpcore+httpx, 205 files) OSS stacks with1.0000precision/recall on declared package edges. - Professional Workstation UI: Unified React + Vite workstation bundled directly inside the Python wheel/sdist (
repodna serve), with Command Palette (Ctrl+K), keyboard shortcuts, Inspector Drawer, dark/light themes, EN/TR localization, and0Axe accessibility violations across Playwright E2E checks. - Developer Ecosystem: VS Code extension (
repodna-1.0.0.vsix, live-verified in ElectronCode.exe 1.145.2against loopback FastAPI), declarative YAML plugin system, Composite GitHub Action, and multi-stage non-root Docker runtime. - Production Hardening & Supply Chain: Threat model, security audit,
SECURITY.md, adversarial test suite (path traversal, symlink escape, malformed AST, secret redaction, SQLite cache corruption, MCP policy), CycloneDX 1.5 SBOM (repodna-1.0.0.cdx.json), and PyPI-ready distribution namerepodna-engine(preservingimport repodnaandrepodnaCLI).
Quick Install (from GitHub Release Assets)
# Python package (CLI + API + MCP + Bundled Web Workstation)
pip install https://github.com/Cihanak1/RepoDNA/releases/download/v1.0.0/repodna_engine-1.0.0-py3-none-any.whl
repodna --version
repodna serve --port 8000
# VS Code Extension
code --install-extension repodna-1.0.0.vsixDistribution Channel Status
| Channel | Status |
|---|---|
GitHub Release (v1.0.0) |
PUBLISHED |
PyPI (repodna-engine) |
Not published yet (requires maintainer Trusted Publisher setup) |
| VS Code Marketplace / Open VSX | Not published yet (requires maintainer publisher PAT) |
| GitHub Container Registry (GHCR) | Not published yet (Dockerfile verified in CI) |
Verification Summary
- Main Commit:
65f02ba52f33328b3639bd40c9a07afd8de93ccf(274commits, PR #14 standard merge) - CI Status: 8/8 PASS (Backend, Frontend, Playwright E2E, VS Code Extension, Ecosystem + Non-Root Docker, Linux/Windows/macOS Matrix)
- Test Suites: 365 passed (1 skipped) Backend Pytest, 56 passed Frontend Vitest, 9 passed VS Code Extension Vitest + live Electron Host workflow, 0 Ruff/Mypy/ESLint/Axe errors.
- Clean Install Verification: Isolated Wheel, SDist, and VSIX installs verified outside the workspace.
Release Artifacts & SHA-256 Checksums
repodna_engine-1.0.0-py3-none-any.whl—1f39ebddf35063fba0991b5402cd2256189092b7904757cf51fe26178a513d55repodna_engine-1.0.0.tar.gz—71d7a369dc81ead559c17d922eed72bb86b48c228fc7e21af11ece64eef5ada7repodna-1.0.0.vsix—470ecdc03fec0def70600c4225663c28c1ba64321a9636416bf926ccc75d6c3erepodna-1.0.0.cdx.json—e24a719d6bc3b06c62f8a3b5634cb7a132eac60c548a662642b7894fa84db3b1SHA256SUMS.txt
RepoDNA v0.14.0 — Professional Workstation
RepoDNA v0.14.0 — Professional Workstation
Unifies every RepoDNA capability into a coherent, keyboard-first, accessible developer workstation and closes carryover verification debt ahead of v1.0.0.
Highlights
- IDE-Inspired Docked Workstation Shell (
WorkstationActivityRail,WorkstationStatusBar): Organizes all capabilities into 7 coherent domains (Architecture, Code Intel, Findings, Changes, Agent, Workspaces, Reports) with Light/Dark/High-Contrast themes (tokens.css), reduced-motion support, TR/EN localization, and versioned corruption-safe layout persistence (LAYOUT_SCHEMA_VERSION = 2). - Unified Findings Investigation & Report Center (
UnifiedFindingsView,ReportCenterView): Bounded (25rows/page) architecture + code quality findings investigation table with direct graph navigation, plus unified deterministic JSON, HTML, SARIF 2.1.0, and Repository Passport exports. - Bundled Production WebUI inside the Python Wheel (
repodna/webui/): Official release wheels now bundle the compiled production React Workstation UI and serve it directly athttp://127.0.0.1:8000/viarepodna start(strict asset path containment). - Real VS Code Extension Host Verified: Genuine isolated Electron VS Code Extension Host (
1.145.2) activatedrepodna-dev.repodna-vscodeand verified all12registeredrepodna.*commands. - Real Interconnected Open-Source Multi-Repository Validation: Validated on
pallets/markupsafe@3.0.2+pallets/jinja@3.1.5+pallets/flask@3.1.0(402real files) with 1.0000 precision / 1.0000 recall,3/3warm incremental reuse, and0.053 mscross-repo impact (markupsafe -> jinja -> flask).
Release Artifacts & SHA-256 Checksums
repodna-0.14.0-py3-none-any.whl—c533ed35e6c5a8adc718c4016d4d3a552612cde69a4072cc9f61fc3523674bce(includes bundled production WebUI!)repodna-0.14.0.tar.gz—54a02995172fb71b66f9b68e3545eca375ecb0b8c527be8df1f231854dd55ee3repodna-0.14.0.vsix—bdcfcbc8ee2ba42b2e61adc063f4e48d118b69dc4e6aaed728735f15b30c6870SHA256SUMS.txt
Safe Installation & Distribution Status
- GitHub Release: PUBLISHED — install via
pip install repodna-0.14.0-py3-none-any.whl && repodna startand VS Code viacode --install-extension repodna-0.14.0.vsix. - PyPI: NOT PUBLISHED —
repodnaon PyPI is occupied by an unrelated project (github.com/repodna/repodna). Do NOT runpip install repodna. - VS Code Marketplace / Open VSX / GitHub Marketplace / GHCR: NOT PUBLISHED (no external publishing tokens in this environment).
RepoDNA v0.13.0 — Multi-Repository Intelligence
RepoDNA v0.13.0 — Multi-Repository Intelligence
Extends RepoDNA's local-first, zero-execution architecture, quality, and AI agent intelligence across multiple explicitly authorized local repositories via repodna-workspace.yml.
Highlights
- Canonical Repository Identity & Secure Workspace Manifests (
backend/repodna/workspace/identity.py,manifest.py): Canonical path hashing prevents same-basename repository collisions; blocks executable keys and duplicate aliases; marks missing repositories honestly asMISSING/INCOMPLETE/INCONCLUSIVE. - Multilingual Package Resolution & Version Constraints (
packages.py): Static metadata across Python, JS/TS, C#, Java, Go, Rust, and C/C++ with ecosystem-aware constraints andAMBIGUOUS_PROVIDERdetection. - Zero-Execution Static Service Catalog & SSRF-Safe OpenAPI 3.0/3.1 Contracts (
services.py,contracts.py,compatibility.py): Extracts static routes/specs, blocks remote$refSSRF and bounds circular$ref, and evaluates variance-aware structural compatibility (BREAKING,POTENTIALLY_BREAKING,NON_BREAKING,UNKNOWN). - Federated Incremental Orchestration, Topology, Impact & Policies (
federation.py,topology.py,impact.py,policies.py): Bounded concurrency, per-repository incremental reuse (9/10repos reused on single-repo edit in 10-repo benchmark), verified vs candidate edges/cycles, bounded hop impact propagation, and declarative workspace policies. - Workspace Agent Context, CLI, REST API, 47 Read-Only MCP Tools & Workstation UI: Adds
5new read-only workspace MCP tools preserving all42legacy tools (47total),repodna workspace ...CLI,/api/workspaces/*REST API,WorkspaceIntelligenceViewReact Workstation (TR/EN), VS Code multi-root client helpers (9/9tests), and GitHub Action optionalworkspace-manifestmode.
Release Artifacts & SHA-256 Checksums
repodna-0.13.0-py3-none-any.whl—b3fd16ab6eaf04bea38fa29d32f216e09ac93dd63563f84d0ee79c2688ae114crepodna-0.13.0.tar.gz—adb241d4f05596853b9e4606da033b18a95868bcbe7a9945e1eb853342122b03repodna-0.13.0.vsix—ce406cf67f64d3acdac4a352108d342b6a2205528b23079dc7272fa85e3a9768SHA256SUMS.txt
Safe Installation & Distribution Status
- GitHub Release: PUBLISHED — install Python wheel via
pip install repodna-0.13.0-py3-none-any.whland VS Code extension viacode --install-extension repodna-0.13.0.vsix. - PyPI: NOT PUBLISHED —
repodnaon PyPI is occupied by an unrelated project (github.com/repodna/repodna). Do NOT runpip install repodna. - VS Code Marketplace / Open VSX / GitHub Marketplace / GHCR: NOT PUBLISHED (no external publishing tokens in this environment).
RepoDNA v0.12.0 — Developer Ecosystem
RepoDNA v0.12.0 — Developer Ecosystem
Integrates RepoDNA's local-first, zero-execution architecture, quality, and AI agent intelligence into developers' daily environments.
Highlights
- Shared Ecosystem Protocol (1.0) & Expanded Doctor (
backend/repodna/ecosystem/):GET /api/ecosystem/handshake,GET /api/ecosystem/doctor, standardizedCLIExitCode(0–4), andrepodna doctor --format json. All 42 read-only MCP tools preserved. - Zero-Execution Declarative Plugin SDK (
backend/repodna/plugins/,sdk/,examples/plugins/): Pure YAML/JSON schema1.0, ReDoS guard, executable-key rejection, repo-boundary containment, bounded evaluation (8 rule kinds,0.925 msmedian overhead on 388 files), SHA-256 cache fingerprinting,repodna plugin ...CLI, and 4 validated example packs. - VS Code Extension (
extensions/vscode/):repodna-dev.repodna-vscodewithuntrustedWorkspaces.supported = "limited", loopback-only backend URL validation, 6 TreeViews, 12 commands, UTF-16 Unicode diagnostics, CSP-nonce-hardened Architecture Webview, Vitest security suite (7/7), and clean-profile verifiedrepodna-0.12.0.vsix. - Hardened Composite GitHub Action & Reusable Templates (
integrations/github-action/,examples/workflows/): Zero shell interpolation, strict Git ref validation, randomizedGITHUB_OUTPUTdelimiters, honest shallow-cloneINCONCLUSIVEreporting, validated SARIF 2.1.0 output, and 4 fork-safe workflow templates. - Hardened Multi-Stage Non-Root Docker Distribution (
docker/): Node 22 + Python 3.12 non-root (10001:10001) image withread_only: true,/workspace:ro,cap_drop: ALL, and127.0.0.1:8000:8000loopback binding (verified live in GitHub Actionsubuntu-latestCI).
Release Artifacts & SHA-256 Checksums
repodna-0.12.0-py3-none-any.whl—b33811934c91a36dfd5a22a076e5d5bad3877932e755ea2d9d605d393d9e1a15repodna-0.12.0.tar.gz—4b75f3cd81e5cc047c0c053185f1004b68faeaf56e9a01abce956945f36cadferepodna-0.12.0.vsix—8b513f85b0f167aac1bb510e21f96b5c494cd2ac64a7a9ff0393d93065179632SHA256SUMS.txt
Honest Distribution Channel Status
- GitHub Release: PUBLISHED
- PyPI: NOT PUBLISHED (package name
repodnais occupied on PyPI by unrelated projectgithub.com/repodna/repodna; OIDC Trusted Publishing workflow ready in.github/workflows/publish-release.yml) - VS Code Marketplace / Open VSX / GitHub Actions Marketplace / GHCR: NOT PUBLISHED (no external publishing tokens in this environment; installable VSIX and Action path
Cihanak1/RepoDNA/integrations/github-action@v0.12.0provided)
RepoDNA v0.11.0 — AI Agent Intelligence
RepoDNA v0.11.0 — AI Agent Intelligence
Deterministic, local-first, read-only, zero-execution repository intelligence infrastructure for AI coding agents (Antigravity, Codex, and standard MCP clients).
Highlights
- Hybrid Task Localization (
epodna.agent.task,
anking, localization): Bilingual EN/TR deterministic task normalization, identifier-aware BM25, bounded task-seeded Personalized PageRank (verified edges > candidate edges, hub damping, misleading-comment guard, honest abstention). - 6-Mode Repository Map & Token-Budgeted Context Compiler (
epodna.agent.repo_map, context, oken_budget): Signature-first maps, content-addressable ContextBlocks, strict exact vs estimated tokenizer disclosure (10% safety margin), final payload verification, and HMAC-signed repository+snapshot-bound cursors. - Progressive Expansion & Acknowledged Delta Packs (
epodna.agent.expansion, deltas): 8 expansion targets + explicit known_block_ids delta packs with safe ull_fallback and verified reconstruction equivalence (-95.5% repeated payload tokens on unchanged follow-ups). - Change Preflight, Read-Only Patch Intelligence & Postflight (
epodna.agent.preflight, patch, postflight): Explicitly labeled is_hypothetical=true preflight risks, fail-closed in-memory unified diff projection (never mutates disk), and static snapshot-backed postflight verification (PASS/WARNING/FAIL/INCONCLUSIVE) with coverage-loss guard. - 42 Read-Only MCP Tools & Opt-In Tool Profiles: Preserves all 34 legacy tools + 8 new v0.11.0 tools (ull default); --tool-profile minimal (9 tools) cuts ools/list metadata by 77.0%.
- Agent Intelligence Workstation UI: 7-section Workstation (AgentIntelligenceWorkstationView.tsx), TR/EN localization, WCAG 2.2 AA verified via real-browser Playwright E2E across 5 viewports.
Verified Benchmarks (11 Repositories, 104 Tasks)
- Held-Out Split (52 tasks): 92.68% File Recall@5 (+3.66 pp vs v0.10.0), 95.24% Symbol Recall@5,
RepoDNA v0.10.0 — Deep Code Intelligence
RepoDNA v0.10.0 — Deep Code Intelligence
Highlights
- 9-Language Tree-sitter AST & Safe Metadata Readers: Added MIT-licensed
tree-sitter-c-sharp,tree-sitter-java,tree-sitter-c, andtree-sitter-cppgrammars alongside Python, TypeScript, JavaScript, Go, and Rust, plus XXE-safe / path-bounded read-only readers for.csproj,pom.xml,build.gradle, andcompile_commands.json. - Deep Code Intelligence Quality Engines (
repodna.quality):- Iterative depth-capped Complexity Engine (cyclomatic, nesting-weighted, max nesting depth, line-level
ComplexityContributor; returnsNonefor unsupported languages). - Bounded Winnowing Type-1 / Type-2 Clone Detector with exact normalized token verification and
incomplete_coveragedisclosure. - Conservative Unused Code Candidates protecting public APIs, overrides, framework/DI annotations, and WinForms
Control_Eventhandlers. - Static Test Relationship Mapping across 9 languages / 8 test ecosystems (explicitly disclosing it is NOT runtime code coverage).
- AST Security Signals (
QUAL-008..QUAL-010) ignoring comments/strings with strict[REDACTED]credential masking. - Configurable Rule Engine (
.repodna/quality.yml,ruleset_fingerprintcache invalidation, line-movement-resistantqf_<hash>IDs, explicitSUPPRESSEDstatus), explainable Technical Debt Index, Symbol Impact with coverage-loss guard, and SARIF 2.1.0 export.
- Iterative depth-capped Complexity Engine (cyclomatic, nesting-weighted, max nesting depth, line-level
- SQLite WAL Cache, Live Quality Freshness, API, CLI, 34-Tool MCP & Web UI:
- Ruleset-fingerprinted
quality_reportsSQLite WAL cache table and independentquality_freshnessin Live sessions. - Paginated REST endpoints, 5 CLI commands (
quality,complexity,duplicates,unused,test-map), 7 new read-only MCP tools (34total), and full TR/EN WCAG 2.2 AA Code Quality Workstation UI.
- Ruleset-fingerprinted
- Verification:
319 passed, 1 skippedbackend pytest,ruff=0,mypy=0(150 files),48/48Vitest, Chromium + Edge Playwright E2E (0Axe violations), 11-repository OSS benchmarks (60x–306xwarm speedup,322.78 MBpeak RSS), and 6/6 3-OS GitHub Actions CI green.
Release Artifacts (SHA-256)
16164fdc5811fe817f57803c14a4c50e3a35cfc48770f35e84dc2cf7bb49a9fd repodna-0.10.0-py3-none-any.whl
703918919cc0aa9319d815c244065e66e166a6870697443ec00596ecc99ac38e repodna-0.10.0.tar.gz
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
RepoDNA v0.8.0 — Performance Engine
RepoDNA v0.8.0 — Performance Engine
RepoDNA v0.8.0 introduces a persistent, security-hardened Performance Engine featuring a multi-layer SQLite WAL content-addressable cache, incremental dependency-closure analysis, bounded parallelism, and large-graph UI optimizations — preserving 100% deterministic semantic equivalence with clean full scans.
Highlights
1. Persistent SQLite WAL Content-Addressable Cache (repodna.performance.cache)
- Schema v2 & Zero Repo Pollution: Stored strictly outside analyzed repositories (configurable via
REPODNA_CACHE_DIR), using pure JSON + bounded streamingzlibdecompression + SHA-256 payload verification (zeropickle). - Three Cache Layers:
- Layer-1A (
file_artifacts): Per-file AST parse and import-extraction cache. - Layer-1B (
brain_artifacts): DeepSymbolIndexersymbol & cross-reference extraction cache with Pydantic v2 RustTypeAdapterhydration. - Layer-2 (
repo_snapshots): Full repository snapshot cache for sub-second warm scans.
- Layer-1A (
- Cross-Process RW Lock & Active WAL Reader Safety:
- Coordinated shared/exclusive cross-process advisory locking (
fcntl.flockon POSIX, Win32kernel32.LockFileExon Windows). All normal cache operations hold a shared lock (LOCK_SH); recovery requires a non-blocking exclusive lock (LOCK_EX | LOCK_NB) held continuously across probe → unlink → schema re-init to eliminate TOCTOU races. - Strict SQLite error classification distinguishes genuine corruption (
SQLITE_CORRUPT,SQLITE_NOTADB) from transient lock contention / operational errors (SQLITE_BUSY,SQLITE_LOCKED,SQLITE_FULL,SQLITE_READONLY,SQLITE_IOERR,SQLITE_CANTOPEN). - Before any destructive recovery, an exclusive WAL probe (
PRAGMA wal_checkpoint(TRUNCATE)+PRAGMA locking_mode = EXCLUSIVE+BEGIN EXCLUSIVE+PRAGMA quick_check(1)) verifies no active external uncoordinated WAL readers exist — degrading safely to non-destructive fallback when busy.
- Coordinated shared/exclusive cross-process advisory locking (
- Physical + Logical 512 MB Quota: Enforces LRU eviction against both physical SQLite DB + WAL + SHM disk usage and logical compressed payload bytes, with bounded WAL checkpointing and controlled compaction.
2. Incremental Analysis Engine & Freshness Binding (repodna.performance.incremental, identity)
- Content SHA-256 manifest hashing paired with order-preserving resolver alias fingerprinting and hidden/workspace config hashing (
.repodna/architecture.yml,.gitignore,.repodnaignore,.mailmap,tsconfig.json,jsconfig.json,go.mod,pyproject.toml,package.json). - Single-call
git status --porcelain=v2 --branchfreshness binding guarantees dirty working trees, untracked files, and branch/HEAD switches never return stale snapshots. - Transitive reverse-dependency closure recomputes only affected modules, falling back conservatively to full analysis with explicit machine-readable
FallbackReasontelemetry when global invariants change.
3. Algorithmic Speedups & Bounded Parallelism
- Eliminated
$O(R \times F)$ linearPath.stemscans inrepodna.brainvia pre-built$O(1)$ stem indexes and memoized specifier resolution. - Integer-indexed
GraphIndexadjacency structures inrepodna.graph.enginefor Tarjan SCC, weakly connected components, and Johnson cycle enumeration. - Empirically calibrated
ThreadPoolExecutorI/O + hashing and threshold-gatedProcessPoolExecutorcoarse batching (--workers auto).
4. API, CLI, MCP & Workstation UI Integration
- FastAPI:
GET /api/cache/stats,POST /api/cache/clear,GET /api/analyses/{analysis_id}/performance, plus in-flight duplicate scan coalescing and liveScanProgresscache/reused/reparsed telemetry. - CLI:
repodna analyze --mode {auto,incremental,full} --no-cache --workers N,repodna cache stats|clear, andrepodna performance report. - MCP: Exposes
snapshot_freshnessandpersistent_cache_hitwhile preserving all 23 MCP tools and strict stdout cleanliness. - Workstation UI: Simple-mode latency/mode pill, Advanced-mode Performance Engine diagnostics card, Guardrails & Performance Cache controls modal (TR/EN localized), separated React Flow base layout vs selection styling, honest compact-mode edge truncation disclosure, and CSS
content-visibility: autocontainment.
Verified 7-Repository Benchmark Results (Post-Hardening)
Measured unmocked on Windows 11 (10.0.26300), Python 3.12.10, 16 logical CPUs, 32 GB RAM with exact commit SHA parity against v0.7.0 baseline (benchmarks/run_v08_benchmarks.py, 49/49 incremental & recovery semantic equivalence checks passed):
| Repository | Language | Files / LOC | v0.7.0 E2E | v0.8.0 Cold E2E (--no-cache) |
Cold Speedup | v0.8.0 Warm E2E (Cached) | Warm Speedup | Warm Core Snapshot |
|---|---|---|---|---|---|---|---|---|
colinhacks/zod |
TypeScript | 641 / 124,857 | 42,798.0 ms |
3,186.3 ms |
13.43× | 1,177.8 ms |
36.34× | 377.9 ms |
expressjs/express |
JavaScript | 194 / 20,640 | 3,357.2 ms |
797.1 ms |
4.21× | 327.5 ms |
10.25× | 153.3 ms |
BurntSushi/ripgrep |
Rust | 221 / 59,537 | 2,948.3 ms |
1,156.7 ms |
2.55× | 323.8 ms |
9.11× | 189.4 ms |
RepoDNA@v0.7.0 |
Python/TS | 197 / 43,354 | 3,049.0 ms |
1,477.9 ms |
2.06× | 451.2 ms |
6.76× | 228.4 ms |
go-chi/chi |
Go | 110 / 10,977 | 1,339.7 ms |
445.6 ms |
3.01× | 193.1 ms |
6.94× | 119.6 ms |
psf/requests |
Python | 123 / 14,660 | 1,012.1 ms |
561.0 ms |
1.80× | 248.2 ms |
4.08× | 140.6 ms |
pallets/flask |
Python | 225 / 25,359 | 1,518.9 ms |
766.8 ms |
1.98× | 371.2 ms |
4.09× | 172.3 ms |
Verification & Release Gates
- Merge Commit (
main):e14c0b703d90d46cd1ae8ecb0d47375da3f96920(PR #7 merged via standard merge commit) - Post-Merge CI (
main): GitHub Actions Run #46208270533 — 6 / 6 jobs passed:Backend (Python 3.12 — Ruff, Mypy, Pytest)— PASSFrontend (TypeScript, Vitest, Vite Build)— PASSPerformance Engine Cross-Platform (ubuntu-latest)— PASSPerformance Engine Cross-Platform (macos-latest)— PASSPerformance Engine Cross-Platform (windows-latest)— PASSPlaywright E2E (Chromium — Live Intelligence & Workstation)— PASS
- Clean Virtualenv Verification: Both
repodna-0.8.0-py3-none-any.whlandrepodna-0.8.0.tar.gzverified in isolated Python 3.12 virtual environments (repodna --version == 0.8.0,repodna cache statsschemav2,repodna analyze, andRepoDNAMCPServerregistering 23 tools).
Distribution Artifacts & SHA-256 Checksums
| File | Size | SHA-256 |
|---|---|---|
repodna-0.8.0-py3-none-any.whl |
390,979 bytes |
d4ede0b447fa4efa04a2f651adf1494a9f5253ce7df679e11f8d6607784f11f7 |
repodna-0.8.0.tar.gz |
369,716 bytes |
f1f1e51ab24e60323d4bcea956bfbe558262959b323206e822fca3d6fbb3f991 |
d4ede0b447fa4efa04a2f651adf1494a9f5253ce7df679e11f8d6607784f11f7 repodna-0.8.0-py3-none-any.whl
f1f1e51ab24e60323d4bcea956bfbe558262959b323206e822fca3d6fbb3f991 repodna-0.8.0.tar.gz