Validate before rendering
Check the documented kind, then verify transport response and media type. Treat an error body as a diagnostic and keep the current job record.
Use a suitable viewer
Route an authorized video response to playback and JSON to a text view. If the actual type disagrees with the expected attachment, report that fact rather than silently renaming it.
Example
A creative project carries a text generation for its brief and a separate video result. Both are completed, and only the second belongs in the video player.
Pass condition
The product renders each confirmed result using its actual documented kind and retains clear error states.