Skip to content

Fail closed when TES NSFW, takedown, nullcast, or media reads error - #24

Closed
Pitchfork-and-Torch wants to merge 1 commit into
mainfrom
cursor/vf-tes-safety-flag-fail-closed-80ac
Closed

Pitchfork-and-Torch wants to merge 1 commit into
mainfrom
cursor/vf-tes-safety-flag-fail-closed-80ac

Conversation

@Pitchfork-and-Torch

@Pitchfork-and-Torch Pitchfork-and-Torch commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Wave 2 check

Quote / RT / ancestor Action::Interstitial does not set drop_ancillary_posts. Verified.

should_drop_reason only matches Action::Drop. AncillaryVFFilter reads that flag. Home NSFW rules emit Interstitial; Recs has Drop twins. Interstitial means keep-and-warn, not hard-drop. Not rewritten.

Bug

TES tweet-flag RPCs already distinguish Found / NotFound / Failed. build_tweet_features then does get(...).unwrap_or(false). Failed and NotFound both become “flag unset”. NSFW, takedown, nullcast, and DMCA/geo rules never fire.

Genuine NotFound / Ok(None) (no flag) is unchanged.

Fix

If nsfw_user / nsfw_admin / has_takedown / nullcast / media is Failed for a tweet id, drop that candidate. FilterTweets maps the miss to Verdict::unresolved_author.

Tests

Found / NotFound / empty stay; Failed nsfw/takedown/nullcast/media drop. Standalone harness: 12 assertions passed.

cargo test cannot run. Public dump has no VF / Home Mixer manifest.

Upstream

Preferred PR (cut from xai-org/main, uses takedown_reasons instead of has_takedown): xai-org#134

This fork-main branch has extra TES fields. Do not send this diff to xai-org.

Leftover

Gizmoduck author NSFW miss is upstream xai-org#125. Socialgraph relationship miss still fail-opens.

Open in Web Open in Cursor 

Interstitial on a quote/RT/ancestor is keep-and-warn, not Drop. The leak
next to that is TES nsfw/takedown/nullcast/media RPC failure treated as
"flag unset", so those rules never fire and the post serves clean.

Co-authored-by: Jon Bailey <Pitchfork-and-Torch@users.noreply.github.com>
@Pitchfork-and-Torch

Copy link
Copy Markdown
Owner Author

Wrong base (fork PR). Ship vehicle is upstream xai-org#134. Per submit law: never PR Pitchfork-and-Torch/x-algorithm. Do not merge this.

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