RepoRevenant — Forgotten Code Deserves a Second Life
说明与用途
RepoRevenant 通过自动化取证分析、AI 驱动的修复合成、人类批准和经验验证,恢复遗留 Python 项目,并生成文档化的复活证书。
问题
Abandoned Python repositories often fail on modern runtimes due to removed modules, API drift, and syntax changes, leaving valuable code inaccessible.
结果
RepoRevenant successfully resurrects legacy Python projects by automating forensic analysis, AI‑driven repair synthesis, human approval, and empirical verification, producing a documented Resurrection Certificate.
工作流
- Validate HTTPS Git URL with SSRF protection
- Parse requirements and discover test suites
- Run deterministic AST pass to flag PEP 594 and API drift
- Execute baseline pytest in isolated sandbox
- Send AST evidence to local LLM (llama3:8b, mistral:7b, codellama:7b) for root‑cause hypotheses and repair synthesis
- Validate AI‑generated diff with ast.parse(), create rollback backup, apply with human approval
- Run pytest again to verify exit code 0
- Export .md certificate, .json telemetry, and .patch diff
证据
RepoRevenant inspects repository structure, extracts empirical Abstract Syntax Tree (AST) evidence, isolates the code in clean temporary sandboxes, executes baseline test suites to document exact pre‑patch failures, synthesizes targeted repairs using replaceable open‑weight AI models, and proves the resurrection by verifying post‑patch test suites pass with exit code 0.
The theme "Ghost in the Machine" maps directly: the ghost is the dormant intelligence trapped inside an abandoned codebase. RepoRevenant is the medium that calls it back.
- 记录日期: 2026-11-02T02:28:47.762Z