Skip to content

review: remove the legacy comment renderer (buildPublicPrIntelligenceComment) #6103

Description

@JSONbored

Follow-up to #6073 (closed as confirmed dead by the maintainer: no cloud/hosted deployment is running the review pipeline right now, so the legacy path is unreachable in production).

Scope

Remove buildPublicPrIntelligenceComment (packages/loopover-engine/src/signals/engine.ts, ~5,800 lines including its private helpers) and the LOOPOVER_REVIEW_UNIFIED_COMMENT / LOOPOVER_REVIEW_REPOS cutover-gate branch in src/queue/processors.ts that still selects between it and the converged renderer -- the converged renderer (renderUnifiedReviewComment / buildUnifiedCommentBody) becomes the only path, unconditionally.

Also remove/simplify anything ONLY needed to support the legacy/converged fork:

  • LOOPOVER_REVIEW_UNIFIED_COMMENT env flag + its checks (isUnifiedReviewCommentEnabled)
  • src/review/cutover-gate.ts (isConvergenceRepoAllowed / listConvergenceRepos) if nothing else reads LOOPOVER_REVIEW_REPOS for a real (non-legacy) purpose -- confirm before deleting, this flag may still gate other converged features independently
  • The <!-- gittensory-pr-panel:v1 --> legacy marker and its entry in markerAliases() (src/github/comments.ts) -- keep the alias only if any in-flight comment could still carry it, otherwise drop
  • buildMinimalInviteComment and any other legacy-only helper in engine.ts confirmed to have no other caller
  • The now-dead review.fields filtering duplicate in engine.ts (packages/loopover-engine/src/signals/engine.ts:4530-ish) -- unified-comment-bridge.ts's copy becomes the only one

Before removing

Grep every call site of each function/flag being deleted (not just its own file) -- this repo has ~75 test files referencing focus-manifest/engine.ts machinery, and some legacy-path tests may need deletion rather than updating. Run the full local gate (npm run test:ci) after, not just the directly-affected test files, given the size of the deletion.

Why not done as part of #6065

This is a large (~5,800-line), higher-blast-radius deletion warranting its own scoped PR and explicit review, separate from the comment-redesign epic's incremental UX changes.

Metadata

Metadata

Assignees

Labels

maintainer-onlyOwner-only work — yields no Gittensor points.orbGittensory Orb related - maintainer self-hosting analytics.roadmapOn the Wave-2 agent-layer roadmap board (project 9)

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions