#1593
bink_names.py: report malformed stream indexes with the input path
BUILD-463 · Claimed in the coordination thread. Claim
What and why
Pointing the tool at an unrelated report or a truncated CSV could produce an exception instead of identifying the issue. Check the report shape and required fields, and report row context for invalid values. Preserve valid empty indexes and archive inputs.
Tested
python -I tests/test_bink_names.py (17 passed). The new cases cover malformed JSON, missing CSV headers, a bad numeric cell, and valid empty JSON and CSV indexes.
Synthetic inputs on macOS arm64. GPU and driver are inapplicable.
AI-assisted. DeepSeek V4 Pro implemented and tested the change. Codex reviewed it and independently ran the focused tests.