Start with four pinned status values. Read the allowed set first, then check each row against that set.
The output keeps every original status value and adds status_valid. This is a validation check, not a cleanup or replacement step.
Checking whether each pinned category value belongs to an allowed set without replacing or changing rows.