feat(engine): add bestMetadataOpportunityAtOrAboveScore#3381
Conversation
Return the top-scoring metadata candidate that clears a minimum score threshold for miner discovery single-pick flows. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 05:48:22 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 3 non-blocking
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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3381 +/- ##
=======================================
Coverage 93.46% 93.46%
=======================================
Files 287 288 +1
Lines 30763 30765 +2
Branches 11210 11211 +1
=======================================
+ Hits 28752 28754 +2
Misses 1355 1355
Partials 656 656
🚀 New features to boost your workflow:
|
Summary
bestMetadataOpportunityAtOrAboveScorein@jsonbored/gittensory-engine— returns the highest-scoring metadata candidate at or aboveminScore, ornullwhen none qualify.rankMetadataOpportunitiesAtOrAboveScorefor miner discovery flows that need a single thresholded pick.Test plan
COVERAGE_NO_THRESHOLDS=1 npx vitest run test/unit/metadata-best-min-score.test.ts --coveragenpx diff-cover coverage/lcov.info --compare-branch=main --fail-under=99→ 100%npm run build --workspace @jsonbored/gittensory-engine && npm run build:minerMade with Cursor