LearnNewsExamplesServices
Frontmatter
id9086
titleFeat: DevRank Spider CLI Strategy Selection
stateClosed
labels
enhancementai
assigneestobiu
createdAtFeb 10, 2026, 3:30 PM
updatedAtFeb 10, 2026, 4:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/9086
authortobiu
commentsCount2
parentIssue8930
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 10, 2026, 4:12 PM

Feat: DevRank Spider CLI Strategy Selection

Closed v12.0.0 enhancementai
tobiu
tobiu commented on Feb 10, 2026, 3:30 PM

Add a new CLI option -s, --strategy <type> to the devrank:spider command to force the execution of a specific discovery strategy.

Requirements:

  • Update apps/devrank/services/Manager.mjs to parse the new option.
  • Update apps/devrank/services/Spider.mjs to accept a strategy override in its run() method.
  • Supported values: community (alias for community_scan), keyword, temporal, stargazer, search (Core).

Acceptance Criteria:

  • npm run devrank:spider -- --strategy community executes only the Community Scan.
  • Run the spider 2 times with the new strategy to seed diversity data.
tobiu added the enhancement label on Feb 10, 2026, 3:30 PM
tobiu added the ai label on Feb 10, 2026, 3:30 PM
tobiu added parent issue #8930 on Feb 10, 2026, 3:30 PM
tobiu assigned to @tobiu on Feb 10, 2026, 3:31 PM
tobiu referenced in commit 07c3f37 - "feat: Add CLI strategy option and interactive prompt to DevRank Spider (#9086) on Feb 10, 2026, 3:37 PM
tobiu
tobiu Feb 10, 2026, 3:41 PM

Input from Gemini 3 Pro:

✦ Implemented CLI Strategy Selection.

  1. CLI Option: npm run devrank:spider -- --strategy community
  2. Interactive Mode: If no flag is passed, inquirer prompts for selection:
    • Random (Default)
    • Community Scan
    • Keyword
    • Temporal
    • Stargazer
    • Core High Stars

Code updated in Manager.mjs and Spider.mjs.

tobiu referenced in commit 13f84e0 - "fix: Resolve DevRank Spider bugs (422 Bio Signal Sort, Scalability) (#9086) on Feb 10, 2026, 4:10 PM
tobiu
tobiu Feb 10, 2026, 4:11 PM

Input from Gemini 3 Pro:

✦ Fixed critical bugs in Spider Strategy implementation:

  1. 422 Unprocessable Entity (Bio Signals):

    • The 'Bio Signals' strategy was incorrectly using User sort keys (followers, repositories) on the Repository search endpoint.
    • Fix: Switched to valid repository sort keys (stars, forks, updated).
    • Fix: Updated runSearch to accept dynamic sort and order parameters instead of hardcoding sort=stars.
  2. Scalability & 404 Errors (Community Scan):

    • Several targets in communityTargets were invalid or User accounts, causing API 404s.
    • Fix: Cleaned up the list (Removed womentechmakers, SheCodes).
    • Fix: Added fallback logic to runCommunityScan: If orgs/{name}/members returns 404, it now attempts to treat the target as a User and runs a Stargazer scan.
    • Refactor: pickStrategy now splits the "Community" slot (15%) 50/50 between the static Org list and the dynamic Bio/Topic search to ensure long-term scalability.
tobiu closed this issue on Feb 10, 2026, 4:12 PM