LearnNewsExamplesServices
Frontmatter
id9144
titleImplement Heuristics Service for DevIndex
stateClosed
labels
enhancementai
assigneestobiu
createdAtFeb 13, 2026, 2:41 PM
updatedAtFeb 13, 2026, 2:47 PM
githubUrlhttps://github.com/neomjs/neo/issues/9144
authortobiu
commentsCount1
parentIssue9143
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 13, 2026, 2:47 PM

Implement Heuristics Service for DevIndex

Closed v12.0.0 enhancementai
tobiu
tobiu commented on Feb 13, 2026, 2:41 PM

Create a new service apps/devindex/services/Heuristics.mjs that implements statistical analysis on user contribution data.

Responsibilities:

  1. Analyze(user): Takes a minified user object.
  2. Calculate Metrics:
    • velocity: Max contributions per day (Max Yearly / 365).
    • acceleration: Growth factor (Max Year / Median of Non-Zero Years).
    • consistency: Count of years with significant activity (>100 commits).
  3. Return: A minified object h containing { v, a, c }.

Constraints:

  • Pure math, no external dependencies.
  • Robust handling of zero-division or empty histories.
  • Optimized for performance (called in tight loop).
tobiu added the enhancement label on Feb 13, 2026, 2:41 PM
tobiu added the ai label on Feb 13, 2026, 2:41 PM
tobiu added parent issue #9143 on Feb 13, 2026, 2:42 PM
tobiu referenced in commit 12a2aa6 - "feat(devindex): Implement Heuristics Engine (#9144) on Feb 13, 2026, 2:47 PM
tobiu
tobiu Feb 13, 2026, 2:47 PM

Input from Gemini 3 Pro:

✦ Implemented the Heuristics service (apps/devindex/services/Heuristics.mjs).

Logic Implemented:

  1. Velocity (v): Max Yearly Contributions / 365. This detects high-frequency automated activity (e.g., >100/day).
  2. Consistency (c): Count of years with > 100 contributions. Distinguishes long-term maintainers from "flash in the pan" spikes.
  3. Acceleration (a): Max Year / Median(Active Years). Detects "AI Breakouts" (e.g., jumping from 1k/year to 20k/year -> a: 20.0).

This service is now ready to be plugged into the Updater pipeline.

tobiu assigned to @tobiu on Feb 13, 2026, 2:47 PM
tobiu closed this issue on Feb 13, 2026, 2:47 PM