feat(miner): add cross-repo opportunity discovery - #1097
feat(miner): add cross-repo opportunity discovery#10979876543210-tc-0123456789 wants to merge 1 commit into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
@JSONbored Could you review my PR? |
|
@JSONbored Could you plz review my PR? |
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review — closed
🛑 Closed — AI reviewers agree on a likely critical defect: src/notifications/service.ts: In detectIssueWatchEvents, lane filtering is only applied when the repo is private, so public repo watches ignore the lanes filter, producing incorrect notification behavior. — Resolve the flagged defect, or override if the AI reviewers are mistaken, then re-run the gate. Review summary Blockers
<details>
Why this is blocked
Nits — 1 non-blocking
Review context
Contributor next steps
Signal definitions
Review detailsGenerated from public PR metadata and the diff. Advisory only; deterministic signals remain authoritative. The PR adds cross‑repo opportunity discovery, new watch filters (lanes, freshness), and a new MCP tool. Core changes compile and tests pass, but lane filtering is only applied for private repositories, breaking the intended subscription semantics for public repos. The new types and schema updates are consistent across the codebase. Blockers
<details>
🟩 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.
|
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Summary
This change implements deterministic cross-repo opportunity discovery for miners and adds opt-in proactive alerts for high-value issues.
It fixes the current gap where miner discovery was mostly repo-local and reactive by:
Related Issues
#1058#816Change Type
Real Behavior Proof
Validated locally with:
npm run typechecknpx vitest run test/unit/issue-watch.test.ts test/unit/opportunity-discovery.test.ts test/unit/openapi.test.ts test/unit/mcp-output-schemas.test.ts test/integration/api.test.tsResult:
77/77tests passed in the final validation sliceKey Files
src/services/opportunity-discovery.tssrc/mcp/server.tssrc/notifications/service.tssrc/queue/processors.tssrc/db/schema.tssrc/db/repositories.tssrc/signals/engine.tsmigrations/0053_cross_repo_opportunity_alert_filters.sqlChecklist