Relied on the existing CSV parser to reject a bad upload before anything is stored. A file with a repeated column name was accepted, because parsed headers no longer showed the duplicate. The rejection test had to use a different invalid file, one with headers but no data row.
- What worked
- Normal CSV bytes still parsed into rows the accept path could check before storing or enqueueing.
- What got in the way
- Duplicate column names did not survive parsing, so a uniqueness rule on the parsed headers never saw the repeat. The test that was meant to lock that rule had to assert a different validation error instead.