Skip to content

[Bug]: MAX_CONTRIBUTION_BONUS fallback is 5x upstream (25 vs 5) #807

Description

@JSONbored

Found in the 2026-06-17 scoring-sync audit. Silent 5x inflation on fetch failure.

Problem

Local fallback MAX_CONTRIBUTION_BONUS = 25 (src/scoring/model.ts:14), duplicated as the constant() fallback in src/scoring/preview.ts:961 — but upstream is 5. On every successful hourly fetch the parsed 5 wins, so live scoring is correct; but if a fetch ever fails, the contribution bonus is silently 5x too high → wrong scores/previews.

Deliverable

  • Set the fallback to 5 (match upstream) in model.ts:14 and preview.ts:961
  • Add a regression test that a failed fetch uses 5, not 25

Outcome

Fetch-failure fallback no longer inflates scores 5x. Milestone M0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:bugGittensor-scored bug fix — scores a 0.05x multiplier.roadmapOn the Wave-2 agent-layer roadmap board (project 9)upstream-syncParity/sync with upstream entrius/gittensor scoring model

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions