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.

· 74d49a4 · 179 files, +16,257/−2,579

New side effect serendipity_stats_side_effect and other changes.

numeric tweaksparamsschemaside effects
  • Added 3 feature flags: EnableSerendipityStatsExperimentBucket (default off), HistoryTopicsEnabled (default off) and VMRankerSendHistoryTopics (default off).
  • Added 2 config parameters: HistoryTopicsWindowDays = 28 and ShadowTrafficPhoenixClusterAggregationTypes = vec!["Experiment16Fou:DENSE_WITH_LONG_DW.
  • Removed 1 feature flag: EnablePhoenixRetrievalFallback.
  • New side effect: serendipity_stats_side_effect.
  • Renamed: video_aspect_ratio_hydrator → video_media_hydrator.
  • Other literal values changed in code: SCALA_FILES 6→7 (params.rs), PINNED_POLICIES 5→6 (engine.rs), toggled 7→8 (laws.rs), fn counter_labels<'a>(&'a self, build_sha: &'a str 7→10 (tweetypie.rs), DECIDED_AT_LEAST 64→69 (replay_corpus.rs) and 2 more.
  • Proto/Thrift schema: 6 fields added (e.g. TweetInfo.notInterestedCount, TweetInfo.notificationClickCount, TweetInfo.notificationDismissCount, TweetInfo.notificationOpenCount and 2 more).
  • Most activity in visibility-filtering/ (+8,052/−1,680), abuse-enforcement-service/ (+5,411/−104), home-mixer/ (+1,115/−348), phoenix/ (+904/−393) and visibility-filtering-client/ (+726/−51).

Full analysis → Summary: automatic analysis

Config parameters (param! defaults)

Added parameterTypeDefaultFile
EnableSerendipityStatsExperimentBucketboolfalsehome-mixer/params/param.rs
HistoryTopicsEnabledboolfalsehome-mixer/params/param.rs
HistoryTopicsWindowDaysi6428home-mixer/params/param.rs
ShadowTrafficPhoenixClusterAggregationTypesVec<String>vec!["Experiment16Fou:DENSE_WITH_LONG_DWELL_HOME_EXCURSION".to_string()]home-mixer/params/param.rs
VMRankerSendHistoryTopicsboolfalsehome-mixer/params/param.rs
Removed parameterTypeLast defaultNote
EnablePhoenixRetrievalFallbackboolfalseremoved from home-mixer/params/param.rs

Pipeline components

KindChangeFile
Side effectaddedhome-mixer/side_effects/serendipity_stats_side_effect.rs
Candidate hydratorrenamed from video_aspect_ratio_hydratorhome-mixer/candidate_hydrators/video_media_hydrator.rs
Filtermodifiedhome-mixer/filters/video_carousel_filter.rs
Candidate hydratormodifiedhome-mixer/query_hydrators/scoring_sequence_query_hydrator.rs
Scorermodifiedhome-mixer/scorers/immersive_video_scorer.rs
Scorermodifiedhome-mixer/scorers/phoenix_scorer.rs
Scorermodifiedhome-mixer/scorers/vm_ranker_debias_payload.rs
Scorermodifiedhome-mixer/scorers/vm_ranker_request.rs
Side effectmodifiedhome-mixer/side_effects/phoenix_experiments_side_effect.rs
Side effectmodifiedhome-mixer/side_effects/redis_post_candidate_cache_side_effect.rs
Candidate sourcemodifiedhome-mixer/sources/phoenix_moe_source.rs
Candidate sourcemodifiedhome-mixer/sources/phoenix_source.rs
Candidate sourcemodifiedhome-mixer/sources/phoenix_topics_source.rs
Candidate sourcemodifiedvisibility-filtering/hydration/sources/exchange.rs
Candidate sourcemodifiedvisibility-filtering/hydration/sources/in_memory.rs

Changed constants & literal values

Old lineNew lineFile
const SCALA_FILES: [&str; 6] = [const SCALA_FILES: [&str; 7] = [visibility-filtering/params.rs
const PINNED_POLICIES: [(SafetyLevel, &str); 5] = [const PINNED_POLICIES: [(SafetyLevel, &str); 6] = [visibility-filtering/rules/engine.rs
let toggled: [(&str, Vec<ClientCapability>); 7] = [let toggled: [(&str, Vec<ClientCapability>); 8] = [visibility-filtering/rules/rule_spec/laws.rs
fn counter_labels<'a>(&'a self, build_sha: &'a str) -> [(&'static str, &'a str); 7] {fn counter_labels<'a>(&'a self, build_sha: &'a str) -> [(&'static str, &'a str); 10] {visibility-filtering/staging/reference/tweetypie.rs
const DECIDED_AT_LEAST: [&str; 64] = [const DECIDED_AT_LEAST: [&str; 69] = [visibility-filtering/staging/replay_corpus.rs
const NEVER_ALLOWED: [(&str, &str); 12] = [const NEVER_ALLOWED: [(&str, &str); 19] = [visibility-filtering/staging/replay_corpus.rs
fn verdict_cases() -> [(Verdict, Projected); 18] {fn verdict_cases() -> [(Verdict, Projected); 19] {visibility-filtering/treatment.rs

Schema fields (6)

Show proto/thrift field changes
ChangeField
addedTweetInfo.notInterestedCount
addedTweetInfo.notificationClickCount
addedTweetInfo.notificationDismissCount
addedTweetInfo.notificationOpenCount
addedTweetInfo.notificationSeeLessOftenCount
addedTweetInfo.notificationSentCount

Modules touched

ModuleFiles addedModifiedRemovedLines +Lines −
visibility-filtering/9790+8,052−1,680
abuse-enforcement-service/4130+5,411−104
home-mixer/2280+1,115−348
phoenix/0380+904−393
visibility-filtering-client/140+726−51
phoenix-rankall/010+49−3

Files (179)

Show file list
PathLinesNote
Mabuse-enforcement-service/service-lib/src/action_control.rs+119/−9
Mabuse-enforcement-service/service-lib/src/action_control/levels.rs+129/−27
Mabuse-enforcement-service/service-lib/src/action_control_path_tests.rs+25/−0
Mabuse-enforcement-service/service-lib/src/api_doc.rs+20/−1
Aabuse-enforcement-service/service-lib/src/backfill.rs+2530/−0
Aabuse-enforcement-service/service-lib/src/backfill_claims.rs+593/−0
Aabuse-enforcement-service/service-lib/src/backfill_path_tests.rs+911/−0
Mabuse-enforcement-service/service-lib/src/config.rs+7/−0
Mabuse-enforcement-service/service-lib/src/facts.rs+3/−1
Mabuse-enforcement-service/service-lib/src/gizmoduck_labels.rs+36/−1
Mabuse-enforcement-service/service-lib/src/growthbook.rs+4/−0
Mabuse-enforcement-service/service-lib/src/lib.rs+411/−54
Mabuse-enforcement-service/service-lib/src/replay_tests.rs+47/−10
Mabuse-enforcement-service/service-lib/src/service.rs+368/−0
Mabuse-enforcement-service/types/src/action_control.rs+13/−1
Aabuse-enforcement-service/types/src/backfill.rs+194/−0
Mabuse-enforcement-service/types/src/lib.rs+1/−0
Mhome-mixer/candidate_hydrators/mod.rs+1/−1
Rhome-mixer/candidate_hydrators/video_media_hydrator.rs+41/−14
Mhome-mixer/candidate_pipeline/mod.rs+9/−7
Mhome-mixer/candidate_pipeline/phoenix_candidate_pipeline.rs+19/−55
Mhome-mixer/candidate_pipeline/phoenix_scores_pipeline.rs+7/−29
Mhome-mixer/filters/video_carousel_filter.rs+2/−0
Mhome-mixer/main.rs+1/−1
Mhome-mixer/models/candidate.rs+4/−0
Mhome-mixer/models/query.rs+6/−0
Mhome-mixer/params/param.rs+31/−7
Mhome-mixer/query_hydrators/scoring_sequence_query_hydrator.rs+71/−27
Mhome-mixer/scorers/immersive_video_scorer.rs+1/−5
Mhome-mixer/scorers/phoenix_scorer.rs+1/−1
Mhome-mixer/scorers/vm_ranker_debias_payload.rs+18/−8
Mhome-mixer/scorers/vm_ranker_request.rs+6/−2
Mhome-mixer/server.rs+1/−1
Mhome-mixer/side_effects/mod.rs+1/−0
Mhome-mixer/side_effects/phoenix_experiments_side_effect.rs+379/−118
Mhome-mixer/side_effects/redis_post_candidate_cache_side_effect.rs+2/−2
Ahome-mixer/side_effects/serendipity_stats_side_effect.rs+203/−0
Mhome-mixer/sources/phoenix_moe_source.rs+8/−13
Mhome-mixer/sources/phoenix_source.rs+8/−12
Mhome-mixer/sources/phoenix_topics_source.rs+7/−8
Mhome-mixer/util/egress.rs+1/−3
Mhome-mixer/util/mod.rs+1/−0
Mhome-mixer/util/shadow.rs+28/−5
Ahome-mixer/util/shadow_scores.rs+85/−0
Mhome-mixer/util/video_carousel.rs+92/−10
Mhome-mixer/util/viewer_history.rs+81/−8
Mhome-mixer/util/xds.rs+0/−11
Mphoenix-rankall/src/config/mod.rs+49/−3
Mphoenix/crates/common/xai-recsys/src/util.rs+39/−7
Mphoenix/crates/serving/xai-recsys-engine/src/copy.rs+76/−6
Mphoenix/crates/serving/xai-recsys-engine/src/copy_manifest.rs+81/−2
Mphoenix/crates/serving/xai-recsys-engine/src/copy_port_client.rs+163/−8
Mphoenix/crates/serving/xai-recsys-proto/proto/recsys.proto+9/−1
Mphoenix/pyproject.toml+1/−2
Mphoenix/python/common/xai-proto/proto/recsys.proto+9/−1
Mphoenix/python/training/xai-checkpointing/xai_checkpointing/dek.py+33/−20
Mphoenix/xrex/configs/xrecsys.py+2/−0
Mphoenix/xrex/cutedsl/__init__.py+9/−0
Mphoenix/xrex/cutedsl/quack/copy_utils.py+6/−10
Mphoenix/xrex/cutedsl/quack/layout_utils.py+4/−4
Mphoenix/xrex/cutedsl/quack/utils.py+2/−30
Mphoenix/xrex/cutedsl/ranker_attention_fa4.py+4/−3
Mphoenix/xrex/cutedsl/ranker_fa4/blackwell_helpers.py+8/−8
Mphoenix/xrex/cutedsl/ranker_fa4/block_sparse_utils.py+2/−1
Mphoenix/xrex/cutedsl/ranker_fa4/flash_bwd.py+8/−8
Mphoenix/xrex/cutedsl/ranker_fa4/flash_bwd_postprocess.py+10/−9
Mphoenix/xrex/cutedsl/ranker_fa4/flash_bwd_sm100.py+46/−41
Mphoenix/xrex/cutedsl/ranker_fa4/flash_bwd_sm90.py+17/−17
Mphoenix/xrex/cutedsl/ranker_fa4/flash_fwd.py+5/−5
Mphoenix/xrex/cutedsl/ranker_fa4/flash_fwd_sm100.py+42/−33
Mphoenix/xrex/cutedsl/ranker_fa4/flash_fwd_sm90.py+9/−9
Mphoenix/xrex/cutedsl/ranker_fa4/mma_sm100_desc.py+2/−2
Mphoenix/xrex/cutedsl/ranker_fa4/pack_gqa.py+1/−1
Mphoenix/xrex/cutedsl/ranker_fa4/paged_kv.py+3/−3
Mphoenix/xrex/cutedsl/ranker_fa4/softmax.py+5/−5
Mphoenix/xrex/cutedsl/ranker_fa4/tile_scheduler.py+25/−25
Mphoenix/xrex/cutedsl/ranker_fa4/utils.py+20/−36
Mphoenix/xrex/data/parquet_recsys.py+10/−2
Mphoenix/xrex/data/recsys/recsys_batch.py+15/−2
Mphoenix/xrex/data/rust_parquet_recsys.py+1/−0
Mphoenix/xrex/data/streaming/kafkaloader.py+1/−0
Mphoenix/xrex/models/recsys_feature_prep.py+21/−2
Mphoenix/xrex/models/recsys_model.py+128/−66
Mphoenix/xrex/models/recsys_sid.py+75/−13
Mphoenix/xrex/utils/aot.py+2/−2
Mphoenix/xrex/utils/sharding.py+10/−9
Mvisibility-filtering-client/discovery.rs+40/−31
Mvisibility-filtering-client/lib.rs+1/−0
Mvisibility-filtering-client/metrics.rs+8/−0
Avisibility-filtering-client/notifications.rs+407/−0
Mvisibility-filtering-client/vf_client.rs+270/−20
Mvisibility-filtering/clients/about_this_account_client.rs+1/−1
Mvisibility-filtering/clients/article_client.rs+7/−13
Mvisibility-filtering/clients/mod.rs+0/−20
Mvisibility-filtering/clients/socialgraph_client.rs+62/−8
Mvisibility-filtering/clients/user_location_client.rs+1/−1
Mvisibility-filtering/config.rs+34/−2
Mvisibility-filtering/evaluate_tweets.rs+304/−49
Mvisibility-filtering/explain.rs+30/−17
Mvisibility-filtering/filter_tweets.rs+48/−7
Mvisibility-filtering/hydration/community_source.rs+1/−1
Mvisibility-filtering/hydration/decode/author.rs+40/−0
Mvisibility-filtering/hydration/decode/tweet.rs+7/−1
Mvisibility-filtering/hydration/decode/viewer.rs+18/−1
Mvisibility-filtering/hydration/execute.rs+47/−40
Mvisibility-filtering/hydration/fetcher.rs+18/−17
Mvisibility-filtering/hydration/hydrator.rs+91/−9
Mvisibility-filtering/hydration/inventory.rs+14/−0
Mvisibility-filtering/hydration/mod.rs+36/−3
Mvisibility-filtering/hydration/plan.rs+15/−0
Mvisibility-filtering/hydration/sources.rs+56/−8
Mvisibility-filtering/hydration/sources/exchange.rs+93/−15
Mvisibility-filtering/hydration/sources/in_memory.rs+85/−49
Mvisibility-filtering/hydration/store.rs+89/−207
Avisibility-filtering/hydration/store/conversation_root.rs+83/−0
Avisibility-filtering/hydration/store/quotes.rs+317/−0
Avisibility-filtering/hydration/store/resolve.rs+127/−0
Mvisibility-filtering/hydration/tweet_source.rs+315/−123
Mvisibility-filtering/lib.rs+2/−0
Mvisibility-filtering/metrics.rs+73/−0
Mvisibility-filtering/models/mod.rs+77/−1
Mvisibility-filtering/models/verdict.rs+1/−0
Mvisibility-filtering/models/viewer.rs+4/−0
Mvisibility-filtering/params.rs+130/−6
Mvisibility-filtering/params/client_switches.rs+56/−0
Mvisibility-filtering/post_evaluator.rs+74/−37
Avisibility-filtering/post_evaluator/author.rs+237/−0
Avisibility-filtering/quote.rs+968/−0
Mvisibility-filtering/result_label.rs+12/−0
Mvisibility-filtering/retweet.rs+68/−28
Mvisibility-filtering/rules/author_rules.rs+42/−21
Mvisibility-filtering/rules/catalog.rs+58/−40
Mvisibility-filtering/rules/context.rs+52/−23
Mvisibility-filtering/rules/engine.rs+758/−157
Mvisibility-filtering/rules/fixtures.rs+1/−0
Mvisibility-filtering/rules/golden_corpus/age_gating.rs+5/−0
Mvisibility-filtering/rules/golden_corpus/age_verification.rs+9/−0
Mvisibility-filtering/rules/golden_corpus/article.rs+18/−6
Mvisibility-filtering/rules/golden_corpus/author_state.rs+52/−2
Mvisibility-filtering/rules/golden_corpus/mod.rs+234/−21
Avisibility-filtering/rules/golden_corpus/quoted_tweet_rules.rs+204/−0
Mvisibility-filtering/rules/golden_corpus/tweet_label.rs+74/−3
Mvisibility-filtering/rules/golden_corpus/tweet_state.rs+5/−0
Mvisibility-filtering/rules/legacy_table.rs+13/−7
Mvisibility-filtering/rules/levels.rs+302/−244
Mvisibility-filtering/rules/mod.rs+22/−5
Mvisibility-filtering/rules/rule_spec.rs+105/−58
Mvisibility-filtering/rules/rule_spec/conditions.rs+45/−33
Avisibility-filtering/rules/rule_spec/engine.rs+185/−0
Mvisibility-filtering/rules/rule_spec/features.rs+21/−9
Mvisibility-filtering/rules/rule_spec/features/article.rs+8/−2
Mvisibility-filtering/rules/rule_spec/features/author.rs+53/−5
Mvisibility-filtering/rules/rule_spec/features/community.rs+8/−2
Mvisibility-filtering/rules/rule_spec/features/edges.rs+70/−12
Mvisibility-filtering/rules/rule_spec/features/post.rs+10/−6
Mvisibility-filtering/rules/rule_spec/features/request.rs+17/−4
Mvisibility-filtering/rules/rule_spec/features/tweet.rs+4/−2
Mvisibility-filtering/rules/rule_spec/features/viewer.rs+16/−5
Mvisibility-filtering/rules/rule_spec/inputs.rs+15/−11
Mvisibility-filtering/rules/rule_spec/laws.rs+268/−73
Mvisibility-filtering/rules/rule_spec/observed.rs+24/−23
Mvisibility-filtering/rules/rule_spec/predicates.rs+141/−50
Mvisibility-filtering/rules/rule_spec/rule.rs+98/−47
Mvisibility-filtering/rules/safety_level.rs+127/−21
Mvisibility-filtering/rules/tweet_rules.rs+41/−9
Mvisibility-filtering/scenario.rs+7/−2
Mvisibility-filtering/server.rs+9/−8
Mvisibility-filtering/server_deps.rs+29/−9
Mvisibility-filtering/staging/capture.rs+54/−18
Mvisibility-filtering/staging/recording.rs+34/−2
Mvisibility-filtering/staging/recording/replay.rs+27/−2
Mvisibility-filtering/staging/reference/mod.rs+42/−11
Mvisibility-filtering/staging/reference/tweetypie.rs+150/−28
Avisibility-filtering/staging/reference/tweetypie/quotes.rs+434/−0
Mvisibility-filtering/staging/reference/vf_service.rs+3/−1
Mvisibility-filtering/staging/replay_corpus.rs+157/−31
Mvisibility-filtering/staging/serve.rs+2/−2
Avisibility-filtering/thrift_read.rs+350/−0
Mvisibility-filtering/treatment.rs+8/−1