Stop VF hydrator from overwriting in-network verdicts with OON - #55
Open
Pitchfork-and-Torch wants to merge 1 commit into
Open
Stop VF hydrator from overwriting in-network verdicts with OON#55Pitchfork-and-Torch wants to merge 1 commit into
Pitchfork-and-Torch wants to merge 1 commit into
Conversation
Primary tweet_id lookup now uses the TimelineHome or Recommendations map that matches candidate.in_network. Ancestor and quote ancillary checks still read Recommendations; retweeted ids stay on TimelineHome. Co-authored-by: Jon Bailey <Pitchfork-and-Torch@users.noreply.github.com>
Pitchfork-and-Torch
marked this pull request as ready for review
August 14, 2026 22:22
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.
Bug
VFCandidateHydratorfetches in-network primaries asTimelineHomeand ancestors/quotes asTimelineHomeRecommendations, then merges withall_results.extend(oon_result)so the later key wins.Thunder sets
ancestors = [in_reply_to, conversation_root]on in-network replies. When a parent and reply land in the same batch, the parenttweet_idis in both maps. The selected in-network tweet then gets the Recommendations verdict.TimelineHomeisbase_home_rules()only. Recommendations adds OON-only Drop rules (NSFW_HIGH_PRECISION_DROP,DO_NOT_AMPLIFY_DROP,MALICIOUS_URL_DROP,SPAM_HIGH_RECALL_DROP, NSFW author drops that are Interstitial in-network / Drop OON).VFFilterhard-dropsAction::Drop.This is a successful VF result applied at the wrong safety level. Not fail-open on miss, and not missing labels.
Fix
Keep both maps. Look up
candidate.tweet_idonly from the map that matchescandidate.in_network. Ancestor/quote ancillary checks still use Recommendations.retweeted_tweet_idstays on TimelineHome.Tests