opus_tags: reject duplicate CSV headers used for tagging #467
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!467
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/467/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@EdenBendheim on GitHub · 2026-11-24 05:50 UTC · original
EdenBendheim:ubiq/opus-tags-duplicate-headers→main· +86 −2 · 3 files · 1 commits · merged 2026-11-24 06:58 UTCClaim: #14
What changed
tools/opus_tags.py: Validate CSV headers before reading rows in both the names CSV (bank,stream_id,name,source) and dialogue CSV (wave,label,speaker,text_<lang>), preserving required-header and Ogg CRC checks. Duplicate consumed headers exit2with a deterministic diagnostic before touching any Ogg file; repeated unused extra columns remain ignored.tests/test_opus_tags.py&docs/audio.md: Synthetic tests covering all consumed columns in both CSVs, UTF-8 BOM, untouched Ogg bytes/mtime on rejection, and extra-column stability, plus updated docs.Testing & Disclosure
gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).ubiquitarianism/leonidamain(8f481cf16):test_opus_tags*.py(34/34),compileall,check_no_game_data.py, LF check — all passed.@QemmHD on GitHub · 2026-11-24 06:58 UTC · original
Merging. Why merged: repeated tagging columns in either CSV are refused (exit 2) before any Ogg file is modified, and the docs say so.
Why it's good: security-reviewed; tested on Windows 11 merged onto main
c023a36: 3 new tests (11 subtest failures on main), all passing on the merge. The one remaining failure, test_cli_reports_incomplete_directory_discovery (a Windows path repr), fails the same way on main.AI-assisted (Claude Code, Claude Opus 5.5).