Skip to content

Stop Thunder from burying undeleted in-network posts - #186

Closed
Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:cursor/magellan-wave2-undelete-4eaf
Closed

Stop Thunder from burying undeleted in-network posts#186
Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:cursor/magellan-wave2-undelete-4eaf

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown

Bug

Thunder delete has a handler. Thunder undelete does not. A restored followee tweet stays off For You until the tombstone ages out.

Five-line proof

  1. TweetDeleteEvent removes the CompactPost and inserts post_id into deleted_posts.
  2. Live Thrift union includes TweetUndeleteEvent with the same tweet/user payload as create.
  3. Feeder match fell through to _ => {}, so no InNetworkEvent was emitted.
  4. Serving insert_posts refused any later create for a tombstoned id (if deleted_posts.contains_key { continue }).
  5. GetInNetworkPosts therefore omitted the restored tweet for up to the retention window.

Twin: delete is handled; undelete is not. This is not #138 (QuotedTweetDelete kills the quote) and not #150 (RT of a tombstoned original).

Fix

  • Feeder maps TweetUndeleteEvent through the same LightPost builder as create (nullcast still skipped) and emits TweetCreateEvent.
  • Store clears the tombstone on re-insert. If the author deque still holds the ghost id, do not push a second index row.

Tests

  • undelete_clears_tombstone_and_restores_post (fails on unmodified main)
  • Undelete maps to the same LightPost as create
  • Nullcast undelete is skipped like create

cargo: cannot run. Public dump has no Thunder manifest.

Rejection table (this wave)

Candidate Why not
OON followee RT via stale in_network Same class as #128/#154/#183
VF author_blocks_viewer missing Live For You uses BlockedByHydrator; Following leak is #108
RT originals scored at TimelineHome #116 closed; #119 covers original verdicts
Author handle mute keyword #182 claimed
Topic snooze untagged #170 claimed
SidTail / PopularTopics / BroadcastLiveness enable Forbidden intern-enable
Author-size IPS Forbidden
Home-mixer TES/gizmoduck/VF fail-closed spray Forbidden

TweetUndeleteEvent was dropped on the feeder, and insert_posts refused
tombstoned ids, so a restored tweet stayed off For You until retention
trim. Handle undelete like create and clear the tombstone on re-insert.
@Pitchfork-and-Torch
Pitchfork-and-Torch force-pushed the cursor/magellan-wave2-undelete-4eaf branch from 9ef9bdf to 902a06f Compare September 8, 2026 23:07
@Pitchfork-and-Torch

Copy link
Copy Markdown
Author

Parking this intern-stack PR per operator GitHub cleanup (2026-09-08). Hunt notes remain local. Not a reject of the class.

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.

1 participant