I let httpx's departed reviewers come back for a day. They had notes.
说明与用途
Ancestors 让 httpx 的旧审阅者为新 PR 提供指导,只引用超过一年且至少有两位审阅者支持的评论。
问题
Long‑lived open‑source projects lose the context of past reviewers, making it hard to apply historical feedback to new pull requests.
结果
Ancestors provides a daily review of open PRs, citing relevant historical comments and marking silent hunks, improving review quality and preserving legacy knowledge.
工作流
- 1. Ingest all review comments via GitHub API and embed them with EmbeddingGemma.
- 2. Store embeddings in a LibSQL vector index and build a vector store.
- 3. Sample comments by year, distil a charter of recurring expectations using Gemma, and apply the two‑witness rule.
- 4. For each hunk in a new PR, retrieve the most relevant ancestor comments and the recent commit history.
- 5. Run a Mastra agent that outputs a note, ok, or silent verdict with citations, enforcing that every cited comment is retrievable.
- 6. Use Temporal to orchestrate reviewPr activities for each open PR, persisting state across worker restarts.
证据
Ancestors ingests that history, distils what the reviewers kept asking for, and then reviews a new diff in their collective voice.
Only the dead may speak. A comment counts as an ancestor only if it is more than twelve months old, and the PR under review is never allowed to testify about itself.
No citation, no verdict. Every note must cite a comment id that was actually retrieved for that hunk.
Two witnesses or it does not count. A "house rule" in the charter survives only if two different comments back it.
Per hunk on this CPU: 25–40 seconds. A four‑hunk PR: about two minutes.
- 记录日期: 2026-11-02T05:14:26.749Z