Does editing a post on X hurt your reach? The stale-edit rule
X's published ranker has no edit feature at all. What it does have is a rule that retires the old version for everyone, including you, and a brand new post id.
The short version
- ▸There is no edit penalty in the ranking code. `home-mixer/models/candidate.rs` describes a scoreable post in 98 public fields and not one of them mentions an edit, and `params/param.rs` (1,811 lines, 295 declarations) has zero matches for the word (xai-org/x-algorithm, read 5 December 2026).
- ▸Editing is handled one layer up, by `STALE_TWEET_DROP_UNSPECIFIED` in `visibility-filtering/rules/tweet_rules.rs`. Its `audience` is `Everyone`, not the usual `NonAuthors`, so the superseded version is retired for you as well as for readers.
- ▸An edit is a new post, by X's own API definition: `POST /2/tweets` says it "creates a new Post for the authenticated user, or edits an existing Post when `edit_options` are provided", and the response carries `edit_history_post_ids` for the chain.
- ▸Two home-timeline clocks read that id and nothing else. The 48-hour `AgeFilter` derives creation time from the id's snowflake, and `PreviouslyServedPostsFilter` dedupes against a set of raw ids that does not include edit-chain ids.
- ▸Your engagement survives. X's Edit Post help page states you keep the engagement of past versions, and the edited post carries a label that lets anyone read the earlier ones.
Quick answer
No ranking penalty for an edit exists in anything X has published. The For You ranker cannot even see that a post was edited: its candidate struct has no edit field and its 1,811-line parameter file does not contain the word. What X does ship is one visibility rule that retires the superseded version for everyone, including the author, plus a fact nobody writes about - an edit mints a brand new post id, and two of the home timeline's filters read that id and nothing else.
Read against commit e7afa63 of xai-org/x-algorithm on 5 December 2026, whose param.rs header says its values were mirrored from production config on 3 December 2026.
The ranker has no edit feature
The scoring side of X's stack is one file deep. home-mixer/scorers/value_model.rs builds a ValueModelWeights struct, every field of it reads a named parameter out of home-mixer/params/param.rs, and xai-value-model/scoring.rs fuses the result into 31 weighted terms. The full list of those weights, from a copy-link share at 20.0 down to a report at -234.0, is in X algorithm open source.
Search that file for anything about edits and you get nothing. Not a weight, not a switch, not a threshold. param.rs is 1,811 lines carrying 295 param! declarations and there is no match for the string at all.
One level down is the object the ranker scores. home-mixer/models/candidate.rs defines PostCandidate with 98 public fields: the post id, author id, text, reply and repost and quote ids, the 30 model scores, retrieval sources, ancestors, in-network flag, video embedding. There is no latest_edit_tweet_id, no edit_count, no is_edited. A GitHub code search for latest_edit_tweet_id across the whole repository returns seven files, and every one of them sits under visibility-filtering/.
So the common framing is wrong at the first step. An edit is not a signal the model weighs. It is a state the visibility layer acts on, which is a different kind of thing with a different kind of consequence.
The rule that does exist retires the old version
visibility-filtering/rules/tweet_rules.rs holds two rules keyed to RuleId::StaleTweet:
| Rule | Audience | Condition | Action |
|---|---|---|---|
STALE_TWEET_DROP_UNSPECIFIED | Everyone | TweetIsSupersededEdit, and not a quoted inner post, repost or source post | drop_post(DropAs::UnspecifiedReason) |
STALE_TWEET_LIMITED_ENGAGEMENT | Everyone | TweetIsSupersededEdit and the client has the StaleTweetLimits switch | limit(LimitedEngagementReason::StaleTweet) |
Note the word Everyone. Most rules in that file carry audience: NonAuthors, which is the mechanism that lets X hide a post from readers while leaving it looking normal on the author's own screen. The stale-edit rules do not use it. The version you replaced is retired for you too.
What "superseded" means is narrower than it sounds. visibility-filtering/models/tweet.rs implements it as a single comparison:
pub fn is_superseded_edit(&self, tweet_id: u64) -> bool {
self.latest_edit_tweet_id
.is_some_and(|latest| latest > tweet_id)
}
A post is stale if a numerically larger id exists in its chain. That is all. The golden corpus even tests the odd case: a row named edit_ahead_of_its_chain with post id 3 and latest_edit_tweet_id of 2 is expected to pass straight through, because 2 is not greater than 3.
The per-role expectations in visibility-filtering/rules/golden_corpus/tweet_state.rs are the clearest thing in the repository about what readers experience, because that file states the verdict per viewer role rather than leaving it to be inferred:
| Who is looking | Surface | Expected verdict |
|---|---|---|
| Non-follower | baseline | dropped, reason stale_tweet/drop/unspecified |
| The author | baseline | limited, reason StaleTweet |
| Non-follower, via a repost of it | TimelineHome | allow |
| Non-follower | TimelineHomeHydration | limited, not dropped |
A client without the StaleTweetLimits switch | TimelineHomeHydration | allow |
| Anyone, on the current version | baseline | allow |
rules/levels.rs then lists the drop rule under TIMELINE_HOME, TIMELINE_HOME_RECOMMENDATIONS, IMMERSIVE_EXPANDED_RECOMMENDATIONS and NOTIFICATIONS_WRITER_V2_MENTION, which the reply notification level inherits. The limited-engagement variant lives in a group called HYDRATION_MEDIA_AND_LIMITS, used by TIMELINE_HOME_HYDRATION. Two layers, two different treatments, and both of them point at the version you abandoned rather than the one that is live.
An edit is a new post, and two clocks notice
X's own API is explicit about the mechanic. The createPosts operation is documented as creating a new post "or edits an existing Post when edit_options are provided", CreatePostsEditOptions requires a previous_post_id, and the post object carries edit_history_post_ids, described in the live spec as "Post IDs in this Post's edit history chain". An edit does not mutate a row. It appends a new post that supersedes the old one.
Post ids on X are snowflakes, so a new id is also a later timestamp. The repository ships the conversion itself, in phoenix-rankall/src/store/snowflake.rs, as (snowflake_id >> 22) + TWITTER_EPOCH_MS. Two home-timeline filters are built on top of that, and neither knows anything about edit chains.
First comes the age cutoff. home-mixer/filters/age_filter.rs is eleven lines of logic that derive a candidate's creation time from time_from_id_opt(c.tweet_id) and keep it only while that age is at or under MAX_POST_AGE, which params/config.rs sets to 48 * 60 * 60. The clock does not come from a created_at column. It comes out of the id. How long a post stays servable at all is covered in how long an X post keeps getting views.
Second comes the already-seen check. PreviouslyServedPostsFilter gathers served_ids into a HashSet<u64> and drops any candidate whose related_post_ids_iter intersects it. That iterator, in home-mixer/util/candidates_util.rs, yields exactly three things: the candidate's own id, its reposted id, and its replied-to id. Edit-chain ids are not in it, and EnableServedFilterAllRequests defaults to true, so this filter runs on every request rather than only on scroll-backs.
Put those together and the published code implies something counterintuitive: an edited post arrives at both filters as a younger id that the viewer's served history has never seen. X has not stated that editing re-opens a post's distribution, and this is an inference from two filters rather than a documented behaviour, so treat it as what the code does rather than a tactic with a measured result. It is also the opposite of the received wisdom, which is worth knowing before you avoid the edit button on reach grounds.
What X says survives the edit
X's Edit Post help page sets the user-facing rules, and they are tighter than the code implies:
- One hour from publishing, and up to five edits inside it
- Premium, or a Plus, Premium, Super or Ultra plan on The X Subscription
- Original posts and Quotes only
- Only from the device you posted from
- The edited post shows a label, and anyone can tap it to read previous versions
On engagement the page is unambiguous: you keep any engagement of past versions of a post you have edited. Nothing resets to zero. The likes, reposts and replies follow the chain to the current version, which is also why the retirement rules are written the way they are. X needs exactly one servable version, and it drops the rest rather than splitting a conversation across two ids.
The visible edit history is the part worth thinking about before you use the feature creatively. Rewriting a post that already earned reach into a different message is an authenticity question rather than a ranking one, and X's Authenticity policy lists restricting a post's reach among its enforcement options. The previous versions stay one tap away either way.
What editing actually costs you
The real cost is not reach. It is coverage.
Look again at the list of post types X will not edit: threads, replies, promoted posts, polls, pinned posts, posts from a third-party service, posts via X Pro, and subscriber posts. For anyone growing an account, that list removes most of the output. Replies cannot be edited, and replies are where most accounts earn their impressions. Thread parts cannot be edited. The post that greets every profile visitor cannot be edited once it is pinned, which is the ordering rule behind pinning a post on X: get the wording finished first. The step-by-step for the posts you can edit is in how to edit a post on X, along with the two X pages that disagree about the window.
There is one genuine loss in the code. Because the drop rule is listed under NOTIFICATIONS_WRITER_V2_MENTION, and the reply level inherits that list, a mention or reply notification attached to the superseded version is dropped for non-followers. The golden corpus for post notifications expects exactly that, with retweet_source as the one exception. If someone was tagged in the version you replaced, the notification path for that version is gone.
So should you edit
Fix the typo. The published ranker has no mechanism to punish you for it, the engagement follows the post, and the version that stays visible is the corrected one.
Two caveats are worth holding. The hour-and-five-edits budget means editing is a repair tool, not a workflow, and nothing in it helps the formats that drive most growth, because replies and threads are excluded outright. The accounts that rarely reach for the button are not better typists. They read the post once more before it publishes, which is the only version control X actually gives you.
If the reason you are editing a lot is that posting is squeezed into gaps in the day, the fix is upstream of the edit button. Consistent replies to posts that are still live, and posts that go out on a schedule you set, are the jobs X-Autopilot does from your own browser. The arithmetic of who sees a post at all, before any of this matters, is in do all your followers see your posts.
Frequently asked
Answers indexed by Google + AI assistants.
Does editing a post on X hurt your reach?+
Nothing in X's published ranking code lowers a post's score because it was edited. The 28-field value model, the 31 fused scoring terms and the whole of `param.rs` contain no edit signal, and the ranker's own candidate struct has no edit field to read. The only edit logic in the open-source stack sits in the visibility layer, and what it does is retire the superseded version rather than demote the current one.
Do you lose likes and reposts when you edit a post on X?+
No. X's Edit Post help page says you keep any engagement from past versions of a post you have edited. The counters move to the current version, and the post gains a label that anyone can tap to read the previously published versions.
Can an edited post get shown to the same people twice?+
The code does not prevent it. `PreviouslyServedPostsFilter` builds a `HashSet<u64>` of ids you have already been served and drops any candidate whose own id, reposted id or replied-to id is in that set. Edit-chain ids are not in that list, so a new edit id is not recognised as something the viewer already saw. That is an inference from the filter, not a statement X has published.
Does an edit reset the 48-hour window on a post?+
`home-mixer/filters/age_filter.rs` computes a candidate's age with `time_from_id_opt(c.tweet_id)`, which reads the timestamp out of the post id itself, and compares it against `MAX_POST_AGE`, defined as 48 hours in `params/config.rs`. A new edit id is a later snowflake, so the age that filter computes for the surviving version starts at the edit.
Can you edit a reply or a thread on X?+
No. X's help page lists the post types that cannot be edited: threads, replies, promoted posts, polls, pinned posts, posts from a third-party service, posts via X Pro, and subscriber posts. Editing covers original posts and Quotes only, for one hour, up to five times, and only from the device you posted from.
Why do old posts still say editing kills your reach?+
Most of the pages ranking for this question are about LinkedIn, Threads or Instagram, where the claim is about interrupted early engagement velocity. X's stack is readable, and it answers the question differently: no scoring penalty, one retirement rule, and a fresh id that two filters treat as new.
- xai-org/x-algorithm, `visibility-filtering/rules/tweet_rules.rs`: `STALE_TWEET_DROP_UNSPECIFIED` (`audience: Everyone`, `when all![TweetIsSupersededEdit, !IsQuotedInnerTweet, !TweetIsRetweet, !IsSourceTweet]`, `action: drop_post(DropAs::UnspecifiedReason)`) and `STALE_TWEET_LIMITED_ENGAGEMENT` (`audience: Everyone`, gated on `ClientHas(ClientSwitch::StaleTweetLimits)`, `action: limit(LimitedEngagementReason::StaleTweet)`) (read 5 December 2026)
- xai-org/x-algorithm, `visibility-filtering/rules/golden_corpus/tweet_state.rs`: the `stale_edit` row expecting `dropped` for `Role::NonFollower` and `limited(LimitedEngagementReason::StaleTweet)` for `Role::Author`, the `TimelineHome` exception for `Role::RetweetSource`, the `client_without_stale_tweet_limits` row expecting `allow()`, and the `current_edit` and `edit_ahead_of_its_chain` rows (read 5 December 2026)
- xai-org/x-algorithm, `visibility-filtering/models/tweet.rs`: `is_superseded_edit` implemented as `latest_edit_tweet_id.is_some_and(|latest| latest > tweet_id)`, a numeric comparison of post ids (read 5 December 2026)
- xai-org/x-algorithm, `home-mixer/filters/age_filter.rs` and `home-mixer/params/config.rs`: age derived from `time_from_id_opt(c.tweet_id)` and `MAX_POST_AGE: u64 = 48 * 60 * 60`; `home-mixer/filters/previously_served_posts_filter.rs` with `served_ids: HashSet<u64>` and `EnableServedFilterAllRequests` defaulting to `true` in `params/param.rs`; `home-mixer/util/candidates_util.rs` `related_post_ids_iter` returning own id, reposted id and replied-to id only (read 5 December 2026, `param.rs` header `last sync 2026-12-03T16:00:37Z`)
- X API live OpenAPI spec 2.175 and `docs.x.com` Create or Edit Post: `createPosts` described as creating a new Post or editing an existing one when `edit_options` are provided, `CreatePostsEditOptions.previous_post_id` required, `Post.edit_history_post_ids` described as "Post IDs in this Post's edit history chain", and `PostEditControls` carrying `editable_until`, `edits_remaining` and `is_edit_eligible` (read 5 December 2026)
- X Help Center, 'About Edit Post': the 1 hour window, up to 5 edits, Premium or a Plus, Premium, Super or Ultra plan on The X Subscription, original posts and Quotes only, the eight excluded post types, the edited-post label exposing previous versions, the same-device requirement, and 'You'll also keep any engagement of past versions of a post you've edited' (Wayback capture 17 November 2026, read 5 December 2026)
Product designer and indie hacker. Runs the agent on his own X account every day and writes up what the data shows, including when it's inconvenient.
Follow on X →