Skip to content

fix(prs): fit time decay curve through subnet-reported multiplier#1359

Merged
anderdc merged 1 commit into
testfrom
fix/pr-decay-curve-fit
Jul 13, 2026
Merged

fix(prs): fit time decay curve through subnet-reported multiplier#1359
anderdc merged 1 commit into
testfrom
fix/pr-decay-curve-fit

Conversation

@e35ventura

@e35ventura e35ventura commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Problem

On PRs in repos that override scoring.time_decay hyperparameters, the time decay chart drew a V-notch: the curve was rendered from the global config params (sigmoid midpoint 10 days), while the Now marker used the subnet-reported multiplier, and the marker point was spliced into the line.

Example: james-cuda/gittensor-tinyrouter #240 — subnet reports 0.71× at 0.9 days since merge, but the default curve says ~0.97× there.

The UI can't resolve the repo's real decay params because /repos/{name} only publishes emissionShare and issueDiscoveryShare — no scoring.time_decay — so the per-repo override never reaches the chart.

Fix

When the subnet-reported multiplier contradicts the resolved curve (beyond the existing 0.05 tolerance), re-solve the sigmoid midpoint so the drawn curve passes through the reported (days since merge, multiplier) point, and clamp the grace period below the merge age. The 50% @ midpoint mark line follows the fitted midpoint, and the subline now reads "curve fitted to subnet-reported multiplier (repo overrides decay params)".

Repos without overrides are unaffected: the fit only activates on mismatch, and if the API later publishes per-repo scoring.time_decay, the resolved params win again with no fit needed.

Before

before

After

after

The repo config API only publishes emission shares, so repos that
override scoring.time_decay hyperparameters drew the curve with global
defaults while the Now marker used the subnet-reported multiplier,
splicing a V-notch into the line. On mismatch, re-solve the sigmoid
midpoint so the drawn curve passes through the reported point and clamp
the grace period below the merge age.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@anderdc
anderdc merged commit 0b9ec03 into test Jul 13, 2026
2 checks passed
@anderdc
anderdc deleted the fix/pr-decay-curve-fit branch July 13, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants