Skip to content

Decide a list's order only where its votes are at least 1% of the list - #1444

Merged
derek73 merged 2 commits into
masterfrom
fix/issue-1442-vote-floor
Nov 17, 2026
Merged

derek73 merged 2 commits into
masterfrom
fix/issue-1442-vote-floor

Conversation

@derek73

@derek73 derek73 commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Closes #1442.

What changes

Parser.suggest decided name_order on at least two names and more than two thirds of the names casting an order vote. Names with no vote were outside that share, so in a long list where almost no name votes, two stray votes decided the order for the whole list.

Now the names voting for the winning end must also be at least 1% of the list's names, voting or not (_suggest._MIN_ORDER_GROUP_SHARE = 0.01, read in _Tally.winner). Names a comma leaves out don't count: they state their own order, and the decided order reads none of them.

The order evidence's note mentions the floor in two cases: where the floor alone leaves the order undecided, and where the votes it holds back are for family-first against the given-first order a decided East Slavic rule sets. Where they agree with the rule's order it says nothing, since they decided nothing. The first case reads:

2 of the group's 201 names vote FAMILY_FIRST, too few to decide the order: it is decided where the names voting for one end are at least 1% of the group

One rule, not two. At 200 names or fewer, 1% asks for at most two names, which _MIN_VOTES asks already. So every size measured before reads as it did, and the floor only acts on lists long enough for stray votes to pile up. A second rule switching it on above some size would add a boundary that nothing in the measurements calls for.

The one case where the floor moves an outcome towards an order rather than towards the base. Take ten names written given, patronymic, family, plus two stray family-first votes, among 1,000 silent names. Under a given-first or FAMILY_FIRST base, master decided family-first, under which the rule reorders no name. Now the rule's given-first order stands. The same holds under FAMILY_FIRST_GIVEN_LAST with the patronymic written last, where master kept that order, which reads the patronymic as the given name. Tests pin each case.

_keeps_family_first reads the same winner(). Under a FAMILY_FIRST base, a stray order the floor holds back therefore falls to #1356's branch: the base keeps its order and gets the East Slavic rule alone.

Measurement

Command: uv run python tools/differential/suggest_measure.py --sizes 2,3,4,5,10,20,50,100,200,500,1000,2000 --trials 300 (seed 20261110). The base is an export of master 06e90204. Each candidate was run with --set _MIN_ORDER_GROUP_SHARE=<share>.

What was compared: the 120 order rows, the 12 capitals rows, the TURKIC table and 22 parliament lists under 3 bases. The run on the final code is identical to the 1% candidate run.

Rows that moved (1%):

row 100 200 500 1,000 2,000
pv-RU-patronymic, written FF, FF base (same order; #1442) 98.7 → 98.7 99.0 → 99.0 90.7 → 100 86.7 → 100 86.7 → 100
pv-RU-patronymic, written FF, GF base (against; reaches 95% at no size either way) 1 → 1 2 → 2 10 → 0 15 → 0 14 → 0

The second row's 10–15% came from the same accident the first row lost to. Stray right votes (about 1 name in 1,000) sometimes outnumbered stray wrong ones (about 3 in 1,000) by more than two to one. Neither kind decides now.

Rows that did not move:

  • No other order row moved.
  • Every row written against its base still reaches 95% from the same size as before, the sparse lists included:
    • orcid-byline GF-written/FF-base: 2,000
    • orcid-byline-joined FF/GF: 200
    • orcid-famcaps-short, psc-Indian, pv-RU: 20–50
    • orcid-famcaps-ea: 10
  • The capitals table, the counts of groups deciding initials_as_family and the East Slavic rule, the per-name votes, the TURKIC table and every parliament list's suggestion are unchanged. mn_parliament has 2 votes among 126 names (1.6%) and stays decided.

Candidates declined:

floor cost
0.5% fixes the row less surely: 97 / 100 / 100% at 500 / 1,000 / 2,000 (the 500 cell is 2 points over the bar on one run); nothing else moves
2% orcid-byline GF/FF falls 53 / 60 / 72 → 47 / 50 / 65% at 200 / 500 / 1,000; orcid-byline-joined GF/FF 39 / 28 → 35 / 26%; mn_parliament is no longer decided
5% orcid-byline GF/FF never reaches 95% (98% at 2,000 → 0); orcid-byline-joined FF/GF needs 500 names instead of 200; pv-RU FF/GF 99 → 98 at 50; mn_parliament undecided

#1442's made-up list (FF base):

  • At 13 names, every candidate still suggests GIVEN_FIRST with the rule, as master does. The two votes are 15% of that group.
  • At 1,003 and 100,003 names, master suggests GIVEN_FIRST with the rule. Every floor suggests the rule alone and keeps family-first, so Zzyvov Qqsan reads family Zzyvov.

The other three settings have the same hole (not fixed here)

Each of them counts its share among the names that have evidence on it, never among all the names in the group. Shown with made-up names:

  • Five Qqsan Petrovich Zzyvova among 1,000 or 100,000 silent names decide the East Slavic rule. Under a FF base they also bring the given-first order with it.
  • Two Qqsan Zzyvov B K decide initials_as_family.
  • Two Qqsan ZZYVOVA in a list written wholly in one case decide capitals_as_family.

No measured population moves on any of these. The patronymic case reaches the order through the rule, which this floor does not touch. Each needs its own measurement, so they are recorded in the decisions file's Open paragraph. No issue is filed.

Docs

  • Parser.suggest's docstring, docs/suggest.rst and docs/design/decisions/group-suggestion.md are re-taken from the extended table. The decisions file gets the 2026-11-16 ORDER FLOOR entry, with the full 12-size table, the candidates and the commands, plus updated Standing and Open lines.
  • The extended table corrects stale byline figures:
  • docs/suggest.rst keeps its advice to give a sample of a few hundred names (it is quicker, and more names rarely help). It now says the order's own votes are not read worse in a long list, scoped to the lists measured. It also says plainly that a handful of names can still decide patronymic_rules, initials_as_family or capitals_as_family in a long list. The patronymic case brings a given-first order with it.
  • Root AGENTS.md's suggester paragraph now says a threshold change should be measured out to 2,000 names. Should two stray votes decide a list's order when 100,000 names cast none? (Parser.suggest moves a family-first base to given-first) #1442 went unseen because the default sizes stop at 200.
  • The Parser.suggest() release-log bullet gains :issue:1442. 3.1 is unreleased, and the bullet's limits are unchanged.

Checks

  • Full suite: 49,875 passed. Serial suite: 38 passed.

  • mypy and ruff are clean. sphinx-build -b doctest has 0 failures, and python -m doctest README.rst passes.

  • test_suggest.py passes on 3.15.

  • tools/differential/snapshot.jsonl is unchanged.

  • The new tests cover:

    Twelve of them fail with the floor set to 0. The short-list rows and the agree-with-the-rule rows pass either way, by design; the latter fail on 66c827d's note.

  • Review round (250c2f3, after the review of 66c827d): the note fix, the comma denominator, the scoped docs, and every cell of the bare-initials byline row in the decisions entry. That row's 200-name cell is 97.3% on this run, while two other runs read 96%; the entry says so. The full table was re-run after the denominator change and is identical.

  • Not yet run: the PR review toolkit. The coordinating session is reviewing independently.

🤖 Generated with Claude Code

Parser.suggest decided name_order on at least two names and more than
two thirds of the names casting an order vote, so in a long list where
almost no name votes, two stray votes decided the order for every
name: Russian inventors with patronymics, written family first under a
family-first base, kept that order in 87% of groups of 1,000 and 2,000
names. The names voting for the winning end must now also be at least
1% of the whole list (_MIN_ORDER_GROUP_SHARE); where that alone holds
the order back, the order evidence's note says so.

At 200 names or fewer the floor asks no more than the two names
_MIN_VOTES does. Measured over 2 to 2,000 names, 300 groups a size, it
moves two order rows and nothing else: the Russian row reads 100% from
500 names, and the same names under a given-first base lose the 10 to
15% they reached by the same accident. 0.5%, 2% and 5% were measured
and declined (decisions/group-suggestion, 2026-11-16 ORDER FLOOR).

The docstring, docs/suggest.rst and root AGENTS.md are re-taken from
the extended table, which also corrects the byline figures: the bare
initials list reads 94.7% and 93.3% at 50 and 100 names, ORCID's
bylines 95.3% at 100.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.1 milestone Nov 16, 2026
@derek73 derek73 added bug suggester The group suggester: Parser.suggest() and its signals labels Nov 16, 2026
@derek73 derek73 self-assigned this Nov 16, 2026
The floor's note was added to every order evidence the floor touched,
including one a decided East Slavic rule then decided given-first, so
it called an order decided "too few to decide". It now speaks where the
floor alone leaves the order undecided, and where the votes it holds
back are for family-first against the rule's given-first order, the
one case the floor moves an outcome; it says nothing of held-back votes
for the order the rule sets.

The floor's denominator leaves out the names a comma left out: they
state their own order and the order decided reads none of them. The
full table and every parliament suggestion are unchanged, re-run.

docs/suggest.rst scopes "not read worse for being long" to the order's
own votes and the lists measured, and says a handful of names can still
decide the other three settings in a long list. The decisions entry
records the rule case the floor changes, the denominator, and every
cell of the bare-initials byline row, whose 200-name cell is 97.3%.
Two docstring lines reflowed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73
derek73 merged commit 3160944 into master Nov 17, 2026
14 checks passed
@derek73
derek73 deleted the fix/issue-1442-vote-floor branch November 17, 2026 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug suggester The group suggester: Parser.suggest() and its signals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should two stray votes decide a list's order when 100,000 names cast none? (Parser.suggest moves a family-first base to given-first)

1 participant