Skip to content

fix(api): clamp for you recency decay#921

Merged
raymondjacobson merged 1 commit into
mainfrom
codex/fix-for-you-recency-underflow
Jun 8, 2026
Merged

fix(api): clamp for you recency decay#921
raymondjacobson merged 1 commit into
mainfrom
codex/fix-for-you-recency-underflow

Conversation

@raymondjacobson

Copy link
Copy Markdown
Member

Summary

  • clamps the For You recency-decay exponent before calling exp(...)
  • keeps very old candidates ranked as effectively zero-recency instead of returning a 500
  • adds a regression test with a year-1900 trending candidate

Production evidence

Verification

  • go test ./api -run 'TestV1FeedForYou' -count=1 -timeout=3m\n- git diff --check

@raymondjacobson raymondjacobson merged commit 13de364 into main Jun 8, 2026
5 checks passed
@raymondjacobson raymondjacobson deleted the codex/fix-for-you-recency-underflow branch June 8, 2026 21:00
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