feat(engine): honor candidatePaths in metadata lane-fit scoring - #3286
feat(engine): honor candidatePaths in metadata lane-fit scoring#3286kiannidev wants to merge 1 commit into
Conversation
When discovery metadata includes touched paths, rank metadata candidates with the same path+label goal model used in analyze instead of labels alone. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - fixes requiredReview updated: 2026-07-05 00:57:31 UTC
🛑 Suggested Action - Fix Blockers Review summary Nits — 4 non-blocking
CI checks failing
Review context
Contributor next steps
Signal definitions
🟩 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 Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (81.81%) is below the target coverage (99.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #3286 +/- ##
==========================================
+ Coverage 94.13% 94.24% +0.10%
==========================================
Files 276 276
Lines 30236 30247 +11
Branches 11016 11020 +4
==========================================
+ Hits 28464 28507 +43
+ Misses 1127 1081 -46
- Partials 645 659 +14
🚀 New features to boost your workflow:
|
|
Gittensory is closing this pull request on the maintainer's behalf (CI is failing (codecov/patch)). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
computeMetadataLaneFitin@jsonbored/gittensory-engine: label-only lane fit by default, full path+labelcomputeLaneFitwhen optionalcandidatePathsare present on a metadata candidate.buildMetadataRankInputto use the new helper so discovery batches can respectwantedPaths/blockedPathsfrom.gittensory-miner.ymlwhen path hints are available.MetadataCandidateIssuewith optionalcandidatePaths(backward compatible — absent paths keep existing label-only behavior).Why no linked issue
Small, self-contained engine parity gap: analyze-phase ranking already uses path+label goal matching via
computeLaneFit, but metadata fan-out only had labels. This closes that gap without changing miner CLI wiring or hosted review code.Conflict avoidance
Touches only
packages/gittensory-engine/**andtest/unit/opportunity-metadata-signals.test.ts. Does not overlap with open PRs #3278 (miner CLI), #3284 (enrichment secret-scan), #3255 (review guardrail), or #3281 (grafana).Test plan
npm run build --workspace @jsonbored/gittensory-enginenpm run build:miner(engine barrel consumed by miner)npx vitest run test/unit/opportunity-metadata-signals.test.ts(21 tests)computeMetadataLaneFitfallback, path match, blocked path, malformed paths)Made with Cursor