x-algorithm changelog (unofficial)

Unofficial, community-maintained project. Not affiliated with, endorsed by, or operated by X Corp. or xAI. Notes are generated from the public git history of xai-org/x-algorithm and may contain mistakes; the upstream diff is the source of truth.

· 989fb91 · 79 files, +3,437/−1,463

New filter new_user_soft_nsfw_filter and other changes.

candidate hydratorsfeature flagsfiltersnumeric tweaksparams
  • Feature switches flipped: EnableFairShareRanking (enable fair share ranking) is now ON by default and EnableVideoCarouselCandidatesLogging (enable video carousel candidates logging) is now ON by default.
  • Parameter defaults changed: ShadowTrafficPhoenixClusterRates: vec![] → vec!["Experiment18Fou:0.5".to_string()].
  • Added 1 feature flag: EnableNewUserSoftNsfwFilter (default off).
  • Added 1 config parameter: NewUserSoftNsfwFilterMaxAccountAgeSecs = 86400.
  • New candidate hydrator: new_user_soft_nsfw_label_hydrator.
  • New filter: new_user_soft_nsfw_filter.
  • Other literal values changed in code: fn counter_labels<'a>(&'a self, build_sha: &'a str 10→11 (tweetypie.rs) and NEVER_ALLOWED 19→24 (replay_corpus.rs).
  • Most activity in visibility-filtering/ (+2,099/−1,017), phoenix/ (+743/−396), home-mixer/ (+591/−48), grox/ (+3/−1) and xai-value-model/ (+1/−1).

Full analysis → Summary: automatic analysis

Config parameters (param! defaults)

ParameterFeature-switch keyOldNew
EnableFairShareRanking
home-mixer/params/param.rs
rust_home_mixer_enable_fair_share_rankingfalsetrue
EnableVideoCarouselCandidatesLogging
home-mixer/params/param.rs
rust_home_mixer_enable_video_carousel_candidates_loggingfalsetrue
ShadowTrafficPhoenixClusterRates
home-mixer/params/param.rs
rust_home_mixer_shadow_traffic_phoenix_cluster_ratesvec![]vec!["Experiment18Fou:0.5".to_string()]
Added parameterTypeDefaultFile
EnableNewUserSoftNsfwFilterboolfalsehome-mixer/params/param.rs
NewUserSoftNsfwFilterMaxAccountAgeSecsu6486400home-mixer/params/param.rs

Pipeline components

KindChangeFile
Candidate hydratoraddedhome-mixer/candidate_hydrators/new_user_soft_nsfw_label_hydrator.rs
Filteraddedhome-mixer/filters/new_user_soft_nsfw_filter.rs
Side effectmodifiedhome-mixer/side_effects/scored_stats_side_effect.rs
Candidate sourcemodifiedhome-mixer/sources/phoenix_source.rs
Candidate sourcemodifiedvisibility-filtering/hydration/sources/exchange.rs
Candidate sourcemodifiedvisibility-filtering/hydration/sources/in_memory.rs

Changed constants & literal values

Old lineNew lineFile
fn counter_labels<'a>(&'a self, build_sha: &'a str) -> [(&'static str, &'a str); 10] {fn counter_labels<'a>(&'a self, build_sha: &'a str) -> [(&'static str, &'a str); 11] {visibility-filtering/staging/reference/tweetypie.rs
const NEVER_ALLOWED: [(&str, &str); 19] = [const NEVER_ALLOWED: [(&str, &str); 24] = [visibility-filtering/staging/replay_corpus.rs

Modules touched

ModuleFiles addedModifiedRemovedLines +Lines −
visibility-filtering/5430+2,099−1,017
phoenix/1140+743−396
home-mixer/2110+591−48
grox/020+3−1
xai-value-model/010+1−1

Files (79)

Show file list
PathLinesNote
Mgrox/config/config.py+1/−0
Mgrox/core/data_loaders/media_loader.py+2/−1
Mhome-mixer/candidate_hydrators/mod.rs+1/−0
Ahome-mixer/candidate_hydrators/new_user_soft_nsfw_label_hydrator.rs+270/−0
Mhome-mixer/candidate_pipeline/following_candidate_pipeline.rs+8/−2
Mhome-mixer/candidate_pipeline/phoenix_candidate_pipeline.rs+10/−20
Mhome-mixer/candidate_pipeline/reverse_chron_posts_pipeline.rs+7/−21
Mhome-mixer/filters/mod.rs+1/−0
Ahome-mixer/filters/new_user_soft_nsfw_filter.rs+154/−0
Mhome-mixer/models/candidate.rs+2/−0
Mhome-mixer/params/param.rs+16/−4
Mhome-mixer/server.rs+26/−1
Mhome-mixer/side_effects/scored_stats_side_effect.rs+60/−0
Mhome-mixer/sources/phoenix_source.rs+34/−0
Mhome-mixer/util/video_carousel.rs+2/−0
Mphoenix/python/common/xai-configlib/src/xai_configlib/__init__.py+2/−0
Mphoenix/xrex/configs/xrecsys.py+1/−0
Mphoenix/xrex/configs/xrecsys_two_tower.py+1/−0
Mphoenix/xrex/configs/xrecsys_two_tower_evals.py+27/−0
Aphoenix/xrex/cutedsl/ranker_attention_candidate_only_fa4.py+398/−0
Mphoenix/xrex/cutedsl/ranker_attention_varlen_candidate_packed_fa4.py+2/−321
Mphoenix/xrex/eval/recsys_eval.py+53/−1
Mphoenix/xrex/models/attention.py+1/−0
Mphoenix/xrex/models/layers.py+50/−29
Mphoenix/xrex/models/linear_layer.py+7/−1
Mphoenix/xrex/models/normalization.py+6/−12
Mphoenix/xrex/models/recsys_attention.py+48/−1
Mphoenix/xrex/models/recsys_model.py+4/−0
Mphoenix/xrex/models/transformer.py+100/−25
Mphoenix/xrex/utils/layer_stack.py+43/−6
Mvisibility-filtering/explain.rs+4/−3
Mvisibility-filtering/hydration/decode/tweet.rs+22/−10
Mvisibility-filtering/hydration/execute.rs+316/−61
Mvisibility-filtering/hydration/fetcher.rs+4/−0
Mvisibility-filtering/hydration/hydrator.rs+80/−200
Mvisibility-filtering/hydration/inventory.rs+9/−23
Mvisibility-filtering/hydration/metrics.rs+1/−1
Mvisibility-filtering/hydration/mod.rs+15/−26
Mvisibility-filtering/hydration/plan.rs+29/−70
Avisibility-filtering/hydration/relation.rs+130/−0
Mvisibility-filtering/hydration/sources.rs+0/−18
Mvisibility-filtering/hydration/sources/exchange.rs+0/−13
Mvisibility-filtering/hydration/sources/in_memory.rs+0/−8
Mvisibility-filtering/hydration/store.rs+180/−250
Mvisibility-filtering/hydration/store/conversation_root.rs+8/−9
Avisibility-filtering/hydration/store/key_origin.rs+465/−0
Mvisibility-filtering/hydration/store/resolve.rs+32/−19
Mvisibility-filtering/hydration/tweet_source.rs+56/−1
Mvisibility-filtering/lib.rs+2/−0
Mvisibility-filtering/models/mod.rs+9/−2
Mvisibility-filtering/models/tweet.rs+7/−0
Avisibility-filtering/pinned.rs+70/−0
Mvisibility-filtering/post_evaluator.rs+29/−35
Mvisibility-filtering/post_evaluator/author.rs+1/−1
Mvisibility-filtering/quote.rs+8/−3
Mvisibility-filtering/result_label.rs+44/−0
Mvisibility-filtering/retweet.rs+65/−5
Mvisibility-filtering/rules/catalog.rs+2/−10
Mvisibility-filtering/rules/engine.rs+27/−47
Mvisibility-filtering/rules/fixtures.rs+11/−0
Mvisibility-filtering/rules/golden_corpus/mod.rs+2/−0
Avisibility-filtering/rules/golden_corpus/reaction_video.rs+97/−0
Mvisibility-filtering/rules/levels.rs+3/−0
Mvisibility-filtering/rules/mod.rs+3/−2
Mvisibility-filtering/rules/rule_spec.rs+6/−2
Mvisibility-filtering/rules/rule_spec/conditions.rs+9/−0
Mvisibility-filtering/rules/rule_spec/engine.rs+2/−0
Mvisibility-filtering/rules/rule_spec/features.rs+4/−0
Avisibility-filtering/rules/rule_spec/features/reaction.rs+82/−0
Mvisibility-filtering/rules/rule_spec/laws.rs+17/−0
Mvisibility-filtering/rules/rule_spec/predicates.rs+7/−3
Mvisibility-filtering/rules/tweet_rules.rs+21/−0
Mvisibility-filtering/scenario.rs+34/−4
Mvisibility-filtering/staging/capture.rs+1/−1
Mvisibility-filtering/staging/recording.rs+1/−9
Mvisibility-filtering/staging/recording/replay.rs+0/−8
Mvisibility-filtering/staging/reference/tweetypie.rs+12/−2
Mvisibility-filtering/staging/replay_corpus.rs+172/−171
Mxai-value-model/lib.rs+1/−1