chore(signals): remove dead deriveContributionLanes superseded by onboarding-pack's contribution-lane model - #6220
Conversation
…oarding-pack's contribution-lane model
|
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 #6220 +/- ##
==========================================
- Coverage 95.32% 95.31% -0.01%
==========================================
Files 596 596
Lines 47099 47046 -53
Branches 15010 14985 -25
==========================================
- Hits 44897 44844 -53
Misses 1477 1477
Partials 725 725
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-15 23:06:33 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 3 non-blocking
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://gittensory.aethereal.dev/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.
|
Summary
src/signals/focus-manifest.ts'sderiveContributionLanes(plus itsContributionLanes/ContributionLanePreferencetypes and its only-caller helperbuildLanesSummary) is a superseded, orphaned implementation with zero production callers -- a repo-wide search finds it only in its own two test blocks. Production contributor-guidance output flows through the separately-shapedRepoPolicyContributionLane/RepoOnboardingContributionLanemodel insrc/signals/onboarding-pack.ts(sourced from the richer repo-policy compiler, with its own public-safesanitizeContributionLane), which supersedes the raw-manifest derivationderiveContributionLanespredates.Changes
deriveContributionLanes, itsContributionLanes/ContributionLanePreferencetypes, and the privatebuildLanesSummaryhelper (used only by it) fromsrc/signals/focus-manifest.ts.test/unit/focus-manifest.test.tsandtest/unit/policy-sanitizer.test.ts, plus the now-unused imports.buildPolicyContributionLanesmodel (the production path) is untouched.Confirmation (per the issue's requirements)
deriveContributionLanesand its types have zero callers outside their own tests.packages/loopover-engine/src/focus-manifest.tsnever hadderiveContributionLanes(it lived only in the app-local shim), so there is no parity pair to keep in sync --check-engine-parity.tsstill passes.onboarding-pack.ts's model genuinely covers the same public-safe contribution-guidance use case, sourced from the repo-policy compiler rather than a raw manifest -- the intended successor.Scope
Validation
npm run typecheck-- clean (no dangling refs / unused imports).npx vitest run test/unit/focus-manifest.test.ts test/unit/policy-sanitizer.test.ts-- 689 passed.scripts/check-engine-parity.ts-- ok.git diff --checkclean; rebased onto latestmain, mergeable-clean.Safety
Closes #6167