audio_config: document radio track label keys and add counts-only checker (OLD-9979) #1266

Merged
IlyassRS3 merged 1 commit from upstream-pr/1266 into main 2026-11-28 19:36:21 +00:00
IlyassRS3 commented 2026-11-24 21:03:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by IlyassRS3 on 2026-11-24T21:03:43Z.


What changed

Carries forward old-pr/9979 (draft #244, original commit by @Elijah-J) rebased cleanly onto current main (0b45fdc21), preserving the original author commit:

  • docs/audio_config.md: document the marker-derived radio title/artist label keys (joaat("<N>s") and joaat("<N>a")) and counts-only checker invocation.
  • tools/track_labels.py: local counts-only checker reporting marker_rows, distinct_numbers, and title/artist present/empty/absent counts for extracted AWC banks against one string-table resource, emitting fixed path-free errors on invalid inputs.
  • tests/test_track_labels.py: hand-built AWC bank and string-table fixture tests verifying aggregation, independence from stream-name hashes, and path-/sentinel-free error handling.

Item ID

  • Coordination issue #14 item: OLD-9979 (carries forward old-pr/9979 / draft #244, #17)
  • Depends on: none

Verification

Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14 (no game files, no GPU, standard library only):

  • python3 -I tests/test_track_labels.py -v -> 3/3 OK
  • python3 -I tests/test_tool_startup.py -v -> 2/2 OK
  • python3 -I tests/test_tool_stdout_encoding.py -> 4/4 OK
  • All 12 tests/test_docs_*.py suites -> all OK
  • python3 -I tests/test_ci_registration.py -> 15/15 OK (new test file selected by CI stdlib loop)
  • python3 -I tests/test_text_write_line_endings.py -> 3/3 OK
  • python3 -m compileall -q tools/track_labels.py tests/test_track_labels.py -> OK
  • python3 -I scripts/check_no_game_data.py docs/audio_config.md tools/track_labels.py tests/test_track_labels.py -> OK

Checklist

  • No game files, binaries, shaders, textures, audio, or logs quoting them
  • No keys, decryption, or online services
  • Claimed in the coordination issue (#14) before opening this PR
  • AI-assisted: yes (carried forward, audited, rebased, and verified with AI assistance; original commit by @Elijah-J preserved)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5480296769 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1266). Originally posted by [IlyassRS3](https://github.com/IlyassRS3) on 2026-11-24T21:03:43Z. --- ## What changed Carries forward `old-pr/9979` (draft #244, original commit by @Elijah-J) rebased cleanly onto current `main` (`0b45fdc21`), preserving the original author commit: - `docs/audio_config.md`: document the marker-derived radio title/artist label keys (`joaat("<N>s")` and `joaat("<N>a")`) and counts-only checker invocation. - `tools/track_labels.py`: local counts-only checker reporting `marker_rows`, `distinct_numbers`, and title/artist `present`/`empty`/`absent` counts for extracted AWC banks against one string-table resource, emitting fixed path-free errors on invalid inputs. - `tests/test_track_labels.py`: hand-built AWC bank and string-table fixture tests verifying aggregation, independence from stream-name hashes, and path-/sentinel-free error handling. ## Item ID - Coordination issue #14 item: `OLD-9979` (carries forward `old-pr/9979` / draft #244, #17) - Depends on: none ## Verification Tested on macOS 27.2.1 (Apple M5 arm64), Python 3.14 (no game files, no GPU, standard library only): - `python3 -I tests/test_track_labels.py -v` -> **3/3 OK** - `python3 -I tests/test_tool_startup.py -v` -> **2/2 OK** - `python3 -I tests/test_tool_stdout_encoding.py` -> **4/4 OK** - All 12 `tests/test_docs_*.py` suites -> **all OK** - `python3 -I tests/test_ci_registration.py` -> **15/15 OK** (new test file selected by CI stdlib loop) - `python3 -I tests/test_text_write_line_endings.py` -> **3/3 OK** - `python3 -m compileall -q tools/track_labels.py tests/test_track_labels.py` -> OK - `python3 -I scripts/check_no_game_data.py docs/audio_config.md tools/track_labels.py tests/test_track_labels.py` -> OK ## Checklist - [x] No game files, binaries, shaders, textures, audio, or logs quoting them - [x] No keys, decryption, or online services - [x] Claimed in the coordination issue (#14) before opening this PR - [x] AI-assisted: yes (carried forward, audited, rebased, and verified with AI assistance; original commit by @Elijah-J preserved)
copilot-pull-request-reviewer[bot] commented 2026-11-24 21:03:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T21:03:53Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6047374710 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1266#pullrequestreview-6047374710). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-11-24T21:03:53Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
MoonEyes commented 2026-11-28 19:36:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:36:17Z.


Red/green: tests/test_track_labels.py fails 12 assertions on main (the counts-only tools/track_labels.py checker does not exist) and passes with the PR (cloud run on main 7daa4a4).
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7244669048 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1266#issuecomment-7244669048). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T19:36:17Z. --- Red/green: tests/test_track_labels.py fails 12 assertions on main (the counts-only tools/track_labels.py checker does not exist) and passes with the PR (cloud run on main 7daa4a4). Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure. AI-assisted (Claude Code, Claude Opus 5.5)
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1266
No description provided.