fix(signals): scope cross-repo PR pressure by isInstalled, not isRegistered - #5698
Conversation
…stered buildObservedPullRequestScenarios (local-branch.ts) filtered cross-repo open-PR pressure to subnet-registered repos only. This is generic PR-hygiene scoping with no gittensor-subnet economics involved, so an installed-but-not-subnet-registered repo's own open PRs were silently excluded whenever the contributor also touched an unrelated registered repo, and a registered-but-not-installed repo's PRs were wrongly pulled in. Found via the epic #5016 isRegistered/isInstalled audit. Advances #5016
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5698 +/- ##
=======================================
Coverage 95.02% 95.02%
=======================================
Files 577 577
Lines 45978 45978
Branches 14724 14724
=======================================
Hits 43689 43689
Misses 1530 1530
Partials 759 759
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-14 05:35:22 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 4 non-blocking
Concerns raised — review before merging
📋 Copy for AI agents — paste into your coding agent
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory 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://gittensory.aethereal.dev/docs/gittensory-commands 🟩 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.
|
Summary
buildObservedPullRequestScenarios(src/signals/local-branch.ts) scoped a contributor's cross-repo open-PR pressure (approved/mergeable, stale, closed, draft, blocked, maintainer-lane counts feeding the local-branch scenario preview) to subnet-registered repos only.isRegistered/isInstalledexhaustive audit, not one of the originally-tracked sub-issues.Test plan
#5016 audit: includes an installed-but-not-subnet-registered repo's PRs in cross-repo scoping(positive regression)#5016 audit: excludes a subnet-registered-but-not-installed repo's PRs from cross-repo scoping(negative regression)test/unit/local-branch.test.ts— 58/58 passednpm run test:ci+npm audit --audit-level=moderate) green: 16032 passed, 0 failedAdvances #5016