fix(rank): keep out-of-window evidence out of the top ranks (#993)

Cherry-picks the recency contract from #885 so stale items cannot lead ranks, including cluster representatives and the final sort.

Co-authored-by: bekonyn <noyanjeanbean@gmail.com>
This commit is contained in:
Matt Van Horn
2026-08-14 00:37:52 -07:00
committed by GitHub
parent 6835eb8b1e
commit ddc761d2c2
12 changed files with 462 additions and 33 deletions
+1
View File
@@ -0,0 +1 @@
Out-of-window evidence no longer leads the ranked output. Items whose dates fall outside the run's window were flagged `[date:low]` but ranked normally, so a 2025-10 video took the #1 cluster in a 2026-07 brief and a 2025-12 one took #5. Candidates whose every dated item is out of window are now demoted in both the fusion sort and `_final_score`, so they still appear as evidence but never above in-window material; items with no date at all are untouched, since an unknown date is a coverage gap rather than a stale item. The freshness verdict ("only N of M dated items are from the last 7 days") also reaches the pass-through footer instead of only the report body.