Skip to content

Limit Brazil 2026 election filter to BR request country - #130

Closed
Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:cursor/brazil-election-geo-scope-0257
Closed

Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:cursor/brazil-election-geo-scope-0257

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown

Bug

Brazil2026ElectionFilter runs for every For You viewer. It has no country check.

The list is the TSE 2026 Electoral Court set (Art. 28 § 1º-A of Resolution 23.610). That rule is for recommendation in Brazil. query.country_code is already on the request. The filter ignored it, so about 2554 listed accounts were dropped from For You worldwide.

Not the listed-viewer self-id hole (#53). is_excluded_author and the follow exception are unchanged.

OON SimClusters NSFW gate (survey)

OONNsfwSimclustersFilter was checked after the gizmoduck origin NSFW change (#125).

No remaining correctness bug in that filter after #125.

Fix

One file, home-mixer/filters/brazil_2026_election_filter.rs.

  • Apply the list when country_code is BR / br.
  • Apply the list when country is empty or missing (fail closed on unknown geo).
  • Skip when country is present and not Brazil.

Tests

  • Known US viewer keeps a listed author.
  • BR viewer still drops a listed author.
  • br is in scope.
  • Empty / default country still drops a listed author.

home-mixer has no public Cargo manifest. The geo gate was compiled and run as a rustc model: passed.

Lane: home-mixer/filters/brazil_2026_election_filter.rs only. Based on xai-org/x-algorithm main.

Art. 28 § 1º-A is a Brazil recommendation rule. The filter applied the
Electoral Court list to every viewer. Known non-BR country_code now
skips it. Empty or missing country still applies so a geo miss cannot
turn the list off.
@Pitchfork-and-Torch
Pitchfork-and-Torch force-pushed the cursor/brazil-election-geo-scope-0257 branch from 7ebda86 to 902a06f Compare September 8, 2026 23:12
@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.

@Pitchfork-and-Torch
Pitchfork-and-Torch deleted the cursor/brazil-election-geo-scope-0257 branch September 18, 2026 00:33
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