fix(services): gate onboarding-pack preview by isInstalled, not isRegistered - #5699
Conversation
…istered buildRepoOnboardingPackPreviewForRepo required a repo to be subnet-registered before serving its onboarding-pack preview (contribution lanes, label policy, validation/maintainer expectations derived from the repo's own focus manifest/policy compiler). None of that output is gittensor-subnet economics data, and the sibling advisory tools at the same access tier (getMaintainerLane, getLabelAudit, getBurdenForecast) already gate on isInstalled with no isRegistered check, so an installed-but-unregistered repo was wrongly denied a preview it should get. Found via the epic #5016 isRegistered/isInstalled exhaustive 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 #5699 +/- ##
=======================================
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
buildRepoOnboardingPackPreviewForReporequired a repo to be subnet-registered (isRegistered) before serving its onboarding-pack preview (contribution lanes, label policy, validation/maintainer expectations — all derived from the repo's own focus manifest/policy compiler, zero gittensor-subnet economics fields).getMaintainerLane,getLabelAudit,getBurdenForecast) already gate onisInstalledwith noisRegisteredcheck, so this was an inconsistent, unnecessarily-restrictive gate: an installed-but-unregistered repo was wrongly denied a preview it should get.isRegistered/isInstalledexhaustive audit, not one of the originally-tracked sub-issues.Test plan
isInstalledgate#onboarding-pack-isinstalled: returns a real preview for an installed-but-not-subnet-registered repo(positive regression)#onboarding-pack-isinstalled: rejects a subnet-registered-but-not-installed repo(negative regression)test/unit/mcp-output-schemas.test.tsfixture that relied onisRegisteredwithoutisInstalled(now installs viaupsertRepositoryFromGitHub(..., 501))test/unit/onboarding-pack.test.ts+test/unit/mcp-output-schemas.test.ts— 47/47 passednpm run test:ci+npm audit --audit-level=moderate) green: 16032 passed, 0 failedAdvances #5016