fix(orb): correct two false 'private to this file' location comments - #8707
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
review-evasion.ts's header claimed ReopenRecloseOutcome is private to the file, but it's exported and consumed by processors.ts; and linked-issue-label-propagation-fetch.ts misattributed hasMaintainerOrOwnerPermission to processors.ts when it lives in review-evasion.ts. Both comments corrected; no behavioral change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8707 +/- ##
==========================================
+ Coverage 90.56% 90.63% +0.07%
==========================================
Files 96 98 +2
Lines 22490 22815 +325
Branches 3884 4024 +140
==========================================
+ Hits 20367 20678 +311
- Misses 1945 1948 +3
- Partials 178 189 +11
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-26 00:03:25 UTC
Review summary Nits — 3 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 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 LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Fixes #8650
Root cause
Two module comments make checkable, false location claims:
src/queue/review-evasion.ts's header listedReopenRecloseOutcomeamong names "private to this file, since none of them had any caller outside this cluster." Butexport type ReopenRecloseOutcome(line 333) is imported bysrc/queue/processors.ts:403and consumed atprocessors.ts:6175. Every other name in that parenthetical is correctly unexported — only this one broke the stated invariant, so a future contributor reshaping the type could reasonably skip the cross-file impact checkprocessors.tsactually requires.src/review/linked-issue-label-propagation-fetch.ts:44said its local copy "MirrorshasMaintainerOrOwnerPermissioninsrc/queue/processors.ts" — but that function lives insrc/queue/review-evasion.ts:553(unexported), notprocessors.ts.Fix
ReopenRecloseOutcomefromreview-evasion.ts's "private to this file" list and added a note that it is exported and consumed byprocessors.ts, so reshaping it needs a cross-file impact check there.linked-issue-label-propagation-fetch.tscomment to namereview-evasion.tsas the real location.Both are comment-only; no behavioral change.
Verification of the corrected claims
Coverage
Per the issue: a doc/comment-accuracy fix with no behavioral change and no new runtime branch, so no test is required. The diff adds no coverable source lines, so
codecov/patchis not affected. Both changed files are imported by existingtest/**suites (e.g.agent-action-executor.test.ts,linked-issue-label-propagation-fetch.test.ts), so the scoped CI run still exercisessrc/**.Validation
npm run typecheckclean; branch cut from currentmain;git diff --checkclean