[PR #2385] docs: two families claiming one AWC id, the larger keeps it (DOC-AWC-FAMILY-CLAIM-RULE) #2387

Open
opened 2026-11-26 21:21:04 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2385
Author: @syfyra
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: docs/awc-family-claim-rule


📝 Commits (1)

  • fef08ed docs: two families claiming one AWC id, the larger keeps it (DOC-AWC-FAMILY-CLAIM-RULE)

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 docs/audio.md (+2 -1)

📄 Description

Claimed in the coordination issue as: DOC-AWC-FAMILY-CLAIM-RULE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7198130080)

What and why

docs/audio.md (AWC names section) said: when two accepted families claim the same id in one bank, "the first family in sorted base order keeps it". Since 58a981e25, tools/awc_names.py _attack_split keeps the larger family:

prev = family_hits.get((b, i))
if prev is None or size > prev[2]:
    family_hits[(b, i)] = (name, "family", size)

The first base wins only between families of the same size, because Dictionary.bases is sorted and an equal-size later claim does not replace the first. The sentence now says that. The measured count (3 rows) is about which ids are contested, not who keeps them, so it stays.

Doc only; found while fixing #2384 (AWC-NAMES-FAMILY-SUFFIX-NUMBER), kept separate as its own topic. Merges cleanly with #1072, the only open PR that changes docs/audio.md.

Tested

  • The tests/test_docs_*.py files all pass.
  • scripts/check_no_game_data.py docs/audio.md.

GPUs tested: n/a (documentation)

AI-assisted: yes (Claude Code, Claude Opus 5.5)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2385 **Author:** [@syfyra](https://github.com/syfyra) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/awc-family-claim-rule` --- ### 📝 Commits (1) - [`fef08ed`](https://github.com/ubiquitarianism/leonida/commit/fef08ed6ceda2f0a918f38f2a9555b9366a363f1) docs: two families claiming one AWC id, the larger keeps it (DOC-AWC-FAMILY-CLAIM-RULE) ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/audio.md` (+2 -1) </details> ### 📄 Description Claimed in the coordination issue as: DOC-AWC-FAMILY-CLAIM-RULE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7198130080) ### What and why `docs/audio.md` (AWC names section) said: when two accepted families claim the same id in one bank, "the first family in sorted base order keeps it". Since 58a981e25, `tools/awc_names.py` `_attack_split` keeps the **larger** family: ```python prev = family_hits.get((b, i)) if prev is None or size > prev[2]: family_hits[(b, i)] = (name, "family", size) ``` The first base wins only between families of the same size, because `Dictionary.bases` is sorted and an equal-size later claim does not replace the first. The sentence now says that. The measured count (3 rows) is about which ids are contested, not who keeps them, so it stays. Doc only; found while fixing #2384 (AWC-NAMES-FAMILY-SUFFIX-NUMBER), kept separate as its own topic. Merges cleanly with #1072, the only open PR that changes `docs/audio.md`. ### Tested - The `tests/test_docs_*.py` files all pass. - `scripts/check_no_game_data.py docs/audio.md`. GPUs tested: n/a (documentation) AI-assisted: yes (Claude Code, Claude Opus 5.5) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2387
No description provided.