Rescore cached For You posts when the action sequence is newer - #176
Open
Pitchfork-and-Torch wants to merge 1 commit into
Open
Rescore cached For You posts when the action sequence is newer#176Pitchfork-and-Torch wants to merge 1 commit into
Pitchfork-and-Torch wants to merge 1 commit into
Conversation
Cache hits still hydrate a fresh UAS sequence, but PhoenixScorer skipped inference whenever has_cached_posts was set. Frozen VQV/dwell/fav heads then ranked For You for up to 180s after the viewer finished or skipped videos. Rescore when last_modified_epoch_ms or last_sequence_time is newer than a cached last_scored_at_ms. Co-authored-by: Jon Bailey <Pitchfork-and-Torch@users.noreply.github.com>
cursor
Bot
force-pushed
the
cursor/cache-stale-phoenix-scores-cd1e
branch
from
September 8, 2026 00:29
07c8e0e to
df5ebc9
Compare
This was referenced Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cache hits still hydrate a fresh UAS scoring sequence, then PhoenixScorer disabled itself whenever has_cached_posts was set. RankingScorer kept blending the Redis-frozen Phoenix heads (VQV, dwell, fav) for the full 180s TTL, so For You order ignored videos the viewer just finished or skipped.
Proof
Fix: keep the Redis candidate cache, but run Phoenix again when any cached last_scored_at_ms is missing or older than the hydrated sequence. Unchanged cache hits stay skipped. Missing sequence stays skipped so update() cannot wipe cached heads with Default scores.