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

Merged
leonida/mandy
quietfold merged 1 commit from carry/old-9979-track-labels into main 2026-11-28 19:36:21 +00:00

Pull request successfully merged and closed

quietfold commented 2026-11-24 21:03:43 +00:00

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)
## 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] reviewed 2026-11-24 21:03:53 +00:00
copilot-pull-request-reviewer[bot] left a comment
No description provided.
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

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)

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 description provided.