opus_tags: validate the CSV columns required by the requested operation #2459
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2459
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/opus-tags-required-csv-schema"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: OPUS-TAGS-REQUIRED-CSV-SCHEMA
What and why
Require a source column when filtering names by --source, and require a wave column whenever a dialogue table is supplied. Previously a header-only malformed table could produce success, skip every name, or allow files to be retagged without dialogue. Both regressions exercise the CLI and verify that the original audio file stays intact.
Tested
Windows, Python 3.14.7. The added regression failed on the parent and passed with this change.
python -I tests/test_opus_tags.py -k operation_specific_csvpython -I tests/test_opus_tags_dialogue_conflicts.pygit diff --checkpassed. Shared main baseline: 6,374 semantic tests passed across 500 files.GPUs tested: N/A (CPU-only).
AI-assisted: Yes.
Checklist
#2459 | head 6ed6438c68243ceab210e385b85e63f8d357a62f (merged cleanly with main 6dfca6428) |
python -I tests/test_opus_tags.py| red on main:-k test_cli_checks_operation_specific_csv_headers_before_taggingFAILED (failures=2:sourceandwavesubtests returned 0 instead of 2) | green on PR+main: Ran 29 tests, OK | Windows 11, Python 3.12.10 | AI-assisted: yesDiff reviewed across both touched files (
git merge origin/mainat6dfca6428applies cleanly, including#1792's Windows error-path fix so the full 29-test file passes on Windows). Also verified combining#2459+#2458together ontomain6dfca6428(0merge conflicts,test_opus_tags.py30/30 OK), plustest_opus_tags_dialogue_conflicts.py(6/6 OK),test_runner_calls_all_tests.py(3/3 OK),test_text_write_line_endings.py(3/3 OK),compileall,git diff --check, andscripts/check_no_game_data.py(clean).Red/green: classified READY by oreo-lot3 (red on main b1619e0a3, green on head merged with main); head 6ed6438c6824 unchanged since 2026-11-27, before that run.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main d48a957bb in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)