feat(enrichment): PR history analyzer + engine context passthrough#1849
Conversation
Add REES history analyzer for author track record and linked-issue alignment. Pass author, body, and installation token through enrichment-wire so webhook reviews can run historical analysis during the AI review path. Fixes JSONbored#1697 Co-authored-by: Cursor <cursoragent@cursor.com>
Exercise null author/body, missing installation id, allowlist-off path, and installation-token resolution in enrichment wiring tests. Fixes JSONbored#1697 Co-authored-by: Cursor <cursoragent@cursor.com>
… to REES Move history GitHub API calls into enrichment-prefetch.ts so installation tokens stay in the engine process. REES receives structured prefetch findings only; githubToken is removed from the enrich wire contract. Fixes JSONbored#1697 Co-authored-by: Cursor <cursoragent@cursor.com>
Fixes JSONbored#1697 Co-authored-by: Cursor <cursoragent@cursor.com>
Engine-side CODEOWNERS scan restores the prefetch contract without sending tokens to REES; expanded prefetch unit tests cover abort signals and branches. Co-authored-by: Cursor <cursoragent@cursor.com>
…n try Relocate engine-side CODEOWNERS fetch/match into src/review so vitest covers the patch; wrap prefetch in buildReviewEnrichment's fail-safe try. Co-authored-by: Cursor <cursoragent@cursor.com>
Rebase onto upstream's REES registry/history analyzer stack and keep the JSONbored#1697 engine context passthrough: PR body and author now POST to REES. Drop superseded engine-side prefetch modules in favor of upstream's opt-in REES_FORWARD_GITHUB_TOKEN wiring. Fixes JSONbored#1697 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-06-30 10:46:33 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 8 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
mainand resolve enrichment conflicts with upstream's REES registry + full history analyzer stackbodyandauthorthroughbuildReviewEnrichmentso REES history can parse linked issues and classify author contextbodyalongside existing opt-inREES_FORWARD_GITHUB_TOKENGitHub token forwardingFixes #1697
Supersedes #1701 (closed due to merge conflicts; conflicts resolved on this branch).
Validation
Test plan
org/repo#N) — REES history analyzermain